Commit | Line | Data |
---|---|---|
a3da1d95 GE |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.53. | |
4 | # | |
5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | |
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 | ||
10 | ||
11 | # Check that we are running under the correct shell. | |
12 | SHELL=${CONFIG_SHELL-/bin/sh} | |
13 | ||
14 | case X$ECHO in | |
15 | X*--fallback-echo) | |
16 | # Remove one level of quotation (which was required for Make). | |
17 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
18 | ;; | |
19 | esac | |
20 | ||
21 | echo=${ECHO-echo} | |
22 | if test "X$1" = X--no-reexec; then | |
23 | # Discard the --no-reexec flag, and continue. | |
24 | shift | |
25 | elif test "X$1" = X--fallback-echo; then | |
26 | # Avoid inline document here, it may be left over | |
27 | : | |
28 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then | |
29 | # Yippee, $echo works! | |
30 | : | |
31 | else | |
32 | # Restart under the correct shell. | |
33 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
34 | fi | |
35 | ||
36 | if test "X$1" = X--fallback-echo; then | |
37 | # used as fallback echo | |
38 | shift | |
39 | cat <<EOF | |
40 | $* | |
41 | EOF | |
42 | exit 0 | |
43 | fi | |
44 | ||
45 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
46 | # if CDPATH is set. | |
47 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | |
48 | ||
49 | if test -z "$ECHO"; then | |
50 | if test "X${echo_test_string+set}" != Xset; then | |
51 | # find a string as large as possible, as long as the shell can cope with it | |
52 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
53 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
54 | if (echo_test_string="`eval $cmd`") 2>/dev/null && | |
55 | echo_test_string="`eval $cmd`" && | |
56 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | |
57 | then | |
58 | break | |
59 | fi | |
60 | done | |
61 | fi | |
62 | ||
63 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
64 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
65 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
66 | : | |
67 | else | |
68 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
69 | # backslashes. This makes it impossible to quote backslashes using | |
70 | # echo "$something" | sed 's/\\/\\\\/g' | |
71 | # | |
72 | # So, first we look for a working echo in the user's PATH. | |
73 | ||
74 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
75 | for dir in $PATH /usr/ucb; do | |
76 | IFS="$lt_save_ifs" | |
77 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
78 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
79 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
80 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
81 | echo="$dir/echo" | |
82 | break | |
83 | fi | |
84 | done | |
85 | IFS="$lt_save_ifs" | |
86 | ||
87 | if test "X$echo" = Xecho; then | |
88 | # We didn't find a better echo, so look for alternatives. | |
89 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | |
90 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | |
91 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
92 | # This shell has a builtin print -r that does the trick. | |
93 | echo='print -r' | |
94 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | |
95 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
96 | # If we have ksh, try running configure again with it. | |
97 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
98 | export ORIGINAL_CONFIG_SHELL | |
99 | CONFIG_SHELL=/bin/ksh | |
100 | export CONFIG_SHELL | |
101 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
102 | else | |
103 | # Try using printf. | |
104 | echo='printf %s\n' | |
105 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
106 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
107 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
108 | # Cool, printf works | |
109 | : | |
110 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
111 | test "X$echo_testing_string" = 'X\t' && | |
112 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
113 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
114 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
115 | export CONFIG_SHELL | |
116 | SHELL="$CONFIG_SHELL" | |
117 | export SHELL | |
118 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
119 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
120 | test "X$echo_testing_string" = 'X\t' && | |
121 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
122 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
123 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
124 | else | |
125 | # maybe with a smaller string... | |
126 | prev=: | |
127 | ||
128 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
129 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | |
130 | then | |
131 | break | |
132 | fi | |
133 | prev="$cmd" | |
134 | done | |
135 | ||
136 | if test "$prev" != 'sed 50q "$0"'; then | |
137 | echo_test_string=`eval $prev` | |
138 | export echo_test_string | |
139 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
140 | else | |
141 | # Oops. We lost completely, so just stick with echo. | |
142 | echo=echo | |
143 | fi | |
144 | fi | |
145 | fi | |
146 | fi | |
147 | fi | |
148 | fi | |
149 | ||
150 | # Copy echo and quote the copy suitably for passing to libtool from | |
151 | # the Makefile, instead of quoting the original, which is used later. | |
152 | ECHO=$echo | |
153 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
154 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
155 | fi | |
156 | ||
157 | ||
158 | ||
159 | ||
160 | # Check that we are running under the correct shell. | |
161 | SHELL=${CONFIG_SHELL-/bin/sh} | |
162 | ||
163 | case X$ECHO in | |
164 | X*--fallback-echo) | |
165 | # Remove one level of quotation (which was required for Make). | |
166 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
167 | ;; | |
168 | esac | |
169 | ||
170 | echo=${ECHO-echo} | |
171 | if test "X$1" = X--no-reexec; then | |
172 | # Discard the --no-reexec flag, and continue. | |
173 | shift | |
174 | elif test "X$1" = X--fallback-echo; then | |
175 | # Avoid inline document here, it may be left over | |
176 | : | |
177 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then | |
178 | # Yippee, $echo works! | |
179 | : | |
180 | else | |
181 | # Restart under the correct shell. | |
182 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
183 | fi | |
184 | ||
185 | if test "X$1" = X--fallback-echo; then | |
186 | # used as fallback echo | |
187 | shift | |
188 | cat <<EOF | |
189 | $* | |
190 | EOF | |
191 | exit 0 | |
192 | fi | |
193 | ||
194 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
195 | # if CDPATH is set. | |
196 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | |
197 | ||
198 | if test -z "$ECHO"; then | |
199 | if test "X${echo_test_string+set}" != Xset; then | |
200 | # find a string as large as possible, as long as the shell can cope with it | |
201 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
202 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
203 | if (echo_test_string="`eval $cmd`") 2>/dev/null && | |
204 | echo_test_string="`eval $cmd`" && | |
205 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | |
206 | then | |
207 | break | |
208 | fi | |
209 | done | |
210 | fi | |
211 | ||
212 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
213 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
214 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
215 | : | |
216 | else | |
217 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
218 | # backslashes. This makes it impossible to quote backslashes using | |
219 | # echo "$something" | sed 's/\\/\\\\/g' | |
220 | # | |
221 | # So, first we look for a working echo in the user's PATH. | |
222 | ||
223 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
224 | for dir in $PATH /usr/ucb; do | |
225 | IFS="$lt_save_ifs" | |
226 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
227 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
228 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
229 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
230 | echo="$dir/echo" | |
231 | break | |
232 | fi | |
233 | done | |
234 | IFS="$lt_save_ifs" | |
235 | ||
236 | if test "X$echo" = Xecho; then | |
237 | # We didn't find a better echo, so look for alternatives. | |
238 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | |
239 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | |
240 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
241 | # This shell has a builtin print -r that does the trick. | |
242 | echo='print -r' | |
243 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | |
244 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
245 | # If we have ksh, try running configure again with it. | |
246 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
247 | export ORIGINAL_CONFIG_SHELL | |
248 | CONFIG_SHELL=/bin/ksh | |
249 | export CONFIG_SHELL | |
250 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
251 | else | |
252 | # Try using printf. | |
253 | echo='printf %s\n' | |
254 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
255 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
256 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
257 | # Cool, printf works | |
258 | : | |
259 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
260 | test "X$echo_testing_string" = 'X\t' && | |
261 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
262 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
263 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
264 | export CONFIG_SHELL | |
265 | SHELL="$CONFIG_SHELL" | |
266 | export SHELL | |
267 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
268 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
269 | test "X$echo_testing_string" = 'X\t' && | |
270 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
271 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
272 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
273 | else | |
274 | # maybe with a smaller string... | |
275 | prev=: | |
276 | ||
277 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
278 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | |
279 | then | |
280 | break | |
281 | fi | |
282 | prev="$cmd" | |
283 | done | |
284 | ||
285 | if test "$prev" != 'sed 50q "$0"'; then | |
286 | echo_test_string=`eval $prev` | |
287 | export echo_test_string | |
288 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
289 | else | |
290 | # Oops. We lost completely, so just stick with echo. | |
291 | echo=echo | |
292 | fi | |
293 | fi | |
294 | fi | |
295 | fi | |
296 | fi | |
297 | fi | |
298 | ||
299 | # Copy echo and quote the copy suitably for passing to libtool from | |
300 | # the Makefile, instead of quoting the original, which is used later. | |
301 | ECHO=$echo | |
302 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
303 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
304 | fi | |
305 | ||
306 | ||
307 | ||
308 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
309 | as_expr=expr | |
310 | else | |
311 | as_expr=false | |
312 | fi | |
313 | ||
314 | ||
315 | ## --------------------- ## | |
316 | ## M4sh Initialization. ## | |
317 | ## --------------------- ## | |
318 | ||
319 | # Be Bourne compatible | |
320 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
321 | emulate sh | |
322 | NULLCMD=: | |
323 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
324 | set -o posix | |
325 | fi | |
326 | ||
327 | # NLS nuisances. | |
328 | # Support unset when possible. | |
329 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
330 | as_unset=unset | |
331 | else | |
332 | as_unset=false | |
333 | fi | |
334 | ||
335 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && | |
336 | { $as_unset LANG || test "${LANG+set}" != set; } || | |
337 | { LANG=C; export LANG; } | |
338 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && | |
339 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || | |
340 | { LC_ALL=C; export LC_ALL; } | |
341 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && | |
342 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || | |
343 | { LC_TIME=C; export LC_TIME; } | |
344 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && | |
345 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || | |
346 | { LC_CTYPE=C; export LC_CTYPE; } | |
347 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && | |
348 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || | |
349 | { LANGUAGE=C; export LANGUAGE; } | |
350 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && | |
351 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || | |
352 | { LC_COLLATE=C; export LC_COLLATE; } | |
353 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && | |
354 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || | |
355 | { LC_NUMERIC=C; export LC_NUMERIC; } | |
356 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && | |
357 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || | |
358 | { LC_MESSAGES=C; export LC_MESSAGES; } | |
359 | ||
360 | ||
361 | # Name of the executable. | |
362 | as_me=`(basename "$0") 2>/dev/null || | |
363 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
364 | X"$0" : 'X\(//\)$' \| \ | |
365 | X"$0" : 'X\(/\)$' \| \ | |
366 | . : '\(.\)' 2>/dev/null || | |
367 | echo X/"$0" | | |
368 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
369 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
370 | /^X\/\(\/\).*/{ s//\1/; q; } | |
371 | s/.*/./; q'` | |
372 | ||
373 | # PATH needs CR, and LINENO needs CR and PATH. | |
374 | # Avoid depending upon Character Ranges. | |
375 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
376 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
377 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
378 | as_cr_digits='0123456789' | |
379 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
380 | ||
381 | # The user is always right. | |
382 | if test "${PATH_SEPARATOR+set}" != set; then | |
383 | echo "#! /bin/sh" >conftest.sh | |
384 | echo "exit 0" >>conftest.sh | |
385 | chmod +x conftest.sh | |
386 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then | |
387 | PATH_SEPARATOR=';' | |
388 | else | |
389 | PATH_SEPARATOR=: | |
390 | fi | |
391 | rm -f conftest.sh | |
392 | fi | |
393 | ||
394 | ||
395 | as_lineno_1=$LINENO | |
396 | as_lineno_2=$LINENO | |
397 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
398 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
399 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
400 | # Find who we are. Look in the path if we contain no path at all | |
401 | # relative or not. | |
402 | case $0 in | |
403 | *[\\/]* ) as_myself=$0 ;; | |
404 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
405 | for as_dir in $PATH | |
406 | do | |
407 | IFS=$as_save_IFS | |
408 | test -z "$as_dir" && as_dir=. | |
409 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
410 | done | |
411 | ||
412 | ;; | |
413 | esac | |
414 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
415 | # in which case we are not to be found in the path. | |
416 | if test "x$as_myself" = x; then | |
417 | as_myself=$0 | |
418 | fi | |
419 | if test ! -f "$as_myself"; then | |
420 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
421 | { (exit 1); exit 1; }; } | |
422 | fi | |
423 | case $CONFIG_SHELL in | |
424 | '') | |
425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
426 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
427 | do | |
428 | IFS=$as_save_IFS | |
429 | test -z "$as_dir" && as_dir=. | |
430 | for as_base in sh bash ksh sh5; do | |
431 | case $as_dir in | |
432 | /*) | |
433 | if ("$as_dir/$as_base" -c ' | |
434 | as_lineno_1=$LINENO | |
435 | as_lineno_2=$LINENO | |
436 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
437 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
438 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
439 | CONFIG_SHELL=$as_dir/$as_base | |
440 | export CONFIG_SHELL | |
441 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
442 | fi;; | |
443 | esac | |
444 | done | |
445 | done | |
446 | ;; | |
447 | esac | |
448 | ||
449 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
450 | # uniformly replaced by the line number. The first 'sed' inserts a | |
451 | # line-number line before each line; the second 'sed' does the real | |
452 | # work. The second script uses 'N' to pair each line-number line | |
453 | # with the numbered line, and appends trailing '-' during | |
454 | # substitution so that $LINENO is not a special case at line end. | |
455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
456 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
457 | sed '=' <$as_myself | | |
458 | sed ' | |
459 | N | |
460 | s,$,-, | |
461 | : loop | |
462 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
463 | t loop | |
464 | s,-$,, | |
465 | s,^['$as_cr_digits']*\n,, | |
466 | ' >$as_me.lineno && | |
467 | chmod +x $as_me.lineno || | |
468 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
469 | { (exit 1); exit 1; }; } | |
470 | ||
471 | # Don't try to exec as it changes $[0], causing all sort of problems | |
472 | # (the dirname of $[0] is not the place where we might find the | |
473 | # original and so on. Autoconf is especially sensible to this). | |
474 | . ./$as_me.lineno | |
475 | # Exit status is that of the last command. | |
476 | exit | |
477 | } | |
478 | ||
479 | ||
480 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
481 | *c*,-n*) ECHO_N= ECHO_C=' | |
482 | ' ECHO_T=' ' ;; | |
483 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
484 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
485 | esac | |
486 | ||
487 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
488 | as_expr=expr | |
489 | else | |
490 | as_expr=false | |
491 | fi | |
492 | ||
493 | rm -f conf$$ conf$$.exe conf$$.file | |
494 | echo >conf$$.file | |
495 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
496 | # We could just check for DJGPP; but this test a) works b) is more generic | |
497 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
498 | if test -f conf$$.exe; then | |
499 | # Don't use ln at all; we don't have any links | |
500 | as_ln_s='cp -p' | |
501 | else | |
502 | as_ln_s='ln -s' | |
503 | fi | |
504 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
505 | as_ln_s=ln | |
506 | else | |
507 | as_ln_s='cp -p' | |
508 | fi | |
509 | rm -f conf$$ conf$$.exe conf$$.file | |
510 | ||
511 | as_executable_p="test -f" | |
512 | ||
513 | # Sed expression to map a string onto a valid CPP name. | |
514 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
515 | ||
516 | # Sed expression to map a string onto a valid variable name. | |
517 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
518 | ||
519 | ||
520 | # IFS | |
521 | # We need space, tab and new line, in precisely that order. | |
522 | as_nl=' | |
523 | ' | |
524 | IFS=" $as_nl" | |
525 | ||
526 | # CDPATH. | |
527 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } | |
528 | ||
529 | ||
530 | # Name of the host. | |
531 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
532 | # so uname gets run too. | |
533 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
534 | ||
535 | exec 6>&1 | |
536 | ||
537 | # | |
538 | # Initializations. | |
539 | # | |
540 | ac_default_prefix=/usr/local | |
541 | cross_compiling=no | |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
545 | SHELL=${CONFIG_SHELL-/bin/sh} | |
546 | ||
547 | # Maximum number of lines to put in a shell here document. | |
548 | # This variable seems obsolete. It should probably be removed, and | |
549 | # only ac_max_sed_lines should be used. | |
550 | : ${ac_max_here_lines=38} | |
551 | ||
552 | # Identity of this package. | |
553 | PACKAGE_NAME= | |
554 | PACKAGE_TARNAME= | |
555 | PACKAGE_VERSION= | |
556 | PACKAGE_STRING= | |
557 | PACKAGE_BUGREPORT= | |
558 | ||
559 | ac_unique_file="acinclude.m4" | |
560 | ac_default_prefix=/usr/local | |
561 | # Factoring default headers for most tests. | |
562 | ac_includes_default="\ | |
563 | #include <stdio.h> | |
564 | #if HAVE_SYS_TYPES_H | |
565 | # include <sys/types.h> | |
566 | #endif | |
567 | #if HAVE_SYS_STAT_H | |
568 | # include <sys/stat.h> | |
569 | #endif | |
570 | #if STDC_HEADERS | |
571 | # include <stdlib.h> | |
572 | # include <stddef.h> | |
573 | #else | |
574 | # if HAVE_STDLIB_H | |
575 | # include <stdlib.h> | |
576 | # endif | |
577 | #endif | |
578 | #if HAVE_STRING_H | |
579 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
580 | # include <memory.h> | |
581 | # endif | |
582 | # include <string.h> | |
583 | #endif | |
584 | #if HAVE_STRINGS_H | |
585 | # include <strings.h> | |
586 | #endif | |
587 | #if HAVE_INTTYPES_H | |
588 | # include <inttypes.h> | |
589 | #else | |
590 | # if HAVE_STDINT_H | |
591 | # include <stdint.h> | |
592 | # endif | |
593 | #endif | |
594 | #if HAVE_UNISTD_H | |
595 | # include <unistd.h> | |
596 | #endif" | |
597 | ||
598 | ||
599 | # Initialize some variables set by options. | |
600 | ac_init_help= | |
601 | ac_init_version=false | |
602 | # The variables have the same names as the options, with | |
603 | # dashes changed to underlines. | |
604 | cache_file=/dev/null | |
605 | exec_prefix=NONE | |
606 | no_create= | |
607 | no_recursion= | |
608 | prefix=NONE | |
609 | program_prefix=NONE | |
610 | program_suffix=NONE | |
611 | program_transform_name=s,x,x, | |
612 | silent= | |
613 | site= | |
614 | srcdir= | |
615 | verbose= | |
616 | x_includes=NONE | |
617 | x_libraries=NONE | |
618 | ||
619 | # Installation directory options. | |
620 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
621 | # and all the variables that are supposed to be based on exec_prefix | |
622 | # by default will actually change. | |
623 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
624 | bindir='${exec_prefix}/bin' | |
625 | sbindir='${exec_prefix}/sbin' | |
626 | libexecdir='${exec_prefix}/libexec' | |
627 | datadir='${prefix}/share' | |
628 | sysconfdir='${prefix}/etc' | |
629 | sharedstatedir='${prefix}/com' | |
630 | localstatedir='${prefix}/var' | |
631 | libdir='${exec_prefix}/lib' | |
632 | includedir='${prefix}/include' | |
633 | oldincludedir='/usr/include' | |
634 | infodir='${prefix}/info' | |
635 | mandir='${prefix}/man' | |
636 | ||
637 | ac_prev= | |
638 | for ac_option | |
639 | do | |
640 | # If the previous option needs an argument, assign it. | |
641 | if test -n "$ac_prev"; then | |
642 | eval "$ac_prev=\$ac_option" | |
643 | ac_prev= | |
644 | continue | |
645 | fi | |
646 | ||
647 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
648 | ||
649 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
650 | ||
651 | case $ac_option in | |
652 | ||
653 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
654 | ac_prev=bindir ;; | |
655 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
656 | bindir=$ac_optarg ;; | |
657 | ||
658 | -build | --build | --buil | --bui | --bu) | |
659 | ac_prev=build_alias ;; | |
660 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
661 | build_alias=$ac_optarg ;; | |
662 | ||
663 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
664 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
665 | ac_prev=cache_file ;; | |
666 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
667 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
668 | cache_file=$ac_optarg ;; | |
669 | ||
670 | --config-cache | -C) | |
671 | cache_file=config.cache ;; | |
672 | ||
673 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
674 | ac_prev=datadir ;; | |
675 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
676 | | --da=*) | |
677 | datadir=$ac_optarg ;; | |
678 | ||
679 | -disable-* | --disable-*) | |
680 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
681 | # Reject names that are not valid shell variable names. | |
682 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
683 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
684 | { (exit 1); exit 1; }; } | |
685 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
686 | eval "enable_$ac_feature=no" ;; | |
687 | ||
688 | -enable-* | --enable-*) | |
689 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
690 | # Reject names that are not valid shell variable names. | |
691 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
692 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
693 | { (exit 1); exit 1; }; } | |
694 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
695 | case $ac_option in | |
696 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
697 | *) ac_optarg=yes ;; | |
698 | esac | |
699 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
700 | ||
701 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
702 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
703 | | --exec | --exe | --ex) | |
704 | ac_prev=exec_prefix ;; | |
705 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
706 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
707 | | --exec=* | --exe=* | --ex=*) | |
708 | exec_prefix=$ac_optarg ;; | |
709 | ||
710 | -gas | --gas | --ga | --g) | |
711 | # Obsolete; use --with-gas. | |
712 | with_gas=yes ;; | |
713 | ||
714 | -help | --help | --hel | --he | -h) | |
715 | ac_init_help=long ;; | |
716 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
717 | ac_init_help=recursive ;; | |
718 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
719 | ac_init_help=short ;; | |
720 | ||
721 | -host | --host | --hos | --ho) | |
722 | ac_prev=host_alias ;; | |
723 | -host=* | --host=* | --hos=* | --ho=*) | |
724 | host_alias=$ac_optarg ;; | |
725 | ||
726 | -includedir | --includedir | --includedi | --included | --include \ | |
727 | | --includ | --inclu | --incl | --inc) | |
728 | ac_prev=includedir ;; | |
729 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
730 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
731 | includedir=$ac_optarg ;; | |
732 | ||
733 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
734 | ac_prev=infodir ;; | |
735 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
736 | infodir=$ac_optarg ;; | |
737 | ||
738 | -libdir | --libdir | --libdi | --libd) | |
739 | ac_prev=libdir ;; | |
740 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
741 | libdir=$ac_optarg ;; | |
742 | ||
743 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
744 | | --libexe | --libex | --libe) | |
745 | ac_prev=libexecdir ;; | |
746 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
747 | | --libexe=* | --libex=* | --libe=*) | |
748 | libexecdir=$ac_optarg ;; | |
749 | ||
750 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
751 | | --localstate | --localstat | --localsta | --localst \ | |
752 | | --locals | --local | --loca | --loc | --lo) | |
753 | ac_prev=localstatedir ;; | |
754 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
755 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
756 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
757 | localstatedir=$ac_optarg ;; | |
758 | ||
759 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
760 | ac_prev=mandir ;; | |
761 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
762 | mandir=$ac_optarg ;; | |
763 | ||
764 | -nfp | --nfp | --nf) | |
765 | # Obsolete; use --without-fp. | |
766 | with_fp=no ;; | |
767 | ||
768 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
769 | | --no-cr | --no-c | -n) | |
770 | no_create=yes ;; | |
771 | ||
772 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
773 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
774 | no_recursion=yes ;; | |
775 | ||
776 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
777 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
778 | | --oldin | --oldi | --old | --ol | --o) | |
779 | ac_prev=oldincludedir ;; | |
780 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
781 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
782 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
783 | oldincludedir=$ac_optarg ;; | |
784 | ||
785 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
786 | ac_prev=prefix ;; | |
787 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
788 | prefix=$ac_optarg ;; | |
789 | ||
790 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
791 | | --program-pre | --program-pr | --program-p) | |
792 | ac_prev=program_prefix ;; | |
793 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
794 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
795 | program_prefix=$ac_optarg ;; | |
796 | ||
797 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
798 | | --program-suf | --program-su | --program-s) | |
799 | ac_prev=program_suffix ;; | |
800 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
801 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
802 | program_suffix=$ac_optarg ;; | |
803 | ||
804 | -program-transform-name | --program-transform-name \ | |
805 | | --program-transform-nam | --program-transform-na \ | |
806 | | --program-transform-n | --program-transform- \ | |
807 | | --program-transform | --program-transfor \ | |
808 | | --program-transfo | --program-transf \ | |
809 | | --program-trans | --program-tran \ | |
810 | | --progr-tra | --program-tr | --program-t) | |
811 | ac_prev=program_transform_name ;; | |
812 | -program-transform-name=* | --program-transform-name=* \ | |
813 | | --program-transform-nam=* | --program-transform-na=* \ | |
814 | | --program-transform-n=* | --program-transform-=* \ | |
815 | | --program-transform=* | --program-transfor=* \ | |
816 | | --program-transfo=* | --program-transf=* \ | |
817 | | --program-trans=* | --program-tran=* \ | |
818 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
819 | program_transform_name=$ac_optarg ;; | |
820 | ||
821 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
822 | | -silent | --silent | --silen | --sile | --sil) | |
823 | silent=yes ;; | |
824 | ||
825 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
826 | ac_prev=sbindir ;; | |
827 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
828 | | --sbi=* | --sb=*) | |
829 | sbindir=$ac_optarg ;; | |
830 | ||
831 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
832 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
833 | | --sharedst | --shareds | --shared | --share | --shar \ | |
834 | | --sha | --sh) | |
835 | ac_prev=sharedstatedir ;; | |
836 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
837 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
838 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
839 | | --sha=* | --sh=*) | |
840 | sharedstatedir=$ac_optarg ;; | |
841 | ||
842 | -site | --site | --sit) | |
843 | ac_prev=site ;; | |
844 | -site=* | --site=* | --sit=*) | |
845 | site=$ac_optarg ;; | |
846 | ||
847 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
848 | ac_prev=srcdir ;; | |
849 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
850 | srcdir=$ac_optarg ;; | |
851 | ||
852 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
853 | | --syscon | --sysco | --sysc | --sys | --sy) | |
854 | ac_prev=sysconfdir ;; | |
855 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
856 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
857 | sysconfdir=$ac_optarg ;; | |
858 | ||
859 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
860 | ac_prev=target_alias ;; | |
861 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
862 | target_alias=$ac_optarg ;; | |
863 | ||
864 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
865 | verbose=yes ;; | |
866 | ||
867 | -version | --version | --versio | --versi | --vers | -V) | |
868 | ac_init_version=: ;; | |
869 | ||
870 | -with-* | --with-*) | |
871 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
872 | # Reject names that are not valid shell variable names. | |
873 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
874 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
875 | { (exit 1); exit 1; }; } | |
876 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
877 | case $ac_option in | |
878 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
879 | *) ac_optarg=yes ;; | |
880 | esac | |
881 | eval "with_$ac_package='$ac_optarg'" ;; | |
882 | ||
883 | -without-* | --without-*) | |
884 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
885 | # Reject names that are not valid shell variable names. | |
886 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
887 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
888 | { (exit 1); exit 1; }; } | |
889 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
890 | eval "with_$ac_package=no" ;; | |
891 | ||
892 | --x) | |
893 | # Obsolete; use --with-x. | |
894 | with_x=yes ;; | |
895 | ||
896 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
897 | | --x-incl | --x-inc | --x-in | --x-i) | |
898 | ac_prev=x_includes ;; | |
899 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
900 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
901 | x_includes=$ac_optarg ;; | |
902 | ||
903 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
904 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
905 | ac_prev=x_libraries ;; | |
906 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
907 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
908 | x_libraries=$ac_optarg ;; | |
909 | ||
910 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
911 | Try \`$0 --help' for more information." >&2 | |
912 | { (exit 1); exit 1; }; } | |
913 | ;; | |
914 | ||
915 | *=*) | |
916 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
917 | # Reject names that are not valid shell variable names. | |
918 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
919 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
920 | { (exit 1); exit 1; }; } | |
921 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
922 | eval "$ac_envvar='$ac_optarg'" | |
923 | export $ac_envvar ;; | |
924 | ||
925 | *) | |
926 | # FIXME: should be removed in autoconf 3.0. | |
927 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
928 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
929 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
930 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
931 | ;; | |
932 | ||
933 | esac | |
934 | done | |
935 | ||
936 | if test -n "$ac_prev"; then | |
937 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
938 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
939 | { (exit 1); exit 1; }; } | |
940 | fi | |
941 | ||
942 | # Be sure to have absolute paths. | |
943 | for ac_var in exec_prefix prefix | |
944 | do | |
945 | eval ac_val=$`echo $ac_var` | |
946 | case $ac_val in | |
947 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
948 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
949 | { (exit 1); exit 1; }; };; | |
950 | esac | |
951 | done | |
952 | ||
953 | # Be sure to have absolute paths. | |
954 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
955 | localstatedir libdir includedir oldincludedir infodir mandir | |
956 | do | |
957 | eval ac_val=$`echo $ac_var` | |
958 | case $ac_val in | |
959 | [\\/$]* | ?:[\\/]* ) ;; | |
960 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
961 | { (exit 1); exit 1; }; };; | |
962 | esac | |
963 | done | |
964 | ||
965 | # There might be people who depend on the old broken behavior: `$host' | |
966 | # used to hold the argument of --host etc. | |
967 | # FIXME: To remove some day. | |
968 | build=$build_alias | |
969 | host=$host_alias | |
970 | target=$target_alias | |
971 | ||
972 | # FIXME: To remove some day. | |
973 | if test "x$host_alias" != x; then | |
974 | if test "x$build_alias" = x; then | |
975 | cross_compiling=maybe | |
976 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
977 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
978 | elif test "x$build_alias" != "x$host_alias"; then | |
979 | cross_compiling=yes | |
980 | fi | |
981 | fi | |
982 | ||
983 | ac_tool_prefix= | |
984 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
985 | ||
986 | test "$silent" = yes && exec 6>/dev/null | |
987 | ||
988 | ||
989 | # Find the source files, if location was not specified. | |
990 | if test -z "$srcdir"; then | |
991 | ac_srcdir_defaulted=yes | |
992 | # Try the directory containing this script, then its parent. | |
993 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
994 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
995 | X"$0" : 'X\(//\)[^/]' \| \ | |
996 | X"$0" : 'X\(//\)$' \| \ | |
997 | X"$0" : 'X\(/\)' \| \ | |
998 | . : '\(.\)' 2>/dev/null || | |
999 | echo X"$0" | | |
1000 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
1001 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
1002 | /^X\(\/\/\)$/{ s//\1/; q; } | |
1003 | /^X\(\/\).*/{ s//\1/; q; } | |
1004 | s/.*/./; q'` | |
1005 | srcdir=$ac_confdir | |
1006 | if test ! -r $srcdir/$ac_unique_file; then | |
1007 | srcdir=.. | |
1008 | fi | |
1009 | else | |
1010 | ac_srcdir_defaulted=no | |
1011 | fi | |
1012 | if test ! -r $srcdir/$ac_unique_file; then | |
1013 | if test "$ac_srcdir_defaulted" = yes; then | |
1014 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
1015 | { (exit 1); exit 1; }; } | |
1016 | else | |
1017 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
1018 | { (exit 1); exit 1; }; } | |
1019 | fi | |
1020 | fi | |
1021 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
1022 | ac_env_build_alias_set=${build_alias+set} | |
1023 | ac_env_build_alias_value=$build_alias | |
1024 | ac_cv_env_build_alias_set=${build_alias+set} | |
1025 | ac_cv_env_build_alias_value=$build_alias | |
1026 | ac_env_host_alias_set=${host_alias+set} | |
1027 | ac_env_host_alias_value=$host_alias | |
1028 | ac_cv_env_host_alias_set=${host_alias+set} | |
1029 | ac_cv_env_host_alias_value=$host_alias | |
1030 | ac_env_target_alias_set=${target_alias+set} | |
1031 | ac_env_target_alias_value=$target_alias | |
1032 | ac_cv_env_target_alias_set=${target_alias+set} | |
1033 | ac_cv_env_target_alias_value=$target_alias | |
1034 | ac_env_CC_set=${CC+set} | |
1035 | ac_env_CC_value=$CC | |
1036 | ac_cv_env_CC_set=${CC+set} | |
1037 | ac_cv_env_CC_value=$CC | |
1038 | ac_env_CFLAGS_set=${CFLAGS+set} | |
1039 | ac_env_CFLAGS_value=$CFLAGS | |
1040 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
1041 | ac_cv_env_CFLAGS_value=$CFLAGS | |
1042 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
1043 | ac_env_LDFLAGS_value=$LDFLAGS | |
1044 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
1045 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
1046 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
1047 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
1048 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
1049 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
1050 | ac_env_CXX_set=${CXX+set} | |
1051 | ac_env_CXX_value=$CXX | |
1052 | ac_cv_env_CXX_set=${CXX+set} | |
1053 | ac_cv_env_CXX_value=$CXX | |
1054 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
1055 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
1056 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
1057 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
1058 | ac_env_CPP_set=${CPP+set} | |
1059 | ac_env_CPP_value=$CPP | |
1060 | ac_cv_env_CPP_set=${CPP+set} | |
1061 | ac_cv_env_CPP_value=$CPP | |
1062 | ac_env_CXXCPP_set=${CXXCPP+set} | |
1063 | ac_env_CXXCPP_value=$CXXCPP | |
1064 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
1065 | ac_cv_env_CXXCPP_value=$CXXCPP | |
1066 | ||
1067 | # | |
1068 | # Report the --help message. | |
1069 | # | |
1070 | if test "$ac_init_help" = "long"; then | |
1071 | # Omit some internal or obsolete options to make the list less imposing. | |
1072 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1073 | cat <<_ACEOF | |
1074 | \`configure' configures this package to adapt to many kinds of systems. | |
1075 | ||
1076 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1077 | ||
1078 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1079 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1080 | ||
1081 | Defaults for the options are specified in brackets. | |
1082 | ||
1083 | Configuration: | |
1084 | -h, --help display this help and exit | |
1085 | --help=short display options specific to this package | |
1086 | --help=recursive display the short help of all the included packages | |
1087 | -V, --version display version information and exit | |
1088 | -q, --quiet, --silent do not print \`checking...' messages | |
1089 | --cache-file=FILE cache test results in FILE [disabled] | |
1090 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1091 | -n, --no-create do not create output files | |
1092 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1093 | ||
1094 | _ACEOF | |
1095 | ||
1096 | cat <<_ACEOF | |
1097 | Installation directories: | |
1098 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1099 | [$ac_default_prefix] | |
1100 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1101 | [PREFIX] | |
1102 | ||
1103 | By default, \`make install' will install all the files in | |
1104 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1105 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1106 | for instance \`--prefix=\$HOME'. | |
1107 | ||
1108 | For better control, use the options below. | |
1109 | ||
1110 | Fine tuning of the installation directories: | |
1111 | --bindir=DIR user executables [EPREFIX/bin] | |
1112 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1113 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1114 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
1115 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1116 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1117 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1118 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1119 | --includedir=DIR C header files [PREFIX/include] | |
1120 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1121 | --infodir=DIR info documentation [PREFIX/info] | |
1122 | --mandir=DIR man documentation [PREFIX/man] | |
1123 | _ACEOF | |
1124 | ||
1125 | cat <<\_ACEOF | |
1126 | ||
1127 | Program names: | |
1128 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1129 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1130 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1131 | ||
1132 | System types: | |
1133 | --build=BUILD configure for building on BUILD [guessed] | |
1134 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1135 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1136 | _ACEOF | |
1137 | fi | |
1138 | ||
1139 | if test -n "$ac_init_help"; then | |
1140 | ||
1141 | cat <<\_ACEOF | |
1142 | ||
1143 | Optional Features: | |
1144 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1145 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1146 | --disable-dependency-tracking Speeds up one-time builds | |
1147 | --enable-dependency-tracking Do not reject slow dependency extractors | |
1148 | --enable-debug enables debug symbols default=no | |
1149 | --disable-debug disables debug output and debug symbols default=no | |
1150 | --enable-strict compiles with strict compiler options (may not work!) | |
1151 | --enable-profile creates profiling infos default=no | |
1152 | --enable-final build size optimized apps (experimental - needs lots of memory) | |
1153 | --disable-closure don't delay template instantiation | |
1154 | --enable-shared[=PKGS] | |
1155 | build shared libraries [default=yes] | |
1156 | --enable-static[=PKGS] | |
1157 | build static libraries [default=yes] | |
1158 | --enable-fast-install[=PKGS] | |
1159 | optimize for fast installation [default=yes] | |
1160 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1161 | ||
1162 | Optional Packages: | |
1163 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1164 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1165 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1166 | --with-pic try to use only PIC/non-PIC objects [default=use | |
1167 | both] | |
1168 | --with-tags=TAGS include additional configurations [CXX,GCJ] | |
1169 | ||
1170 | Some influential environment variables: | |
1171 | CC C compiler command | |
1172 | CFLAGS C compiler flags | |
1173 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1174 | nonstandard directory <lib dir> | |
1175 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1176 | headers in a nonstandard directory <include dir> | |
1177 | CXX C++ compiler command | |
1178 | CXXFLAGS C++ compiler flags | |
1179 | CPP C preprocessor | |
1180 | CXXCPP C++ preprocessor | |
1181 | ||
1182 | Use these variables to override the choices made by `configure' or to help | |
1183 | it to find libraries and programs with nonstandard names/locations. | |
1184 | ||
1185 | _ACEOF | |
1186 | fi | |
1187 | ||
1188 | if test "$ac_init_help" = "recursive"; then | |
1189 | # If there are subdirs, report their specific --help. | |
1190 | ac_popdir=`pwd` | |
1191 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1192 | test -d $ac_dir || continue | |
1193 | ac_builddir=. | |
1194 | ||
1195 | if test "$ac_dir" != .; then | |
1196 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1197 | # A "../" for each directory in $ac_dir_suffix. | |
1198 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1199 | else | |
1200 | ac_dir_suffix= ac_top_builddir= | |
1201 | fi | |
1202 | ||
1203 | case $srcdir in | |
1204 | .) # No --srcdir option. We are building in place. | |
1205 | ac_srcdir=. | |
1206 | if test -z "$ac_top_builddir"; then | |
1207 | ac_top_srcdir=. | |
1208 | else | |
1209 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1210 | fi ;; | |
1211 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1212 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1213 | ac_top_srcdir=$srcdir ;; | |
1214 | *) # Relative path. | |
1215 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1216 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1217 | esac | |
1218 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
1219 | # absolute. | |
1220 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
1221 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | |
1222 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
1223 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
1224 | ||
1225 | cd $ac_dir | |
1226 | # Check for guested configure; otherwise get Cygnus style configure. | |
1227 | if test -f $ac_srcdir/configure.gnu; then | |
1228 | echo | |
1229 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1230 | elif test -f $ac_srcdir/configure; then | |
1231 | echo | |
1232 | $SHELL $ac_srcdir/configure --help=recursive | |
1233 | elif test -f $ac_srcdir/configure.ac || | |
1234 | test -f $ac_srcdir/configure.in; then | |
1235 | echo | |
1236 | $ac_configure --help | |
1237 | else | |
1238 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1239 | fi | |
1240 | cd $ac_popdir | |
1241 | done | |
1242 | fi | |
1243 | ||
1244 | test -n "$ac_init_help" && exit 0 | |
1245 | if $ac_init_version; then | |
1246 | cat <<\_ACEOF | |
1247 | ||
1248 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | |
1249 | Free Software Foundation, Inc. | |
1250 | This configure script is free software; the Free Software Foundation | |
1251 | gives unlimited permission to copy, distribute and modify it. | |
1252 | _ACEOF | |
1253 | exit 0 | |
1254 | fi | |
1255 | exec 5>config.log | |
1256 | cat >&5 <<_ACEOF | |
1257 | This file contains any messages produced by compilers while | |
1258 | running configure, to aid debugging if configure makes a mistake. | |
1259 | ||
1260 | It was created by $as_me, which was | |
1261 | generated by GNU Autoconf 2.53. Invocation command line was | |
1262 | ||
1263 | $ $0 $@ | |
1264 | ||
1265 | _ACEOF | |
1266 | { | |
1267 | cat <<_ASUNAME | |
1268 | ## --------- ## | |
1269 | ## Platform. ## | |
1270 | ## --------- ## | |
1271 | ||
1272 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1273 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1274 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1275 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1276 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1277 | ||
1278 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1279 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1280 | ||
1281 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1282 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1283 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1284 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1285 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1286 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1287 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1288 | ||
1289 | _ASUNAME | |
1290 | ||
1291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1292 | for as_dir in $PATH | |
1293 | do | |
1294 | IFS=$as_save_IFS | |
1295 | test -z "$as_dir" && as_dir=. | |
1296 | echo "PATH: $as_dir" | |
1297 | done | |
1298 | ||
1299 | } >&5 | |
1300 | ||
1301 | cat >&5 <<_ACEOF | |
1302 | ||
1303 | ||
1304 | ## ----------- ## | |
1305 | ## Core tests. ## | |
1306 | ## ----------- ## | |
1307 | ||
1308 | _ACEOF | |
1309 | ||
1310 | ||
1311 | # Keep a trace of the command line. | |
1312 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1313 | # Also quote any args containing shell meta-characters. | |
1314 | ac_configure_args= | |
1315 | ac_sep= | |
1316 | for ac_arg | |
1317 | do | |
1318 | case $ac_arg in | |
1319 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1320 | | --no-cr | --no-c | -n ) continue ;; | |
1321 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1322 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1323 | continue ;; | |
1324 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1325 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1326 | esac | |
1327 | case " $ac_configure_args " in | |
1328 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1329 | *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1330 | ac_sep=" " ;; | |
1331 | esac | |
1332 | # Get rid of the leading space. | |
1333 | done | |
1334 | ||
1335 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1336 | # config.log. We remove comments because anyway the quotes in there | |
1337 | # would cause problems or look ugly. | |
1338 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1339 | # such as our DU 5.0 friend, will then `close' the trap. | |
1340 | trap 'exit_status=$? | |
1341 | # Save into config.log some information that might help in debugging. | |
1342 | { | |
1343 | echo | |
1344 | cat <<\_ASBOX | |
1345 | ## ---------------- ## | |
1346 | ## Cache variables. ## | |
1347 | ## ---------------- ## | |
1348 | _ASBOX | |
1349 | echo | |
1350 | # The following way of writing the cache mishandles newlines in values, | |
1351 | { | |
1352 | (set) 2>&1 | | |
1353 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1354 | *ac_space=\ *) | |
1355 | sed -n \ | |
1356 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1357 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1358 | ;; | |
1359 | *) | |
1360 | sed -n \ | |
1361 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1362 | ;; | |
1363 | esac; | |
1364 | } | |
1365 | echo | |
1366 | if test -s confdefs.h; then | |
1367 | cat <<\_ASBOX | |
1368 | ## ----------- ## | |
1369 | ## confdefs.h. ## | |
1370 | ## ----------- ## | |
1371 | _ASBOX | |
1372 | echo | |
1373 | sed "/^$/d" confdefs.h | |
1374 | echo | |
1375 | fi | |
1376 | test "$ac_signal" != 0 && | |
1377 | echo "$as_me: caught signal $ac_signal" | |
1378 | echo "$as_me: exit $exit_status" | |
1379 | } >&5 | |
1380 | rm -f core core.* *.core && | |
1381 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1382 | exit $exit_status | |
1383 | ' 0 | |
1384 | for ac_signal in 1 2 13 15; do | |
1385 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1386 | done | |
1387 | ac_signal=0 | |
1388 | ||
1389 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1390 | rm -rf conftest* confdefs.h | |
1391 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1392 | echo >confdefs.h | |
1393 | ||
1394 | # Predefined preprocessor variables. | |
1395 | ||
1396 | cat >>confdefs.h <<_ACEOF | |
1397 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1398 | _ACEOF | |
1399 | ||
1400 | ||
1401 | cat >>confdefs.h <<_ACEOF | |
1402 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1403 | _ACEOF | |
1404 | ||
1405 | ||
1406 | cat >>confdefs.h <<_ACEOF | |
1407 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1408 | _ACEOF | |
1409 | ||
1410 | ||
1411 | cat >>confdefs.h <<_ACEOF | |
1412 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1413 | _ACEOF | |
1414 | ||
1415 | ||
1416 | cat >>confdefs.h <<_ACEOF | |
1417 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1418 | _ACEOF | |
1419 | ||
1420 | ||
1421 | # Let the site file select an alternate cache file if it wants to. | |
1422 | # Prefer explicitly selected file to automatically selected ones. | |
1423 | if test -z "$CONFIG_SITE"; then | |
1424 | if test "x$prefix" != xNONE; then | |
1425 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1426 | else | |
1427 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1428 | fi | |
1429 | fi | |
1430 | for ac_site_file in $CONFIG_SITE; do | |
1431 | if test -r "$ac_site_file"; then | |
1432 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1433 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1434 | sed 's/^/| /' "$ac_site_file" >&5 | |
1435 | . "$ac_site_file" | |
1436 | fi | |
1437 | done | |
1438 | ||
1439 | if test -r "$cache_file"; then | |
1440 | # Some versions of bash will fail to source /dev/null (special | |
1441 | # files actually), so we avoid doing that. | |
1442 | if test -f "$cache_file"; then | |
1443 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1444 | echo "$as_me: loading cache $cache_file" >&6;} | |
1445 | case $cache_file in | |
1446 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1447 | *) . ./$cache_file;; | |
1448 | esac | |
1449 | fi | |
1450 | else | |
1451 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1452 | echo "$as_me: creating cache $cache_file" >&6;} | |
1453 | >$cache_file | |
1454 | fi | |
1455 | ||
1456 | # Check that the precious variables saved in the cache have kept the same | |
1457 | # value. | |
1458 | ac_cache_corrupted=false | |
1459 | for ac_var in `(set) 2>&1 | | |
1460 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1461 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1462 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1463 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1464 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1465 | case $ac_old_set,$ac_new_set in | |
1466 | set,) | |
1467 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1468 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1469 | ac_cache_corrupted=: ;; | |
1470 | ,set) | |
1471 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1472 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1473 | ac_cache_corrupted=: ;; | |
1474 | ,);; | |
1475 | *) | |
1476 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1477 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1478 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1479 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1480 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1481 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1482 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1483 | ac_cache_corrupted=: | |
1484 | fi;; | |
1485 | esac | |
1486 | # Pass precious variables to config.status. | |
1487 | if test "$ac_new_set" = set; then | |
1488 | case $ac_new_val in | |
1489 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1490 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1491 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1492 | esac | |
1493 | case " $ac_configure_args " in | |
1494 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1495 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1496 | esac | |
1497 | fi | |
1498 | done | |
1499 | if $ac_cache_corrupted; then | |
1500 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1501 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1502 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1503 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1504 | { (exit 1); exit 1; }; } | |
1505 | fi | |
1506 | ||
1507 | ac_ext=c | |
1508 | ac_cpp='$CPP $CPPFLAGS' | |
1509 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1510 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1511 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1512 | ||
1513 | ||
1514 | ||
1515 | ||
1516 | ||
1517 | ||
1518 | ||
1519 | ||
1520 | ||
1521 | ||
1522 | ||
1523 | ||
1524 | ||
1525 | ||
1526 | ||
1527 | ||
1528 | ||
1529 | ||
1530 | ac_aux_dir= | |
1531 | for ac_dir in admin $srcdir/admin; do | |
1532 | if test -f $ac_dir/install-sh; then | |
1533 | ac_aux_dir=$ac_dir | |
1534 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1535 | break | |
1536 | elif test -f $ac_dir/install.sh; then | |
1537 | ac_aux_dir=$ac_dir | |
1538 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1539 | break | |
1540 | elif test -f $ac_dir/shtool; then | |
1541 | ac_aux_dir=$ac_dir | |
1542 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1543 | break | |
1544 | fi | |
1545 | done | |
1546 | if test -z "$ac_aux_dir"; then | |
1547 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&5 | |
1548 | echo "$as_me: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&2;} | |
1549 | { (exit 1); exit 1; }; } | |
1550 | fi | |
1551 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1552 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1553 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1554 | ||
1555 | ||
1556 | unset CDPATH | |
1557 | ||
1558 | # Make sure we can run config.sub. | |
1559 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1560 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1561 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1562 | { (exit 1); exit 1; }; } | |
1563 | ||
1564 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1565 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1566 | if test "${ac_cv_build+set}" = set; then | |
1567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1568 | else | |
1569 | ac_cv_build_alias=$build_alias | |
1570 | test -z "$ac_cv_build_alias" && | |
1571 | ac_cv_build_alias=`$ac_config_guess` | |
1572 | test -z "$ac_cv_build_alias" && | |
1573 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1574 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1575 | { (exit 1); exit 1; }; } | |
1576 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1577 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1578 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1579 | { (exit 1); exit 1; }; } | |
1580 | ||
1581 | fi | |
1582 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1583 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1584 | build=$ac_cv_build | |
1585 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1586 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1587 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1588 | ||
1589 | ||
1590 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1591 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1592 | if test "${ac_cv_host+set}" = set; then | |
1593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1594 | else | |
1595 | ac_cv_host_alias=$host_alias | |
1596 | test -z "$ac_cv_host_alias" && | |
1597 | ac_cv_host_alias=$ac_cv_build_alias | |
1598 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1599 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1600 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1601 | { (exit 1); exit 1; }; } | |
1602 | ||
1603 | fi | |
1604 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1605 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1606 | host=$ac_cv_host | |
1607 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1608 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1609 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1610 | ||
1611 | ||
1612 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1613 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1614 | if test "${ac_cv_target+set}" = set; then | |
1615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1616 | else | |
1617 | ac_cv_target_alias=$target_alias | |
1618 | test "x$ac_cv_target_alias" = "x" && | |
1619 | ac_cv_target_alias=$ac_cv_host_alias | |
1620 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1621 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1622 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1623 | { (exit 1); exit 1; }; } | |
1624 | ||
1625 | fi | |
1626 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1627 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1628 | target=$ac_cv_target | |
1629 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1630 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1631 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1632 | ||
1633 | ||
1634 | # The aliases save the names the user supplied, while $host etc. | |
1635 | # will get canonicalized. | |
1636 | test -n "$target_alias" && | |
1637 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1638 | NONENONEs,x,x, && | |
1639 | program_prefix=${target_alias}- | |
1640 | test "$program_prefix" != NONE && | |
1641 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1642 | # Use a double $ so make ignores it. | |
1643 | test "$program_suffix" != NONE && | |
1644 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1645 | # Double any \ or $. echo might interpret backslashes. | |
1646 | # By default was `s,x,x', remove it if useless. | |
1647 | cat <<\_ACEOF >conftest.sed | |
1648 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1649 | _ACEOF | |
1650 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1651 | rm conftest.sed | |
1652 | ||
1653 | ||
1654 | ||
1655 | ||
1656 | test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL | |
1657 | test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM | |
1658 | test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT | |
1659 | # Find a good install program. We prefer a C program (faster), | |
1660 | # so one script is as good as another. But avoid the broken or | |
1661 | # incompatible versions: | |
1662 | # SysV /etc/install, /usr/sbin/install | |
1663 | # SunOS /usr/etc/install | |
1664 | # IRIX /sbin/install | |
1665 | # AIX /bin/install | |
1666 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1667 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1668 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1669 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1670 | # ./install, which can be erroneously created by make from ./install.sh. | |
1671 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1672 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1673 | if test -z "$INSTALL"; then | |
1674 | if test "${ac_cv_path_install+set}" = set; then | |
1675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1676 | else | |
1677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1678 | for as_dir in $PATH | |
1679 | do | |
1680 | IFS=$as_save_IFS | |
1681 | test -z "$as_dir" && as_dir=. | |
1682 | # Account for people who put trailing slashes in PATH elements. | |
1683 | case $as_dir/ in | |
1684 | ./ | .// | /cC/* | \ | |
1685 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1686 | /usr/ucb/* ) ;; | |
1687 | *) | |
1688 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1689 | # Don't use installbsd from OSF since it installs stuff as root | |
1690 | # by default. | |
1691 | for ac_prog in ginstall scoinst install; do | |
1692 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1693 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
1694 | if test $ac_prog = install && | |
1695 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1696 | # AIX install. It has an incompatible calling convention. | |
1697 | : | |
1698 | elif test $ac_prog = install && | |
1699 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1700 | # program-specific install script used by HP pwplus--don't use. | |
1701 | : | |
1702 | else | |
1703 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1704 | break 3 | |
1705 | fi | |
1706 | fi | |
1707 | done | |
1708 | done | |
1709 | ;; | |
1710 | esac | |
1711 | done | |
1712 | ||
1713 | ||
1714 | fi | |
1715 | if test "${ac_cv_path_install+set}" = set; then | |
1716 | INSTALL=$ac_cv_path_install | |
1717 | else | |
1718 | # As a last resort, use the slow shell script. We don't cache a | |
1719 | # path for INSTALL within a source directory, because that will | |
1720 | # break other packages using the cache if that directory is | |
1721 | # removed, or if the path is relative. | |
1722 | INSTALL=$ac_install_sh | |
1723 | fi | |
1724 | fi | |
1725 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1726 | echo "${ECHO_T}$INSTALL" >&6 | |
1727 | ||
1728 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1729 | # It thinks the first close brace ends the variable substitution. | |
1730 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1731 | ||
1732 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1733 | ||
1734 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1735 | ||
1736 | ||
1737 | if test -z "$kde_save_INSTALL_given" ; then | |
1738 | # OK, user hasn't given any INSTALL, autoconf found one for us | |
1739 | # now we test, if it supports the -p flag | |
1740 | echo "$as_me:$LINENO: checking for -p flag to install" >&5 | |
1741 | echo $ECHO_N "checking for -p flag to install... $ECHO_C" >&6 | |
1742 | rm -f confinst.$$.* > /dev/null 2>&1 | |
1743 | echo "Testtest" > confinst.$$.orig | |
1744 | ac_res=no | |
1745 | if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then | |
1746 | if test -f confinst.$$.new ; then | |
1747 | # OK, -p seems to do no harm to install | |
1748 | INSTALL="${INSTALL} -p" | |
1749 | ac_res=yes | |
1750 | fi | |
1751 | fi | |
1752 | rm -f confinst.$$.* | |
1753 | echo "$as_me:$LINENO: result: $ac_res" >&5 | |
1754 | echo "${ECHO_T}$ac_res" >&6 | |
1755 | fi | |
1756 | ||
1757 | if test -z "$kde_save_INSTALL_PROGRAM_given" ; then | |
1758 | INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)' | |
1759 | fi | |
1760 | if test -z "$kde_save_INSTALL_SCRIPT_given" ; then | |
1761 | INSTALL_SCRIPT='${INSTALL}' | |
1762 | fi | |
1763 | ||
1764 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
1765 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1766 | # Just in case | |
1767 | sleep 1 | |
1768 | echo timestamp > conftest.file | |
1769 | # Do `set' in a subshell so we don't clobber the current shell's | |
1770 | # arguments. Must try -L first in case configure is actually a | |
1771 | # symlink; some systems play weird games with the mod time of symlinks | |
1772 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1773 | # directory). | |
1774 | if ( | |
1775 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1776 | if test "$*" = "X"; then | |
1777 | # -L didn't work. | |
1778 | set X `ls -t $srcdir/configure conftest.file` | |
1779 | fi | |
1780 | rm -f conftest.file | |
1781 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1782 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
1783 | ||
1784 | # If neither matched, then we have a broken ls. This can happen | |
1785 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1786 | # broken ls alias from the environment. This has actually | |
1787 | # happened. Such a system could not be considered "sane". | |
1788 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1789 | alias in your environment" >&5 | |
1790 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1791 | alias in your environment" >&2;} | |
1792 | { (exit 1); exit 1; }; } | |
1793 | fi | |
1794 | ||
1795 | test "$2" = conftest.file | |
1796 | ) | |
1797 | then | |
1798 | # Ok. | |
1799 | : | |
1800 | else | |
1801 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1802 | Check your system clock" >&5 | |
1803 | echo "$as_me: error: newly created file is older than distributed files! | |
1804 | Check your system clock" >&2;} | |
1805 | { (exit 1); exit 1; }; } | |
1806 | fi | |
1807 | echo "$as_me:$LINENO: result: yes" >&5 | |
1808 | echo "${ECHO_T}yes" >&6 | |
1809 | ||
1810 | # expand $ac_aux_dir to an absolute path | |
1811 | am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd` | |
1812 | ||
1813 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1814 | # Use eval to expand $SHELL | |
1815 | if eval "$MISSING --run true"; then | |
1816 | am_missing_run="$MISSING --run " | |
1817 | else | |
1818 | am_missing_run= | |
1819 | am_backtick='`' | |
1820 | { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5 | |
1821 | echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;} | |
1822 | fi | |
1823 | ||
1824 | for ac_prog in gawk mawk nawk awk | |
1825 | do | |
1826 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1827 | set dummy $ac_prog; ac_word=$2 | |
1828 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1829 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1830 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1832 | else | |
1833 | if test -n "$AWK"; then | |
1834 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1835 | else | |
1836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1837 | for as_dir in $PATH | |
1838 | do | |
1839 | IFS=$as_save_IFS | |
1840 | test -z "$as_dir" && as_dir=. | |
1841 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1842 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1843 | ac_cv_prog_AWK="$ac_prog" | |
1844 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1845 | break 2 | |
1846 | fi | |
1847 | done | |
1848 | done | |
1849 | ||
1850 | fi | |
1851 | fi | |
1852 | AWK=$ac_cv_prog_AWK | |
1853 | if test -n "$AWK"; then | |
1854 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
1855 | echo "${ECHO_T}$AWK" >&6 | |
1856 | else | |
1857 | echo "$as_me:$LINENO: result: no" >&5 | |
1858 | echo "${ECHO_T}no" >&6 | |
1859 | fi | |
1860 | ||
1861 | test -n "$AWK" && break | |
1862 | done | |
1863 | ||
1864 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
1865 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 | |
1866 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
1867 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1868 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1869 | else | |
1870 | cat >conftest.make <<\_ACEOF | |
1871 | all: | |
1872 | @echo 'ac_maketemp="${MAKE}"' | |
1873 | _ACEOF | |
1874 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1875 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1876 | if test -n "$ac_maketemp"; then | |
1877 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1878 | else | |
1879 | eval ac_cv_prog_make_${ac_make}_set=no | |
1880 | fi | |
1881 | rm -f conftest.make | |
1882 | fi | |
1883 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1884 | echo "$as_me:$LINENO: result: yes" >&5 | |
1885 | echo "${ECHO_T}yes" >&6 | |
1886 | SET_MAKE= | |
1887 | else | |
1888 | echo "$as_me:$LINENO: result: no" >&5 | |
1889 | echo "${ECHO_T}no" >&6 | |
1890 | SET_MAKE="MAKE=${MAKE-make}" | |
1891 | fi | |
1892 | ||
1893 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
1894 | if test "${enable_dependency_tracking+set}" = set; then | |
1895 | enableval="$enable_dependency_tracking" | |
1896 | ||
1897 | fi; | |
1898 | if test "x$enable_dependency_tracking" != xno; then | |
1899 | am_depcomp="$ac_aux_dir/depcomp" | |
1900 | AMDEPBACKSLASH='\' | |
1901 | fi | |
1902 | ||
1903 | ||
1904 | if test "x$enable_dependency_tracking" != xno; then | |
1905 | AMDEP_TRUE= | |
1906 | AMDEP_FALSE='#' | |
1907 | else | |
1908 | AMDEP_TRUE='#' | |
1909 | AMDEP_FALSE= | |
1910 | fi | |
1911 | ||
1912 | ||
1913 | ||
1914 | ||
1915 | rm -f .deps 2>/dev/null | |
1916 | mkdir .deps 2>/dev/null | |
1917 | if test -d .deps; then | |
1918 | DEPDIR=.deps | |
1919 | else | |
1920 | # MS-DOS does not allow filenames that begin with a dot. | |
1921 | DEPDIR=_deps | |
1922 | fi | |
1923 | rmdir .deps 2>/dev/null | |
1924 | ||
1925 | ||
1926 | # test to see if srcdir already configured | |
1927 | if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" && | |
1928 | test -f $srcdir/config.status; then | |
1929 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
1930 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1931 | { (exit 1); exit 1; }; } | |
1932 | fi | |
1933 | ||
1934 | # Define the identity of the package. | |
1935 | PACKAGE=libftdi | |
1936 | VERSION=0.1 | |
1937 | ||
1938 | cat >>confdefs.h <<_ACEOF | |
1939 | #define PACKAGE "$PACKAGE" | |
1940 | _ACEOF | |
1941 | ||
1942 | ||
1943 | cat >>confdefs.h <<_ACEOF | |
1944 | #define VERSION "$VERSION" | |
1945 | _ACEOF | |
1946 | ||
1947 | ||
1948 | # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow | |
1949 | # the ones we care about. | |
1950 | ||
1951 | # Autoconf 2.50 always computes EXEEXT. However we need to be | |
1952 | # compatible with 2.13, for now. So we always define EXEEXT, but we | |
1953 | # don't compute it. | |
1954 | ||
1955 | # Similar for OBJEXT -- only we only use OBJEXT if the user actually | |
1956 | # requests that it be used. This is a bit dumb. | |
1957 | : ${OBJEXT=o} | |
1958 | ||
1959 | ||
1960 | # Some tools Automake needs. | |
1961 | ||
1962 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} | |
1963 | ||
1964 | ||
1965 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
1966 | ||
1967 | ||
1968 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} | |
1969 | ||
1970 | ||
1971 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
1972 | ||
1973 | ||
1974 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
1975 | ||
1976 | ||
1977 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
1978 | ||
1979 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
1980 | ||
1981 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
1982 | ||
1983 | # We need awk for the "check" target. The system "awk" is bad on | |
1984 | # some platforms. | |
1985 | ||
1986 | unset CDPATH | |
1987 | ||
1988 | ||
1989 | if test "x$prefix" = "xNONE"; then | |
1990 | prefix=$ac_default_prefix | |
1991 | ac_configure_args="$ac_configure_args --prefix $prefix" | |
1992 | fi | |
1993 | ||
1994 | ||
1995 | ||
1996 | ||
1997 | ac_config_headers="$ac_config_headers config.h" | |
1998 | ||
1999 | ||
2000 | ||
2001 | ac_config_commands="$ac_config_commands default-1" | |
2002 | ||
2003 | am_make=${MAKE-make} | |
2004 | cat > confinc << 'END' | |
2005 | doit: | |
2006 | @echo done | |
2007 | END | |
2008 | # If we don't find an include directive, just comment out the code. | |
2009 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2010 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2011 | am__include='#' | |
2012 | am__quote= | |
2013 | _am_result=none | |
2014 | # First try GNU make style include. | |
2015 | echo "include confinc" > confmf | |
2016 | # We grep out `Entering directory' and `Leaving directory' | |
2017 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2018 | # In particular we don't look at `^make:' because GNU make might | |
2019 | # be invoked under some other name (usually "gmake"), in which | |
2020 | # case it prints its new name instead of `make'. | |
2021 | if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then | |
2022 | am__include=include | |
2023 | am__quote= | |
2024 | _am_result=GNU | |
2025 | fi | |
2026 | # Now try BSD make style include. | |
2027 | if test "$am__include" = "#"; then | |
2028 | echo '.include "confinc"' > confmf | |
2029 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2030 | am__include=.include | |
2031 | am__quote='"' | |
2032 | _am_result=BSD | |
2033 | fi | |
2034 | fi | |
2035 | ||
2036 | ||
2037 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2038 | echo "${ECHO_T}$_am_result" >&6 | |
2039 | rm -f confinc confmf | |
2040 | ||
2041 | ac_ext=cc | |
2042 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2043 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2044 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2045 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
2046 | if test -n "$ac_tool_prefix"; then | |
2047 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
2048 | do | |
2049 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2050 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2051 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2052 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2053 | if test "${ac_cv_prog_CXX+set}" = set; then | |
2054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2055 | else | |
2056 | if test -n "$CXX"; then | |
2057 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
2058 | else | |
2059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2060 | for as_dir in $PATH | |
2061 | do | |
2062 | IFS=$as_save_IFS | |
2063 | test -z "$as_dir" && as_dir=. | |
2064 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2065 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2066 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
2067 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2068 | break 2 | |
2069 | fi | |
2070 | done | |
2071 | done | |
2072 | ||
2073 | fi | |
2074 | fi | |
2075 | CXX=$ac_cv_prog_CXX | |
2076 | if test -n "$CXX"; then | |
2077 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
2078 | echo "${ECHO_T}$CXX" >&6 | |
2079 | else | |
2080 | echo "$as_me:$LINENO: result: no" >&5 | |
2081 | echo "${ECHO_T}no" >&6 | |
2082 | fi | |
2083 | ||
2084 | test -n "$CXX" && break | |
2085 | done | |
2086 | fi | |
2087 | if test -z "$CXX"; then | |
2088 | ac_ct_CXX=$CXX | |
2089 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
2090 | do | |
2091 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2092 | set dummy $ac_prog; ac_word=$2 | |
2093 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2094 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2095 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
2096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2097 | else | |
2098 | if test -n "$ac_ct_CXX"; then | |
2099 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
2100 | else | |
2101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2102 | for as_dir in $PATH | |
2103 | do | |
2104 | IFS=$as_save_IFS | |
2105 | test -z "$as_dir" && as_dir=. | |
2106 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2107 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2108 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
2109 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2110 | break 2 | |
2111 | fi | |
2112 | done | |
2113 | done | |
2114 | ||
2115 | fi | |
2116 | fi | |
2117 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
2118 | if test -n "$ac_ct_CXX"; then | |
2119 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
2120 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
2121 | else | |
2122 | echo "$as_me:$LINENO: result: no" >&5 | |
2123 | echo "${ECHO_T}no" >&6 | |
2124 | fi | |
2125 | ||
2126 | test -n "$ac_ct_CXX" && break | |
2127 | done | |
2128 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
2129 | ||
2130 | CXX=$ac_ct_CXX | |
2131 | fi | |
2132 | ||
2133 | ||
2134 | # Provide some information about the compiler. | |
2135 | echo "$as_me:$LINENO:" \ | |
2136 | "checking for C++ compiler version" >&5 | |
2137 | ac_compiler=`set X $ac_compile; echo $2` | |
2138 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2139 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2140 | ac_status=$? | |
2141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2142 | (exit $ac_status); } | |
2143 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2144 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2145 | ac_status=$? | |
2146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2147 | (exit $ac_status); } | |
2148 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2149 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2150 | ac_status=$? | |
2151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2152 | (exit $ac_status); } | |
2153 | ||
2154 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
2155 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
2156 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
2157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2158 | else | |
2159 | cat >conftest.$ac_ext <<_ACEOF | |
2160 | #line $LINENO "configure" | |
2161 | #include "confdefs.h" | |
2162 | ||
2163 | #ifdef F77_DUMMY_MAIN | |
2164 | # ifdef __cplusplus | |
2165 | extern "C" | |
2166 | # endif | |
2167 | int F77_DUMMY_MAIN() { return 1; } | |
2168 | #endif | |
2169 | int | |
2170 | main () | |
2171 | { | |
2172 | #ifndef __GNUC__ | |
2173 | choke me | |
2174 | #endif | |
2175 | ||
2176 | ; | |
2177 | return 0; | |
2178 | } | |
2179 | _ACEOF | |
2180 | rm -f conftest.$ac_objext | |
2181 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2182 | (eval $ac_compile) 2>&5 | |
2183 | ac_status=$? | |
2184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2185 | (exit $ac_status); } && | |
2186 | { ac_try='test -s conftest.$ac_objext' | |
2187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2188 | (eval $ac_try) 2>&5 | |
2189 | ac_status=$? | |
2190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2191 | (exit $ac_status); }; }; then | |
2192 | ac_compiler_gnu=yes | |
2193 | else | |
2194 | echo "$as_me: failed program was:" >&5 | |
2195 | cat conftest.$ac_ext >&5 | |
2196 | ac_compiler_gnu=no | |
2197 | fi | |
2198 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2199 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
2200 | ||
2201 | fi | |
2202 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
2203 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
2204 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
2205 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
2206 | ac_save_CXXFLAGS=$CXXFLAGS | |
2207 | CXXFLAGS="-g" | |
2208 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
2209 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
2210 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
2211 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2212 | else | |
2213 | cat >conftest.$ac_ext <<_ACEOF | |
2214 | #line $LINENO "configure" | |
2215 | #include "confdefs.h" | |
2216 | ||
2217 | #ifdef F77_DUMMY_MAIN | |
2218 | # ifdef __cplusplus | |
2219 | extern "C" | |
2220 | # endif | |
2221 | int F77_DUMMY_MAIN() { return 1; } | |
2222 | #endif | |
2223 | int | |
2224 | main () | |
2225 | { | |
2226 | ||
2227 | ; | |
2228 | return 0; | |
2229 | } | |
2230 | _ACEOF | |
2231 | rm -f conftest.$ac_objext | |
2232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2233 | (eval $ac_compile) 2>&5 | |
2234 | ac_status=$? | |
2235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2236 | (exit $ac_status); } && | |
2237 | { ac_try='test -s conftest.$ac_objext' | |
2238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2239 | (eval $ac_try) 2>&5 | |
2240 | ac_status=$? | |
2241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2242 | (exit $ac_status); }; }; then | |
2243 | ac_cv_prog_cxx_g=yes | |
2244 | else | |
2245 | echo "$as_me: failed program was:" >&5 | |
2246 | cat conftest.$ac_ext >&5 | |
2247 | ac_cv_prog_cxx_g=no | |
2248 | fi | |
2249 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2250 | fi | |
2251 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
2252 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
2253 | if test "$ac_test_CXXFLAGS" = set; then | |
2254 | CXXFLAGS=$ac_save_CXXFLAGS | |
2255 | elif test $ac_cv_prog_cxx_g = yes; then | |
2256 | if test "$GXX" = yes; then | |
2257 | CXXFLAGS="-g -O2" | |
2258 | else | |
2259 | CXXFLAGS="-g" | |
2260 | fi | |
2261 | else | |
2262 | if test "$GXX" = yes; then | |
2263 | CXXFLAGS="-O2" | |
2264 | else | |
2265 | CXXFLAGS= | |
2266 | fi | |
2267 | fi | |
2268 | for ac_declaration in \ | |
2269 | ''\ | |
2270 | '#include <stdlib.h>' \ | |
2271 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2272 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2273 | 'extern "C" void exit (int) throw ();' \ | |
2274 | 'extern "C" void exit (int);' \ | |
2275 | 'void exit (int);' | |
2276 | do | |
2277 | cat >conftest.$ac_ext <<_ACEOF | |
2278 | #line $LINENO "configure" | |
2279 | #include "confdefs.h" | |
2280 | #include <stdlib.h> | |
2281 | $ac_declaration | |
2282 | #ifdef F77_DUMMY_MAIN | |
2283 | # ifdef __cplusplus | |
2284 | extern "C" | |
2285 | # endif | |
2286 | int F77_DUMMY_MAIN() { return 1; } | |
2287 | #endif | |
2288 | int | |
2289 | main () | |
2290 | { | |
2291 | exit (42); | |
2292 | ; | |
2293 | return 0; | |
2294 | } | |
2295 | _ACEOF | |
2296 | rm -f conftest.$ac_objext | |
2297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2298 | (eval $ac_compile) 2>&5 | |
2299 | ac_status=$? | |
2300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2301 | (exit $ac_status); } && | |
2302 | { ac_try='test -s conftest.$ac_objext' | |
2303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2304 | (eval $ac_try) 2>&5 | |
2305 | ac_status=$? | |
2306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2307 | (exit $ac_status); }; }; then | |
2308 | : | |
2309 | else | |
2310 | echo "$as_me: failed program was:" >&5 | |
2311 | cat conftest.$ac_ext >&5 | |
2312 | continue | |
2313 | fi | |
2314 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2315 | cat >conftest.$ac_ext <<_ACEOF | |
2316 | #line $LINENO "configure" | |
2317 | #include "confdefs.h" | |
2318 | $ac_declaration | |
2319 | #ifdef F77_DUMMY_MAIN | |
2320 | # ifdef __cplusplus | |
2321 | extern "C" | |
2322 | # endif | |
2323 | int F77_DUMMY_MAIN() { return 1; } | |
2324 | #endif | |
2325 | int | |
2326 | main () | |
2327 | { | |
2328 | exit (42); | |
2329 | ; | |
2330 | return 0; | |
2331 | } | |
2332 | _ACEOF | |
2333 | rm -f conftest.$ac_objext | |
2334 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2335 | (eval $ac_compile) 2>&5 | |
2336 | ac_status=$? | |
2337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2338 | (exit $ac_status); } && | |
2339 | { ac_try='test -s conftest.$ac_objext' | |
2340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2341 | (eval $ac_try) 2>&5 | |
2342 | ac_status=$? | |
2343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2344 | (exit $ac_status); }; }; then | |
2345 | break | |
2346 | else | |
2347 | echo "$as_me: failed program was:" >&5 | |
2348 | cat conftest.$ac_ext >&5 | |
2349 | fi | |
2350 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2351 | done | |
2352 | rm -f conftest* | |
2353 | if test -n "$ac_declaration"; then | |
2354 | echo '#ifdef __cplusplus' >>confdefs.h | |
2355 | echo $ac_declaration >>confdefs.h | |
2356 | echo '#endif' >>confdefs.h | |
2357 | fi | |
2358 | ||
2359 | ac_ext=cc | |
2360 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2361 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2362 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2363 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
2364 | ||
2365 | depcc="$CXX" am_compiler_list= | |
2366 | ||
2367 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
2368 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
2369 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then | |
2370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2371 | else | |
2372 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
2373 | # We make a subdir and do the tests there. Otherwise we can end up | |
2374 | # making bogus files that we don't know about and never remove. For | |
2375 | # instance it was reported that on HP-UX the gcc test will end up | |
2376 | # making a dummy file named `D' -- because `-MD' means `put the output | |
2377 | # in D'. | |
2378 | mkdir conftest.dir | |
2379 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
2380 | # using a relative directory. | |
2381 | cp "$am_depcomp" conftest.dir | |
2382 | cd conftest.dir | |
2383 | ||
2384 | am_cv_CXX_dependencies_compiler_type=none | |
2385 | if test "$am_compiler_list" = ""; then | |
2386 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
2387 | fi | |
2388 | for depmode in $am_compiler_list; do | |
2389 | # We need to recreate these files for each test, as the compiler may | |
2390 | # overwrite some of them when testing with obscure command lines. | |
2391 | # This happens at least with the AIX C compiler. | |
2392 | echo '#include "conftest.h"' > conftest.c | |
2393 | echo 'int i;' > conftest.h | |
2394 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf | |
2395 | ||
2396 | case $depmode in | |
2397 | nosideeffect) | |
2398 | # after this tag, mechanisms are not by side-effect, so they'll | |
2399 | # only be used when explicitly requested | |
2400 | if test "x$enable_dependency_tracking" = xyes; then | |
2401 | continue | |
2402 | else | |
2403 | break | |
2404 | fi | |
2405 | ;; | |
2406 | none) break ;; | |
2407 | esac | |
2408 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
2409 | # mode. It turns out that the SunPro C++ compiler does not properly | |
2410 | # handle `-M -o', and we need to detect this. | |
2411 | if depmode=$depmode \ | |
2412 | source=conftest.c object=conftest.o \ | |
2413 | depfile=conftest.Po tmpdepfile=conftest.TPo \ | |
2414 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && | |
2415 | grep conftest.h conftest.Po > /dev/null 2>&1 && | |
2416 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
2417 | am_cv_CXX_dependencies_compiler_type=$depmode | |
2418 | break | |
2419 | fi | |
2420 | done | |
2421 | ||
2422 | cd .. | |
2423 | rm -rf conftest.dir | |
2424 | else | |
2425 | am_cv_CXX_dependencies_compiler_type=none | |
2426 | fi | |
2427 | ||
2428 | fi | |
2429 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
2430 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 | |
2431 | CXXDEPMODE="depmode=$am_cv_CXX_dependencies_compiler_type" | |
2432 | ||
2433 | ||
2434 | ||
2435 | ||
2436 | # Check whether --enable-debug or --disable-debug was given. | |
2437 | if test "${enable_debug+set}" = set; then | |
2438 | enableval="$enable_debug" | |
2439 | ||
2440 | if test $enableval = "no"; then | |
2441 | kde_use_debug_code="no" | |
2442 | kde_use_debug_define=yes | |
2443 | else | |
2444 | kde_use_debug_code="yes" | |
2445 | kde_use_debug_define=no | |
2446 | fi | |
2447 | ||
2448 | else | |
2449 | kde_use_debug_code="no" | |
2450 | kde_use_debug_define=no | |
2451 | ||
2452 | fi; | |
2453 | ||
2454 | # Check whether --enable-dummyoption or --disable-dummyoption was given. | |
2455 | if test "${enable_dummyoption+set}" = set; then | |
2456 | enableval="$enable_dummyoption" | |
2457 | ||
2458 | fi; | |
2459 | ||
2460 | # Check whether --enable-strict or --disable-strict was given. | |
2461 | if test "${enable_strict+set}" = set; then | |
2462 | enableval="$enable_strict" | |
2463 | ||
2464 | if test $enableval = "no"; then | |
2465 | kde_use_strict_options="no" | |
2466 | else | |
2467 | kde_use_strict_options="yes" | |
2468 | fi | |
2469 | ||
2470 | else | |
2471 | kde_use_strict_options="no" | |
2472 | fi; | |
2473 | ||
2474 | # Check whether --enable-profile or --disable-profile was given. | |
2475 | if test "${enable_profile+set}" = set; then | |
2476 | enableval="$enable_profile" | |
2477 | kde_use_profiling=$enableval | |
2478 | else | |
2479 | kde_use_profiling="no" | |
2480 | ||
2481 | fi; | |
2482 | ||
2483 | CFLAGS=" $CFLAGS" | |
2484 | ||
2485 | ac_ext=c | |
2486 | ac_cpp='$CPP $CPPFLAGS' | |
2487 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2488 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2489 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2490 | if test -n "$ac_tool_prefix"; then | |
2491 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2492 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2493 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2494 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2495 | if test "${ac_cv_prog_CC+set}" = set; then | |
2496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2497 | else | |
2498 | if test -n "$CC"; then | |
2499 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2500 | else | |
2501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2502 | for as_dir in $PATH | |
2503 | do | |
2504 | IFS=$as_save_IFS | |
2505 | test -z "$as_dir" && as_dir=. | |
2506 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2507 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2508 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2509 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2510 | break 2 | |
2511 | fi | |
2512 | done | |
2513 | done | |
2514 | ||
2515 | fi | |
2516 | fi | |
2517 | CC=$ac_cv_prog_CC | |
2518 | if test -n "$CC"; then | |
2519 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2520 | echo "${ECHO_T}$CC" >&6 | |
2521 | else | |
2522 | echo "$as_me:$LINENO: result: no" >&5 | |
2523 | echo "${ECHO_T}no" >&6 | |
2524 | fi | |
2525 | ||
2526 | fi | |
2527 | if test -z "$ac_cv_prog_CC"; then | |
2528 | ac_ct_CC=$CC | |
2529 | # Extract the first word of "gcc", so it can be a program name with args. | |
2530 | set dummy gcc; ac_word=$2 | |
2531 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2532 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2533 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2535 | else | |
2536 | if test -n "$ac_ct_CC"; then | |
2537 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2538 | else | |
2539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2540 | for as_dir in $PATH | |
2541 | do | |
2542 | IFS=$as_save_IFS | |
2543 | test -z "$as_dir" && as_dir=. | |
2544 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2545 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2546 | ac_cv_prog_ac_ct_CC="gcc" | |
2547 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2548 | break 2 | |
2549 | fi | |
2550 | done | |
2551 | done | |
2552 | ||
2553 | fi | |
2554 | fi | |
2555 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2556 | if test -n "$ac_ct_CC"; then | |
2557 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2558 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2559 | else | |
2560 | echo "$as_me:$LINENO: result: no" >&5 | |
2561 | echo "${ECHO_T}no" >&6 | |
2562 | fi | |
2563 | ||
2564 | CC=$ac_ct_CC | |
2565 | else | |
2566 | CC="$ac_cv_prog_CC" | |
2567 | fi | |
2568 | ||
2569 | if test -z "$CC"; then | |
2570 | if test -n "$ac_tool_prefix"; then | |
2571 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2572 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2573 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2574 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2575 | if test "${ac_cv_prog_CC+set}" = set; then | |
2576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2577 | else | |
2578 | if test -n "$CC"; then | |
2579 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2580 | else | |
2581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2582 | for as_dir in $PATH | |
2583 | do | |
2584 | IFS=$as_save_IFS | |
2585 | test -z "$as_dir" && as_dir=. | |
2586 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2587 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2588 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2589 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2590 | break 2 | |
2591 | fi | |
2592 | done | |
2593 | done | |
2594 | ||
2595 | fi | |
2596 | fi | |
2597 | CC=$ac_cv_prog_CC | |
2598 | if test -n "$CC"; then | |
2599 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2600 | echo "${ECHO_T}$CC" >&6 | |
2601 | else | |
2602 | echo "$as_me:$LINENO: result: no" >&5 | |
2603 | echo "${ECHO_T}no" >&6 | |
2604 | fi | |
2605 | ||
2606 | fi | |
2607 | if test -z "$ac_cv_prog_CC"; then | |
2608 | ac_ct_CC=$CC | |
2609 | # Extract the first word of "cc", so it can be a program name with args. | |
2610 | set dummy cc; ac_word=$2 | |
2611 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2612 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2613 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2615 | else | |
2616 | if test -n "$ac_ct_CC"; then | |
2617 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2618 | else | |
2619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2620 | for as_dir in $PATH | |
2621 | do | |
2622 | IFS=$as_save_IFS | |
2623 | test -z "$as_dir" && as_dir=. | |
2624 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2625 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2626 | ac_cv_prog_ac_ct_CC="cc" | |
2627 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2628 | break 2 | |
2629 | fi | |
2630 | done | |
2631 | done | |
2632 | ||
2633 | fi | |
2634 | fi | |
2635 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2636 | if test -n "$ac_ct_CC"; then | |
2637 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2638 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2639 | else | |
2640 | echo "$as_me:$LINENO: result: no" >&5 | |
2641 | echo "${ECHO_T}no" >&6 | |
2642 | fi | |
2643 | ||
2644 | CC=$ac_ct_CC | |
2645 | else | |
2646 | CC="$ac_cv_prog_CC" | |
2647 | fi | |
2648 | ||
2649 | fi | |
2650 | if test -z "$CC"; then | |
2651 | # Extract the first word of "cc", so it can be a program name with args. | |
2652 | set dummy cc; ac_word=$2 | |
2653 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2654 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2655 | if test "${ac_cv_prog_CC+set}" = set; then | |
2656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2657 | else | |
2658 | if test -n "$CC"; then | |
2659 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2660 | else | |
2661 | ac_prog_rejected=no | |
2662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2663 | for as_dir in $PATH | |
2664 | do | |
2665 | IFS=$as_save_IFS | |
2666 | test -z "$as_dir" && as_dir=. | |
2667 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2668 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2669 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2670 | ac_prog_rejected=yes | |
2671 | continue | |
2672 | fi | |
2673 | ac_cv_prog_CC="cc" | |
2674 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2675 | break 2 | |
2676 | fi | |
2677 | done | |
2678 | done | |
2679 | ||
2680 | if test $ac_prog_rejected = yes; then | |
2681 | # We found a bogon in the path, so make sure we never use it. | |
2682 | set dummy $ac_cv_prog_CC | |
2683 | shift | |
2684 | if test $# != 0; then | |
2685 | # We chose a different compiler from the bogus one. | |
2686 | # However, it has the same basename, so the bogon will be chosen | |
2687 | # first if we set CC to just the basename; use the full file name. | |
2688 | shift | |
2689 | set dummy "$as_dir/$ac_word" ${1+"$@"} | |
2690 | shift | |
2691 | ac_cv_prog_CC="$@" | |
2692 | fi | |
2693 | fi | |
2694 | fi | |
2695 | fi | |
2696 | CC=$ac_cv_prog_CC | |
2697 | if test -n "$CC"; then | |
2698 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2699 | echo "${ECHO_T}$CC" >&6 | |
2700 | else | |
2701 | echo "$as_me:$LINENO: result: no" >&5 | |
2702 | echo "${ECHO_T}no" >&6 | |
2703 | fi | |
2704 | ||
2705 | fi | |
2706 | if test -z "$CC"; then | |
2707 | if test -n "$ac_tool_prefix"; then | |
2708 | for ac_prog in cl | |
2709 | do | |
2710 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2711 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2712 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2713 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2714 | if test "${ac_cv_prog_CC+set}" = set; then | |
2715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2716 | else | |
2717 | if test -n "$CC"; then | |
2718 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2719 | else | |
2720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2721 | for as_dir in $PATH | |
2722 | do | |
2723 | IFS=$as_save_IFS | |
2724 | test -z "$as_dir" && as_dir=. | |
2725 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2726 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2727 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2728 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2729 | break 2 | |
2730 | fi | |
2731 | done | |
2732 | done | |
2733 | ||
2734 | fi | |
2735 | fi | |
2736 | CC=$ac_cv_prog_CC | |
2737 | if test -n "$CC"; then | |
2738 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2739 | echo "${ECHO_T}$CC" >&6 | |
2740 | else | |
2741 | echo "$as_me:$LINENO: result: no" >&5 | |
2742 | echo "${ECHO_T}no" >&6 | |
2743 | fi | |
2744 | ||
2745 | test -n "$CC" && break | |
2746 | done | |
2747 | fi | |
2748 | if test -z "$CC"; then | |
2749 | ac_ct_CC=$CC | |
2750 | for ac_prog in cl | |
2751 | do | |
2752 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2753 | set dummy $ac_prog; ac_word=$2 | |
2754 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2755 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2756 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2758 | else | |
2759 | if test -n "$ac_ct_CC"; then | |
2760 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2761 | else | |
2762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2763 | for as_dir in $PATH | |
2764 | do | |
2765 | IFS=$as_save_IFS | |
2766 | test -z "$as_dir" && as_dir=. | |
2767 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2768 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2769 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2770 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2771 | break 2 | |
2772 | fi | |
2773 | done | |
2774 | done | |
2775 | ||
2776 | fi | |
2777 | fi | |
2778 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2779 | if test -n "$ac_ct_CC"; then | |
2780 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2781 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2782 | else | |
2783 | echo "$as_me:$LINENO: result: no" >&5 | |
2784 | echo "${ECHO_T}no" >&6 | |
2785 | fi | |
2786 | ||
2787 | test -n "$ac_ct_CC" && break | |
2788 | done | |
2789 | ||
2790 | CC=$ac_ct_CC | |
2791 | fi | |
2792 | ||
2793 | fi | |
2794 | ||
2795 | ||
2796 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 | |
2797 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} | |
2798 | { (exit 1); exit 1; }; } | |
2799 | ||
2800 | # Provide some information about the compiler. | |
2801 | echo "$as_me:$LINENO:" \ | |
2802 | "checking for C compiler version" >&5 | |
2803 | ac_compiler=`set X $ac_compile; echo $2` | |
2804 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2805 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2806 | ac_status=$? | |
2807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2808 | (exit $ac_status); } | |
2809 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2810 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2811 | ac_status=$? | |
2812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2813 | (exit $ac_status); } | |
2814 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2815 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2816 | ac_status=$? | |
2817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2818 | (exit $ac_status); } | |
2819 | ||
2820 | cat >conftest.$ac_ext <<_ACEOF | |
2821 | #line $LINENO "configure" | |
2822 | #include "confdefs.h" | |
2823 | ||
2824 | #ifdef F77_DUMMY_MAIN | |
2825 | # ifdef __cplusplus | |
2826 | extern "C" | |
2827 | # endif | |
2828 | int F77_DUMMY_MAIN() { return 1; } | |
2829 | #endif | |
2830 | int | |
2831 | main () | |
2832 | { | |
2833 | ||
2834 | ; | |
2835 | return 0; | |
2836 | } | |
2837 | _ACEOF | |
2838 | ac_clean_files_save=$ac_clean_files | |
2839 | ac_clean_files="$ac_clean_files a.out a.exe" | |
2840 | # Try to create an executable without -o first, disregard a.out. | |
2841 | # It will help us diagnose broken compilers, and finding out an intuition | |
2842 | # of exeext. | |
2843 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 | |
2844 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | |
2845 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2846 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2847 | (eval $ac_link_default) 2>&5 | |
2848 | ac_status=$? | |
2849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2850 | (exit $ac_status); }; then | |
2851 | # Find the output, starting from the most likely. This scheme is | |
2852 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2853 | # resort. | |
2854 | ||
2855 | # Be careful to initialize this variable, since it used to be cached. | |
2856 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2857 | ac_cv_exeext= | |
2858 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; | |
2859 | ls a.out conftest 2>/dev/null; | |
2860 | ls a.* conftest.* 2>/dev/null`; do | |
2861 | case $ac_file in | |
2862 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; | |
2863 | a.out ) # We found the default executable, but exeext='' is most | |
2864 | # certainly right. | |
2865 | break;; | |
2866 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2867 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. | |
2868 | export ac_cv_exeext | |
2869 | break;; | |
2870 | * ) break;; | |
2871 | esac | |
2872 | done | |
2873 | else | |
2874 | echo "$as_me: failed program was:" >&5 | |
2875 | cat conftest.$ac_ext >&5 | |
2876 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 | |
2877 | echo "$as_me: error: C compiler cannot create executables" >&2;} | |
2878 | { (exit 77); exit 77; }; } | |
2879 | fi | |
2880 | ||
2881 | ac_exeext=$ac_cv_exeext | |
2882 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2883 | echo "${ECHO_T}$ac_file" >&6 | |
2884 | ||
2885 | # Check the compiler produces executables we can run. If not, either | |
2886 | # the compiler is broken, or we cross compile. | |
2887 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2888 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2889 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2890 | # If not cross compiling, check that we can run a simple program. | |
2891 | if test "$cross_compiling" != yes; then | |
2892 | if { ac_try='./$ac_file' | |
2893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2894 | (eval $ac_try) 2>&5 | |
2895 | ac_status=$? | |
2896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2897 | (exit $ac_status); }; }; then | |
2898 | cross_compiling=no | |
2899 | else | |
2900 | if test "$cross_compiling" = maybe; then | |
2901 | cross_compiling=yes | |
2902 | else | |
2903 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2904 | If you meant to cross compile, use \`--host'." >&5 | |
2905 | echo "$as_me: error: cannot run C compiled programs. | |
2906 | If you meant to cross compile, use \`--host'." >&2;} | |
2907 | { (exit 1); exit 1; }; } | |
2908 | fi | |
2909 | fi | |
2910 | fi | |
2911 | echo "$as_me:$LINENO: result: yes" >&5 | |
2912 | echo "${ECHO_T}yes" >&6 | |
2913 | ||
2914 | rm -f a.out a.exe conftest$ac_cv_exeext | |
2915 | ac_clean_files=$ac_clean_files_save | |
2916 | # Check the compiler produces executables we can run. If not, either | |
2917 | # the compiler is broken, or we cross compile. | |
2918 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2919 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2920 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2921 | echo "${ECHO_T}$cross_compiling" >&6 | |
2922 | ||
2923 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2924 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2925 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2926 | (eval $ac_link) 2>&5 | |
2927 | ac_status=$? | |
2928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2929 | (exit $ac_status); }; then | |
2930 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2931 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2932 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2933 | # `rm'. | |
2934 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | |
2935 | case $ac_file in | |
2936 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
2937 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2938 | export ac_cv_exeext | |
2939 | break;; | |
2940 | * ) break;; | |
2941 | esac | |
2942 | done | |
2943 | else | |
2944 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 | |
2945 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} | |
2946 | { (exit 1); exit 1; }; } | |
2947 | fi | |
2948 | ||
2949 | rm -f conftest$ac_cv_exeext | |
2950 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2951 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2952 | ||
2953 | rm -f conftest.$ac_ext | |
2954 | EXEEXT=$ac_cv_exeext | |
2955 | ac_exeext=$EXEEXT | |
2956 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2957 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2958 | if test "${ac_cv_objext+set}" = set; then | |
2959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2960 | else | |
2961 | cat >conftest.$ac_ext <<_ACEOF | |
2962 | #line $LINENO "configure" | |
2963 | #include "confdefs.h" | |
2964 | ||
2965 | #ifdef F77_DUMMY_MAIN | |
2966 | # ifdef __cplusplus | |
2967 | extern "C" | |
2968 | # endif | |
2969 | int F77_DUMMY_MAIN() { return 1; } | |
2970 | #endif | |
2971 | int | |
2972 | main () | |
2973 | { | |
2974 | ||
2975 | ; | |
2976 | return 0; | |
2977 | } | |
2978 | _ACEOF | |
2979 | rm -f conftest.o conftest.obj | |
2980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2981 | (eval $ac_compile) 2>&5 | |
2982 | ac_status=$? | |
2983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2984 | (exit $ac_status); }; then | |
2985 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2986 | case $ac_file in | |
2987 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
2988 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2989 | break;; | |
2990 | esac | |
2991 | done | |
2992 | else | |
2993 | echo "$as_me: failed program was:" >&5 | |
2994 | cat conftest.$ac_ext >&5 | |
2995 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 | |
2996 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} | |
2997 | { (exit 1); exit 1; }; } | |
2998 | fi | |
2999 | ||
3000 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3001 | fi | |
3002 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
3003 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
3004 | OBJEXT=$ac_cv_objext | |
3005 | ac_objext=$OBJEXT | |
3006 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
3007 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
3008 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
3009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3010 | else | |
3011 | cat >conftest.$ac_ext <<_ACEOF | |
3012 | #line $LINENO "configure" | |
3013 | #include "confdefs.h" | |
3014 | ||
3015 | #ifdef F77_DUMMY_MAIN | |
3016 | # ifdef __cplusplus | |
3017 | extern "C" | |
3018 | # endif | |
3019 | int F77_DUMMY_MAIN() { return 1; } | |
3020 | #endif | |
3021 | int | |
3022 | main () | |
3023 | { | |
3024 | #ifndef __GNUC__ | |
3025 | choke me | |
3026 | #endif | |
3027 | ||
3028 | ; | |
3029 | return 0; | |
3030 | } | |
3031 | _ACEOF | |
3032 | rm -f conftest.$ac_objext | |
3033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3034 | (eval $ac_compile) 2>&5 | |
3035 | ac_status=$? | |
3036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3037 | (exit $ac_status); } && | |
3038 | { ac_try='test -s conftest.$ac_objext' | |
3039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3040 | (eval $ac_try) 2>&5 | |
3041 | ac_status=$? | |
3042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3043 | (exit $ac_status); }; }; then | |
3044 | ac_compiler_gnu=yes | |
3045 | else | |
3046 | echo "$as_me: failed program was:" >&5 | |
3047 | cat conftest.$ac_ext >&5 | |
3048 | ac_compiler_gnu=no | |
3049 | fi | |
3050 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3051 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3052 | ||
3053 | fi | |
3054 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
3055 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
3056 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3057 | ac_test_CFLAGS=${CFLAGS+set} | |
3058 | ac_save_CFLAGS=$CFLAGS | |
3059 | CFLAGS="-g" | |
3060 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
3061 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
3062 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
3063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3064 | else | |
3065 | cat >conftest.$ac_ext <<_ACEOF | |
3066 | #line $LINENO "configure" | |
3067 | #include "confdefs.h" | |
3068 | ||
3069 | #ifdef F77_DUMMY_MAIN | |
3070 | # ifdef __cplusplus | |
3071 | extern "C" | |
3072 | # endif | |
3073 | int F77_DUMMY_MAIN() { return 1; } | |
3074 | #endif | |
3075 | int | |
3076 | main () | |
3077 | { | |
3078 | ||
3079 | ; | |
3080 | return 0; | |
3081 | } | |
3082 | _ACEOF | |
3083 | rm -f conftest.$ac_objext | |
3084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3085 | (eval $ac_compile) 2>&5 | |
3086 | ac_status=$? | |
3087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3088 | (exit $ac_status); } && | |
3089 | { ac_try='test -s conftest.$ac_objext' | |
3090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3091 | (eval $ac_try) 2>&5 | |
3092 | ac_status=$? | |
3093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3094 | (exit $ac_status); }; }; then | |
3095 | ac_cv_prog_cc_g=yes | |
3096 | else | |
3097 | echo "$as_me: failed program was:" >&5 | |
3098 | cat conftest.$ac_ext >&5 | |
3099 | ac_cv_prog_cc_g=no | |
3100 | fi | |
3101 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3102 | fi | |
3103 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
3104 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
3105 | if test "$ac_test_CFLAGS" = set; then | |
3106 | CFLAGS=$ac_save_CFLAGS | |
3107 | elif test $ac_cv_prog_cc_g = yes; then | |
3108 | if test "$GCC" = yes; then | |
3109 | CFLAGS="-g -O2" | |
3110 | else | |
3111 | CFLAGS="-g" | |
3112 | fi | |
3113 | else | |
3114 | if test "$GCC" = yes; then | |
3115 | CFLAGS="-O2" | |
3116 | else | |
3117 | CFLAGS= | |
3118 | fi | |
3119 | fi | |
3120 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
3121 | # in C++ we need to declare it. In case someone uses the same compiler | |
3122 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3123 | # the declaration of exit, since it's the most demanding environment. | |
3124 | cat >conftest.$ac_ext <<_ACEOF | |
3125 | #ifndef __cplusplus | |
3126 | choke me | |
3127 | #endif | |
3128 | _ACEOF | |
3129 | rm -f conftest.$ac_objext | |
3130 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3131 | (eval $ac_compile) 2>&5 | |
3132 | ac_status=$? | |
3133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3134 | (exit $ac_status); } && | |
3135 | { ac_try='test -s conftest.$ac_objext' | |
3136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3137 | (eval $ac_try) 2>&5 | |
3138 | ac_status=$? | |
3139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3140 | (exit $ac_status); }; }; then | |
3141 | for ac_declaration in \ | |
3142 | ''\ | |
3143 | '#include <stdlib.h>' \ | |
3144 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
3145 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3146 | 'extern "C" void exit (int) throw ();' \ | |
3147 | 'extern "C" void exit (int);' \ | |
3148 | 'void exit (int);' | |
3149 | do | |
3150 | cat >conftest.$ac_ext <<_ACEOF | |
3151 | #line $LINENO "configure" | |
3152 | #include "confdefs.h" | |
3153 | #include <stdlib.h> | |
3154 | $ac_declaration | |
3155 | #ifdef F77_DUMMY_MAIN | |
3156 | # ifdef __cplusplus | |
3157 | extern "C" | |
3158 | # endif | |
3159 | int F77_DUMMY_MAIN() { return 1; } | |
3160 | #endif | |
3161 | int | |
3162 | main () | |
3163 | { | |
3164 | exit (42); | |
3165 | ; | |
3166 | return 0; | |
3167 | } | |
3168 | _ACEOF | |
3169 | rm -f conftest.$ac_objext | |
3170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3171 | (eval $ac_compile) 2>&5 | |
3172 | ac_status=$? | |
3173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3174 | (exit $ac_status); } && | |
3175 | { ac_try='test -s conftest.$ac_objext' | |
3176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3177 | (eval $ac_try) 2>&5 | |
3178 | ac_status=$? | |
3179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3180 | (exit $ac_status); }; }; then | |
3181 | : | |
3182 | else | |
3183 | echo "$as_me: failed program was:" >&5 | |
3184 | cat conftest.$ac_ext >&5 | |
3185 | continue | |
3186 | fi | |
3187 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3188 | cat >conftest.$ac_ext <<_ACEOF | |
3189 | #line $LINENO "configure" | |
3190 | #include "confdefs.h" | |
3191 | $ac_declaration | |
3192 | #ifdef F77_DUMMY_MAIN | |
3193 | # ifdef __cplusplus | |
3194 | extern "C" | |
3195 | # endif | |
3196 | int F77_DUMMY_MAIN() { return 1; } | |
3197 | #endif | |
3198 | int | |
3199 | main () | |
3200 | { | |
3201 | exit (42); | |
3202 | ; | |
3203 | return 0; | |
3204 | } | |
3205 | _ACEOF | |
3206 | rm -f conftest.$ac_objext | |
3207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3208 | (eval $ac_compile) 2>&5 | |
3209 | ac_status=$? | |
3210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3211 | (exit $ac_status); } && | |
3212 | { ac_try='test -s conftest.$ac_objext' | |
3213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3214 | (eval $ac_try) 2>&5 | |
3215 | ac_status=$? | |
3216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3217 | (exit $ac_status); }; }; then | |
3218 | break | |
3219 | else | |
3220 | echo "$as_me: failed program was:" >&5 | |
3221 | cat conftest.$ac_ext >&5 | |
3222 | fi | |
3223 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3224 | done | |
3225 | rm -f conftest* | |
3226 | if test -n "$ac_declaration"; then | |
3227 | echo '#ifdef __cplusplus' >>confdefs.h | |
3228 | echo $ac_declaration >>confdefs.h | |
3229 | echo '#endif' >>confdefs.h | |
3230 | fi | |
3231 | ||
3232 | else | |
3233 | echo "$as_me: failed program was:" >&5 | |
3234 | cat conftest.$ac_ext >&5 | |
3235 | fi | |
3236 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3237 | ac_ext=c | |
3238 | ac_cpp='$CPP $CPPFLAGS' | |
3239 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3240 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3241 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3242 | ||
3243 | depcc="$CC" am_compiler_list= | |
3244 | ||
3245 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3246 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
3247 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3249 | else | |
3250 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3251 | # We make a subdir and do the tests there. Otherwise we can end up | |
3252 | # making bogus files that we don't know about and never remove. For | |
3253 | # instance it was reported that on HP-UX the gcc test will end up | |
3254 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3255 | # in D'. | |
3256 | mkdir conftest.dir | |
3257 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3258 | # using a relative directory. | |
3259 | cp "$am_depcomp" conftest.dir | |
3260 | cd conftest.dir | |
3261 | ||
3262 | am_cv_CC_dependencies_compiler_type=none | |
3263 | if test "$am_compiler_list" = ""; then | |
3264 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3265 | fi | |
3266 | for depmode in $am_compiler_list; do | |
3267 | # We need to recreate these files for each test, as the compiler may | |
3268 | # overwrite some of them when testing with obscure command lines. | |
3269 | # This happens at least with the AIX C compiler. | |
3270 | echo '#include "conftest.h"' > conftest.c | |
3271 | echo 'int i;' > conftest.h | |
3272 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf | |
3273 | ||
3274 | case $depmode in | |
3275 | nosideeffect) | |
3276 | # after this tag, mechanisms are not by side-effect, so they'll | |
3277 | # only be used when explicitly requested | |
3278 | if test "x$enable_dependency_tracking" = xyes; then | |
3279 | continue | |
3280 | else | |
3281 | break | |
3282 | fi | |
3283 | ;; | |
3284 | none) break ;; | |
3285 | esac | |
3286 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3287 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3288 | # handle `-M -o', and we need to detect this. | |
3289 | if depmode=$depmode \ | |
3290 | source=conftest.c object=conftest.o \ | |
3291 | depfile=conftest.Po tmpdepfile=conftest.TPo \ | |
3292 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && | |
3293 | grep conftest.h conftest.Po > /dev/null 2>&1 && | |
3294 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3295 | am_cv_CC_dependencies_compiler_type=$depmode | |
3296 | break | |
3297 | fi | |
3298 | done | |
3299 | ||
3300 | cd .. | |
3301 | rm -rf conftest.dir | |
3302 | else | |
3303 | am_cv_CC_dependencies_compiler_type=none | |
3304 | fi | |
3305 | ||
3306 | fi | |
3307 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3308 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3309 | CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type" | |
3310 | ||
3311 | ||
3312 | ||
3313 | if test "$GCC" = "yes"; then | |
3314 | if test "$kde_use_debug_code" = "yes"; then | |
3315 | CFLAGS="-g -O2 $CFLAGS" | |
3316 | case $host in | |
3317 | *-*-linux-gnu) | |
3318 | CFLAGS="-ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS" | |
3319 | ;; | |
3320 | esac | |
3321 | else | |
3322 | CFLAGS="-O2 $CFLAGS" | |
3323 | fi | |
3324 | fi | |
3325 | ||
3326 | if test "$kde_use_debug_define" = "yes"; then | |
3327 | CFLAGS="-DNDEBUG $CFLAGS" | |
3328 | fi | |
3329 | ||
3330 | case "$host" in | |
3331 | *-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";; | |
3332 | *-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";; | |
3333 | esac | |
3334 | ||
3335 | if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then | |
3336 | LDFLAGS="" | |
3337 | fi | |
3338 | ||
3339 | if test "$kde_use_profiling" = "yes"; then | |
3340 | ||
3341 | echo "$as_me:$LINENO: checking whether $CXX supports -pg" >&5 | |
3342 | echo $ECHO_N "checking whether $CXX supports -pg... $ECHO_C" >&6 | |
3343 | kde_cache=`echo pg | sed 'y% .=/+-%____p_%'` | |
3344 | if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then | |
3345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3346 | else | |
3347 | ||
3348 | ||
3349 | ||
3350 | ||
3351 | ac_ext=cc | |
3352 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3353 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3354 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3355 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3356 | ||
3357 | ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3358 | ||
3359 | ||
3360 | ||
3361 | save_CXXFLAGS="$CXXFLAGS" | |
3362 | CXXFLAGS="$CXXFLAGS -pg" | |
3363 | cat >conftest.$ac_ext <<_ACEOF | |
3364 | #line $LINENO "configure" | |
3365 | #include "confdefs.h" | |
3366 | ||
3367 | #ifdef F77_DUMMY_MAIN | |
3368 | # ifdef __cplusplus | |
3369 | extern "C" | |
3370 | # endif | |
3371 | int F77_DUMMY_MAIN() { return 1; } | |
3372 | #endif | |
3373 | int | |
3374 | main () | |
3375 | { | |
3376 | return 0; | |
3377 | ; | |
3378 | return 0; | |
3379 | } | |
3380 | _ACEOF | |
3381 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3382 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3383 | (eval $ac_link) 2>&5 | |
3384 | ac_status=$? | |
3385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3386 | (exit $ac_status); } && | |
3387 | { ac_try='test -s conftest$ac_exeext' | |
3388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3389 | (eval $ac_try) 2>&5 | |
3390 | ac_status=$? | |
3391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3392 | (exit $ac_status); }; }; then | |
3393 | eval "kde_cv_prog_cxx_$kde_cache=yes" | |
3394 | else | |
3395 | echo "$as_me: failed program was:" >&5 | |
3396 | cat conftest.$ac_ext >&5 | |
3397 | fi | |
3398 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3399 | CXXFLAGS="$save_CXXFLAGS" | |
3400 | ac_ext=c | |
3401 | ac_cpp='$CPP $CPPFLAGS' | |
3402 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3403 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3404 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3405 | ||
3406 | ||
3407 | fi | |
3408 | ||
3409 | if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then | |
3410 | echo "$as_me:$LINENO: result: yes" >&5 | |
3411 | echo "${ECHO_T}yes" >&6 | |
3412 | : | |
3413 | ||
3414 | CFLAGS="-pg $CFLAGS" | |
3415 | ||
3416 | else | |
3417 | echo "$as_me:$LINENO: result: no" >&5 | |
3418 | echo "${ECHO_T}no" >&6 | |
3419 | : | |
3420 | ||
3421 | fi | |
3422 | ||
3423 | fi | |
3424 | ||
3425 | USE_EXCEPTIONS= | |
3426 | ||
3427 | USE_RTTI= | |
3428 | ||
3429 | ||
3430 | ac_ext=c | |
3431 | ac_cpp='$CPP $CPPFLAGS' | |
3432 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3433 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3434 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3435 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
3436 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
3437 | # On Suns, sometimes $CPP names a directory. | |
3438 | if test -n "$CPP" && test -d "$CPP"; then | |
3439 | CPP= | |
3440 | fi | |
3441 | if test -z "$CPP"; then | |
3442 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3443 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3444 | else | |
3445 | # Double quotes because CPP needs to be expanded | |
3446 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3447 | do | |
3448 | ac_preproc_ok=false | |
3449 | for ac_c_preproc_warn_flag in '' yes | |
3450 | do | |
3451 | # Use a header file that comes with gcc, so configuring glibc | |
3452 | # with a fresh cross-compiler works. | |
3453 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3454 | # not just through cpp. "Syntax error" is here to catch this case. | |
3455 | cat >conftest.$ac_ext <<_ACEOF | |
3456 | #line $LINENO "configure" | |
3457 | #include "confdefs.h" | |
3458 | #include <assert.h> | |
3459 | Syntax error | |
3460 | _ACEOF | |
3461 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3462 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3463 | ac_status=$? | |
3464 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3465 | rm -f conftest.er1 | |
3466 | cat conftest.err >&5 | |
3467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3468 | (exit $ac_status); } >/dev/null; then | |
3469 | if test -s conftest.err; then | |
3470 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3471 | else | |
3472 | ac_cpp_err= | |
3473 | fi | |
3474 | else | |
3475 | ac_cpp_err=yes | |
3476 | fi | |
3477 | if test -z "$ac_cpp_err"; then | |
3478 | : | |
3479 | else | |
3480 | echo "$as_me: failed program was:" >&5 | |
3481 | cat conftest.$ac_ext >&5 | |
3482 | # Broken: fails on valid input. | |
3483 | continue | |
3484 | fi | |
3485 | rm -f conftest.err conftest.$ac_ext | |
3486 | ||
3487 | # OK, works on sane cases. Now check whether non-existent headers | |
3488 | # can be detected and how. | |
3489 | cat >conftest.$ac_ext <<_ACEOF | |
3490 | #line $LINENO "configure" | |
3491 | #include "confdefs.h" | |
3492 | #include <ac_nonexistent.h> | |
3493 | _ACEOF | |
3494 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3495 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3496 | ac_status=$? | |
3497 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3498 | rm -f conftest.er1 | |
3499 | cat conftest.err >&5 | |
3500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3501 | (exit $ac_status); } >/dev/null; then | |
3502 | if test -s conftest.err; then | |
3503 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3504 | else | |
3505 | ac_cpp_err= | |
3506 | fi | |
3507 | else | |
3508 | ac_cpp_err=yes | |
3509 | fi | |
3510 | if test -z "$ac_cpp_err"; then | |
3511 | # Broken: success on invalid input. | |
3512 | continue | |
3513 | else | |
3514 | echo "$as_me: failed program was:" >&5 | |
3515 | cat conftest.$ac_ext >&5 | |
3516 | # Passes both tests. | |
3517 | ac_preproc_ok=: | |
3518 | break | |
3519 | fi | |
3520 | rm -f conftest.err conftest.$ac_ext | |
3521 | ||
3522 | done | |
3523 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3524 | rm -f conftest.err conftest.$ac_ext | |
3525 | if $ac_preproc_ok; then | |
3526 | break | |
3527 | fi | |
3528 | ||
3529 | done | |
3530 | ac_cv_prog_CPP=$CPP | |
3531 | ||
3532 | fi | |
3533 | CPP=$ac_cv_prog_CPP | |
3534 | else | |
3535 | ac_cv_prog_CPP=$CPP | |
3536 | fi | |
3537 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
3538 | echo "${ECHO_T}$CPP" >&6 | |
3539 | ac_preproc_ok=false | |
3540 | for ac_c_preproc_warn_flag in '' yes | |
3541 | do | |
3542 | # Use a header file that comes with gcc, so configuring glibc | |
3543 | # with a fresh cross-compiler works. | |
3544 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3545 | # not just through cpp. "Syntax error" is here to catch this case. | |
3546 | cat >conftest.$ac_ext <<_ACEOF | |
3547 | #line $LINENO "configure" | |
3548 | #include "confdefs.h" | |
3549 | #include <assert.h> | |
3550 | Syntax error | |
3551 | _ACEOF | |
3552 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3553 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3554 | ac_status=$? | |
3555 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3556 | rm -f conftest.er1 | |
3557 | cat conftest.err >&5 | |
3558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3559 | (exit $ac_status); } >/dev/null; then | |
3560 | if test -s conftest.err; then | |
3561 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3562 | else | |
3563 | ac_cpp_err= | |
3564 | fi | |
3565 | else | |
3566 | ac_cpp_err=yes | |
3567 | fi | |
3568 | if test -z "$ac_cpp_err"; then | |
3569 | : | |
3570 | else | |
3571 | echo "$as_me: failed program was:" >&5 | |
3572 | cat conftest.$ac_ext >&5 | |
3573 | # Broken: fails on valid input. | |
3574 | continue | |
3575 | fi | |
3576 | rm -f conftest.err conftest.$ac_ext | |
3577 | ||
3578 | # OK, works on sane cases. Now check whether non-existent headers | |
3579 | # can be detected and how. | |
3580 | cat >conftest.$ac_ext <<_ACEOF | |
3581 | #line $LINENO "configure" | |
3582 | #include "confdefs.h" | |
3583 | #include <ac_nonexistent.h> | |
3584 | _ACEOF | |
3585 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3586 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3587 | ac_status=$? | |
3588 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3589 | rm -f conftest.er1 | |
3590 | cat conftest.err >&5 | |
3591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3592 | (exit $ac_status); } >/dev/null; then | |
3593 | if test -s conftest.err; then | |
3594 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3595 | else | |
3596 | ac_cpp_err= | |
3597 | fi | |
3598 | else | |
3599 | ac_cpp_err=yes | |
3600 | fi | |
3601 | if test -z "$ac_cpp_err"; then | |
3602 | # Broken: success on invalid input. | |
3603 | continue | |
3604 | else | |
3605 | echo "$as_me: failed program was:" >&5 | |
3606 | cat conftest.$ac_ext >&5 | |
3607 | # Passes both tests. | |
3608 | ac_preproc_ok=: | |
3609 | break | |
3610 | fi | |
3611 | rm -f conftest.err conftest.$ac_ext | |
3612 | ||
3613 | done | |
3614 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3615 | rm -f conftest.err conftest.$ac_ext | |
3616 | if $ac_preproc_ok; then | |
3617 | : | |
3618 | else | |
3619 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 | |
3620 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} | |
3621 | { (exit 1); exit 1; }; } | |
3622 | fi | |
3623 | ||
3624 | ac_ext=c | |
3625 | ac_cpp='$CPP $CPPFLAGS' | |
3626 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3627 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3628 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3629 | ||
3630 | ||
3631 | # the following is to allow programs, that are known to | |
3632 | # have problems when compiled with -O2 | |
3633 | if test -n "$CFLAGS"; then | |
3634 | kde_safe_IFS=$IFS | |
3635 | IFS=" " | |
3636 | NOOPT_CFLAGS="" | |
3637 | for i in $CFLAGS; do | |
3638 | case $i in | |
3639 | -O*) | |
3640 | ;; | |
3641 | *) | |
3642 | NOOPT_CFLAGS="$NOOPT_CFLAGS $i" | |
3643 | ;; | |
3644 | esac | |
3645 | done | |
3646 | IFS=$kde_safe_IFS | |
3647 | fi | |
3648 | ||
3649 | ||
3650 | ||
3651 | ||
3652 | # Check whether --enable-final or --disable-final was given. | |
3653 | if test "${enable_final+set}" = set; then | |
3654 | enableval="$enable_final" | |
3655 | kde_use_final=$enableval | |
3656 | else | |
3657 | kde_use_final=no | |
3658 | fi; | |
3659 | ||
3660 | ||
3661 | REPO="" | |
3662 | NOREPO="" | |
3663 | ||
3664 | ||
3665 | echo "$as_me:$LINENO: checking whether $CXX supports -frepo" >&5 | |
3666 | echo $ECHO_N "checking whether $CXX supports -frepo... $ECHO_C" >&6 | |
3667 | kde_cache=`echo frepo | sed 'y% .=/+-%____p_%'` | |
3668 | if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then | |
3669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3670 | else | |
3671 | ||
3672 | ||
3673 | ||
3674 | ac_ext=cc | |
3675 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3676 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3677 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3678 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3679 | ||
3680 | ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3681 | ||
3682 | ||
3683 | save_CXXFLAGS="$CXXFLAGS" | |
3684 | CXXFLAGS="$CXXFLAGS -frepo" | |
3685 | cat >conftest.$ac_ext <<_ACEOF | |
3686 | #line $LINENO "configure" | |
3687 | #include "confdefs.h" | |
3688 | ||
3689 | #ifdef F77_DUMMY_MAIN | |
3690 | # ifdef __cplusplus | |
3691 | extern "C" | |
3692 | # endif | |
3693 | int F77_DUMMY_MAIN() { return 1; } | |
3694 | #endif | |
3695 | int | |
3696 | main () | |
3697 | { | |
3698 | return 0; | |
3699 | ; | |
3700 | return 0; | |
3701 | } | |
3702 | _ACEOF | |
3703 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3704 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3705 | (eval $ac_link) 2>&5 | |
3706 | ac_status=$? | |
3707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3708 | (exit $ac_status); } && | |
3709 | { ac_try='test -s conftest$ac_exeext' | |
3710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3711 | (eval $ac_try) 2>&5 | |
3712 | ac_status=$? | |
3713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3714 | (exit $ac_status); }; }; then | |
3715 | eval "kde_cv_prog_cxx_$kde_cache=yes" | |
3716 | else | |
3717 | echo "$as_me: failed program was:" >&5 | |
3718 | cat conftest.$ac_ext >&5 | |
3719 | fi | |
3720 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3721 | CXXFLAGS="$save_CXXFLAGS" | |
3722 | ac_ext=c | |
3723 | ac_cpp='$CPP $CPPFLAGS' | |
3724 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3725 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3726 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3727 | ||
3728 | ||
3729 | fi | |
3730 | ||
3731 | if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then | |
3732 | echo "$as_me:$LINENO: result: yes" >&5 | |
3733 | echo "${ECHO_T}yes" >&6 | |
3734 | : | |
3735 | ||
3736 | REPO="-frepo" | |
3737 | NOREPO="-fno-repo" | |
3738 | ||
3739 | else | |
3740 | echo "$as_me:$LINENO: result: no" >&5 | |
3741 | echo "${ECHO_T}no" >&6 | |
3742 | : | |
3743 | ||
3744 | fi | |
3745 | ||
3746 | ||
3747 | if test -z "$REPO"; then | |
3748 | ||
3749 | echo "$as_me:$LINENO: checking whether $CXX supports -instances=explicit" >&5 | |
3750 | echo $ECHO_N "checking whether $CXX supports -instances=explicit... $ECHO_C" >&6 | |
3751 | kde_cache=`echo instances=explicit | sed 'y% .=/+-%____p_%'` | |
3752 | if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then | |
3753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3754 | else | |
3755 | ||
3756 | ||
3757 | ||
3758 | ac_ext=cc | |
3759 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3760 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3761 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3762 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3763 | ||
3764 | ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3765 | ||
3766 | ||
3767 | save_CXXFLAGS="$CXXFLAGS" | |
3768 | CXXFLAGS="$CXXFLAGS -instances=explicit" | |
3769 | cat >conftest.$ac_ext <<_ACEOF | |
3770 | #line $LINENO "configure" | |
3771 | #include "confdefs.h" | |
3772 | ||
3773 | #ifdef F77_DUMMY_MAIN | |
3774 | # ifdef __cplusplus | |
3775 | extern "C" | |
3776 | # endif | |
3777 | int F77_DUMMY_MAIN() { return 1; } | |
3778 | #endif | |
3779 | int | |
3780 | main () | |
3781 | { | |
3782 | return 0; | |
3783 | ; | |
3784 | return 0; | |
3785 | } | |
3786 | _ACEOF | |
3787 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3788 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3789 | (eval $ac_link) 2>&5 | |
3790 | ac_status=$? | |
3791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3792 | (exit $ac_status); } && | |
3793 | { ac_try='test -s conftest$ac_exeext' | |
3794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3795 | (eval $ac_try) 2>&5 | |
3796 | ac_status=$? | |
3797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3798 | (exit $ac_status); }; }; then | |
3799 | eval "kde_cv_prog_cxx_$kde_cache=yes" | |
3800 | else | |
3801 | echo "$as_me: failed program was:" >&5 | |
3802 | cat conftest.$ac_ext >&5 | |
3803 | fi | |
3804 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3805 | CXXFLAGS="$save_CXXFLAGS" | |
3806 | ac_ext=c | |
3807 | ac_cpp='$CPP $CPPFLAGS' | |
3808 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3809 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3810 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3811 | ||
3812 | ||
3813 | fi | |
3814 | ||
3815 | if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then | |
3816 | echo "$as_me:$LINENO: result: yes" >&5 | |
3817 | echo "${ECHO_T}yes" >&6 | |
3818 | : | |
3819 | ||
3820 | REPO="-instances=explicit" | |
3821 | NOREPO="-instances=extern" | |
3822 | ||
3823 | else | |
3824 | echo "$as_me:$LINENO: result: no" >&5 | |
3825 | echo "${ECHO_T}no" >&6 | |
3826 | : | |
3827 | ||
3828 | fi | |
3829 | ||
3830 | fi | |
3831 | ||
3832 | if test -n "$REPO"; then | |
3833 | ||
3834 | cat >>confdefs.h <<_ACEOF | |
3835 | #define HAVE_TEMPLATE_REPOSITORY 1 | |
3836 | _ACEOF | |
3837 | ||
3838 | ||
3839 | fi | |
3840 | ||
3841 | ||
3842 | ||
3843 | ||
3844 | if test "x$kde_use_final" = "xyes"; then | |
3845 | KDE_USE_FINAL_TRUE="" | |
3846 | KDE_USE_FINAL_FALSE="#" | |
3847 | else | |
3848 | KDE_USE_FINAL_TRUE="#" | |
3849 | KDE_USE_FINAL_FALSE="" | |
3850 | fi | |
3851 | ||
3852 | ||
3853 | ||
3854 | # Check whether --enable-closure or --disable-closure was given. | |
3855 | if test "${enable_closure+set}" = set; then | |
3856 | enableval="$enable_closure" | |
3857 | kde_use_closure=$enableval | |
3858 | else | |
3859 | kde_use_closure=yes | |
3860 | fi; | |
3861 | ||
3862 | if test "x$kde_use_closure" = "xyes"; then | |
3863 | KDE_USE_CLOSURE_TRUE="" | |
3864 | KDE_USE_CLOSURE_FALSE="#" | |
3865 | # CXXFLAGS="$CXXFLAGS $REPO" | |
3866 | else | |
3867 | KDE_USE_CLOSURE_TRUE="#" | |
3868 | KDE_USE_CLOSURE_FALSE="" | |
3869 | fi | |
3870 | ||
3871 | ||
3872 | ||
3873 | ||
3874 | ||
3875 | ||
3876 | KDE_CXXFLAGS= | |
3877 | ||
3878 | ||
3879 | ||
3880 | ||
3881 | # Check whether --enable-shared or --disable-shared was given. | |
3882 | if test "${enable_shared+set}" = set; then | |
3883 | enableval="$enable_shared" | |
3884 | p=${PACKAGE-default} | |
3885 | case $enableval in | |
3886 | yes) enable_shared=yes ;; | |
3887 | no) enable_shared=no ;; | |
3888 | *) | |
3889 | enable_shared=no | |
3890 | # Look at the argument we got. We use all the common list separators. | |
3891 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3892 | for pkg in $enableval; do | |
3893 | IFS="$lt_save_ifs" | |
3894 | if test "X$pkg" = "X$p"; then | |
3895 | enable_shared=yes | |
3896 | fi | |
3897 | done | |
3898 | IFS="$lt_save_ifs" | |
3899 | ;; | |
3900 | esac | |
3901 | else | |
3902 | enable_shared=yes | |
3903 | fi; | |
3904 | ||
3905 | ||
3906 | # Check whether --enable-static or --disable-static was given. | |
3907 | if test "${enable_static+set}" = set; then | |
3908 | enableval="$enable_static" | |
3909 | p=${PACKAGE-default} | |
3910 | case $enableval in | |
3911 | yes) enable_static=yes ;; | |
3912 | no) enable_static=no ;; | |
3913 | *) | |
3914 | enable_static=no | |
3915 | # Look at the argument we got. We use all the common list separators. | |
3916 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3917 | for pkg in $enableval; do | |
3918 | IFS="$lt_save_ifs" | |
3919 | if test "X$pkg" = "X$p"; then | |
3920 | enable_static=yes | |
3921 | fi | |
3922 | done | |
3923 | IFS="$lt_save_ifs" | |
3924 | ;; | |
3925 | esac | |
3926 | else | |
3927 | enable_static=yes | |
3928 | fi; | |
3929 | ||
3930 | ||
3931 | ||
3932 | ||
3933 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
3934 | if test "${enable_fast_install+set}" = set; then | |
3935 | enableval="$enable_fast_install" | |
3936 | p=${PACKAGE-default} | |
3937 | case $enableval in | |
3938 | yes) enable_fast_install=yes ;; | |
3939 | no) enable_fast_install=no ;; | |
3940 | *) | |
3941 | enable_fast_install=no | |
3942 | # Look at the argument we got. We use all the common list separators. | |
3943 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3944 | for pkg in $enableval; do | |
3945 | IFS="$lt_save_ifs" | |
3946 | if test "X$pkg" = "X$p"; then | |
3947 | enable_fast_install=yes | |
3948 | fi | |
3949 | done | |
3950 | IFS="$lt_save_ifs" | |
3951 | ;; | |
3952 | esac | |
3953 | else | |
3954 | enable_fast_install=yes | |
3955 | fi; | |
3956 | ||
3957 | ||
3958 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
3959 | if test "${with_gnu_ld+set}" = set; then | |
3960 | withval="$with_gnu_ld" | |
3961 | test "$withval" = no || with_gnu_ld=yes | |
3962 | else | |
3963 | with_gnu_ld=no | |
3964 | fi; | |
3965 | ac_prog=ld | |
3966 | if test "$GCC" = yes; then | |
3967 | # Check if gcc -print-prog-name=ld gives a path. | |
3968 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 | |
3969 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
3970 | case $host in | |
3971 | *-*-mingw*) | |
3972 | # gcc leaves a trailing carriage return which upsets mingw | |
3973 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3974 | *) | |
3975 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3976 | esac | |
3977 | case $ac_prog in | |
3978 | # Accept absolute paths. | |
3979 | [\\/]* | ?:[\\/]*) | |
3980 | re_direlt='/[^/][^/]*/\.\./' | |
3981 | # Canonicalize the path of ld | |
3982 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
3983 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3984 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3985 | done | |
3986 | test -z "$LD" && LD="$ac_prog" | |
3987 | ;; | |
3988 | "") | |
3989 | # If it fails, then pretend we aren't using GCC. | |
3990 | ac_prog=ld | |
3991 | ;; | |
3992 | *) | |
3993 | # If it is relative, then search for the first ld in PATH. | |
3994 | with_gnu_ld=unknown | |
3995 | ;; | |
3996 | esac | |
3997 | elif test "$with_gnu_ld" = yes; then | |
3998 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
3999 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
4000 | else | |
4001 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
4002 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
4003 | fi | |
4004 | if test "${lt_cv_path_LD+set}" = set; then | |
4005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4006 | else | |
4007 | if test -z "$LD"; then | |
4008 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4009 | for ac_dir in $PATH; do | |
4010 | IFS="$lt_save_ifs" | |
4011 | test -z "$ac_dir" && ac_dir=. | |
4012 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4013 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
4014 | # Check to see if the program is GNU ld. I'd rather use --version, | |
4015 | # but apparently some GNU ld's only accept -v. | |
4016 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4017 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
4018 | test "$with_gnu_ld" != no && break | |
4019 | else | |
4020 | test "$with_gnu_ld" != yes && break | |
4021 | fi | |
4022 | fi | |
4023 | done | |
4024 | IFS="$lt_save_ifs" | |
4025 | else | |
4026 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4027 | fi | |
4028 | fi | |
4029 | ||
4030 | LD="$lt_cv_path_LD" | |
4031 | if test -n "$LD"; then | |
4032 | echo "$as_me:$LINENO: result: $LD" >&5 | |
4033 | echo "${ECHO_T}$LD" >&6 | |
4034 | else | |
4035 | echo "$as_me:$LINENO: result: no" >&5 | |
4036 | echo "${ECHO_T}no" >&6 | |
4037 | fi | |
4038 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
4039 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
4040 | { (exit 1); exit 1; }; } | |
4041 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
4042 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
4043 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
4044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4045 | else | |
4046 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
4047 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
4048 | lt_cv_prog_gnu_ld=yes | |
4049 | else | |
4050 | lt_cv_prog_gnu_ld=no | |
4051 | fi | |
4052 | fi | |
4053 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
4054 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
4055 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
4056 | ||
4057 | ||
4058 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
4059 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
4060 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
4061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4062 | else | |
4063 | lt_cv_ld_reload_flag='-r' | |
4064 | fi | |
4065 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
4066 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
4067 | reload_flag=$lt_cv_ld_reload_flag | |
4068 | case $reload_flag in | |
4069 | "" | " "*) ;; | |
4070 | *) reload_flag=" $reload_flag" ;; | |
4071 | esac | |
4072 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4073 | ||
4074 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | |
4075 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
4076 | if test "${lt_cv_path_NM+set}" = set; then | |
4077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4078 | else | |
4079 | if test -n "$NM"; then | |
4080 | # Let the user override the test. | |
4081 | lt_cv_path_NM="$NM" | |
4082 | else | |
4083 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4084 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | |
4085 | IFS="$lt_save_ifs" | |
4086 | test -z "$ac_dir" && ac_dir=. | |
4087 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" | |
4088 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4089 | # Check to see if the nm accepts a BSD-compat flag. | |
4090 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4091 | # nm: unknown option "B" ignored | |
4092 | # Tru64's nm complains that /dev/null is an invalid object file | |
4093 | if ("$tmp_nm" -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
4094 | lt_cv_path_NM="$tmp_nm -B" | |
4095 | break | |
4096 | elif ("$tmp_nm" -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | |
4097 | lt_cv_path_NM="$tmp_nm -p" | |
4098 | break | |
4099 | else | |
4100 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4101 | continue # so that we can try to find one that supports BSD flags | |
4102 | fi | |
4103 | fi | |
4104 | done | |
4105 | IFS="$lt_save_ifs" | |
4106 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | |
4107 | fi | |
4108 | fi | |
4109 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | |
4110 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | |
4111 | NM="$lt_cv_path_NM" | |
4112 | ||
4113 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
4114 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | |
4115 | if test "${lt_cv_path_SED+set}" = set; then | |
4116 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4117 | else | |
4118 | # Loop through the user's path and test for sed and gsed. | |
4119 | # Then use that list of sed's as ones to test for truncation. | |
4120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4121 | for as_dir in $PATH | |
4122 | do | |
4123 | IFS=$as_save_IFS | |
4124 | test -z "$as_dir" && as_dir=. | |
4125 | for ac_prog in sed gsed; do | |
4126 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4127 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
4128 | _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" | |
4129 | fi | |
4130 | done | |
4131 | done | |
4132 | done | |
4133 | ||
4134 | # Create a temporary directory, and hook for its removal unless debugging. | |
4135 | $debug || | |
4136 | { | |
4137 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
4138 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
4139 | } | |
4140 | ||
4141 | # Create a (secure) tmp directory for tmp files. | |
4142 | : ${TMPDIR=/tmp} | |
4143 | { | |
4144 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && | |
4145 | test -n "$tmp" && test -d "$tmp" | |
4146 | } || | |
4147 | { | |
4148 | tmp=$TMPDIR/sed$$-$RANDOM | |
4149 | (umask 077 && mkdir $tmp) | |
4150 | } || | |
4151 | { | |
4152 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
4153 | { (exit 1); exit 1; } | |
4154 | } | |
4155 | _max=0 | |
4156 | _count=0 | |
4157 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
4158 | # along with /bin/sed that truncates output. | |
4159 | for _sed in $_sed_list /usr/xpg4/bin/sed; do | |
4160 | test ! -f ${_sed} && break | |
4161 | cat /dev/null > "$tmp/sed.in" | |
4162 | _count=0 | |
4163 | echo $ECHO_N "0123456789$ECHO_C" >"$tmp/sed.in" | |
4164 | # Check for GNU sed and select it if it is found. | |
4165 | if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then | |
4166 | lt_cv_path_SED=${_sed} | |
4167 | break; | |
4168 | fi | |
4169 | while true; do | |
4170 | cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" | |
4171 | mv "$tmp/sed.tmp" "$tmp/sed.in" | |
4172 | cp "$tmp/sed.in" "$tmp/sed.nl" | |
4173 | echo >>"$tmp/sed.nl" | |
4174 | ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break | |
4175 | cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break | |
4176 | # 10000 chars as input seems more than enough | |
4177 | test $_count -gt 10 && break | |
4178 | _count=`expr $_count + 1` | |
4179 | if test $_count -gt $_max; then | |
4180 | _max=$_count | |
4181 | lt_cv_path_SED=$_sed | |
4182 | fi | |
4183 | done | |
4184 | done | |
4185 | rm -rf "$tmp" | |
4186 | ||
4187 | fi | |
4188 | ||
4189 | echo "$as_me:$LINENO: result: $SED" >&5 | |
4190 | echo "${ECHO_T}$SED" >&6 | |
4191 | ||
4192 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
4193 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
4194 | LN_S=$as_ln_s | |
4195 | if test "$LN_S" = "ln -s"; then | |
4196 | echo "$as_me:$LINENO: result: yes" >&5 | |
4197 | echo "${ECHO_T}yes" >&6 | |
4198 | else | |
4199 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
4200 | echo "${ECHO_T}no, using $LN_S" >&6 | |
4201 | fi | |
4202 | ||
4203 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 | |
4204 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
4205 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
4206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4207 | else | |
4208 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
4209 | lt_cv_file_magic_test_file= | |
4210 | lt_cv_deplibs_check_method='unknown' | |
4211 | # Need to set the preceding variable on all platforms that support | |
4212 | # interlibrary dependencies. | |
4213 | # 'none' -- dependencies not supported. | |
4214 | # `unknown' -- same as none, but documents that we really don't know. | |
4215 | # 'pass_all' -- all dependencies passed with no checks. | |
4216 | # 'test_compile' -- check by making test program. | |
4217 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
4218 | # which responds to the $file_magic_cmd with a given egrep regex. | |
4219 | # If you have `file' or equivalent on your system and you're not sure | |
4220 | # whether `pass_all' will *always* work, you probably want this one. | |
4221 | ||
4222 | case $host_os in | |
4223 | aix4* | aix5*) | |
4224 | lt_cv_deplibs_check_method=pass_all | |
4225 | ;; | |
4226 | ||
4227 | beos*) | |
4228 | lt_cv_deplibs_check_method=pass_all | |
4229 | ;; | |
4230 | ||
4231 | bsdi4*) | |
4232 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
4233 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4234 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4235 | ;; | |
4236 | ||
4237 | cygwin* | mingw* | pw32*) | |
4238 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
4239 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4240 | ;; | |
4241 | ||
4242 | darwin* | rhapsody*) | |
4243 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
4244 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4245 | case "$host_os" in | |
4246 | rhapsody* | darwin1.[012]) | |
4247 | lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` | |
4248 | ;; | |
4249 | *) # Darwin 1.3 on | |
4250 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
4251 | ;; | |
4252 | esac | |
4253 | ;; | |
4254 | ||
4255 | freebsd*) | |
4256 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
4257 | case $host_cpu in | |
4258 | i*86 ) | |
4259 | # Not sure whether the presence of OpenBSD here was a mistake. | |
4260 | # Let's accept both of them until this is cleared up. | |
4261 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | |
4262 | lt_cv_file_magic_cmd=/usr/bin/file | |
4263 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4264 | ;; | |
4265 | esac | |
4266 | else | |
4267 | lt_cv_deplibs_check_method=pass_all | |
4268 | fi | |
4269 | ;; | |
4270 | ||
4271 | gnu*) | |
4272 | lt_cv_deplibs_check_method=pass_all | |
4273 | ;; | |
4274 | ||
4275 | hpux10.20* | hpux11*) | |
4276 | lt_cv_file_magic_cmd=/usr/bin/file | |
4277 | if test "$host_cpu" = ia64; then | |
4278 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
4279 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
4280 | else | |
4281 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
4282 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
4283 | fi | |
4284 | ;; | |
4285 | ||
4286 | irix5* | irix6* | nonstopux*) | |
4287 | case $host_os in | |
4288 | irix5* | nonstopux*) | |
4289 | # this will be overridden with pass_all, but let us keep it just in case | |
4290 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
4291 | ;; | |
4292 | *) | |
4293 | case $LD in | |
4294 | *-32|*"-32 ") libmagic=32-bit;; | |
4295 | *-n32|*"-n32 ") libmagic=N32;; | |
4296 | *-64|*"-64 ") libmagic=64-bit;; | |
4297 | *) libmagic=never-match;; | |
4298 | esac | |
4299 | # this will be overridden with pass_all, but let us keep it just in case | |
4300 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" | |
4301 | ;; | |
4302 | esac | |
4303 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
4304 | lt_cv_deplibs_check_method=pass_all | |
4305 | ;; | |
4306 | ||
4307 | # This must be Linux ELF. | |
4308 | linux*) | |
4309 | case $host_cpu in | |
4310 | alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh* | x86_64* ) | |
4311 | lt_cv_deplibs_check_method=pass_all ;; | |
4312 | *) | |
4313 | # glibc up to 2.1.1 does not perform some relocations on ARM | |
4314 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; | |
4315 | esac | |
4316 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` | |
4317 | ;; | |
4318 | ||
4319 | netbsd*) | |
4320 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
4321 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | |
4322 | else | |
4323 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' | |
4324 | fi | |
4325 | ;; | |
4326 | ||
4327 | newos6*) | |
4328 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
4329 | lt_cv_file_magic_cmd=/usr/bin/file | |
4330 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
4331 | ;; | |
4332 | ||
4333 | nto-qnx) | |
4334 | lt_cv_deplibs_check_method=unknown | |
4335 | ;; | |
4336 | ||
4337 | openbsd*) | |
4338 | lt_cv_file_magic_cmd=/usr/bin/file | |
4339 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4340 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
4341 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' | |
4342 | else | |
4343 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' | |
4344 | fi | |
4345 | ;; | |
4346 | ||
4347 | osf3* | osf4* | osf5*) | |
4348 | # this will be overridden with pass_all, but let us keep it just in case | |
4349 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
4350 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4351 | lt_cv_deplibs_check_method=pass_all | |
4352 | ;; | |
4353 | ||
4354 | sco3.2v5*) | |
4355 | lt_cv_deplibs_check_method=pass_all | |
4356 | ;; | |
4357 | ||
4358 | solaris*) | |
4359 | lt_cv_deplibs_check_method=pass_all | |
4360 | lt_cv_file_magic_test_file=/lib/libc.so | |
4361 | ;; | |
4362 | ||
4363 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
4364 | case $host_vendor in | |
4365 | motorola) | |
4366 | 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]' | |
4367 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
4368 | ;; | |
4369 | ncr) | |
4370 | lt_cv_deplibs_check_method=pass_all | |
4371 | ;; | |
4372 | sequent) | |
4373 | lt_cv_file_magic_cmd='/bin/file' | |
4374 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
4375 | ;; | |
4376 | sni) | |
4377 | lt_cv_file_magic_cmd='/bin/file' | |
4378 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
4379 | lt_cv_file_magic_test_file=/lib/libc.so | |
4380 | ;; | |
4381 | esac | |
4382 | ;; | |
4383 | ||
4384 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) | |
4385 | lt_cv_deplibs_check_method=pass_all | |
4386 | ;; | |
4387 | esac | |
4388 | ||
4389 | fi | |
4390 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
4391 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
4392 | file_magic_cmd=$lt_cv_file_magic_cmd | |
4393 | deplibs_check_method=$lt_cv_deplibs_check_method | |
4394 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
4395 | ||
4396 | ||
4397 | # If no C compiler was specified, use CC. | |
4398 | LTCC=${LTCC-"$CC"} | |
4399 | ||
4400 | # Allow CC to be a program name with arguments. | |
4401 | set dummy $CC | |
4402 | compiler="$2" | |
4403 | ||
4404 | ||
4405 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
4406 | if test "${enable_libtool_lock+set}" = set; then | |
4407 | enableval="$enable_libtool_lock" | |
4408 | ||
4409 | fi; | |
4410 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
4411 | ||
4412 | # Some flags need to be propagated to the compiler or linker for good | |
4413 | # libtool support. | |
4414 | case $host in | |
4415 | ia64-*-hpux*) | |
4416 | # Find out which ABI we are using. | |
4417 | echo 'int i;' > conftest.$ac_ext | |
4418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4419 | (eval $ac_compile) 2>&5 | |
4420 | ac_status=$? | |
4421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4422 | (exit $ac_status); }; then | |
4423 | case `/usr/bin/file conftest.$ac_objext` in | |
4424 | *ELF-32*) | |
4425 | HPUX_IA64_MODE="32" | |
4426 | ;; | |
4427 | *ELF-64*) | |
4428 | HPUX_IA64_MODE="64" | |
4429 | ;; | |
4430 | esac | |
4431 | fi | |
4432 | rm -rf conftest* | |
4433 | ;; | |
4434 | *-*-irix6*) | |
4435 | # Find out which ABI we are using. | |
4436 | echo '#line 4436 "configure"' > conftest.$ac_ext | |
4437 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4438 | (eval $ac_compile) 2>&5 | |
4439 | ac_status=$? | |
4440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4441 | (exit $ac_status); }; then | |
4442 | case `/usr/bin/file conftest.$ac_objext` in | |
4443 | *32-bit*) | |
4444 | LD="${LD-ld} -32" | |
4445 | ;; | |
4446 | *N32*) | |
4447 | LD="${LD-ld} -n32" | |
4448 | ;; | |
4449 | *64-bit*) | |
4450 | LD="${LD-ld} -64" | |
4451 | ;; | |
4452 | esac | |
4453 | fi | |
4454 | rm -rf conftest* | |
4455 | ;; | |
4456 | ||
4457 | *-*-linux*) | |
4458 | # Test if the compiler is 64bit | |
4459 | echo 'int i;' > conftest.$ac_ext | |
4460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4461 | (eval $ac_compile) 2>&5 | |
4462 | ac_status=$? | |
4463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4464 | (exit $ac_status); }; then | |
4465 | case `/usr/bin/file conftest.$ac_objext` in | |
4466 | *"ELF 32"*) | |
4467 | LINUX_64_MODE="32" | |
4468 | ;; | |
4469 | *"ELF 64"*) | |
4470 | LINUX_64_MODE="64" | |
4471 | ;; | |
4472 | esac | |
4473 | fi | |
4474 | rm -rf conftest* | |
4475 | ;; | |
4476 | ||
4477 | *-*-sco3.2v5*) | |
4478 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
4479 | SAVE_CFLAGS="$CFLAGS" | |
4480 | CFLAGS="$CFLAGS -belf" | |
4481 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
4482 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
4483 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
4484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4485 | else | |
4486 | ac_ext=c | |
4487 | ac_cpp='$CPP $CPPFLAGS' | |
4488 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4489 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4490 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4491 | ||
4492 | cat >conftest.$ac_ext <<_ACEOF | |
4493 | #line $LINENO "configure" | |
4494 | #include "confdefs.h" | |
4495 | ||
4496 | #ifdef F77_DUMMY_MAIN | |
4497 | # ifdef __cplusplus | |
4498 | extern "C" | |
4499 | # endif | |
4500 | int F77_DUMMY_MAIN() { return 1; } | |
4501 | #endif | |
4502 | int | |
4503 | main () | |
4504 | { | |
4505 | ||
4506 | ; | |
4507 | return 0; | |
4508 | } | |
4509 | _ACEOF | |
4510 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4511 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4512 | (eval $ac_link) 2>&5 | |
4513 | ac_status=$? | |
4514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4515 | (exit $ac_status); } && | |
4516 | { ac_try='test -s conftest$ac_exeext' | |
4517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4518 | (eval $ac_try) 2>&5 | |
4519 | ac_status=$? | |
4520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4521 | (exit $ac_status); }; }; then | |
4522 | lt_cv_cc_needs_belf=yes | |
4523 | else | |
4524 | echo "$as_me: failed program was:" >&5 | |
4525 | cat conftest.$ac_ext >&5 | |
4526 | lt_cv_cc_needs_belf=no | |
4527 | fi | |
4528 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
4529 | ac_ext=c | |
4530 | ac_cpp='$CPP $CPPFLAGS' | |
4531 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4532 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4533 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4534 | ||
4535 | fi | |
4536 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
4537 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
4538 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
4539 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4540 | CFLAGS="$SAVE_CFLAGS" | |
4541 | fi | |
4542 | ;; | |
4543 | ||
4544 | esac | |
4545 | ||
4546 | need_locks="$enable_libtool_lock" | |
4547 | ||
4548 | ||
4549 | ||
4550 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
4551 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4552 | if test "${ac_cv_header_stdc+set}" = set; then | |
4553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4554 | else | |
4555 | cat >conftest.$ac_ext <<_ACEOF | |
4556 | #line $LINENO "configure" | |
4557 | #include "confdefs.h" | |
4558 | #include <stdlib.h> | |
4559 | #include <stdarg.h> | |
4560 | #include <string.h> | |
4561 | #include <float.h> | |
4562 | ||
4563 | _ACEOF | |
4564 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4565 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4566 | ac_status=$? | |
4567 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4568 | rm -f conftest.er1 | |
4569 | cat conftest.err >&5 | |
4570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4571 | (exit $ac_status); } >/dev/null; then | |
4572 | if test -s conftest.err; then | |
4573 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4574 | else | |
4575 | ac_cpp_err= | |
4576 | fi | |
4577 | else | |
4578 | ac_cpp_err=yes | |
4579 | fi | |
4580 | if test -z "$ac_cpp_err"; then | |
4581 | ac_cv_header_stdc=yes | |
4582 | else | |
4583 | echo "$as_me: failed program was:" >&5 | |
4584 | cat conftest.$ac_ext >&5 | |
4585 | ac_cv_header_stdc=no | |
4586 | fi | |
4587 | rm -f conftest.err conftest.$ac_ext | |
4588 | ||
4589 | if test $ac_cv_header_stdc = yes; then | |
4590 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4591 | cat >conftest.$ac_ext <<_ACEOF | |
4592 | #line $LINENO "configure" | |
4593 | #include "confdefs.h" | |
4594 | #include <string.h> | |
4595 | ||
4596 | _ACEOF | |
4597 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4598 | egrep "memchr" >/dev/null 2>&1; then | |
4599 | : | |
4600 | else | |
4601 | ac_cv_header_stdc=no | |
4602 | fi | |
4603 | rm -f conftest* | |
4604 | ||
4605 | fi | |
4606 | ||
4607 | if test $ac_cv_header_stdc = yes; then | |
4608 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4609 | cat >conftest.$ac_ext <<_ACEOF | |
4610 | #line $LINENO "configure" | |
4611 | #include "confdefs.h" | |
4612 | #include <stdlib.h> | |
4613 | ||
4614 | _ACEOF | |
4615 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4616 | egrep "free" >/dev/null 2>&1; then | |
4617 | : | |
4618 | else | |
4619 | ac_cv_header_stdc=no | |
4620 | fi | |
4621 | rm -f conftest* | |
4622 | ||
4623 | fi | |
4624 | ||
4625 | if test $ac_cv_header_stdc = yes; then | |
4626 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4627 | if test "$cross_compiling" = yes; then | |
4628 | : | |
4629 | else | |
4630 | cat >conftest.$ac_ext <<_ACEOF | |
4631 | #line $LINENO "configure" | |
4632 | #include "confdefs.h" | |
4633 | #include <ctype.h> | |
4634 | #if ((' ' & 0x0FF) == 0x020) | |
4635 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4636 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4637 | #else | |
4638 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
4639 | || ('j' <= (c) && (c) <= 'r') \ | |
4640 | || ('s' <= (c) && (c) <= 'z')) | |
4641 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4642 | #endif | |
4643 | ||
4644 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4645 | int | |
4646 | main () | |
4647 | { | |
4648 | int i; | |
4649 | for (i = 0; i < 256; i++) | |
4650 | if (XOR (islower (i), ISLOWER (i)) | |
4651 | || toupper (i) != TOUPPER (i)) | |
4652 | exit(2); | |
4653 | exit (0); | |
4654 | } | |
4655 | _ACEOF | |
4656 | rm -f conftest$ac_exeext | |
4657 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4658 | (eval $ac_link) 2>&5 | |
4659 | ac_status=$? | |
4660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4661 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4663 | (eval $ac_try) 2>&5 | |
4664 | ac_status=$? | |
4665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4666 | (exit $ac_status); }; }; then | |
4667 | : | |
4668 | else | |
4669 | echo "$as_me: program exited with status $ac_status" >&5 | |
4670 | echo "$as_me: failed program was:" >&5 | |
4671 | cat conftest.$ac_ext >&5 | |
4672 | ( exit $ac_status ) | |
4673 | ac_cv_header_stdc=no | |
4674 | fi | |
4675 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4676 | fi | |
4677 | fi | |
4678 | fi | |
4679 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4680 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4681 | if test $ac_cv_header_stdc = yes; then | |
4682 | ||
4683 | cat >>confdefs.h <<\_ACEOF | |
4684 | #define STDC_HEADERS 1 | |
4685 | _ACEOF | |
4686 | ||
4687 | fi | |
4688 | ||
4689 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4690 | ||
4691 | ||
4692 | ||
4693 | ||
4694 | ||
4695 | ||
4696 | ||
4697 | ||
4698 | ||
4699 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4700 | inttypes.h stdint.h unistd.h | |
4701 | do | |
4702 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4703 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4704 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4705 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4707 | else | |
4708 | cat >conftest.$ac_ext <<_ACEOF | |
4709 | #line $LINENO "configure" | |
4710 | #include "confdefs.h" | |
4711 | $ac_includes_default | |
4712 | ||
4713 | #include <$ac_header> | |
4714 | _ACEOF | |
4715 | rm -f conftest.$ac_objext | |
4716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4717 | (eval $ac_compile) 2>&5 | |
4718 | ac_status=$? | |
4719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4720 | (exit $ac_status); } && | |
4721 | { ac_try='test -s conftest.$ac_objext' | |
4722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4723 | (eval $ac_try) 2>&5 | |
4724 | ac_status=$? | |
4725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4726 | (exit $ac_status); }; }; then | |
4727 | eval "$as_ac_Header=yes" | |
4728 | else | |
4729 | echo "$as_me: failed program was:" >&5 | |
4730 | cat conftest.$ac_ext >&5 | |
4731 | eval "$as_ac_Header=no" | |
4732 | fi | |
4733 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4734 | fi | |
4735 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4736 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4737 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4738 | cat >>confdefs.h <<_ACEOF | |
4739 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4740 | _ACEOF | |
4741 | ||
4742 | fi | |
4743 | ||
4744 | done | |
4745 | ||
4746 | ||
4747 | ||
4748 | for ac_header in dlfcn.h | |
4749 | do | |
4750 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4751 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4752 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4753 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4754 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4756 | fi | |
4757 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4758 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4759 | else | |
4760 | # Is the header compilable? | |
4761 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4762 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4763 | cat >conftest.$ac_ext <<_ACEOF | |
4764 | #line $LINENO "configure" | |
4765 | #include "confdefs.h" | |
4766 | $ac_includes_default | |
4767 | #include <$ac_header> | |
4768 | _ACEOF | |
4769 | rm -f conftest.$ac_objext | |
4770 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4771 | (eval $ac_compile) 2>&5 | |
4772 | ac_status=$? | |
4773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4774 | (exit $ac_status); } && | |
4775 | { ac_try='test -s conftest.$ac_objext' | |
4776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4777 | (eval $ac_try) 2>&5 | |
4778 | ac_status=$? | |
4779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4780 | (exit $ac_status); }; }; then | |
4781 | ac_header_compiler=yes | |
4782 | else | |
4783 | echo "$as_me: failed program was:" >&5 | |
4784 | cat conftest.$ac_ext >&5 | |
4785 | ac_header_compiler=no | |
4786 | fi | |
4787 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4788 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4789 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4790 | ||
4791 | # Is the header present? | |
4792 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4793 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4794 | cat >conftest.$ac_ext <<_ACEOF | |
4795 | #line $LINENO "configure" | |
4796 | #include "confdefs.h" | |
4797 | #include <$ac_header> | |
4798 | _ACEOF | |
4799 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4800 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4801 | ac_status=$? | |
4802 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4803 | rm -f conftest.er1 | |
4804 | cat conftest.err >&5 | |
4805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4806 | (exit $ac_status); } >/dev/null; then | |
4807 | if test -s conftest.err; then | |
4808 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4809 | else | |
4810 | ac_cpp_err= | |
4811 | fi | |
4812 | else | |
4813 | ac_cpp_err=yes | |
4814 | fi | |
4815 | if test -z "$ac_cpp_err"; then | |
4816 | ac_header_preproc=yes | |
4817 | else | |
4818 | echo "$as_me: failed program was:" >&5 | |
4819 | cat conftest.$ac_ext >&5 | |
4820 | ac_header_preproc=no | |
4821 | fi | |
4822 | rm -f conftest.err conftest.$ac_ext | |
4823 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4824 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4825 | ||
4826 | # So? What about this header? | |
4827 | case $ac_header_compiler:$ac_header_preproc in | |
4828 | yes:no ) | |
4829 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4830 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4831 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4832 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
4833 | no:yes ) | |
4834 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4835 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4836 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4837 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4838 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4839 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
4840 | esac | |
4841 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4842 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4843 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4845 | else | |
4846 | eval "$as_ac_Header=$ac_header_preproc" | |
4847 | fi | |
4848 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4849 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4850 | ||
4851 | fi | |
4852 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4853 | cat >>confdefs.h <<_ACEOF | |
4854 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4855 | _ACEOF | |
4856 | ||
4857 | fi | |
4858 | ||
4859 | done | |
4860 | ||
4861 | ac_ext=cc | |
4862 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4863 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4864 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4865 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4866 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
4867 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
4868 | if test -z "$CXXCPP"; then | |
4869 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
4870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4871 | else | |
4872 | # Double quotes because CXXCPP needs to be expanded | |
4873 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
4874 | do | |
4875 | ac_preproc_ok=false | |
4876 | for ac_cxx_preproc_warn_flag in '' yes | |
4877 | do | |
4878 | # Use a header file that comes with gcc, so configuring glibc | |
4879 | # with a fresh cross-compiler works. | |
4880 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4881 | # not just through cpp. "Syntax error" is here to catch this case. | |
4882 | cat >conftest.$ac_ext <<_ACEOF | |
4883 | #line $LINENO "configure" | |
4884 | #include "confdefs.h" | |
4885 | #include <assert.h> | |
4886 | Syntax error | |
4887 | _ACEOF | |
4888 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4889 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4890 | ac_status=$? | |
4891 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4892 | rm -f conftest.er1 | |
4893 | cat conftest.err >&5 | |
4894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4895 | (exit $ac_status); } >/dev/null; then | |
4896 | if test -s conftest.err; then | |
4897 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
4898 | else | |
4899 | ac_cpp_err= | |
4900 | fi | |
4901 | else | |
4902 | ac_cpp_err=yes | |
4903 | fi | |
4904 | if test -z "$ac_cpp_err"; then | |
4905 | : | |
4906 | else | |
4907 | echo "$as_me: failed program was:" >&5 | |
4908 | cat conftest.$ac_ext >&5 | |
4909 | # Broken: fails on valid input. | |
4910 | continue | |
4911 | fi | |
4912 | rm -f conftest.err conftest.$ac_ext | |
4913 | ||
4914 | # OK, works on sane cases. Now check whether non-existent headers | |
4915 | # can be detected and how. | |
4916 | cat >conftest.$ac_ext <<_ACEOF | |
4917 | #line $LINENO "configure" | |
4918 | #include "confdefs.h" | |
4919 | #include <ac_nonexistent.h> | |
4920 | _ACEOF | |
4921 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4922 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4923 | ac_status=$? | |
4924 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4925 | rm -f conftest.er1 | |
4926 | cat conftest.err >&5 | |
4927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4928 | (exit $ac_status); } >/dev/null; then | |
4929 | if test -s conftest.err; then | |
4930 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
4931 | else | |
4932 | ac_cpp_err= | |
4933 | fi | |
4934 | else | |
4935 | ac_cpp_err=yes | |
4936 | fi | |
4937 | if test -z "$ac_cpp_err"; then | |
4938 | # Broken: success on invalid input. | |
4939 | continue | |
4940 | else | |
4941 | echo "$as_me: failed program was:" >&5 | |
4942 | cat conftest.$ac_ext >&5 | |
4943 | # Passes both tests. | |
4944 | ac_preproc_ok=: | |
4945 | break | |
4946 | fi | |
4947 | rm -f conftest.err conftest.$ac_ext | |
4948 | ||
4949 | done | |
4950 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4951 | rm -f conftest.err conftest.$ac_ext | |
4952 | if $ac_preproc_ok; then | |
4953 | break | |
4954 | fi | |
4955 | ||
4956 | done | |
4957 | ac_cv_prog_CXXCPP=$CXXCPP | |
4958 | ||
4959 | fi | |
4960 | CXXCPP=$ac_cv_prog_CXXCPP | |
4961 | else | |
4962 | ac_cv_prog_CXXCPP=$CXXCPP | |
4963 | fi | |
4964 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
4965 | echo "${ECHO_T}$CXXCPP" >&6 | |
4966 | ac_preproc_ok=false | |
4967 | for ac_cxx_preproc_warn_flag in '' yes | |
4968 | do | |
4969 | # Use a header file that comes with gcc, so configuring glibc | |
4970 | # with a fresh cross-compiler works. | |
4971 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4972 | # not just through cpp. "Syntax error" is here to catch this case. | |
4973 | cat >conftest.$ac_ext <<_ACEOF | |
4974 | #line $LINENO "configure" | |
4975 | #include "confdefs.h" | |
4976 | #include <assert.h> | |
4977 | Syntax error | |
4978 | _ACEOF | |
4979 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4980 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4981 | ac_status=$? | |
4982 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4983 | rm -f conftest.er1 | |
4984 | cat conftest.err >&5 | |
4985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4986 | (exit $ac_status); } >/dev/null; then | |
4987 | if test -s conftest.err; then | |
4988 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
4989 | else | |
4990 | ac_cpp_err= | |
4991 | fi | |
4992 | else | |
4993 | ac_cpp_err=yes | |
4994 | fi | |
4995 | if test -z "$ac_cpp_err"; then | |
4996 | : | |
4997 | else | |
4998 | echo "$as_me: failed program was:" >&5 | |
4999 | cat conftest.$ac_ext >&5 | |
5000 | # Broken: fails on valid input. | |
5001 | continue | |
5002 | fi | |
5003 | rm -f conftest.err conftest.$ac_ext | |
5004 | ||
5005 | # OK, works on sane cases. Now check whether non-existent headers | |
5006 | # can be detected and how. | |
5007 | cat >conftest.$ac_ext <<_ACEOF | |
5008 | #line $LINENO "configure" | |
5009 | #include "confdefs.h" | |
5010 | #include <ac_nonexistent.h> | |
5011 | _ACEOF | |
5012 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5013 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5014 | ac_status=$? | |
5015 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5016 | rm -f conftest.er1 | |
5017 | cat conftest.err >&5 | |
5018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5019 | (exit $ac_status); } >/dev/null; then | |
5020 | if test -s conftest.err; then | |
5021 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
5022 | else | |
5023 | ac_cpp_err= | |
5024 | fi | |
5025 | else | |
5026 | ac_cpp_err=yes | |
5027 | fi | |
5028 | if test -z "$ac_cpp_err"; then | |
5029 | # Broken: success on invalid input. | |
5030 | continue | |
5031 | else | |
5032 | echo "$as_me: failed program was:" >&5 | |
5033 | cat conftest.$ac_ext >&5 | |
5034 | # Passes both tests. | |
5035 | ac_preproc_ok=: | |
5036 | break | |
5037 | fi | |
5038 | rm -f conftest.err conftest.$ac_ext | |
5039 | ||
5040 | done | |
5041 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5042 | rm -f conftest.err conftest.$ac_ext | |
5043 | if $ac_preproc_ok; then | |
5044 | : | |
5045 | else | |
5046 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5 | |
5047 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;} | |
5048 | { (exit 1); exit 1; }; } | |
5049 | fi | |
5050 | ||
5051 | ac_ext=cc | |
5052 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5053 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5054 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5055 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5056 | ||
5057 | ||
5058 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
5059 | ||
5060 | # find the maximum length of command line arguments | |
5061 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
5062 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
5063 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
5064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5065 | else | |
5066 | i=0 | |
5067 | testring="ABCD" | |
5068 | ||
5069 | case $host_os in | |
5070 | msdosdjgpp*) | |
5071 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5072 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5073 | # during glob expansion). Even if it were fixed, the result of this | |
5074 | # check would be larger than it should be. | |
5075 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5076 | ;; | |
5077 | ||
5078 | gnu*) | |
5079 | # Under GNU Hurd, this test is not required because there is | |
5080 | # no limit to the length of command line arguments. | |
5081 | # Libtool will interpret -1 as no limit whatsoever | |
5082 | lt_cv_sys_max_cmd_len=-1; | |
5083 | ;; | |
5084 | ||
5085 | *) | |
5086 | # If test is not a shell built-in, we'll probably end up computing a | |
5087 | # maximum length that is only half of the actual maximum length, but | |
5088 | # we can't tell. | |
5089 | while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ | |
5090 | = "XX$testring") >/dev/null 2>&1 && | |
5091 | new_result=`expr "X$testring" : ".*" 2>&1` && | |
5092 | lt_cv_sys_max_cmd_len=$new_result && | |
5093 | test $i != 17 # 1/2 MB should be enough | |
5094 | do | |
5095 | i=`expr $i + 1` | |
5096 | testring=$testring$testring | |
5097 | done | |
5098 | testring= | |
5099 | # Add a significant safety factor because C++ compilers can tack on massive | |
5100 | # amounts of additional arguments before passing them to the linker. | |
5101 | # It appears as though 1/2 is a usable value. | |
5102 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5103 | ;; | |
5104 | esac | |
5105 | ||
5106 | fi | |
5107 | ||
5108 | if test -n $lt_cv_sys_max_cmd_len ; then | |
5109 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
5110 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
5111 | else | |
5112 | echo "$as_me:$LINENO: result: none" >&5 | |
5113 | echo "${ECHO_T}none" >&6 | |
5114 | fi | |
5115 | ||
5116 | ||
5117 | ||
5118 | ||
5119 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5120 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
5121 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | |
5122 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
5123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5124 | else | |
5125 | ||
5126 | # These are sane defaults that work on at least a few old systems. | |
5127 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5128 | ||
5129 | # Character class describing NM global symbol codes. | |
5130 | symcode='[BCDEGRST]' | |
5131 | ||
5132 | # Regexp to match symbols that can be accessed directly from C. | |
5133 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5134 | ||
5135 | # Transform the above into a raw symbol and a C symbol. | |
5136 | symxfrm='\1 \2\3 \3' | |
5137 | ||
5138 | # Transform an extracted symbol line into a proper C declaration | |
5139 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | |
5140 | ||
5141 | # Transform an extracted symbol line into symbol name and symbol address | |
5142 | 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'" | |
5143 | ||
5144 | # Define system-specific variables. | |
5145 | case $host_os in | |
5146 | aix*) | |
5147 | symcode='[BCDT]' | |
5148 | ;; | |
5149 | cygwin* | mingw* | pw32*) | |
5150 | symcode='[ABCDGISTW]' | |
5151 | ;; | |
5152 | hpux*) # Its linker distinguishes data from code symbols | |
5153 | if test "$host_cpu" = ia64; then | |
5154 | symcode='[ABCDEGRST]' | |
5155 | fi | |
5156 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5157 | 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'" | |
5158 | ;; | |
5159 | irix* | nonstopux*) | |
5160 | symcode='[BCDEGRST]' | |
5161 | ;; | |
5162 | solaris* | sysv5*) | |
5163 | symcode='[BDT]' | |
5164 | ;; | |
5165 | sysv4) | |
5166 | symcode='[DFNSTU]' | |
5167 | ;; | |
5168 | esac | |
5169 | ||
5170 | # Handle CRLF in mingw tool chain | |
5171 | opt_cr= | |
5172 | case $host_os in | |
5173 | mingw*) | |
5174 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5175 | ;; | |
5176 | esac | |
5177 | ||
5178 | # If we're using GNU nm, then use its standard symbol codes. | |
5179 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then | |
5180 | symcode='[ABCDGISTW]' | |
5181 | fi | |
5182 | ||
5183 | # Try without a prefix undercore, then with it. | |
5184 | for ac_symprfx in "" "_"; do | |
5185 | ||
5186 | # Write the raw and C identifiers. | |
5187 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" | |
5188 | ||
5189 | # Check to see that the pipe works correctly. | |
5190 | pipe_works=no | |
5191 | ||
5192 | rm -f conftest* | |
5193 | cat > conftest.$ac_ext <<EOF | |
5194 | #ifdef __cplusplus | |
5195 | extern "C" { | |
5196 | #endif | |
5197 | char nm_test_var; | |
5198 | void nm_test_func(){} | |
5199 | #ifdef __cplusplus | |
5200 | } | |
5201 | #endif | |
5202 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5203 | EOF | |
5204 | ||
5205 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5206 | (eval $ac_compile) 2>&5 | |
5207 | ac_status=$? | |
5208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5209 | (exit $ac_status); }; then | |
5210 | # Now try to grab the symbols. | |
5211 | nlist=conftest.nm | |
5212 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
5213 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5214 | ac_status=$? | |
5215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5216 | (exit $ac_status); } && test -s "$nlist"; then | |
5217 | # Try sorting and uniquifying the output. | |
5218 | if sort "$nlist" | uniq > "$nlist"T; then | |
5219 | mv -f "$nlist"T "$nlist" | |
5220 | else | |
5221 | rm -f "$nlist"T | |
5222 | fi | |
5223 | ||
5224 | # Make sure that we snagged all the symbols we need. | |
5225 | if egrep ' nm_test_var$' "$nlist" >/dev/null; then | |
5226 | if egrep ' nm_test_func$' "$nlist" >/dev/null; then | |
5227 | cat <<EOF > conftest.$ac_ext | |
5228 | #ifdef __cplusplus | |
5229 | extern "C" { | |
5230 | #endif | |
5231 | ||
5232 | EOF | |
5233 | # Now generate the symbol file. | |
5234 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | |
5235 | ||
5236 | cat <<EOF >> conftest.$ac_ext | |
5237 | #if defined (__STDC__) && __STDC__ | |
5238 | # define lt_ptr_t void * | |
5239 | #else | |
5240 | # define lt_ptr_t char * | |
5241 | # define const | |
5242 | #endif | |
5243 | ||
5244 | /* The mapping between symbol names and symbols. */ | |
5245 | const struct { | |
5246 | const char *name; | |
5247 | lt_ptr_t address; | |
5248 | } | |
5249 | lt_preloaded_symbols[] = | |
5250 | { | |
5251 | EOF | |
5252 | sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | |
5253 | cat <<\EOF >> conftest.$ac_ext | |
5254 | {0, (lt_ptr_t) 0} | |
5255 | }; | |
5256 | ||
5257 | #ifdef __cplusplus | |
5258 | } | |
5259 | #endif | |
5260 | EOF | |
5261 | # Now try linking the two files. | |
5262 | mv conftest.$ac_objext conftstm.$ac_objext | |
5263 | lt_save_LIBS="$LIBS" | |
5264 | lt_save_CFLAGS="$CFLAGS" | |
5265 | LIBS="conftstm.$ac_objext" | |
5266 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5267 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5268 | (eval $ac_link) 2>&5 | |
5269 | ac_status=$? | |
5270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5271 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
5272 | pipe_works=yes | |
5273 | fi | |
5274 | LIBS="$lt_save_LIBS" | |
5275 | CFLAGS="$lt_save_CFLAGS" | |
5276 | else | |
5277 | echo "cannot find nm_test_func in $nlist" >&5 | |
5278 | fi | |
5279 | else | |
5280 | echo "cannot find nm_test_var in $nlist" >&5 | |
5281 | fi | |
5282 | else | |
5283 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5284 | fi | |
5285 | else | |
5286 | echo "$progname: failed program was:" >&5 | |
5287 | cat conftest.$ac_ext >&5 | |
5288 | fi | |
5289 | rm -f conftest* conftst* | |
5290 | ||
5291 | # Do not use the global_symbol_pipe unless it works. | |
5292 | if test "$pipe_works" = yes; then | |
5293 | break | |
5294 | else | |
5295 | lt_cv_sys_global_symbol_pipe= | |
5296 | fi | |
5297 | done | |
5298 | ||
5299 | fi | |
5300 | ||
5301 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5302 | lt_cv_sys_global_symbol_to_cdecl= | |
5303 | fi | |
5304 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5305 | echo "$as_me:$LINENO: result: failed" >&5 | |
5306 | echo "${ECHO_T}failed" >&6 | |
5307 | else | |
5308 | echo "$as_me:$LINENO: result: ok" >&5 | |
5309 | echo "${ECHO_T}ok" >&6 | |
5310 | fi | |
5311 | ||
5312 | echo "$as_me:$LINENO: checking for objdir" >&5 | |
5313 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | |
5314 | if test "${lt_cv_objdir+set}" = set; then | |
5315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5316 | else | |
5317 | rm -f .libs 2>/dev/null | |
5318 | mkdir .libs 2>/dev/null | |
5319 | if test -d .libs; then | |
5320 | lt_cv_objdir=.libs | |
5321 | else | |
5322 | # MS-DOS does not allow filenames that begin with a dot. | |
5323 | lt_cv_objdir=_libs | |
5324 | fi | |
5325 | rmdir .libs 2>/dev/null | |
5326 | fi | |
5327 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
5328 | echo "${ECHO_T}$lt_cv_objdir" >&6 | |
5329 | objdir=$lt_cv_objdir | |
5330 | ||
5331 | ||
5332 | ||
5333 | ||
5334 | ||
5335 | case $host_os in | |
5336 | aix3*) | |
5337 | # AIX sometimes has problems with the GCC collect2 program. For some | |
5338 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
5339 | # vanish in a puff of smoke. | |
5340 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
5341 | COLLECT_NAMES= | |
5342 | export COLLECT_NAMES | |
5343 | fi | |
5344 | ;; | |
5345 | esac | |
5346 | ||
5347 | # Sed substitution that helps us do robust quoting. It backslashifies | |
5348 | # metacharacters that are still active within double-quoted strings. | |
5349 | Xsed='sed -e s/^X//' | |
5350 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | |
5351 | ||
5352 | # Same as above, but do not quote variable references. | |
5353 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | |
5354 | ||
5355 | # Sed substitution to delay expansion of an escaped shell variable in a | |
5356 | # double_quote_subst'ed string. | |
5357 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5358 | ||
5359 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5360 | no_glob_subst='s/\*/\\\*/g' | |
5361 | ||
5362 | # Constants: | |
5363 | rm="rm -f" | |
5364 | ||
5365 | # Global variables: | |
5366 | default_ofile=libtool | |
5367 | can_build_shared=yes | |
5368 | ||
5369 | # All known linkers require a `.a' archive for static linking (except M$VC, | |
5370 | # which needs '.lib'). | |
5371 | libext=a | |
5372 | ltmain="$ac_aux_dir/ltmain.sh" | |
5373 | ofile="$default_ofile" | |
5374 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
5375 | ||
5376 | if test -n "$ac_tool_prefix"; then | |
5377 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5378 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5379 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5380 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5381 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5383 | else | |
5384 | if test -n "$RANLIB"; then | |
5385 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5386 | else | |
5387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5388 | for as_dir in $PATH | |
5389 | do | |
5390 | IFS=$as_save_IFS | |
5391 | test -z "$as_dir" && as_dir=. | |
5392 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5393 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5394 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5395 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5396 | break 2 | |
5397 | fi | |
5398 | done | |
5399 | done | |
5400 | ||
5401 | fi | |
5402 | fi | |
5403 | RANLIB=$ac_cv_prog_RANLIB | |
5404 | if test -n "$RANLIB"; then | |
5405 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5406 | echo "${ECHO_T}$RANLIB" >&6 | |
5407 | else | |
5408 | echo "$as_me:$LINENO: result: no" >&5 | |
5409 | echo "${ECHO_T}no" >&6 | |
5410 | fi | |
5411 | ||
5412 | fi | |
5413 | if test -z "$ac_cv_prog_RANLIB"; then | |
5414 | ac_ct_RANLIB=$RANLIB | |
5415 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5416 | set dummy ranlib; ac_word=$2 | |
5417 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5418 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5419 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5421 | else | |
5422 | if test -n "$ac_ct_RANLIB"; then | |
5423 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5424 | else | |
5425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5426 | for as_dir in $PATH | |
5427 | do | |
5428 | IFS=$as_save_IFS | |
5429 | test -z "$as_dir" && as_dir=. | |
5430 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5431 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5432 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5433 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5434 | break 2 | |
5435 | fi | |
5436 | done | |
5437 | done | |
5438 | ||
5439 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
5440 | fi | |
5441 | fi | |
5442 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5443 | if test -n "$ac_ct_RANLIB"; then | |
5444 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5445 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
5446 | else | |
5447 | echo "$as_me:$LINENO: result: no" >&5 | |
5448 | echo "${ECHO_T}no" >&6 | |
5449 | fi | |
5450 | ||
5451 | RANLIB=$ac_ct_RANLIB | |
5452 | else | |
5453 | RANLIB="$ac_cv_prog_RANLIB" | |
5454 | fi | |
5455 | ||
5456 | if test -n "$ac_tool_prefix"; then | |
5457 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5458 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5459 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5460 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5461 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
5462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5463 | else | |
5464 | if test -n "$STRIP"; then | |
5465 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5466 | else | |
5467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5468 | for as_dir in $PATH | |
5469 | do | |
5470 | IFS=$as_save_IFS | |
5471 | test -z "$as_dir" && as_dir=. | |
5472 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5473 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5474 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
5475 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5476 | break 2 | |
5477 | fi | |
5478 | done | |
5479 | done | |
5480 | ||
5481 | fi | |
5482 | fi | |
5483 | STRIP=$ac_cv_prog_STRIP | |
5484 | if test -n "$STRIP"; then | |
5485 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
5486 | echo "${ECHO_T}$STRIP" >&6 | |
5487 | else | |
5488 | echo "$as_me:$LINENO: result: no" >&5 | |
5489 | echo "${ECHO_T}no" >&6 | |
5490 | fi | |
5491 | ||
5492 | fi | |
5493 | if test -z "$ac_cv_prog_STRIP"; then | |
5494 | ac_ct_STRIP=$STRIP | |
5495 | # Extract the first word of "strip", so it can be a program name with args. | |
5496 | set dummy strip; ac_word=$2 | |
5497 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5498 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5499 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
5500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5501 | else | |
5502 | if test -n "$ac_ct_STRIP"; then | |
5503 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5504 | else | |
5505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5506 | for as_dir in $PATH | |
5507 | do | |
5508 | IFS=$as_save_IFS | |
5509 | test -z "$as_dir" && as_dir=. | |
5510 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5511 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5512 | ac_cv_prog_ac_ct_STRIP="strip" | |
5513 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5514 | break 2 | |
5515 | fi | |
5516 | done | |
5517 | done | |
5518 | ||
5519 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
5520 | fi | |
5521 | fi | |
5522 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
5523 | if test -n "$ac_ct_STRIP"; then | |
5524 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
5525 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
5526 | else | |
5527 | echo "$as_me:$LINENO: result: no" >&5 | |
5528 | echo "${ECHO_T}no" >&6 | |
5529 | fi | |
5530 | ||
5531 | STRIP=$ac_ct_STRIP | |
5532 | else | |
5533 | STRIP="$ac_cv_prog_STRIP" | |
5534 | fi | |
5535 | ||
5536 | ||
5537 | old_CC="$CC" | |
5538 | old_CFLAGS="$CFLAGS" | |
5539 | ||
5540 | # Set sane defaults for various variables | |
5541 | test -z "$AR" && AR=ar | |
5542 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
5543 | test -z "$AS" && AS=as | |
5544 | test -z "$CC" && CC=cc | |
5545 | test -z "$LTCC" && LTCC=$CC | |
5546 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
5547 | test -z "$LD" && LD=ld | |
5548 | test -z "$LN_S" && LN_S="ln -s" | |
5549 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
5550 | test -z "$NM" && NM=nm | |
5551 | test -z "$SED" && SED=sed | |
5552 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5553 | test -z "$RANLIB" && RANLIB=: | |
5554 | test -z "$STRIP" && STRIP=: | |
5555 | test -z "$ac_objext" && ac_objext=o | |
5556 | ||
5557 | # Determine commands to create old-style static archives. | |
5558 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
5559 | old_postinstall_cmds='chmod 644 $oldlib' | |
5560 | old_postuninstall_cmds= | |
5561 | ||
5562 | if test -n "$RANLIB"; then | |
5563 | case $host_os in | |
5564 | openbsd*) | |
5565 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" | |
5566 | ;; | |
5567 | *) | |
5568 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" | |
5569 | ;; | |
5570 | esac | |
5571 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
5572 | fi | |
5573 | ||
5574 | # Only perform the check for file, if the check method requires it | |
5575 | case $deplibs_check_method in | |
5576 | file_magic*) | |
5577 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
5578 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
5579 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
5580 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
5581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5582 | else | |
5583 | case $MAGIC_CMD in | |
5584 | [\\/*] | ?:[\\/]*) | |
5585 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
5586 | ;; | |
5587 | *) | |
5588 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
5589 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5590 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
5591 | for ac_dir in $ac_dummy; do | |
5592 | IFS="$lt_save_ifs" | |
5593 | test -z "$ac_dir" && ac_dir=. | |
5594 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
5595 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
5596 | if test -n "$file_magic_test_file"; then | |
5597 | case $deplibs_check_method in | |
5598 | "file_magic "*) | |
5599 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
5600 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
5601 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
5602 | egrep "$file_magic_regex" > /dev/null; then | |
5603 | : | |
5604 | else | |
5605 | cat <<EOF 1>&2 | |
5606 | ||
5607 | *** Warning: the command libtool uses to detect shared libraries, | |
5608 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
5609 | *** The result is that libtool may fail to recognize shared libraries | |
5610 | *** as such. This will affect the creation of libtool libraries that | |
5611 | *** depend on shared libraries, but programs linked with such libtool | |
5612 | *** libraries will work regardless of this problem. Nevertheless, you | |
5613 | *** may want to report the problem to your system manager and/or to | |
5614 | *** bug-libtool@gnu.org | |
5615 | ||
5616 | EOF | |
5617 | fi ;; | |
5618 | esac | |
5619 | fi | |
5620 | break | |
5621 | fi | |
5622 | done | |
5623 | IFS="$lt_save_ifs" | |
5624 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
5625 | ;; | |
5626 | esac | |
5627 | fi | |
5628 | ||
5629 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
5630 | if test -n "$MAGIC_CMD"; then | |
5631 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
5632 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
5633 | else | |
5634 | echo "$as_me:$LINENO: result: no" >&5 | |
5635 | echo "${ECHO_T}no" >&6 | |
5636 | fi | |
5637 | ||
5638 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
5639 | if test -n "$ac_tool_prefix"; then | |
5640 | echo "$as_me:$LINENO: checking for file" >&5 | |
5641 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
5642 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
5643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5644 | else | |
5645 | case $MAGIC_CMD in | |
5646 | [\\/*] | ?:[\\/]*) | |
5647 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
5648 | ;; | |
5649 | *) | |
5650 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
5651 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5652 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
5653 | for ac_dir in $ac_dummy; do | |
5654 | IFS="$lt_save_ifs" | |
5655 | test -z "$ac_dir" && ac_dir=. | |
5656 | if test -f $ac_dir/file; then | |
5657 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
5658 | if test -n "$file_magic_test_file"; then | |
5659 | case $deplibs_check_method in | |
5660 | "file_magic "*) | |
5661 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
5662 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
5663 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
5664 | egrep "$file_magic_regex" > /dev/null; then | |
5665 | : | |
5666 | else | |
5667 | cat <<EOF 1>&2 | |
5668 | ||
5669 | *** Warning: the command libtool uses to detect shared libraries, | |
5670 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
5671 | *** The result is that libtool may fail to recognize shared libraries | |
5672 | *** as such. This will affect the creation of libtool libraries that | |
5673 | *** depend on shared libraries, but programs linked with such libtool | |
5674 | *** libraries will work regardless of this problem. Nevertheless, you | |
5675 | *** may want to report the problem to your system manager and/or to | |
5676 | *** bug-libtool@gnu.org | |
5677 | ||
5678 | EOF | |
5679 | fi ;; | |
5680 | esac | |
5681 | fi | |
5682 | break | |
5683 | fi | |
5684 | done | |
5685 | IFS="$lt_save_ifs" | |
5686 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
5687 | ;; | |
5688 | esac | |
5689 | fi | |
5690 | ||
5691 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
5692 | if test -n "$MAGIC_CMD"; then | |
5693 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
5694 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
5695 | else | |
5696 | echo "$as_me:$LINENO: result: no" >&5 | |
5697 | echo "${ECHO_T}no" >&6 | |
5698 | fi | |
5699 | ||
5700 | else | |
5701 | MAGIC_CMD=: | |
5702 | fi | |
5703 | fi | |
5704 | ||
5705 | fi | |
5706 | ;; | |
5707 | esac | |
5708 | ||
5709 | enable_dlopen=no | |
5710 | enable_win32_dll=no | |
5711 | ||
5712 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
5713 | if test "${enable_libtool_lock+set}" = set; then | |
5714 | enableval="$enable_libtool_lock" | |
5715 | ||
5716 | fi; | |
5717 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
5718 | ||
5719 | ||
5720 | # Check whether --with-pic or --without-pic was given. | |
5721 | if test "${with_pic+set}" = set; then | |
5722 | withval="$with_pic" | |
5723 | pic_mode="$withval" | |
5724 | else | |
5725 | pic_mode=default | |
5726 | fi; | |
5727 | test -z "$pic_mode" && pic_mode=default | |
5728 | ||
5729 | # Use C for the default configuration in the libtool script | |
5730 | tagname= | |
5731 | lt_save_CC="$CC" | |
5732 | ac_ext=c | |
5733 | ac_cpp='$CPP $CPPFLAGS' | |
5734 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5735 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5736 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5737 | ||
5738 | ||
5739 | # Source file extension for C test sources. | |
5740 | ac_ext=c | |
5741 | ||
5742 | # Object file extension for compiled C test sources. | |
5743 | objext=o | |
5744 | objext=$objext | |
5745 | ||
5746 | # Code to be used in simple compile tests | |
5747 | lt_simple_compile_test_code="int some_variable = 0;" | |
5748 | ||
5749 | # Code to be used in simple link tests | |
5750 | lt_simple_link_test_code='main(){return(0);}' | |
5751 | ||
5752 | ||
5753 | # If no C compiler was specified, use CC. | |
5754 | LTCC=${LTCC-"$CC"} | |
5755 | ||
5756 | # Allow CC to be a program name with arguments. | |
5757 | set dummy $CC | |
5758 | compiler="$2" | |
5759 | ||
5760 | ||
5761 | # | |
5762 | # Check for any special shared library compilation flags. | |
5763 | # | |
5764 | lt_prog_cc_shlib= | |
5765 | if test "$GCC" = no; then | |
5766 | case $host_os in | |
5767 | sco3.2v5*) | |
5768 | lt_prog_cc_shlib='-belf' | |
5769 | ;; | |
5770 | esac | |
5771 | fi | |
5772 | if test -n "$lt_prog_cc_shlib"; then | |
5773 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 | |
5774 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} | |
5775 | if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : | |
5776 | else | |
5777 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 | |
5778 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} | |
5779 | lt_cv_prog_cc_can_build_shared=no | |
5780 | fi | |
5781 | fi | |
5782 | ||
5783 | ||
5784 | # | |
5785 | # Check to make sure the static flag actually works. | |
5786 | # | |
5787 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 | |
5788 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 | |
5789 | if test "${lt_prog_compiler_static_works+set}" = set; then | |
5790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5791 | else | |
5792 | lt_prog_compiler_static_works=no | |
5793 | save_LDFLAGS="$LDFLAGS" | |
5794 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" | |
5795 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
5796 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
5797 | # The compiler can only warn and ignore the option if not recognized | |
5798 | # So say no if there are warnings | |
5799 | if test -s conftest.err; then | |
5800 | # Append any errors to the config.log. | |
5801 | cat conftest.err 1>&5 | |
5802 | else | |
5803 | lt_prog_compiler_static_works=yes | |
5804 | fi | |
5805 | fi | |
5806 | $rm conftest* | |
5807 | LDFLAGS="$save_LDFLAGS" | |
5808 | ||
5809 | fi | |
5810 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | |
5811 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | |
5812 | ||
5813 | if test x"$lt_prog_compiler_static_works" = xyes; then | |
5814 | : | |
5815 | else | |
5816 | lt_prog_compiler_static= | |
5817 | fi | |
5818 | ||
5819 | ||
5820 | ||
5821 | ||
5822 | lt_prog_compiler_no_builtin_flag= | |
5823 | ||
5824 | if test "$GCC" = yes; then | |
5825 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
5826 | ||
5827 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
5828 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
5829 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
5830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5831 | else | |
5832 | lt_cv_prog_compiler_rtti_exceptions=no | |
5833 | ac_outfile=conftest.$ac_objext | |
5834 | save_CFLAGS="$CFLAGS" | |
5835 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" | |
5836 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
5837 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
5838 | # The compiler can only warn and ignore the option if not recognized | |
5839 | # So say no if there are warnings | |
5840 | if test -s conftest.err; then | |
5841 | # Append any errors to the config.log. | |
5842 | cat conftest.err 1>&5 | |
5843 | else | |
5844 | lt_cv_prog_compiler_rtti_exceptions=yes | |
5845 | fi | |
5846 | fi | |
5847 | $rm conftest* | |
5848 | CFLAGS="$save_CFLAGS" | |
5849 | ||
5850 | fi | |
5851 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
5852 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
5853 | ||
5854 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
5855 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
5856 | else | |
5857 | : | |
5858 | fi | |
5859 | ||
5860 | fi | |
5861 | ||
5862 | lt_prog_compiler_wl= | |
5863 | lt_prog_compiler_pic= | |
5864 | lt_prog_compiler_static= | |
5865 | ||
5866 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
5867 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
5868 | ||
5869 | if test "$GCC" = yes; then | |
5870 | lt_prog_compiler_wl='-Wl,' | |
5871 | lt_prog_compiler_static='-static' | |
5872 | ||
5873 | case $host_os in | |
5874 | aix*) | |
5875 | # All AIX code is PIC. | |
5876 | if test "$host_cpu" = ia64; then | |
5877 | # AIX 5 now supports IA64 processor | |
5878 | lt_prog_compiler_static='-Bstatic' | |
5879 | fi | |
5880 | ;; | |
5881 | ||
5882 | amigaos*) | |
5883 | # FIXME: we need at least 68020 code to build shared libraries, but | |
5884 | # adding the `-m68020' flag to GCC prevents building anything better, | |
5885 | # like `-m68040'. | |
5886 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
5887 | ;; | |
5888 | ||
5889 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
5890 | # PIC is the default for these OSes. | |
5891 | ;; | |
5892 | ||
5893 | cygwin* | mingw* | pw32* | os2*) | |
5894 | # This hack is so that the source file can tell whether it is being | |
5895 | # built for inclusion in a dll (and should export symbols for example). | |
5896 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
5897 | ;; | |
5898 | ||
5899 | darwin* | rhapsody*) | |
5900 | # PIC is the default on this platform | |
5901 | # Common symbols not allowed in MH_DYLIB files | |
5902 | lt_prog_compiler_pic='-fno-common' | |
5903 | ;; | |
5904 | ||
5905 | msdosdjgpp*) | |
5906 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
5907 | # on systems that don't support them. | |
5908 | lt_prog_compiler_can_build_shared=no | |
5909 | enable_shared=no | |
5910 | ;; | |
5911 | ||
5912 | sysv4*MP*) | |
5913 | if test -d /usr/nec; then | |
5914 | lt_prog_compiler_pic=-Kconform_pic | |
5915 | fi | |
5916 | ;; | |
5917 | ||
5918 | hpux*) | |
5919 | # PIC is the default for IA64 HP-UX, but not for PA HP-UX. | |
5920 | if test "$host_cpu" != ia64; then | |
5921 | lt_prog_compiler_pic='-fPIC' | |
5922 | fi | |
5923 | ;; | |
5924 | ||
5925 | *) | |
5926 | lt_prog_compiler_pic='-fPIC' | |
5927 | ;; | |
5928 | esac | |
5929 | else | |
5930 | # PORTME Check for flag to pass linker flags through the system compiler. | |
5931 | case $host_os in | |
5932 | aix*) | |
5933 | lt_prog_compiler_wl='-Wl,' | |
5934 | if test "$host_cpu" = ia64; then | |
5935 | # AIX 5 now supports IA64 processor | |
5936 | lt_prog_compiler_static='-Bstatic' | |
5937 | else | |
5938 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
5939 | fi | |
5940 | ;; | |
5941 | ||
5942 | cygwin* | mingw* | pw32* | os2*) | |
5943 | # This hack is so that the source file can tell whether it is being | |
5944 | # built for inclusion in a dll (and should export symbols for example). | |
5945 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
5946 | ;; | |
5947 | ||
5948 | hpux9* | hpux10* | hpux11*) | |
5949 | lt_prog_compiler_wl='-Wl,' | |
5950 | if test "$host_cpu" != ia64; then | |
5951 | lt_prog_compiler_pic='+Z' | |
5952 | fi | |
5953 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
5954 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
5955 | ;; | |
5956 | ||
5957 | irix5* | irix6* | nonstopux*) | |
5958 | lt_prog_compiler_wl='-Wl,' | |
5959 | # PIC (with -KPIC) is the default. | |
5960 | lt_prog_compiler_static='-non_shared' | |
5961 | ;; | |
5962 | ||
5963 | newsos6) | |
5964 | lt_prog_compiler_pic='-KPIC' | |
5965 | lt_prog_compiler_static='-Bstatic' | |
5966 | ;; | |
5967 | ||
5968 | osf3* | osf4* | osf5*) | |
5969 | lt_prog_compiler_wl='-Wl,' | |
5970 | # All OSF/1 code is PIC. | |
5971 | lt_prog_compiler_static='-non_shared' | |
5972 | ;; | |
5973 | ||
5974 | sco3.2v5*) | |
5975 | lt_prog_compiler_pic='-Kpic' | |
5976 | lt_prog_compiler_static='-dn' | |
5977 | ;; | |
5978 | ||
5979 | solaris*) | |
5980 | lt_prog_compiler_wl='-Wl,' | |
5981 | lt_prog_compiler_pic='-KPIC' | |
5982 | lt_prog_compiler_static='-Bstatic' | |
5983 | ;; | |
5984 | ||
5985 | sunos4*) | |
5986 | lt_prog_compiler_wl='-Qoption ld ' | |
5987 | lt_prog_compiler_pic='-PIC' | |
5988 | lt_prog_compiler_static='-Bstatic' | |
5989 | ;; | |
5990 | ||
5991 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
5992 | if test "x$host_vendor" = xsni; then | |
5993 | lt_prog_compiler_wl='-LD' | |
5994 | else | |
5995 | lt_prog_compiler_wl='-Wl,' | |
5996 | fi | |
5997 | lt_prog_compiler_pic='-KPIC' | |
5998 | lt_prog_compiler_static='-Bstatic' | |
5999 | ;; | |
6000 | ||
6001 | sysv4*MP*) | |
6002 | if test -d /usr/nec ;then | |
6003 | lt_prog_compiler_pic='-Kconform_pic' | |
6004 | lt_prog_compiler_static='-Bstatic' | |
6005 | fi | |
6006 | ;; | |
6007 | ||
6008 | uts4*) | |
6009 | lt_prog_compiler_pic='-pic' | |
6010 | lt_prog_compiler_static='-Bstatic' | |
6011 | ;; | |
6012 | ||
6013 | *) | |
6014 | lt_prog_compiler_can_build_shared=no | |
6015 | ;; | |
6016 | esac | |
6017 | fi | |
6018 | ||
6019 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
6020 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | |
6021 | ||
6022 | # | |
6023 | # Check to make sure the PIC flag actually works. | |
6024 | # | |
6025 | if test -n "$lt_prog_compiler_pic"; then | |
6026 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
6027 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | |
6028 | if test "${lt_prog_compiler_pic_works+set}" = set; then | |
6029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6030 | else | |
6031 | lt_prog_compiler_pic_works=no | |
6032 | ac_outfile=conftest.$ac_objext | |
6033 | save_CFLAGS="$CFLAGS" | |
6034 | CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC" | |
6035 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6036 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
6037 | # The compiler can only warn and ignore the option if not recognized | |
6038 | # So say no if there are warnings | |
6039 | if test -s conftest.err; then | |
6040 | # Append any errors to the config.log. | |
6041 | cat conftest.err 1>&5 | |
6042 | else | |
6043 | lt_prog_compiler_pic_works=yes | |
6044 | fi | |
6045 | fi | |
6046 | $rm conftest* | |
6047 | CFLAGS="$save_CFLAGS" | |
6048 | ||
6049 | fi | |
6050 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | |
6051 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | |
6052 | ||
6053 | if test x"$lt_prog_compiler_pic_works" = xyes; then | |
6054 | case $lt_prog_compiler_pic in | |
6055 | "" | " "*) ;; | |
6056 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
6057 | esac | |
6058 | else | |
6059 | lt_prog_compiler_pic= | |
6060 | lt_prog_compiler_can_build_shared=no | |
6061 | fi | |
6062 | ||
6063 | fi | |
6064 | case "$host_os" in | |
6065 | # For platforms which do not support PIC, -DPIC is meaningless: | |
6066 | *djgpp*) | |
6067 | lt_prog_compiler_pic= | |
6068 | ;; | |
6069 | *) | |
6070 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
6071 | ;; | |
6072 | esac | |
6073 | ||
6074 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
6075 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
6076 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
6077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6078 | else | |
6079 | lt_cv_prog_compiler_c_o=no | |
6080 | $rm -r conftest 2>/dev/null | |
6081 | mkdir conftest | |
6082 | cd conftest | |
6083 | mkdir out | |
6084 | save_CFLAGS="$CFLAGS" | |
6085 | CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" | |
6086 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6087 | ||
6088 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | |
6089 | # that will create temporary files in the current directory regardless of | |
6090 | # the output directory. Thus, making CWD read-only will cause this test | |
6091 | # to fail, enabling locking or at least warning the user not to do parallel | |
6092 | # builds. | |
6093 | chmod -w . | |
6094 | ||
6095 | if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext | |
6096 | then | |
6097 | # The compiler can only warn and ignore the option if not recognized | |
6098 | # So say no if there are warnings | |
6099 | if test -s out/conftest.err; then | |
6100 | # Append any errors to the config.log. | |
6101 | cat out/conftest.err 1>&5 | |
6102 | else | |
6103 | lt_cv_prog_compiler_c_o=yes | |
6104 | fi | |
6105 | fi | |
6106 | CFLAGS="$save_CFLAGS" | |
6107 | chmod u+w . | |
6108 | $rm conftest* out/* | |
6109 | rmdir out | |
6110 | cd .. | |
6111 | rmdir conftest | |
6112 | $rm conftest* | |
6113 | ||
6114 | fi | |
6115 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
6116 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
6117 | ||
6118 | ||
6119 | hard_links="nottested" | |
6120 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
6121 | # do not overwrite the value of need_locks provided by the user | |
6122 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
6123 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
6124 | hard_links=yes | |
6125 | $rm conftest* | |
6126 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
6127 | touch conftest.a | |
6128 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
6129 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
6130 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
6131 | echo "${ECHO_T}$hard_links" >&6 | |
6132 | if test "$hard_links" = no; then | |
6133 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
6134 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
6135 | need_locks=warn | |
6136 | fi | |
6137 | else | |
6138 | need_locks=no | |
6139 | fi | |
6140 | ||
6141 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
6142 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
6143 | ||
6144 | runpath_var= | |
6145 | allow_undefined_flag= | |
6146 | ||
6147 | archive_cmds= | |
6148 | archive_cmds_need_lc= | |
6149 | archive_expsym_cmds= | |
6150 | old_archive_From_new_cmds= | |
6151 | old_archive_from_expsyms_cmds= | |
6152 | export_dynamic_flag_spec= | |
6153 | whole_archive_flag_spec= | |
6154 | thread_safe_flag_spec= | |
6155 | hardcode_libdir_flag_spec= | |
6156 | hardcode_libdir_separator= | |
6157 | hardcode_direct=no | |
6158 | hardcode_minus_L=no | |
6159 | hardcode_shlibpath_var=unsupported | |
6160 | link_all_deplibs=unknown | |
6161 | always_export_symbols=no | |
6162 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
6163 | # include_expsyms should be a list of space-separated symbols to be *always* | |
6164 | # included in the symbol list | |
6165 | include_expsyms= | |
6166 | # exclude_expsyms can be an egrep regular expression of symbols to exclude | |
6167 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
6168 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
6169 | # as well as any symbol that contains `d'. | |
6170 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | |
6171 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
6172 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
6173 | # the symbol is explicitly referenced. Since portable code cannot | |
6174 | # rely on this symbol name, it's probably fine to never include it in | |
6175 | # preloaded symbol tables. | |
6176 | extract_expsyms_cmds= | |
6177 | ||
6178 | case $host_os in | |
6179 | cygwin* | mingw* | pw32*) | |
6180 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
6181 | # When not using gcc, we currently assume that we are using | |
6182 | # Microsoft Visual C++. | |
6183 | if test "$GCC" != yes; then | |
6184 | with_gnu_ld=no | |
6185 | fi | |
6186 | ;; | |
6187 | openbsd*) | |
6188 | with_gnu_ld=no | |
6189 | ;; | |
6190 | esac | |
6191 | ||
6192 | ld_shlibs=yes | |
6193 | if test "$with_gnu_ld" = yes; then | |
6194 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
6195 | wlarc='${wl}' | |
6196 | ||
6197 | # See if GNU ld supports shared libraries. | |
6198 | case $host_os in | |
6199 | aix3* | aix4* | aix5*) | |
6200 | # On AIX/PPC, the GNU linker is very broken | |
6201 | if test "$host_cpu" != ia64; then | |
6202 | ld_shlibs=no | |
6203 | cat <<EOF 1>&2 | |
6204 | ||
6205 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
6206 | *** to be unable to reliably create shared libraries on AIX. | |
6207 | *** Therefore, libtool is disabling shared libraries support. If you | |
6208 | *** really care for shared libraries, you may want to modify your PATH | |
6209 | *** so that a non-GNU linker is found, and then restart. | |
6210 | ||
6211 | EOF | |
6212 | fi | |
6213 | ;; | |
6214 | ||
6215 | amigaos*) | |
6216 | 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)' | |
6217 | hardcode_libdir_flag_spec='-L$libdir' | |
6218 | hardcode_minus_L=yes | |
6219 | ||
6220 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
6221 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
6222 | # to version 4, is to share data among multiple programs linked | |
6223 | # with the same dynamic library. Since this doesn't match the | |
6224 | # behavior of shared libraries on other platforms, we can't use | |
6225 | # them. | |
6226 | ld_shlibs=no | |
6227 | ;; | |
6228 | ||
6229 | beos*) | |
6230 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
6231 | allow_undefined_flag=unsupported | |
6232 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
6233 | # support --undefined. This deserves some investigation. FIXME | |
6234 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6235 | else | |
6236 | ld_shlibs=no | |
6237 | fi | |
6238 | ;; | |
6239 | ||
6240 | cygwin* | mingw* | pw32*) | |
6241 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is | |
6242 | # no search path for DLLs. | |
6243 | hardcode_libdir_flag_spec='-L$libdir' | |
6244 | allow_undefined_flag=unsupported | |
6245 | always_export_symbols=yes | |
6246 | ||
6247 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ | |
6248 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ | |
6249 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ | |
6250 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ | |
6251 | else $CC -o impgen impgen.c ; fi)~ | |
6252 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' | |
6253 | ||
6254 | old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' | |
6255 | ||
6256 | # cygwin and mingw dlls have different entry points and sets of symbols | |
6257 | # to exclude. | |
6258 | # FIXME: what about values for MSVC? | |
6259 | dll_entry=__cygwin_dll_entry@12 | |
6260 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ | |
6261 | case $host_os in | |
6262 | mingw*) | |
6263 | # mingw values | |
6264 | dll_entry=_DllMainCRTStartup@12 | |
6265 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ | |
6266 | ;; | |
6267 | esac | |
6268 | ||
6269 | # mingw and cygwin differ, and it's simplest to just exclude the union | |
6270 | # of the two symbol sets. | |
6271 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 | |
6272 | ||
6273 | # recent cygwin and mingw systems supply a stub DllMain which the user | |
6274 | # can override, but on older systems we have to supply one (in ltdll.c) | |
6275 | if test "x$lt_cv_need_dllmain" = "xyes"; then | |
6276 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " | |
6277 | 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~ | |
6278 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' | |
6279 | else | |
6280 | ltdll_obj= | |
6281 | ltdll_cmds= | |
6282 | fi | |
6283 | ||
6284 | # Extract the symbol export list from an `--export-all' def file, | |
6285 | # then regenerate the def file from the symbol export list, so that | |
6286 | # the compiled dll only exports the symbol export list. | |
6287 | # Be careful not to strip the DATA tag left by newer dlltools. | |
6288 | export_symbols_cmds="$ltdll_cmds"' | |
6289 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ | |
6290 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' | |
6291 | ||
6292 | # If the export-symbols file already is a .def file (1st line | |
6293 | # is EXPORTS), use it as is. | |
6294 | # If DATA tags from a recent dlltool are present, honour them! | |
6295 | archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then | |
6296 | cp $export_symbols $output_objdir/$soname-def; | |
6297 | else | |
6298 | echo EXPORTS > $output_objdir/$soname-def; | |
6299 | _lt_hint=1; | |
6300 | cat $export_symbols | while read symbol; do | |
6301 | set dummy \$symbol; | |
6302 | case \$# in | |
6303 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; | |
6304 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; | |
6305 | esac; | |
6306 | _lt_hint=`expr 1 + \$_lt_hint`; | |
6307 | done; | |
6308 | fi~ | |
6309 | '"$ltdll_cmds"' | |
6310 | $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~ | |
6311 | $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~ | |
6312 | $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~ | |
6313 | $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~ | |
6314 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' | |
6315 | ;; | |
6316 | ||
6317 | netbsd*) | |
6318 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
6319 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
6320 | wlarc= | |
6321 | else | |
6322 | archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6323 | archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
6324 | fi | |
6325 | ;; | |
6326 | ||
6327 | solaris* | sysv5*) | |
6328 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then | |
6329 | ld_shlibs=no | |
6330 | cat <<EOF 1>&2 | |
6331 | ||
6332 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
6333 | *** create shared libraries on Solaris systems. Therefore, libtool | |
6334 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
6335 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
6336 | *** your PATH or compiler configuration so that the native linker is | |
6337 | *** used, and then restart. | |
6338 | ||
6339 | EOF | |
6340 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
6341 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6342 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
6343 | else | |
6344 | ld_shlibs=no | |
6345 | fi | |
6346 | ;; | |
6347 | ||
6348 | sunos4*) | |
6349 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
6350 | wlarc= | |
6351 | hardcode_direct=yes | |
6352 | hardcode_shlibpath_var=no | |
6353 | ;; | |
6354 | ||
6355 | *) | |
6356 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
6357 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6358 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
6359 | else | |
6360 | ld_shlibs=no | |
6361 | fi | |
6362 | ;; | |
6363 | esac | |
6364 | ||
6365 | if test "$ld_shlibs" = yes; then | |
6366 | runpath_var=LD_RUN_PATH | |
6367 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | |
6368 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
6369 | case $host_os in | |
6370 | cygwin* | mingw* | pw32*) | |
6371 | # dlltool doesn't understand --whole-archive et. al. | |
6372 | whole_archive_flag_spec= | |
6373 | ;; | |
6374 | *) | |
6375 | # ancient GNU ld didn't support --whole-archive et. al. | |
6376 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then | |
6377 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
6378 | else | |
6379 | whole_archive_flag_spec= | |
6380 | fi | |
6381 | ;; | |
6382 | esac | |
6383 | fi | |
6384 | else | |
6385 | # PORTME fill in a description of your system's linker (not GNU ld) | |
6386 | case $host_os in | |
6387 | aix3*) | |
6388 | allow_undefined_flag=unsupported | |
6389 | always_export_symbols=yes | |
6390 | 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' | |
6391 | # Note: this linker hardcodes the directories in LIBPATH if there | |
6392 | # are no directories specified by -L. | |
6393 | hardcode_minus_L=yes | |
6394 | if test "$GCC" = yes && test -z "$link_static_flag"; then | |
6395 | # Neither direct hardcoding nor static linking is supported with a | |
6396 | # broken collect2. | |
6397 | hardcode_direct=unsupported | |
6398 | fi | |
6399 | ;; | |
6400 | ||
6401 | aix4* | aix5*) | |
6402 | if test "$host_cpu" = ia64; then | |
6403 | # On IA64, the linker does run time linking by default, so we don't | |
6404 | # have to do anything special. | |
6405 | aix_use_runtimelinking=no | |
6406 | exp_sym_flag='-Bexport' | |
6407 | no_entry_flag="" | |
6408 | else | |
6409 | # If we're using GNU nm, then we don't want the "-C" option. | |
6410 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
6411 | if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then | |
6412 | 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' | |
6413 | else | |
6414 | 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' | |
6415 | fi | |
6416 | ||
6417 | # KDE requires run time linking. Make it the default. | |
6418 | aix_use_runtimelinking=yes | |
6419 | exp_sym_flag='-bexport' | |
6420 | no_entry_flag='-bnoentry' | |
6421 | fi | |
6422 | ||
6423 | # When large executables or shared objects are built, AIX ld can | |
6424 | # have problems creating the table of contents. If linking a library | |
6425 | # or program results in "error TOC overflow" add -mminimal-toc to | |
6426 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
6427 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
6428 | ||
6429 | archive_cmds='' | |
6430 | hardcode_direct=yes | |
6431 | hardcode_libdir_separator=':' | |
6432 | link_all_deplibs=yes | |
6433 | ||
6434 | if test "$GCC" = yes; then | |
6435 | case $host_os in aix4.012|aix4.012.*) | |
6436 | # We only want to do this on AIX 4.2 and lower, the check | |
6437 | # below for broken collect2 doesn't work under 4.3+ | |
6438 | collect2name=`${CC} -print-prog-name=collect2` | |
6439 | if test -f "$collect2name" && \ | |
6440 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
6441 | then | |
6442 | # We have reworked collect2 | |
6443 | hardcode_direct=yes | |
6444 | else | |
6445 | # We have old collect2 | |
6446 | hardcode_direct=unsupported | |
6447 | # It fails to find uninstalled libraries when the uninstalled | |
6448 | # path is not listed in the libpath. Setting hardcode_minus_L | |
6449 | # to unsupported forces relinking | |
6450 | hardcode_minus_L=yes | |
6451 | hardcode_libdir_flag_spec='-L$libdir' | |
6452 | hardcode_libdir_separator= | |
6453 | fi | |
6454 | esac | |
6455 | shared_flag='-shared' | |
6456 | else | |
6457 | # not using gcc | |
6458 | if test "$host_cpu" = ia64; then | |
6459 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
6460 | # chokes on -Wl,-G. The following line is correct: | |
6461 | shared_flag='-G' | |
6462 | else | |
6463 | if test "$aix_use_runtimelinking" = yes; then | |
6464 | shared_flag='-qmkshrobj ${wl}-G' | |
6465 | else | |
6466 | shared_flag='-qmkshrobj' | |
6467 | fi | |
6468 | fi | |
6469 | fi | |
6470 | ||
6471 | # Let the compiler handle the export list. | |
6472 | always_export_symbols=no | |
6473 | if test "$aix_use_runtimelinking" = yes; then | |
6474 | # Warning - without using the other runtime loading flags (-brtl), | |
6475 | # -berok will link without error, but may produce a broken library. | |
6476 | allow_undefined_flag='-berok' | |
6477 | # Determine the default libpath from the value encoded in an empty executable. | |
6478 | cat >conftest.$ac_ext <<_ACEOF | |
6479 | #line $LINENO "configure" | |
6480 | #include "confdefs.h" | |
6481 | ||
6482 | #ifdef F77_DUMMY_MAIN | |
6483 | # ifdef __cplusplus | |
6484 | extern "C" | |
6485 | # endif | |
6486 | int F77_DUMMY_MAIN() { return 1; } | |
6487 | #endif | |
6488 | int | |
6489 | main () | |
6490 | { | |
6491 | ||
6492 | ; | |
6493 | return 0; | |
6494 | } | |
6495 | _ACEOF | |
6496 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6497 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6498 | (eval $ac_link) 2>&5 | |
6499 | ac_status=$? | |
6500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6501 | (exit $ac_status); } && | |
6502 | { ac_try='test -s conftest$ac_exeext' | |
6503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6504 | (eval $ac_try) 2>&5 | |
6505 | ac_status=$? | |
6506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6507 | (exit $ac_status); }; }; then | |
6508 | ||
6509 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
6510 | }'` | |
6511 | # Check for a 64-bit object if we didn't find anything. | |
6512 | 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; } | |
6513 | }'`; fi | |
6514 | else | |
6515 | echo "$as_me: failed program was:" >&5 | |
6516 | cat conftest.$ac_ext >&5 | |
6517 | fi | |
6518 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6519 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
6520 | ||
6521 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
6522 | 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" | |
6523 | 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" | |
6524 | else | |
6525 | if test "$host_cpu" = ia64; then | |
6526 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
6527 | allow_undefined_flag="-z nodefs" | |
6528 | 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" | |
6529 | else | |
6530 | # Determine the default libpath from the value encoded in an empty executable. | |
6531 | cat >conftest.$ac_ext <<_ACEOF | |
6532 | #line $LINENO "configure" | |
6533 | #include "confdefs.h" | |
6534 | ||
6535 | #ifdef F77_DUMMY_MAIN | |
6536 | # ifdef __cplusplus | |
6537 | extern "C" | |
6538 | # endif | |
6539 | int F77_DUMMY_MAIN() { return 1; } | |
6540 | #endif | |
6541 | int | |
6542 | main () | |
6543 | { | |
6544 | ||
6545 | ; | |
6546 | return 0; | |
6547 | } | |
6548 | _ACEOF | |
6549 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6550 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6551 | (eval $ac_link) 2>&5 | |
6552 | ac_status=$? | |
6553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6554 | (exit $ac_status); } && | |
6555 | { ac_try='test -s conftest$ac_exeext' | |
6556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6557 | (eval $ac_try) 2>&5 | |
6558 | ac_status=$? | |
6559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6560 | (exit $ac_status); }; }; then | |
6561 | ||
6562 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
6563 | }'` | |
6564 | # Check for a 64-bit object if we didn't find anything. | |
6565 | 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; } | |
6566 | }'`; fi | |
6567 | else | |
6568 | echo "$as_me: failed program was:" >&5 | |
6569 | cat conftest.$ac_ext >&5 | |
6570 | fi | |
6571 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6572 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
6573 | ||
6574 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
6575 | # Warning - without using the other run time loading flags, | |
6576 | # -berok will link without error, but may produce a broken library. | |
6577 | no_undefined_flag=' ${wl}-bernotok' | |
6578 | allow_undefined_flag=' ${wl}-berok' | |
6579 | # -bexpall does not export symbols beginning with underscore (_) | |
6580 | always_export_symbols=yes | |
6581 | # Exported symbols can be pulled into shared objects from archives | |
6582 | whole_archive_flag_spec=' ' | |
6583 | archive_cmds_need_lc=yes | |
6584 | # This is similar to how AIX traditionally builds it's shared libraries. | |
6585 | 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' | |
6586 | fi | |
6587 | fi | |
6588 | ;; | |
6589 | ||
6590 | amigaos*) | |
6591 | 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)' | |
6592 | hardcode_libdir_flag_spec='-L$libdir' | |
6593 | hardcode_minus_L=yes | |
6594 | # see comment about different semantics on the GNU ld section | |
6595 | ld_shlibs=no | |
6596 | ;; | |
6597 | ||
6598 | bsdi4*) | |
6599 | export_dynamic_flag_spec=-rdynamic | |
6600 | ;; | |
6601 | ||
6602 | cygwin* | mingw* | pw32*) | |
6603 | # When not using gcc, we currently assume that we are using | |
6604 | # Microsoft Visual C++. | |
6605 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
6606 | # no search path for DLLs. | |
6607 | hardcode_libdir_flag_spec=' ' | |
6608 | allow_undefined_flag=unsupported | |
6609 | # Tell ltmain to make .lib files, not .a files. | |
6610 | libext=lib | |
6611 | # FIXME: Setting linknames here is a bad hack. | |
6612 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
6613 | # The linker will automatically build a .lib file if we build a DLL. | |
6614 | old_archive_From_new_cmds='true' | |
6615 | # FIXME: Should let the user specify the lib program. | |
6616 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
6617 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
6618 | ;; | |
6619 | ||
6620 | darwin* | rhapsody*) | |
6621 | case "$host_os" in | |
6622 | rhapsody* | darwin1.[012]) | |
6623 | allow_undefined_flag='-undefined suppress' | |
6624 | ;; | |
6625 | *) # Darwin 1.3 on | |
6626 | allow_undefined_flag='-flat_namespace -undefined suppress' | |
6627 | ;; | |
6628 | esac | |
6629 | ||
6630 | # FIXME: Relying on posixy $() will cause problems for | |
6631 | # cross-compilation, but unfortunately the echo tests do not | |
6632 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles | |
6633 | # `"' quotes if we put them in here... so don't! | |
6634 | archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' | |
6635 | # We need to add '_' to the symbols in $export_symbols first | |
6636 | #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols' | |
6637 | hardcode_direct=yes | |
6638 | hardcode_shlibpath_var=no | |
6639 | whole_archive_flag_spec='-all_load $convenience' | |
6640 | ;; | |
6641 | ||
6642 | dgux*) | |
6643 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6644 | hardcode_libdir_flag_spec='-L$libdir' | |
6645 | hardcode_shlibpath_var=no | |
6646 | ;; | |
6647 | ||
6648 | freebsd1*) | |
6649 | ld_shlibs=no | |
6650 | ;; | |
6651 | ||
6652 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
6653 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
6654 | # does not break anything, and helps significantly (at the cost of a little | |
6655 | # extra space). | |
6656 | freebsd2.2*) | |
6657 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
6658 | hardcode_libdir_flag_spec='-R$libdir' | |
6659 | hardcode_direct=yes | |
6660 | hardcode_shlibpath_var=no | |
6661 | ;; | |
6662 | ||
6663 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
6664 | freebsd2*) | |
6665 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
6666 | hardcode_direct=yes | |
6667 | hardcode_minus_L=yes | |
6668 | hardcode_shlibpath_var=no | |
6669 | ;; | |
6670 | ||
6671 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
6672 | freebsd*) | |
6673 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
6674 | hardcode_libdir_flag_spec='-R$libdir' | |
6675 | hardcode_direct=yes | |
6676 | hardcode_shlibpath_var=no | |
6677 | ;; | |
6678 | ||
6679 | hpux9* | hpux10* | hpux11*) | |
6680 | if test "$GCC" = yes; then | |
6681 | case $host_os in | |
6682 | hpux9*) | |
6683 | 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' | |
6684 | ;; | |
6685 | *) | |
6686 | if test "$host_cpu" = ia64; then | |
6687 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6688 | else | |
6689 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
6690 | fi | |
6691 | ;; | |
6692 | esac | |
6693 | else | |
6694 | case $host_os in | |
6695 | hpux9*) | |
6696 | 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' | |
6697 | ;; | |
6698 | *) | |
6699 | if test "$host_cpu" = ia64; then | |
6700 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6701 | else | |
6702 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
6703 | fi | |
6704 | ;; | |
6705 | esac | |
6706 | fi | |
6707 | if test "$host_cpu" = ia64; then | |
6708 | hardcode_libdir_flag_spec='-L$libdir' | |
6709 | hardcode_direct=no | |
6710 | hardcode_shlibpath_var=no | |
6711 | else | |
6712 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
6713 | hardcode_libdir_separator=: | |
6714 | hardcode_direct=yes | |
6715 | fi | |
6716 | # hardcode_minus_L: Not really in the search PATH, | |
6717 | # but as the default location of the library. | |
6718 | hardcode_minus_L=yes | |
6719 | export_dynamic_flag_spec='${wl}-E' | |
6720 | ;; | |
6721 | ||
6722 | irix5* | irix6* | nonstopux*) | |
6723 | if test "$GCC" = yes; then | |
6724 | 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' | |
6725 | else | |
6726 | 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' | |
6727 | fi | |
6728 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
6729 | hardcode_libdir_separator=: | |
6730 | link_all_deplibs=yes | |
6731 | ;; | |
6732 | ||
6733 | netbsd*) | |
6734 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
6735 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
6736 | else | |
6737 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
6738 | fi | |
6739 | hardcode_libdir_flag_spec='-R$libdir' | |
6740 | hardcode_direct=yes | |
6741 | hardcode_shlibpath_var=no | |
6742 | ;; | |
6743 | ||
6744 | newsos6) | |
6745 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6746 | hardcode_direct=yes | |
6747 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
6748 | hardcode_libdir_separator=: | |
6749 | hardcode_shlibpath_var=no | |
6750 | ;; | |
6751 | ||
6752 | openbsd*) | |
6753 | hardcode_direct=yes | |
6754 | hardcode_shlibpath_var=no | |
6755 | ||
6756 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6757 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
6758 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
6759 | export_dynamic_flag_spec='${wl}-E' | |
6760 | else | |
6761 | case $host_os in | |
6762 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
6763 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
6764 | hardcode_libdir_flag_spec='-R$libdir' | |
6765 | ;; | |
6766 | *) | |
6767 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
6768 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
6769 | ;; | |
6770 | esac | |
6771 | fi | |
6772 | ;; | |
6773 | ||
6774 | os2*) | |
6775 | hardcode_libdir_flag_spec='-L$libdir' | |
6776 | hardcode_minus_L=yes | |
6777 | allow_undefined_flag=unsupported | |
6778 | 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' | |
6779 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
6780 | ;; | |
6781 | ||
6782 | osf3*) | |
6783 | if test "$GCC" = yes; then | |
6784 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
6785 | 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' | |
6786 | else | |
6787 | allow_undefined_flag=' -expect_unresolved \*' | |
6788 | 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' | |
6789 | fi | |
6790 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
6791 | hardcode_libdir_separator=: | |
6792 | ;; | |
6793 | ||
6794 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
6795 | if test "$GCC" = yes; then | |
6796 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
6797 | 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' | |
6798 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
6799 | else | |
6800 | allow_undefined_flag=' -expect_unresolved \*' | |
6801 | 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' | |
6802 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
6803 | $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' | |
6804 | ||
6805 | # Both c and cxx compiler support -rpath directly | |
6806 | hardcode_libdir_flag_spec='-rpath $libdir' | |
6807 | fi | |
6808 | hardcode_libdir_separator=: | |
6809 | ;; | |
6810 | ||
6811 | sco3.2v5*) | |
6812 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6813 | hardcode_shlibpath_var=no | |
6814 | export_dynamic_flag_spec='${wl}-Bexport' | |
6815 | runpath_var=LD_RUN_PATH | |
6816 | hardcode_runpath_var=yes | |
6817 | ;; | |
6818 | ||
6819 | solaris*) | |
6820 | no_undefined_flag=' -z text' | |
6821 | if test "$GCC" = yes; then | |
6822 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6823 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
6824 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
6825 | else | |
6826 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6827 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
6828 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
6829 | fi | |
6830 | hardcode_libdir_flag_spec='-R$libdir' | |
6831 | hardcode_shlibpath_var=no | |
6832 | case $host_os in | |
6833 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
6834 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | |
6835 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | |
6836 | esac | |
6837 | link_all_deplibs=yes | |
6838 | ;; | |
6839 | ||
6840 | sunos4*) | |
6841 | if test "x$host_vendor" = xsequent; then | |
6842 | # Use $CC to link under sequent, because it throws in some extra .o | |
6843 | # files that make .init and .fini sections work. | |
6844 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
6845 | else | |
6846 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
6847 | fi | |
6848 | hardcode_libdir_flag_spec='-L$libdir' | |
6849 | hardcode_direct=yes | |
6850 | hardcode_minus_L=yes | |
6851 | hardcode_shlibpath_var=no | |
6852 | ;; | |
6853 | ||
6854 | sysv4) | |
6855 | if test "x$host_vendor" = xsni; then | |
6856 | archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6857 | hardcode_direct=yes # is this really true??? | |
6858 | else | |
6859 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6860 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
6861 | fi | |
6862 | runpath_var='LD_RUN_PATH' | |
6863 | hardcode_shlibpath_var=no | |
6864 | ;; | |
6865 | ||
6866 | sysv4.3*) | |
6867 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6868 | hardcode_shlibpath_var=no | |
6869 | export_dynamic_flag_spec='-Bexport' | |
6870 | ;; | |
6871 | ||
6872 | sysv4*MP*) | |
6873 | if test -d /usr/nec; then | |
6874 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6875 | hardcode_shlibpath_var=no | |
6876 | runpath_var=LD_RUN_PATH | |
6877 | hardcode_runpath_var=yes | |
6878 | ld_shlibs=yes | |
6879 | fi | |
6880 | ;; | |
6881 | ||
6882 | sysv4.2uw2*) | |
6883 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
6884 | hardcode_direct=yes | |
6885 | hardcode_minus_L=no | |
6886 | hardcode_shlibpath_var=no | |
6887 | hardcode_runpath_var=yes | |
6888 | runpath_var=LD_RUN_PATH | |
6889 | ;; | |
6890 | ||
6891 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
6892 | no_undefined_flag='${wl}-z ${wl}text' | |
6893 | if test "$GCC" = yes; then | |
6894 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6895 | else | |
6896 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6897 | fi | |
6898 | runpath_var='LD_RUN_PATH' | |
6899 | hardcode_shlibpath_var=no | |
6900 | ;; | |
6901 | ||
6902 | sysv5*) | |
6903 | no_undefined_flag=' -z text' | |
6904 | # $CC -shared without GNU ld will not create a library from C++ | |
6905 | # object files and a static libstdc++, better avoid it by now | |
6906 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6907 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
6908 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
6909 | hardcode_libdir_flag_spec= | |
6910 | hardcode_shlibpath_var=no | |
6911 | runpath_var='LD_RUN_PATH' | |
6912 | ;; | |
6913 | ||
6914 | uts4*) | |
6915 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6916 | hardcode_libdir_flag_spec='-L$libdir' | |
6917 | hardcode_shlibpath_var=no | |
6918 | ;; | |
6919 | ||
6920 | *) | |
6921 | ld_shlibs=no | |
6922 | ;; | |
6923 | esac | |
6924 | fi | |
6925 | ||
6926 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
6927 | echo "${ECHO_T}$ld_shlibs" >&6 | |
6928 | test "$ld_shlibs" = no && can_build_shared=no | |
6929 | ||
6930 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
6931 | if test "$GCC" = yes; then | |
6932 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
6933 | fi | |
6934 | ||
6935 | # | |
6936 | # Do we need to explicitly link libc? | |
6937 | # | |
6938 | archive_cmds_need_lc=yes | |
6939 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
6940 | case $archive_cmds in | |
6941 | *'~'*) | |
6942 | # FIXME: we may have to deal with multi-command sequences. | |
6943 | ;; | |
6944 | '$CC '*) | |
6945 | # Test whether the compiler implicitly links with -lc since on some | |
6946 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
6947 | # to ld, don't add -lc before -lgcc. | |
6948 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
6949 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
6950 | $rm conftest* | |
6951 | echo 'static int dummy;' > conftest.$ac_ext | |
6952 | ||
6953 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6954 | (eval $ac_compile) 2>&5 | |
6955 | ac_status=$? | |
6956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6957 | (exit $ac_status); } 2>conftest.err; then | |
6958 | soname=conftest | |
6959 | lib=conftest | |
6960 | libobjs=conftest.$ac_objext | |
6961 | deplibs= | |
6962 | wl=$lt_prog_compiler_wl | |
6963 | compiler_flags=-v | |
6964 | linker_flags=-v | |
6965 | verstring= | |
6966 | output_objdir=. | |
6967 | libname=conftest | |
6968 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
6969 | allow_undefined_flag= | |
6970 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
6971 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
6972 | ac_status=$? | |
6973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6974 | (exit $ac_status); } | |
6975 | then | |
6976 | archive_cmds_need_lc=no | |
6977 | else | |
6978 | archive_cmds_need_lc=yes | |
6979 | fi | |
6980 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
6981 | else | |
6982 | cat conftest.err 1>&5 | |
6983 | fi | |
6984 | $rm conftest* | |
6985 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
6986 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 | |
6987 | ;; | |
6988 | esac | |
6989 | fi | |
6990 | ||
6991 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
6992 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
6993 | hardcode_action= | |
6994 | if test -n "$hardcode_libdir_flag_spec" || \ | |
6995 | test -n "$runpath_var "; then | |
6996 | ||
6997 | # We can hardcode non-existant directories. | |
6998 | if test "$hardcode_direct" != no && | |
6999 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
7000 | # have to relink, otherwise we might link with an installed library | |
7001 | # when we should be linking with a yet-to-be-installed one | |
7002 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | |
7003 | test "$hardcode_minus_L" != no; then | |
7004 | # Linking always hardcodes the temporary library directory. | |
7005 | hardcode_action=relink | |
7006 | else | |
7007 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
7008 | hardcode_action=immediate | |
7009 | fi | |
7010 | else | |
7011 | # We cannot hardcode anything, or else we can only hardcode existing | |
7012 | # directories. | |
7013 | hardcode_action=unsupported | |
7014 | fi | |
7015 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
7016 | echo "${ECHO_T}$hardcode_action" >&6 | |
7017 | ||
7018 | if test "$hardcode_action" = relink; then | |
7019 | # Fast installation is not supported | |
7020 | enable_fast_install=no | |
7021 | elif test "$shlibpath_overrides_runpath" = yes || | |
7022 | test "$enable_shared" = no; then | |
7023 | # Fast installation is not necessary | |
7024 | enable_fast_install=needless | |
7025 | fi | |
7026 | ||
7027 | striplib= | |
7028 | old_striplib= | |
7029 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
7030 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
7031 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
7032 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
7033 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
7034 | echo "$as_me:$LINENO: result: yes" >&5 | |
7035 | echo "${ECHO_T}yes" >&6 | |
7036 | else | |
7037 | echo "$as_me:$LINENO: result: no" >&5 | |
7038 | echo "${ECHO_T}no" >&6 | |
7039 | fi | |
7040 | ||
7041 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
7042 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
7043 | library_names_spec= | |
7044 | libname_spec='lib$name' | |
7045 | soname_spec= | |
7046 | postinstall_cmds= | |
7047 | postuninstall_cmds= | |
7048 | finish_cmds= | |
7049 | finish_eval= | |
7050 | shlibpath_var= | |
7051 | shlibpath_overrides_runpath=unknown | |
7052 | version_type=none | |
7053 | dynamic_linker="$host_os ld.so" | |
7054 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
7055 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
7056 | need_lib_prefix=unknown | |
7057 | hardcode_into_libs=no | |
7058 | ||
7059 | # when you set need_version to no, make sure it does not cause -set_version | |
7060 | # flags to be left without arguments | |
7061 | need_version=unknown | |
7062 | ||
7063 | case $host_os in | |
7064 | aix3*) | |
7065 | version_type=linux | |
7066 | library_names_spec='${libname}${release}.so$versuffix $libname.a' | |
7067 | shlibpath_var=LIBPATH | |
7068 | ||
7069 | # AIX 3 has no versioning support, so we append a major version to the name. | |
7070 | soname_spec='${libname}${release}.so$major' | |
7071 | ;; | |
7072 | ||
7073 | aix4* | aix5*) | |
7074 | version_type=linux | |
7075 | if test "$host_cpu" = ia64; then | |
7076 | # AIX 5 supports IA64 | |
7077 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' | |
7078 | shlibpath_var=LD_LIBRARY_PATH | |
7079 | else | |
7080 | # With GCC up to 2.95.x, collect2 would create an import file | |
7081 | # for dependence libraries. The import file would start with | |
7082 | # the line `#! .'. This would cause the generated library to | |
7083 | # depend on `.', always an invalid library. This was fixed in | |
7084 | # development snapshots of GCC prior to 3.0. | |
7085 | case $host_os in | |
7086 | aix4 | aix4.[01] | aix4.[01].*) | |
7087 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
7088 | echo ' yes ' | |
7089 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
7090 | : | |
7091 | else | |
7092 | can_build_shared=no | |
7093 | fi | |
7094 | ;; | |
7095 | esac | |
7096 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
7097 | # soname into executable. Probably we can add versioning support to | |
7098 | # collect2, so additional links can be useful in future. | |
7099 | if test "$aix_use_runtimelinking" = yes; then | |
7100 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
7101 | # instead of lib<name>.a to let people know that these are not | |
7102 | # typical AIX shared libraries. | |
7103 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7104 | else | |
7105 | # We preserve .a as extension for shared libraries through AIX4.2 | |
7106 | # and later when we are not doing run time linking. | |
7107 | library_names_spec='${libname}${release}.a $libname.a' | |
7108 | soname_spec='${libname}${release}.so$major' | |
7109 | fi | |
7110 | shlibpath_var=LIBPATH | |
7111 | fi | |
7112 | ;; | |
7113 | ||
7114 | amigaos*) | |
7115 | library_names_spec='$libname.ixlibrary $libname.a' | |
7116 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
7117 | 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' | |
7118 | ;; | |
7119 | ||
7120 | beos*) | |
7121 | library_names_spec='${libname}.so' | |
7122 | dynamic_linker="$host_os ld.so" | |
7123 | shlibpath_var=LIBRARY_PATH | |
7124 | ;; | |
7125 | ||
7126 | bsdi4*) | |
7127 | version_type=linux | |
7128 | need_version=no | |
7129 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7130 | soname_spec='${libname}${release}.so$major' | |
7131 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
7132 | shlibpath_var=LD_LIBRARY_PATH | |
7133 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
7134 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
7135 | # the default ld.so.conf also contains /usr/contrib/lib and | |
7136 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
7137 | # libtool to hard-code these into programs | |
7138 | ;; | |
7139 | ||
7140 | cygwin* | mingw* | pw32*) | |
7141 | version_type=windows | |
7142 | need_version=no | |
7143 | need_lib_prefix=no | |
7144 | case $GCC,$host_os in | |
7145 | yes,cygwin*) | |
7146 | library_names_spec='$libname.dll.a' | |
7147 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | |
7148 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
7149 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ | |
7150 | dldir=$destdir/`dirname \$dlpath`~ | |
7151 | test -d \$dldir || mkdir -p \$dldir~ | |
7152 | $install_prog .libs/$dlname \$dldir/$dlname' | |
7153 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
7154 | dlpath=$dir/\$dldll~ | |
7155 | $rm \$dlpath' | |
7156 | ;; | |
7157 | yes,mingw*) | |
7158 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
7159 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"` | |
7160 | if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then | |
7161 | # It is most probably a Windows format PATH printed by | |
7162 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
7163 | # path with ; separators, and with drive letters. We can handle the | |
7164 | # drive letters (cygwin fileutils understands them), so leave them, | |
7165 | # especially as we might pass files found there to a mingw objdump, | |
7166 | # which wouldn't understand a cygwinified path. Ahh. | |
7167 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` | |
7168 | else | |
7169 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` | |
7170 | fi | |
7171 | ;; | |
7172 | yes,pw32*) | |
7173 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' | |
7174 | ;; | |
7175 | *) | |
7176 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' | |
7177 | ;; | |
7178 | esac | |
7179 | dynamic_linker='Win32 ld.exe' | |
7180 | # FIXME: first we should search . and the directory the executable is in | |
7181 | shlibpath_var=PATH | |
7182 | ;; | |
7183 | ||
7184 | darwin* | rhapsody*) | |
7185 | dynamic_linker="$host_os dyld" | |
7186 | version_type=darwin | |
7187 | need_lib_prefix=no | |
7188 | need_version=no | |
7189 | # FIXME: Relying on posixy $() will cause problems for | |
7190 | # cross-compilation, but unfortunately the echo tests do not | |
7191 | # yet detect zsh echo's removal of \ escapes. | |
7192 | 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)' | |
7193 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' | |
7194 | shlibpath_overrides_runpath=yes | |
7195 | shlibpath_var=DYLD_LIBRARY_PATH | |
7196 | ;; | |
7197 | ||
7198 | dgux*) | |
7199 | version_type=linux | |
7200 | need_lib_prefix=no | |
7201 | need_version=no | |
7202 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7203 | soname_spec='${libname}${release}.so$major' | |
7204 | shlibpath_var=LD_LIBRARY_PATH | |
7205 | ;; | |
7206 | ||
7207 | freebsd1*) | |
7208 | dynamic_linker=no | |
7209 | ;; | |
7210 | ||
7211 | freebsd*) | |
7212 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
7213 | version_type=freebsd-$objformat | |
7214 | case $version_type in | |
7215 | freebsd-elf*) | |
7216 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
7217 | need_version=no | |
7218 | need_lib_prefix=no | |
7219 | ;; | |
7220 | freebsd-*) | |
7221 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' | |
7222 | need_version=yes | |
7223 | ;; | |
7224 | esac | |
7225 | shlibpath_var=LD_LIBRARY_PATH | |
7226 | case $host_os in | |
7227 | freebsd2*) | |
7228 | shlibpath_overrides_runpath=yes | |
7229 | ;; | |
7230 | freebsd3.01* | freebsdelf3.01*) | |
7231 | shlibpath_overrides_runpath=yes | |
7232 | hardcode_into_libs=yes | |
7233 | ;; | |
7234 | *) # from 3.2 on | |
7235 | shlibpath_overrides_runpath=no | |
7236 | hardcode_into_libs=yes | |
7237 | ;; | |
7238 | esac | |
7239 | ;; | |
7240 | ||
7241 | gnu*) | |
7242 | version_type=linux | |
7243 | need_lib_prefix=no | |
7244 | need_version=no | |
7245 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' | |
7246 | soname_spec='${libname}${release}.so$major' | |
7247 | shlibpath_var=LD_LIBRARY_PATH | |
7248 | hardcode_into_libs=yes | |
7249 | ;; | |
7250 | ||
7251 | hpux9* | hpux10* | hpux11*) | |
7252 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
7253 | # link against other versions. | |
7254 | version_type=sunos | |
7255 | need_lib_prefix=no | |
7256 | need_version=no | |
7257 | if test "$host_cpu" = ia64; then | |
7258 | hardcode_into_libs=yes | |
7259 | dynamic_linker="$host_os dld.so" | |
7260 | shlibpath_var=LD_LIBRARY_PATH | |
7261 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
7262 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7263 | soname_spec='${libname}${release}.so$major' | |
7264 | if test "X$HPUX_IA64_MODE" = X32; then | |
7265 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
7266 | else | |
7267 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
7268 | fi | |
7269 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
7270 | else | |
7271 | dynamic_linker="$host_os dld.sl" | |
7272 | shlibpath_var=SHLIB_PATH | |
7273 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
7274 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' | |
7275 | soname_spec='${libname}${release}.sl$major' | |
7276 | fi | |
7277 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
7278 | postinstall_cmds='chmod 555 $lib' | |
7279 | ;; | |
7280 | ||
7281 | irix5* | irix6* | nonstopux*) | |
7282 | case $host_os in | |
7283 | nonstopux*) version_type=nonstopux ;; | |
7284 | *) version_type=irix ;; | |
7285 | esac | |
7286 | need_lib_prefix=no | |
7287 | need_version=no | |
7288 | soname_spec='${libname}${release}.so$major' | |
7289 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' | |
7290 | case $host_os in | |
7291 | irix5* | nonstopux*) | |
7292 | libsuff= shlibsuff= | |
7293 | ;; | |
7294 | *) | |
7295 | case $LD in # libtool.m4 will add one of these switches to LD | |
7296 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; | |
7297 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; | |
7298 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
7299 | *) libsuff= shlibsuff= libmagic=never-match;; | |
7300 | esac | |
7301 | ;; | |
7302 | esac | |
7303 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
7304 | shlibpath_overrides_runpath=no | |
7305 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
7306 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
7307 | ;; | |
7308 | ||
7309 | # No shared lib support for Linux oldld, aout, or coff. | |
7310 | linux*oldld* | linux*aout* | linux*coff*) | |
7311 | dynamic_linker=no | |
7312 | ;; | |
7313 | ||
7314 | # This must be Linux ELF. | |
7315 | linux*) | |
7316 | version_type=linux | |
7317 | need_lib_prefix=no | |
7318 | need_version=no | |
7319 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7320 | soname_spec='${libname}${release}.so$major' | |
7321 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
7322 | libsuff= | |
7323 | if test "x$LINUX_64_MODE" = x64; then | |
7324 | # Some platforms are per default 64-bit, so there's no /lib64 | |
7325 | if test -d /lib64; then | |
7326 | libsuff=64 | |
7327 | fi | |
7328 | fi | |
7329 | shlibpath_var=LD_LIBRARY_PATH | |
7330 | shlibpath_overrides_runpath=no | |
7331 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" | |
7332 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
7333 | # This implies no fast_install, which is unacceptable. | |
7334 | # Some rework will be needed to allow for fast_install | |
7335 | # before this can be enabled. | |
7336 | hardcode_into_libs=yes | |
7337 | ||
7338 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
7339 | # powerpc, because MkLinux only supported shared libraries with the | |
7340 | # GNU dynamic linker. Since this was broken with cross compilers, | |
7341 | # most powerpc-linux boxes support dynamic linking these days and | |
7342 | # people can always --disable-shared, the test was removed, and we | |
7343 | # assume the GNU/Linux dynamic linker is in use. | |
7344 | dynamic_linker='GNU/Linux ld.so' | |
7345 | ;; | |
7346 | ||
7347 | netbsd*) | |
7348 | version_type=sunos | |
7349 | need_lib_prefix=no | |
7350 | need_version=no | |
7351 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
7352 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
7353 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
7354 | dynamic_linker='NetBSD (a.out) ld.so' | |
7355 | else | |
7356 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' | |
7357 | soname_spec='${libname}${release}.so$major' | |
7358 | dynamic_linker='NetBSD ld.elf_so' | |
7359 | fi | |
7360 | shlibpath_var=LD_LIBRARY_PATH | |
7361 | shlibpath_overrides_runpath=yes | |
7362 | hardcode_into_libs=yes | |
7363 | ;; | |
7364 | ||
7365 | newsos6) | |
7366 | version_type=linux | |
7367 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7368 | shlibpath_var=LD_LIBRARY_PATH | |
7369 | shlibpath_overrides_runpath=yes | |
7370 | ;; | |
7371 | ||
7372 | nto-qnx) | |
7373 | version_type=linux | |
7374 | need_lib_prefix=no | |
7375 | need_version=no | |
7376 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7377 | soname_spec='${libname}${release}.so$major' | |
7378 | shlibpath_var=LD_LIBRARY_PATH | |
7379 | shlibpath_overrides_runpath=yes | |
7380 | ;; | |
7381 | ||
7382 | openbsd*) | |
7383 | version_type=sunos | |
7384 | need_lib_prefix=no | |
7385 | need_version=no | |
7386 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
7387 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
7388 | shlibpath_var=LD_LIBRARY_PATH | |
7389 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7390 | case $host_os in | |
7391 | openbsd2.[89] | openbsd2.[89].*) | |
7392 | shlibpath_overrides_runpath=no | |
7393 | ;; | |
7394 | *) | |
7395 | shlibpath_overrides_runpath=yes | |
7396 | ;; | |
7397 | esac | |
7398 | else | |
7399 | shlibpath_overrides_runpath=yes | |
7400 | fi | |
7401 | ;; | |
7402 | ||
7403 | os2*) | |
7404 | libname_spec='$name' | |
7405 | need_lib_prefix=no | |
7406 | library_names_spec='$libname.dll $libname.a' | |
7407 | dynamic_linker='OS/2 ld.exe' | |
7408 | shlibpath_var=LIBPATH | |
7409 | ;; | |
7410 | ||
7411 | osf3* | osf4* | osf5*) | |
7412 | version_type=osf | |
7413 | need_lib_prefix=no | |
7414 | need_version=no | |
7415 | soname_spec='${libname}${release}.so' | |
7416 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
7417 | shlibpath_var=LD_LIBRARY_PATH | |
7418 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
7419 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
7420 | ;; | |
7421 | ||
7422 | sco3.2v5*) | |
7423 | version_type=osf | |
7424 | soname_spec='${libname}${release}.so$major' | |
7425 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7426 | shlibpath_var=LD_LIBRARY_PATH | |
7427 | ;; | |
7428 | ||
7429 | solaris*) | |
7430 | version_type=linux | |
7431 | need_lib_prefix=no | |
7432 | need_version=no | |
7433 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7434 | soname_spec='${libname}${release}.so$major' | |
7435 | shlibpath_var=LD_LIBRARY_PATH | |
7436 | shlibpath_overrides_runpath=yes | |
7437 | hardcode_into_libs=yes | |
7438 | # ldd complains unless libraries are executable | |
7439 | postinstall_cmds='chmod +x $lib' | |
7440 | ;; | |
7441 | ||
7442 | sunos4*) | |
7443 | version_type=sunos | |
7444 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
7445 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
7446 | shlibpath_var=LD_LIBRARY_PATH | |
7447 | shlibpath_overrides_runpath=yes | |
7448 | if test "$with_gnu_ld" = yes; then | |
7449 | need_lib_prefix=no | |
7450 | fi | |
7451 | need_version=yes | |
7452 | ;; | |
7453 | ||
7454 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
7455 | version_type=linux | |
7456 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7457 | soname_spec='${libname}${release}.so$major' | |
7458 | shlibpath_var=LD_LIBRARY_PATH | |
7459 | case $host_vendor in | |
7460 | sni) | |
7461 | shlibpath_overrides_runpath=no | |
7462 | ;; | |
7463 | motorola) | |
7464 | need_lib_prefix=no | |
7465 | need_version=no | |
7466 | shlibpath_overrides_runpath=no | |
7467 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
7468 | ;; | |
7469 | esac | |
7470 | ;; | |
7471 | ||
7472 | sysv4*MP*) | |
7473 | if test -d /usr/nec ;then | |
7474 | version_type=linux | |
7475 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' | |
7476 | soname_spec='$libname.so.$major' | |
7477 | shlibpath_var=LD_LIBRARY_PATH | |
7478 | fi | |
7479 | ;; | |
7480 | ||
7481 | uts4*) | |
7482 | version_type=linux | |
7483 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
7484 | soname_spec='${libname}${release}.so$major' | |
7485 | shlibpath_var=LD_LIBRARY_PATH | |
7486 | ;; | |
7487 | ||
7488 | *) | |
7489 | dynamic_linker=no | |
7490 | ;; | |
7491 | esac | |
7492 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
7493 | echo "${ECHO_T}$dynamic_linker" >&6 | |
7494 | test "$dynamic_linker" = no && can_build_shared=no | |
7495 | ||
7496 | if test "x$enable_dlopen" != xyes; then | |
7497 | enable_dlopen=unknown | |
7498 | enable_dlopen_self=unknown | |
7499 | enable_dlopen_self_static=unknown | |
7500 | else | |
7501 | lt_cv_dlopen=no | |
7502 | lt_cv_dlopen_libs= | |
7503 | ||
7504 | case $host_os in | |
7505 | beos*) | |
7506 | lt_cv_dlopen="load_add_on" | |
7507 | lt_cv_dlopen_libs= | |
7508 | lt_cv_dlopen_self=yes | |
7509 | ;; | |
7510 | ||
7511 | cygwin* | mingw* | pw32*) | |
7512 | lt_cv_dlopen="LoadLibrary" | |
7513 | lt_cv_dlopen_libs= | |
7514 | ;; | |
7515 | ||
7516 | *) | |
7517 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
7518 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
7519 | if test "${ac_cv_func_shl_load+set}" = set; then | |
7520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7521 | else | |
7522 | cat >conftest.$ac_ext <<_ACEOF | |
7523 | #line $LINENO "configure" | |
7524 | #include "confdefs.h" | |
7525 | /* System header to define __stub macros and hopefully few prototypes, | |
7526 | which can conflict with char shl_load (); below. */ | |
7527 | #include <assert.h> | |
7528 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7529 | #ifdef __cplusplus | |
7530 | extern "C" | |
7531 | #endif | |
7532 | /* We use char because int might match the return type of a gcc2 | |
7533 | builtin and then its argument prototype would still apply. */ | |
7534 | char shl_load (); | |
7535 | char (*f) (); | |
7536 | ||
7537 | #ifdef F77_DUMMY_MAIN | |
7538 | # ifdef __cplusplus | |
7539 | extern "C" | |
7540 | # endif | |
7541 | int F77_DUMMY_MAIN() { return 1; } | |
7542 | #endif | |
7543 | int | |
7544 | main () | |
7545 | { | |
7546 | /* The GNU C library defines this for functions which it implements | |
7547 | to always fail with ENOSYS. Some functions are actually named | |
7548 | something starting with __ and the normal name is an alias. */ | |
7549 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
7550 | choke me | |
7551 | #else | |
7552 | f = shl_load; | |
7553 | #endif | |
7554 | ||
7555 | ; | |
7556 | return 0; | |
7557 | } | |
7558 | _ACEOF | |
7559 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7560 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7561 | (eval $ac_link) 2>&5 | |
7562 | ac_status=$? | |
7563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7564 | (exit $ac_status); } && | |
7565 | { ac_try='test -s conftest$ac_exeext' | |
7566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7567 | (eval $ac_try) 2>&5 | |
7568 | ac_status=$? | |
7569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7570 | (exit $ac_status); }; }; then | |
7571 | ac_cv_func_shl_load=yes | |
7572 | else | |
7573 | echo "$as_me: failed program was:" >&5 | |
7574 | cat conftest.$ac_ext >&5 | |
7575 | ac_cv_func_shl_load=no | |
7576 | fi | |
7577 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7578 | fi | |
7579 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
7580 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
7581 | if test $ac_cv_func_shl_load = yes; then | |
7582 | lt_cv_dlopen="shl_load" | |
7583 | else | |
7584 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
7585 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
7586 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
7587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7588 | else | |
7589 | ac_check_lib_save_LIBS=$LIBS | |
7590 | LIBS="-ldld $LIBS" | |
7591 | cat >conftest.$ac_ext <<_ACEOF | |
7592 | #line $LINENO "configure" | |
7593 | #include "confdefs.h" | |
7594 | ||
7595 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7596 | #ifdef __cplusplus | |
7597 | extern "C" | |
7598 | #endif | |
7599 | /* We use char because int might match the return type of a gcc2 | |
7600 | builtin and then its argument prototype would still apply. */ | |
7601 | char shl_load (); | |
7602 | #ifdef F77_DUMMY_MAIN | |
7603 | # ifdef __cplusplus | |
7604 | extern "C" | |
7605 | # endif | |
7606 | int F77_DUMMY_MAIN() { return 1; } | |
7607 | #endif | |
7608 | int | |
7609 | main () | |
7610 | { | |
7611 | shl_load (); | |
7612 | ; | |
7613 | return 0; | |
7614 | } | |
7615 | _ACEOF | |
7616 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7617 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7618 | (eval $ac_link) 2>&5 | |
7619 | ac_status=$? | |
7620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7621 | (exit $ac_status); } && | |
7622 | { ac_try='test -s conftest$ac_exeext' | |
7623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7624 | (eval $ac_try) 2>&5 | |
7625 | ac_status=$? | |
7626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7627 | (exit $ac_status); }; }; then | |
7628 | ac_cv_lib_dld_shl_load=yes | |
7629 | else | |
7630 | echo "$as_me: failed program was:" >&5 | |
7631 | cat conftest.$ac_ext >&5 | |
7632 | ac_cv_lib_dld_shl_load=no | |
7633 | fi | |
7634 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7635 | LIBS=$ac_check_lib_save_LIBS | |
7636 | fi | |
7637 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
7638 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
7639 | if test $ac_cv_lib_dld_shl_load = yes; then | |
7640 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
7641 | else | |
7642 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
7643 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
7644 | if test "${ac_cv_func_dlopen+set}" = set; then | |
7645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7646 | else | |
7647 | cat >conftest.$ac_ext <<_ACEOF | |
7648 | #line $LINENO "configure" | |
7649 | #include "confdefs.h" | |
7650 | /* System header to define __stub macros and hopefully few prototypes, | |
7651 | which can conflict with char dlopen (); below. */ | |
7652 | #include <assert.h> | |
7653 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7654 | #ifdef __cplusplus | |
7655 | extern "C" | |
7656 | #endif | |
7657 | /* We use char because int might match the return type of a gcc2 | |
7658 | builtin and then its argument prototype would still apply. */ | |
7659 | char dlopen (); | |
7660 | char (*f) (); | |
7661 | ||
7662 | #ifdef F77_DUMMY_MAIN | |
7663 | # ifdef __cplusplus | |
7664 | extern "C" | |
7665 | # endif | |
7666 | int F77_DUMMY_MAIN() { return 1; } | |
7667 | #endif | |
7668 | int | |
7669 | main () | |
7670 | { | |
7671 | /* The GNU C library defines this for functions which it implements | |
7672 | to always fail with ENOSYS. Some functions are actually named | |
7673 | something starting with __ and the normal name is an alias. */ | |
7674 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
7675 | choke me | |
7676 | #else | |
7677 | f = dlopen; | |
7678 | #endif | |
7679 | ||
7680 | ; | |
7681 | return 0; | |
7682 | } | |
7683 | _ACEOF | |
7684 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7685 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7686 | (eval $ac_link) 2>&5 | |
7687 | ac_status=$? | |
7688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7689 | (exit $ac_status); } && | |
7690 | { ac_try='test -s conftest$ac_exeext' | |
7691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7692 | (eval $ac_try) 2>&5 | |
7693 | ac_status=$? | |
7694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7695 | (exit $ac_status); }; }; then | |
7696 | ac_cv_func_dlopen=yes | |
7697 | else | |
7698 | echo "$as_me: failed program was:" >&5 | |
7699 | cat conftest.$ac_ext >&5 | |
7700 | ac_cv_func_dlopen=no | |
7701 | fi | |
7702 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7703 | fi | |
7704 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
7705 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
7706 | if test $ac_cv_func_dlopen = yes; then | |
7707 | lt_cv_dlopen="dlopen" | |
7708 | else | |
7709 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
7710 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
7711 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
7712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7713 | else | |
7714 | ac_check_lib_save_LIBS=$LIBS | |
7715 | LIBS="-ldl $LIBS" | |
7716 | cat >conftest.$ac_ext <<_ACEOF | |
7717 | #line $LINENO "configure" | |
7718 | #include "confdefs.h" | |
7719 | ||
7720 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7721 | #ifdef __cplusplus | |
7722 | extern "C" | |
7723 | #endif | |
7724 | /* We use char because int might match the return type of a gcc2 | |
7725 | builtin and then its argument prototype would still apply. */ | |
7726 | char dlopen (); | |
7727 | #ifdef F77_DUMMY_MAIN | |
7728 | # ifdef __cplusplus | |
7729 | extern "C" | |
7730 | # endif | |
7731 | int F77_DUMMY_MAIN() { return 1; } | |
7732 | #endif | |
7733 | int | |
7734 | main () | |
7735 | { | |
7736 | dlopen (); | |
7737 | ; | |
7738 | return 0; | |
7739 | } | |
7740 | _ACEOF | |
7741 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7742 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7743 | (eval $ac_link) 2>&5 | |
7744 | ac_status=$? | |
7745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7746 | (exit $ac_status); } && | |
7747 | { ac_try='test -s conftest$ac_exeext' | |
7748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7749 | (eval $ac_try) 2>&5 | |
7750 | ac_status=$? | |
7751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7752 | (exit $ac_status); }; }; then | |
7753 | ac_cv_lib_dl_dlopen=yes | |
7754 | else | |
7755 | echo "$as_me: failed program was:" >&5 | |
7756 | cat conftest.$ac_ext >&5 | |
7757 | ac_cv_lib_dl_dlopen=no | |
7758 | fi | |
7759 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7760 | LIBS=$ac_check_lib_save_LIBS | |
7761 | fi | |
7762 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
7763 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
7764 | if test $ac_cv_lib_dl_dlopen = yes; then | |
7765 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
7766 | else | |
7767 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
7768 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
7769 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
7770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7771 | else | |
7772 | ac_check_lib_save_LIBS=$LIBS | |
7773 | LIBS="-lsvld $LIBS" | |
7774 | cat >conftest.$ac_ext <<_ACEOF | |
7775 | #line $LINENO "configure" | |
7776 | #include "confdefs.h" | |
7777 | ||
7778 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7779 | #ifdef __cplusplus | |
7780 | extern "C" | |
7781 | #endif | |
7782 | /* We use char because int might match the return type of a gcc2 | |
7783 | builtin and then its argument prototype would still apply. */ | |
7784 | char dlopen (); | |
7785 | #ifdef F77_DUMMY_MAIN | |
7786 | # ifdef __cplusplus | |
7787 | extern "C" | |
7788 | # endif | |
7789 | int F77_DUMMY_MAIN() { return 1; } | |
7790 | #endif | |
7791 | int | |
7792 | main () | |
7793 | { | |
7794 | dlopen (); | |
7795 | ; | |
7796 | return 0; | |
7797 | } | |
7798 | _ACEOF | |
7799 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7800 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7801 | (eval $ac_link) 2>&5 | |
7802 | ac_status=$? | |
7803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7804 | (exit $ac_status); } && | |
7805 | { ac_try='test -s conftest$ac_exeext' | |
7806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7807 | (eval $ac_try) 2>&5 | |
7808 | ac_status=$? | |
7809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7810 | (exit $ac_status); }; }; then | |
7811 | ac_cv_lib_svld_dlopen=yes | |
7812 | else | |
7813 | echo "$as_me: failed program was:" >&5 | |
7814 | cat conftest.$ac_ext >&5 | |
7815 | ac_cv_lib_svld_dlopen=no | |
7816 | fi | |
7817 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7818 | LIBS=$ac_check_lib_save_LIBS | |
7819 | fi | |
7820 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
7821 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
7822 | if test $ac_cv_lib_svld_dlopen = yes; then | |
7823 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
7824 | else | |
7825 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
7826 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
7827 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
7828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7829 | else | |
7830 | ac_check_lib_save_LIBS=$LIBS | |
7831 | LIBS="-ldld $LIBS" | |
7832 | cat >conftest.$ac_ext <<_ACEOF | |
7833 | #line $LINENO "configure" | |
7834 | #include "confdefs.h" | |
7835 | ||
7836 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7837 | #ifdef __cplusplus | |
7838 | extern "C" | |
7839 | #endif | |
7840 | /* We use char because int might match the return type of a gcc2 | |
7841 | builtin and then its argument prototype would still apply. */ | |
7842 | char dld_link (); | |
7843 | #ifdef F77_DUMMY_MAIN | |
7844 | # ifdef __cplusplus | |
7845 | extern "C" | |
7846 | # endif | |
7847 | int F77_DUMMY_MAIN() { return 1; } | |
7848 | #endif | |
7849 | int | |
7850 | main () | |
7851 | { | |
7852 | dld_link (); | |
7853 | ; | |
7854 | return 0; | |
7855 | } | |
7856 | _ACEOF | |
7857 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7858 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7859 | (eval $ac_link) 2>&5 | |
7860 | ac_status=$? | |
7861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7862 | (exit $ac_status); } && | |
7863 | { ac_try='test -s conftest$ac_exeext' | |
7864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7865 | (eval $ac_try) 2>&5 | |
7866 | ac_status=$? | |
7867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7868 | (exit $ac_status); }; }; then | |
7869 | ac_cv_lib_dld_dld_link=yes | |
7870 | else | |
7871 | echo "$as_me: failed program was:" >&5 | |
7872 | cat conftest.$ac_ext >&5 | |
7873 | ac_cv_lib_dld_dld_link=no | |
7874 | fi | |
7875 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7876 | LIBS=$ac_check_lib_save_LIBS | |
7877 | fi | |
7878 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
7879 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
7880 | if test $ac_cv_lib_dld_dld_link = yes; then | |
7881 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
7882 | fi | |
7883 | ||
7884 | ||
7885 | fi | |
7886 | ||
7887 | ||
7888 | fi | |
7889 | ||
7890 | ||
7891 | fi | |
7892 | ||
7893 | ||
7894 | fi | |
7895 | ||
7896 | ||
7897 | fi | |
7898 | ||
7899 | ;; | |
7900 | esac | |
7901 | ||
7902 | if test "x$lt_cv_dlopen" != xno; then | |
7903 | enable_dlopen=yes | |
7904 | else | |
7905 | enable_dlopen=no | |
7906 | fi | |
7907 | ||
7908 | case $lt_cv_dlopen in | |
7909 | dlopen) | |
7910 | save_CPPFLAGS="$CPPFLAGS" | |
7911 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
7912 | ||
7913 | save_LDFLAGS="$LDFLAGS" | |
7914 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
7915 | ||
7916 | save_LIBS="$LIBS" | |
7917 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
7918 | ||
7919 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
7920 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
7921 | if test "${lt_cv_dlopen_self+set}" = set; then | |
7922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7923 | else | |
7924 | if test "$cross_compiling" = yes; then : | |
7925 | lt_cv_dlopen_self=cross | |
7926 | else | |
7927 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
7928 | lt_status=$lt_dlunknown | |
7929 | cat > conftest.$ac_ext <<EOF | |
7930 | #line 7930 "configure" | |
7931 | #include "confdefs.h" | |
7932 | ||
7933 | #if HAVE_DLFCN_H | |
7934 | #include <dlfcn.h> | |
7935 | #endif | |
7936 | ||
7937 | #include <stdio.h> | |
7938 | ||
7939 | #ifdef RTLD_GLOBAL | |
7940 | # define LT_DLGLOBAL RTLD_GLOBAL | |
7941 | #else | |
7942 | # ifdef DL_GLOBAL | |
7943 | # define LT_DLGLOBAL DL_GLOBAL | |
7944 | # else | |
7945 | # define LT_DLGLOBAL 0 | |
7946 | # endif | |
7947 | #endif | |
7948 | ||
7949 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
7950 | find out it does not work in some platform. */ | |
7951 | #ifndef LT_DLLAZY_OR_NOW | |
7952 | # ifdef RTLD_LAZY | |
7953 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
7954 | # else | |
7955 | # ifdef DL_LAZY | |
7956 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
7957 | # else | |
7958 | # ifdef RTLD_NOW | |
7959 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
7960 | # else | |
7961 | # ifdef DL_NOW | |
7962 | # define LT_DLLAZY_OR_NOW DL_NOW | |
7963 | # else | |
7964 | # define LT_DLLAZY_OR_NOW 0 | |
7965 | # endif | |
7966 | # endif | |
7967 | # endif | |
7968 | # endif | |
7969 | #endif | |
7970 | ||
7971 | #ifdef __cplusplus | |
7972 | extern "C" void exit (int); | |
7973 | #endif | |
7974 | ||
7975 | void fnord() { int i=42;} | |
7976 | int main () | |
7977 | { | |
7978 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
7979 | int status = $lt_dlunknown; | |
7980 | ||
7981 | if (self) | |
7982 | { | |
7983 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
7984 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
7985 | /* dlclose (self); */ | |
7986 | } | |
7987 | ||
7988 | exit (status); | |
7989 | } | |
7990 | EOF | |
7991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7992 | (eval $ac_link) 2>&5 | |
7993 | ac_status=$? | |
7994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7995 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
7996 | (./conftest; exit; ) 2>/dev/null | |
7997 | lt_status=$? | |
7998 | case x$lt_status in | |
7999 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
8000 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
8001 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
8002 | esac | |
8003 | else : | |
8004 | # compilation failed | |
8005 | lt_cv_dlopen_self=no | |
8006 | fi | |
8007 | fi | |
8008 | rm -fr conftest* | |
8009 | ||
8010 | ||
8011 | fi | |
8012 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
8013 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
8014 | ||
8015 | if test "x$lt_cv_dlopen_self" = xyes; then | |
8016 | LDFLAGS="$LDFLAGS $link_static_flag" | |
8017 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
8018 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
8019 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
8020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8021 | else | |
8022 | if test "$cross_compiling" = yes; then : | |
8023 | lt_cv_dlopen_self_static=cross | |
8024 | else | |
8025 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
8026 | lt_status=$lt_dlunknown | |
8027 | cat > conftest.$ac_ext <<EOF | |
8028 | #line 8028 "configure" | |
8029 | #include "confdefs.h" | |
8030 | ||
8031 | #if HAVE_DLFCN_H | |
8032 | #include <dlfcn.h> | |
8033 | #endif | |
8034 | ||
8035 | #include <stdio.h> | |
8036 | ||
8037 | #ifdef RTLD_GLOBAL | |
8038 | # define LT_DLGLOBAL RTLD_GLOBAL | |
8039 | #else | |
8040 | # ifdef DL_GLOBAL | |
8041 | # define LT_DLGLOBAL DL_GLOBAL | |
8042 | # else | |
8043 | # define LT_DLGLOBAL 0 | |
8044 | # endif | |
8045 | #endif | |
8046 | ||
8047 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
8048 | find out it does not work in some platform. */ | |
8049 | #ifndef LT_DLLAZY_OR_NOW | |
8050 | # ifdef RTLD_LAZY | |
8051 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
8052 | # else | |
8053 | # ifdef DL_LAZY | |
8054 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
8055 | # else | |
8056 | # ifdef RTLD_NOW | |
8057 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
8058 | # else | |
8059 | # ifdef DL_NOW | |
8060 | # define LT_DLLAZY_OR_NOW DL_NOW | |
8061 | # else | |
8062 | # define LT_DLLAZY_OR_NOW 0 | |
8063 | # endif | |
8064 | # endif | |
8065 | # endif | |
8066 | # endif | |
8067 | #endif | |
8068 | ||
8069 | #ifdef __cplusplus | |
8070 | extern "C" void exit (int); | |
8071 | #endif | |
8072 | ||
8073 | void fnord() { int i=42;} | |
8074 | int main () | |
8075 | { | |
8076 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
8077 | int status = $lt_dlunknown; | |
8078 | ||
8079 | if (self) | |
8080 | { | |
8081 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
8082 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
8083 | /* dlclose (self); */ | |
8084 | } | |
8085 | ||
8086 | exit (status); | |
8087 | } | |
8088 | EOF | |
8089 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8090 | (eval $ac_link) 2>&5 | |
8091 | ac_status=$? | |
8092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8093 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
8094 | (./conftest; exit; ) 2>/dev/null | |
8095 | lt_status=$? | |
8096 | case x$lt_status in | |
8097 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
8098 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
8099 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
8100 | esac | |
8101 | else : | |
8102 | # compilation failed | |
8103 | lt_cv_dlopen_self_static=no | |
8104 | fi | |
8105 | fi | |
8106 | rm -fr conftest* | |
8107 | ||
8108 | ||
8109 | fi | |
8110 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
8111 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
8112 | fi | |
8113 | ||
8114 | CPPFLAGS="$save_CPPFLAGS" | |
8115 | LDFLAGS="$save_LDFLAGS" | |
8116 | LIBS="$save_LIBS" | |
8117 | ;; | |
8118 | esac | |
8119 | ||
8120 | case $lt_cv_dlopen_self in | |
8121 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
8122 | *) enable_dlopen_self=unknown ;; | |
8123 | esac | |
8124 | ||
8125 | case $lt_cv_dlopen_self_static in | |
8126 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
8127 | *) enable_dlopen_self_static=unknown ;; | |
8128 | esac | |
8129 | fi | |
8130 | ||
8131 | ||
8132 | # Report which librarie types wil actually be built | |
8133 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
8134 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
8135 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
8136 | echo "${ECHO_T}$can_build_shared" >&6 | |
8137 | ||
8138 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
8139 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
8140 | test "$can_build_shared" = "no" && enable_shared=no | |
8141 | ||
8142 | # On AIX, shared libraries and static libraries use the same namespace, and | |
8143 | # are all built from PIC. | |
8144 | case "$host_os" in | |
8145 | aix3*) | |
8146 | test "$enable_shared" = yes && enable_static=no | |
8147 | if test -n "$RANLIB"; then | |
8148 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
8149 | postinstall_cmds='$RANLIB $lib' | |
8150 | fi | |
8151 | ;; | |
8152 | ||
8153 | aix4*) | |
8154 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
8155 | test "$enable_shared" = yes && enable_static=no | |
8156 | fi | |
8157 | ;; | |
8158 | esac | |
8159 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
8160 | echo "${ECHO_T}$enable_shared" >&6 | |
8161 | ||
8162 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
8163 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
8164 | # Make sure either enable_shared or enable_static is yes. | |
8165 | test "$enable_shared" = yes || enable_static=yes | |
8166 | echo "$as_me:$LINENO: result: $enable_static" >&5 | |
8167 | echo "${ECHO_T}$enable_static" >&6 | |
8168 | ||
8169 | # The else clause should only fire when bootstrapping the | |
8170 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
8171 | # with your package, and you will get complaints that there are | |
8172 | # no rules to generate ltmain.sh. | |
8173 | if test -f "$ltmain"; then | |
8174 | # Now quote all the things that may contain metacharacters while being | |
8175 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
8176 | # variables and quote the copies for generation of the libtool script. | |
8177 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \ | |
8178 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
8179 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
8180 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
8181 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
8182 | lt_cv_sys_global_symbol_to_c_name_address \ | |
8183 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
8184 | old_postinstall_cmds old_postuninstall_cmds \ | |
8185 | compiler \ | |
8186 | CC \ | |
8187 | LD \ | |
8188 | lt_prog_compiler_wl \ | |
8189 | lt_prog_compiler_pic \ | |
8190 | lt_prog_compiler_static \ | |
8191 | lt_prog_compiler_no_builtin_flag \ | |
8192 | export_dynamic_flag_spec \ | |
8193 | thread_safe_flag_spec \ | |
8194 | whole_archive_flag_spec \ | |
8195 | old_archive_cmds \ | |
8196 | old_archive_from_new_cmds \ | |
8197 | predep_objects \ | |
8198 | postdep_objects \ | |
8199 | predeps \ | |
8200 | postdeps \ | |
8201 | compiler_lib_search_path \ | |
8202 | archive_cmds \ | |
8203 | archive_expsym_cmds \ | |
8204 | postinstall_cmds \ | |
8205 | postuninstall_cmds \ | |
8206 | old_archive_from_expsyms_cmds \ | |
8207 | allow_undefined_flag \ | |
8208 | no_undefined_flag \ | |
8209 | export_symbols_cmds \ | |
8210 | hardcode_libdir_flag_spec \ | |
8211 | hardcode_libdir_separator \ | |
8212 | lt_cv_prog_compiler_c_o \ | |
8213 | exclude_expsyms \ | |
8214 | include_expsyms; do | |
8215 | ||
8216 | case $var in | |
8217 | old_archive_cmds | \ | |
8218 | old_archive_from_new_cmds | \ | |
8219 | archive_cmds | \ | |
8220 | archive_expsym_cmds | \ | |
8221 | old_archive_from_expsyms_cmds | \ | |
8222 | export_symbols_cmds | \ | |
8223 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
8224 | postinstall_cmds | postuninstall_cmds | \ | |
8225 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
8226 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
8227 | # Double-quote double-evaled strings. | |
8228 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
8229 | ;; | |
8230 | *) | |
8231 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
8232 | ;; | |
8233 | esac | |
8234 | done | |
8235 | ||
8236 | case $lt_echo in | |
8237 | *'\$0 --fallback-echo"') | |
8238 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
8239 | ;; | |
8240 | esac | |
8241 | ||
8242 | cfgfile="${ofile}T" | |
8243 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | |
8244 | $rm -f "$cfgfile" | |
8245 | { echo "$as_me:$LINENO: creating $ofile" >&5 | |
8246 | echo "$as_me: creating $ofile" >&6;} | |
8247 | ||
8248 | cat <<__EOF__ >> "$cfgfile" | |
8249 | #! $SHELL | |
8250 | ||
8251 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
8252 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | |
8253 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
8254 | # | |
8255 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | |
8256 | # Free Software Foundation, Inc. | |
8257 | # | |
8258 | # This file is part of GNU Libtool: | |
8259 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
8260 | # | |
8261 | # This program is free software; you can redistribute it and/or modify | |
8262 | # it under the terms of the GNU General Public License as published by | |
8263 | # the Free Software Foundation; either version 2 of the License, or | |
8264 | # (at your option) any later version. | |
8265 | # | |
8266 | # This program is distributed in the hope that it will be useful, but | |
8267 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
8268 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
8269 | # General Public License for more details. | |
8270 | # | |
8271 | # You should have received a copy of the GNU General Public License | |
8272 | # along with this program; if not, write to the Free Software | |
8273 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
8274 | # | |
8275 | # As a special exception to the GNU General Public License, if you | |
8276 | # distribute this file as part of a program that contains a | |
8277 | # configuration script generated by Autoconf, you may include it under | |
8278 | # the same distribution terms that you use for the rest of that program. | |
8279 | ||
8280 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
8281 | Xsed="sed -e s/^X//" | |
8282 | ||
8283 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
8284 | # if CDPATH is set. | |
8285 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | |
8286 | ||
8287 | # The names of the tagged configurations supported by this script. | |
8288 | available_tags= | |
8289 | ||
8290 | # ### BEGIN LIBTOOL CONFIG | |
8291 | ||
8292 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
8293 | ||
8294 | # Shell to use when invoking shell scripts. | |
8295 | SHELL=$lt_SHELL | |
8296 | ||
8297 | # Whether or not to build shared libraries. | |
8298 | build_libtool_libs=$enable_shared | |
8299 | ||
8300 | # Whether or not to build static libraries. | |
8301 | build_old_libs=$enable_static | |
8302 | ||
8303 | # Whether or not to add -lc for building shared libraries. | |
8304 | build_libtool_need_lc=$archive_cmds_need_lc | |
8305 | ||
8306 | # Whether or not to optimize for fast installation. | |
8307 | fast_install=$enable_fast_install | |
8308 | ||
8309 | # The host system. | |
8310 | host_alias=$host_alias | |
8311 | host=$host | |
8312 | ||
8313 | # An echo program that does not interpret backslashes. | |
8314 | echo=$lt_echo | |
8315 | ||
8316 | # The archiver. | |
8317 | AR=$lt_AR | |
8318 | AR_FLAGS=$lt_AR_FLAGS | |
8319 | ||
8320 | # A C compiler. | |
8321 | LTCC=$lt_LTCC | |
8322 | ||
8323 | # A language-specific compiler. | |
8324 | CC=$lt_compiler | |
8325 | ||
8326 | # Is the compiler the GNU C compiler? | |
8327 | with_gcc=$GCC | |
8328 | ||
8329 | # The linker used to build libraries. | |
8330 | LD=$lt_LD | |
8331 | ||
8332 | # Whether we need hard or soft links. | |
8333 | LN_S=$lt_LN_S | |
8334 | ||
8335 | # A BSD-compatible nm program. | |
8336 | NM=$lt_NM | |
8337 | ||
8338 | # A sed program that does not truncate output. | |
8339 | SED=$lt_SED | |
8340 | ||
8341 | # A symbol stripping program | |
8342 | STRIP=$STRIP | |
8343 | ||
8344 | # Used to examine libraries when file_magic_cmd begins "file" | |
8345 | MAGIC_CMD=$MAGIC_CMD | |
8346 | ||
8347 | # Used on cygwin: DLL creation program. | |
8348 | DLLTOOL="$DLLTOOL" | |
8349 | ||
8350 | # Used on cygwin: object dumper. | |
8351 | OBJDUMP="$OBJDUMP" | |
8352 | ||
8353 | # Used on cygwin: assembler. | |
8354 | AS="$AS" | |
8355 | ||
8356 | # The name of the directory that contains temporary libtool files. | |
8357 | objdir=$objdir | |
8358 | ||
8359 | # How to create reloadable object files. | |
8360 | reload_flag=$lt_reload_flag | |
8361 | reload_cmds=$lt_reload_cmds | |
8362 | ||
8363 | # How to pass a linker flag through the compiler. | |
8364 | wl=$lt_lt_prog_compiler_wl | |
8365 | ||
8366 | # Object file suffix (normally "o"). | |
8367 | objext="$ac_objext" | |
8368 | ||
8369 | # Old archive suffix (normally "a"). | |
8370 | libext="$libext" | |
8371 | ||
8372 | # Executable file suffix (normally ""). | |
8373 | exeext="$exeext" | |
8374 | ||
8375 | # Additional compiler flags for building library objects. | |
8376 | pic_flag=$lt_lt_prog_compiler_pic | |
8377 | pic_mode=$pic_mode | |
8378 | ||
8379 | # What is the maximum length of a command? | |
8380 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
8381 | ||
8382 | # Does compiler simultaneously support -c and -o options? | |
8383 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
8384 | ||
8385 | # Must we lock files when doing compilation ? | |
8386 | need_locks=$lt_need_locks | |
8387 | ||
8388 | # Do we need the lib prefix for modules? | |
8389 | need_lib_prefix=$need_lib_prefix | |
8390 | ||
8391 | # Do we need a version for libraries? | |
8392 | need_version=$need_version | |
8393 | ||
8394 | # Whether dlopen is supported. | |
8395 | dlopen_support=$enable_dlopen | |
8396 | ||
8397 | # Whether dlopen of programs is supported. | |
8398 | dlopen_self=$enable_dlopen_self | |
8399 | ||
8400 | # Whether dlopen of statically linked programs is supported. | |
8401 | dlopen_self_static=$enable_dlopen_self_static | |
8402 | ||
8403 | # Compiler flag to prevent dynamic linking. | |
8404 | link_static_flag=$lt_lt_prog_compiler_static | |
8405 | ||
8406 | # Compiler flag to turn off builtin functions. | |
8407 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
8408 | ||
8409 | # Compiler flag to allow reflexive dlopens. | |
8410 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
8411 | ||
8412 | # Compiler flag to generate shared objects directly from archives. | |
8413 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
8414 | ||
8415 | # Compiler flag to generate thread-safe objects. | |
8416 | thread_safe_flag_spec=$lt_thread_safe_flag_spec | |
8417 | ||
8418 | # Library versioning type. | |
8419 | version_type=$version_type | |
8420 | ||
8421 | # Format of library name prefix. | |
8422 | libname_spec=$lt_libname_spec | |
8423 | ||
8424 | # List of archive names. First name is the real one, the rest are links. | |
8425 | # The last name is the one that the linker finds with -lNAME. | |
8426 | library_names_spec=$lt_library_names_spec | |
8427 | ||
8428 | # The coded name of the library, if different from the real name. | |
8429 | soname_spec=$lt_soname_spec | |
8430 | ||
8431 | # Commands used to build and install an old-style archive. | |
8432 | RANLIB=$lt_RANLIB | |
8433 | old_archive_cmds=$lt_old_archive_cmds | |
8434 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
8435 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
8436 | ||
8437 | # Create an old-style archive from a shared archive. | |
8438 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
8439 | ||
8440 | # Create a temporary old-style archive to link instead of a shared archive. | |
8441 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
8442 | ||
8443 | # Commands used to build and install a shared archive. | |
8444 | archive_cmds=$lt_archive_cmds | |
8445 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
8446 | postinstall_cmds=$lt_postinstall_cmds | |
8447 | postuninstall_cmds=$lt_postuninstall_cmds | |
8448 | ||
8449 | # Commands to strip libraries. | |
8450 | old_striplib=$lt_old_striplib | |
8451 | striplib=$lt_striplib | |
8452 | ||
8453 | # Dependencies to place before the objects being linked to create a | |
8454 | # shared library. | |
8455 | predep_objects=$lt_predep_objects | |
8456 | ||
8457 | # Dependencies to place after the objects being linked to create a | |
8458 | # shared library. | |
8459 | postdep_objects=$lt_postdep_objects | |
8460 | ||
8461 | # Dependencies to place before the objects being linked to create a | |
8462 | # shared library. | |
8463 | predeps=$lt_predeps | |
8464 | ||
8465 | # Dependencies to place after the objects being linked to create a | |
8466 | # shared library. | |
8467 | postdeps=$lt_postdeps | |
8468 | ||
8469 | # The library search path used internally by the compiler when linking | |
8470 | # a shared library. | |
8471 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
8472 | ||
8473 | # Method to check whether dependent libraries are shared objects. | |
8474 | deplibs_check_method=$lt_deplibs_check_method | |
8475 | ||
8476 | # Command to use when deplibs_check_method == file_magic. | |
8477 | file_magic_cmd=$lt_file_magic_cmd | |
8478 | ||
8479 | # Flag that allows shared libraries with undefined symbols to be built. | |
8480 | allow_undefined_flag=$lt_allow_undefined_flag | |
8481 | ||
8482 | # Flag that forces no undefined symbols. | |
8483 | no_undefined_flag=$lt_no_undefined_flag | |
8484 | ||
8485 | # Commands used to finish a libtool library installation in a directory. | |
8486 | finish_cmds=$lt_finish_cmds | |
8487 | ||
8488 | # Same as above, but a single script fragment to be evaled but not shown. | |
8489 | finish_eval=$lt_finish_eval | |
8490 | ||
8491 | # Take the output of nm and produce a listing of raw symbols and C names. | |
8492 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
8493 | ||
8494 | # Transform the output of nm in a proper C declaration | |
8495 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
8496 | ||
8497 | # Transform the output of nm in a C name address pair | |
8498 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
8499 | ||
8500 | # This is the shared library runtime path variable. | |
8501 | runpath_var=$runpath_var | |
8502 | ||
8503 | # This is the shared library path variable. | |
8504 | shlibpath_var=$shlibpath_var | |
8505 | ||
8506 | # Is shlibpath searched before the hard-coded library search path? | |
8507 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
8508 | ||
8509 | # How to hardcode a shared library path into an executable. | |
8510 | hardcode_action=$hardcode_action | |
8511 | ||
8512 | # Whether we should hardcode library paths into libraries. | |
8513 | hardcode_into_libs=$hardcode_into_libs | |
8514 | ||
8515 | # Flag to hardcode \$libdir into a binary during linking. | |
8516 | # This must work even if \$libdir does not exist. | |
8517 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
8518 | ||
8519 | # Whether we need a single -rpath flag with a separated argument. | |
8520 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
8521 | ||
8522 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | |
8523 | # resulting binary. | |
8524 | hardcode_direct=$hardcode_direct | |
8525 | ||
8526 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
8527 | # resulting binary. | |
8528 | hardcode_minus_L=$hardcode_minus_L | |
8529 | ||
8530 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
8531 | # the resulting binary. | |
8532 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
8533 | ||
8534 | # Variables whose values should be saved in libtool wrapper scripts and | |
8535 | # restored at relink time. | |
8536 | variables_saved_for_relink="$variables_saved_for_relink" | |
8537 | ||
8538 | # Whether libtool must link a program against all its dependency libraries. | |
8539 | link_all_deplibs=$link_all_deplibs | |
8540 | ||
8541 | # Compile-time system search path for libraries | |
8542 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
8543 | ||
8544 | # Run-time system search path for libraries | |
8545 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
8546 | ||
8547 | # Fix the shell variable \$srcfile for the compiler. | |
8548 | fix_srcfile_path="$fix_srcfile_path" | |
8549 | ||
8550 | # Set to yes if exported symbols are required. | |
8551 | always_export_symbols=$always_export_symbols | |
8552 | ||
8553 | # The commands to list exported symbols. | |
8554 | export_symbols_cmds=$lt_export_symbols_cmds | |
8555 | ||
8556 | # The commands to extract the exported symbol list from a shared archive. | |
8557 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
8558 | ||
8559 | # Symbols that should not be listed in the preloaded symbols. | |
8560 | exclude_expsyms=$lt_exclude_expsyms | |
8561 | ||
8562 | # Symbols that must always be exported. | |
8563 | include_expsyms=$lt_include_expsyms | |
8564 | ||
8565 | # ### END LIBTOOL CONFIG | |
8566 | ||
8567 | __EOF__ | |
8568 | ||
8569 | ||
8570 | case $host_os in | |
8571 | aix3*) | |
8572 | cat <<\EOF >> "$cfgfile" | |
8573 | ||
8574 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8575 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8576 | # vanish in a puff of smoke. | |
8577 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8578 | COLLECT_NAMES= | |
8579 | export COLLECT_NAMES | |
8580 | fi | |
8581 | EOF | |
8582 | ;; | |
8583 | ||
8584 | cygwin* | mingw* | pw32* | os2*) | |
8585 | cat <<'EOF' >> "$cfgfile" | |
8586 | # This is a source program that is used to create dlls on Windows | |
8587 | # Don't remove nor modify the starting and closing comments | |
8588 | ||
8589 | # /* ltdll.c starts here */ | |
8590 | # #define WIN32_LEAN_AND_MEAN | |
8591 | # #include <windows.h> | |
8592 | # #undef WIN32_LEAN_AND_MEAN | |
8593 | # #include <stdio.h> | |
8594 | # | |
8595 | # #ifndef __CYGWIN__ | |
8596 | # # ifdef __CYGWIN32__ | |
8597 | # # define __CYGWIN__ __CYGWIN32__ | |
8598 | # # endif | |
8599 | # #endif | |
8600 | # | |
8601 | # #ifdef __cplusplus | |
8602 | # extern "C" { | |
8603 | # #endif | |
8604 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); | |
8605 | # #ifdef __cplusplus | |
8606 | # } | |
8607 | # #endif | |
8608 | # | |
8609 | # #ifdef __CYGWIN__ | |
8610 | # #include <cygwin/cygwin_dll.h> | |
8611 | # DECLARE_CYGWIN_DLL( DllMain ); | |
8612 | # #endif | |
8613 | # HINSTANCE __hDllInstance_base; | |
8614 | # | |
8615 | # BOOL APIENTRY | |
8616 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) | |
8617 | # { | |
8618 | # __hDllInstance_base = hInst; | |
8619 | # return TRUE; | |
8620 | # } | |
8621 | # /* ltdll.c ends here */ | |
8622 | ||
8623 | # This is a source program that is used to create import libraries | |
8624 | # on Windows for dlls which lack them. Don't remove nor modify the | |
8625 | # starting and closing comments | |
8626 | ||
8627 | # /* impgen.c starts here */ | |
8628 | # /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. | |
8629 | # | |
8630 | # This file is part of GNU libtool. | |
8631 | # | |
8632 | # This program is free software; you can redistribute it and/or modify | |
8633 | # it under the terms of the GNU General Public License as published by | |
8634 | # the Free Software Foundation; either version 2 of the License, or | |
8635 | # (at your option) any later version. | |
8636 | # | |
8637 | # This program is distributed in the hope that it will be useful, | |
8638 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
8639 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
8640 | # GNU General Public License for more details. | |
8641 | # | |
8642 | # You should have received a copy of the GNU General Public License | |
8643 | # along with this program; if not, write to the Free Software | |
8644 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
8645 | # */ | |
8646 | # | |
8647 | # #include <stdio.h> /* for printf() */ | |
8648 | # #include <unistd.h> /* for open(), lseek(), read() */ | |
8649 | # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ | |
8650 | # #include <string.h> /* for strdup() */ | |
8651 | # | |
8652 | # /* O_BINARY isn't required (or even defined sometimes) under Unix */ | |
8653 | # #ifndef O_BINARY | |
8654 | # #define O_BINARY 0 | |
8655 | # #endif | |
8656 | # | |
8657 | # static unsigned int | |
8658 | # pe_get16 (fd, offset) | |
8659 | # int fd; | |
8660 | # int offset; | |
8661 | # { | |
8662 | # unsigned char b[2]; | |
8663 | # lseek (fd, offset, SEEK_SET); | |
8664 | # read (fd, b, 2); | |
8665 | # return b[0] + (b[1]<<8); | |
8666 | # } | |
8667 | # | |
8668 | # static unsigned int | |
8669 | # pe_get32 (fd, offset) | |
8670 | # int fd; | |
8671 | # int offset; | |
8672 | # { | |
8673 | # unsigned char b[4]; | |
8674 | # lseek (fd, offset, SEEK_SET); | |
8675 | # read (fd, b, 4); | |
8676 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); | |
8677 | # } | |
8678 | # | |
8679 | # static unsigned int | |
8680 | # pe_as32 (ptr) | |
8681 | # void *ptr; | |
8682 | # { | |
8683 | # unsigned char *b = ptr; | |
8684 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); | |
8685 | # } | |
8686 | # | |
8687 | # int | |
8688 | # main (argc, argv) | |
8689 | # int argc; | |
8690 | # char *argv[]; | |
8691 | # { | |
8692 | # int dll; | |
8693 | # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; | |
8694 | # unsigned long export_rva, export_size, nsections, secptr, expptr; | |
8695 | # unsigned long name_rvas, nexp; | |
8696 | # unsigned char *expdata, *erva; | |
8697 | # char *filename, *dll_name; | |
8698 | # | |
8699 | # filename = argv[1]; | |
8700 | # | |
8701 | # dll = open(filename, O_RDONLY|O_BINARY); | |
8702 | # if (dll < 1) | |
8703 | # return 1; | |
8704 | # | |
8705 | # dll_name = filename; | |
8706 | # | |
8707 | # for (i=0; filename[i]; i++) | |
8708 | # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') | |
8709 | # dll_name = filename + i +1; | |
8710 | # | |
8711 | # pe_header_offset = pe_get32 (dll, 0x3c); | |
8712 | # opthdr_ofs = pe_header_offset + 4 + 20; | |
8713 | # num_entries = pe_get32 (dll, opthdr_ofs + 92); | |
8714 | # | |
8715 | # if (num_entries < 1) /* no exports */ | |
8716 | # return 1; | |
8717 | # | |
8718 | # export_rva = pe_get32 (dll, opthdr_ofs + 96); | |
8719 | # export_size = pe_get32 (dll, opthdr_ofs + 100); | |
8720 | # nsections = pe_get16 (dll, pe_header_offset + 4 +2); | |
8721 | # secptr = (pe_header_offset + 4 + 20 + | |
8722 | # pe_get16 (dll, pe_header_offset + 4 + 16)); | |
8723 | # | |
8724 | # expptr = 0; | |
8725 | # for (i = 0; i < nsections; i++) | |
8726 | # { | |
8727 | # char sname[8]; | |
8728 | # unsigned long secptr1 = secptr + 40 * i; | |
8729 | # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); | |
8730 | # unsigned long vsize = pe_get32 (dll, secptr1 + 16); | |
8731 | # unsigned long fptr = pe_get32 (dll, secptr1 + 20); | |
8732 | # lseek(dll, secptr1, SEEK_SET); | |
8733 | # read(dll, sname, 8); | |
8734 | # if (vaddr <= export_rva && vaddr+vsize > export_rva) | |
8735 | # { | |
8736 | # expptr = fptr + (export_rva - vaddr); | |
8737 | # if (export_rva + export_size > vaddr + vsize) | |
8738 | # export_size = vsize - (export_rva - vaddr); | |
8739 | # break; | |
8740 | # } | |
8741 | # } | |
8742 | # | |
8743 | # expdata = (unsigned char*)malloc(export_size); | |
8744 | # lseek (dll, expptr, SEEK_SET); | |
8745 | # read (dll, expdata, export_size); | |
8746 | # erva = expdata - export_rva; | |
8747 | # | |
8748 | # nexp = pe_as32 (expdata+24); | |
8749 | # name_rvas = pe_as32 (expdata+32); | |
8750 | # | |
8751 | # printf ("EXPORTS\n"); | |
8752 | # for (i = 0; i<nexp; i++) | |
8753 | # { | |
8754 | # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); | |
8755 | # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); | |
8756 | # } | |
8757 | # | |
8758 | # return 0; | |
8759 | # } | |
8760 | # /* impgen.c ends here */ | |
8761 | ||
8762 | EOF | |
8763 | ;; | |
8764 | esac | |
8765 | ||
8766 | # We use sed instead of cat because bash on DJGPP gets confused if | |
8767 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
8768 | # text mode, it properly converts lines to CR/LF. This bash problem | |
8769 | # is reportedly fixed, but why not run on old versions too? | |
8770 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | |
8771 | ||
8772 | mv -f "$cfgfile" "$ofile" || \ | |
8773 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
8774 | chmod +x "$ofile" | |
8775 | ||
8776 | else | |
8777 | # If there is no Makefile yet, we rely on a make rule to execute | |
8778 | # `config.status --recheck' to rerun these tests and create the | |
8779 | # libtool script then. | |
8780 | test -f Makefile && make "$ltmain" | |
8781 | fi | |
8782 | ||
8783 | ||
8784 | ac_ext=c | |
8785 | ac_cpp='$CPP $CPPFLAGS' | |
8786 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8787 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8788 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8789 | ||
8790 | CC="$lt_save_CC" | |
8791 | ||
8792 | ||
8793 | # Check whether --with-tags or --without-tags was given. | |
8794 | if test "${with_tags+set}" = set; then | |
8795 | withval="$with_tags" | |
8796 | tagnames="$withval" | |
8797 | else | |
8798 | tagnames="CXX,GCJ" | |
8799 | case $host_os in | |
8800 | mingw*|cygwin*) tagnames="$tagnames,RC" ;; | |
8801 | esac | |
8802 | fi; | |
8803 | ||
8804 | if test -f "$ltmain" && test -n "$tagnames"; then | |
8805 | if test ! -f "${ofile}"; then | |
8806 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 | |
8807 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | |
8808 | fi | |
8809 | ||
8810 | if test -z "$LTCC"; then | |
8811 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | |
8812 | if test -z "$LTCC"; then | |
8813 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 | |
8814 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} | |
8815 | else | |
8816 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 | |
8817 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | |
8818 | fi | |
8819 | fi | |
8820 | ||
8821 | # Extract list of available tagged configurations in $ofile. | |
8822 | # Note that this assumes the entire list is on one line. | |
8823 | available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | |
8824 | ||
8825 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8826 | for tagname in $tagnames; do | |
8827 | IFS="$lt_save_ifs" | |
8828 | # Check whether tagname contains only valid characters | |
8829 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | |
8830 | "") ;; | |
8831 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 | |
8832 | echo "$as_me: error: invalid tag name: $tagname" >&2;} | |
8833 | { (exit 1); exit 1; }; } | |
8834 | ;; | |
8835 | esac | |
8836 | ||
8837 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | |
8838 | then | |
8839 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 | |
8840 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | |
8841 | { (exit 1); exit 1; }; } | |
8842 | fi | |
8843 | ||
8844 | # Update the list of available tags. | |
8845 | if test -n "$tagname"; then | |
8846 | echo appending configuration tag \"$tagname\" to $ofile | |
8847 | ||
8848 | case $tagname in | |
8849 | CXX) | |
8850 | ac_ext=cc | |
8851 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8852 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8853 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8854 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8855 | ||
8856 | ||
8857 | ||
8858 | ||
8859 | archive_cmds_need_lc_CXX=no | |
8860 | allow_undefined_flag_CXX= | |
8861 | always_export_symbols_CXX=no | |
8862 | archive_expsym_cmds_CXX= | |
8863 | export_dynamic_flag_spec_CXX= | |
8864 | hardcode_direct_CXX=no | |
8865 | hardcode_libdir_flag_spec_CXX= | |
8866 | hardcode_libdir_separator_CXX= | |
8867 | hardcode_minus_L_CXX=no | |
8868 | link_all_deplibs_CXX=unknown | |
8869 | old_archive_cmds_CXX=$old_archive_cmds | |
8870 | no_undefined_flag_CXX= | |
8871 | whole_archive_flag_spec_CXX= | |
8872 | ||
8873 | # Dependencies to place before and after the object being linked: | |
8874 | predep_objects_CXX= | |
8875 | postdep_objects_CXX= | |
8876 | predeps_CXX= | |
8877 | postdeps_CXX= | |
8878 | compiler_lib_search_path_CXX= | |
8879 | ||
8880 | # Source file extension for C test sources. | |
8881 | ac_ext=cc | |
8882 | ||
8883 | # Object file extension for compiled C test sources. | |
8884 | objext=o | |
8885 | objext_CXX=$objext | |
8886 | ||
8887 | # Code to be used in simple compile tests | |
8888 | lt_simple_compile_test_code="int some_variable = 0;" | |
8889 | ||
8890 | # Code to be used in simple link tests | |
8891 | lt_simple_link_test_code='int main(int char *) { return(0); }' | |
8892 | ||
8893 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
8894 | ||
8895 | # If no C compiler was specified, use CC. | |
8896 | LTCC=${LTCC-"$CC"} | |
8897 | ||
8898 | # Allow CC to be a program name with arguments. | |
8899 | set dummy $CC | |
8900 | compiler="$2" | |
8901 | ||
8902 | ||
8903 | # Allow CC to be a program name with arguments. | |
8904 | lt_save_CC="$CC" | |
8905 | CC=${CXX-"c++"} | |
8906 | set dummy $CC | |
8907 | compiler="$2" | |
8908 | compiler_CXX=$CC | |
8909 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | |
8910 | ||
8911 | # We don't want -fno-exception wen compiling C++ code, so set the | |
8912 | # no_builtin_flag separately | |
8913 | if test "$GXX" = yes; then | |
8914 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
8915 | else | |
8916 | lt_prog_compiler_no_builtin_flag_CXX= | |
8917 | fi | |
8918 | ||
8919 | if test "$GXX" = yes; then | |
8920 | # Set up default GNU C++ configuration | |
8921 | ||
8922 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
8923 | # archiving commands below assume that GNU ld is being used. | |
8924 | if eval "`$CC -print-prog-name=ld` --version 2>&1" | \ | |
8925 | egrep 'GNU ld' > /dev/null; then | |
8926 | with_gnu_ld=yes | |
8927 | ||
8928 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8929 | 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' | |
8930 | ||
8931 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
8932 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
8933 | ||
8934 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
8935 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
8936 | # investigate it a little bit more. (MM) | |
8937 | wlarc='${wl}' | |
8938 | ||
8939 | # ancient GNU ld didn't support --whole-archive et. al. | |
8940 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | |
8941 | egrep 'no-whole-archive' > /dev/null; then | |
8942 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8943 | else | |
8944 | whole_archive_flag_spec_CXX= | |
8945 | fi | |
8946 | else | |
8947 | with_gnu_ld=no | |
8948 | wlarc= | |
8949 | ||
8950 | # A generic and very simple default shared library creation | |
8951 | # command for GNU C++ for the case where it uses the native | |
8952 | # linker, instead of GNU ld. If possible, this setting should | |
8953 | # overridden to take advantage of the native linker features on | |
8954 | # the platform it is being used on. | |
8955 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
8956 | fi | |
8957 | ||
8958 | # Commands to make compiler produce verbose output that lists | |
8959 | # what "hidden" libraries, object files and flags are used when | |
8960 | # linking a shared library. | |
8961 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' | |
8962 | ||
8963 | else | |
8964 | GXX=no | |
8965 | with_gnu_ld=no | |
8966 | wlarc= | |
8967 | fi | |
8968 | ||
8969 | # PORTME: fill in a description of your system's C++ link characteristics | |
8970 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
8971 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
8972 | ld_shlibs_CXX=yes | |
8973 | case $host_os in | |
8974 | aix3*) | |
8975 | # FIXME: insert proper C++ library support | |
8976 | ld_shlibs_CXX=no | |
8977 | ;; | |
8978 | aix4* | aix5*) | |
8979 | if test "$host_cpu" = ia64; then | |
8980 | # On IA64, the linker does run time linking by default, so we don't | |
8981 | # have to do anything special. | |
8982 | aix_use_runtimelinking=no | |
8983 | exp_sym_flag='-Bexport' | |
8984 | no_entry_flag="" | |
8985 | else | |
8986 | # KDE requires run time linking. Make it the default. | |
8987 | aix_use_runtimelinking=yes | |
8988 | exp_sym_flag='-bexport' | |
8989 | no_entry_flag='-bnoentry' | |
8990 | fi | |
8991 | ||
8992 | # When large executables or shared objects are built, AIX ld can | |
8993 | # have problems creating the table of contents. If linking a library | |
8994 | # or program results in "error TOC overflow" add -mminimal-toc to | |
8995 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8996 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
8997 | ||
8998 | archive_cmds_CXX='' | |
8999 | hardcode_direct_CXX=yes | |
9000 | hardcode_libdir_separator_CXX=':' | |
9001 | link_all_deplibs_CXX=yes | |
9002 | ||
9003 | if test "$GXX" = yes; then | |
9004 | case $host_os in aix4.012|aix4.012.*) | |
9005 | # We only want to do this on AIX 4.2 and lower, the check | |
9006 | # below for broken collect2 doesn't work under 4.3+ | |
9007 | collect2name=`${CC} -print-prog-name=collect2` | |
9008 | if test -f "$collect2name" && \ | |
9009 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
9010 | then | |
9011 | # We have reworked collect2 | |
9012 | hardcode_direct_CXX=yes | |
9013 | else | |
9014 | # We have old collect2 | |
9015 | hardcode_direct_CXX=unsupported | |
9016 | # It fails to find uninstalled libraries when the uninstalled | |
9017 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9018 | # to unsupported forces relinking | |
9019 | hardcode_minus_L_CXX=yes | |
9020 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
9021 | hardcode_libdir_separator_CXX= | |
9022 | fi | |
9023 | esac | |
9024 | shared_flag='-shared' | |
9025 | else | |
9026 | # not using gcc | |
9027 | if test "$host_cpu" = ia64; then | |
9028 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9029 | # chokes on -Wl,-G. The following line is correct: | |
9030 | shared_flag='-G' | |
9031 | else | |
9032 | if test "$aix_use_runtimelinking" = yes; then | |
9033 | shared_flag='-qmkshrobj ${wl}-G' | |
9034 | else | |
9035 | shared_flag='-qmkshrobj' | |
9036 | fi | |
9037 | fi | |
9038 | fi | |
9039 | ||
9040 | # Let the compiler handle the export list. | |
9041 | always_export_symbols_CXX=no | |
9042 | if test "$aix_use_runtimelinking" = yes; then | |
9043 | # Warning - without using the other runtime loading flags (-brtl), | |
9044 | # -berok will link without error, but may produce a broken library. | |
9045 | allow_undefined_flag_CXX='-berok' | |
9046 | # Determine the default libpath from the value encoded in an empty executable. | |
9047 | cat >conftest.$ac_ext <<_ACEOF | |
9048 | #line $LINENO "configure" | |
9049 | #include "confdefs.h" | |
9050 | ||
9051 | #ifdef F77_DUMMY_MAIN | |
9052 | # ifdef __cplusplus | |
9053 | extern "C" | |
9054 | # endif | |
9055 | int F77_DUMMY_MAIN() { return 1; } | |
9056 | #endif | |
9057 | int | |
9058 | main () | |
9059 | { | |
9060 | ||
9061 | ; | |
9062 | return 0; | |
9063 | } | |
9064 | _ACEOF | |
9065 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9066 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9067 | (eval $ac_link) 2>&5 | |
9068 | ac_status=$? | |
9069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9070 | (exit $ac_status); } && | |
9071 | { ac_try='test -s conftest$ac_exeext' | |
9072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9073 | (eval $ac_try) 2>&5 | |
9074 | ac_status=$? | |
9075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9076 | (exit $ac_status); }; }; then | |
9077 | ||
9078 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
9079 | }'` | |
9080 | # Check for a 64-bit object if we didn't find anything. | |
9081 | 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; } | |
9082 | }'`; fi | |
9083 | else | |
9084 | echo "$as_me: failed program was:" >&5 | |
9085 | cat conftest.$ac_ext >&5 | |
9086 | fi | |
9087 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9088 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9089 | ||
9090 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9091 | ||
9092 | 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" | |
9093 | 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" | |
9094 | else | |
9095 | if test "$host_cpu" = ia64; then | |
9096 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
9097 | allow_undefined_flag_CXX="-z nodefs" | |
9098 | 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" | |
9099 | else | |
9100 | # Determine the default libpath from the value encoded in an empty executable. | |
9101 | cat >conftest.$ac_ext <<_ACEOF | |
9102 | #line $LINENO "configure" | |
9103 | #include "confdefs.h" | |
9104 | ||
9105 | #ifdef F77_DUMMY_MAIN | |
9106 | # ifdef __cplusplus | |
9107 | extern "C" | |
9108 | # endif | |
9109 | int F77_DUMMY_MAIN() { return 1; } | |
9110 | #endif | |
9111 | int | |
9112 | main () | |
9113 | { | |
9114 | ||
9115 | ; | |
9116 | return 0; | |
9117 | } | |
9118 | _ACEOF | |
9119 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9120 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9121 | (eval $ac_link) 2>&5 | |
9122 | ac_status=$? | |
9123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9124 | (exit $ac_status); } && | |
9125 | { ac_try='test -s conftest$ac_exeext' | |
9126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9127 | (eval $ac_try) 2>&5 | |
9128 | ac_status=$? | |
9129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9130 | (exit $ac_status); }; }; then | |
9131 | ||
9132 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
9133 | }'` | |
9134 | # Check for a 64-bit object if we didn't find anything. | |
9135 | 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; } | |
9136 | }'`; fi | |
9137 | else | |
9138 | echo "$as_me: failed program was:" >&5 | |
9139 | cat conftest.$ac_ext >&5 | |
9140 | fi | |
9141 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9142 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9143 | ||
9144 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9145 | # Warning - without using the other run time loading flags, | |
9146 | # -berok will link without error, but may produce a broken library. | |
9147 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
9148 | allow_undefined_flag_CXX=' ${wl}-berok' | |
9149 | # -bexpall does not export symbols beginning with underscore (_) | |
9150 | always_export_symbols_CXX=yes | |
9151 | # Exported symbols can be pulled into shared objects from archives | |
9152 | whole_archive_flag_spec_CXX=' ' | |
9153 | archive_cmds_need_lc_CXX=yes | |
9154 | # This is similar to how AIX traditionally builds it's shared libraries. | |
9155 | 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' | |
9156 | fi | |
9157 | fi | |
9158 | ;; | |
9159 | chorus*) | |
9160 | case $cc_basename in | |
9161 | *) | |
9162 | # FIXME: insert proper C++ library support | |
9163 | ld_shlibs_CXX=no | |
9164 | ;; | |
9165 | esac | |
9166 | ;; | |
9167 | dgux*) | |
9168 | case $cc_basename in | |
9169 | ec++) | |
9170 | # FIXME: insert proper C++ library support | |
9171 | ld_shlibs_CXX=no | |
9172 | ;; | |
9173 | ghcx) | |
9174 | # Green Hills C++ Compiler | |
9175 | # FIXME: insert proper C++ library support | |
9176 | ld_shlibs_CXX=no | |
9177 | ;; | |
9178 | *) | |
9179 | # FIXME: insert proper C++ library support | |
9180 | ld_shlibs_CXX=no | |
9181 | ;; | |
9182 | esac | |
9183 | ;; | |
9184 | freebsd12*) | |
9185 | # C++ shared libraries reported to be fairly broken before switch to ELF | |
9186 | ld_shlibs_CXX=no | |
9187 | ;; | |
9188 | freebsd-elf*) | |
9189 | archive_cmds_need_lc_CXX=no | |
9190 | ;; | |
9191 | freebsd*) | |
9192 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
9193 | # conventions | |
9194 | ld_shlibs_CXX=yes | |
9195 | ;; | |
9196 | gnu*) | |
9197 | ;; | |
9198 | hpux*) | |
9199 | if test $with_gnu_ld = no; then | |
9200 | if test "$host_cpu" = ia64; then | |
9201 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
9202 | else | |
9203 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
9204 | hardcode_libdir_separator_CXX=: | |
9205 | export_dynamic_flag_spec_CXX='${wl}-E' | |
9206 | fi | |
9207 | fi | |
9208 | if test "$host_cpu" = ia64; then | |
9209 | hardcode_direct_CXX=no | |
9210 | hardcode_shlibpath_var_CXX=no | |
9211 | else | |
9212 | hardcode_direct_CXX=yes | |
9213 | fi | |
9214 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
9215 | # but as the default | |
9216 | # location of the library. | |
9217 | ||
9218 | case $cc_basename in | |
9219 | CC) | |
9220 | # FIXME: insert proper C++ library support | |
9221 | ld_shlibs_CXX=no | |
9222 | ;; | |
9223 | aCC) | |
9224 | case $host_os in | |
9225 | hpux9*) | |
9226 | 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' | |
9227 | ;; | |
9228 | *) | |
9229 | if test "$host_cpu" = ia64; then | |
9230 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | |
9231 | else | |
9232 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
9233 | fi | |
9234 | ;; | |
9235 | esac | |
9236 | # Commands to make compiler produce verbose output that lists | |
9237 | # what "hidden" libraries, object files and flags are used when | |
9238 | # linking a shared library. | |
9239 | # | |
9240 | # There doesn't appear to be a way to prevent this compiler from | |
9241 | # explicitly linking system object files so we need to strip them | |
9242 | # from the output so that they don't get included in the library | |
9243 | # dependencies. | |
9244 | 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' | |
9245 | ;; | |
9246 | *) | |
9247 | if test "$GXX" = yes; then | |
9248 | if test $with_gnu_ld = no; then | |
9249 | case $host_os in | |
9250 | hpux9*) | |
9251 | 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' | |
9252 | ;; | |
9253 | *) | |
9254 | if test "$host_cpu" = ia64; then | |
9255 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | |
9256 | else | |
9257 | 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' | |
9258 | fi | |
9259 | ;; | |
9260 | esac | |
9261 | fi | |
9262 | else | |
9263 | # FIXME: insert proper C++ library support | |
9264 | ld_shlibs_CXX=no | |
9265 | fi | |
9266 | ;; | |
9267 | esac | |
9268 | ;; | |
9269 | irix5* | irix6*) | |
9270 | case $cc_basename in | |
9271 | CC) | |
9272 | # SGI C++ | |
9273 | 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' | |
9274 | ||
9275 | # Archives containing C++ object files must be created using | |
9276 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
9277 | # necessary to make sure instantiated templates are included | |
9278 | # in the archive. | |
9279 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
9280 | ;; | |
9281 | *) | |
9282 | if test "$GXX" = yes; then | |
9283 | if test "$with_gnu_ld" = no; then | |
9284 | 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' | |
9285 | else | |
9286 | 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' | |
9287 | fi | |
9288 | fi | |
9289 | link_all_deplibs_CXX=yes | |
9290 | ;; | |
9291 | esac | |
9292 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
9293 | hardcode_libdir_separator_CXX=: | |
9294 | ;; | |
9295 | linux*) | |
9296 | case $cc_basename in | |
9297 | KCC) | |
9298 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9299 | ||
9300 | # KCC will only create a shared library if the output file | |
9301 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
9302 | # to its proper name (with version) after linking. | |
9303 | 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' | |
9304 | 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' | |
9305 | ||
9306 | # Commands to make compiler produce verbose output that lists | |
9307 | # what "hidden" libraries, object files and flags are used when | |
9308 | # linking a shared library. | |
9309 | # | |
9310 | # There doesn't appear to be a way to prevent this compiler from | |
9311 | # explicitly linking system object files so we need to strip them | |
9312 | # from the output so that they don't get included in the library | |
9313 | # dependencies. | |
9314 | 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' | |
9315 | ||
9316 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | |
9317 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9318 | ||
9319 | # Archives containing C++ object files must be created using | |
9320 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
9321 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
9322 | ;; | |
9323 | cxx) | |
9324 | # Compaq C++ | |
9325 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9326 | 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' | |
9327 | ||
9328 | runpath_var=LD_RUN_PATH | |
9329 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
9330 | hardcode_libdir_separator_CXX=: | |
9331 | ||
9332 | # Commands to make compiler produce verbose output that lists | |
9333 | # what "hidden" libraries, object files and flags are used when | |
9334 | # linking a shared library. | |
9335 | # | |
9336 | # There doesn't appear to be a way to prevent this compiler from | |
9337 | # explicitly linking system object files so we need to strip them | |
9338 | # from the output so that they don't get included in the library | |
9339 | # dependencies. | |
9340 | 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' | |
9341 | ;; | |
9342 | esac | |
9343 | ;; | |
9344 | lynxos*) | |
9345 | # FIXME: insert proper C++ library support | |
9346 | ld_shlibs_CXX=no | |
9347 | ;; | |
9348 | m88k*) | |
9349 | # FIXME: insert proper C++ library support | |
9350 | ld_shlibs_CXX=no | |
9351 | ;; | |
9352 | mvs*) | |
9353 | case $cc_basename in | |
9354 | cxx) | |
9355 | # FIXME: insert proper C++ library support | |
9356 | ld_shlibs_CXX=no | |
9357 | ;; | |
9358 | *) | |
9359 | # FIXME: insert proper C++ library support | |
9360 | ld_shlibs_CXX=no | |
9361 | ;; | |
9362 | esac | |
9363 | ;; | |
9364 | netbsd*) | |
9365 | # NetBSD uses g++ - do we need to do anything? | |
9366 | ;; | |
9367 | osf3*) | |
9368 | case $cc_basename in | |
9369 | KCC) | |
9370 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9371 | ||
9372 | # KCC will only create a shared library if the output file | |
9373 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
9374 | # to its proper name (with version) after linking. | |
9375 | 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' | |
9376 | ||
9377 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
9378 | hardcode_libdir_separator_CXX=: | |
9379 | ||
9380 | # Archives containing C++ object files must be created using | |
9381 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
9382 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
9383 | ||
9384 | ;; | |
9385 | RCC) | |
9386 | # Rational C++ 2.4.1 | |
9387 | # FIXME: insert proper C++ library support | |
9388 | ld_shlibs_CXX=no | |
9389 | ;; | |
9390 | cxx) | |
9391 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
9392 | 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' | |
9393 | ||
9394 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
9395 | hardcode_libdir_separator_CXX=: | |
9396 | ||
9397 | # Commands to make compiler produce verbose output that lists | |
9398 | # what "hidden" libraries, object files and flags are used when | |
9399 | # linking a shared library. | |
9400 | # | |
9401 | # There doesn't appear to be a way to prevent this compiler from | |
9402 | # explicitly linking system object files so we need to strip them | |
9403 | # from the output so that they don't get included in the library | |
9404 | # dependencies. | |
9405 | 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' | |
9406 | ;; | |
9407 | *) | |
9408 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
9409 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
9410 | 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' | |
9411 | ||
9412 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
9413 | hardcode_libdir_separator_CXX=: | |
9414 | ||
9415 | # Commands to make compiler produce verbose output that lists | |
9416 | # what "hidden" libraries, object files and flags are used when | |
9417 | # linking a shared library. | |
9418 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' | |
9419 | ||
9420 | else | |
9421 | # FIXME: insert proper C++ library support | |
9422 | ld_shlibs_CXX=no | |
9423 | fi | |
9424 | ;; | |
9425 | esac | |
9426 | ;; | |
9427 | osf4* | osf5*) | |
9428 | case $cc_basename in | |
9429 | KCC) | |
9430 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9431 | ||
9432 | # KCC will only create a shared library if the output file | |
9433 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
9434 | # to its proper name (with version) after linking. | |
9435 | 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' | |
9436 | ||
9437 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
9438 | hardcode_libdir_separator_CXX=: | |
9439 | ||
9440 | # Archives containing C++ object files must be created using | |
9441 | # the KAI C++ compiler. | |
9442 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | |
9443 | ;; | |
9444 | RCC) | |
9445 | # Rational C++ 2.4.1 | |
9446 | # FIXME: insert proper C++ library support | |
9447 | ld_shlibs_CXX=no | |
9448 | ;; | |
9449 | cxx) | |
9450 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
9451 | 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' | |
9452 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~ | |
9453 | echo "-hidden">> $lib.exp~ | |
9454 | $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~ | |
9455 | $rm $lib.exp' | |
9456 | ||
9457 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
9458 | hardcode_libdir_separator_CXX=: | |
9459 | ||
9460 | # Commands to make compiler produce verbose output that lists | |
9461 | # what "hidden" libraries, object files and flags are used when | |
9462 | # linking a shared library. | |
9463 | # | |
9464 | # There doesn't appear to be a way to prevent this compiler from | |
9465 | # explicitly linking system object files so we need to strip them | |
9466 | # from the output so that they don't get included in the library | |
9467 | # dependencies. | |
9468 | 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' | |
9469 | ;; | |
9470 | *) | |
9471 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
9472 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
9473 | 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' | |
9474 | ||
9475 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
9476 | hardcode_libdir_separator_CXX=: | |
9477 | ||
9478 | # Commands to make compiler produce verbose output that lists | |
9479 | # what "hidden" libraries, object files and flags are used when | |
9480 | # linking a shared library. | |
9481 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' | |
9482 | ||
9483 | else | |
9484 | # FIXME: insert proper C++ library support | |
9485 | ld_shlibs_CXX=no | |
9486 | fi | |
9487 | ;; | |
9488 | esac | |
9489 | ;; | |
9490 | psos*) | |
9491 | # FIXME: insert proper C++ library support | |
9492 | ld_shlibs_CXX=no | |
9493 | ;; | |
9494 | sco*) | |
9495 | archive_cmds_need_lc_CXX=no | |
9496 | case $cc_basename in | |
9497 | CC) | |
9498 | # FIXME: insert proper C++ library support | |
9499 | ld_shlibs_CXX=no | |
9500 | ;; | |
9501 | *) | |
9502 | # FIXME: insert proper C++ library support | |
9503 | ld_shlibs_CXX=no | |
9504 | ;; | |
9505 | esac | |
9506 | ;; | |
9507 | sunos4*) | |
9508 | case $cc_basename in | |
9509 | CC) | |
9510 | # Sun C++ 4.x | |
9511 | # FIXME: insert proper C++ library support | |
9512 | ld_shlibs_CXX=no | |
9513 | ;; | |
9514 | lcc) | |
9515 | # Lucid | |
9516 | # FIXME: insert proper C++ library support | |
9517 | ld_shlibs_CXX=no | |
9518 | ;; | |
9519 | *) | |
9520 | # FIXME: insert proper C++ library support | |
9521 | ld_shlibs_CXX=no | |
9522 | ;; | |
9523 | esac | |
9524 | ;; | |
9525 | solaris*) | |
9526 | case $cc_basename in | |
9527 | CC) | |
9528 | # Sun C++ 4.2, 5.x and Centerline C++ | |
9529 | no_undefined_flag_CXX=' -zdefs' | |
9530 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
9531 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
9532 | $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' | |
9533 | ||
9534 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
9535 | hardcode_shlibpath_var_CXX=no | |
9536 | case $host_os in | |
9537 | solaris2.0-5 | solaris2.0-5.*) ;; | |
9538 | *) | |
9539 | # The C++ compiler is used as linker so we must use $wl | |
9540 | # flag to pass the commands to the underlying system | |
9541 | # linker. | |
9542 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9543 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9544 | ;; | |
9545 | esac | |
9546 | link_all_deplibs_CXX=yes | |
9547 | ||
9548 | # Commands to make compiler produce verbose output that lists | |
9549 | # what "hidden" libraries, object files and flags are used when | |
9550 | # linking a shared library. | |
9551 | # | |
9552 | # There doesn't appear to be a way to prevent this compiler from | |
9553 | # explicitly linking system object files so we need to strip them | |
9554 | # from the output so that they don't get included in the library | |
9555 | # dependencies. | |
9556 | 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' | |
9557 | ||
9558 | # Archives containing C++ object files must be created using | |
9559 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
9560 | # necessary to make sure instantiated templates are included | |
9561 | # in the archive. | |
9562 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
9563 | ;; | |
9564 | gcx) | |
9565 | # Green Hills C++ Compiler | |
9566 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
9567 | ||
9568 | # The C++ compiler must be used to create the archive. | |
9569 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
9570 | ;; | |
9571 | *) | |
9572 | # GNU C++ compiler with Solaris linker | |
9573 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
9574 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
9575 | if $CC --version | egrep -v '^2\.7' > /dev/null; then | |
9576 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib' | |
9577 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
9578 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp' | |
9579 | ||
9580 | # Commands to make compiler produce verbose output that lists | |
9581 | # what "hidden" libraries, object files and flags are used when | |
9582 | # linking a shared library. | |
9583 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\"" | |
9584 | else | |
9585 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
9586 | # platform. | |
9587 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib' | |
9588 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
9589 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp' | |
9590 | ||
9591 | # Commands to make compiler produce verbose output that lists | |
9592 | # what "hidden" libraries, object files and flags are used when | |
9593 | # linking a shared library. | |
9594 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\"" | |
9595 | fi | |
9596 | ||
9597 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
9598 | fi | |
9599 | ;; | |
9600 | esac | |
9601 | ;; | |
9602 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
9603 | archive_cmds_need_lc_CXX=no | |
9604 | ;; | |
9605 | tandem*) | |
9606 | case $cc_basename in | |
9607 | NCC) | |
9608 | # NonStop-UX NCC 3.20 | |
9609 | # FIXME: insert proper C++ library support | |
9610 | ld_shlibs_CXX=no | |
9611 | ;; | |
9612 | *) | |
9613 | # FIXME: insert proper C++ library support | |
9614 | ld_shlibs_CXX=no | |
9615 | ;; | |
9616 | esac | |
9617 | ;; | |
9618 | vxworks*) | |
9619 | # FIXME: insert proper C++ library support | |
9620 | ld_shlibs_CXX=no | |
9621 | ;; | |
9622 | *) | |
9623 | # FIXME: insert proper C++ library support | |
9624 | ld_shlibs_CXX=no | |
9625 | ;; | |
9626 | esac | |
9627 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
9628 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | |
9629 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
9630 | ||
9631 | # Figure out "hidden" C++ library dependencies from verbose | |
9632 | # compiler output whening linking a shared library. | |
9633 | cat > conftest.$ac_ext <<EOF | |
9634 | class Foo | |
9635 | { | |
9636 | public: | |
9637 | Foo (void) { a = 0; } | |
9638 | private: | |
9639 | int a; | |
9640 | }; | |
9641 | EOF | |
9642 | ||
9643 | ||
9644 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9645 | (eval $ac_compile) 2>&5 | |
9646 | ac_status=$? | |
9647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9648 | (exit $ac_status); }; then | |
9649 | # Parse the compiler output and extract the necessary | |
9650 | # objects, libraries and library flags. | |
9651 | ||
9652 | # Sentinel used to keep track of whether or not we are before | |
9653 | # the conftest object file. | |
9654 | pre_test_object_deps_done=no | |
9655 | ||
9656 | # The `*' in the case matches for architectures that use `case' in | |
9657 | # $output_verbose_cmd can trigger glob expansion during the loop | |
9658 | # eval without this substitution. | |
9659 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" | |
9660 | ||
9661 | for p in `eval $output_verbose_link_cmd`; do | |
9662 | case $p in | |
9663 | ||
9664 | -L* | -R* | -l*) | |
9665 | # Some compilers place space between "-{L,R}" and the path. | |
9666 | # Remove the space. | |
9667 | if test $p = "-L" \ | |
9668 | || test $p = "-R"; then | |
9669 | prev=$p | |
9670 | continue | |
9671 | else | |
9672 | prev= | |
9673 | fi | |
9674 | ||
9675 | if test "$pre_test_object_deps_done" = no; then | |
9676 | case $p in | |
9677 | -L* | -R*) | |
9678 | # Internal compiler library paths should come after those | |
9679 | # provided the user. The postdeps already come after the | |
9680 | # user supplied libs so there is no need to process them. | |
9681 | if test -z "$compiler_lib_search_path_CXX"; then | |
9682 | compiler_lib_search_path_CXX="${prev}${p}" | |
9683 | else | |
9684 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
9685 | fi | |
9686 | ;; | |
9687 | # The "-l" case would never come before the object being | |
9688 | # linked, so don't bother handling this case. | |
9689 | esac | |
9690 | else | |
9691 | if test -z "$postdeps_CXX"; then | |
9692 | postdeps_CXX="${prev}${p}" | |
9693 | else | |
9694 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
9695 | fi | |
9696 | fi | |
9697 | ;; | |
9698 | ||
9699 | *.$objext|*.$libext) | |
9700 | # This assumes that the test object file only shows up | |
9701 | # once in the compiler output. | |
9702 | if test "$p" = "conftest.$objext"; then | |
9703 | pre_test_object_deps_done=yes | |
9704 | continue | |
9705 | fi | |
9706 | ||
9707 | if test "$pre_test_object_deps_done" = no; then | |
9708 | if test -z "$predep_objects_CXX"; then | |
9709 | predep_objects_CXX="$p" | |
9710 | else | |
9711 | predep_objects_CXX="$predep_objects_CXX $p" | |
9712 | fi | |
9713 | else | |
9714 | if test -z "$postdep_objects_CXX"; then | |
9715 | postdep_objects_CXX="$p" | |
9716 | else | |
9717 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
9718 | fi | |
9719 | fi | |
9720 | ;; | |
9721 | ||
9722 | *) ;; # Ignore the rest. | |
9723 | ||
9724 | esac | |
9725 | done | |
9726 | ||
9727 | # Clean up. | |
9728 | rm -f a.out | |
9729 | else | |
9730 | echo "libtool.m4: error: problem compiling C++ test program" | |
9731 | fi | |
9732 | ||
9733 | $rm -f confest.$objext | |
9734 | ||
9735 | case " $postdeps_CXX " in | |
9736 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
9737 | *) archive_cmds_need_lc_CXX=yes ;; | |
9738 | esac | |
9739 | ||
9740 | GCC_CXX="$GXX" | |
9741 | LD_CXX="$LD" | |
9742 | ||
9743 | lt_prog_compiler_wl_CXX= | |
9744 | lt_prog_compiler_pic_CXX= | |
9745 | lt_prog_compiler_static_CXX= | |
9746 | ||
9747 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
9748 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
9749 | ||
9750 | # C++ specific cases for pic, static, wl, etc. | |
9751 | if test "$GXX" = yes; then | |
9752 | lt_prog_compiler_wl_CXX='-Wl,' | |
9753 | lt_prog_compiler_static_CXX='-static' | |
9754 | ||
9755 | case $host_os in | |
9756 | aix*) | |
9757 | # All AIX code is PIC. | |
9758 | if test "$host_cpu" = ia64; then | |
9759 | # AIX 5 now supports IA64 processor | |
9760 | lt_prog_compiler_static_CXX='-Bstatic' | |
9761 | fi | |
9762 | ;; | |
9763 | amigaos*) | |
9764 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9765 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9766 | # like `-m68040'. | |
9767 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
9768 | ;; | |
9769 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
9770 | # PIC is the default for these OSes. | |
9771 | ;; | |
9772 | cygwin* | mingw* | os2*) | |
9773 | # This hack is so that the source file can tell whether it is being | |
9774 | # built for inclusion in a dll (and should export symbols for example). | |
9775 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
9776 | ;; | |
9777 | darwin* | rhapsody*) | |
9778 | # PIC is the default on this platform | |
9779 | # Common symbols not allowed in MH_DYLIB files | |
9780 | lt_prog_compiler_pic_CXX='-fno-common' | |
9781 | ;; | |
9782 | *djgpp*) | |
9783 | # DJGPP does not support shared libraries at all | |
9784 | lt_prog_compiler_pic_CXX= | |
9785 | ;; | |
9786 | sysv4*MP*) | |
9787 | if test -d /usr/nec; then | |
9788 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
9789 | fi | |
9790 | ;; | |
9791 | hpux*) | |
9792 | # PIC is the default for IA64 HP-UX, but not for PA HP-UX. | |
9793 | if test "$host_cpu" != ia64; then | |
9794 | lt_prog_compiler_pic_CXX='-fPIC' | |
9795 | fi | |
9796 | ;; | |
9797 | *) | |
9798 | lt_prog_compiler_pic_CXX='-fPIC' | |
9799 | ;; | |
9800 | esac | |
9801 | else | |
9802 | case $host_os in | |
9803 | aix4* | aix5*) | |
9804 | # All AIX code is PIC. | |
9805 | if test "$host_cpu" = ia64; then | |
9806 | # AIX 5 now supports IA64 processor | |
9807 | lt_prog_compiler_static_CXX='-Bstatic' | |
9808 | else | |
9809 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
9810 | fi | |
9811 | ;; | |
9812 | chorus*) | |
9813 | case $cc_basename in | |
9814 | cxch68) | |
9815 | # Green Hills C++ Compiler | |
9816 | # _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" | |
9817 | ;; | |
9818 | esac | |
9819 | ;; | |
9820 | dgux*) | |
9821 | case $cc_basename in | |
9822 | ec++) | |
9823 | lt_prog_compiler_pic_CXX='-KPIC' | |
9824 | ;; | |
9825 | ghcx) | |
9826 | # Green Hills C++ Compiler | |
9827 | lt_prog_compiler_pic_CXX='-pic' | |
9828 | ;; | |
9829 | *) | |
9830 | ;; | |
9831 | esac | |
9832 | ;; | |
9833 | freebsd*) | |
9834 | # FreeBSD uses GNU C++ | |
9835 | ;; | |
9836 | hpux9* | hpux10* | hpux11*) | |
9837 | case $cc_basename in | |
9838 | CC) | |
9839 | lt_prog_compiler_wl_CXX='-Wl,' | |
9840 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | |
9841 | if test "$host_cpu" != ia64; then | |
9842 | lt_prog_compiler_pic_CXX='+Z' | |
9843 | fi | |
9844 | ;; | |
9845 | aCC) | |
9846 | lt_prog_compiler_wl_CXX='-Wl,' | |
9847 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | |
9848 | if test "$host_cpu" != ia64; then | |
9849 | lt_prog_compiler_pic_CXX='+Z' | |
9850 | fi | |
9851 | ;; | |
9852 | *) | |
9853 | ;; | |
9854 | esac | |
9855 | ;; | |
9856 | irix5* | irix6* | nonstopux*) | |
9857 | case $cc_basename in | |
9858 | CC) | |
9859 | lt_prog_compiler_wl_CXX='-Wl,' | |
9860 | lt_prog_compiler_static_CXX='-non_shared' | |
9861 | # CC pic flag -KPIC is the default. | |
9862 | ;; | |
9863 | *) | |
9864 | ;; | |
9865 | esac | |
9866 | ;; | |
9867 | linux*) | |
9868 | case $cc_basename in | |
9869 | KCC) | |
9870 | # KAI C++ Compiler | |
9871 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
9872 | lt_prog_compiler_pic_CXX='-fPIC' | |
9873 | ;; | |
9874 | cxx) | |
9875 | # Compaq C++ | |
9876 | # Make sure the PIC flag is empty. It appears that all Alpha | |
9877 | # Linux and Compaq Tru64 Unix objects are PIC. | |
9878 | lt_prog_compiler_pic_CXX= | |
9879 | lt_prog_compiler_static_CXX='-non_shared' | |
9880 | ;; | |
9881 | *) | |
9882 | ;; | |
9883 | esac | |
9884 | ;; | |
9885 | lynxos*) | |
9886 | ;; | |
9887 | m88k*) | |
9888 | ;; | |
9889 | mvs*) | |
9890 | case $cc_basename in | |
9891 | cxx) | |
9892 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
9893 | ;; | |
9894 | *) | |
9895 | ;; | |
9896 | esac | |
9897 | ;; | |
9898 | netbsd*) | |
9899 | ;; | |
9900 | osf3* | osf4* | osf5*) | |
9901 | case $cc_basename in | |
9902 | KCC) | |
9903 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
9904 | ;; | |
9905 | RCC) | |
9906 | # Rational C++ 2.4.1 | |
9907 | lt_prog_compiler_pic_CXX='-pic' | |
9908 | ;; | |
9909 | cxx) | |
9910 | # Digital/Compaq C++ | |
9911 | lt_prog_compiler_wl_CXX='-Wl,' | |
9912 | # Make sure the PIC flag is empty. It appears that all Alpha | |
9913 | # Linux and Compaq Tru64 Unix objects are PIC. | |
9914 | lt_prog_compiler_pic_CXX= | |
9915 | lt_prog_compiler_static_CXX='-non_shared' | |
9916 | ;; | |
9917 | *) | |
9918 | ;; | |
9919 | esac | |
9920 | ;; | |
9921 | psos*) | |
9922 | ;; | |
9923 | sco*) | |
9924 | case $cc_basename in | |
9925 | CC) | |
9926 | lt_prog_compiler_pic_CXX='-fPIC' | |
9927 | ;; | |
9928 | *) | |
9929 | ;; | |
9930 | esac | |
9931 | ;; | |
9932 | solaris*) | |
9933 | case $cc_basename in | |
9934 | CC) | |
9935 | # Sun C++ 4.2, 5.x and Centerline C++ | |
9936 | lt_prog_compiler_pic_CXX='-KPIC' | |
9937 | lt_prog_compiler_static_CXX='-Bstatic' | |
9938 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
9939 | ;; | |
9940 | gcx) | |
9941 | # Green Hills C++ Compiler | |
9942 | lt_prog_compiler_pic_CXX='-PIC' | |
9943 | ;; | |
9944 | *) | |
9945 | ;; | |
9946 | esac | |
9947 | ;; | |
9948 | sunos4*) | |
9949 | case $cc_basename in | |
9950 | CC) | |
9951 | # Sun C++ 4.x | |
9952 | lt_prog_compiler_pic_CXX='-pic' | |
9953 | lt_prog_compiler_static_CXX='-Bstatic' | |
9954 | ;; | |
9955 | lcc) | |
9956 | # Lucid | |
9957 | lt_prog_compiler_pic_CXX='-pic' | |
9958 | ;; | |
9959 | *) | |
9960 | ;; | |
9961 | esac | |
9962 | ;; | |
9963 | tandem*) | |
9964 | case $cc_basename in | |
9965 | NCC) | |
9966 | # NonStop-UX NCC 3.20 | |
9967 | lt_prog_compiler_pic_CXX='-KPIC' | |
9968 | ;; | |
9969 | *) | |
9970 | ;; | |
9971 | esac | |
9972 | ;; | |
9973 | unixware*) | |
9974 | ;; | |
9975 | vxworks*) | |
9976 | ;; | |
9977 | *) | |
9978 | lt_prog_compiler_can_build_shared_CXX=no | |
9979 | ;; | |
9980 | esac | |
9981 | fi | |
9982 | ||
9983 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | |
9984 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 | |
9985 | ||
9986 | # | |
9987 | # Check to make sure the PIC flag actually works. | |
9988 | # | |
9989 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
9990 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
9991 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 | |
9992 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | |
9993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9994 | else | |
9995 | lt_prog_compiler_pic_works_CXX=no | |
9996 | ac_outfile=conftest.$ac_objext | |
9997 | save_CFLAGS="$CFLAGS" | |
9998 | CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC" | |
9999 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10000 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
10001 | # The compiler can only warn and ignore the option if not recognized | |
10002 | # So say no if there are warnings | |
10003 | if test -s conftest.err; then | |
10004 | # Append any errors to the config.log. | |
10005 | cat conftest.err 1>&5 | |
10006 | else | |
10007 | lt_prog_compiler_pic_works_CXX=yes | |
10008 | fi | |
10009 | fi | |
10010 | $rm conftest* | |
10011 | CFLAGS="$save_CFLAGS" | |
10012 | ||
10013 | fi | |
10014 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | |
10015 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 | |
10016 | ||
10017 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | |
10018 | case $lt_prog_compiler_pic_CXX in | |
10019 | "" | " "*) ;; | |
10020 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
10021 | esac | |
10022 | else | |
10023 | lt_prog_compiler_pic_CXX= | |
10024 | lt_prog_compiler_can_build_shared_CXX=no | |
10025 | fi | |
10026 | ||
10027 | fi | |
10028 | case "$host_os" in | |
10029 | # For platforms which do not support PIC, -DPIC is meaningless: | |
10030 | *djgpp*) | |
10031 | lt_prog_compiler_pic_CXX= | |
10032 | ;; | |
10033 | *) | |
10034 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
10035 | ;; | |
10036 | esac | |
10037 | ||
10038 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
10039 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
10040 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | |
10041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10042 | else | |
10043 | lt_cv_prog_compiler_c_o_CXX=no | |
10044 | $rm -r conftest 2>/dev/null | |
10045 | mkdir conftest | |
10046 | cd conftest | |
10047 | mkdir out | |
10048 | save_CXXFLAGS="$CXXFLAGS" | |
10049 | CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext" | |
10050 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10051 | ||
10052 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | |
10053 | # that will create temporary files in the current directory regardless of | |
10054 | # the output directory. Thus, making CWD read-only will cause this test | |
10055 | # to fail, enabling locking or at least warning the user not to do parallel | |
10056 | # builds. | |
10057 | chmod -w . | |
10058 | ||
10059 | if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext | |
10060 | then | |
10061 | # The compiler can only warn and ignore the option if not recognized | |
10062 | # So say no if there are warnings | |
10063 | if test -s out/conftest.err; then | |
10064 | # Append any errors to the config.log. | |
10065 | cat out/conftest.err 1>&5 | |
10066 | else | |
10067 | lt_cv_prog_compiler_c_o_CXX=yes | |
10068 | fi | |
10069 | fi | |
10070 | CXXFLAGS="$save_CXXFLAGS" | |
10071 | chmod u+w . | |
10072 | $rm conftest* out/* | |
10073 | rmdir out | |
10074 | cd .. | |
10075 | rmdir conftest | |
10076 | $rm conftest* | |
10077 | ||
10078 | fi | |
10079 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
10080 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 | |
10081 | ||
10082 | ||
10083 | hard_links="nottested" | |
10084 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
10085 | # do not overwrite the value of need_locks provided by the user | |
10086 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
10087 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
10088 | hard_links=yes | |
10089 | $rm conftest* | |
10090 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10091 | touch conftest.a | |
10092 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
10093 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10094 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
10095 | echo "${ECHO_T}$hard_links" >&6 | |
10096 | if test "$hard_links" = no; then | |
10097 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
10098 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
10099 | need_locks=warn | |
10100 | fi | |
10101 | else | |
10102 | need_locks=no | |
10103 | fi | |
10104 | ||
10105 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
10106 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
10107 | ||
10108 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
10109 | case $host_os in | |
10110 | aix4* | aix5*) | |
10111 | # If we're using GNU nm, then we don't want the "-C" option. | |
10112 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
10113 | if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then | |
10114 | 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' | |
10115 | else | |
10116 | 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' | |
10117 | fi | |
10118 | ;; | |
10119 | cygwin* | mingw* | pw32*) | |
10120 | export_symbols_cmds_CXX="$ltdll_cmds" | |
10121 | ;; | |
10122 | *) | |
10123 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
10124 | ;; | |
10125 | esac | |
10126 | ||
10127 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
10128 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | |
10129 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
10130 | ||
10131 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10132 | if test "$GCC" = yes; then | |
10133 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10134 | fi | |
10135 | ||
10136 | # | |
10137 | # Do we need to explicitly link libc? | |
10138 | # | |
10139 | archive_cmds_need_lc_CXX=yes | |
10140 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
10141 | case $archive_cmds_CXX in | |
10142 | *'~'*) | |
10143 | # FIXME: we may have to deal with multi-command sequences. | |
10144 | ;; | |
10145 | '$CC '*) | |
10146 | # Test whether the compiler implicitly links with -lc since on some | |
10147 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10148 | # to ld, don't add -lc before -lgcc. | |
10149 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
10150 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
10151 | $rm conftest* | |
10152 | echo 'static int dummy;' > conftest.$ac_ext | |
10153 | ||
10154 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10155 | (eval $ac_compile) 2>&5 | |
10156 | ac_status=$? | |
10157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10158 | (exit $ac_status); } 2>conftest.err; then | |
10159 | soname=conftest | |
10160 | lib=conftest | |
10161 | libobjs=conftest.$ac_objext | |
10162 | deplibs= | |
10163 | wl=$lt_prog_compiler_wl_CXX | |
10164 | compiler_flags=-v | |
10165 | linker_flags=-v | |
10166 | verstring= | |
10167 | output_objdir=. | |
10168 | libname=conftest | |
10169 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
10170 | allow_undefined_flag_CXX= | |
10171 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
10172 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10173 | ac_status=$? | |
10174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10175 | (exit $ac_status); } | |
10176 | then | |
10177 | archive_cmds_need_lc_CXX=no | |
10178 | else | |
10179 | archive_cmds_need_lc_CXX=yes | |
10180 | fi | |
10181 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
10182 | else | |
10183 | cat conftest.err 1>&5 | |
10184 | fi | |
10185 | $rm conftest* | |
10186 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | |
10187 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 | |
10188 | ;; | |
10189 | esac | |
10190 | fi | |
10191 | ||
10192 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
10193 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
10194 | hardcode_action_CXX= | |
10195 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ | |
10196 | test -n "$runpath_var CXX"; then | |
10197 | ||
10198 | # We can hardcode non-existant directories. | |
10199 | if test "$hardcode_direct_CXX" != no && | |
10200 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10201 | # have to relink, otherwise we might link with an installed library | |
10202 | # when we should be linking with a yet-to-be-installed one | |
10203 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
10204 | test "$hardcode_minus_L_CXX" != no; then | |
10205 | # Linking always hardcodes the temporary library directory. | |
10206 | hardcode_action_CXX=relink | |
10207 | else | |
10208 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10209 | hardcode_action_CXX=immediate | |
10210 | fi | |
10211 | else | |
10212 | # We cannot hardcode anything, or else we can only hardcode existing | |
10213 | # directories. | |
10214 | hardcode_action_CXX=unsupported | |
10215 | fi | |
10216 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | |
10217 | echo "${ECHO_T}$hardcode_action_CXX" >&6 | |
10218 | ||
10219 | if test "$hardcode_action_CXX" = relink; then | |
10220 | # Fast installation is not supported | |
10221 | enable_fast_install=no | |
10222 | elif test "$shlibpath_overrides_runpath" = yes || | |
10223 | test "$enable_shared" = no; then | |
10224 | # Fast installation is not necessary | |
10225 | enable_fast_install=needless | |
10226 | fi | |
10227 | ||
10228 | striplib= | |
10229 | old_striplib= | |
10230 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
10231 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
10232 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
10233 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
10234 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
10235 | echo "$as_me:$LINENO: result: yes" >&5 | |
10236 | echo "${ECHO_T}yes" >&6 | |
10237 | else | |
10238 | echo "$as_me:$LINENO: result: no" >&5 | |
10239 | echo "${ECHO_T}no" >&6 | |
10240 | fi | |
10241 | ||
10242 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
10243 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
10244 | library_names_spec= | |
10245 | libname_spec='lib$name' | |
10246 | soname_spec= | |
10247 | postinstall_cmds= | |
10248 | postuninstall_cmds= | |
10249 | finish_cmds= | |
10250 | finish_eval= | |
10251 | shlibpath_var= | |
10252 | shlibpath_overrides_runpath=unknown | |
10253 | version_type=none | |
10254 | dynamic_linker="$host_os ld.so" | |
10255 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10256 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10257 | need_lib_prefix=unknown | |
10258 | hardcode_into_libs=no | |
10259 | ||
10260 | # when you set need_version to no, make sure it does not cause -set_version | |
10261 | # flags to be left without arguments | |
10262 | need_version=unknown | |
10263 | ||
10264 | case $host_os in | |
10265 | aix3*) | |
10266 | version_type=linux | |
10267 | library_names_spec='${libname}${release}.so$versuffix $libname.a' | |
10268 | shlibpath_var=LIBPATH | |
10269 | ||
10270 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10271 | soname_spec='${libname}${release}.so$major' | |
10272 | ;; | |
10273 | ||
10274 | aix4* | aix5*) | |
10275 | version_type=linux | |
10276 | if test "$host_cpu" = ia64; then | |
10277 | # AIX 5 supports IA64 | |
10278 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' | |
10279 | shlibpath_var=LD_LIBRARY_PATH | |
10280 | else | |
10281 | # With GCC up to 2.95.x, collect2 would create an import file | |
10282 | # for dependence libraries. The import file would start with | |
10283 | # the line `#! .'. This would cause the generated library to | |
10284 | # depend on `.', always an invalid library. This was fixed in | |
10285 | # development snapshots of GCC prior to 3.0. | |
10286 | case $host_os in | |
10287 | aix4 | aix4.[01] | aix4.[01].*) | |
10288 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10289 | echo ' yes ' | |
10290 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
10291 | : | |
10292 | else | |
10293 | can_build_shared=no | |
10294 | fi | |
10295 | ;; | |
10296 | esac | |
10297 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10298 | # soname into executable. Probably we can add versioning support to | |
10299 | # collect2, so additional links can be useful in future. | |
10300 | if test "$aix_use_runtimelinking" = yes; then | |
10301 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10302 | # instead of lib<name>.a to let people know that these are not | |
10303 | # typical AIX shared libraries. | |
10304 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10305 | else | |
10306 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10307 | # and later when we are not doing run time linking. | |
10308 | library_names_spec='${libname}${release}.a $libname.a' | |
10309 | soname_spec='${libname}${release}.so$major' | |
10310 | fi | |
10311 | shlibpath_var=LIBPATH | |
10312 | fi | |
10313 | ;; | |
10314 | ||
10315 | amigaos*) | |
10316 | library_names_spec='$libname.ixlibrary $libname.a' | |
10317 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10318 | 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' | |
10319 | ;; | |
10320 | ||
10321 | beos*) | |
10322 | library_names_spec='${libname}.so' | |
10323 | dynamic_linker="$host_os ld.so" | |
10324 | shlibpath_var=LIBRARY_PATH | |
10325 | ;; | |
10326 | ||
10327 | bsdi4*) | |
10328 | version_type=linux | |
10329 | need_version=no | |
10330 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10331 | soname_spec='${libname}${release}.so$major' | |
10332 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10333 | shlibpath_var=LD_LIBRARY_PATH | |
10334 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10335 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10336 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10337 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10338 | # libtool to hard-code these into programs | |
10339 | ;; | |
10340 | ||
10341 | cygwin* | mingw* | pw32*) | |
10342 | version_type=windows | |
10343 | need_version=no | |
10344 | need_lib_prefix=no | |
10345 | case $GCC,$host_os in | |
10346 | yes,cygwin*) | |
10347 | library_names_spec='$libname.dll.a' | |
10348 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | |
10349 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
10350 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ | |
10351 | dldir=$destdir/`dirname \$dlpath`~ | |
10352 | test -d \$dldir || mkdir -p \$dldir~ | |
10353 | $install_prog .libs/$dlname \$dldir/$dlname' | |
10354 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10355 | dlpath=$dir/\$dldll~ | |
10356 | $rm \$dlpath' | |
10357 | ;; | |
10358 | yes,mingw*) | |
10359 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
10360 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"` | |
10361 | if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then | |
10362 | # It is most probably a Windows format PATH printed by | |
10363 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
10364 | # path with ; separators, and with drive letters. We can handle the | |
10365 | # drive letters (cygwin fileutils understands them), so leave them, | |
10366 | # especially as we might pass files found there to a mingw objdump, | |
10367 | # which wouldn't understand a cygwinified path. Ahh. | |
10368 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` | |
10369 | else | |
10370 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` | |
10371 | fi | |
10372 | ;; | |
10373 | yes,pw32*) | |
10374 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' | |
10375 | ;; | |
10376 | *) | |
10377 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' | |
10378 | ;; | |
10379 | esac | |
10380 | dynamic_linker='Win32 ld.exe' | |
10381 | # FIXME: first we should search . and the directory the executable is in | |
10382 | shlibpath_var=PATH | |
10383 | ;; | |
10384 | ||
10385 | darwin* | rhapsody*) | |
10386 | dynamic_linker="$host_os dyld" | |
10387 | version_type=darwin | |
10388 | need_lib_prefix=no | |
10389 | need_version=no | |
10390 | # FIXME: Relying on posixy $() will cause problems for | |
10391 | # cross-compilation, but unfortunately the echo tests do not | |
10392 | # yet detect zsh echo's removal of \ escapes. | |
10393 | 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)' | |
10394 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' | |
10395 | shlibpath_overrides_runpath=yes | |
10396 | shlibpath_var=DYLD_LIBRARY_PATH | |
10397 | ;; | |
10398 | ||
10399 | dgux*) | |
10400 | version_type=linux | |
10401 | need_lib_prefix=no | |
10402 | need_version=no | |
10403 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10404 | soname_spec='${libname}${release}.so$major' | |
10405 | shlibpath_var=LD_LIBRARY_PATH | |
10406 | ;; | |
10407 | ||
10408 | freebsd1*) | |
10409 | dynamic_linker=no | |
10410 | ;; | |
10411 | ||
10412 | freebsd*) | |
10413 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
10414 | version_type=freebsd-$objformat | |
10415 | case $version_type in | |
10416 | freebsd-elf*) | |
10417 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
10418 | need_version=no | |
10419 | need_lib_prefix=no | |
10420 | ;; | |
10421 | freebsd-*) | |
10422 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' | |
10423 | need_version=yes | |
10424 | ;; | |
10425 | esac | |
10426 | shlibpath_var=LD_LIBRARY_PATH | |
10427 | case $host_os in | |
10428 | freebsd2*) | |
10429 | shlibpath_overrides_runpath=yes | |
10430 | ;; | |
10431 | freebsd3.01* | freebsdelf3.01*) | |
10432 | shlibpath_overrides_runpath=yes | |
10433 | hardcode_into_libs=yes | |
10434 | ;; | |
10435 | *) # from 3.2 on | |
10436 | shlibpath_overrides_runpath=no | |
10437 | hardcode_into_libs=yes | |
10438 | ;; | |
10439 | esac | |
10440 | ;; | |
10441 | ||
10442 | gnu*) | |
10443 | version_type=linux | |
10444 | need_lib_prefix=no | |
10445 | need_version=no | |
10446 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' | |
10447 | soname_spec='${libname}${release}.so$major' | |
10448 | shlibpath_var=LD_LIBRARY_PATH | |
10449 | hardcode_into_libs=yes | |
10450 | ;; | |
10451 | ||
10452 | hpux9* | hpux10* | hpux11*) | |
10453 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10454 | # link against other versions. | |
10455 | version_type=sunos | |
10456 | need_lib_prefix=no | |
10457 | need_version=no | |
10458 | if test "$host_cpu" = ia64; then | |
10459 | hardcode_into_libs=yes | |
10460 | dynamic_linker="$host_os dld.so" | |
10461 | shlibpath_var=LD_LIBRARY_PATH | |
10462 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10463 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10464 | soname_spec='${libname}${release}.so$major' | |
10465 | if test "X$HPUX_IA64_MODE" = X32; then | |
10466 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10467 | else | |
10468 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10469 | fi | |
10470 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10471 | else | |
10472 | dynamic_linker="$host_os dld.sl" | |
10473 | shlibpath_var=SHLIB_PATH | |
10474 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10475 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' | |
10476 | soname_spec='${libname}${release}.sl$major' | |
10477 | fi | |
10478 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
10479 | postinstall_cmds='chmod 555 $lib' | |
10480 | ;; | |
10481 | ||
10482 | irix5* | irix6* | nonstopux*) | |
10483 | case $host_os in | |
10484 | nonstopux*) version_type=nonstopux ;; | |
10485 | *) version_type=irix ;; | |
10486 | esac | |
10487 | need_lib_prefix=no | |
10488 | need_version=no | |
10489 | soname_spec='${libname}${release}.so$major' | |
10490 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' | |
10491 | case $host_os in | |
10492 | irix5* | nonstopux*) | |
10493 | libsuff= shlibsuff= | |
10494 | ;; | |
10495 | *) | |
10496 | case $LD in # libtool.m4 will add one of these switches to LD | |
10497 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; | |
10498 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10499 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10500 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10501 | esac | |
10502 | ;; | |
10503 | esac | |
10504 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10505 | shlibpath_overrides_runpath=no | |
10506 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10507 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10508 | ;; | |
10509 | ||
10510 | # No shared lib support for Linux oldld, aout, or coff. | |
10511 | linux*oldld* | linux*aout* | linux*coff*) | |
10512 | dynamic_linker=no | |
10513 | ;; | |
10514 | ||
10515 | # This must be Linux ELF. | |
10516 | linux*) | |
10517 | version_type=linux | |
10518 | need_lib_prefix=no | |
10519 | need_version=no | |
10520 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10521 | soname_spec='${libname}${release}.so$major' | |
10522 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10523 | libsuff= | |
10524 | if test "x$LINUX_64_MODE" = x64; then | |
10525 | # Some platforms are per default 64-bit, so there's no /lib64 | |
10526 | if test -d /lib64; then | |
10527 | libsuff=64 | |
10528 | fi | |
10529 | fi | |
10530 | shlibpath_var=LD_LIBRARY_PATH | |
10531 | shlibpath_overrides_runpath=no | |
10532 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" | |
10533 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
10534 | # This implies no fast_install, which is unacceptable. | |
10535 | # Some rework will be needed to allow for fast_install | |
10536 | # before this can be enabled. | |
10537 | hardcode_into_libs=yes | |
10538 | ||
10539 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10540 | # powerpc, because MkLinux only supported shared libraries with the | |
10541 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10542 | # most powerpc-linux boxes support dynamic linking these days and | |
10543 | # people can always --disable-shared, the test was removed, and we | |
10544 | # assume the GNU/Linux dynamic linker is in use. | |
10545 | dynamic_linker='GNU/Linux ld.so' | |
10546 | ;; | |
10547 | ||
10548 | netbsd*) | |
10549 | version_type=sunos | |
10550 | need_lib_prefix=no | |
10551 | need_version=no | |
10552 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
10553 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
10554 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10555 | dynamic_linker='NetBSD (a.out) ld.so' | |
10556 | else | |
10557 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' | |
10558 | soname_spec='${libname}${release}.so$major' | |
10559 | dynamic_linker='NetBSD ld.elf_so' | |
10560 | fi | |
10561 | shlibpath_var=LD_LIBRARY_PATH | |
10562 | shlibpath_overrides_runpath=yes | |
10563 | hardcode_into_libs=yes | |
10564 | ;; | |
10565 | ||
10566 | newsos6) | |
10567 | version_type=linux | |
10568 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10569 | shlibpath_var=LD_LIBRARY_PATH | |
10570 | shlibpath_overrides_runpath=yes | |
10571 | ;; | |
10572 | ||
10573 | nto-qnx) | |
10574 | version_type=linux | |
10575 | need_lib_prefix=no | |
10576 | need_version=no | |
10577 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10578 | soname_spec='${libname}${release}.so$major' | |
10579 | shlibpath_var=LD_LIBRARY_PATH | |
10580 | shlibpath_overrides_runpath=yes | |
10581 | ;; | |
10582 | ||
10583 | openbsd*) | |
10584 | version_type=sunos | |
10585 | need_lib_prefix=no | |
10586 | need_version=no | |
10587 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
10588 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10589 | shlibpath_var=LD_LIBRARY_PATH | |
10590 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10591 | case $host_os in | |
10592 | openbsd2.[89] | openbsd2.[89].*) | |
10593 | shlibpath_overrides_runpath=no | |
10594 | ;; | |
10595 | *) | |
10596 | shlibpath_overrides_runpath=yes | |
10597 | ;; | |
10598 | esac | |
10599 | else | |
10600 | shlibpath_overrides_runpath=yes | |
10601 | fi | |
10602 | ;; | |
10603 | ||
10604 | os2*) | |
10605 | libname_spec='$name' | |
10606 | need_lib_prefix=no | |
10607 | library_names_spec='$libname.dll $libname.a' | |
10608 | dynamic_linker='OS/2 ld.exe' | |
10609 | shlibpath_var=LIBPATH | |
10610 | ;; | |
10611 | ||
10612 | osf3* | osf4* | osf5*) | |
10613 | version_type=osf | |
10614 | need_lib_prefix=no | |
10615 | need_version=no | |
10616 | soname_spec='${libname}${release}.so' | |
10617 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
10618 | shlibpath_var=LD_LIBRARY_PATH | |
10619 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10620 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10621 | ;; | |
10622 | ||
10623 | sco3.2v5*) | |
10624 | version_type=osf | |
10625 | soname_spec='${libname}${release}.so$major' | |
10626 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10627 | shlibpath_var=LD_LIBRARY_PATH | |
10628 | ;; | |
10629 | ||
10630 | solaris*) | |
10631 | version_type=linux | |
10632 | need_lib_prefix=no | |
10633 | need_version=no | |
10634 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10635 | soname_spec='${libname}${release}.so$major' | |
10636 | shlibpath_var=LD_LIBRARY_PATH | |
10637 | shlibpath_overrides_runpath=yes | |
10638 | hardcode_into_libs=yes | |
10639 | # ldd complains unless libraries are executable | |
10640 | postinstall_cmds='chmod +x $lib' | |
10641 | ;; | |
10642 | ||
10643 | sunos4*) | |
10644 | version_type=sunos | |
10645 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
10646 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10647 | shlibpath_var=LD_LIBRARY_PATH | |
10648 | shlibpath_overrides_runpath=yes | |
10649 | if test "$with_gnu_ld" = yes; then | |
10650 | need_lib_prefix=no | |
10651 | fi | |
10652 | need_version=yes | |
10653 | ;; | |
10654 | ||
10655 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10656 | version_type=linux | |
10657 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10658 | soname_spec='${libname}${release}.so$major' | |
10659 | shlibpath_var=LD_LIBRARY_PATH | |
10660 | case $host_vendor in | |
10661 | sni) | |
10662 | shlibpath_overrides_runpath=no | |
10663 | ;; | |
10664 | motorola) | |
10665 | need_lib_prefix=no | |
10666 | need_version=no | |
10667 | shlibpath_overrides_runpath=no | |
10668 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10669 | ;; | |
10670 | esac | |
10671 | ;; | |
10672 | ||
10673 | sysv4*MP*) | |
10674 | if test -d /usr/nec ;then | |
10675 | version_type=linux | |
10676 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' | |
10677 | soname_spec='$libname.so.$major' | |
10678 | shlibpath_var=LD_LIBRARY_PATH | |
10679 | fi | |
10680 | ;; | |
10681 | ||
10682 | uts4*) | |
10683 | version_type=linux | |
10684 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
10685 | soname_spec='${libname}${release}.so$major' | |
10686 | shlibpath_var=LD_LIBRARY_PATH | |
10687 | ;; | |
10688 | ||
10689 | *) | |
10690 | dynamic_linker=no | |
10691 | ;; | |
10692 | esac | |
10693 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
10694 | echo "${ECHO_T}$dynamic_linker" >&6 | |
10695 | test "$dynamic_linker" = no && can_build_shared=no | |
10696 | ||
10697 | if test "x$enable_dlopen" != xyes; then | |
10698 | enable_dlopen=unknown | |
10699 | enable_dlopen_self=unknown | |
10700 | enable_dlopen_self_static=unknown | |
10701 | else | |
10702 | lt_cv_dlopen=no | |
10703 | lt_cv_dlopen_libs= | |
10704 | ||
10705 | case $host_os in | |
10706 | beos*) | |
10707 | lt_cv_dlopen="load_add_on" | |
10708 | lt_cv_dlopen_libs= | |
10709 | lt_cv_dlopen_self=yes | |
10710 | ;; | |
10711 | ||
10712 | cygwin* | mingw* | pw32*) | |
10713 | lt_cv_dlopen="LoadLibrary" | |
10714 | lt_cv_dlopen_libs= | |
10715 | ;; | |
10716 | ||
10717 | *) | |
10718 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
10719 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
10720 | if test "${ac_cv_func_shl_load+set}" = set; then | |
10721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10722 | else | |
10723 | cat >conftest.$ac_ext <<_ACEOF | |
10724 | #line $LINENO "configure" | |
10725 | #include "confdefs.h" | |
10726 | /* System header to define __stub macros and hopefully few prototypes, | |
10727 | which can conflict with char shl_load (); below. */ | |
10728 | #include <assert.h> | |
10729 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10730 | #ifdef __cplusplus | |
10731 | extern "C" | |
10732 | #endif | |
10733 | /* We use char because int might match the return type of a gcc2 | |
10734 | builtin and then its argument prototype would still apply. */ | |
10735 | char shl_load (); | |
10736 | char (*f) (); | |
10737 | ||
10738 | #ifdef F77_DUMMY_MAIN | |
10739 | # ifdef __cplusplus | |
10740 | extern "C" | |
10741 | # endif | |
10742 | int F77_DUMMY_MAIN() { return 1; } | |
10743 | #endif | |
10744 | int | |
10745 | main () | |
10746 | { | |
10747 | /* The GNU C library defines this for functions which it implements | |
10748 | to always fail with ENOSYS. Some functions are actually named | |
10749 | something starting with __ and the normal name is an alias. */ | |
10750 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
10751 | choke me | |
10752 | #else | |
10753 | f = shl_load; | |
10754 | #endif | |
10755 | ||
10756 | ; | |
10757 | return 0; | |
10758 | } | |
10759 | _ACEOF | |
10760 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10761 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10762 | (eval $ac_link) 2>&5 | |
10763 | ac_status=$? | |
10764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10765 | (exit $ac_status); } && | |
10766 | { ac_try='test -s conftest$ac_exeext' | |
10767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10768 | (eval $ac_try) 2>&5 | |
10769 | ac_status=$? | |
10770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10771 | (exit $ac_status); }; }; then | |
10772 | ac_cv_func_shl_load=yes | |
10773 | else | |
10774 | echo "$as_me: failed program was:" >&5 | |
10775 | cat conftest.$ac_ext >&5 | |
10776 | ac_cv_func_shl_load=no | |
10777 | fi | |
10778 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10779 | fi | |
10780 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
10781 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
10782 | if test $ac_cv_func_shl_load = yes; then | |
10783 | lt_cv_dlopen="shl_load" | |
10784 | else | |
10785 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
10786 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
10787 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
10788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10789 | else | |
10790 | ac_check_lib_save_LIBS=$LIBS | |
10791 | LIBS="-ldld $LIBS" | |
10792 | cat >conftest.$ac_ext <<_ACEOF | |
10793 | #line $LINENO "configure" | |
10794 | #include "confdefs.h" | |
10795 | ||
10796 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10797 | #ifdef __cplusplus | |
10798 | extern "C" | |
10799 | #endif | |
10800 | /* We use char because int might match the return type of a gcc2 | |
10801 | builtin and then its argument prototype would still apply. */ | |
10802 | char shl_load (); | |
10803 | #ifdef F77_DUMMY_MAIN | |
10804 | # ifdef __cplusplus | |
10805 | extern "C" | |
10806 | # endif | |
10807 | int F77_DUMMY_MAIN() { return 1; } | |
10808 | #endif | |
10809 | int | |
10810 | main () | |
10811 | { | |
10812 | shl_load (); | |
10813 | ; | |
10814 | return 0; | |
10815 | } | |
10816 | _ACEOF | |
10817 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10818 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10819 | (eval $ac_link) 2>&5 | |
10820 | ac_status=$? | |
10821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10822 | (exit $ac_status); } && | |
10823 | { ac_try='test -s conftest$ac_exeext' | |
10824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10825 | (eval $ac_try) 2>&5 | |
10826 | ac_status=$? | |
10827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10828 | (exit $ac_status); }; }; then | |
10829 | ac_cv_lib_dld_shl_load=yes | |
10830 | else | |
10831 | echo "$as_me: failed program was:" >&5 | |
10832 | cat conftest.$ac_ext >&5 | |
10833 | ac_cv_lib_dld_shl_load=no | |
10834 | fi | |
10835 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10836 | LIBS=$ac_check_lib_save_LIBS | |
10837 | fi | |
10838 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
10839 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
10840 | if test $ac_cv_lib_dld_shl_load = yes; then | |
10841 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
10842 | else | |
10843 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
10844 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
10845 | if test "${ac_cv_func_dlopen+set}" = set; then | |
10846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10847 | else | |
10848 | cat >conftest.$ac_ext <<_ACEOF | |
10849 | #line $LINENO "configure" | |
10850 | #include "confdefs.h" | |
10851 | /* System header to define __stub macros and hopefully few prototypes, | |
10852 | which can conflict with char dlopen (); below. */ | |
10853 | #include <assert.h> | |
10854 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10855 | #ifdef __cplusplus | |
10856 | extern "C" | |
10857 | #endif | |
10858 | /* We use char because int might match the return type of a gcc2 | |
10859 | builtin and then its argument prototype would still apply. */ | |
10860 | char dlopen (); | |
10861 | char (*f) (); | |
10862 | ||
10863 | #ifdef F77_DUMMY_MAIN | |
10864 | # ifdef __cplusplus | |
10865 | extern "C" | |
10866 | # endif | |
10867 | int F77_DUMMY_MAIN() { return 1; } | |
10868 | #endif | |
10869 | int | |
10870 | main () | |
10871 | { | |
10872 | /* The GNU C library defines this for functions which it implements | |
10873 | to always fail with ENOSYS. Some functions are actually named | |
10874 | something starting with __ and the normal name is an alias. */ | |
10875 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
10876 | choke me | |
10877 | #else | |
10878 | f = dlopen; | |
10879 | #endif | |
10880 | ||
10881 | ; | |
10882 | return 0; | |
10883 | } | |
10884 | _ACEOF | |
10885 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10886 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10887 | (eval $ac_link) 2>&5 | |
10888 | ac_status=$? | |
10889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10890 | (exit $ac_status); } && | |
10891 | { ac_try='test -s conftest$ac_exeext' | |
10892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10893 | (eval $ac_try) 2>&5 | |
10894 | ac_status=$? | |
10895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10896 | (exit $ac_status); }; }; then | |
10897 | ac_cv_func_dlopen=yes | |
10898 | else | |
10899 | echo "$as_me: failed program was:" >&5 | |
10900 | cat conftest.$ac_ext >&5 | |
10901 | ac_cv_func_dlopen=no | |
10902 | fi | |
10903 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10904 | fi | |
10905 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
10906 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
10907 | if test $ac_cv_func_dlopen = yes; then | |
10908 | lt_cv_dlopen="dlopen" | |
10909 | else | |
10910 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
10911 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
10912 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
10913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10914 | else | |
10915 | ac_check_lib_save_LIBS=$LIBS | |
10916 | LIBS="-ldl $LIBS" | |
10917 | cat >conftest.$ac_ext <<_ACEOF | |
10918 | #line $LINENO "configure" | |
10919 | #include "confdefs.h" | |
10920 | ||
10921 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10922 | #ifdef __cplusplus | |
10923 | extern "C" | |
10924 | #endif | |
10925 | /* We use char because int might match the return type of a gcc2 | |
10926 | builtin and then its argument prototype would still apply. */ | |
10927 | char dlopen (); | |
10928 | #ifdef F77_DUMMY_MAIN | |
10929 | # ifdef __cplusplus | |
10930 | extern "C" | |
10931 | # endif | |
10932 | int F77_DUMMY_MAIN() { return 1; } | |
10933 | #endif | |
10934 | int | |
10935 | main () | |
10936 | { | |
10937 | dlopen (); | |
10938 | ; | |
10939 | return 0; | |
10940 | } | |
10941 | _ACEOF | |
10942 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10943 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10944 | (eval $ac_link) 2>&5 | |
10945 | ac_status=$? | |
10946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10947 | (exit $ac_status); } && | |
10948 | { ac_try='test -s conftest$ac_exeext' | |
10949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10950 | (eval $ac_try) 2>&5 | |
10951 | ac_status=$? | |
10952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10953 | (exit $ac_status); }; }; then | |
10954 | ac_cv_lib_dl_dlopen=yes | |
10955 | else | |
10956 | echo "$as_me: failed program was:" >&5 | |
10957 | cat conftest.$ac_ext >&5 | |
10958 | ac_cv_lib_dl_dlopen=no | |
10959 | fi | |
10960 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10961 | LIBS=$ac_check_lib_save_LIBS | |
10962 | fi | |
10963 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
10964 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
10965 | if test $ac_cv_lib_dl_dlopen = yes; then | |
10966 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10967 | else | |
10968 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
10969 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
10970 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
10971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10972 | else | |
10973 | ac_check_lib_save_LIBS=$LIBS | |
10974 | LIBS="-lsvld $LIBS" | |
10975 | cat >conftest.$ac_ext <<_ACEOF | |
10976 | #line $LINENO "configure" | |
10977 | #include "confdefs.h" | |
10978 | ||
10979 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10980 | #ifdef __cplusplus | |
10981 | extern "C" | |
10982 | #endif | |
10983 | /* We use char because int might match the return type of a gcc2 | |
10984 | builtin and then its argument prototype would still apply. */ | |
10985 | char dlopen (); | |
10986 | #ifdef F77_DUMMY_MAIN | |
10987 | # ifdef __cplusplus | |
10988 | extern "C" | |
10989 | # endif | |
10990 | int F77_DUMMY_MAIN() { return 1; } | |
10991 | #endif | |
10992 | int | |
10993 | main () | |
10994 | { | |
10995 | dlopen (); | |
10996 | ; | |
10997 | return 0; | |
10998 | } | |
10999 | _ACEOF | |
11000 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11001 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11002 | (eval $ac_link) 2>&5 | |
11003 | ac_status=$? | |
11004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11005 | (exit $ac_status); } && | |
11006 | { ac_try='test -s conftest$ac_exeext' | |
11007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11008 | (eval $ac_try) 2>&5 | |
11009 | ac_status=$? | |
11010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11011 | (exit $ac_status); }; }; then | |
11012 | ac_cv_lib_svld_dlopen=yes | |
11013 | else | |
11014 | echo "$as_me: failed program was:" >&5 | |
11015 | cat conftest.$ac_ext >&5 | |
11016 | ac_cv_lib_svld_dlopen=no | |
11017 | fi | |
11018 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11019 | LIBS=$ac_check_lib_save_LIBS | |
11020 | fi | |
11021 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
11022 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
11023 | if test $ac_cv_lib_svld_dlopen = yes; then | |
11024 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
11025 | else | |
11026 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
11027 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
11028 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
11029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11030 | else | |
11031 | ac_check_lib_save_LIBS=$LIBS | |
11032 | LIBS="-ldld $LIBS" | |
11033 | cat >conftest.$ac_ext <<_ACEOF | |
11034 | #line $LINENO "configure" | |
11035 | #include "confdefs.h" | |
11036 | ||
11037 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11038 | #ifdef __cplusplus | |
11039 | extern "C" | |
11040 | #endif | |
11041 | /* We use char because int might match the return type of a gcc2 | |
11042 | builtin and then its argument prototype would still apply. */ | |
11043 | char dld_link (); | |
11044 | #ifdef F77_DUMMY_MAIN | |
11045 | # ifdef __cplusplus | |
11046 | extern "C" | |
11047 | # endif | |
11048 | int F77_DUMMY_MAIN() { return 1; } | |
11049 | #endif | |
11050 | int | |
11051 | main () | |
11052 | { | |
11053 | dld_link (); | |
11054 | ; | |
11055 | return 0; | |
11056 | } | |
11057 | _ACEOF | |
11058 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11059 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11060 | (eval $ac_link) 2>&5 | |
11061 | ac_status=$? | |
11062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11063 | (exit $ac_status); } && | |
11064 | { ac_try='test -s conftest$ac_exeext' | |
11065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11066 | (eval $ac_try) 2>&5 | |
11067 | ac_status=$? | |
11068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11069 | (exit $ac_status); }; }; then | |
11070 | ac_cv_lib_dld_dld_link=yes | |
11071 | else | |
11072 | echo "$as_me: failed program was:" >&5 | |
11073 | cat conftest.$ac_ext >&5 | |
11074 | ac_cv_lib_dld_dld_link=no | |
11075 | fi | |
11076 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11077 | LIBS=$ac_check_lib_save_LIBS | |
11078 | fi | |
11079 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
11080 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
11081 | if test $ac_cv_lib_dld_dld_link = yes; then | |
11082 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
11083 | fi | |
11084 | ||
11085 | ||
11086 | fi | |
11087 | ||
11088 | ||
11089 | fi | |
11090 | ||
11091 | ||
11092 | fi | |
11093 | ||
11094 | ||
11095 | fi | |
11096 | ||
11097 | ||
11098 | fi | |
11099 | ||
11100 | ;; | |
11101 | esac | |
11102 | ||
11103 | if test "x$lt_cv_dlopen" != xno; then | |
11104 | enable_dlopen=yes | |
11105 | else | |
11106 | enable_dlopen=no | |
11107 | fi | |
11108 | ||
11109 | case $lt_cv_dlopen in | |
11110 | dlopen) | |
11111 | save_CPPFLAGS="$CPPFLAGS" | |
11112 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11113 | ||
11114 | save_LDFLAGS="$LDFLAGS" | |
11115 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11116 | ||
11117 | save_LIBS="$LIBS" | |
11118 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11119 | ||
11120 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
11121 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
11122 | if test "${lt_cv_dlopen_self+set}" = set; then | |
11123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11124 | else | |
11125 | if test "$cross_compiling" = yes; then : | |
11126 | lt_cv_dlopen_self=cross | |
11127 | else | |
11128 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11129 | lt_status=$lt_dlunknown | |
11130 | cat > conftest.$ac_ext <<EOF | |
11131 | #line 11131 "configure" | |
11132 | #include "confdefs.h" | |
11133 | ||
11134 | #if HAVE_DLFCN_H | |
11135 | #include <dlfcn.h> | |
11136 | #endif | |
11137 | ||
11138 | #include <stdio.h> | |
11139 | ||
11140 | #ifdef RTLD_GLOBAL | |
11141 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11142 | #else | |
11143 | # ifdef DL_GLOBAL | |
11144 | # define LT_DLGLOBAL DL_GLOBAL | |
11145 | # else | |
11146 | # define LT_DLGLOBAL 0 | |
11147 | # endif | |
11148 | #endif | |
11149 | ||
11150 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11151 | find out it does not work in some platform. */ | |
11152 | #ifndef LT_DLLAZY_OR_NOW | |
11153 | # ifdef RTLD_LAZY | |
11154 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11155 | # else | |
11156 | # ifdef DL_LAZY | |
11157 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11158 | # else | |
11159 | # ifdef RTLD_NOW | |
11160 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11161 | # else | |
11162 | # ifdef DL_NOW | |
11163 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11164 | # else | |
11165 | # define LT_DLLAZY_OR_NOW 0 | |
11166 | # endif | |
11167 | # endif | |
11168 | # endif | |
11169 | # endif | |
11170 | #endif | |
11171 | ||
11172 | #ifdef __cplusplus | |
11173 | extern "C" void exit (int); | |
11174 | #endif | |
11175 | ||
11176 | void fnord() { int i=42;} | |
11177 | int main () | |
11178 | { | |
11179 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11180 | int status = $lt_dlunknown; | |
11181 | ||
11182 | if (self) | |
11183 | { | |
11184 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11185 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11186 | /* dlclose (self); */ | |
11187 | } | |
11188 | ||
11189 | exit (status); | |
11190 | } | |
11191 | EOF | |
11192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11193 | (eval $ac_link) 2>&5 | |
11194 | ac_status=$? | |
11195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11196 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11197 | (./conftest; exit; ) 2>/dev/null | |
11198 | lt_status=$? | |
11199 | case x$lt_status in | |
11200 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11201 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11202 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
11203 | esac | |
11204 | else : | |
11205 | # compilation failed | |
11206 | lt_cv_dlopen_self=no | |
11207 | fi | |
11208 | fi | |
11209 | rm -fr conftest* | |
11210 | ||
11211 | ||
11212 | fi | |
11213 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
11214 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
11215 | ||
11216 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11217 | LDFLAGS="$LDFLAGS $link_static_flag" | |
11218 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
11219 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
11220 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
11221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11222 | else | |
11223 | if test "$cross_compiling" = yes; then : | |
11224 | lt_cv_dlopen_self_static=cross | |
11225 | else | |
11226 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11227 | lt_status=$lt_dlunknown | |
11228 | cat > conftest.$ac_ext <<EOF | |
11229 | #line 11229 "configure" | |
11230 | #include "confdefs.h" | |
11231 | ||
11232 | #if HAVE_DLFCN_H | |
11233 | #include <dlfcn.h> | |
11234 | #endif | |
11235 | ||
11236 | #include <stdio.h> | |
11237 | ||
11238 | #ifdef RTLD_GLOBAL | |
11239 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11240 | #else | |
11241 | # ifdef DL_GLOBAL | |
11242 | # define LT_DLGLOBAL DL_GLOBAL | |
11243 | # else | |
11244 | # define LT_DLGLOBAL 0 | |
11245 | # endif | |
11246 | #endif | |
11247 | ||
11248 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11249 | find out it does not work in some platform. */ | |
11250 | #ifndef LT_DLLAZY_OR_NOW | |
11251 | # ifdef RTLD_LAZY | |
11252 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11253 | # else | |
11254 | # ifdef DL_LAZY | |
11255 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11256 | # else | |
11257 | # ifdef RTLD_NOW | |
11258 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11259 | # else | |
11260 | # ifdef DL_NOW | |
11261 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11262 | # else | |
11263 | # define LT_DLLAZY_OR_NOW 0 | |
11264 | # endif | |
11265 | # endif | |
11266 | # endif | |
11267 | # endif | |
11268 | #endif | |
11269 | ||
11270 | #ifdef __cplusplus | |
11271 | extern "C" void exit (int); | |
11272 | #endif | |
11273 | ||
11274 | void fnord() { int i=42;} | |
11275 | int main () | |
11276 | { | |
11277 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11278 | int status = $lt_dlunknown; | |
11279 | ||
11280 | if (self) | |
11281 | { | |
11282 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11283 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11284 | /* dlclose (self); */ | |
11285 | } | |
11286 | ||
11287 | exit (status); | |
11288 | } | |
11289 | EOF | |
11290 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11291 | (eval $ac_link) 2>&5 | |
11292 | ac_status=$? | |
11293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11294 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11295 | (./conftest; exit; ) 2>/dev/null | |
11296 | lt_status=$? | |
11297 | case x$lt_status in | |
11298 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11299 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11300 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
11301 | esac | |
11302 | else : | |
11303 | # compilation failed | |
11304 | lt_cv_dlopen_self_static=no | |
11305 | fi | |
11306 | fi | |
11307 | rm -fr conftest* | |
11308 | ||
11309 | ||
11310 | fi | |
11311 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
11312 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
11313 | fi | |
11314 | ||
11315 | CPPFLAGS="$save_CPPFLAGS" | |
11316 | LDFLAGS="$save_LDFLAGS" | |
11317 | LIBS="$save_LIBS" | |
11318 | ;; | |
11319 | esac | |
11320 | ||
11321 | case $lt_cv_dlopen_self in | |
11322 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11323 | *) enable_dlopen_self=unknown ;; | |
11324 | esac | |
11325 | ||
11326 | case $lt_cv_dlopen_self_static in | |
11327 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11328 | *) enable_dlopen_self_static=unknown ;; | |
11329 | esac | |
11330 | fi | |
11331 | ||
11332 | ||
11333 | # The else clause should only fire when bootstrapping the | |
11334 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
11335 | # with your package, and you will get complaints that there are | |
11336 | # no rules to generate ltmain.sh. | |
11337 | if test -f "$ltmain"; then | |
11338 | # Now quote all the things that may contain metacharacters while being | |
11339 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
11340 | # variables and quote the copies for generation of the libtool script. | |
11341 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \ | |
11342 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
11343 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
11344 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
11345 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
11346 | lt_cv_sys_global_symbol_to_c_name_address \ | |
11347 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
11348 | old_postinstall_cmds old_postuninstall_cmds \ | |
11349 | compiler_CXX \ | |
11350 | CC_CXX \ | |
11351 | LD_CXX \ | |
11352 | lt_prog_compiler_wl_CXX \ | |
11353 | lt_prog_compiler_pic_CXX \ | |
11354 | lt_prog_compiler_static_CXX \ | |
11355 | lt_prog_compiler_no_builtin_flag_CXX \ | |
11356 | export_dynamic_flag_spec_CXX \ | |
11357 | thread_safe_flag_spec_CXX \ | |
11358 | whole_archive_flag_spec_CXX \ | |
11359 | old_archive_cmds_CXX \ | |
11360 | old_archive_from_new_cmds_CXX \ | |
11361 | predep_objects_CXX \ | |
11362 | postdep_objects_CXX \ | |
11363 | predeps_CXX \ | |
11364 | postdeps_CXX \ | |
11365 | compiler_lib_search_path_CXX \ | |
11366 | archive_cmds_CXX \ | |
11367 | archive_expsym_cmds_CXX \ | |
11368 | postinstall_cmds_CXX \ | |
11369 | postuninstall_cmds_CXX \ | |
11370 | old_archive_from_expsyms_cmds_CXX \ | |
11371 | allow_undefined_flag_CXX \ | |
11372 | no_undefined_flag_CXX \ | |
11373 | export_symbols_cmds_CXX \ | |
11374 | hardcode_libdir_flag_spec_CXX \ | |
11375 | hardcode_libdir_separator_CXX \ | |
11376 | lt_cv_prog_compiler_c_o_CXX \ | |
11377 | exclude_expsyms_CXX \ | |
11378 | include_expsyms_CXX; do | |
11379 | ||
11380 | case $var in | |
11381 | old_archive_cmds_CXX | \ | |
11382 | old_archive_from_new_cmds_CXX | \ | |
11383 | archive_cmds_CXX | \ | |
11384 | archive_expsym_cmds_CXX | \ | |
11385 | old_archive_from_expsyms_cmds_CXX | \ | |
11386 | export_symbols_cmds_CXX | \ | |
11387 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
11388 | postinstall_cmds | postuninstall_cmds | \ | |
11389 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
11390 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
11391 | # Double-quote double-evaled strings. | |
11392 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
11393 | ;; | |
11394 | *) | |
11395 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
11396 | ;; | |
11397 | esac | |
11398 | done | |
11399 | ||
11400 | case $lt_echo in | |
11401 | *'\$0 --fallback-echo"') | |
11402 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
11403 | ;; | |
11404 | esac | |
11405 | ||
11406 | cfgfile="$ofile" | |
11407 | ||
11408 | cat <<__EOF__ >> "$cfgfile" | |
11409 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
11410 | ||
11411 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
11412 | ||
11413 | # Shell to use when invoking shell scripts. | |
11414 | SHELL=$lt_SHELL | |
11415 | ||
11416 | # Whether or not to build shared libraries. | |
11417 | build_libtool_libs=$enable_shared | |
11418 | ||
11419 | # Whether or not to build static libraries. | |
11420 | build_old_libs=$enable_static | |
11421 | ||
11422 | # Whether or not to add -lc for building shared libraries. | |
11423 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
11424 | ||
11425 | # Whether or not to optimize for fast installation. | |
11426 | fast_install=$enable_fast_install | |
11427 | ||
11428 | # The host system. | |
11429 | host_alias=$host_alias | |
11430 | host=$host | |
11431 | ||
11432 | # An echo program that does not interpret backslashes. | |
11433 | echo=$lt_echo | |
11434 | ||
11435 | # The archiver. | |
11436 | AR=$lt_AR | |
11437 | AR_FLAGS=$lt_AR_FLAGS | |
11438 | ||
11439 | # A C compiler. | |
11440 | LTCC=$lt_LTCC | |
11441 | ||
11442 | # A language-specific compiler. | |
11443 | CC=$lt_compiler_CXX | |
11444 | ||
11445 | # Is the compiler the GNU C compiler? | |
11446 | with_gcc=$GCC_CXX | |
11447 | ||
11448 | # The linker used to build libraries. | |
11449 | LD=$lt_LD_CXX | |
11450 | ||
11451 | # Whether we need hard or soft links. | |
11452 | LN_S=$lt_LN_S | |
11453 | ||
11454 | # A BSD-compatible nm program. | |
11455 | NM=$lt_NM | |
11456 | ||
11457 | # A sed program that does not truncate output. | |
11458 | SED=$lt_SED | |
11459 | ||
11460 | # A symbol stripping program | |
11461 | STRIP=$STRIP | |
11462 | ||
11463 | # Used to examine libraries when file_magic_cmd begins "file" | |
11464 | MAGIC_CMD=$MAGIC_CMD | |
11465 | ||
11466 | # Used on cygwin: DLL creation program. | |
11467 | DLLTOOL="$DLLTOOL" | |
11468 | ||
11469 | # Used on cygwin: object dumper. | |
11470 | OBJDUMP="$OBJDUMP" | |
11471 | ||
11472 | # Used on cygwin: assembler. | |
11473 | AS="$AS" | |
11474 | ||
11475 | # The name of the directory that contains temporary libtool files. | |
11476 | objdir=$objdir | |
11477 | ||
11478 | # How to create reloadable object files. | |
11479 | reload_flag=$lt_reload_flag | |
11480 | reload_cmds=$lt_reload_cmds | |
11481 | ||
11482 | # How to pass a linker flag through the compiler. | |
11483 | wl=$lt_lt_prog_compiler_wl_CXX | |
11484 | ||
11485 | # Object file suffix (normally "o"). | |
11486 | objext="$ac_objext" | |
11487 | ||
11488 | # Old archive suffix (normally "a"). | |
11489 | libext="$libext" | |
11490 | ||
11491 | # Executable file suffix (normally ""). | |
11492 | exeext="$exeext" | |
11493 | ||
11494 | # Additional compiler flags for building library objects. | |
11495 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
11496 | pic_mode=$pic_mode | |
11497 | ||
11498 | # What is the maximum length of a command? | |
11499 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
11500 | ||
11501 | # Does compiler simultaneously support -c and -o options? | |
11502 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
11503 | ||
11504 | # Must we lock files when doing compilation ? | |
11505 | need_locks=$lt_need_locks | |
11506 | ||
11507 | # Do we need the lib prefix for modules? | |
11508 | need_lib_prefix=$need_lib_prefix | |
11509 | ||
11510 | # Do we need a version for libraries? | |
11511 | need_version=$need_version | |
11512 | ||
11513 | # Whether dlopen is supported. | |
11514 | dlopen_support=$enable_dlopen | |
11515 | ||
11516 | # Whether dlopen of programs is supported. | |
11517 | dlopen_self=$enable_dlopen_self | |
11518 | ||
11519 | # Whether dlopen of statically linked programs is supported. | |
11520 | dlopen_self_static=$enable_dlopen_self_static | |
11521 | ||
11522 | # Compiler flag to prevent dynamic linking. | |
11523 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
11524 | ||
11525 | # Compiler flag to turn off builtin functions. | |
11526 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
11527 | ||
11528 | # Compiler flag to allow reflexive dlopens. | |
11529 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
11530 | ||
11531 | # Compiler flag to generate shared objects directly from archives. | |
11532 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
11533 | ||
11534 | # Compiler flag to generate thread-safe objects. | |
11535 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | |
11536 | ||
11537 | # Library versioning type. | |
11538 | version_type=$version_type | |
11539 | ||
11540 | # Format of library name prefix. | |
11541 | libname_spec=$lt_libname_spec | |
11542 | ||
11543 | # List of archive names. First name is the real one, the rest are links. | |
11544 | # The last name is the one that the linker finds with -lNAME. | |
11545 | library_names_spec=$lt_library_names_spec | |
11546 | ||
11547 | # The coded name of the library, if different from the real name. | |
11548 | soname_spec=$lt_soname_spec | |
11549 | ||
11550 | # Commands used to build and install an old-style archive. | |
11551 | RANLIB=$lt_RANLIB | |
11552 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
11553 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
11554 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
11555 | ||
11556 | # Create an old-style archive from a shared archive. | |
11557 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
11558 | ||
11559 | # Create a temporary old-style archive to link instead of a shared archive. | |
11560 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
11561 | ||
11562 | # Commands used to build and install a shared archive. | |
11563 | archive_cmds=$lt_archive_cmds_CXX | |
11564 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
11565 | postinstall_cmds=$lt_postinstall_cmds | |
11566 | postuninstall_cmds=$lt_postuninstall_cmds | |
11567 | ||
11568 | # Commands to strip libraries. | |
11569 | old_striplib=$lt_old_striplib | |
11570 | striplib=$lt_striplib | |
11571 | ||
11572 | # Dependencies to place before the objects being linked to create a | |
11573 | # shared library. | |
11574 | predep_objects=$lt_predep_objects_CXX | |
11575 | ||
11576 | # Dependencies to place after the objects being linked to create a | |
11577 | # shared library. | |
11578 | postdep_objects=$lt_postdep_objects_CXX | |
11579 | ||
11580 | # Dependencies to place before the objects being linked to create a | |
11581 | # shared library. | |
11582 | predeps=$lt_predeps_CXX | |
11583 | ||
11584 | # Dependencies to place after the objects being linked to create a | |
11585 | # shared library. | |
11586 | postdeps=$lt_postdeps_CXX | |
11587 | ||
11588 | # The library search path used internally by the compiler when linking | |
11589 | # a shared library. | |
11590 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
11591 | ||
11592 | # Method to check whether dependent libraries are shared objects. | |
11593 | deplibs_check_method=$lt_deplibs_check_method | |
11594 | ||
11595 | # Command to use when deplibs_check_method == file_magic. | |
11596 | file_magic_cmd=$lt_file_magic_cmd | |
11597 | ||
11598 | # Flag that allows shared libraries with undefined symbols to be built. | |
11599 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
11600 | ||
11601 | # Flag that forces no undefined symbols. | |
11602 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
11603 | ||
11604 | # Commands used to finish a libtool library installation in a directory. | |
11605 | finish_cmds=$lt_finish_cmds | |
11606 | ||
11607 | # Same as above, but a single script fragment to be evaled but not shown. | |
11608 | finish_eval=$lt_finish_eval | |
11609 | ||
11610 | # Take the output of nm and produce a listing of raw symbols and C names. | |
11611 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
11612 | ||
11613 | # Transform the output of nm in a proper C declaration | |
11614 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
11615 | ||
11616 | # Transform the output of nm in a C name address pair | |
11617 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
11618 | ||
11619 | # This is the shared library runtime path variable. | |
11620 | runpath_var=$runpath_var | |
11621 | ||
11622 | # This is the shared library path variable. | |
11623 | shlibpath_var=$shlibpath_var | |
11624 | ||
11625 | # Is shlibpath searched before the hard-coded library search path? | |
11626 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
11627 | ||
11628 | # How to hardcode a shared library path into an executable. | |
11629 | hardcode_action=$hardcode_action_CXX | |
11630 | ||
11631 | # Whether we should hardcode library paths into libraries. | |
11632 | hardcode_into_libs=$hardcode_into_libs | |
11633 | ||
11634 | # Flag to hardcode \$libdir into a binary during linking. | |
11635 | # This must work even if \$libdir does not exist. | |
11636 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
11637 | ||
11638 | # Whether we need a single -rpath flag with a separated argument. | |
11639 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
11640 | ||
11641 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | |
11642 | # resulting binary. | |
11643 | hardcode_direct=$hardcode_direct_CXX | |
11644 | ||
11645 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
11646 | # resulting binary. | |
11647 | hardcode_minus_L=$hardcode_minus_L_CXX | |
11648 | ||
11649 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
11650 | # the resulting binary. | |
11651 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
11652 | ||
11653 | # Variables whose values should be saved in libtool wrapper scripts and | |
11654 | # restored at relink time. | |
11655 | variables_saved_for_relink="$variables_saved_for_relink" | |
11656 | ||
11657 | # Whether libtool must link a program against all its dependency libraries. | |
11658 | link_all_deplibs=$link_all_deplibs_CXX | |
11659 | ||
11660 | # Compile-time system search path for libraries | |
11661 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
11662 | ||
11663 | # Run-time system search path for libraries | |
11664 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
11665 | ||
11666 | # Fix the shell variable \$srcfile for the compiler. | |
11667 | fix_srcfile_path="$fix_srcfile_path_CXX" | |
11668 | ||
11669 | # Set to yes if exported symbols are required. | |
11670 | always_export_symbols=$always_export_symbols_CXX | |
11671 | ||
11672 | # The commands to list exported symbols. | |
11673 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
11674 | ||
11675 | # The commands to extract the exported symbol list from a shared archive. | |
11676 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
11677 | ||
11678 | # Symbols that should not be listed in the preloaded symbols. | |
11679 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
11680 | ||
11681 | # Symbols that must always be exported. | |
11682 | include_expsyms=$lt_include_expsyms_CXX | |
11683 | ||
11684 | # ### END LIBTOOL TAG CONFIG: $tagname | |
11685 | ||
11686 | __EOF__ | |
11687 | ||
11688 | ||
11689 | else | |
11690 | # If there is no Makefile yet, we rely on a make rule to execute | |
11691 | # `config.status --recheck' to rerun these tests and create the | |
11692 | # libtool script then. | |
11693 | test -f Makefile && make "$ltmain" | |
11694 | fi | |
11695 | ||
11696 | ||
11697 | ac_ext=c | |
11698 | ac_cpp='$CPP $CPPFLAGS' | |
11699 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11700 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11701 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11702 | ||
11703 | CC="$lt_save_CC" | |
11704 | ||
11705 | ;; | |
11706 | ||
11707 | GCJ) | |
11708 | ||
11709 | ||
11710 | ||
11711 | # Source file extension for C test sources. | |
11712 | ac_ext=java | |
11713 | ||
11714 | # Object file extension for compiled C test sources. | |
11715 | objext=o | |
11716 | objext_GCJ=$objext | |
11717 | ||
11718 | # Code to be used in simple compile tests | |
11719 | lt_simple_compile_test_code="class foo {}" | |
11720 | ||
11721 | # Code to be used in simple link tests | |
11722 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }' | |
11723 | ||
11724 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
11725 | ||
11726 | # If no C compiler was specified, use CC. | |
11727 | LTCC=${LTCC-"$CC"} | |
11728 | ||
11729 | # Allow CC to be a program name with arguments. | |
11730 | set dummy $CC | |
11731 | compiler="$2" | |
11732 | ||
11733 | ||
11734 | # Allow CC to be a program name with arguments. | |
11735 | lt_save_CC="$CC" | |
11736 | CC=${GCJ-"gcj"} | |
11737 | set dummy $CC | |
11738 | compiler="$2" | |
11739 | compiler_GCJ=$CC | |
11740 | ||
11741 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | |
11742 | archive_cmds_need_lc_GCJ=no | |
11743 | ||
11744 | ||
11745 | lt_prog_compiler_no_builtin_flag_GCJ= | |
11746 | ||
11747 | if test "$GCC" = yes; then | |
11748 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | |
11749 | ||
11750 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
11751 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
11752 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
11753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11754 | else | |
11755 | lt_cv_prog_compiler_rtti_exceptions=no | |
11756 | ac_outfile=conftest.$ac_objext | |
11757 | save_CFLAGS="$CFLAGS" | |
11758 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" | |
11759 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11760 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
11761 | # The compiler can only warn and ignore the option if not recognized | |
11762 | # So say no if there are warnings | |
11763 | if test -s conftest.err; then | |
11764 | # Append any errors to the config.log. | |
11765 | cat conftest.err 1>&5 | |
11766 | else | |
11767 | lt_cv_prog_compiler_rtti_exceptions=yes | |
11768 | fi | |
11769 | fi | |
11770 | $rm conftest* | |
11771 | CFLAGS="$save_CFLAGS" | |
11772 | ||
11773 | fi | |
11774 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
11775 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
11776 | ||
11777 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
11778 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | |
11779 | else | |
11780 | : | |
11781 | fi | |
11782 | ||
11783 | fi | |
11784 | ||
11785 | lt_prog_compiler_wl_GCJ= | |
11786 | lt_prog_compiler_pic_GCJ= | |
11787 | lt_prog_compiler_static_GCJ= | |
11788 | ||
11789 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
11790 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
11791 | ||
11792 | if test "$GCC" = yes; then | |
11793 | lt_prog_compiler_wl_GCJ='-Wl,' | |
11794 | lt_prog_compiler_static_GCJ='-static' | |
11795 | ||
11796 | case $host_os in | |
11797 | aix*) | |
11798 | # All AIX code is PIC. | |
11799 | if test "$host_cpu" = ia64; then | |
11800 | # AIX 5 now supports IA64 processor | |
11801 | lt_prog_compiler_static_GCJ='-Bstatic' | |
11802 | fi | |
11803 | ;; | |
11804 | ||
11805 | amigaos*) | |
11806 | # FIXME: we need at least 68020 code to build shared libraries, but | |
11807 | # adding the `-m68020' flag to GCC prevents building anything better, | |
11808 | # like `-m68040'. | |
11809 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | |
11810 | ;; | |
11811 | ||
11812 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
11813 | # PIC is the default for these OSes. | |
11814 | ;; | |
11815 | ||
11816 | cygwin* | mingw* | pw32* | os2*) | |
11817 | # This hack is so that the source file can tell whether it is being | |
11818 | # built for inclusion in a dll (and should export symbols for example). | |
11819 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
11820 | ;; | |
11821 | ||
11822 | darwin* | rhapsody*) | |
11823 | # PIC is the default on this platform | |
11824 | # Common symbols not allowed in MH_DYLIB files | |
11825 | lt_prog_compiler_pic_GCJ='-fno-common' | |
11826 | ;; | |
11827 | ||
11828 | msdosdjgpp*) | |
11829 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
11830 | # on systems that don't support them. | |
11831 | lt_prog_compiler_can_build_shared_GCJ=no | |
11832 | enable_shared=no | |
11833 | ;; | |
11834 | ||
11835 | sysv4*MP*) | |
11836 | if test -d /usr/nec; then | |
11837 | lt_prog_compiler_pic_GCJ=-Kconform_pic | |
11838 | fi | |
11839 | ;; | |
11840 | ||
11841 | hpux*) | |
11842 | # PIC is the default for IA64 HP-UX, but not for PA HP-UX. | |
11843 | if test "$host_cpu" != ia64; then | |
11844 | lt_prog_compiler_pic_GCJ='-fPIC' | |
11845 | fi | |
11846 | ;; | |
11847 | ||
11848 | *) | |
11849 | lt_prog_compiler_pic_GCJ='-fPIC' | |
11850 | ;; | |
11851 | esac | |
11852 | else | |
11853 | # PORTME Check for flag to pass linker flags through the system compiler. | |
11854 | case $host_os in | |
11855 | aix*) | |
11856 | lt_prog_compiler_wl_GCJ='-Wl,' | |
11857 | if test "$host_cpu" = ia64; then | |
11858 | # AIX 5 now supports IA64 processor | |
11859 | lt_prog_compiler_static_GCJ='-Bstatic' | |
11860 | else | |
11861 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | |
11862 | fi | |
11863 | ;; | |
11864 | ||
11865 | cygwin* | mingw* | pw32* | os2*) | |
11866 | # This hack is so that the source file can tell whether it is being | |
11867 | # built for inclusion in a dll (and should export symbols for example). | |
11868 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
11869 | ;; | |
11870 | ||
11871 | hpux9* | hpux10* | hpux11*) | |
11872 | lt_prog_compiler_wl_GCJ='-Wl,' | |
11873 | if test "$host_cpu" != ia64; then | |
11874 | lt_prog_compiler_pic_GCJ='+Z' | |
11875 | fi | |
11876 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
11877 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | |
11878 | ;; | |
11879 | ||
11880 | irix5* | irix6* | nonstopux*) | |
11881 | lt_prog_compiler_wl_GCJ='-Wl,' | |
11882 | # PIC (with -KPIC) is the default. | |
11883 | lt_prog_compiler_static_GCJ='-non_shared' | |
11884 | ;; | |
11885 | ||
11886 | newsos6) | |
11887 | lt_prog_compiler_pic_GCJ='-KPIC' | |
11888 | lt_prog_compiler_static_GCJ='-Bstatic' | |
11889 | ;; | |
11890 | ||
11891 | osf3* | osf4* | osf5*) | |
11892 | lt_prog_compiler_wl_GCJ='-Wl,' | |
11893 | # All OSF/1 code is PIC. | |
11894 | lt_prog_compiler_static_GCJ='-non_shared' | |
11895 | ;; | |
11896 | ||
11897 | sco3.2v5*) | |
11898 | lt_prog_compiler_pic_GCJ='-Kpic' | |
11899 | lt_prog_compiler_static_GCJ='-dn' | |
11900 | ;; | |
11901 | ||
11902 | solaris*) | |
11903 | lt_prog_compiler_wl_GCJ='-Wl,' | |
11904 | lt_prog_compiler_pic_GCJ='-KPIC' | |
11905 | lt_prog_compiler_static_GCJ='-Bstatic' | |
11906 | ;; | |
11907 | ||
11908 | sunos4*) | |
11909 | lt_prog_compiler_wl_GCJ='-Qoption ld ' | |
11910 | lt_prog_compiler_pic_GCJ='-PIC' | |
11911 | lt_prog_compiler_static_GCJ='-Bstatic' | |
11912 | ;; | |
11913 | ||
11914 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
11915 | if test "x$host_vendor" = xsni; then | |
11916 | lt_prog_compiler_wl_GCJ='-LD' | |
11917 | else | |
11918 | lt_prog_compiler_wl_GCJ='-Wl,' | |
11919 | fi | |
11920 | lt_prog_compiler_pic_GCJ='-KPIC' | |
11921 | lt_prog_compiler_static_GCJ='-Bstatic' | |
11922 | ;; | |
11923 | ||
11924 | sysv4*MP*) | |
11925 | if test -d /usr/nec ;then | |
11926 | lt_prog_compiler_pic_GCJ='-Kconform_pic' | |
11927 | lt_prog_compiler_static_GCJ='-Bstatic' | |
11928 | fi | |
11929 | ;; | |
11930 | ||
11931 | uts4*) | |
11932 | lt_prog_compiler_pic_GCJ='-pic' | |
11933 | lt_prog_compiler_static_GCJ='-Bstatic' | |
11934 | ;; | |
11935 | ||
11936 | *) | |
11937 | lt_prog_compiler_can_build_shared_GCJ=no | |
11938 | ;; | |
11939 | esac | |
11940 | fi | |
11941 | ||
11942 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | |
11943 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 | |
11944 | ||
11945 | # | |
11946 | # Check to make sure the PIC flag actually works. | |
11947 | # | |
11948 | if test -n "$lt_prog_compiler_pic_GCJ"; then | |
11949 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 | |
11950 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 | |
11951 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | |
11952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11953 | else | |
11954 | lt_prog_compiler_pic_works_GCJ=no | |
11955 | ac_outfile=conftest.$ac_objext | |
11956 | save_CFLAGS="$CFLAGS" | |
11957 | CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ -DPIC" | |
11958 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11959 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
11960 | # The compiler can only warn and ignore the option if not recognized | |
11961 | # So say no if there are warnings | |
11962 | if test -s conftest.err; then | |
11963 | # Append any errors to the config.log. | |
11964 | cat conftest.err 1>&5 | |
11965 | else | |
11966 | lt_prog_compiler_pic_works_GCJ=yes | |
11967 | fi | |
11968 | fi | |
11969 | $rm conftest* | |
11970 | CFLAGS="$save_CFLAGS" | |
11971 | ||
11972 | fi | |
11973 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 | |
11974 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 | |
11975 | ||
11976 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | |
11977 | case $lt_prog_compiler_pic_GCJ in | |
11978 | "" | " "*) ;; | |
11979 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | |
11980 | esac | |
11981 | else | |
11982 | lt_prog_compiler_pic_GCJ= | |
11983 | lt_prog_compiler_can_build_shared_GCJ=no | |
11984 | fi | |
11985 | ||
11986 | fi | |
11987 | case "$host_os" in | |
11988 | # For platforms which do not support PIC, -DPIC is meaningless: | |
11989 | *djgpp*) | |
11990 | lt_prog_compiler_pic_GCJ= | |
11991 | ;; | |
11992 | *) | |
11993 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ -DPIC" | |
11994 | ;; | |
11995 | esac | |
11996 | ||
11997 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
11998 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
11999 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | |
12000 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12001 | else | |
12002 | lt_cv_prog_compiler_c_o_GCJ=no | |
12003 | $rm -r conftest 2>/dev/null | |
12004 | mkdir conftest | |
12005 | cd conftest | |
12006 | mkdir out | |
12007 | save_GCJFLAGS="$GCJFLAGS" | |
12008 | GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext" | |
12009 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12010 | ||
12011 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | |
12012 | # that will create temporary files in the current directory regardless of | |
12013 | # the output directory. Thus, making CWD read-only will cause this test | |
12014 | # to fail, enabling locking or at least warning the user not to do parallel | |
12015 | # builds. | |
12016 | chmod -w . | |
12017 | ||
12018 | if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext | |
12019 | then | |
12020 | # The compiler can only warn and ignore the option if not recognized | |
12021 | # So say no if there are warnings | |
12022 | if test -s out/conftest.err; then | |
12023 | # Append any errors to the config.log. | |
12024 | cat out/conftest.err 1>&5 | |
12025 | else | |
12026 | lt_cv_prog_compiler_c_o_GCJ=yes | |
12027 | fi | |
12028 | fi | |
12029 | GCJFLAGS="$save_GCJFLAGS" | |
12030 | chmod u+w . | |
12031 | $rm conftest* out/* | |
12032 | rmdir out | |
12033 | cd .. | |
12034 | rmdir conftest | |
12035 | $rm conftest* | |
12036 | ||
12037 | fi | |
12038 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 | |
12039 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 | |
12040 | ||
12041 | ||
12042 | hard_links="nottested" | |
12043 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | |
12044 | # do not overwrite the value of need_locks provided by the user | |
12045 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
12046 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
12047 | hard_links=yes | |
12048 | $rm conftest* | |
12049 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12050 | touch conftest.a | |
12051 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
12052 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12053 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
12054 | echo "${ECHO_T}$hard_links" >&6 | |
12055 | if test "$hard_links" = no; then | |
12056 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
12057 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
12058 | need_locks=warn | |
12059 | fi | |
12060 | else | |
12061 | need_locks=no | |
12062 | fi | |
12063 | ||
12064 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12065 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
12066 | ||
12067 | runpath_var= | |
12068 | allow_undefined_flag_GCJ= | |
12069 | ||
12070 | archive_cmds_GCJ= | |
12071 | archive_cmds_need_lc_GCJ= | |
12072 | archive_expsym_cmds_GCJ= | |
12073 | old_archive_From_new_cmds_GCJ= | |
12074 | old_archive_from_expsyms_cmds_GCJ= | |
12075 | export_dynamic_flag_spec_GCJ= | |
12076 | whole_archive_flag_spec_GCJ= | |
12077 | thread_safe_flag_spec_GCJ= | |
12078 | hardcode_libdir_flag_spec_GCJ= | |
12079 | hardcode_libdir_separator_GCJ= | |
12080 | hardcode_direct_GCJ=no | |
12081 | hardcode_minus_L_GCJ=no | |
12082 | hardcode_shlibpath_var_GCJ=unsupported | |
12083 | link_all_deplibs_GCJ=unknown | |
12084 | always_export_symbols_GCJ=no | |
12085 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12086 | # include_expsyms should be a list of space-separated symbols to be *always* | |
12087 | # included in the symbol list | |
12088 | include_expsyms_GCJ= | |
12089 | # exclude_expsyms can be an egrep regular expression of symbols to exclude | |
12090 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
12091 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
12092 | # as well as any symbol that contains `d'. | |
12093 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | |
12094 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
12095 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
12096 | # the symbol is explicitly referenced. Since portable code cannot | |
12097 | # rely on this symbol name, it's probably fine to never include it in | |
12098 | # preloaded symbol tables. | |
12099 | extract_expsyms_cmds= | |
12100 | ||
12101 | case $host_os in | |
12102 | cygwin* | mingw* | pw32*) | |
12103 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
12104 | # When not using gcc, we currently assume that we are using | |
12105 | # Microsoft Visual C++. | |
12106 | if test "$GCC" != yes; then | |
12107 | with_gnu_ld=no | |
12108 | fi | |
12109 | ;; | |
12110 | openbsd*) | |
12111 | with_gnu_ld=no | |
12112 | ;; | |
12113 | esac | |
12114 | ||
12115 | ld_shlibs_GCJ=yes | |
12116 | if test "$with_gnu_ld" = yes; then | |
12117 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
12118 | wlarc='${wl}' | |
12119 | ||
12120 | # See if GNU ld supports shared libraries. | |
12121 | case $host_os in | |
12122 | aix3* | aix4* | aix5*) | |
12123 | # On AIX/PPC, the GNU linker is very broken | |
12124 | if test "$host_cpu" != ia64; then | |
12125 | ld_shlibs_GCJ=no | |
12126 | cat <<EOF 1>&2 | |
12127 | ||
12128 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
12129 | *** to be unable to reliably create shared libraries on AIX. | |
12130 | *** Therefore, libtool is disabling shared libraries support. If you | |
12131 | *** really care for shared libraries, you may want to modify your PATH | |
12132 | *** so that a non-GNU linker is found, and then restart. | |
12133 | ||
12134 | EOF | |
12135 | fi | |
12136 | ;; | |
12137 | ||
12138 | amigaos*) | |
12139 | 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)' | |
12140 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
12141 | hardcode_minus_L_GCJ=yes | |
12142 | ||
12143 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
12144 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
12145 | # to version 4, is to share data among multiple programs linked | |
12146 | # with the same dynamic library. Since this doesn't match the | |
12147 | # behavior of shared libraries on other platforms, we can't use | |
12148 | # them. | |
12149 | ld_shlibs_GCJ=no | |
12150 | ;; | |
12151 | ||
12152 | beos*) | |
12153 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
12154 | allow_undefined_flag_GCJ=unsupported | |
12155 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
12156 | # support --undefined. This deserves some investigation. FIXME | |
12157 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12158 | else | |
12159 | ld_shlibs_GCJ=no | |
12160 | fi | |
12161 | ;; | |
12162 | ||
12163 | cygwin* | mingw* | pw32*) | |
12164 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is | |
12165 | # no search path for DLLs. | |
12166 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
12167 | allow_undefined_flag_GCJ=unsupported | |
12168 | always_export_symbols_GCJ=yes | |
12169 | ||
12170 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ | |
12171 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ | |
12172 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ | |
12173 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ | |
12174 | else $CC -o impgen impgen.c ; fi)~ | |
12175 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' | |
12176 | ||
12177 | old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' | |
12178 | ||
12179 | # cygwin and mingw dlls have different entry points and sets of symbols | |
12180 | # to exclude. | |
12181 | # FIXME: what about values for MSVC? | |
12182 | dll_entry=__cygwin_dll_entry@12 | |
12183 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ | |
12184 | case $host_os in | |
12185 | mingw*) | |
12186 | # mingw values | |
12187 | dll_entry=_DllMainCRTStartup@12 | |
12188 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ | |
12189 | ;; | |
12190 | esac | |
12191 | ||
12192 | # mingw and cygwin differ, and it's simplest to just exclude the union | |
12193 | # of the two symbol sets. | |
12194 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 | |
12195 | ||
12196 | # recent cygwin and mingw systems supply a stub DllMain which the user | |
12197 | # can override, but on older systems we have to supply one (in ltdll.c) | |
12198 | if test "x$lt_cv_need_dllmain" = "xyes"; then | |
12199 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " | |
12200 | 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~ | |
12201 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' | |
12202 | else | |
12203 | ltdll_obj= | |
12204 | ltdll_cmds= | |
12205 | fi | |
12206 | ||
12207 | # Extract the symbol export list from an `--export-all' def file, | |
12208 | # then regenerate the def file from the symbol export list, so that | |
12209 | # the compiled dll only exports the symbol export list. | |
12210 | # Be careful not to strip the DATA tag left by newer dlltools. | |
12211 | export_symbols_cmds_GCJ="$ltdll_cmds"' | |
12212 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ | |
12213 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' | |
12214 | ||
12215 | # If the export-symbols file already is a .def file (1st line | |
12216 | # is EXPORTS), use it as is. | |
12217 | # If DATA tags from a recent dlltool are present, honour them! | |
12218 | archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then | |
12219 | cp $export_symbols $output_objdir/$soname-def; | |
12220 | else | |
12221 | echo EXPORTS > $output_objdir/$soname-def; | |
12222 | _lt_hint=1; | |
12223 | cat $export_symbols | while read symbol; do | |
12224 | set dummy \$symbol; | |
12225 | case \$# in | |
12226 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; | |
12227 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; | |
12228 | esac; | |
12229 | _lt_hint=`expr 1 + \$_lt_hint`; | |
12230 | done; | |
12231 | fi~ | |
12232 | '"$ltdll_cmds"' | |
12233 | $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~ | |
12234 | $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~ | |
12235 | $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~ | |
12236 | $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~ | |
12237 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' | |
12238 | ;; | |
12239 | ||
12240 | netbsd*) | |
12241 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
12242 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
12243 | wlarc= | |
12244 | else | |
12245 | archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12246 | archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12247 | fi | |
12248 | ;; | |
12249 | ||
12250 | solaris* | sysv5*) | |
12251 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then | |
12252 | ld_shlibs_GCJ=no | |
12253 | cat <<EOF 1>&2 | |
12254 | ||
12255 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
12256 | *** create shared libraries on Solaris systems. Therefore, libtool | |
12257 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
12258 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
12259 | *** your PATH or compiler configuration so that the native linker is | |
12260 | *** used, and then restart. | |
12261 | ||
12262 | EOF | |
12263 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
12264 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12265 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12266 | else | |
12267 | ld_shlibs_GCJ=no | |
12268 | fi | |
12269 | ;; | |
12270 | ||
12271 | sunos4*) | |
12272 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
12273 | wlarc= | |
12274 | hardcode_direct_GCJ=yes | |
12275 | hardcode_shlibpath_var_GCJ=no | |
12276 | ;; | |
12277 | ||
12278 | *) | |
12279 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
12280 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12281 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12282 | else | |
12283 | ld_shlibs_GCJ=no | |
12284 | fi | |
12285 | ;; | |
12286 | esac | |
12287 | ||
12288 | if test "$ld_shlibs_GCJ" = yes; then | |
12289 | runpath_var=LD_RUN_PATH | |
12290 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | |
12291 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | |
12292 | case $host_os in | |
12293 | cygwin* | mingw* | pw32*) | |
12294 | # dlltool doesn't understand --whole-archive et. al. | |
12295 | whole_archive_flag_spec_GCJ= | |
12296 | ;; | |
12297 | *) | |
12298 | # ancient GNU ld didn't support --whole-archive et. al. | |
12299 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then | |
12300 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12301 | else | |
12302 | whole_archive_flag_spec_GCJ= | |
12303 | fi | |
12304 | ;; | |
12305 | esac | |
12306 | fi | |
12307 | else | |
12308 | # PORTME fill in a description of your system's linker (not GNU ld) | |
12309 | case $host_os in | |
12310 | aix3*) | |
12311 | allow_undefined_flag_GCJ=unsupported | |
12312 | always_export_symbols_GCJ=yes | |
12313 | 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' | |
12314 | # Note: this linker hardcodes the directories in LIBPATH if there | |
12315 | # are no directories specified by -L. | |
12316 | hardcode_minus_L_GCJ=yes | |
12317 | if test "$GCC" = yes && test -z "$link_static_flag"; then | |
12318 | # Neither direct hardcoding nor static linking is supported with a | |
12319 | # broken collect2. | |
12320 | hardcode_direct_GCJ=unsupported | |
12321 | fi | |
12322 | ;; | |
12323 | ||
12324 | aix4* | aix5*) | |
12325 | if test "$host_cpu" = ia64; then | |
12326 | # On IA64, the linker does run time linking by default, so we don't | |
12327 | # have to do anything special. | |
12328 | aix_use_runtimelinking=no | |
12329 | exp_sym_flag='-Bexport' | |
12330 | no_entry_flag="" | |
12331 | else | |
12332 | # If we're using GNU nm, then we don't want the "-C" option. | |
12333 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
12334 | if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then | |
12335 | 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' | |
12336 | else | |
12337 | 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' | |
12338 | fi | |
12339 | ||
12340 | # KDE requires run time linking. Make it the default. | |
12341 | aix_use_runtimelinking=yes | |
12342 | exp_sym_flag='-bexport' | |
12343 | no_entry_flag='-bnoentry' | |
12344 | fi | |
12345 | ||
12346 | # When large executables or shared objects are built, AIX ld can | |
12347 | # have problems creating the table of contents. If linking a library | |
12348 | # or program results in "error TOC overflow" add -mminimal-toc to | |
12349 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
12350 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
12351 | ||
12352 | archive_cmds_GCJ='' | |
12353 | hardcode_direct_GCJ=yes | |
12354 | hardcode_libdir_separator_GCJ=':' | |
12355 | link_all_deplibs_GCJ=yes | |
12356 | ||
12357 | if test "$GCC" = yes; then | |
12358 | case $host_os in aix4.012|aix4.012.*) | |
12359 | # We only want to do this on AIX 4.2 and lower, the check | |
12360 | # below for broken collect2 doesn't work under 4.3+ | |
12361 | collect2name=`${CC} -print-prog-name=collect2` | |
12362 | if test -f "$collect2name" && \ | |
12363 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
12364 | then | |
12365 | # We have reworked collect2 | |
12366 | hardcode_direct_GCJ=yes | |
12367 | else | |
12368 | # We have old collect2 | |
12369 | hardcode_direct_GCJ=unsupported | |
12370 | # It fails to find uninstalled libraries when the uninstalled | |
12371 | # path is not listed in the libpath. Setting hardcode_minus_L | |
12372 | # to unsupported forces relinking | |
12373 | hardcode_minus_L_GCJ=yes | |
12374 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
12375 | hardcode_libdir_separator_GCJ= | |
12376 | fi | |
12377 | esac | |
12378 | shared_flag='-shared' | |
12379 | else | |
12380 | # not using gcc | |
12381 | if test "$host_cpu" = ia64; then | |
12382 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
12383 | # chokes on -Wl,-G. The following line is correct: | |
12384 | shared_flag='-G' | |
12385 | else | |
12386 | if test "$aix_use_runtimelinking" = yes; then | |
12387 | shared_flag='-qmkshrobj ${wl}-G' | |
12388 | else | |
12389 | shared_flag='-qmkshrobj' | |
12390 | fi | |
12391 | fi | |
12392 | fi | |
12393 | ||
12394 | # Let the compiler handle the export list. | |
12395 | always_export_symbols_GCJ=no | |
12396 | if test "$aix_use_runtimelinking" = yes; then | |
12397 | # Warning - without using the other runtime loading flags (-brtl), | |
12398 | # -berok will link without error, but may produce a broken library. | |
12399 | allow_undefined_flag_GCJ='-berok' | |
12400 | # Determine the default libpath from the value encoded in an empty executable. | |
12401 | cat >conftest.$ac_ext <<_ACEOF | |
12402 | #line $LINENO "configure" | |
12403 | #include "confdefs.h" | |
12404 | ||
12405 | #ifdef F77_DUMMY_MAIN | |
12406 | # ifdef __cplusplus | |
12407 | extern "C" | |
12408 | # endif | |
12409 | int F77_DUMMY_MAIN() { return 1; } | |
12410 | #endif | |
12411 | int | |
12412 | main () | |
12413 | { | |
12414 | ||
12415 | ; | |
12416 | return 0; | |
12417 | } | |
12418 | _ACEOF | |
12419 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12420 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12421 | (eval $ac_link) 2>&5 | |
12422 | ac_status=$? | |
12423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12424 | (exit $ac_status); } && | |
12425 | { ac_try='test -s conftest$ac_exeext' | |
12426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12427 | (eval $ac_try) 2>&5 | |
12428 | ac_status=$? | |
12429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12430 | (exit $ac_status); }; }; then | |
12431 | ||
12432 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
12433 | }'` | |
12434 | # Check for a 64-bit object if we didn't find anything. | |
12435 | 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; } | |
12436 | }'`; fi | |
12437 | else | |
12438 | echo "$as_me: failed program was:" >&5 | |
12439 | cat conftest.$ac_ext >&5 | |
12440 | fi | |
12441 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12442 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
12443 | ||
12444 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12445 | 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" | |
12446 | 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" | |
12447 | else | |
12448 | if test "$host_cpu" = ia64; then | |
12449 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | |
12450 | allow_undefined_flag_GCJ="-z nodefs" | |
12451 | 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" | |
12452 | else | |
12453 | # Determine the default libpath from the value encoded in an empty executable. | |
12454 | cat >conftest.$ac_ext <<_ACEOF | |
12455 | #line $LINENO "configure" | |
12456 | #include "confdefs.h" | |
12457 | ||
12458 | #ifdef F77_DUMMY_MAIN | |
12459 | # ifdef __cplusplus | |
12460 | extern "C" | |
12461 | # endif | |
12462 | int F77_DUMMY_MAIN() { return 1; } | |
12463 | #endif | |
12464 | int | |
12465 | main () | |
12466 | { | |
12467 | ||
12468 | ; | |
12469 | return 0; | |
12470 | } | |
12471 | _ACEOF | |
12472 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12473 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12474 | (eval $ac_link) 2>&5 | |
12475 | ac_status=$? | |
12476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12477 | (exit $ac_status); } && | |
12478 | { ac_try='test -s conftest$ac_exeext' | |
12479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12480 | (eval $ac_try) 2>&5 | |
12481 | ac_status=$? | |
12482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12483 | (exit $ac_status); }; }; then | |
12484 | ||
12485 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
12486 | }'` | |
12487 | # Check for a 64-bit object if we didn't find anything. | |
12488 | 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; } | |
12489 | }'`; fi | |
12490 | else | |
12491 | echo "$as_me: failed program was:" >&5 | |
12492 | cat conftest.$ac_ext >&5 | |
12493 | fi | |
12494 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12495 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
12496 | ||
12497 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12498 | # Warning - without using the other run time loading flags, | |
12499 | # -berok will link without error, but may produce a broken library. | |
12500 | no_undefined_flag_GCJ=' ${wl}-bernotok' | |
12501 | allow_undefined_flag_GCJ=' ${wl}-berok' | |
12502 | # -bexpall does not export symbols beginning with underscore (_) | |
12503 | always_export_symbols_GCJ=yes | |
12504 | # Exported symbols can be pulled into shared objects from archives | |
12505 | whole_archive_flag_spec_GCJ=' ' | |
12506 | archive_cmds_need_lc_GCJ=yes | |
12507 | # This is similar to how AIX traditionally builds it's shared libraries. | |
12508 | 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' | |
12509 | fi | |
12510 | fi | |
12511 | ;; | |
12512 | ||
12513 | amigaos*) | |
12514 | 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)' | |
12515 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
12516 | hardcode_minus_L_GCJ=yes | |
12517 | # see comment about different semantics on the GNU ld section | |
12518 | ld_shlibs_GCJ=no | |
12519 | ;; | |
12520 | ||
12521 | bsdi4*) | |
12522 | export_dynamic_flag_spec_GCJ=-rdynamic | |
12523 | ;; | |
12524 | ||
12525 | cygwin* | mingw* | pw32*) | |
12526 | # When not using gcc, we currently assume that we are using | |
12527 | # Microsoft Visual C++. | |
12528 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
12529 | # no search path for DLLs. | |
12530 | hardcode_libdir_flag_spec_GCJ=' ' | |
12531 | allow_undefined_flag_GCJ=unsupported | |
12532 | # Tell ltmain to make .lib files, not .a files. | |
12533 | libext=lib | |
12534 | # FIXME: Setting linknames here is a bad hack. | |
12535 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
12536 | # The linker will automatically build a .lib file if we build a DLL. | |
12537 | old_archive_From_new_cmds_GCJ='true' | |
12538 | # FIXME: Should let the user specify the lib program. | |
12539 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
12540 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
12541 | ;; | |
12542 | ||
12543 | darwin* | rhapsody*) | |
12544 | case "$host_os" in | |
12545 | rhapsody* | darwin1.[012]) | |
12546 | allow_undefined_flag_GCJ='-undefined suppress' | |
12547 | ;; | |
12548 | *) # Darwin 1.3 on | |
12549 | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' | |
12550 | ;; | |
12551 | esac | |
12552 | ||
12553 | # FIXME: Relying on posixy $() will cause problems for | |
12554 | # cross-compilation, but unfortunately the echo tests do not | |
12555 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles | |
12556 | # `"' quotes if we put them in here... so don't! | |
12557 | 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' | |
12558 | # We need to add '_' to the symbols in $export_symbols first | |
12559 | #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols' | |
12560 | hardcode_direct_GCJ=yes | |
12561 | hardcode_shlibpath_var_GCJ=no | |
12562 | whole_archive_flag_spec_GCJ='-all_load $convenience' | |
12563 | ;; | |
12564 | ||
12565 | dgux*) | |
12566 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12567 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
12568 | hardcode_shlibpath_var_GCJ=no | |
12569 | ;; | |
12570 | ||
12571 | freebsd1*) | |
12572 | ld_shlibs_GCJ=no | |
12573 | ;; | |
12574 | ||
12575 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
12576 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
12577 | # does not break anything, and helps significantly (at the cost of a little | |
12578 | # extra space). | |
12579 | freebsd2.2*) | |
12580 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
12581 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
12582 | hardcode_direct_GCJ=yes | |
12583 | hardcode_shlibpath_var_GCJ=no | |
12584 | ;; | |
12585 | ||
12586 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
12587 | freebsd2*) | |
12588 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
12589 | hardcode_direct_GCJ=yes | |
12590 | hardcode_minus_L_GCJ=yes | |
12591 | hardcode_shlibpath_var_GCJ=no | |
12592 | ;; | |
12593 | ||
12594 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
12595 | freebsd*) | |
12596 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
12597 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
12598 | hardcode_direct_GCJ=yes | |
12599 | hardcode_shlibpath_var_GCJ=no | |
12600 | ;; | |
12601 | ||
12602 | hpux9* | hpux10* | hpux11*) | |
12603 | if test "$GCC" = yes; then | |
12604 | case $host_os in | |
12605 | hpux9*) | |
12606 | 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' | |
12607 | ;; | |
12608 | *) | |
12609 | if test "$host_cpu" = ia64; then | |
12610 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12611 | else | |
12612 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
12613 | fi | |
12614 | ;; | |
12615 | esac | |
12616 | else | |
12617 | case $host_os in | |
12618 | hpux9*) | |
12619 | 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' | |
12620 | ;; | |
12621 | *) | |
12622 | if test "$host_cpu" = ia64; then | |
12623 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12624 | else | |
12625 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
12626 | fi | |
12627 | ;; | |
12628 | esac | |
12629 | fi | |
12630 | if test "$host_cpu" = ia64; then | |
12631 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
12632 | hardcode_direct_GCJ=no | |
12633 | hardcode_shlibpath_var_GCJ=no | |
12634 | else | |
12635 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
12636 | hardcode_libdir_separator_GCJ=: | |
12637 | hardcode_direct_GCJ=yes | |
12638 | fi | |
12639 | # hardcode_minus_L: Not really in the search PATH, | |
12640 | # but as the default location of the library. | |
12641 | hardcode_minus_L_GCJ=yes | |
12642 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
12643 | ;; | |
12644 | ||
12645 | irix5* | irix6* | nonstopux*) | |
12646 | if test "$GCC" = yes; then | |
12647 | 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' | |
12648 | else | |
12649 | 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' | |
12650 | fi | |
12651 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
12652 | hardcode_libdir_separator_GCJ=: | |
12653 | link_all_deplibs_GCJ=yes | |
12654 | ;; | |
12655 | ||
12656 | netbsd*) | |
12657 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
12658 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
12659 | else | |
12660 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
12661 | fi | |
12662 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
12663 | hardcode_direct_GCJ=yes | |
12664 | hardcode_shlibpath_var_GCJ=no | |
12665 | ;; | |
12666 | ||
12667 | newsos6) | |
12668 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12669 | hardcode_direct_GCJ=yes | |
12670 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
12671 | hardcode_libdir_separator_GCJ=: | |
12672 | hardcode_shlibpath_var_GCJ=no | |
12673 | ;; | |
12674 | ||
12675 | openbsd*) | |
12676 | hardcode_direct_GCJ=yes | |
12677 | hardcode_shlibpath_var_GCJ=no | |
12678 | ||
12679 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12680 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
12681 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
12682 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
12683 | else | |
12684 | case $host_os in | |
12685 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
12686 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
12687 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
12688 | ;; | |
12689 | *) | |
12690 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
12691 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
12692 | ;; | |
12693 | esac | |
12694 | fi | |
12695 | ;; | |
12696 | ||
12697 | os2*) | |
12698 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
12699 | hardcode_minus_L_GCJ=yes | |
12700 | allow_undefined_flag_GCJ=unsupported | |
12701 | 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' | |
12702 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
12703 | ;; | |
12704 | ||
12705 | osf3*) | |
12706 | if test "$GCC" = yes; then | |
12707 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
12708 | 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' | |
12709 | else | |
12710 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
12711 | 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' | |
12712 | fi | |
12713 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
12714 | hardcode_libdir_separator_GCJ=: | |
12715 | ;; | |
12716 | ||
12717 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
12718 | if test "$GCC" = yes; then | |
12719 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
12720 | 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' | |
12721 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
12722 | else | |
12723 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
12724 | 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' | |
12725 | 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~ | |
12726 | $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' | |
12727 | ||
12728 | # Both c and cxx compiler support -rpath directly | |
12729 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | |
12730 | fi | |
12731 | hardcode_libdir_separator_GCJ=: | |
12732 | ;; | |
12733 | ||
12734 | sco3.2v5*) | |
12735 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12736 | hardcode_shlibpath_var_GCJ=no | |
12737 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' | |
12738 | runpath_var=LD_RUN_PATH | |
12739 | hardcode_runpath_var=yes | |
12740 | ;; | |
12741 | ||
12742 | solaris*) | |
12743 | no_undefined_flag_GCJ=' -z text' | |
12744 | if test "$GCC" = yes; then | |
12745 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12746 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
12747 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
12748 | else | |
12749 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12750 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
12751 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
12752 | fi | |
12753 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
12754 | hardcode_shlibpath_var_GCJ=no | |
12755 | case $host_os in | |
12756 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
12757 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | |
12758 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | |
12759 | esac | |
12760 | link_all_deplibs_GCJ=yes | |
12761 | ;; | |
12762 | ||
12763 | sunos4*) | |
12764 | if test "x$host_vendor" = xsequent; then | |
12765 | # Use $CC to link under sequent, because it throws in some extra .o | |
12766 | # files that make .init and .fini sections work. | |
12767 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
12768 | else | |
12769 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
12770 | fi | |
12771 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
12772 | hardcode_direct_GCJ=yes | |
12773 | hardcode_minus_L_GCJ=yes | |
12774 | hardcode_shlibpath_var_GCJ=no | |
12775 | ;; | |
12776 | ||
12777 | sysv4) | |
12778 | if test "x$host_vendor" = xsni; then | |
12779 | archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12780 | hardcode_direct_GCJ=yes # is this really true??? | |
12781 | else | |
12782 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12783 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | |
12784 | fi | |
12785 | runpath_var='LD_RUN_PATH' | |
12786 | hardcode_shlibpath_var_GCJ=no | |
12787 | ;; | |
12788 | ||
12789 | sysv4.3*) | |
12790 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12791 | hardcode_shlibpath_var_GCJ=no | |
12792 | export_dynamic_flag_spec_GCJ='-Bexport' | |
12793 | ;; | |
12794 | ||
12795 | sysv4*MP*) | |
12796 | if test -d /usr/nec; then | |
12797 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12798 | hardcode_shlibpath_var_GCJ=no | |
12799 | runpath_var=LD_RUN_PATH | |
12800 | hardcode_runpath_var=yes | |
12801 | ld_shlibs_GCJ=yes | |
12802 | fi | |
12803 | ;; | |
12804 | ||
12805 | sysv4.2uw2*) | |
12806 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
12807 | hardcode_direct_GCJ=yes | |
12808 | hardcode_minus_L_GCJ=no | |
12809 | hardcode_shlibpath_var_GCJ=no | |
12810 | hardcode_runpath_var=yes | |
12811 | runpath_var=LD_RUN_PATH | |
12812 | ;; | |
12813 | ||
12814 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
12815 | no_undefined_flag_GCJ='${wl}-z ${wl}text' | |
12816 | if test "$GCC" = yes; then | |
12817 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12818 | else | |
12819 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12820 | fi | |
12821 | runpath_var='LD_RUN_PATH' | |
12822 | hardcode_shlibpath_var_GCJ=no | |
12823 | ;; | |
12824 | ||
12825 | sysv5*) | |
12826 | no_undefined_flag_GCJ=' -z text' | |
12827 | # $CC -shared without GNU ld will not create a library from C++ | |
12828 | # object files and a static libstdc++, better avoid it by now | |
12829 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12830 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
12831 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
12832 | hardcode_libdir_flag_spec_GCJ= | |
12833 | hardcode_shlibpath_var_GCJ=no | |
12834 | runpath_var='LD_RUN_PATH' | |
12835 | ;; | |
12836 | ||
12837 | uts4*) | |
12838 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12839 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
12840 | hardcode_shlibpath_var_GCJ=no | |
12841 | ;; | |
12842 | ||
12843 | *) | |
12844 | ld_shlibs_GCJ=no | |
12845 | ;; | |
12846 | esac | |
12847 | fi | |
12848 | ||
12849 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | |
12850 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 | |
12851 | test "$ld_shlibs_GCJ" = no && can_build_shared=no | |
12852 | ||
12853 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
12854 | if test "$GCC" = yes; then | |
12855 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
12856 | fi | |
12857 | ||
12858 | # | |
12859 | # Do we need to explicitly link libc? | |
12860 | # | |
12861 | archive_cmds_need_lc_GCJ=yes | |
12862 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
12863 | case $archive_cmds_GCJ in | |
12864 | *'~'*) | |
12865 | # FIXME: we may have to deal with multi-command sequences. | |
12866 | ;; | |
12867 | '$CC '*) | |
12868 | # Test whether the compiler implicitly links with -lc since on some | |
12869 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
12870 | # to ld, don't add -lc before -lgcc. | |
12871 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
12872 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
12873 | $rm conftest* | |
12874 | echo 'static int dummy;' > conftest.$ac_ext | |
12875 | ||
12876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12877 | (eval $ac_compile) 2>&5 | |
12878 | ac_status=$? | |
12879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12880 | (exit $ac_status); } 2>conftest.err; then | |
12881 | soname=conftest | |
12882 | lib=conftest | |
12883 | libobjs=conftest.$ac_objext | |
12884 | deplibs= | |
12885 | wl=$lt_prog_compiler_wl_GCJ | |
12886 | compiler_flags=-v | |
12887 | linker_flags=-v | |
12888 | verstring= | |
12889 | output_objdir=. | |
12890 | libname=conftest | |
12891 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | |
12892 | allow_undefined_flag_GCJ= | |
12893 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
12894 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
12895 | ac_status=$? | |
12896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12897 | (exit $ac_status); } | |
12898 | then | |
12899 | archive_cmds_need_lc_GCJ=no | |
12900 | else | |
12901 | archive_cmds_need_lc_GCJ=yes | |
12902 | fi | |
12903 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | |
12904 | else | |
12905 | cat conftest.err 1>&5 | |
12906 | fi | |
12907 | $rm conftest* | |
12908 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 | |
12909 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 | |
12910 | ;; | |
12911 | esac | |
12912 | fi | |
12913 | ||
12914 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
12915 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
12916 | hardcode_action_GCJ= | |
12917 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | |
12918 | test -n "$runpath_var GCJ"; then | |
12919 | ||
12920 | # We can hardcode non-existant directories. | |
12921 | if test "$hardcode_direct_GCJ" != no && | |
12922 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12923 | # have to relink, otherwise we might link with an installed library | |
12924 | # when we should be linking with a yet-to-be-installed one | |
12925 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | |
12926 | test "$hardcode_minus_L_GCJ" != no; then | |
12927 | # Linking always hardcodes the temporary library directory. | |
12928 | hardcode_action_GCJ=relink | |
12929 | else | |
12930 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12931 | hardcode_action_GCJ=immediate | |
12932 | fi | |
12933 | else | |
12934 | # We cannot hardcode anything, or else we can only hardcode existing | |
12935 | # directories. | |
12936 | hardcode_action_GCJ=unsupported | |
12937 | fi | |
12938 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | |
12939 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 | |
12940 | ||
12941 | if test "$hardcode_action_GCJ" = relink; then | |
12942 | # Fast installation is not supported | |
12943 | enable_fast_install=no | |
12944 | elif test "$shlibpath_overrides_runpath" = yes || | |
12945 | test "$enable_shared" = no; then | |
12946 | # Fast installation is not necessary | |
12947 | enable_fast_install=needless | |
12948 | fi | |
12949 | ||
12950 | striplib= | |
12951 | old_striplib= | |
12952 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
12953 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
12954 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
12955 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12956 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12957 | echo "$as_me:$LINENO: result: yes" >&5 | |
12958 | echo "${ECHO_T}yes" >&6 | |
12959 | else | |
12960 | echo "$as_me:$LINENO: result: no" >&5 | |
12961 | echo "${ECHO_T}no" >&6 | |
12962 | fi | |
12963 | ||
12964 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
12965 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
12966 | library_names_spec= | |
12967 | libname_spec='lib$name' | |
12968 | soname_spec= | |
12969 | postinstall_cmds= | |
12970 | postuninstall_cmds= | |
12971 | finish_cmds= | |
12972 | finish_eval= | |
12973 | shlibpath_var= | |
12974 | shlibpath_overrides_runpath=unknown | |
12975 | version_type=none | |
12976 | dynamic_linker="$host_os ld.so" | |
12977 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
12978 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
12979 | need_lib_prefix=unknown | |
12980 | hardcode_into_libs=no | |
12981 | ||
12982 | # when you set need_version to no, make sure it does not cause -set_version | |
12983 | # flags to be left without arguments | |
12984 | need_version=unknown | |
12985 | ||
12986 | case $host_os in | |
12987 | aix3*) | |
12988 | version_type=linux | |
12989 | library_names_spec='${libname}${release}.so$versuffix $libname.a' | |
12990 | shlibpath_var=LIBPATH | |
12991 | ||
12992 | # AIX 3 has no versioning support, so we append a major version to the name. | |
12993 | soname_spec='${libname}${release}.so$major' | |
12994 | ;; | |
12995 | ||
12996 | aix4* | aix5*) | |
12997 | version_type=linux | |
12998 | if test "$host_cpu" = ia64; then | |
12999 | # AIX 5 supports IA64 | |
13000 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' | |
13001 | shlibpath_var=LD_LIBRARY_PATH | |
13002 | else | |
13003 | # With GCC up to 2.95.x, collect2 would create an import file | |
13004 | # for dependence libraries. The import file would start with | |
13005 | # the line `#! .'. This would cause the generated library to | |
13006 | # depend on `.', always an invalid library. This was fixed in | |
13007 | # development snapshots of GCC prior to 3.0. | |
13008 | case $host_os in | |
13009 | aix4 | aix4.[01] | aix4.[01].*) | |
13010 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
13011 | echo ' yes ' | |
13012 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
13013 | : | |
13014 | else | |
13015 | can_build_shared=no | |
13016 | fi | |
13017 | ;; | |
13018 | esac | |
13019 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
13020 | # soname into executable. Probably we can add versioning support to | |
13021 | # collect2, so additional links can be useful in future. | |
13022 | if test "$aix_use_runtimelinking" = yes; then | |
13023 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
13024 | # instead of lib<name>.a to let people know that these are not | |
13025 | # typical AIX shared libraries. | |
13026 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13027 | else | |
13028 | # We preserve .a as extension for shared libraries through AIX4.2 | |
13029 | # and later when we are not doing run time linking. | |
13030 | library_names_spec='${libname}${release}.a $libname.a' | |
13031 | soname_spec='${libname}${release}.so$major' | |
13032 | fi | |
13033 | shlibpath_var=LIBPATH | |
13034 | fi | |
13035 | ;; | |
13036 | ||
13037 | amigaos*) | |
13038 | library_names_spec='$libname.ixlibrary $libname.a' | |
13039 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
13040 | 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' | |
13041 | ;; | |
13042 | ||
13043 | beos*) | |
13044 | library_names_spec='${libname}.so' | |
13045 | dynamic_linker="$host_os ld.so" | |
13046 | shlibpath_var=LIBRARY_PATH | |
13047 | ;; | |
13048 | ||
13049 | bsdi4*) | |
13050 | version_type=linux | |
13051 | need_version=no | |
13052 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13053 | soname_spec='${libname}${release}.so$major' | |
13054 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
13055 | shlibpath_var=LD_LIBRARY_PATH | |
13056 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
13057 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
13058 | # the default ld.so.conf also contains /usr/contrib/lib and | |
13059 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
13060 | # libtool to hard-code these into programs | |
13061 | ;; | |
13062 | ||
13063 | cygwin* | mingw* | pw32*) | |
13064 | version_type=windows | |
13065 | need_version=no | |
13066 | need_lib_prefix=no | |
13067 | case $GCC,$host_os in | |
13068 | yes,cygwin*) | |
13069 | library_names_spec='$libname.dll.a' | |
13070 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | |
13071 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
13072 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ | |
13073 | dldir=$destdir/`dirname \$dlpath`~ | |
13074 | test -d \$dldir || mkdir -p \$dldir~ | |
13075 | $install_prog .libs/$dlname \$dldir/$dlname' | |
13076 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
13077 | dlpath=$dir/\$dldll~ | |
13078 | $rm \$dlpath' | |
13079 | ;; | |
13080 | yes,mingw*) | |
13081 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
13082 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"` | |
13083 | if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then | |
13084 | # It is most probably a Windows format PATH printed by | |
13085 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
13086 | # path with ; separators, and with drive letters. We can handle the | |
13087 | # drive letters (cygwin fileutils understands them), so leave them, | |
13088 | # especially as we might pass files found there to a mingw objdump, | |
13089 | # which wouldn't understand a cygwinified path. Ahh. | |
13090 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` | |
13091 | else | |
13092 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` | |
13093 | fi | |
13094 | ;; | |
13095 | yes,pw32*) | |
13096 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' | |
13097 | ;; | |
13098 | *) | |
13099 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' | |
13100 | ;; | |
13101 | esac | |
13102 | dynamic_linker='Win32 ld.exe' | |
13103 | # FIXME: first we should search . and the directory the executable is in | |
13104 | shlibpath_var=PATH | |
13105 | ;; | |
13106 | ||
13107 | darwin* | rhapsody*) | |
13108 | dynamic_linker="$host_os dyld" | |
13109 | version_type=darwin | |
13110 | need_lib_prefix=no | |
13111 | need_version=no | |
13112 | # FIXME: Relying on posixy $() will cause problems for | |
13113 | # cross-compilation, but unfortunately the echo tests do not | |
13114 | # yet detect zsh echo's removal of \ escapes. | |
13115 | 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)' | |
13116 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' | |
13117 | shlibpath_overrides_runpath=yes | |
13118 | shlibpath_var=DYLD_LIBRARY_PATH | |
13119 | ;; | |
13120 | ||
13121 | dgux*) | |
13122 | version_type=linux | |
13123 | need_lib_prefix=no | |
13124 | need_version=no | |
13125 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13126 | soname_spec='${libname}${release}.so$major' | |
13127 | shlibpath_var=LD_LIBRARY_PATH | |
13128 | ;; | |
13129 | ||
13130 | freebsd1*) | |
13131 | dynamic_linker=no | |
13132 | ;; | |
13133 | ||
13134 | freebsd*) | |
13135 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
13136 | version_type=freebsd-$objformat | |
13137 | case $version_type in | |
13138 | freebsd-elf*) | |
13139 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
13140 | need_version=no | |
13141 | need_lib_prefix=no | |
13142 | ;; | |
13143 | freebsd-*) | |
13144 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' | |
13145 | need_version=yes | |
13146 | ;; | |
13147 | esac | |
13148 | shlibpath_var=LD_LIBRARY_PATH | |
13149 | case $host_os in | |
13150 | freebsd2*) | |
13151 | shlibpath_overrides_runpath=yes | |
13152 | ;; | |
13153 | freebsd3.01* | freebsdelf3.01*) | |
13154 | shlibpath_overrides_runpath=yes | |
13155 | hardcode_into_libs=yes | |
13156 | ;; | |
13157 | *) # from 3.2 on | |
13158 | shlibpath_overrides_runpath=no | |
13159 | hardcode_into_libs=yes | |
13160 | ;; | |
13161 | esac | |
13162 | ;; | |
13163 | ||
13164 | gnu*) | |
13165 | version_type=linux | |
13166 | need_lib_prefix=no | |
13167 | need_version=no | |
13168 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' | |
13169 | soname_spec='${libname}${release}.so$major' | |
13170 | shlibpath_var=LD_LIBRARY_PATH | |
13171 | hardcode_into_libs=yes | |
13172 | ;; | |
13173 | ||
13174 | hpux9* | hpux10* | hpux11*) | |
13175 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
13176 | # link against other versions. | |
13177 | version_type=sunos | |
13178 | need_lib_prefix=no | |
13179 | need_version=no | |
13180 | if test "$host_cpu" = ia64; then | |
13181 | hardcode_into_libs=yes | |
13182 | dynamic_linker="$host_os dld.so" | |
13183 | shlibpath_var=LD_LIBRARY_PATH | |
13184 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
13185 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13186 | soname_spec='${libname}${release}.so$major' | |
13187 | if test "X$HPUX_IA64_MODE" = X32; then | |
13188 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
13189 | else | |
13190 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
13191 | fi | |
13192 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13193 | else | |
13194 | dynamic_linker="$host_os dld.sl" | |
13195 | shlibpath_var=SHLIB_PATH | |
13196 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
13197 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' | |
13198 | soname_spec='${libname}${release}.sl$major' | |
13199 | fi | |
13200 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
13201 | postinstall_cmds='chmod 555 $lib' | |
13202 | ;; | |
13203 | ||
13204 | irix5* | irix6* | nonstopux*) | |
13205 | case $host_os in | |
13206 | nonstopux*) version_type=nonstopux ;; | |
13207 | *) version_type=irix ;; | |
13208 | esac | |
13209 | need_lib_prefix=no | |
13210 | need_version=no | |
13211 | soname_spec='${libname}${release}.so$major' | |
13212 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' | |
13213 | case $host_os in | |
13214 | irix5* | nonstopux*) | |
13215 | libsuff= shlibsuff= | |
13216 | ;; | |
13217 | *) | |
13218 | case $LD in # libtool.m4 will add one of these switches to LD | |
13219 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; | |
13220 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; | |
13221 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
13222 | *) libsuff= shlibsuff= libmagic=never-match;; | |
13223 | esac | |
13224 | ;; | |
13225 | esac | |
13226 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
13227 | shlibpath_overrides_runpath=no | |
13228 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
13229 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
13230 | ;; | |
13231 | ||
13232 | # No shared lib support for Linux oldld, aout, or coff. | |
13233 | linux*oldld* | linux*aout* | linux*coff*) | |
13234 | dynamic_linker=no | |
13235 | ;; | |
13236 | ||
13237 | # This must be Linux ELF. | |
13238 | linux*) | |
13239 | version_type=linux | |
13240 | need_lib_prefix=no | |
13241 | need_version=no | |
13242 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13243 | soname_spec='${libname}${release}.so$major' | |
13244 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
13245 | libsuff= | |
13246 | if test "x$LINUX_64_MODE" = x64; then | |
13247 | # Some platforms are per default 64-bit, so there's no /lib64 | |
13248 | if test -d /lib64; then | |
13249 | libsuff=64 | |
13250 | fi | |
13251 | fi | |
13252 | shlibpath_var=LD_LIBRARY_PATH | |
13253 | shlibpath_overrides_runpath=no | |
13254 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" | |
13255 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
13256 | # This implies no fast_install, which is unacceptable. | |
13257 | # Some rework will be needed to allow for fast_install | |
13258 | # before this can be enabled. | |
13259 | hardcode_into_libs=yes | |
13260 | ||
13261 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
13262 | # powerpc, because MkLinux only supported shared libraries with the | |
13263 | # GNU dynamic linker. Since this was broken with cross compilers, | |
13264 | # most powerpc-linux boxes support dynamic linking these days and | |
13265 | # people can always --disable-shared, the test was removed, and we | |
13266 | # assume the GNU/Linux dynamic linker is in use. | |
13267 | dynamic_linker='GNU/Linux ld.so' | |
13268 | ;; | |
13269 | ||
13270 | netbsd*) | |
13271 | version_type=sunos | |
13272 | need_lib_prefix=no | |
13273 | need_version=no | |
13274 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
13275 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
13276 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13277 | dynamic_linker='NetBSD (a.out) ld.so' | |
13278 | else | |
13279 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' | |
13280 | soname_spec='${libname}${release}.so$major' | |
13281 | dynamic_linker='NetBSD ld.elf_so' | |
13282 | fi | |
13283 | shlibpath_var=LD_LIBRARY_PATH | |
13284 | shlibpath_overrides_runpath=yes | |
13285 | hardcode_into_libs=yes | |
13286 | ;; | |
13287 | ||
13288 | newsos6) | |
13289 | version_type=linux | |
13290 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13291 | shlibpath_var=LD_LIBRARY_PATH | |
13292 | shlibpath_overrides_runpath=yes | |
13293 | ;; | |
13294 | ||
13295 | nto-qnx) | |
13296 | version_type=linux | |
13297 | need_lib_prefix=no | |
13298 | need_version=no | |
13299 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13300 | soname_spec='${libname}${release}.so$major' | |
13301 | shlibpath_var=LD_LIBRARY_PATH | |
13302 | shlibpath_overrides_runpath=yes | |
13303 | ;; | |
13304 | ||
13305 | openbsd*) | |
13306 | version_type=sunos | |
13307 | need_lib_prefix=no | |
13308 | need_version=no | |
13309 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
13310 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13311 | shlibpath_var=LD_LIBRARY_PATH | |
13312 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13313 | case $host_os in | |
13314 | openbsd2.[89] | openbsd2.[89].*) | |
13315 | shlibpath_overrides_runpath=no | |
13316 | ;; | |
13317 | *) | |
13318 | shlibpath_overrides_runpath=yes | |
13319 | ;; | |
13320 | esac | |
13321 | else | |
13322 | shlibpath_overrides_runpath=yes | |
13323 | fi | |
13324 | ;; | |
13325 | ||
13326 | os2*) | |
13327 | libname_spec='$name' | |
13328 | need_lib_prefix=no | |
13329 | library_names_spec='$libname.dll $libname.a' | |
13330 | dynamic_linker='OS/2 ld.exe' | |
13331 | shlibpath_var=LIBPATH | |
13332 | ;; | |
13333 | ||
13334 | osf3* | osf4* | osf5*) | |
13335 | version_type=osf | |
13336 | need_lib_prefix=no | |
13337 | need_version=no | |
13338 | soname_spec='${libname}${release}.so' | |
13339 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
13340 | shlibpath_var=LD_LIBRARY_PATH | |
13341 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
13342 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
13343 | ;; | |
13344 | ||
13345 | sco3.2v5*) | |
13346 | version_type=osf | |
13347 | soname_spec='${libname}${release}.so$major' | |
13348 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13349 | shlibpath_var=LD_LIBRARY_PATH | |
13350 | ;; | |
13351 | ||
13352 | solaris*) | |
13353 | version_type=linux | |
13354 | need_lib_prefix=no | |
13355 | need_version=no | |
13356 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13357 | soname_spec='${libname}${release}.so$major' | |
13358 | shlibpath_var=LD_LIBRARY_PATH | |
13359 | shlibpath_overrides_runpath=yes | |
13360 | hardcode_into_libs=yes | |
13361 | # ldd complains unless libraries are executable | |
13362 | postinstall_cmds='chmod +x $lib' | |
13363 | ;; | |
13364 | ||
13365 | sunos4*) | |
13366 | version_type=sunos | |
13367 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
13368 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
13369 | shlibpath_var=LD_LIBRARY_PATH | |
13370 | shlibpath_overrides_runpath=yes | |
13371 | if test "$with_gnu_ld" = yes; then | |
13372 | need_lib_prefix=no | |
13373 | fi | |
13374 | need_version=yes | |
13375 | ;; | |
13376 | ||
13377 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
13378 | version_type=linux | |
13379 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13380 | soname_spec='${libname}${release}.so$major' | |
13381 | shlibpath_var=LD_LIBRARY_PATH | |
13382 | case $host_vendor in | |
13383 | sni) | |
13384 | shlibpath_overrides_runpath=no | |
13385 | ;; | |
13386 | motorola) | |
13387 | need_lib_prefix=no | |
13388 | need_version=no | |
13389 | shlibpath_overrides_runpath=no | |
13390 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
13391 | ;; | |
13392 | esac | |
13393 | ;; | |
13394 | ||
13395 | sysv4*MP*) | |
13396 | if test -d /usr/nec ;then | |
13397 | version_type=linux | |
13398 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' | |
13399 | soname_spec='$libname.so.$major' | |
13400 | shlibpath_var=LD_LIBRARY_PATH | |
13401 | fi | |
13402 | ;; | |
13403 | ||
13404 | uts4*) | |
13405 | version_type=linux | |
13406 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
13407 | soname_spec='${libname}${release}.so$major' | |
13408 | shlibpath_var=LD_LIBRARY_PATH | |
13409 | ;; | |
13410 | ||
13411 | *) | |
13412 | dynamic_linker=no | |
13413 | ;; | |
13414 | esac | |
13415 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
13416 | echo "${ECHO_T}$dynamic_linker" >&6 | |
13417 | test "$dynamic_linker" = no && can_build_shared=no | |
13418 | ||
13419 | if test "x$enable_dlopen" != xyes; then | |
13420 | enable_dlopen=unknown | |
13421 | enable_dlopen_self=unknown | |
13422 | enable_dlopen_self_static=unknown | |
13423 | else | |
13424 | lt_cv_dlopen=no | |
13425 | lt_cv_dlopen_libs= | |
13426 | ||
13427 | case $host_os in | |
13428 | beos*) | |
13429 | lt_cv_dlopen="load_add_on" | |
13430 | lt_cv_dlopen_libs= | |
13431 | lt_cv_dlopen_self=yes | |
13432 | ;; | |
13433 | ||
13434 | cygwin* | mingw* | pw32*) | |
13435 | lt_cv_dlopen="LoadLibrary" | |
13436 | lt_cv_dlopen_libs= | |
13437 | ;; | |
13438 | ||
13439 | *) | |
13440 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
13441 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
13442 | if test "${ac_cv_func_shl_load+set}" = set; then | |
13443 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13444 | else | |
13445 | cat >conftest.$ac_ext <<_ACEOF | |
13446 | #line $LINENO "configure" | |
13447 | #include "confdefs.h" | |
13448 | /* System header to define __stub macros and hopefully few prototypes, | |
13449 | which can conflict with char shl_load (); below. */ | |
13450 | #include <assert.h> | |
13451 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13452 | #ifdef __cplusplus | |
13453 | extern "C" | |
13454 | #endif | |
13455 | /* We use char because int might match the return type of a gcc2 | |
13456 | builtin and then its argument prototype would still apply. */ | |
13457 | char shl_load (); | |
13458 | char (*f) (); | |
13459 | ||
13460 | #ifdef F77_DUMMY_MAIN | |
13461 | # ifdef __cplusplus | |
13462 | extern "C" | |
13463 | # endif | |
13464 | int F77_DUMMY_MAIN() { return 1; } | |
13465 | #endif | |
13466 | int | |
13467 | main () | |
13468 | { | |
13469 | /* The GNU C library defines this for functions which it implements | |
13470 | to always fail with ENOSYS. Some functions are actually named | |
13471 | something starting with __ and the normal name is an alias. */ | |
13472 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
13473 | choke me | |
13474 | #else | |
13475 | f = shl_load; | |
13476 | #endif | |
13477 | ||
13478 | ; | |
13479 | return 0; | |
13480 | } | |
13481 | _ACEOF | |
13482 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13483 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13484 | (eval $ac_link) 2>&5 | |
13485 | ac_status=$? | |
13486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13487 | (exit $ac_status); } && | |
13488 | { ac_try='test -s conftest$ac_exeext' | |
13489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13490 | (eval $ac_try) 2>&5 | |
13491 | ac_status=$? | |
13492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13493 | (exit $ac_status); }; }; then | |
13494 | ac_cv_func_shl_load=yes | |
13495 | else | |
13496 | echo "$as_me: failed program was:" >&5 | |
13497 | cat conftest.$ac_ext >&5 | |
13498 | ac_cv_func_shl_load=no | |
13499 | fi | |
13500 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13501 | fi | |
13502 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
13503 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
13504 | if test $ac_cv_func_shl_load = yes; then | |
13505 | lt_cv_dlopen="shl_load" | |
13506 | else | |
13507 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
13508 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
13509 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
13510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13511 | else | |
13512 | ac_check_lib_save_LIBS=$LIBS | |
13513 | LIBS="-ldld $LIBS" | |
13514 | cat >conftest.$ac_ext <<_ACEOF | |
13515 | #line $LINENO "configure" | |
13516 | #include "confdefs.h" | |
13517 | ||
13518 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13519 | #ifdef __cplusplus | |
13520 | extern "C" | |
13521 | #endif | |
13522 | /* We use char because int might match the return type of a gcc2 | |
13523 | builtin and then its argument prototype would still apply. */ | |
13524 | char shl_load (); | |
13525 | #ifdef F77_DUMMY_MAIN | |
13526 | # ifdef __cplusplus | |
13527 | extern "C" | |
13528 | # endif | |
13529 | int F77_DUMMY_MAIN() { return 1; } | |
13530 | #endif | |
13531 | int | |
13532 | main () | |
13533 | { | |
13534 | shl_load (); | |
13535 | ; | |
13536 | return 0; | |
13537 | } | |
13538 | _ACEOF | |
13539 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13540 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13541 | (eval $ac_link) 2>&5 | |
13542 | ac_status=$? | |
13543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13544 | (exit $ac_status); } && | |
13545 | { ac_try='test -s conftest$ac_exeext' | |
13546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13547 | (eval $ac_try) 2>&5 | |
13548 | ac_status=$? | |
13549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13550 | (exit $ac_status); }; }; then | |
13551 | ac_cv_lib_dld_shl_load=yes | |
13552 | else | |
13553 | echo "$as_me: failed program was:" >&5 | |
13554 | cat conftest.$ac_ext >&5 | |
13555 | ac_cv_lib_dld_shl_load=no | |
13556 | fi | |
13557 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13558 | LIBS=$ac_check_lib_save_LIBS | |
13559 | fi | |
13560 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
13561 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
13562 | if test $ac_cv_lib_dld_shl_load = yes; then | |
13563 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
13564 | else | |
13565 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
13566 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
13567 | if test "${ac_cv_func_dlopen+set}" = set; then | |
13568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13569 | else | |
13570 | cat >conftest.$ac_ext <<_ACEOF | |
13571 | #line $LINENO "configure" | |
13572 | #include "confdefs.h" | |
13573 | /* System header to define __stub macros and hopefully few prototypes, | |
13574 | which can conflict with char dlopen (); below. */ | |
13575 | #include <assert.h> | |
13576 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13577 | #ifdef __cplusplus | |
13578 | extern "C" | |
13579 | #endif | |
13580 | /* We use char because int might match the return type of a gcc2 | |
13581 | builtin and then its argument prototype would still apply. */ | |
13582 | char dlopen (); | |
13583 | char (*f) (); | |
13584 | ||
13585 | #ifdef F77_DUMMY_MAIN | |
13586 | # ifdef __cplusplus | |
13587 | extern "C" | |
13588 | # endif | |
13589 | int F77_DUMMY_MAIN() { return 1; } | |
13590 | #endif | |
13591 | int | |
13592 | main () | |
13593 | { | |
13594 | /* The GNU C library defines this for functions which it implements | |
13595 | to always fail with ENOSYS. Some functions are actually named | |
13596 | something starting with __ and the normal name is an alias. */ | |
13597 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
13598 | choke me | |
13599 | #else | |
13600 | f = dlopen; | |
13601 | #endif | |
13602 | ||
13603 | ; | |
13604 | return 0; | |
13605 | } | |
13606 | _ACEOF | |
13607 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13608 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13609 | (eval $ac_link) 2>&5 | |
13610 | ac_status=$? | |
13611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13612 | (exit $ac_status); } && | |
13613 | { ac_try='test -s conftest$ac_exeext' | |
13614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13615 | (eval $ac_try) 2>&5 | |
13616 | ac_status=$? | |
13617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13618 | (exit $ac_status); }; }; then | |
13619 | ac_cv_func_dlopen=yes | |
13620 | else | |
13621 | echo "$as_me: failed program was:" >&5 | |
13622 | cat conftest.$ac_ext >&5 | |
13623 | ac_cv_func_dlopen=no | |
13624 | fi | |
13625 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13626 | fi | |
13627 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
13628 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
13629 | if test $ac_cv_func_dlopen = yes; then | |
13630 | lt_cv_dlopen="dlopen" | |
13631 | else | |
13632 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
13633 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
13634 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
13635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13636 | else | |
13637 | ac_check_lib_save_LIBS=$LIBS | |
13638 | LIBS="-ldl $LIBS" | |
13639 | cat >conftest.$ac_ext <<_ACEOF | |
13640 | #line $LINENO "configure" | |
13641 | #include "confdefs.h" | |
13642 | ||
13643 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13644 | #ifdef __cplusplus | |
13645 | extern "C" | |
13646 | #endif | |
13647 | /* We use char because int might match the return type of a gcc2 | |
13648 | builtin and then its argument prototype would still apply. */ | |
13649 | char dlopen (); | |
13650 | #ifdef F77_DUMMY_MAIN | |
13651 | # ifdef __cplusplus | |
13652 | extern "C" | |
13653 | # endif | |
13654 | int F77_DUMMY_MAIN() { return 1; } | |
13655 | #endif | |
13656 | int | |
13657 | main () | |
13658 | { | |
13659 | dlopen (); | |
13660 | ; | |
13661 | return 0; | |
13662 | } | |
13663 | _ACEOF | |
13664 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13665 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13666 | (eval $ac_link) 2>&5 | |
13667 | ac_status=$? | |
13668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13669 | (exit $ac_status); } && | |
13670 | { ac_try='test -s conftest$ac_exeext' | |
13671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13672 | (eval $ac_try) 2>&5 | |
13673 | ac_status=$? | |
13674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13675 | (exit $ac_status); }; }; then | |
13676 | ac_cv_lib_dl_dlopen=yes | |
13677 | else | |
13678 | echo "$as_me: failed program was:" >&5 | |
13679 | cat conftest.$ac_ext >&5 | |
13680 | ac_cv_lib_dl_dlopen=no | |
13681 | fi | |
13682 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13683 | LIBS=$ac_check_lib_save_LIBS | |
13684 | fi | |
13685 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
13686 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
13687 | if test $ac_cv_lib_dl_dlopen = yes; then | |
13688 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
13689 | else | |
13690 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
13691 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
13692 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
13693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13694 | else | |
13695 | ac_check_lib_save_LIBS=$LIBS | |
13696 | LIBS="-lsvld $LIBS" | |
13697 | cat >conftest.$ac_ext <<_ACEOF | |
13698 | #line $LINENO "configure" | |
13699 | #include "confdefs.h" | |
13700 | ||
13701 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13702 | #ifdef __cplusplus | |
13703 | extern "C" | |
13704 | #endif | |
13705 | /* We use char because int might match the return type of a gcc2 | |
13706 | builtin and then its argument prototype would still apply. */ | |
13707 | char dlopen (); | |
13708 | #ifdef F77_DUMMY_MAIN | |
13709 | # ifdef __cplusplus | |
13710 | extern "C" | |
13711 | # endif | |
13712 | int F77_DUMMY_MAIN() { return 1; } | |
13713 | #endif | |
13714 | int | |
13715 | main () | |
13716 | { | |
13717 | dlopen (); | |
13718 | ; | |
13719 | return 0; | |
13720 | } | |
13721 | _ACEOF | |
13722 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13723 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13724 | (eval $ac_link) 2>&5 | |
13725 | ac_status=$? | |
13726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13727 | (exit $ac_status); } && | |
13728 | { ac_try='test -s conftest$ac_exeext' | |
13729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13730 | (eval $ac_try) 2>&5 | |
13731 | ac_status=$? | |
13732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13733 | (exit $ac_status); }; }; then | |
13734 | ac_cv_lib_svld_dlopen=yes | |
13735 | else | |
13736 | echo "$as_me: failed program was:" >&5 | |
13737 | cat conftest.$ac_ext >&5 | |
13738 | ac_cv_lib_svld_dlopen=no | |
13739 | fi | |
13740 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13741 | LIBS=$ac_check_lib_save_LIBS | |
13742 | fi | |
13743 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
13744 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
13745 | if test $ac_cv_lib_svld_dlopen = yes; then | |
13746 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
13747 | else | |
13748 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
13749 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
13750 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
13751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13752 | else | |
13753 | ac_check_lib_save_LIBS=$LIBS | |
13754 | LIBS="-ldld $LIBS" | |
13755 | cat >conftest.$ac_ext <<_ACEOF | |
13756 | #line $LINENO "configure" | |
13757 | #include "confdefs.h" | |
13758 | ||
13759 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13760 | #ifdef __cplusplus | |
13761 | extern "C" | |
13762 | #endif | |
13763 | /* We use char because int might match the return type of a gcc2 | |
13764 | builtin and then its argument prototype would still apply. */ | |
13765 | char dld_link (); | |
13766 | #ifdef F77_DUMMY_MAIN | |
13767 | # ifdef __cplusplus | |
13768 | extern "C" | |
13769 | # endif | |
13770 | int F77_DUMMY_MAIN() { return 1; } | |
13771 | #endif | |
13772 | int | |
13773 | main () | |
13774 | { | |
13775 | dld_link (); | |
13776 | ; | |
13777 | return 0; | |
13778 | } | |
13779 | _ACEOF | |
13780 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13781 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13782 | (eval $ac_link) 2>&5 | |
13783 | ac_status=$? | |
13784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13785 | (exit $ac_status); } && | |
13786 | { ac_try='test -s conftest$ac_exeext' | |
13787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13788 | (eval $ac_try) 2>&5 | |
13789 | ac_status=$? | |
13790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13791 | (exit $ac_status); }; }; then | |
13792 | ac_cv_lib_dld_dld_link=yes | |
13793 | else | |
13794 | echo "$as_me: failed program was:" >&5 | |
13795 | cat conftest.$ac_ext >&5 | |
13796 | ac_cv_lib_dld_dld_link=no | |
13797 | fi | |
13798 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13799 | LIBS=$ac_check_lib_save_LIBS | |
13800 | fi | |
13801 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
13802 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
13803 | if test $ac_cv_lib_dld_dld_link = yes; then | |
13804 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
13805 | fi | |
13806 | ||
13807 | ||
13808 | fi | |
13809 | ||
13810 | ||
13811 | fi | |
13812 | ||
13813 | ||
13814 | fi | |
13815 | ||
13816 | ||
13817 | fi | |
13818 | ||
13819 | ||
13820 | fi | |
13821 | ||
13822 | ;; | |
13823 | esac | |
13824 | ||
13825 | if test "x$lt_cv_dlopen" != xno; then | |
13826 | enable_dlopen=yes | |
13827 | else | |
13828 | enable_dlopen=no | |
13829 | fi | |
13830 | ||
13831 | case $lt_cv_dlopen in | |
13832 | dlopen) | |
13833 | save_CPPFLAGS="$CPPFLAGS" | |
13834 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
13835 | ||
13836 | save_LDFLAGS="$LDFLAGS" | |
13837 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
13838 | ||
13839 | save_LIBS="$LIBS" | |
13840 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
13841 | ||
13842 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
13843 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
13844 | if test "${lt_cv_dlopen_self+set}" = set; then | |
13845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13846 | else | |
13847 | if test "$cross_compiling" = yes; then : | |
13848 | lt_cv_dlopen_self=cross | |
13849 | else | |
13850 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
13851 | lt_status=$lt_dlunknown | |
13852 | cat > conftest.$ac_ext <<EOF | |
13853 | #line 13853 "configure" | |
13854 | #include "confdefs.h" | |
13855 | ||
13856 | #if HAVE_DLFCN_H | |
13857 | #include <dlfcn.h> | |
13858 | #endif | |
13859 | ||
13860 | #include <stdio.h> | |
13861 | ||
13862 | #ifdef RTLD_GLOBAL | |
13863 | # define LT_DLGLOBAL RTLD_GLOBAL | |
13864 | #else | |
13865 | # ifdef DL_GLOBAL | |
13866 | # define LT_DLGLOBAL DL_GLOBAL | |
13867 | # else | |
13868 | # define LT_DLGLOBAL 0 | |
13869 | # endif | |
13870 | #endif | |
13871 | ||
13872 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
13873 | find out it does not work in some platform. */ | |
13874 | #ifndef LT_DLLAZY_OR_NOW | |
13875 | # ifdef RTLD_LAZY | |
13876 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
13877 | # else | |
13878 | # ifdef DL_LAZY | |
13879 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
13880 | # else | |
13881 | # ifdef RTLD_NOW | |
13882 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
13883 | # else | |
13884 | # ifdef DL_NOW | |
13885 | # define LT_DLLAZY_OR_NOW DL_NOW | |
13886 | # else | |
13887 | # define LT_DLLAZY_OR_NOW 0 | |
13888 | # endif | |
13889 | # endif | |
13890 | # endif | |
13891 | # endif | |
13892 | #endif | |
13893 | ||
13894 | #ifdef __cplusplus | |
13895 | extern "C" void exit (int); | |
13896 | #endif | |
13897 | ||
13898 | void fnord() { int i=42;} | |
13899 | int main () | |
13900 | { | |
13901 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
13902 | int status = $lt_dlunknown; | |
13903 | ||
13904 | if (self) | |
13905 | { | |
13906 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
13907 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
13908 | /* dlclose (self); */ | |
13909 | } | |
13910 | ||
13911 | exit (status); | |
13912 | } | |
13913 | EOF | |
13914 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13915 | (eval $ac_link) 2>&5 | |
13916 | ac_status=$? | |
13917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13918 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
13919 | (./conftest; exit; ) 2>/dev/null | |
13920 | lt_status=$? | |
13921 | case x$lt_status in | |
13922 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
13923 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
13924 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
13925 | esac | |
13926 | else : | |
13927 | # compilation failed | |
13928 | lt_cv_dlopen_self=no | |
13929 | fi | |
13930 | fi | |
13931 | rm -fr conftest* | |
13932 | ||
13933 | ||
13934 | fi | |
13935 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
13936 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
13937 | ||
13938 | if test "x$lt_cv_dlopen_self" = xyes; then | |
13939 | LDFLAGS="$LDFLAGS $link_static_flag" | |
13940 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
13941 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
13942 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
13943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13944 | else | |
13945 | if test "$cross_compiling" = yes; then : | |
13946 | lt_cv_dlopen_self_static=cross | |
13947 | else | |
13948 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
13949 | lt_status=$lt_dlunknown | |
13950 | cat > conftest.$ac_ext <<EOF | |
13951 | #line 13951 "configure" | |
13952 | #include "confdefs.h" | |
13953 | ||
13954 | #if HAVE_DLFCN_H | |
13955 | #include <dlfcn.h> | |
13956 | #endif | |
13957 | ||
13958 | #include <stdio.h> | |
13959 | ||
13960 | #ifdef RTLD_GLOBAL | |
13961 | # define LT_DLGLOBAL RTLD_GLOBAL | |
13962 | #else | |
13963 | # ifdef DL_GLOBAL | |
13964 | # define LT_DLGLOBAL DL_GLOBAL | |
13965 | # else | |
13966 | # define LT_DLGLOBAL 0 | |
13967 | # endif | |
13968 | #endif | |
13969 | ||
13970 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
13971 | find out it does not work in some platform. */ | |
13972 | #ifndef LT_DLLAZY_OR_NOW | |
13973 | # ifdef RTLD_LAZY | |
13974 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
13975 | # else | |
13976 | # ifdef DL_LAZY | |
13977 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
13978 | # else | |
13979 | # ifdef RTLD_NOW | |
13980 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
13981 | # else | |
13982 | # ifdef DL_NOW | |
13983 | # define LT_DLLAZY_OR_NOW DL_NOW | |
13984 | # else | |
13985 | # define LT_DLLAZY_OR_NOW 0 | |
13986 | # endif | |
13987 | # endif | |
13988 | # endif | |
13989 | # endif | |
13990 | #endif | |
13991 | ||
13992 | #ifdef __cplusplus | |
13993 | extern "C" void exit (int); | |
13994 | #endif | |
13995 | ||
13996 | void fnord() { int i=42;} | |
13997 | int main () | |
13998 | { | |
13999 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
14000 | int status = $lt_dlunknown; | |
14001 | ||
14002 | if (self) | |
14003 | { | |
14004 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
14005 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
14006 | /* dlclose (self); */ | |
14007 | } | |
14008 | ||
14009 | exit (status); | |
14010 | } | |
14011 | EOF | |
14012 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14013 | (eval $ac_link) 2>&5 | |
14014 | ac_status=$? | |
14015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14016 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
14017 | (./conftest; exit; ) 2>/dev/null | |
14018 | lt_status=$? | |
14019 | case x$lt_status in | |
14020 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
14021 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
14022 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
14023 | esac | |
14024 | else : | |
14025 | # compilation failed | |
14026 | lt_cv_dlopen_self_static=no | |
14027 | fi | |
14028 | fi | |
14029 | rm -fr conftest* | |
14030 | ||
14031 | ||
14032 | fi | |
14033 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
14034 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
14035 | fi | |
14036 | ||
14037 | CPPFLAGS="$save_CPPFLAGS" | |
14038 | LDFLAGS="$save_LDFLAGS" | |
14039 | LIBS="$save_LIBS" | |
14040 | ;; | |
14041 | esac | |
14042 | ||
14043 | case $lt_cv_dlopen_self in | |
14044 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
14045 | *) enable_dlopen_self=unknown ;; | |
14046 | esac | |
14047 | ||
14048 | case $lt_cv_dlopen_self_static in | |
14049 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
14050 | *) enable_dlopen_self_static=unknown ;; | |
14051 | esac | |
14052 | fi | |
14053 | ||
14054 | ||
14055 | # The else clause should only fire when bootstrapping the | |
14056 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
14057 | # with your package, and you will get complaints that there are | |
14058 | # no rules to generate ltmain.sh. | |
14059 | if test -f "$ltmain"; then | |
14060 | # Now quote all the things that may contain metacharacters while being | |
14061 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
14062 | # variables and quote the copies for generation of the libtool script. | |
14063 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \ | |
14064 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
14065 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
14066 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
14067 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
14068 | lt_cv_sys_global_symbol_to_c_name_address \ | |
14069 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
14070 | old_postinstall_cmds old_postuninstall_cmds \ | |
14071 | compiler_GCJ \ | |
14072 | CC_GCJ \ | |
14073 | LD_GCJ \ | |
14074 | lt_prog_compiler_wl_GCJ \ | |
14075 | lt_prog_compiler_pic_GCJ \ | |
14076 | lt_prog_compiler_static_GCJ \ | |
14077 | lt_prog_compiler_no_builtin_flag_GCJ \ | |
14078 | export_dynamic_flag_spec_GCJ \ | |
14079 | thread_safe_flag_spec_GCJ \ | |
14080 | whole_archive_flag_spec_GCJ \ | |
14081 | old_archive_cmds_GCJ \ | |
14082 | old_archive_from_new_cmds_GCJ \ | |
14083 | predep_objects_GCJ \ | |
14084 | postdep_objects_GCJ \ | |
14085 | predeps_GCJ \ | |
14086 | postdeps_GCJ \ | |
14087 | compiler_lib_search_path_GCJ \ | |
14088 | archive_cmds_GCJ \ | |
14089 | archive_expsym_cmds_GCJ \ | |
14090 | postinstall_cmds_GCJ \ | |
14091 | postuninstall_cmds_GCJ \ | |
14092 | old_archive_from_expsyms_cmds_GCJ \ | |
14093 | allow_undefined_flag_GCJ \ | |
14094 | no_undefined_flag_GCJ \ | |
14095 | export_symbols_cmds_GCJ \ | |
14096 | hardcode_libdir_flag_spec_GCJ \ | |
14097 | hardcode_libdir_separator_GCJ \ | |
14098 | lt_cv_prog_compiler_c_o_GCJ \ | |
14099 | exclude_expsyms_GCJ \ | |
14100 | include_expsyms_GCJ; do | |
14101 | ||
14102 | case $var in | |
14103 | old_archive_cmds_GCJ | \ | |
14104 | old_archive_from_new_cmds_GCJ | \ | |
14105 | archive_cmds_GCJ | \ | |
14106 | archive_expsym_cmds_GCJ | \ | |
14107 | old_archive_from_expsyms_cmds_GCJ | \ | |
14108 | export_symbols_cmds_GCJ | \ | |
14109 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
14110 | postinstall_cmds | postuninstall_cmds | \ | |
14111 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
14112 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
14113 | # Double-quote double-evaled strings. | |
14114 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
14115 | ;; | |
14116 | *) | |
14117 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
14118 | ;; | |
14119 | esac | |
14120 | done | |
14121 | ||
14122 | case $lt_echo in | |
14123 | *'\$0 --fallback-echo"') | |
14124 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
14125 | ;; | |
14126 | esac | |
14127 | ||
14128 | cfgfile="$ofile" | |
14129 | ||
14130 | cat <<__EOF__ >> "$cfgfile" | |
14131 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
14132 | ||
14133 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
14134 | ||
14135 | # Shell to use when invoking shell scripts. | |
14136 | SHELL=$lt_SHELL | |
14137 | ||
14138 | # Whether or not to build shared libraries. | |
14139 | build_libtool_libs=$enable_shared | |
14140 | ||
14141 | # Whether or not to build static libraries. | |
14142 | build_old_libs=$enable_static | |
14143 | ||
14144 | # Whether or not to add -lc for building shared libraries. | |
14145 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ | |
14146 | ||
14147 | # Whether or not to optimize for fast installation. | |
14148 | fast_install=$enable_fast_install | |
14149 | ||
14150 | # The host system. | |
14151 | host_alias=$host_alias | |
14152 | host=$host | |
14153 | ||
14154 | # An echo program that does not interpret backslashes. | |
14155 | echo=$lt_echo | |
14156 | ||
14157 | # The archiver. | |
14158 | AR=$lt_AR | |
14159 | AR_FLAGS=$lt_AR_FLAGS | |
14160 | ||
14161 | # A C compiler. | |
14162 | LTCC=$lt_LTCC | |
14163 | ||
14164 | # A language-specific compiler. | |
14165 | CC=$lt_compiler_GCJ | |
14166 | ||
14167 | # Is the compiler the GNU C compiler? | |
14168 | with_gcc=$GCC_GCJ | |
14169 | ||
14170 | # The linker used to build libraries. | |
14171 | LD=$lt_LD_GCJ | |
14172 | ||
14173 | # Whether we need hard or soft links. | |
14174 | LN_S=$lt_LN_S | |
14175 | ||
14176 | # A BSD-compatible nm program. | |
14177 | NM=$lt_NM | |
14178 | ||
14179 | # A sed program that does not truncate output. | |
14180 | SED=$lt_SED | |
14181 | ||
14182 | # A symbol stripping program | |
14183 | STRIP=$STRIP | |
14184 | ||
14185 | # Used to examine libraries when file_magic_cmd begins "file" | |
14186 | MAGIC_CMD=$MAGIC_CMD | |
14187 | ||
14188 | # Used on cygwin: DLL creation program. | |
14189 | DLLTOOL="$DLLTOOL" | |
14190 | ||
14191 | # Used on cygwin: object dumper. | |
14192 | OBJDUMP="$OBJDUMP" | |
14193 | ||
14194 | # Used on cygwin: assembler. | |
14195 | AS="$AS" | |
14196 | ||
14197 | # The name of the directory that contains temporary libtool files. | |
14198 | objdir=$objdir | |
14199 | ||
14200 | # How to create reloadable object files. | |
14201 | reload_flag=$lt_reload_flag | |
14202 | reload_cmds=$lt_reload_cmds | |
14203 | ||
14204 | # How to pass a linker flag through the compiler. | |
14205 | wl=$lt_lt_prog_compiler_wl_GCJ | |
14206 | ||
14207 | # Object file suffix (normally "o"). | |
14208 | objext="$ac_objext" | |
14209 | ||
14210 | # Old archive suffix (normally "a"). | |
14211 | libext="$libext" | |
14212 | ||
14213 | # Executable file suffix (normally ""). | |
14214 | exeext="$exeext" | |
14215 | ||
14216 | # Additional compiler flags for building library objects. | |
14217 | pic_flag=$lt_lt_prog_compiler_pic_GCJ | |
14218 | pic_mode=$pic_mode | |
14219 | ||
14220 | # What is the maximum length of a command? | |
14221 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
14222 | ||
14223 | # Does compiler simultaneously support -c and -o options? | |
14224 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | |
14225 | ||
14226 | # Must we lock files when doing compilation ? | |
14227 | need_locks=$lt_need_locks | |
14228 | ||
14229 | # Do we need the lib prefix for modules? | |
14230 | need_lib_prefix=$need_lib_prefix | |
14231 | ||
14232 | # Do we need a version for libraries? | |
14233 | need_version=$need_version | |
14234 | ||
14235 | # Whether dlopen is supported. | |
14236 | dlopen_support=$enable_dlopen | |
14237 | ||
14238 | # Whether dlopen of programs is supported. | |
14239 | dlopen_self=$enable_dlopen_self | |
14240 | ||
14241 | # Whether dlopen of statically linked programs is supported. | |
14242 | dlopen_self_static=$enable_dlopen_self_static | |
14243 | ||
14244 | # Compiler flag to prevent dynamic linking. | |
14245 | link_static_flag=$lt_lt_prog_compiler_static_GCJ | |
14246 | ||
14247 | # Compiler flag to turn off builtin functions. | |
14248 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | |
14249 | ||
14250 | # Compiler flag to allow reflexive dlopens. | |
14251 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | |
14252 | ||
14253 | # Compiler flag to generate shared objects directly from archives. | |
14254 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | |
14255 | ||
14256 | # Compiler flag to generate thread-safe objects. | |
14257 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | |
14258 | ||
14259 | # Library versioning type. | |
14260 | version_type=$version_type | |
14261 | ||
14262 | # Format of library name prefix. | |
14263 | libname_spec=$lt_libname_spec | |
14264 | ||
14265 | # List of archive names. First name is the real one, the rest are links. | |
14266 | # The last name is the one that the linker finds with -lNAME. | |
14267 | library_names_spec=$lt_library_names_spec | |
14268 | ||
14269 | # The coded name of the library, if different from the real name. | |
14270 | soname_spec=$lt_soname_spec | |
14271 | ||
14272 | # Commands used to build and install an old-style archive. | |
14273 | RANLIB=$lt_RANLIB | |
14274 | old_archive_cmds=$lt_old_archive_cmds_GCJ | |
14275 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
14276 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
14277 | ||
14278 | # Create an old-style archive from a shared archive. | |
14279 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | |
14280 | ||
14281 | # Create a temporary old-style archive to link instead of a shared archive. | |
14282 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | |
14283 | ||
14284 | # Commands used to build and install a shared archive. | |
14285 | archive_cmds=$lt_archive_cmds_GCJ | |
14286 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | |
14287 | postinstall_cmds=$lt_postinstall_cmds | |
14288 | postuninstall_cmds=$lt_postuninstall_cmds | |
14289 | ||
14290 | # Commands to strip libraries. | |
14291 | old_striplib=$lt_old_striplib | |
14292 | striplib=$lt_striplib | |
14293 | ||
14294 | # Dependencies to place before the objects being linked to create a | |
14295 | # shared library. | |
14296 | predep_objects=$lt_predep_objects_GCJ | |
14297 | ||
14298 | # Dependencies to place after the objects being linked to create a | |
14299 | # shared library. | |
14300 | postdep_objects=$lt_postdep_objects_GCJ | |
14301 | ||
14302 | # Dependencies to place before the objects being linked to create a | |
14303 | # shared library. | |
14304 | predeps=$lt_predeps_GCJ | |
14305 | ||
14306 | # Dependencies to place after the objects being linked to create a | |
14307 | # shared library. | |
14308 | postdeps=$lt_postdeps_GCJ | |
14309 | ||
14310 | # The library search path used internally by the compiler when linking | |
14311 | # a shared library. | |
14312 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | |
14313 | ||
14314 | # Method to check whether dependent libraries are shared objects. | |
14315 | deplibs_check_method=$lt_deplibs_check_method | |
14316 | ||
14317 | # Command to use when deplibs_check_method == file_magic. | |
14318 | file_magic_cmd=$lt_file_magic_cmd | |
14319 | ||
14320 | # Flag that allows shared libraries with undefined symbols to be built. | |
14321 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ | |
14322 | ||
14323 | # Flag that forces no undefined symbols. | |
14324 | no_undefined_flag=$lt_no_undefined_flag_GCJ | |
14325 | ||
14326 | # Commands used to finish a libtool library installation in a directory. | |
14327 | finish_cmds=$lt_finish_cmds | |
14328 | ||
14329 | # Same as above, but a single script fragment to be evaled but not shown. | |
14330 | finish_eval=$lt_finish_eval | |
14331 | ||
14332 | # Take the output of nm and produce a listing of raw symbols and C names. | |
14333 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
14334 | ||
14335 | # Transform the output of nm in a proper C declaration | |
14336 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
14337 | ||
14338 | # Transform the output of nm in a C name address pair | |
14339 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
14340 | ||
14341 | # This is the shared library runtime path variable. | |
14342 | runpath_var=$runpath_var | |
14343 | ||
14344 | # This is the shared library path variable. | |
14345 | shlibpath_var=$shlibpath_var | |
14346 | ||
14347 | # Is shlibpath searched before the hard-coded library search path? | |
14348 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
14349 | ||
14350 | # How to hardcode a shared library path into an executable. | |
14351 | hardcode_action=$hardcode_action_GCJ | |
14352 | ||
14353 | # Whether we should hardcode library paths into libraries. | |
14354 | hardcode_into_libs=$hardcode_into_libs | |
14355 | ||
14356 | # Flag to hardcode \$libdir into a binary during linking. | |
14357 | # This must work even if \$libdir does not exist. | |
14358 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | |
14359 | ||
14360 | # Whether we need a single -rpath flag with a separated argument. | |
14361 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | |
14362 | ||
14363 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | |
14364 | # resulting binary. | |
14365 | hardcode_direct=$hardcode_direct_GCJ | |
14366 | ||
14367 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
14368 | # resulting binary. | |
14369 | hardcode_minus_L=$hardcode_minus_L_GCJ | |
14370 | ||
14371 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
14372 | # the resulting binary. | |
14373 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | |
14374 | ||
14375 | # Variables whose values should be saved in libtool wrapper scripts and | |
14376 | # restored at relink time. | |
14377 | variables_saved_for_relink="$variables_saved_for_relink" | |
14378 | ||
14379 | # Whether libtool must link a program against all its dependency libraries. | |
14380 | link_all_deplibs=$link_all_deplibs_GCJ | |
14381 | ||
14382 | # Compile-time system search path for libraries | |
14383 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
14384 | ||
14385 | # Run-time system search path for libraries | |
14386 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
14387 | ||
14388 | # Fix the shell variable \$srcfile for the compiler. | |
14389 | fix_srcfile_path="$fix_srcfile_path_GCJ" | |
14390 | ||
14391 | # Set to yes if exported symbols are required. | |
14392 | always_export_symbols=$always_export_symbols_GCJ | |
14393 | ||
14394 | # The commands to list exported symbols. | |
14395 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ | |
14396 | ||
14397 | # The commands to extract the exported symbol list from a shared archive. | |
14398 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
14399 | ||
14400 | # Symbols that should not be listed in the preloaded symbols. | |
14401 | exclude_expsyms=$lt_exclude_expsyms_GCJ | |
14402 | ||
14403 | # Symbols that must always be exported. | |
14404 | include_expsyms=$lt_include_expsyms_GCJ | |
14405 | ||
14406 | # ### END LIBTOOL TAG CONFIG: $tagname | |
14407 | ||
14408 | __EOF__ | |
14409 | ||
14410 | ||
14411 | else | |
14412 | # If there is no Makefile yet, we rely on a make rule to execute | |
14413 | # `config.status --recheck' to rerun these tests and create the | |
14414 | # libtool script then. | |
14415 | test -f Makefile && make "$ltmain" | |
14416 | fi | |
14417 | ||
14418 | ||
14419 | ac_ext=c | |
14420 | ac_cpp='$CPP $CPPFLAGS' | |
14421 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14422 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14423 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14424 | ||
14425 | CC="$lt_save_CC" | |
14426 | ||
14427 | ;; | |
14428 | ||
14429 | RC) | |
14430 | ||
14431 | ||
14432 | ||
14433 | # Source file extension for RC test sources. | |
14434 | ac_ext=rc | |
14435 | ||
14436 | # Object file extension for compiled RC test sources. | |
14437 | objext=o | |
14438 | objext_RC=$objext | |
14439 | ||
14440 | # Code to be used in simple compile tests | |
14441 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' | |
14442 | ||
14443 | # Code to be used in simple link tests | |
14444 | lt_simple_link_test_code="$lt_simple_compile_test_code" | |
14445 | ||
14446 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
14447 | ||
14448 | # If no C compiler was specified, use CC. | |
14449 | LTCC=${LTCC-"$CC"} | |
14450 | ||
14451 | # Allow CC to be a program name with arguments. | |
14452 | set dummy $CC | |
14453 | compiler="$2" | |
14454 | ||
14455 | ||
14456 | # Allow CC to be a program name with arguments. | |
14457 | lt_save_CC="$CC" | |
14458 | CC=${RC-"windres"} | |
14459 | set dummy $CC | |
14460 | compiler="$2" | |
14461 | compiler_RC=$CC | |
14462 | lt_cv_prog_compiler_c_o_RC=yes | |
14463 | ||
14464 | # The else clause should only fire when bootstrapping the | |
14465 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
14466 | # with your package, and you will get complaints that there are | |
14467 | # no rules to generate ltmain.sh. | |
14468 | if test -f "$ltmain"; then | |
14469 | # Now quote all the things that may contain metacharacters while being | |
14470 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
14471 | # variables and quote the copies for generation of the libtool script. | |
14472 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \ | |
14473 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
14474 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
14475 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
14476 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
14477 | lt_cv_sys_global_symbol_to_c_name_address \ | |
14478 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
14479 | old_postinstall_cmds old_postuninstall_cmds \ | |
14480 | compiler_RC \ | |
14481 | CC_RC \ | |
14482 | LD_RC \ | |
14483 | lt_prog_compiler_wl_RC \ | |
14484 | lt_prog_compiler_pic_RC \ | |
14485 | lt_prog_compiler_static_RC \ | |
14486 | lt_prog_compiler_no_builtin_flag_RC \ | |
14487 | export_dynamic_flag_spec_RC \ | |
14488 | thread_safe_flag_spec_RC \ | |
14489 | whole_archive_flag_spec_RC \ | |
14490 | old_archive_cmds_RC \ | |
14491 | old_archive_from_new_cmds_RC \ | |
14492 | predep_objects_RC \ | |
14493 | postdep_objects_RC \ | |
14494 | predeps_RC \ | |
14495 | postdeps_RC \ | |
14496 | compiler_lib_search_path_RC \ | |
14497 | archive_cmds_RC \ | |
14498 | archive_expsym_cmds_RC \ | |
14499 | postinstall_cmds_RC \ | |
14500 | postuninstall_cmds_RC \ | |
14501 | old_archive_from_expsyms_cmds_RC \ | |
14502 | allow_undefined_flag_RC \ | |
14503 | no_undefined_flag_RC \ | |
14504 | export_symbols_cmds_RC \ | |
14505 | hardcode_libdir_flag_spec_RC \ | |
14506 | hardcode_libdir_separator_RC \ | |
14507 | lt_cv_prog_compiler_c_o_RC \ | |
14508 | exclude_expsyms_RC \ | |
14509 | include_expsyms_RC; do | |
14510 | ||
14511 | case $var in | |
14512 | old_archive_cmds_RC | \ | |
14513 | old_archive_from_new_cmds_RC | \ | |
14514 | archive_cmds_RC | \ | |
14515 | archive_expsym_cmds_RC | \ | |
14516 | old_archive_from_expsyms_cmds_RC | \ | |
14517 | export_symbols_cmds_RC | \ | |
14518 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
14519 | postinstall_cmds | postuninstall_cmds | \ | |
14520 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
14521 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
14522 | # Double-quote double-evaled strings. | |
14523 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
14524 | ;; | |
14525 | *) | |
14526 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
14527 | ;; | |
14528 | esac | |
14529 | done | |
14530 | ||
14531 | case $lt_echo in | |
14532 | *'\$0 --fallback-echo"') | |
14533 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
14534 | ;; | |
14535 | esac | |
14536 | ||
14537 | cfgfile="$ofile" | |
14538 | ||
14539 | cat <<__EOF__ >> "$cfgfile" | |
14540 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
14541 | ||
14542 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
14543 | ||
14544 | # Shell to use when invoking shell scripts. | |
14545 | SHELL=$lt_SHELL | |
14546 | ||
14547 | # Whether or not to build shared libraries. | |
14548 | build_libtool_libs=$enable_shared | |
14549 | ||
14550 | # Whether or not to build static libraries. | |
14551 | build_old_libs=$enable_static | |
14552 | ||
14553 | # Whether or not to add -lc for building shared libraries. | |
14554 | build_libtool_need_lc=$archive_cmds_need_lc_RC | |
14555 | ||
14556 | # Whether or not to optimize for fast installation. | |
14557 | fast_install=$enable_fast_install | |
14558 | ||
14559 | # The host system. | |
14560 | host_alias=$host_alias | |
14561 | host=$host | |
14562 | ||
14563 | # An echo program that does not interpret backslashes. | |
14564 | echo=$lt_echo | |
14565 | ||
14566 | # The archiver. | |
14567 | AR=$lt_AR | |
14568 | AR_FLAGS=$lt_AR_FLAGS | |
14569 | ||
14570 | # A C compiler. | |
14571 | LTCC=$lt_LTCC | |
14572 | ||
14573 | # A language-specific compiler. | |
14574 | CC=$lt_compiler_RC | |
14575 | ||
14576 | # Is the compiler the GNU C compiler? | |
14577 | with_gcc=$GCC_RC | |
14578 | ||
14579 | # The linker used to build libraries. | |
14580 | LD=$lt_LD_RC | |
14581 | ||
14582 | # Whether we need hard or soft links. | |
14583 | LN_S=$lt_LN_S | |
14584 | ||
14585 | # A BSD-compatible nm program. | |
14586 | NM=$lt_NM | |
14587 | ||
14588 | # A sed program that does not truncate output. | |
14589 | SED=$lt_SED | |
14590 | ||
14591 | # A symbol stripping program | |
14592 | STRIP=$STRIP | |
14593 | ||
14594 | # Used to examine libraries when file_magic_cmd begins "file" | |
14595 | MAGIC_CMD=$MAGIC_CMD | |
14596 | ||
14597 | # Used on cygwin: DLL creation program. | |
14598 | DLLTOOL="$DLLTOOL" | |
14599 | ||
14600 | # Used on cygwin: object dumper. | |
14601 | OBJDUMP="$OBJDUMP" | |
14602 | ||
14603 | # Used on cygwin: assembler. | |
14604 | AS="$AS" | |
14605 | ||
14606 | # The name of the directory that contains temporary libtool files. | |
14607 | objdir=$objdir | |
14608 | ||
14609 | # How to create reloadable object files. | |
14610 | reload_flag=$lt_reload_flag | |
14611 | reload_cmds=$lt_reload_cmds | |
14612 | ||
14613 | # How to pass a linker flag through the compiler. | |
14614 | wl=$lt_lt_prog_compiler_wl_RC | |
14615 | ||
14616 | # Object file suffix (normally "o"). | |
14617 | objext="$ac_objext" | |
14618 | ||
14619 | # Old archive suffix (normally "a"). | |
14620 | libext="$libext" | |
14621 | ||
14622 | # Executable file suffix (normally ""). | |
14623 | exeext="$exeext" | |
14624 | ||
14625 | # Additional compiler flags for building library objects. | |
14626 | pic_flag=$lt_lt_prog_compiler_pic_RC | |
14627 | pic_mode=$pic_mode | |
14628 | ||
14629 | # What is the maximum length of a command? | |
14630 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
14631 | ||
14632 | # Does compiler simultaneously support -c and -o options? | |
14633 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | |
14634 | ||
14635 | # Must we lock files when doing compilation ? | |
14636 | need_locks=$lt_need_locks | |
14637 | ||
14638 | # Do we need the lib prefix for modules? | |
14639 | need_lib_prefix=$need_lib_prefix | |
14640 | ||
14641 | # Do we need a version for libraries? | |
14642 | need_version=$need_version | |
14643 | ||
14644 | # Whether dlopen is supported. | |
14645 | dlopen_support=$enable_dlopen | |
14646 | ||
14647 | # Whether dlopen of programs is supported. | |
14648 | dlopen_self=$enable_dlopen_self | |
14649 | ||
14650 | # Whether dlopen of statically linked programs is supported. | |
14651 | dlopen_self_static=$enable_dlopen_self_static | |
14652 | ||
14653 | # Compiler flag to prevent dynamic linking. | |
14654 | link_static_flag=$lt_lt_prog_compiler_static_RC | |
14655 | ||
14656 | # Compiler flag to turn off builtin functions. | |
14657 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | |
14658 | ||
14659 | # Compiler flag to allow reflexive dlopens. | |
14660 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | |
14661 | ||
14662 | # Compiler flag to generate shared objects directly from archives. | |
14663 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | |
14664 | ||
14665 | # Compiler flag to generate thread-safe objects. | |
14666 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | |
14667 | ||
14668 | # Library versioning type. | |
14669 | version_type=$version_type | |
14670 | ||
14671 | # Format of library name prefix. | |
14672 | libname_spec=$lt_libname_spec | |
14673 | ||
14674 | # List of archive names. First name is the real one, the rest are links. | |
14675 | # The last name is the one that the linker finds with -lNAME. | |
14676 | library_names_spec=$lt_library_names_spec | |
14677 | ||
14678 | # The coded name of the library, if different from the real name. | |
14679 | soname_spec=$lt_soname_spec | |
14680 | ||
14681 | # Commands used to build and install an old-style archive. | |
14682 | RANLIB=$lt_RANLIB | |
14683 | old_archive_cmds=$lt_old_archive_cmds_RC | |
14684 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
14685 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
14686 | ||
14687 | # Create an old-style archive from a shared archive. | |
14688 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | |
14689 | ||
14690 | # Create a temporary old-style archive to link instead of a shared archive. | |
14691 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | |
14692 | ||
14693 | # Commands used to build and install a shared archive. | |
14694 | archive_cmds=$lt_archive_cmds_RC | |
14695 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC | |
14696 | postinstall_cmds=$lt_postinstall_cmds | |
14697 | postuninstall_cmds=$lt_postuninstall_cmds | |
14698 | ||
14699 | # Commands to strip libraries. | |
14700 | old_striplib=$lt_old_striplib | |
14701 | striplib=$lt_striplib | |
14702 | ||
14703 | # Dependencies to place before the objects being linked to create a | |
14704 | # shared library. | |
14705 | predep_objects=$lt_predep_objects_RC | |
14706 | ||
14707 | # Dependencies to place after the objects being linked to create a | |
14708 | # shared library. | |
14709 | postdep_objects=$lt_postdep_objects_RC | |
14710 | ||
14711 | # Dependencies to place before the objects being linked to create a | |
14712 | # shared library. | |
14713 | predeps=$lt_predeps_RC | |
14714 | ||
14715 | # Dependencies to place after the objects being linked to create a | |
14716 | # shared library. | |
14717 | postdeps=$lt_postdeps_RC | |
14718 | ||
14719 | # The library search path used internally by the compiler when linking | |
14720 | # a shared library. | |
14721 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC | |
14722 | ||
14723 | # Method to check whether dependent libraries are shared objects. | |
14724 | deplibs_check_method=$lt_deplibs_check_method | |
14725 | ||
14726 | # Command to use when deplibs_check_method == file_magic. | |
14727 | file_magic_cmd=$lt_file_magic_cmd | |
14728 | ||
14729 | # Flag that allows shared libraries with undefined symbols to be built. | |
14730 | allow_undefined_flag=$lt_allow_undefined_flag_RC | |
14731 | ||
14732 | # Flag that forces no undefined symbols. | |
14733 | no_undefined_flag=$lt_no_undefined_flag_RC | |
14734 | ||
14735 | # Commands used to finish a libtool library installation in a directory. | |
14736 | finish_cmds=$lt_finish_cmds | |
14737 | ||
14738 | # Same as above, but a single script fragment to be evaled but not shown. | |
14739 | finish_eval=$lt_finish_eval | |
14740 | ||
14741 | # Take the output of nm and produce a listing of raw symbols and C names. | |
14742 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
14743 | ||
14744 | # Transform the output of nm in a proper C declaration | |
14745 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
14746 | ||
14747 | # Transform the output of nm in a C name address pair | |
14748 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
14749 | ||
14750 | # This is the shared library runtime path variable. | |
14751 | runpath_var=$runpath_var | |
14752 | ||
14753 | # This is the shared library path variable. | |
14754 | shlibpath_var=$shlibpath_var | |
14755 | ||
14756 | # Is shlibpath searched before the hard-coded library search path? | |
14757 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
14758 | ||
14759 | # How to hardcode a shared library path into an executable. | |
14760 | hardcode_action=$hardcode_action_RC | |
14761 | ||
14762 | # Whether we should hardcode library paths into libraries. | |
14763 | hardcode_into_libs=$hardcode_into_libs | |
14764 | ||
14765 | # Flag to hardcode \$libdir into a binary during linking. | |
14766 | # This must work even if \$libdir does not exist. | |
14767 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | |
14768 | ||
14769 | # Whether we need a single -rpath flag with a separated argument. | |
14770 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | |
14771 | ||
14772 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | |
14773 | # resulting binary. | |
14774 | hardcode_direct=$hardcode_direct_RC | |
14775 | ||
14776 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
14777 | # resulting binary. | |
14778 | hardcode_minus_L=$hardcode_minus_L_RC | |
14779 | ||
14780 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
14781 | # the resulting binary. | |
14782 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | |
14783 | ||
14784 | # Variables whose values should be saved in libtool wrapper scripts and | |
14785 | # restored at relink time. | |
14786 | variables_saved_for_relink="$variables_saved_for_relink" | |
14787 | ||
14788 | # Whether libtool must link a program against all its dependency libraries. | |
14789 | link_all_deplibs=$link_all_deplibs_RC | |
14790 | ||
14791 | # Compile-time system search path for libraries | |
14792 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
14793 | ||
14794 | # Run-time system search path for libraries | |
14795 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
14796 | ||
14797 | # Fix the shell variable \$srcfile for the compiler. | |
14798 | fix_srcfile_path="$fix_srcfile_path_RC" | |
14799 | ||
14800 | # Set to yes if exported symbols are required. | |
14801 | always_export_symbols=$always_export_symbols_RC | |
14802 | ||
14803 | # The commands to list exported symbols. | |
14804 | export_symbols_cmds=$lt_export_symbols_cmds_RC | |
14805 | ||
14806 | # The commands to extract the exported symbol list from a shared archive. | |
14807 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
14808 | ||
14809 | # Symbols that should not be listed in the preloaded symbols. | |
14810 | exclude_expsyms=$lt_exclude_expsyms_RC | |
14811 | ||
14812 | # Symbols that must always be exported. | |
14813 | include_expsyms=$lt_include_expsyms_RC | |
14814 | ||
14815 | # ### END LIBTOOL TAG CONFIG: $tagname | |
14816 | ||
14817 | __EOF__ | |
14818 | ||
14819 | ||
14820 | else | |
14821 | # If there is no Makefile yet, we rely on a make rule to execute | |
14822 | # `config.status --recheck' to rerun these tests and create the | |
14823 | # libtool script then. | |
14824 | test -f Makefile && make "$ltmain" | |
14825 | fi | |
14826 | ||
14827 | ||
14828 | ac_ext=c | |
14829 | ac_cpp='$CPP $CPPFLAGS' | |
14830 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14831 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14832 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14833 | ||
14834 | CC="$lt_save_CC" | |
14835 | ||
14836 | ;; | |
14837 | ||
14838 | *) | |
14839 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 | |
14840 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | |
14841 | { (exit 1); exit 1; }; } | |
14842 | ;; | |
14843 | esac | |
14844 | ||
14845 | # Append the new tag name to the list of available tags. | |
14846 | available_tags="$available_tags $tagname" | |
14847 | fi | |
14848 | done | |
14849 | IFS="$lt_save_ifs" | |
14850 | ||
14851 | # Now substitute the updated list of available tags. | |
14852 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | |
14853 | mv "${ofile}T" "$ofile" | |
14854 | chmod +x "$ofile" | |
14855 | else | |
14856 | rm -f "${ofile}T" | |
14857 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 | |
14858 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} | |
14859 | { (exit 1); exit 1; }; } | |
14860 | fi | |
14861 | fi | |
14862 | ||
14863 | ||
14864 | ||
14865 | # This can be used to rebuild libtool when needed | |
14866 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | |
14867 | ||
14868 | # Always use our own libtool. | |
14869 | LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent' | |
14870 | ||
14871 | # Prevent multiple expansion | |
14872 | ||
14873 | ||
14874 | ||
14875 | ||
14876 | ||
14877 | ||
14878 | ||
14879 | ||
14880 | ||
14881 | ||
14882 | ||
14883 | ||
14884 | ||
14885 | ||
14886 | ac_ext=c | |
14887 | ac_cpp='$CPP $CPPFLAGS' | |
14888 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14889 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14890 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14891 | ||
14892 | ||
14893 | ||
14894 | ac_ext=c | |
14895 | ac_cpp='$CPP $CPPFLAGS' | |
14896 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14897 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14898 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14899 | ||
14900 | ||
14901 | ||
14902 | ||
14903 | ||
14904 | ||
14905 | ||
14906 | ||
14907 | ||
14908 | ||
14909 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
14910 | ||
14911 | # find the maximum length of command line arguments | |
14912 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
14913 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
14914 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
14915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14916 | else | |
14917 | i=0 | |
14918 | testring="ABCD" | |
14919 | ||
14920 | case $host_os in | |
14921 | msdosdjgpp*) | |
14922 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
14923 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
14924 | # during glob expansion). Even if it were fixed, the result of this | |
14925 | # check would be larger than it should be. | |
14926 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
14927 | ;; | |
14928 | ||
14929 | gnu*) | |
14930 | # Under GNU Hurd, this test is not required because there is | |
14931 | # no limit to the length of command line arguments. | |
14932 | # Libtool will interpret -1 as no limit whatsoever | |
14933 | lt_cv_sys_max_cmd_len=-1; | |
14934 | ;; | |
14935 | ||
14936 | *) | |
14937 | # If test is not a shell built-in, we'll probably end up computing a | |
14938 | # maximum length that is only half of the actual maximum length, but | |
14939 | # we can't tell. | |
14940 | while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ | |
14941 | = "XX$testring") >/dev/null 2>&1 && | |
14942 | new_result=`expr "X$testring" : ".*" 2>&1` && | |
14943 | lt_cv_sys_max_cmd_len=$new_result && | |
14944 | test $i != 17 # 1/2 MB should be enough | |
14945 | do | |
14946 | i=`expr $i + 1` | |
14947 | testring=$testring$testring | |
14948 | done | |
14949 | testring= | |
14950 | # Add a significant safety factor because C++ compilers can tack on massive | |
14951 | # amounts of additional arguments before passing them to the linker. | |
14952 | # It appears as though 1/2 is a usable value. | |
14953 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
14954 | ;; | |
14955 | esac | |
14956 | ||
14957 | fi | |
14958 | ||
14959 | if test -n $lt_cv_sys_max_cmd_len ; then | |
14960 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
14961 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
14962 | else | |
14963 | echo "$as_me:$LINENO: result: none" >&5 | |
14964 | echo "${ECHO_T}none" >&6 | |
14965 | fi | |
14966 | ||
14967 | ||
14968 | ||
14969 | ||
14970 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
14971 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
14972 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | |
14973 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
14974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14975 | else | |
14976 | ||
14977 | # These are sane defaults that work on at least a few old systems. | |
14978 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
14979 | ||
14980 | # Character class describing NM global symbol codes. | |
14981 | symcode='[BCDEGRST]' | |
14982 | ||
14983 | # Regexp to match symbols that can be accessed directly from C. | |
14984 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
14985 | ||
14986 | # Transform the above into a raw symbol and a C symbol. | |
14987 | symxfrm='\1 \2\3 \3' | |
14988 | ||
14989 | # Transform an extracted symbol line into a proper C declaration | |
14990 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | |
14991 | ||
14992 | # Transform an extracted symbol line into symbol name and symbol address | |
14993 | 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'" | |
14994 | ||
14995 | # Define system-specific variables. | |
14996 | case $host_os in | |
14997 | aix*) | |
14998 | symcode='[BCDT]' | |
14999 | ;; | |
15000 | cygwin* | mingw* | pw32*) | |
15001 | symcode='[ABCDGISTW]' | |
15002 | ;; | |
15003 | hpux*) # Its linker distinguishes data from code symbols | |
15004 | if test "$host_cpu" = ia64; then | |
15005 | symcode='[ABCDEGRST]' | |
15006 | fi | |
15007 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
15008 | 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'" | |
15009 | ;; | |
15010 | irix* | nonstopux*) | |
15011 | symcode='[BCDEGRST]' | |
15012 | ;; | |
15013 | solaris* | sysv5*) | |
15014 | symcode='[BDT]' | |
15015 | ;; | |
15016 | sysv4) | |
15017 | symcode='[DFNSTU]' | |
15018 | ;; | |
15019 | esac | |
15020 | ||
15021 | # Handle CRLF in mingw tool chain | |
15022 | opt_cr= | |
15023 | case $host_os in | |
15024 | mingw*) | |
15025 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
15026 | ;; | |
15027 | esac | |
15028 | ||
15029 | # If we're using GNU nm, then use its standard symbol codes. | |
15030 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then | |
15031 | symcode='[ABCDGISTW]' | |
15032 | fi | |
15033 | ||
15034 | # Try without a prefix undercore, then with it. | |
15035 | for ac_symprfx in "" "_"; do | |
15036 | ||
15037 | # Write the raw and C identifiers. | |
15038 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" | |
15039 | ||
15040 | # Check to see that the pipe works correctly. | |
15041 | pipe_works=no | |
15042 | ||
15043 | rm -f conftest* | |
15044 | cat > conftest.$ac_ext <<EOF | |
15045 | #ifdef __cplusplus | |
15046 | extern "C" { | |
15047 | #endif | |
15048 | char nm_test_var; | |
15049 | void nm_test_func(){} | |
15050 | #ifdef __cplusplus | |
15051 | } | |
15052 | #endif | |
15053 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
15054 | EOF | |
15055 | ||
15056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15057 | (eval $ac_compile) 2>&5 | |
15058 | ac_status=$? | |
15059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15060 | (exit $ac_status); }; then | |
15061 | # Now try to grab the symbols. | |
15062 | nlist=conftest.nm | |
15063 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
15064 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
15065 | ac_status=$? | |
15066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15067 | (exit $ac_status); } && test -s "$nlist"; then | |
15068 | # Try sorting and uniquifying the output. | |
15069 | if sort "$nlist" | uniq > "$nlist"T; then | |
15070 | mv -f "$nlist"T "$nlist" | |
15071 | else | |
15072 | rm -f "$nlist"T | |
15073 | fi | |
15074 | ||
15075 | # Make sure that we snagged all the symbols we need. | |
15076 | if egrep ' nm_test_var$' "$nlist" >/dev/null; then | |
15077 | if egrep ' nm_test_func$' "$nlist" >/dev/null; then | |
15078 | cat <<EOF > conftest.$ac_ext | |
15079 | #ifdef __cplusplus | |
15080 | extern "C" { | |
15081 | #endif | |
15082 | ||
15083 | EOF | |
15084 | # Now generate the symbol file. | |
15085 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | |
15086 | ||
15087 | cat <<EOF >> conftest.$ac_ext | |
15088 | #if defined (__STDC__) && __STDC__ | |
15089 | # define lt_ptr_t void * | |
15090 | #else | |
15091 | # define lt_ptr_t char * | |
15092 | # define const | |
15093 | #endif | |
15094 | ||
15095 | /* The mapping between symbol names and symbols. */ | |
15096 | const struct { | |
15097 | const char *name; | |
15098 | lt_ptr_t address; | |
15099 | } | |
15100 | lt_preloaded_symbols[] = | |
15101 | { | |
15102 | EOF | |
15103 | sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | |
15104 | cat <<\EOF >> conftest.$ac_ext | |
15105 | {0, (lt_ptr_t) 0} | |
15106 | }; | |
15107 | ||
15108 | #ifdef __cplusplus | |
15109 | } | |
15110 | #endif | |
15111 | EOF | |
15112 | # Now try linking the two files. | |
15113 | mv conftest.$ac_objext conftstm.$ac_objext | |
15114 | lt_save_LIBS="$LIBS" | |
15115 | lt_save_CFLAGS="$CFLAGS" | |
15116 | LIBS="conftstm.$ac_objext" | |
15117 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
15118 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15119 | (eval $ac_link) 2>&5 | |
15120 | ac_status=$? | |
15121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15122 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
15123 | pipe_works=yes | |
15124 | fi | |
15125 | LIBS="$lt_save_LIBS" | |
15126 | CFLAGS="$lt_save_CFLAGS" | |
15127 | else | |
15128 | echo "cannot find nm_test_func in $nlist" >&5 | |
15129 | fi | |
15130 | else | |
15131 | echo "cannot find nm_test_var in $nlist" >&5 | |
15132 | fi | |
15133 | else | |
15134 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
15135 | fi | |
15136 | else | |
15137 | echo "$progname: failed program was:" >&5 | |
15138 | cat conftest.$ac_ext >&5 | |
15139 | fi | |
15140 | rm -f conftest* conftst* | |
15141 | ||
15142 | # Do not use the global_symbol_pipe unless it works. | |
15143 | if test "$pipe_works" = yes; then | |
15144 | break | |
15145 | else | |
15146 | lt_cv_sys_global_symbol_pipe= | |
15147 | fi | |
15148 | done | |
15149 | ||
15150 | fi | |
15151 | ||
15152 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
15153 | lt_cv_sys_global_symbol_to_cdecl= | |
15154 | fi | |
15155 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
15156 | echo "$as_me:$LINENO: result: failed" >&5 | |
15157 | echo "${ECHO_T}failed" >&6 | |
15158 | else | |
15159 | echo "$as_me:$LINENO: result: ok" >&5 | |
15160 | echo "${ECHO_T}ok" >&6 | |
15161 | fi | |
15162 | ||
15163 | echo "$as_me:$LINENO: checking for objdir" >&5 | |
15164 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | |
15165 | if test "${lt_cv_objdir+set}" = set; then | |
15166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15167 | else | |
15168 | rm -f .libs 2>/dev/null | |
15169 | mkdir .libs 2>/dev/null | |
15170 | if test -d .libs; then | |
15171 | lt_cv_objdir=.libs | |
15172 | else | |
15173 | # MS-DOS does not allow filenames that begin with a dot. | |
15174 | lt_cv_objdir=_libs | |
15175 | fi | |
15176 | rmdir .libs 2>/dev/null | |
15177 | fi | |
15178 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
15179 | echo "${ECHO_T}$lt_cv_objdir" >&6 | |
15180 | objdir=$lt_cv_objdir | |
15181 | ||
15182 | ||
15183 | ||
15184 | ||
15185 | ||
15186 | case $host_os in | |
15187 | aix3*) | |
15188 | # AIX sometimes has problems with the GCC collect2 program. For some | |
15189 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
15190 | # vanish in a puff of smoke. | |
15191 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
15192 | COLLECT_NAMES= | |
15193 | export COLLECT_NAMES | |
15194 | fi | |
15195 | ;; | |
15196 | esac | |
15197 | ||
15198 | # Sed substitution that helps us do robust quoting. It backslashifies | |
15199 | # metacharacters that are still active within double-quoted strings. | |
15200 | Xsed='sed -e s/^X//' | |
15201 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | |
15202 | ||
15203 | # Same as above, but do not quote variable references. | |
15204 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | |
15205 | ||
15206 | # Sed substitution to delay expansion of an escaped shell variable in a | |
15207 | # double_quote_subst'ed string. | |
15208 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
15209 | ||
15210 | # Sed substitution to avoid accidental globbing in evaled expressions | |
15211 | no_glob_subst='s/\*/\\\*/g' | |
15212 | ||
15213 | # Constants: | |
15214 | rm="rm -f" | |
15215 | ||
15216 | # Global variables: | |
15217 | default_ofile=libtool | |
15218 | can_build_shared=yes | |
15219 | ||
15220 | # All known linkers require a `.a' archive for static linking (except M$VC, | |
15221 | # which needs '.lib'). | |
15222 | libext=a | |
15223 | ltmain="$ac_aux_dir/ltmain.sh" | |
15224 | ofile="$default_ofile" | |
15225 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
15226 | ||
15227 | if test -n "$ac_tool_prefix"; then | |
15228 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
15229 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
15230 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15231 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15232 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
15233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15234 | else | |
15235 | if test -n "$RANLIB"; then | |
15236 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
15237 | else | |
15238 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15239 | for as_dir in $PATH | |
15240 | do | |
15241 | IFS=$as_save_IFS | |
15242 | test -z "$as_dir" && as_dir=. | |
15243 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15244 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15245 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
15246 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15247 | break 2 | |
15248 | fi | |
15249 | done | |
15250 | done | |
15251 | ||
15252 | fi | |
15253 | fi | |
15254 | RANLIB=$ac_cv_prog_RANLIB | |
15255 | if test -n "$RANLIB"; then | |
15256 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
15257 | echo "${ECHO_T}$RANLIB" >&6 | |
15258 | else | |
15259 | echo "$as_me:$LINENO: result: no" >&5 | |
15260 | echo "${ECHO_T}no" >&6 | |
15261 | fi | |
15262 | ||
15263 | fi | |
15264 | if test -z "$ac_cv_prog_RANLIB"; then | |
15265 | ac_ct_RANLIB=$RANLIB | |
15266 | # Extract the first word of "ranlib", so it can be a program name with args. | |
15267 | set dummy ranlib; ac_word=$2 | |
15268 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15269 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15270 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
15271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15272 | else | |
15273 | if test -n "$ac_ct_RANLIB"; then | |
15274 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
15275 | else | |
15276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15277 | for as_dir in $PATH | |
15278 | do | |
15279 | IFS=$as_save_IFS | |
15280 | test -z "$as_dir" && as_dir=. | |
15281 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15282 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15283 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
15284 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15285 | break 2 | |
15286 | fi | |
15287 | done | |
15288 | done | |
15289 | ||
15290 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
15291 | fi | |
15292 | fi | |
15293 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
15294 | if test -n "$ac_ct_RANLIB"; then | |
15295 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
15296 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
15297 | else | |
15298 | echo "$as_me:$LINENO: result: no" >&5 | |
15299 | echo "${ECHO_T}no" >&6 | |
15300 | fi | |
15301 | ||
15302 | RANLIB=$ac_ct_RANLIB | |
15303 | else | |
15304 | RANLIB="$ac_cv_prog_RANLIB" | |
15305 | fi | |
15306 | ||
15307 | if test -n "$ac_tool_prefix"; then | |
15308 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
15309 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
15310 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15311 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15312 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
15313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15314 | else | |
15315 | if test -n "$STRIP"; then | |
15316 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
15317 | else | |
15318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15319 | for as_dir in $PATH | |
15320 | do | |
15321 | IFS=$as_save_IFS | |
15322 | test -z "$as_dir" && as_dir=. | |
15323 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15324 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15325 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
15326 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15327 | break 2 | |
15328 | fi | |
15329 | done | |
15330 | done | |
15331 | ||
15332 | fi | |
15333 | fi | |
15334 | STRIP=$ac_cv_prog_STRIP | |
15335 | if test -n "$STRIP"; then | |
15336 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
15337 | echo "${ECHO_T}$STRIP" >&6 | |
15338 | else | |
15339 | echo "$as_me:$LINENO: result: no" >&5 | |
15340 | echo "${ECHO_T}no" >&6 | |
15341 | fi | |
15342 | ||
15343 | fi | |
15344 | if test -z "$ac_cv_prog_STRIP"; then | |
15345 | ac_ct_STRIP=$STRIP | |
15346 | # Extract the first word of "strip", so it can be a program name with args. | |
15347 | set dummy strip; ac_word=$2 | |
15348 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15349 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15350 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
15351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15352 | else | |
15353 | if test -n "$ac_ct_STRIP"; then | |
15354 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
15355 | else | |
15356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15357 | for as_dir in $PATH | |
15358 | do | |
15359 | IFS=$as_save_IFS | |
15360 | test -z "$as_dir" && as_dir=. | |
15361 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15362 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15363 | ac_cv_prog_ac_ct_STRIP="strip" | |
15364 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15365 | break 2 | |
15366 | fi | |
15367 | done | |
15368 | done | |
15369 | ||
15370 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
15371 | fi | |
15372 | fi | |
15373 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
15374 | if test -n "$ac_ct_STRIP"; then | |
15375 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
15376 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
15377 | else | |
15378 | echo "$as_me:$LINENO: result: no" >&5 | |
15379 | echo "${ECHO_T}no" >&6 | |
15380 | fi | |
15381 | ||
15382 | STRIP=$ac_ct_STRIP | |
15383 | else | |
15384 | STRIP="$ac_cv_prog_STRIP" | |
15385 | fi | |
15386 | ||
15387 | ||
15388 | old_CC="$CC" | |
15389 | old_CFLAGS="$CFLAGS" | |
15390 | ||
15391 | # Set sane defaults for various variables | |
15392 | test -z "$AR" && AR=ar | |
15393 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
15394 | test -z "$AS" && AS=as | |
15395 | test -z "$CC" && CC=cc | |
15396 | test -z "$LTCC" && LTCC=$CC | |
15397 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
15398 | test -z "$LD" && LD=ld | |
15399 | test -z "$LN_S" && LN_S="ln -s" | |
15400 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
15401 | test -z "$NM" && NM=nm | |
15402 | test -z "$SED" && SED=sed | |
15403 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
15404 | test -z "$RANLIB" && RANLIB=: | |
15405 | test -z "$STRIP" && STRIP=: | |
15406 | test -z "$ac_objext" && ac_objext=o | |
15407 | ||
15408 | # Determine commands to create old-style static archives. | |
15409 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
15410 | old_postinstall_cmds='chmod 644 $oldlib' | |
15411 | old_postuninstall_cmds= | |
15412 | ||
15413 | if test -n "$RANLIB"; then | |
15414 | case $host_os in | |
15415 | openbsd*) | |
15416 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" | |
15417 | ;; | |
15418 | *) | |
15419 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" | |
15420 | ;; | |
15421 | esac | |
15422 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
15423 | fi | |
15424 | ||
15425 | # Only perform the check for file, if the check method requires it | |
15426 | case $deplibs_check_method in | |
15427 | file_magic*) | |
15428 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
15429 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
15430 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
15431 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
15432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15433 | else | |
15434 | case $MAGIC_CMD in | |
15435 | [\\/*] | ?:[\\/]*) | |
15436 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
15437 | ;; | |
15438 | *) | |
15439 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
15440 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
15441 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
15442 | for ac_dir in $ac_dummy; do | |
15443 | IFS="$lt_save_ifs" | |
15444 | test -z "$ac_dir" && ac_dir=. | |
15445 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
15446 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
15447 | if test -n "$file_magic_test_file"; then | |
15448 | case $deplibs_check_method in | |
15449 | "file_magic "*) | |
15450 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
15451 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
15452 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
15453 | egrep "$file_magic_regex" > /dev/null; then | |
15454 | : | |
15455 | else | |
15456 | cat <<EOF 1>&2 | |
15457 | ||
15458 | *** Warning: the command libtool uses to detect shared libraries, | |
15459 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
15460 | *** The result is that libtool may fail to recognize shared libraries | |
15461 | *** as such. This will affect the creation of libtool libraries that | |
15462 | *** depend on shared libraries, but programs linked with such libtool | |
15463 | *** libraries will work regardless of this problem. Nevertheless, you | |
15464 | *** may want to report the problem to your system manager and/or to | |
15465 | *** bug-libtool@gnu.org | |
15466 | ||
15467 | EOF | |
15468 | fi ;; | |
15469 | esac | |
15470 | fi | |
15471 | break | |
15472 | fi | |
15473 | done | |
15474 | IFS="$lt_save_ifs" | |
15475 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
15476 | ;; | |
15477 | esac | |
15478 | fi | |
15479 | ||
15480 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
15481 | if test -n "$MAGIC_CMD"; then | |
15482 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
15483 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
15484 | else | |
15485 | echo "$as_me:$LINENO: result: no" >&5 | |
15486 | echo "${ECHO_T}no" >&6 | |
15487 | fi | |
15488 | ||
15489 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
15490 | if test -n "$ac_tool_prefix"; then | |
15491 | echo "$as_me:$LINENO: checking for file" >&5 | |
15492 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
15493 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
15494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15495 | else | |
15496 | case $MAGIC_CMD in | |
15497 | [\\/*] | ?:[\\/]*) | |
15498 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
15499 | ;; | |
15500 | *) | |
15501 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
15502 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
15503 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
15504 | for ac_dir in $ac_dummy; do | |
15505 | IFS="$lt_save_ifs" | |
15506 | test -z "$ac_dir" && ac_dir=. | |
15507 | if test -f $ac_dir/file; then | |
15508 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
15509 | if test -n "$file_magic_test_file"; then | |
15510 | case $deplibs_check_method in | |
15511 | "file_magic "*) | |
15512 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
15513 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
15514 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
15515 | egrep "$file_magic_regex" > /dev/null; then | |
15516 | : | |
15517 | else | |
15518 | cat <<EOF 1>&2 | |
15519 | ||
15520 | *** Warning: the command libtool uses to detect shared libraries, | |
15521 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
15522 | *** The result is that libtool may fail to recognize shared libraries | |
15523 | *** as such. This will affect the creation of libtool libraries that | |
15524 | *** depend on shared libraries, but programs linked with such libtool | |
15525 | *** libraries will work regardless of this problem. Nevertheless, you | |
15526 | *** may want to report the problem to your system manager and/or to | |
15527 | *** bug-libtool@gnu.org | |
15528 | ||
15529 | EOF | |
15530 | fi ;; | |
15531 | esac | |
15532 | fi | |
15533 | break | |
15534 | fi | |
15535 | done | |
15536 | IFS="$lt_save_ifs" | |
15537 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
15538 | ;; | |
15539 | esac | |
15540 | fi | |
15541 | ||
15542 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
15543 | if test -n "$MAGIC_CMD"; then | |
15544 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
15545 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
15546 | else | |
15547 | echo "$as_me:$LINENO: result: no" >&5 | |
15548 | echo "${ECHO_T}no" >&6 | |
15549 | fi | |
15550 | ||
15551 | else | |
15552 | MAGIC_CMD=: | |
15553 | fi | |
15554 | fi | |
15555 | ||
15556 | fi | |
15557 | ;; | |
15558 | esac | |
15559 | ||
15560 | enable_dlopen=no | |
15561 | enable_win32_dll=no | |
15562 | ||
15563 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
15564 | if test "${enable_libtool_lock+set}" = set; then | |
15565 | enableval="$enable_libtool_lock" | |
15566 | ||
15567 | fi; | |
15568 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
15569 | ||
15570 | ||
15571 | # Check whether --with-pic or --without-pic was given. | |
15572 | if test "${with_pic+set}" = set; then | |
15573 | withval="$with_pic" | |
15574 | pic_mode="$withval" | |
15575 | else | |
15576 | pic_mode=default | |
15577 | fi; | |
15578 | test -z "$pic_mode" && pic_mode=default | |
15579 | ||
15580 | # Use C for the default configuration in the libtool script | |
15581 | tagname= | |
15582 | lt_save_CC="$CC" | |
15583 | ac_ext=c | |
15584 | ac_cpp='$CPP $CPPFLAGS' | |
15585 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15586 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15587 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15588 | ||
15589 | ||
15590 | # Source file extension for C test sources. | |
15591 | ac_ext=c | |
15592 | ||
15593 | # Object file extension for compiled C test sources. | |
15594 | objext=o | |
15595 | objext=$objext | |
15596 | ||
15597 | # Code to be used in simple compile tests | |
15598 | lt_simple_compile_test_code="int some_variable = 0;" | |
15599 | ||
15600 | # Code to be used in simple link tests | |
15601 | lt_simple_link_test_code='main(){return(0);}' | |
15602 | ||
15603 | ||
15604 | # If no C compiler was specified, use CC. | |
15605 | LTCC=${LTCC-"$CC"} | |
15606 | ||
15607 | # Allow CC to be a program name with arguments. | |
15608 | set dummy $CC | |
15609 | compiler="$2" | |
15610 | ||
15611 | ||
15612 | # | |
15613 | # Check for any special shared library compilation flags. | |
15614 | # | |
15615 | lt_prog_cc_shlib= | |
15616 | if test "$GCC" = no; then | |
15617 | case $host_os in | |
15618 | sco3.2v5*) | |
15619 | lt_prog_cc_shlib='-belf' | |
15620 | ;; | |
15621 | esac | |
15622 | fi | |
15623 | if test -n "$lt_prog_cc_shlib"; then | |
15624 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 | |
15625 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} | |
15626 | if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : | |
15627 | else | |
15628 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 | |
15629 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} | |
15630 | lt_cv_prog_cc_can_build_shared=no | |
15631 | fi | |
15632 | fi | |
15633 | ||
15634 | ||
15635 | # | |
15636 | # Check to make sure the static flag actually works. | |
15637 | # | |
15638 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 | |
15639 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 | |
15640 | if test "${lt_prog_compiler_static_works+set}" = set; then | |
15641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15642 | else | |
15643 | lt_prog_compiler_static_works=no | |
15644 | save_LDFLAGS="$LDFLAGS" | |
15645 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" | |
15646 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
15647 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
15648 | # The compiler can only warn and ignore the option if not recognized | |
15649 | # So say no if there are warnings | |
15650 | if test -s conftest.err; then | |
15651 | # Append any errors to the config.log. | |
15652 | cat conftest.err 1>&5 | |
15653 | else | |
15654 | lt_prog_compiler_static_works=yes | |
15655 | fi | |
15656 | fi | |
15657 | $rm conftest* | |
15658 | LDFLAGS="$save_LDFLAGS" | |
15659 | ||
15660 | fi | |
15661 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | |
15662 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | |
15663 | ||
15664 | if test x"$lt_prog_compiler_static_works" = xyes; then | |
15665 | : | |
15666 | else | |
15667 | lt_prog_compiler_static= | |
15668 | fi | |
15669 | ||
15670 | ||
15671 | ||
15672 | ||
15673 | lt_prog_compiler_no_builtin_flag= | |
15674 | ||
15675 | if test "$GCC" = yes; then | |
15676 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
15677 | ||
15678 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
15679 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
15680 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
15681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15682 | else | |
15683 | lt_cv_prog_compiler_rtti_exceptions=no | |
15684 | ac_outfile=conftest.$ac_objext | |
15685 | save_CFLAGS="$CFLAGS" | |
15686 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" | |
15687 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15688 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
15689 | # The compiler can only warn and ignore the option if not recognized | |
15690 | # So say no if there are warnings | |
15691 | if test -s conftest.err; then | |
15692 | # Append any errors to the config.log. | |
15693 | cat conftest.err 1>&5 | |
15694 | else | |
15695 | lt_cv_prog_compiler_rtti_exceptions=yes | |
15696 | fi | |
15697 | fi | |
15698 | $rm conftest* | |
15699 | CFLAGS="$save_CFLAGS" | |
15700 | ||
15701 | fi | |
15702 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
15703 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
15704 | ||
15705 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
15706 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
15707 | else | |
15708 | : | |
15709 | fi | |
15710 | ||
15711 | fi | |
15712 | ||
15713 | lt_prog_compiler_wl= | |
15714 | lt_prog_compiler_pic= | |
15715 | lt_prog_compiler_static= | |
15716 | ||
15717 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
15718 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
15719 | ||
15720 | if test "$GCC" = yes; then | |
15721 | lt_prog_compiler_wl='-Wl,' | |
15722 | lt_prog_compiler_static='-static' | |
15723 | ||
15724 | case $host_os in | |
15725 | aix*) | |
15726 | # All AIX code is PIC. | |
15727 | if test "$host_cpu" = ia64; then | |
15728 | # AIX 5 now supports IA64 processor | |
15729 | lt_prog_compiler_static='-Bstatic' | |
15730 | fi | |
15731 | ;; | |
15732 | ||
15733 | amigaos*) | |
15734 | # FIXME: we need at least 68020 code to build shared libraries, but | |
15735 | # adding the `-m68020' flag to GCC prevents building anything better, | |
15736 | # like `-m68040'. | |
15737 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
15738 | ;; | |
15739 | ||
15740 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
15741 | # PIC is the default for these OSes. | |
15742 | ;; | |
15743 | ||
15744 | cygwin* | mingw* | pw32* | os2*) | |
15745 | # This hack is so that the source file can tell whether it is being | |
15746 | # built for inclusion in a dll (and should export symbols for example). | |
15747 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
15748 | ;; | |
15749 | ||
15750 | darwin* | rhapsody*) | |
15751 | # PIC is the default on this platform | |
15752 | # Common symbols not allowed in MH_DYLIB files | |
15753 | lt_prog_compiler_pic='-fno-common' | |
15754 | ;; | |
15755 | ||
15756 | msdosdjgpp*) | |
15757 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
15758 | # on systems that don't support them. | |
15759 | lt_prog_compiler_can_build_shared=no | |
15760 | enable_shared=no | |
15761 | ;; | |
15762 | ||
15763 | sysv4*MP*) | |
15764 | if test -d /usr/nec; then | |
15765 | lt_prog_compiler_pic=-Kconform_pic | |
15766 | fi | |
15767 | ;; | |
15768 | ||
15769 | hpux*) | |
15770 | # PIC is the default for IA64 HP-UX, but not for PA HP-UX. | |
15771 | if test "$host_cpu" != ia64; then | |
15772 | lt_prog_compiler_pic='-fPIC' | |
15773 | fi | |
15774 | ;; | |
15775 | ||
15776 | *) | |
15777 | lt_prog_compiler_pic='-fPIC' | |
15778 | ;; | |
15779 | esac | |
15780 | else | |
15781 | # PORTME Check for flag to pass linker flags through the system compiler. | |
15782 | case $host_os in | |
15783 | aix*) | |
15784 | lt_prog_compiler_wl='-Wl,' | |
15785 | if test "$host_cpu" = ia64; then | |
15786 | # AIX 5 now supports IA64 processor | |
15787 | lt_prog_compiler_static='-Bstatic' | |
15788 | else | |
15789 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
15790 | fi | |
15791 | ;; | |
15792 | ||
15793 | cygwin* | mingw* | pw32* | os2*) | |
15794 | # This hack is so that the source file can tell whether it is being | |
15795 | # built for inclusion in a dll (and should export symbols for example). | |
15796 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
15797 | ;; | |
15798 | ||
15799 | hpux9* | hpux10* | hpux11*) | |
15800 | lt_prog_compiler_wl='-Wl,' | |
15801 | if test "$host_cpu" != ia64; then | |
15802 | lt_prog_compiler_pic='+Z' | |
15803 | fi | |
15804 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
15805 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
15806 | ;; | |
15807 | ||
15808 | irix5* | irix6* | nonstopux*) | |
15809 | lt_prog_compiler_wl='-Wl,' | |
15810 | # PIC (with -KPIC) is the default. | |
15811 | lt_prog_compiler_static='-non_shared' | |
15812 | ;; | |
15813 | ||
15814 | newsos6) | |
15815 | lt_prog_compiler_pic='-KPIC' | |
15816 | lt_prog_compiler_static='-Bstatic' | |
15817 | ;; | |
15818 | ||
15819 | osf3* | osf4* | osf5*) | |
15820 | lt_prog_compiler_wl='-Wl,' | |
15821 | # All OSF/1 code is PIC. | |
15822 | lt_prog_compiler_static='-non_shared' | |
15823 | ;; | |
15824 | ||
15825 | sco3.2v5*) | |
15826 | lt_prog_compiler_pic='-Kpic' | |
15827 | lt_prog_compiler_static='-dn' | |
15828 | ;; | |
15829 | ||
15830 | solaris*) | |
15831 | lt_prog_compiler_wl='-Wl,' | |
15832 | lt_prog_compiler_pic='-KPIC' | |
15833 | lt_prog_compiler_static='-Bstatic' | |
15834 | ;; | |
15835 | ||
15836 | sunos4*) | |
15837 | lt_prog_compiler_wl='-Qoption ld ' | |
15838 | lt_prog_compiler_pic='-PIC' | |
15839 | lt_prog_compiler_static='-Bstatic' | |
15840 | ;; | |
15841 | ||
15842 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
15843 | if test "x$host_vendor" = xsni; then | |
15844 | lt_prog_compiler_wl='-LD' | |
15845 | else | |
15846 | lt_prog_compiler_wl='-Wl,' | |
15847 | fi | |
15848 | lt_prog_compiler_pic='-KPIC' | |
15849 | lt_prog_compiler_static='-Bstatic' | |
15850 | ;; | |
15851 | ||
15852 | sysv4*MP*) | |
15853 | if test -d /usr/nec ;then | |
15854 | lt_prog_compiler_pic='-Kconform_pic' | |
15855 | lt_prog_compiler_static='-Bstatic' | |
15856 | fi | |
15857 | ;; | |
15858 | ||
15859 | uts4*) | |
15860 | lt_prog_compiler_pic='-pic' | |
15861 | lt_prog_compiler_static='-Bstatic' | |
15862 | ;; | |
15863 | ||
15864 | *) | |
15865 | lt_prog_compiler_can_build_shared=no | |
15866 | ;; | |
15867 | esac | |
15868 | fi | |
15869 | ||
15870 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
15871 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | |
15872 | ||
15873 | # | |
15874 | # Check to make sure the PIC flag actually works. | |
15875 | # | |
15876 | if test -n "$lt_prog_compiler_pic"; then | |
15877 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
15878 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | |
15879 | if test "${lt_prog_compiler_pic_works+set}" = set; then | |
15880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15881 | else | |
15882 | lt_prog_compiler_pic_works=no | |
15883 | ac_outfile=conftest.$ac_objext | |
15884 | save_CFLAGS="$CFLAGS" | |
15885 | CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC" | |
15886 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15887 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
15888 | # The compiler can only warn and ignore the option if not recognized | |
15889 | # So say no if there are warnings | |
15890 | if test -s conftest.err; then | |
15891 | # Append any errors to the config.log. | |
15892 | cat conftest.err 1>&5 | |
15893 | else | |
15894 | lt_prog_compiler_pic_works=yes | |
15895 | fi | |
15896 | fi | |
15897 | $rm conftest* | |
15898 | CFLAGS="$save_CFLAGS" | |
15899 | ||
15900 | fi | |
15901 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | |
15902 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | |
15903 | ||
15904 | if test x"$lt_prog_compiler_pic_works" = xyes; then | |
15905 | case $lt_prog_compiler_pic in | |
15906 | "" | " "*) ;; | |
15907 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
15908 | esac | |
15909 | else | |
15910 | lt_prog_compiler_pic= | |
15911 | lt_prog_compiler_can_build_shared=no | |
15912 | fi | |
15913 | ||
15914 | fi | |
15915 | case "$host_os" in | |
15916 | # For platforms which do not support PIC, -DPIC is meaningless: | |
15917 | *djgpp*) | |
15918 | lt_prog_compiler_pic= | |
15919 | ;; | |
15920 | *) | |
15921 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
15922 | ;; | |
15923 | esac | |
15924 | ||
15925 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
15926 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
15927 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
15928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15929 | else | |
15930 | lt_cv_prog_compiler_c_o=no | |
15931 | $rm -r conftest 2>/dev/null | |
15932 | mkdir conftest | |
15933 | cd conftest | |
15934 | mkdir out | |
15935 | save_CFLAGS="$CFLAGS" | |
15936 | CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" | |
15937 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15938 | ||
15939 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | |
15940 | # that will create temporary files in the current directory regardless of | |
15941 | # the output directory. Thus, making CWD read-only will cause this test | |
15942 | # to fail, enabling locking or at least warning the user not to do parallel | |
15943 | # builds. | |
15944 | chmod -w . | |
15945 | ||
15946 | if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext | |
15947 | then | |
15948 | # The compiler can only warn and ignore the option if not recognized | |
15949 | # So say no if there are warnings | |
15950 | if test -s out/conftest.err; then | |
15951 | # Append any errors to the config.log. | |
15952 | cat out/conftest.err 1>&5 | |
15953 | else | |
15954 | lt_cv_prog_compiler_c_o=yes | |
15955 | fi | |
15956 | fi | |
15957 | CFLAGS="$save_CFLAGS" | |
15958 | chmod u+w . | |
15959 | $rm conftest* out/* | |
15960 | rmdir out | |
15961 | cd .. | |
15962 | rmdir conftest | |
15963 | $rm conftest* | |
15964 | ||
15965 | fi | |
15966 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
15967 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
15968 | ||
15969 | ||
15970 | hard_links="nottested" | |
15971 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
15972 | # do not overwrite the value of need_locks provided by the user | |
15973 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
15974 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
15975 | hard_links=yes | |
15976 | $rm conftest* | |
15977 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
15978 | touch conftest.a | |
15979 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
15980 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
15981 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
15982 | echo "${ECHO_T}$hard_links" >&6 | |
15983 | if test "$hard_links" = no; then | |
15984 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
15985 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
15986 | need_locks=warn | |
15987 | fi | |
15988 | else | |
15989 | need_locks=no | |
15990 | fi | |
15991 | ||
15992 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
15993 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
15994 | ||
15995 | runpath_var= | |
15996 | allow_undefined_flag= | |
15997 | ||
15998 | archive_cmds= | |
15999 | archive_cmds_need_lc= | |
16000 | archive_expsym_cmds= | |
16001 | old_archive_From_new_cmds= | |
16002 | old_archive_from_expsyms_cmds= | |
16003 | export_dynamic_flag_spec= | |
16004 | whole_archive_flag_spec= | |
16005 | thread_safe_flag_spec= | |
16006 | hardcode_libdir_flag_spec= | |
16007 | hardcode_libdir_separator= | |
16008 | hardcode_direct=no | |
16009 | hardcode_minus_L=no | |
16010 | hardcode_shlibpath_var=unsupported | |
16011 | link_all_deplibs=unknown | |
16012 | always_export_symbols=no | |
16013 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
16014 | # include_expsyms should be a list of space-separated symbols to be *always* | |
16015 | # included in the symbol list | |
16016 | include_expsyms= | |
16017 | # exclude_expsyms can be an egrep regular expression of symbols to exclude | |
16018 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
16019 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
16020 | # as well as any symbol that contains `d'. | |
16021 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | |
16022 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
16023 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
16024 | # the symbol is explicitly referenced. Since portable code cannot | |
16025 | # rely on this symbol name, it's probably fine to never include it in | |
16026 | # preloaded symbol tables. | |
16027 | extract_expsyms_cmds= | |
16028 | ||
16029 | case $host_os in | |
16030 | cygwin* | mingw* | pw32*) | |
16031 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
16032 | # When not using gcc, we currently assume that we are using | |
16033 | # Microsoft Visual C++. | |
16034 | if test "$GCC" != yes; then | |
16035 | with_gnu_ld=no | |
16036 | fi | |
16037 | ;; | |
16038 | openbsd*) | |
16039 | with_gnu_ld=no | |
16040 | ;; | |
16041 | esac | |
16042 | ||
16043 | ld_shlibs=yes | |
16044 | if test "$with_gnu_ld" = yes; then | |
16045 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
16046 | wlarc='${wl}' | |
16047 | ||
16048 | # See if GNU ld supports shared libraries. | |
16049 | case $host_os in | |
16050 | aix3* | aix4* | aix5*) | |
16051 | # On AIX/PPC, the GNU linker is very broken | |
16052 | if test "$host_cpu" != ia64; then | |
16053 | ld_shlibs=no | |
16054 | cat <<EOF 1>&2 | |
16055 | ||
16056 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
16057 | *** to be unable to reliably create shared libraries on AIX. | |
16058 | *** Therefore, libtool is disabling shared libraries support. If you | |
16059 | *** really care for shared libraries, you may want to modify your PATH | |
16060 | *** so that a non-GNU linker is found, and then restart. | |
16061 | ||
16062 | EOF | |
16063 | fi | |
16064 | ;; | |
16065 | ||
16066 | amigaos*) | |
16067 | 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)' | |
16068 | hardcode_libdir_flag_spec='-L$libdir' | |
16069 | hardcode_minus_L=yes | |
16070 | ||
16071 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
16072 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
16073 | # to version 4, is to share data among multiple programs linked | |
16074 | # with the same dynamic library. Since this doesn't match the | |
16075 | # behavior of shared libraries on other platforms, we can't use | |
16076 | # them. | |
16077 | ld_shlibs=no | |
16078 | ;; | |
16079 | ||
16080 | beos*) | |
16081 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
16082 | allow_undefined_flag=unsupported | |
16083 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
16084 | # support --undefined. This deserves some investigation. FIXME | |
16085 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16086 | else | |
16087 | ld_shlibs=no | |
16088 | fi | |
16089 | ;; | |
16090 | ||
16091 | cygwin* | mingw* | pw32*) | |
16092 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is | |
16093 | # no search path for DLLs. | |
16094 | hardcode_libdir_flag_spec='-L$libdir' | |
16095 | allow_undefined_flag=unsupported | |
16096 | always_export_symbols=yes | |
16097 | ||
16098 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ | |
16099 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ | |
16100 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ | |
16101 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ | |
16102 | else $CC -o impgen impgen.c ; fi)~ | |
16103 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' | |
16104 | ||
16105 | old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' | |
16106 | ||
16107 | # cygwin and mingw dlls have different entry points and sets of symbols | |
16108 | # to exclude. | |
16109 | # FIXME: what about values for MSVC? | |
16110 | dll_entry=__cygwin_dll_entry@12 | |
16111 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ | |
16112 | case $host_os in | |
16113 | mingw*) | |
16114 | # mingw values | |
16115 | dll_entry=_DllMainCRTStartup@12 | |
16116 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ | |
16117 | ;; | |
16118 | esac | |
16119 | ||
16120 | # mingw and cygwin differ, and it's simplest to just exclude the union | |
16121 | # of the two symbol sets. | |
16122 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 | |
16123 | ||
16124 | # recent cygwin and mingw systems supply a stub DllMain which the user | |
16125 | # can override, but on older systems we have to supply one (in ltdll.c) | |
16126 | if test "x$lt_cv_need_dllmain" = "xyes"; then | |
16127 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " | |
16128 | 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~ | |
16129 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' | |
16130 | else | |
16131 | ltdll_obj= | |
16132 | ltdll_cmds= | |
16133 | fi | |
16134 | ||
16135 | # Extract the symbol export list from an `--export-all' def file, | |
16136 | # then regenerate the def file from the symbol export list, so that | |
16137 | # the compiled dll only exports the symbol export list. | |
16138 | # Be careful not to strip the DATA tag left by newer dlltools. | |
16139 | export_symbols_cmds="$ltdll_cmds"' | |
16140 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ | |
16141 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' | |
16142 | ||
16143 | # If the export-symbols file already is a .def file (1st line | |
16144 | # is EXPORTS), use it as is. | |
16145 | # If DATA tags from a recent dlltool are present, honour them! | |
16146 | archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then | |
16147 | cp $export_symbols $output_objdir/$soname-def; | |
16148 | else | |
16149 | echo EXPORTS > $output_objdir/$soname-def; | |
16150 | _lt_hint=1; | |
16151 | cat $export_symbols | while read symbol; do | |
16152 | set dummy \$symbol; | |
16153 | case \$# in | |
16154 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; | |
16155 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; | |
16156 | esac; | |
16157 | _lt_hint=`expr 1 + \$_lt_hint`; | |
16158 | done; | |
16159 | fi~ | |
16160 | '"$ltdll_cmds"' | |
16161 | $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~ | |
16162 | $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~ | |
16163 | $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~ | |
16164 | $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~ | |
16165 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' | |
16166 | ;; | |
16167 | ||
16168 | netbsd*) | |
16169 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
16170 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
16171 | wlarc= | |
16172 | else | |
16173 | archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16174 | archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16175 | fi | |
16176 | ;; | |
16177 | ||
16178 | solaris* | sysv5*) | |
16179 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then | |
16180 | ld_shlibs=no | |
16181 | cat <<EOF 1>&2 | |
16182 | ||
16183 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
16184 | *** create shared libraries on Solaris systems. Therefore, libtool | |
16185 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
16186 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
16187 | *** your PATH or compiler configuration so that the native linker is | |
16188 | *** used, and then restart. | |
16189 | ||
16190 | EOF | |
16191 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
16192 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16193 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16194 | else | |
16195 | ld_shlibs=no | |
16196 | fi | |
16197 | ;; | |
16198 | ||
16199 | sunos4*) | |
16200 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16201 | wlarc= | |
16202 | hardcode_direct=yes | |
16203 | hardcode_shlibpath_var=no | |
16204 | ;; | |
16205 | ||
16206 | *) | |
16207 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
16208 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16209 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16210 | else | |
16211 | ld_shlibs=no | |
16212 | fi | |
16213 | ;; | |
16214 | esac | |
16215 | ||
16216 | if test "$ld_shlibs" = yes; then | |
16217 | runpath_var=LD_RUN_PATH | |
16218 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | |
16219 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
16220 | case $host_os in | |
16221 | cygwin* | mingw* | pw32*) | |
16222 | # dlltool doesn't understand --whole-archive et. al. | |
16223 | whole_archive_flag_spec= | |
16224 | ;; | |
16225 | *) | |
16226 | # ancient GNU ld didn't support --whole-archive et. al. | |
16227 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then | |
16228 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
16229 | else | |
16230 | whole_archive_flag_spec= | |
16231 | fi | |
16232 | ;; | |
16233 | esac | |
16234 | fi | |
16235 | else | |
16236 | # PORTME fill in a description of your system's linker (not GNU ld) | |
16237 | case $host_os in | |
16238 | aix3*) | |
16239 | allow_undefined_flag=unsupported | |
16240 | always_export_symbols=yes | |
16241 | 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' | |
16242 | # Note: this linker hardcodes the directories in LIBPATH if there | |
16243 | # are no directories specified by -L. | |
16244 | hardcode_minus_L=yes | |
16245 | if test "$GCC" = yes && test -z "$link_static_flag"; then | |
16246 | # Neither direct hardcoding nor static linking is supported with a | |
16247 | # broken collect2. | |
16248 | hardcode_direct=unsupported | |
16249 | fi | |
16250 | ;; | |
16251 | ||
16252 | aix4* | aix5*) | |
16253 | if test "$host_cpu" = ia64; then | |
16254 | # On IA64, the linker does run time linking by default, so we don't | |
16255 | # have to do anything special. | |
16256 | aix_use_runtimelinking=no | |
16257 | exp_sym_flag='-Bexport' | |
16258 | no_entry_flag="" | |
16259 | else | |
16260 | # If we're using GNU nm, then we don't want the "-C" option. | |
16261 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
16262 | if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then | |
16263 | 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' | |
16264 | else | |
16265 | 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' | |
16266 | fi | |
16267 | ||
16268 | # KDE requires run time linking. Make it the default. | |
16269 | aix_use_runtimelinking=yes | |
16270 | exp_sym_flag='-bexport' | |
16271 | no_entry_flag='-bnoentry' | |
16272 | fi | |
16273 | ||
16274 | # When large executables or shared objects are built, AIX ld can | |
16275 | # have problems creating the table of contents. If linking a library | |
16276 | # or program results in "error TOC overflow" add -mminimal-toc to | |
16277 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
16278 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
16279 | ||
16280 | archive_cmds='' | |
16281 | hardcode_direct=yes | |
16282 | hardcode_libdir_separator=':' | |
16283 | link_all_deplibs=yes | |
16284 | ||
16285 | if test "$GCC" = yes; then | |
16286 | case $host_os in aix4.012|aix4.012.*) | |
16287 | # We only want to do this on AIX 4.2 and lower, the check | |
16288 | # below for broken collect2 doesn't work under 4.3+ | |
16289 | collect2name=`${CC} -print-prog-name=collect2` | |
16290 | if test -f "$collect2name" && \ | |
16291 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
16292 | then | |
16293 | # We have reworked collect2 | |
16294 | hardcode_direct=yes | |
16295 | else | |
16296 | # We have old collect2 | |
16297 | hardcode_direct=unsupported | |
16298 | # It fails to find uninstalled libraries when the uninstalled | |
16299 | # path is not listed in the libpath. Setting hardcode_minus_L | |
16300 | # to unsupported forces relinking | |
16301 | hardcode_minus_L=yes | |
16302 | hardcode_libdir_flag_spec='-L$libdir' | |
16303 | hardcode_libdir_separator= | |
16304 | fi | |
16305 | esac | |
16306 | shared_flag='-shared' | |
16307 | else | |
16308 | # not using gcc | |
16309 | if test "$host_cpu" = ia64; then | |
16310 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
16311 | # chokes on -Wl,-G. The following line is correct: | |
16312 | shared_flag='-G' | |
16313 | else | |
16314 | if test "$aix_use_runtimelinking" = yes; then | |
16315 | shared_flag='-qmkshrobj ${wl}-G' | |
16316 | else | |
16317 | shared_flag='-qmkshrobj' | |
16318 | fi | |
16319 | fi | |
16320 | fi | |
16321 | ||
16322 | # Let the compiler handle the export list. | |
16323 | always_export_symbols=no | |
16324 | if test "$aix_use_runtimelinking" = yes; then | |
16325 | # Warning - without using the other runtime loading flags (-brtl), | |
16326 | # -berok will link without error, but may produce a broken library. | |
16327 | allow_undefined_flag='-berok' | |
16328 | # Determine the default libpath from the value encoded in an empty executable. | |
16329 | cat >conftest.$ac_ext <<_ACEOF | |
16330 | #line $LINENO "configure" | |
16331 | #include "confdefs.h" | |
16332 | ||
16333 | #ifdef F77_DUMMY_MAIN | |
16334 | # ifdef __cplusplus | |
16335 | extern "C" | |
16336 | # endif | |
16337 | int F77_DUMMY_MAIN() { return 1; } | |
16338 | #endif | |
16339 | int | |
16340 | main () | |
16341 | { | |
16342 | ||
16343 | ; | |
16344 | return 0; | |
16345 | } | |
16346 | _ACEOF | |
16347 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16348 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16349 | (eval $ac_link) 2>&5 | |
16350 | ac_status=$? | |
16351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16352 | (exit $ac_status); } && | |
16353 | { ac_try='test -s conftest$ac_exeext' | |
16354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16355 | (eval $ac_try) 2>&5 | |
16356 | ac_status=$? | |
16357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16358 | (exit $ac_status); }; }; then | |
16359 | ||
16360 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
16361 | }'` | |
16362 | # Check for a 64-bit object if we didn't find anything. | |
16363 | 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; } | |
16364 | }'`; fi | |
16365 | else | |
16366 | echo "$as_me: failed program was:" >&5 | |
16367 | cat conftest.$ac_ext >&5 | |
16368 | fi | |
16369 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16370 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
16371 | ||
16372 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
16373 | 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" | |
16374 | 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" | |
16375 | else | |
16376 | if test "$host_cpu" = ia64; then | |
16377 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
16378 | allow_undefined_flag="-z nodefs" | |
16379 | 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" | |
16380 | else | |
16381 | # Determine the default libpath from the value encoded in an empty executable. | |
16382 | cat >conftest.$ac_ext <<_ACEOF | |
16383 | #line $LINENO "configure" | |
16384 | #include "confdefs.h" | |
16385 | ||
16386 | #ifdef F77_DUMMY_MAIN | |
16387 | # ifdef __cplusplus | |
16388 | extern "C" | |
16389 | # endif | |
16390 | int F77_DUMMY_MAIN() { return 1; } | |
16391 | #endif | |
16392 | int | |
16393 | main () | |
16394 | { | |
16395 | ||
16396 | ; | |
16397 | return 0; | |
16398 | } | |
16399 | _ACEOF | |
16400 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16401 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16402 | (eval $ac_link) 2>&5 | |
16403 | ac_status=$? | |
16404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16405 | (exit $ac_status); } && | |
16406 | { ac_try='test -s conftest$ac_exeext' | |
16407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16408 | (eval $ac_try) 2>&5 | |
16409 | ac_status=$? | |
16410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16411 | (exit $ac_status); }; }; then | |
16412 | ||
16413 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
16414 | }'` | |
16415 | # Check for a 64-bit object if we didn't find anything. | |
16416 | 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; } | |
16417 | }'`; fi | |
16418 | else | |
16419 | echo "$as_me: failed program was:" >&5 | |
16420 | cat conftest.$ac_ext >&5 | |
16421 | fi | |
16422 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16423 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
16424 | ||
16425 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
16426 | # Warning - without using the other run time loading flags, | |
16427 | # -berok will link without error, but may produce a broken library. | |
16428 | no_undefined_flag=' ${wl}-bernotok' | |
16429 | allow_undefined_flag=' ${wl}-berok' | |
16430 | # -bexpall does not export symbols beginning with underscore (_) | |
16431 | always_export_symbols=yes | |
16432 | # Exported symbols can be pulled into shared objects from archives | |
16433 | whole_archive_flag_spec=' ' | |
16434 | archive_cmds_need_lc=yes | |
16435 | # This is similar to how AIX traditionally builds it's shared libraries. | |
16436 | 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' | |
16437 | fi | |
16438 | fi | |
16439 | ;; | |
16440 | ||
16441 | amigaos*) | |
16442 | 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)' | |
16443 | hardcode_libdir_flag_spec='-L$libdir' | |
16444 | hardcode_minus_L=yes | |
16445 | # see comment about different semantics on the GNU ld section | |
16446 | ld_shlibs=no | |
16447 | ;; | |
16448 | ||
16449 | bsdi4*) | |
16450 | export_dynamic_flag_spec=-rdynamic | |
16451 | ;; | |
16452 | ||
16453 | cygwin* | mingw* | pw32*) | |
16454 | # When not using gcc, we currently assume that we are using | |
16455 | # Microsoft Visual C++. | |
16456 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
16457 | # no search path for DLLs. | |
16458 | hardcode_libdir_flag_spec=' ' | |
16459 | allow_undefined_flag=unsupported | |
16460 | # Tell ltmain to make .lib files, not .a files. | |
16461 | libext=lib | |
16462 | # FIXME: Setting linknames here is a bad hack. | |
16463 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
16464 | # The linker will automatically build a .lib file if we build a DLL. | |
16465 | old_archive_From_new_cmds='true' | |
16466 | # FIXME: Should let the user specify the lib program. | |
16467 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
16468 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
16469 | ;; | |
16470 | ||
16471 | darwin* | rhapsody*) | |
16472 | case "$host_os" in | |
16473 | rhapsody* | darwin1.[012]) | |
16474 | allow_undefined_flag='-undefined suppress' | |
16475 | ;; | |
16476 | *) # Darwin 1.3 on | |
16477 | allow_undefined_flag='-flat_namespace -undefined suppress' | |
16478 | ;; | |
16479 | esac | |
16480 | ||
16481 | # FIXME: Relying on posixy $() will cause problems for | |
16482 | # cross-compilation, but unfortunately the echo tests do not | |
16483 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles | |
16484 | # `"' quotes if we put them in here... so don't! | |
16485 | archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' | |
16486 | # We need to add '_' to the symbols in $export_symbols first | |
16487 | #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols' | |
16488 | hardcode_direct=yes | |
16489 | hardcode_shlibpath_var=no | |
16490 | whole_archive_flag_spec='-all_load $convenience' | |
16491 | ;; | |
16492 | ||
16493 | dgux*) | |
16494 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16495 | hardcode_libdir_flag_spec='-L$libdir' | |
16496 | hardcode_shlibpath_var=no | |
16497 | ;; | |
16498 | ||
16499 | freebsd1*) | |
16500 | ld_shlibs=no | |
16501 | ;; | |
16502 | ||
16503 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
16504 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
16505 | # does not break anything, and helps significantly (at the cost of a little | |
16506 | # extra space). | |
16507 | freebsd2.2*) | |
16508 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
16509 | hardcode_libdir_flag_spec='-R$libdir' | |
16510 | hardcode_direct=yes | |
16511 | hardcode_shlibpath_var=no | |
16512 | ;; | |
16513 | ||
16514 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
16515 | freebsd2*) | |
16516 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16517 | hardcode_direct=yes | |
16518 | hardcode_minus_L=yes | |
16519 | hardcode_shlibpath_var=no | |
16520 | ;; | |
16521 | ||
16522 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
16523 | freebsd*) | |
16524 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
16525 | hardcode_libdir_flag_spec='-R$libdir' | |
16526 | hardcode_direct=yes | |
16527 | hardcode_shlibpath_var=no | |
16528 | ;; | |
16529 | ||
16530 | hpux9* | hpux10* | hpux11*) | |
16531 | if test "$GCC" = yes; then | |
16532 | case $host_os in | |
16533 | hpux9*) | |
16534 | 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' | |
16535 | ;; | |
16536 | *) | |
16537 | if test "$host_cpu" = ia64; then | |
16538 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16539 | else | |
16540 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
16541 | fi | |
16542 | ;; | |
16543 | esac | |
16544 | else | |
16545 | case $host_os in | |
16546 | hpux9*) | |
16547 | 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' | |
16548 | ;; | |
16549 | *) | |
16550 | if test "$host_cpu" = ia64; then | |
16551 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16552 | else | |
16553 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
16554 | fi | |
16555 | ;; | |
16556 | esac | |
16557 | fi | |
16558 | if test "$host_cpu" = ia64; then | |
16559 | hardcode_libdir_flag_spec='-L$libdir' | |
16560 | hardcode_direct=no | |
16561 | hardcode_shlibpath_var=no | |
16562 | else | |
16563 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
16564 | hardcode_libdir_separator=: | |
16565 | hardcode_direct=yes | |
16566 | fi | |
16567 | # hardcode_minus_L: Not really in the search PATH, | |
16568 | # but as the default location of the library. | |
16569 | hardcode_minus_L=yes | |
16570 | export_dynamic_flag_spec='${wl}-E' | |
16571 | ;; | |
16572 | ||
16573 | irix5* | irix6* | nonstopux*) | |
16574 | if test "$GCC" = yes; then | |
16575 | 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' | |
16576 | else | |
16577 | 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' | |
16578 | fi | |
16579 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
16580 | hardcode_libdir_separator=: | |
16581 | link_all_deplibs=yes | |
16582 | ;; | |
16583 | ||
16584 | netbsd*) | |
16585 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
16586 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
16587 | else | |
16588 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
16589 | fi | |
16590 | hardcode_libdir_flag_spec='-R$libdir' | |
16591 | hardcode_direct=yes | |
16592 | hardcode_shlibpath_var=no | |
16593 | ;; | |
16594 | ||
16595 | newsos6) | |
16596 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16597 | hardcode_direct=yes | |
16598 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
16599 | hardcode_libdir_separator=: | |
16600 | hardcode_shlibpath_var=no | |
16601 | ;; | |
16602 | ||
16603 | openbsd*) | |
16604 | hardcode_direct=yes | |
16605 | hardcode_shlibpath_var=no | |
16606 | ||
16607 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
16608 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
16609 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
16610 | export_dynamic_flag_spec='${wl}-E' | |
16611 | else | |
16612 | case $host_os in | |
16613 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
16614 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16615 | hardcode_libdir_flag_spec='-R$libdir' | |
16616 | ;; | |
16617 | *) | |
16618 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
16619 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
16620 | ;; | |
16621 | esac | |
16622 | fi | |
16623 | ;; | |
16624 | ||
16625 | os2*) | |
16626 | hardcode_libdir_flag_spec='-L$libdir' | |
16627 | hardcode_minus_L=yes | |
16628 | allow_undefined_flag=unsupported | |
16629 | 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' | |
16630 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
16631 | ;; | |
16632 | ||
16633 | osf3*) | |
16634 | if test "$GCC" = yes; then | |
16635 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
16636 | 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' | |
16637 | else | |
16638 | allow_undefined_flag=' -expect_unresolved \*' | |
16639 | 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' | |
16640 | fi | |
16641 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
16642 | hardcode_libdir_separator=: | |
16643 | ;; | |
16644 | ||
16645 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
16646 | if test "$GCC" = yes; then | |
16647 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
16648 | 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' | |
16649 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
16650 | else | |
16651 | allow_undefined_flag=' -expect_unresolved \*' | |
16652 | 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' | |
16653 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
16654 | $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' | |
16655 | ||
16656 | # Both c and cxx compiler support -rpath directly | |
16657 | hardcode_libdir_flag_spec='-rpath $libdir' | |
16658 | fi | |
16659 | hardcode_libdir_separator=: | |
16660 | ;; | |
16661 | ||
16662 | sco3.2v5*) | |
16663 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16664 | hardcode_shlibpath_var=no | |
16665 | export_dynamic_flag_spec='${wl}-Bexport' | |
16666 | runpath_var=LD_RUN_PATH | |
16667 | hardcode_runpath_var=yes | |
16668 | ;; | |
16669 | ||
16670 | solaris*) | |
16671 | no_undefined_flag=' -z text' | |
16672 | if test "$GCC" = yes; then | |
16673 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16674 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
16675 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
16676 | else | |
16677 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16678 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
16679 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
16680 | fi | |
16681 | hardcode_libdir_flag_spec='-R$libdir' | |
16682 | hardcode_shlibpath_var=no | |
16683 | case $host_os in | |
16684 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
16685 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | |
16686 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | |
16687 | esac | |
16688 | link_all_deplibs=yes | |
16689 | ;; | |
16690 | ||
16691 | sunos4*) | |
16692 | if test "x$host_vendor" = xsequent; then | |
16693 | # Use $CC to link under sequent, because it throws in some extra .o | |
16694 | # files that make .init and .fini sections work. | |
16695 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
16696 | else | |
16697 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
16698 | fi | |
16699 | hardcode_libdir_flag_spec='-L$libdir' | |
16700 | hardcode_direct=yes | |
16701 | hardcode_minus_L=yes | |
16702 | hardcode_shlibpath_var=no | |
16703 | ;; | |
16704 | ||
16705 | sysv4) | |
16706 | if test "x$host_vendor" = xsni; then | |
16707 | archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16708 | hardcode_direct=yes # is this really true??? | |
16709 | else | |
16710 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16711 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
16712 | fi | |
16713 | runpath_var='LD_RUN_PATH' | |
16714 | hardcode_shlibpath_var=no | |
16715 | ;; | |
16716 | ||
16717 | sysv4.3*) | |
16718 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16719 | hardcode_shlibpath_var=no | |
16720 | export_dynamic_flag_spec='-Bexport' | |
16721 | ;; | |
16722 | ||
16723 | sysv4*MP*) | |
16724 | if test -d /usr/nec; then | |
16725 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16726 | hardcode_shlibpath_var=no | |
16727 | runpath_var=LD_RUN_PATH | |
16728 | hardcode_runpath_var=yes | |
16729 | ld_shlibs=yes | |
16730 | fi | |
16731 | ;; | |
16732 | ||
16733 | sysv4.2uw2*) | |
16734 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
16735 | hardcode_direct=yes | |
16736 | hardcode_minus_L=no | |
16737 | hardcode_shlibpath_var=no | |
16738 | hardcode_runpath_var=yes | |
16739 | runpath_var=LD_RUN_PATH | |
16740 | ;; | |
16741 | ||
16742 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
16743 | no_undefined_flag='${wl}-z ${wl}text' | |
16744 | if test "$GCC" = yes; then | |
16745 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16746 | else | |
16747 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16748 | fi | |
16749 | runpath_var='LD_RUN_PATH' | |
16750 | hardcode_shlibpath_var=no | |
16751 | ;; | |
16752 | ||
16753 | sysv5*) | |
16754 | no_undefined_flag=' -z text' | |
16755 | # $CC -shared without GNU ld will not create a library from C++ | |
16756 | # object files and a static libstdc++, better avoid it by now | |
16757 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16758 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
16759 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
16760 | hardcode_libdir_flag_spec= | |
16761 | hardcode_shlibpath_var=no | |
16762 | runpath_var='LD_RUN_PATH' | |
16763 | ;; | |
16764 | ||
16765 | uts4*) | |
16766 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16767 | hardcode_libdir_flag_spec='-L$libdir' | |
16768 | hardcode_shlibpath_var=no | |
16769 | ;; | |
16770 | ||
16771 | *) | |
16772 | ld_shlibs=no | |
16773 | ;; | |
16774 | esac | |
16775 | fi | |
16776 | ||
16777 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
16778 | echo "${ECHO_T}$ld_shlibs" >&6 | |
16779 | test "$ld_shlibs" = no && can_build_shared=no | |
16780 | ||
16781 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
16782 | if test "$GCC" = yes; then | |
16783 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
16784 | fi | |
16785 | ||
16786 | # | |
16787 | # Do we need to explicitly link libc? | |
16788 | # | |
16789 | archive_cmds_need_lc=yes | |
16790 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
16791 | case $archive_cmds in | |
16792 | *'~'*) | |
16793 | # FIXME: we may have to deal with multi-command sequences. | |
16794 | ;; | |
16795 | '$CC '*) | |
16796 | # Test whether the compiler implicitly links with -lc since on some | |
16797 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
16798 | # to ld, don't add -lc before -lgcc. | |
16799 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
16800 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
16801 | $rm conftest* | |
16802 | echo 'static int dummy;' > conftest.$ac_ext | |
16803 | ||
16804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16805 | (eval $ac_compile) 2>&5 | |
16806 | ac_status=$? | |
16807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16808 | (exit $ac_status); } 2>conftest.err; then | |
16809 | soname=conftest | |
16810 | lib=conftest | |
16811 | libobjs=conftest.$ac_objext | |
16812 | deplibs= | |
16813 | wl=$lt_prog_compiler_wl | |
16814 | compiler_flags=-v | |
16815 | linker_flags=-v | |
16816 | verstring= | |
16817 | output_objdir=. | |
16818 | libname=conftest | |
16819 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
16820 | allow_undefined_flag= | |
16821 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
16822 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
16823 | ac_status=$? | |
16824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16825 | (exit $ac_status); } | |
16826 | then | |
16827 | archive_cmds_need_lc=no | |
16828 | else | |
16829 | archive_cmds_need_lc=yes | |
16830 | fi | |
16831 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
16832 | else | |
16833 | cat conftest.err 1>&5 | |
16834 | fi | |
16835 | $rm conftest* | |
16836 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
16837 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 | |
16838 | ;; | |
16839 | esac | |
16840 | fi | |
16841 | ||
16842 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
16843 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
16844 | hardcode_action= | |
16845 | if test -n "$hardcode_libdir_flag_spec" || \ | |
16846 | test -n "$runpath_var "; then | |
16847 | ||
16848 | # We can hardcode non-existant directories. | |
16849 | if test "$hardcode_direct" != no && | |
16850 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
16851 | # have to relink, otherwise we might link with an installed library | |
16852 | # when we should be linking with a yet-to-be-installed one | |
16853 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | |
16854 | test "$hardcode_minus_L" != no; then | |
16855 | # Linking always hardcodes the temporary library directory. | |
16856 | hardcode_action=relink | |
16857 | else | |
16858 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
16859 | hardcode_action=immediate | |
16860 | fi | |
16861 | else | |
16862 | # We cannot hardcode anything, or else we can only hardcode existing | |
16863 | # directories. | |
16864 | hardcode_action=unsupported | |
16865 | fi | |
16866 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
16867 | echo "${ECHO_T}$hardcode_action" >&6 | |
16868 | ||
16869 | if test "$hardcode_action" = relink; then | |
16870 | # Fast installation is not supported | |
16871 | enable_fast_install=no | |
16872 | elif test "$shlibpath_overrides_runpath" = yes || | |
16873 | test "$enable_shared" = no; then | |
16874 | # Fast installation is not necessary | |
16875 | enable_fast_install=needless | |
16876 | fi | |
16877 | ||
16878 | striplib= | |
16879 | old_striplib= | |
16880 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
16881 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
16882 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
16883 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
16884 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
16885 | echo "$as_me:$LINENO: result: yes" >&5 | |
16886 | echo "${ECHO_T}yes" >&6 | |
16887 | else | |
16888 | echo "$as_me:$LINENO: result: no" >&5 | |
16889 | echo "${ECHO_T}no" >&6 | |
16890 | fi | |
16891 | ||
16892 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
16893 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
16894 | library_names_spec= | |
16895 | libname_spec='lib$name' | |
16896 | soname_spec= | |
16897 | postinstall_cmds= | |
16898 | postuninstall_cmds= | |
16899 | finish_cmds= | |
16900 | finish_eval= | |
16901 | shlibpath_var= | |
16902 | shlibpath_overrides_runpath=unknown | |
16903 | version_type=none | |
16904 | dynamic_linker="$host_os ld.so" | |
16905 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
16906 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
16907 | need_lib_prefix=unknown | |
16908 | hardcode_into_libs=no | |
16909 | ||
16910 | # when you set need_version to no, make sure it does not cause -set_version | |
16911 | # flags to be left without arguments | |
16912 | need_version=unknown | |
16913 | ||
16914 | case $host_os in | |
16915 | aix3*) | |
16916 | version_type=linux | |
16917 | library_names_spec='${libname}${release}.so$versuffix $libname.a' | |
16918 | shlibpath_var=LIBPATH | |
16919 | ||
16920 | # AIX 3 has no versioning support, so we append a major version to the name. | |
16921 | soname_spec='${libname}${release}.so$major' | |
16922 | ;; | |
16923 | ||
16924 | aix4* | aix5*) | |
16925 | version_type=linux | |
16926 | if test "$host_cpu" = ia64; then | |
16927 | # AIX 5 supports IA64 | |
16928 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' | |
16929 | shlibpath_var=LD_LIBRARY_PATH | |
16930 | else | |
16931 | # With GCC up to 2.95.x, collect2 would create an import file | |
16932 | # for dependence libraries. The import file would start with | |
16933 | # the line `#! .'. This would cause the generated library to | |
16934 | # depend on `.', always an invalid library. This was fixed in | |
16935 | # development snapshots of GCC prior to 3.0. | |
16936 | case $host_os in | |
16937 | aix4 | aix4.[01] | aix4.[01].*) | |
16938 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
16939 | echo ' yes ' | |
16940 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
16941 | : | |
16942 | else | |
16943 | can_build_shared=no | |
16944 | fi | |
16945 | ;; | |
16946 | esac | |
16947 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
16948 | # soname into executable. Probably we can add versioning support to | |
16949 | # collect2, so additional links can be useful in future. | |
16950 | if test "$aix_use_runtimelinking" = yes; then | |
16951 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
16952 | # instead of lib<name>.a to let people know that these are not | |
16953 | # typical AIX shared libraries. | |
16954 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
16955 | else | |
16956 | # We preserve .a as extension for shared libraries through AIX4.2 | |
16957 | # and later when we are not doing run time linking. | |
16958 | library_names_spec='${libname}${release}.a $libname.a' | |
16959 | soname_spec='${libname}${release}.so$major' | |
16960 | fi | |
16961 | shlibpath_var=LIBPATH | |
16962 | fi | |
16963 | ;; | |
16964 | ||
16965 | amigaos*) | |
16966 | library_names_spec='$libname.ixlibrary $libname.a' | |
16967 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
16968 | 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' | |
16969 | ;; | |
16970 | ||
16971 | beos*) | |
16972 | library_names_spec='${libname}.so' | |
16973 | dynamic_linker="$host_os ld.so" | |
16974 | shlibpath_var=LIBRARY_PATH | |
16975 | ;; | |
16976 | ||
16977 | bsdi4*) | |
16978 | version_type=linux | |
16979 | need_version=no | |
16980 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
16981 | soname_spec='${libname}${release}.so$major' | |
16982 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
16983 | shlibpath_var=LD_LIBRARY_PATH | |
16984 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
16985 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
16986 | # the default ld.so.conf also contains /usr/contrib/lib and | |
16987 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
16988 | # libtool to hard-code these into programs | |
16989 | ;; | |
16990 | ||
16991 | cygwin* | mingw* | pw32*) | |
16992 | version_type=windows | |
16993 | need_version=no | |
16994 | need_lib_prefix=no | |
16995 | case $GCC,$host_os in | |
16996 | yes,cygwin*) | |
16997 | library_names_spec='$libname.dll.a' | |
16998 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | |
16999 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
17000 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ | |
17001 | dldir=$destdir/`dirname \$dlpath`~ | |
17002 | test -d \$dldir || mkdir -p \$dldir~ | |
17003 | $install_prog .libs/$dlname \$dldir/$dlname' | |
17004 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
17005 | dlpath=$dir/\$dldll~ | |
17006 | $rm \$dlpath' | |
17007 | ;; | |
17008 | yes,mingw*) | |
17009 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
17010 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"` | |
17011 | if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then | |
17012 | # It is most probably a Windows format PATH printed by | |
17013 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
17014 | # path with ; separators, and with drive letters. We can handle the | |
17015 | # drive letters (cygwin fileutils understands them), so leave them, | |
17016 | # especially as we might pass files found there to a mingw objdump, | |
17017 | # which wouldn't understand a cygwinified path. Ahh. | |
17018 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` | |
17019 | else | |
17020 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` | |
17021 | fi | |
17022 | ;; | |
17023 | yes,pw32*) | |
17024 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' | |
17025 | ;; | |
17026 | *) | |
17027 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' | |
17028 | ;; | |
17029 | esac | |
17030 | dynamic_linker='Win32 ld.exe' | |
17031 | # FIXME: first we should search . and the directory the executable is in | |
17032 | shlibpath_var=PATH | |
17033 | ;; | |
17034 | ||
17035 | darwin* | rhapsody*) | |
17036 | dynamic_linker="$host_os dyld" | |
17037 | version_type=darwin | |
17038 | need_lib_prefix=no | |
17039 | need_version=no | |
17040 | # FIXME: Relying on posixy $() will cause problems for | |
17041 | # cross-compilation, but unfortunately the echo tests do not | |
17042 | # yet detect zsh echo's removal of \ escapes. | |
17043 | 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)' | |
17044 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' | |
17045 | shlibpath_overrides_runpath=yes | |
17046 | shlibpath_var=DYLD_LIBRARY_PATH | |
17047 | ;; | |
17048 | ||
17049 | dgux*) | |
17050 | version_type=linux | |
17051 | need_lib_prefix=no | |
17052 | need_version=no | |
17053 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
17054 | soname_spec='${libname}${release}.so$major' | |
17055 | shlibpath_var=LD_LIBRARY_PATH | |
17056 | ;; | |
17057 | ||
17058 | freebsd1*) | |
17059 | dynamic_linker=no | |
17060 | ;; | |
17061 | ||
17062 | freebsd*) | |
17063 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
17064 | version_type=freebsd-$objformat | |
17065 | case $version_type in | |
17066 | freebsd-elf*) | |
17067 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
17068 | need_version=no | |
17069 | need_lib_prefix=no | |
17070 | ;; | |
17071 | freebsd-*) | |
17072 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' | |
17073 | need_version=yes | |
17074 | ;; | |
17075 | esac | |
17076 | shlibpath_var=LD_LIBRARY_PATH | |
17077 | case $host_os in | |
17078 | freebsd2*) | |
17079 | shlibpath_overrides_runpath=yes | |
17080 | ;; | |
17081 | freebsd3.01* | freebsdelf3.01*) | |
17082 | shlibpath_overrides_runpath=yes | |
17083 | hardcode_into_libs=yes | |
17084 | ;; | |
17085 | *) # from 3.2 on | |
17086 | shlibpath_overrides_runpath=no | |
17087 | hardcode_into_libs=yes | |
17088 | ;; | |
17089 | esac | |
17090 | ;; | |
17091 | ||
17092 | gnu*) | |
17093 | version_type=linux | |
17094 | need_lib_prefix=no | |
17095 | need_version=no | |
17096 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' | |
17097 | soname_spec='${libname}${release}.so$major' | |
17098 | shlibpath_var=LD_LIBRARY_PATH | |
17099 | hardcode_into_libs=yes | |
17100 | ;; | |
17101 | ||
17102 | hpux9* | hpux10* | hpux11*) | |
17103 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
17104 | # link against other versions. | |
17105 | version_type=sunos | |
17106 | need_lib_prefix=no | |
17107 | need_version=no | |
17108 | if test "$host_cpu" = ia64; then | |
17109 | hardcode_into_libs=yes | |
17110 | dynamic_linker="$host_os dld.so" | |
17111 | shlibpath_var=LD_LIBRARY_PATH | |
17112 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
17113 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
17114 | soname_spec='${libname}${release}.so$major' | |
17115 | if test "X$HPUX_IA64_MODE" = X32; then | |
17116 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
17117 | else | |
17118 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
17119 | fi | |
17120 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
17121 | else | |
17122 | dynamic_linker="$host_os dld.sl" | |
17123 | shlibpath_var=SHLIB_PATH | |
17124 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
17125 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' | |
17126 | soname_spec='${libname}${release}.sl$major' | |
17127 | fi | |
17128 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
17129 | postinstall_cmds='chmod 555 $lib' | |
17130 | ;; | |
17131 | ||
17132 | irix5* | irix6* | nonstopux*) | |
17133 | case $host_os in | |
17134 | nonstopux*) version_type=nonstopux ;; | |
17135 | *) version_type=irix ;; | |
17136 | esac | |
17137 | need_lib_prefix=no | |
17138 | need_version=no | |
17139 | soname_spec='${libname}${release}.so$major' | |
17140 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' | |
17141 | case $host_os in | |
17142 | irix5* | nonstopux*) | |
17143 | libsuff= shlibsuff= | |
17144 | ;; | |
17145 | *) | |
17146 | case $LD in # libtool.m4 will add one of these switches to LD | |
17147 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; | |
17148 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; | |
17149 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
17150 | *) libsuff= shlibsuff= libmagic=never-match;; | |
17151 | esac | |
17152 | ;; | |
17153 | esac | |
17154 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
17155 | shlibpath_overrides_runpath=no | |
17156 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
17157 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
17158 | ;; | |
17159 | ||
17160 | # No shared lib support for Linux oldld, aout, or coff. | |
17161 | linux*oldld* | linux*aout* | linux*coff*) | |
17162 | dynamic_linker=no | |
17163 | ;; | |
17164 | ||
17165 | # This must be Linux ELF. | |
17166 | linux*) | |
17167 | version_type=linux | |
17168 | need_lib_prefix=no | |
17169 | need_version=no | |
17170 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
17171 | soname_spec='${libname}${release}.so$major' | |
17172 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
17173 | libsuff= | |
17174 | if test "x$LINUX_64_MODE" = x64; then | |
17175 | # Some platforms are per default 64-bit, so there's no /lib64 | |
17176 | if test -d /lib64; then | |
17177 | libsuff=64 | |
17178 | fi | |
17179 | fi | |
17180 | shlibpath_var=LD_LIBRARY_PATH | |
17181 | shlibpath_overrides_runpath=no | |
17182 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" | |
17183 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
17184 | # This implies no fast_install, which is unacceptable. | |
17185 | # Some rework will be needed to allow for fast_install | |
17186 | # before this can be enabled. | |
17187 | hardcode_into_libs=yes | |
17188 | ||
17189 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
17190 | # powerpc, because MkLinux only supported shared libraries with the | |
17191 | # GNU dynamic linker. Since this was broken with cross compilers, | |
17192 | # most powerpc-linux boxes support dynamic linking these days and | |
17193 | # people can always --disable-shared, the test was removed, and we | |
17194 | # assume the GNU/Linux dynamic linker is in use. | |
17195 | dynamic_linker='GNU/Linux ld.so' | |
17196 | ;; | |
17197 | ||
17198 | netbsd*) | |
17199 | version_type=sunos | |
17200 | need_lib_prefix=no | |
17201 | need_version=no | |
17202 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
17203 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
17204 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
17205 | dynamic_linker='NetBSD (a.out) ld.so' | |
17206 | else | |
17207 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' | |
17208 | soname_spec='${libname}${release}.so$major' | |
17209 | dynamic_linker='NetBSD ld.elf_so' | |
17210 | fi | |
17211 | shlibpath_var=LD_LIBRARY_PATH | |
17212 | shlibpath_overrides_runpath=yes | |
17213 | hardcode_into_libs=yes | |
17214 | ;; | |
17215 | ||
17216 | newsos6) | |
17217 | version_type=linux | |
17218 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
17219 | shlibpath_var=LD_LIBRARY_PATH | |
17220 | shlibpath_overrides_runpath=yes | |
17221 | ;; | |
17222 | ||
17223 | nto-qnx) | |
17224 | version_type=linux | |
17225 | need_lib_prefix=no | |
17226 | need_version=no | |
17227 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
17228 | soname_spec='${libname}${release}.so$major' | |
17229 | shlibpath_var=LD_LIBRARY_PATH | |
17230 | shlibpath_overrides_runpath=yes | |
17231 | ;; | |
17232 | ||
17233 | openbsd*) | |
17234 | version_type=sunos | |
17235 | need_lib_prefix=no | |
17236 | need_version=no | |
17237 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
17238 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
17239 | shlibpath_var=LD_LIBRARY_PATH | |
17240 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
17241 | case $host_os in | |
17242 | openbsd2.[89] | openbsd2.[89].*) | |
17243 | shlibpath_overrides_runpath=no | |
17244 | ;; | |
17245 | *) | |
17246 | shlibpath_overrides_runpath=yes | |
17247 | ;; | |
17248 | esac | |
17249 | else | |
17250 | shlibpath_overrides_runpath=yes | |
17251 | fi | |
17252 | ;; | |
17253 | ||
17254 | os2*) | |
17255 | libname_spec='$name' | |
17256 | need_lib_prefix=no | |
17257 | library_names_spec='$libname.dll $libname.a' | |
17258 | dynamic_linker='OS/2 ld.exe' | |
17259 | shlibpath_var=LIBPATH | |
17260 | ;; | |
17261 | ||
17262 | osf3* | osf4* | osf5*) | |
17263 | version_type=osf | |
17264 | need_lib_prefix=no | |
17265 | need_version=no | |
17266 | soname_spec='${libname}${release}.so' | |
17267 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
17268 | shlibpath_var=LD_LIBRARY_PATH | |
17269 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
17270 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
17271 | ;; | |
17272 | ||
17273 | sco3.2v5*) | |
17274 | version_type=osf | |
17275 | soname_spec='${libname}${release}.so$major' | |
17276 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
17277 | shlibpath_var=LD_LIBRARY_PATH | |
17278 | ;; | |
17279 | ||
17280 | solaris*) | |
17281 | version_type=linux | |
17282 | need_lib_prefix=no | |
17283 | need_version=no | |
17284 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
17285 | soname_spec='${libname}${release}.so$major' | |
17286 | shlibpath_var=LD_LIBRARY_PATH | |
17287 | shlibpath_overrides_runpath=yes | |
17288 | hardcode_into_libs=yes | |
17289 | # ldd complains unless libraries are executable | |
17290 | postinstall_cmds='chmod +x $lib' | |
17291 | ;; | |
17292 | ||
17293 | sunos4*) | |
17294 | version_type=sunos | |
17295 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
17296 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
17297 | shlibpath_var=LD_LIBRARY_PATH | |
17298 | shlibpath_overrides_runpath=yes | |
17299 | if test "$with_gnu_ld" = yes; then | |
17300 | need_lib_prefix=no | |
17301 | fi | |
17302 | need_version=yes | |
17303 | ;; | |
17304 | ||
17305 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
17306 | version_type=linux | |
17307 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
17308 | soname_spec='${libname}${release}.so$major' | |
17309 | shlibpath_var=LD_LIBRARY_PATH | |
17310 | case $host_vendor in | |
17311 | sni) | |
17312 | shlibpath_overrides_runpath=no | |
17313 | ;; | |
17314 | motorola) | |
17315 | need_lib_prefix=no | |
17316 | need_version=no | |
17317 | shlibpath_overrides_runpath=no | |
17318 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
17319 | ;; | |
17320 | esac | |
17321 | ;; | |
17322 | ||
17323 | sysv4*MP*) | |
17324 | if test -d /usr/nec ;then | |
17325 | version_type=linux | |
17326 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' | |
17327 | soname_spec='$libname.so.$major' | |
17328 | shlibpath_var=LD_LIBRARY_PATH | |
17329 | fi | |
17330 | ;; | |
17331 | ||
17332 | uts4*) | |
17333 | version_type=linux | |
17334 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
17335 | soname_spec='${libname}${release}.so$major' | |
17336 | shlibpath_var=LD_LIBRARY_PATH | |
17337 | ;; | |
17338 | ||
17339 | *) | |
17340 | dynamic_linker=no | |
17341 | ;; | |
17342 | esac | |
17343 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
17344 | echo "${ECHO_T}$dynamic_linker" >&6 | |
17345 | test "$dynamic_linker" = no && can_build_shared=no | |
17346 | ||
17347 | if test "x$enable_dlopen" != xyes; then | |
17348 | enable_dlopen=unknown | |
17349 | enable_dlopen_self=unknown | |
17350 | enable_dlopen_self_static=unknown | |
17351 | else | |
17352 | lt_cv_dlopen=no | |
17353 | lt_cv_dlopen_libs= | |
17354 | ||
17355 | case $host_os in | |
17356 | beos*) | |
17357 | lt_cv_dlopen="load_add_on" | |
17358 | lt_cv_dlopen_libs= | |
17359 | lt_cv_dlopen_self=yes | |
17360 | ;; | |
17361 | ||
17362 | cygwin* | mingw* | pw32*) | |
17363 | lt_cv_dlopen="LoadLibrary" | |
17364 | lt_cv_dlopen_libs= | |
17365 | ;; | |
17366 | ||
17367 | *) | |
17368 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
17369 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
17370 | if test "${ac_cv_func_shl_load+set}" = set; then | |
17371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17372 | else | |
17373 | cat >conftest.$ac_ext <<_ACEOF | |
17374 | #line $LINENO "configure" | |
17375 | #include "confdefs.h" | |
17376 | /* System header to define __stub macros and hopefully few prototypes, | |
17377 | which can conflict with char shl_load (); below. */ | |
17378 | #include <assert.h> | |
17379 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17380 | #ifdef __cplusplus | |
17381 | extern "C" | |
17382 | #endif | |
17383 | /* We use char because int might match the return type of a gcc2 | |
17384 | builtin and then its argument prototype would still apply. */ | |
17385 | char shl_load (); | |
17386 | char (*f) (); | |
17387 | ||
17388 | #ifdef F77_DUMMY_MAIN | |
17389 | # ifdef __cplusplus | |
17390 | extern "C" | |
17391 | # endif | |
17392 | int F77_DUMMY_MAIN() { return 1; } | |
17393 | #endif | |
17394 | int | |
17395 | main () | |
17396 | { | |
17397 | /* The GNU C library defines this for functions which it implements | |
17398 | to always fail with ENOSYS. Some functions are actually named | |
17399 | something starting with __ and the normal name is an alias. */ | |
17400 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
17401 | choke me | |
17402 | #else | |
17403 | f = shl_load; | |
17404 | #endif | |
17405 | ||
17406 | ; | |
17407 | return 0; | |
17408 | } | |
17409 | _ACEOF | |
17410 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17411 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17412 | (eval $ac_link) 2>&5 | |
17413 | ac_status=$? | |
17414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17415 | (exit $ac_status); } && | |
17416 | { ac_try='test -s conftest$ac_exeext' | |
17417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17418 | (eval $ac_try) 2>&5 | |
17419 | ac_status=$? | |
17420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17421 | (exit $ac_status); }; }; then | |
17422 | ac_cv_func_shl_load=yes | |
17423 | else | |
17424 | echo "$as_me: failed program was:" >&5 | |
17425 | cat conftest.$ac_ext >&5 | |
17426 | ac_cv_func_shl_load=no | |
17427 | fi | |
17428 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
17429 | fi | |
17430 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
17431 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
17432 | if test $ac_cv_func_shl_load = yes; then | |
17433 | lt_cv_dlopen="shl_load" | |
17434 | else | |
17435 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
17436 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
17437 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
17438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17439 | else | |
17440 | ac_check_lib_save_LIBS=$LIBS | |
17441 | LIBS="-ldld $LIBS" | |
17442 | cat >conftest.$ac_ext <<_ACEOF | |
17443 | #line $LINENO "configure" | |
17444 | #include "confdefs.h" | |
17445 | ||
17446 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17447 | #ifdef __cplusplus | |
17448 | extern "C" | |
17449 | #endif | |
17450 | /* We use char because int might match the return type of a gcc2 | |
17451 | builtin and then its argument prototype would still apply. */ | |
17452 | char shl_load (); | |
17453 | #ifdef F77_DUMMY_MAIN | |
17454 | # ifdef __cplusplus | |
17455 | extern "C" | |
17456 | # endif | |
17457 | int F77_DUMMY_MAIN() { return 1; } | |
17458 | #endif | |
17459 | int | |
17460 | main () | |
17461 | { | |
17462 | shl_load (); | |
17463 | ; | |
17464 | return 0; | |
17465 | } | |
17466 | _ACEOF | |
17467 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17468 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17469 | (eval $ac_link) 2>&5 | |
17470 | ac_status=$? | |
17471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17472 | (exit $ac_status); } && | |
17473 | { ac_try='test -s conftest$ac_exeext' | |
17474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17475 | (eval $ac_try) 2>&5 | |
17476 | ac_status=$? | |
17477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17478 | (exit $ac_status); }; }; then | |
17479 | ac_cv_lib_dld_shl_load=yes | |
17480 | else | |
17481 | echo "$as_me: failed program was:" >&5 | |
17482 | cat conftest.$ac_ext >&5 | |
17483 | ac_cv_lib_dld_shl_load=no | |
17484 | fi | |
17485 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
17486 | LIBS=$ac_check_lib_save_LIBS | |
17487 | fi | |
17488 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
17489 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
17490 | if test $ac_cv_lib_dld_shl_load = yes; then | |
17491 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
17492 | else | |
17493 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
17494 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
17495 | if test "${ac_cv_func_dlopen+set}" = set; then | |
17496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17497 | else | |
17498 | cat >conftest.$ac_ext <<_ACEOF | |
17499 | #line $LINENO "configure" | |
17500 | #include "confdefs.h" | |
17501 | /* System header to define __stub macros and hopefully few prototypes, | |
17502 | which can conflict with char dlopen (); below. */ | |
17503 | #include <assert.h> | |
17504 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17505 | #ifdef __cplusplus | |
17506 | extern "C" | |
17507 | #endif | |
17508 | /* We use char because int might match the return type of a gcc2 | |
17509 | builtin and then its argument prototype would still apply. */ | |
17510 | char dlopen (); | |
17511 | char (*f) (); | |
17512 | ||
17513 | #ifdef F77_DUMMY_MAIN | |
17514 | # ifdef __cplusplus | |
17515 | extern "C" | |
17516 | # endif | |
17517 | int F77_DUMMY_MAIN() { return 1; } | |
17518 | #endif | |
17519 | int | |
17520 | main () | |
17521 | { | |
17522 | /* The GNU C library defines this for functions which it implements | |
17523 | to always fail with ENOSYS. Some functions are actually named | |
17524 | something starting with __ and the normal name is an alias. */ | |
17525 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
17526 | choke me | |
17527 | #else | |
17528 | f = dlopen; | |
17529 | #endif | |
17530 | ||
17531 | ; | |
17532 | return 0; | |
17533 | } | |
17534 | _ACEOF | |
17535 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17536 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17537 | (eval $ac_link) 2>&5 | |
17538 | ac_status=$? | |
17539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17540 | (exit $ac_status); } && | |
17541 | { ac_try='test -s conftest$ac_exeext' | |
17542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17543 | (eval $ac_try) 2>&5 | |
17544 | ac_status=$? | |
17545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17546 | (exit $ac_status); }; }; then | |
17547 | ac_cv_func_dlopen=yes | |
17548 | else | |
17549 | echo "$as_me: failed program was:" >&5 | |
17550 | cat conftest.$ac_ext >&5 | |
17551 | ac_cv_func_dlopen=no | |
17552 | fi | |
17553 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
17554 | fi | |
17555 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
17556 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
17557 | if test $ac_cv_func_dlopen = yes; then | |
17558 | lt_cv_dlopen="dlopen" | |
17559 | else | |
17560 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
17561 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
17562 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
17563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17564 | else | |
17565 | ac_check_lib_save_LIBS=$LIBS | |
17566 | LIBS="-ldl $LIBS" | |
17567 | cat >conftest.$ac_ext <<_ACEOF | |
17568 | #line $LINENO "configure" | |
17569 | #include "confdefs.h" | |
17570 | ||
17571 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17572 | #ifdef __cplusplus | |
17573 | extern "C" | |
17574 | #endif | |
17575 | /* We use char because int might match the return type of a gcc2 | |
17576 | builtin and then its argument prototype would still apply. */ | |
17577 | char dlopen (); | |
17578 | #ifdef F77_DUMMY_MAIN | |
17579 | # ifdef __cplusplus | |
17580 | extern "C" | |
17581 | # endif | |
17582 | int F77_DUMMY_MAIN() { return 1; } | |
17583 | #endif | |
17584 | int | |
17585 | main () | |
17586 | { | |
17587 | dlopen (); | |
17588 | ; | |
17589 | return 0; | |
17590 | } | |
17591 | _ACEOF | |
17592 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17593 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17594 | (eval $ac_link) 2>&5 | |
17595 | ac_status=$? | |
17596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17597 | (exit $ac_status); } && | |
17598 | { ac_try='test -s conftest$ac_exeext' | |
17599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17600 | (eval $ac_try) 2>&5 | |
17601 | ac_status=$? | |
17602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17603 | (exit $ac_status); }; }; then | |
17604 | ac_cv_lib_dl_dlopen=yes | |
17605 | else | |
17606 | echo "$as_me: failed program was:" >&5 | |
17607 | cat conftest.$ac_ext >&5 | |
17608 | ac_cv_lib_dl_dlopen=no | |
17609 | fi | |
17610 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
17611 | LIBS=$ac_check_lib_save_LIBS | |
17612 | fi | |
17613 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
17614 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
17615 | if test $ac_cv_lib_dl_dlopen = yes; then | |
17616 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
17617 | else | |
17618 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
17619 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
17620 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
17621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17622 | else | |
17623 | ac_check_lib_save_LIBS=$LIBS | |
17624 | LIBS="-lsvld $LIBS" | |
17625 | cat >conftest.$ac_ext <<_ACEOF | |
17626 | #line $LINENO "configure" | |
17627 | #include "confdefs.h" | |
17628 | ||
17629 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17630 | #ifdef __cplusplus | |
17631 | extern "C" | |
17632 | #endif | |
17633 | /* We use char because int might match the return type of a gcc2 | |
17634 | builtin and then its argument prototype would still apply. */ | |
17635 | char dlopen (); | |
17636 | #ifdef F77_DUMMY_MAIN | |
17637 | # ifdef __cplusplus | |
17638 | extern "C" | |
17639 | # endif | |
17640 | int F77_DUMMY_MAIN() { return 1; } | |
17641 | #endif | |
17642 | int | |
17643 | main () | |
17644 | { | |
17645 | dlopen (); | |
17646 | ; | |
17647 | return 0; | |
17648 | } | |
17649 | _ACEOF | |
17650 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17652 | (eval $ac_link) 2>&5 | |
17653 | ac_status=$? | |
17654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17655 | (exit $ac_status); } && | |
17656 | { ac_try='test -s conftest$ac_exeext' | |
17657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17658 | (eval $ac_try) 2>&5 | |
17659 | ac_status=$? | |
17660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17661 | (exit $ac_status); }; }; then | |
17662 | ac_cv_lib_svld_dlopen=yes | |
17663 | else | |
17664 | echo "$as_me: failed program was:" >&5 | |
17665 | cat conftest.$ac_ext >&5 | |
17666 | ac_cv_lib_svld_dlopen=no | |
17667 | fi | |
17668 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
17669 | LIBS=$ac_check_lib_save_LIBS | |
17670 | fi | |
17671 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
17672 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
17673 | if test $ac_cv_lib_svld_dlopen = yes; then | |
17674 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
17675 | else | |
17676 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
17677 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
17678 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
17679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17680 | else | |
17681 | ac_check_lib_save_LIBS=$LIBS | |
17682 | LIBS="-ldld $LIBS" | |
17683 | cat >conftest.$ac_ext <<_ACEOF | |
17684 | #line $LINENO "configure" | |
17685 | #include "confdefs.h" | |
17686 | ||
17687 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17688 | #ifdef __cplusplus | |
17689 | extern "C" | |
17690 | #endif | |
17691 | /* We use char because int might match the return type of a gcc2 | |
17692 | builtin and then its argument prototype would still apply. */ | |
17693 | char dld_link (); | |
17694 | #ifdef F77_DUMMY_MAIN | |
17695 | # ifdef __cplusplus | |
17696 | extern "C" | |
17697 | # endif | |
17698 | int F77_DUMMY_MAIN() { return 1; } | |
17699 | #endif | |
17700 | int | |
17701 | main () | |
17702 | { | |
17703 | dld_link (); | |
17704 | ; | |
17705 | return 0; | |
17706 | } | |
17707 | _ACEOF | |
17708 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17709 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17710 | (eval $ac_link) 2>&5 | |
17711 | ac_status=$? | |
17712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17713 | (exit $ac_status); } && | |
17714 | { ac_try='test -s conftest$ac_exeext' | |
17715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17716 | (eval $ac_try) 2>&5 | |
17717 | ac_status=$? | |
17718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17719 | (exit $ac_status); }; }; then | |
17720 | ac_cv_lib_dld_dld_link=yes | |
17721 | else | |
17722 | echo "$as_me: failed program was:" >&5 | |
17723 | cat conftest.$ac_ext >&5 | |
17724 | ac_cv_lib_dld_dld_link=no | |
17725 | fi | |
17726 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
17727 | LIBS=$ac_check_lib_save_LIBS | |
17728 | fi | |
17729 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
17730 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
17731 | if test $ac_cv_lib_dld_dld_link = yes; then | |
17732 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
17733 | fi | |
17734 | ||
17735 | ||
17736 | fi | |
17737 | ||
17738 | ||
17739 | fi | |
17740 | ||
17741 | ||
17742 | fi | |
17743 | ||
17744 | ||
17745 | fi | |
17746 | ||
17747 | ||
17748 | fi | |
17749 | ||
17750 | ;; | |
17751 | esac | |
17752 | ||
17753 | if test "x$lt_cv_dlopen" != xno; then | |
17754 | enable_dlopen=yes | |
17755 | else | |
17756 | enable_dlopen=no | |
17757 | fi | |
17758 | ||
17759 | case $lt_cv_dlopen in | |
17760 | dlopen) | |
17761 | save_CPPFLAGS="$CPPFLAGS" | |
17762 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
17763 | ||
17764 | save_LDFLAGS="$LDFLAGS" | |
17765 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
17766 | ||
17767 | save_LIBS="$LIBS" | |
17768 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
17769 | ||
17770 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
17771 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
17772 | if test "${lt_cv_dlopen_self+set}" = set; then | |
17773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17774 | else | |
17775 | if test "$cross_compiling" = yes; then : | |
17776 | lt_cv_dlopen_self=cross | |
17777 | else | |
17778 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
17779 | lt_status=$lt_dlunknown | |
17780 | cat > conftest.$ac_ext <<EOF | |
17781 | #line 17781 "configure" | |
17782 | #include "confdefs.h" | |
17783 | ||
17784 | #if HAVE_DLFCN_H | |
17785 | #include <dlfcn.h> | |
17786 | #endif | |
17787 | ||
17788 | #include <stdio.h> | |
17789 | ||
17790 | #ifdef RTLD_GLOBAL | |
17791 | # define LT_DLGLOBAL RTLD_GLOBAL | |
17792 | #else | |
17793 | # ifdef DL_GLOBAL | |
17794 | # define LT_DLGLOBAL DL_GLOBAL | |
17795 | # else | |
17796 | # define LT_DLGLOBAL 0 | |
17797 | # endif | |
17798 | #endif | |
17799 | ||
17800 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
17801 | find out it does not work in some platform. */ | |
17802 | #ifndef LT_DLLAZY_OR_NOW | |
17803 | # ifdef RTLD_LAZY | |
17804 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
17805 | # else | |
17806 | # ifdef DL_LAZY | |
17807 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
17808 | # else | |
17809 | # ifdef RTLD_NOW | |
17810 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
17811 | # else | |
17812 | # ifdef DL_NOW | |
17813 | # define LT_DLLAZY_OR_NOW DL_NOW | |
17814 | # else | |
17815 | # define LT_DLLAZY_OR_NOW 0 | |
17816 | # endif | |
17817 | # endif | |
17818 | # endif | |
17819 | # endif | |
17820 | #endif | |
17821 | ||
17822 | #ifdef __cplusplus | |
17823 | extern "C" void exit (int); | |
17824 | #endif | |
17825 | ||
17826 | void fnord() { int i=42;} | |
17827 | int main () | |
17828 | { | |
17829 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
17830 | int status = $lt_dlunknown; | |
17831 | ||
17832 | if (self) | |
17833 | { | |
17834 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
17835 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
17836 | /* dlclose (self); */ | |
17837 | } | |
17838 | ||
17839 | exit (status); | |
17840 | } | |
17841 | EOF | |
17842 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17843 | (eval $ac_link) 2>&5 | |
17844 | ac_status=$? | |
17845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17846 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
17847 | (./conftest; exit; ) 2>/dev/null | |
17848 | lt_status=$? | |
17849 | case x$lt_status in | |
17850 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
17851 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
17852 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
17853 | esac | |
17854 | else : | |
17855 | # compilation failed | |
17856 | lt_cv_dlopen_self=no | |
17857 | fi | |
17858 | fi | |
17859 | rm -fr conftest* | |
17860 | ||
17861 | ||
17862 | fi | |
17863 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
17864 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
17865 | ||
17866 | if test "x$lt_cv_dlopen_self" = xyes; then | |
17867 | LDFLAGS="$LDFLAGS $link_static_flag" | |
17868 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
17869 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
17870 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
17871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17872 | else | |
17873 | if test "$cross_compiling" = yes; then : | |
17874 | lt_cv_dlopen_self_static=cross | |
17875 | else | |
17876 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
17877 | lt_status=$lt_dlunknown | |
17878 | cat > conftest.$ac_ext <<EOF | |
17879 | #line 17879 "configure" | |
17880 | #include "confdefs.h" | |
17881 | ||
17882 | #if HAVE_DLFCN_H | |
17883 | #include <dlfcn.h> | |
17884 | #endif | |
17885 | ||
17886 | #include <stdio.h> | |
17887 | ||
17888 | #ifdef RTLD_GLOBAL | |
17889 | # define LT_DLGLOBAL RTLD_GLOBAL | |
17890 | #else | |
17891 | # ifdef DL_GLOBAL | |
17892 | # define LT_DLGLOBAL DL_GLOBAL | |
17893 | # else | |
17894 | # define LT_DLGLOBAL 0 | |
17895 | # endif | |
17896 | #endif | |
17897 | ||
17898 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
17899 | find out it does not work in some platform. */ | |
17900 | #ifndef LT_DLLAZY_OR_NOW | |
17901 | # ifdef RTLD_LAZY | |
17902 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
17903 | # else | |
17904 | # ifdef DL_LAZY | |
17905 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
17906 | # else | |
17907 | # ifdef RTLD_NOW | |
17908 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
17909 | # else | |
17910 | # ifdef DL_NOW | |
17911 | # define LT_DLLAZY_OR_NOW DL_NOW | |
17912 | # else | |
17913 | # define LT_DLLAZY_OR_NOW 0 | |
17914 | # endif | |
17915 | # endif | |
17916 | # endif | |
17917 | # endif | |
17918 | #endif | |
17919 | ||
17920 | #ifdef __cplusplus | |
17921 | extern "C" void exit (int); | |
17922 | #endif | |
17923 | ||
17924 | void fnord() { int i=42;} | |
17925 | int main () | |
17926 | { | |
17927 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
17928 | int status = $lt_dlunknown; | |
17929 | ||
17930 | if (self) | |
17931 | { | |
17932 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
17933 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
17934 | /* dlclose (self); */ | |
17935 | } | |
17936 | ||
17937 | exit (status); | |
17938 | } | |
17939 | EOF | |
17940 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17941 | (eval $ac_link) 2>&5 | |
17942 | ac_status=$? | |
17943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17944 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
17945 | (./conftest; exit; ) 2>/dev/null | |
17946 | lt_status=$? | |
17947 | case x$lt_status in | |
17948 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
17949 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
17950 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
17951 | esac | |
17952 | else : | |
17953 | # compilation failed | |
17954 | lt_cv_dlopen_self_static=no | |
17955 | fi | |
17956 | fi | |
17957 | rm -fr conftest* | |
17958 | ||
17959 | ||
17960 | fi | |
17961 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
17962 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
17963 | fi | |
17964 | ||
17965 | CPPFLAGS="$save_CPPFLAGS" | |
17966 | LDFLAGS="$save_LDFLAGS" | |
17967 | LIBS="$save_LIBS" | |
17968 | ;; | |
17969 | esac | |
17970 | ||
17971 | case $lt_cv_dlopen_self in | |
17972 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
17973 | *) enable_dlopen_self=unknown ;; | |
17974 | esac | |
17975 | ||
17976 | case $lt_cv_dlopen_self_static in | |
17977 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
17978 | *) enable_dlopen_self_static=unknown ;; | |
17979 | esac | |
17980 | fi | |
17981 | ||
17982 | ||
17983 | # Report which librarie types wil actually be built | |
17984 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
17985 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
17986 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
17987 | echo "${ECHO_T}$can_build_shared" >&6 | |
17988 | ||
17989 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
17990 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
17991 | test "$can_build_shared" = "no" && enable_shared=no | |
17992 | ||
17993 | # On AIX, shared libraries and static libraries use the same namespace, and | |
17994 | # are all built from PIC. | |
17995 | case "$host_os" in | |
17996 | aix3*) | |
17997 | test "$enable_shared" = yes && enable_static=no | |
17998 | if test -n "$RANLIB"; then | |
17999 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
18000 | postinstall_cmds='$RANLIB $lib' | |
18001 | fi | |
18002 | ;; | |
18003 | ||
18004 | aix4*) | |
18005 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
18006 | test "$enable_shared" = yes && enable_static=no | |
18007 | fi | |
18008 | ;; | |
18009 | esac | |
18010 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
18011 | echo "${ECHO_T}$enable_shared" >&6 | |
18012 | ||
18013 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
18014 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
18015 | # Make sure either enable_shared or enable_static is yes. | |
18016 | test "$enable_shared" = yes || enable_static=yes | |
18017 | echo "$as_me:$LINENO: result: $enable_static" >&5 | |
18018 | echo "${ECHO_T}$enable_static" >&6 | |
18019 | ||
18020 | # The else clause should only fire when bootstrapping the | |
18021 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
18022 | # with your package, and you will get complaints that there are | |
18023 | # no rules to generate ltmain.sh. | |
18024 | if test -f "$ltmain"; then | |
18025 | # Now quote all the things that may contain metacharacters while being | |
18026 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
18027 | # variables and quote the copies for generation of the libtool script. | |
18028 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \ | |
18029 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
18030 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
18031 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
18032 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
18033 | lt_cv_sys_global_symbol_to_c_name_address \ | |
18034 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
18035 | old_postinstall_cmds old_postuninstall_cmds \ | |
18036 | compiler \ | |
18037 | CC \ | |
18038 | LD \ | |
18039 | lt_prog_compiler_wl \ | |
18040 | lt_prog_compiler_pic \ | |
18041 | lt_prog_compiler_static \ | |
18042 | lt_prog_compiler_no_builtin_flag \ | |
18043 | export_dynamic_flag_spec \ | |
18044 | thread_safe_flag_spec \ | |
18045 | whole_archive_flag_spec \ | |
18046 | old_archive_cmds \ | |
18047 | old_archive_from_new_cmds \ | |
18048 | predep_objects \ | |
18049 | postdep_objects \ | |
18050 | predeps \ | |
18051 | postdeps \ | |
18052 | compiler_lib_search_path \ | |
18053 | archive_cmds \ | |
18054 | archive_expsym_cmds \ | |
18055 | postinstall_cmds \ | |
18056 | postuninstall_cmds \ | |
18057 | old_archive_from_expsyms_cmds \ | |
18058 | allow_undefined_flag \ | |
18059 | no_undefined_flag \ | |
18060 | export_symbols_cmds \ | |
18061 | hardcode_libdir_flag_spec \ | |
18062 | hardcode_libdir_separator \ | |
18063 | lt_cv_prog_compiler_c_o \ | |
18064 | exclude_expsyms \ | |
18065 | include_expsyms; do | |
18066 | ||
18067 | case $var in | |
18068 | old_archive_cmds | \ | |
18069 | old_archive_from_new_cmds | \ | |
18070 | archive_cmds | \ | |
18071 | archive_expsym_cmds | \ | |
18072 | old_archive_from_expsyms_cmds | \ | |
18073 | export_symbols_cmds | \ | |
18074 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
18075 | postinstall_cmds | postuninstall_cmds | \ | |
18076 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
18077 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
18078 | # Double-quote double-evaled strings. | |
18079 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
18080 | ;; | |
18081 | *) | |
18082 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
18083 | ;; | |
18084 | esac | |
18085 | done | |
18086 | ||
18087 | case $lt_echo in | |
18088 | *'\$0 --fallback-echo"') | |
18089 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
18090 | ;; | |
18091 | esac | |
18092 | ||
18093 | cfgfile="${ofile}T" | |
18094 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | |
18095 | $rm -f "$cfgfile" | |
18096 | { echo "$as_me:$LINENO: creating $ofile" >&5 | |
18097 | echo "$as_me: creating $ofile" >&6;} | |
18098 | ||
18099 | cat <<__EOF__ >> "$cfgfile" | |
18100 | #! $SHELL | |
18101 | ||
18102 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
18103 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | |
18104 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
18105 | # | |
18106 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | |
18107 | # Free Software Foundation, Inc. | |
18108 | # | |
18109 | # This file is part of GNU Libtool: | |
18110 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
18111 | # | |
18112 | # This program is free software; you can redistribute it and/or modify | |
18113 | # it under the terms of the GNU General Public License as published by | |
18114 | # the Free Software Foundation; either version 2 of the License, or | |
18115 | # (at your option) any later version. | |
18116 | # | |
18117 | # This program is distributed in the hope that it will be useful, but | |
18118 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
18119 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
18120 | # General Public License for more details. | |
18121 | # | |
18122 | # You should have received a copy of the GNU General Public License | |
18123 | # along with this program; if not, write to the Free Software | |
18124 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
18125 | # | |
18126 | # As a special exception to the GNU General Public License, if you | |
18127 | # distribute this file as part of a program that contains a | |
18128 | # configuration script generated by Autoconf, you may include it under | |
18129 | # the same distribution terms that you use for the rest of that program. | |
18130 | ||
18131 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
18132 | Xsed="sed -e s/^X//" | |
18133 | ||
18134 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
18135 | # if CDPATH is set. | |
18136 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | |
18137 | ||
18138 | # The names of the tagged configurations supported by this script. | |
18139 | available_tags= | |
18140 | ||
18141 | # ### BEGIN LIBTOOL CONFIG | |
18142 | ||
18143 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18144 | ||
18145 | # Shell to use when invoking shell scripts. | |
18146 | SHELL=$lt_SHELL | |
18147 | ||
18148 | # Whether or not to build shared libraries. | |
18149 | build_libtool_libs=$enable_shared | |
18150 | ||
18151 | # Whether or not to build static libraries. | |
18152 | build_old_libs=$enable_static | |
18153 | ||
18154 | # Whether or not to add -lc for building shared libraries. | |
18155 | build_libtool_need_lc=$archive_cmds_need_lc | |
18156 | ||
18157 | # Whether or not to optimize for fast installation. | |
18158 | fast_install=$enable_fast_install | |
18159 | ||
18160 | # The host system. | |
18161 | host_alias=$host_alias | |
18162 | host=$host | |
18163 | ||
18164 | # An echo program that does not interpret backslashes. | |
18165 | echo=$lt_echo | |
18166 | ||
18167 | # The archiver. | |
18168 | AR=$lt_AR | |
18169 | AR_FLAGS=$lt_AR_FLAGS | |
18170 | ||
18171 | # A C compiler. | |
18172 | LTCC=$lt_LTCC | |
18173 | ||
18174 | # A language-specific compiler. | |
18175 | CC=$lt_compiler | |
18176 | ||
18177 | # Is the compiler the GNU C compiler? | |
18178 | with_gcc=$GCC | |
18179 | ||
18180 | # The linker used to build libraries. | |
18181 | LD=$lt_LD | |
18182 | ||
18183 | # Whether we need hard or soft links. | |
18184 | LN_S=$lt_LN_S | |
18185 | ||
18186 | # A BSD-compatible nm program. | |
18187 | NM=$lt_NM | |
18188 | ||
18189 | # A sed program that does not truncate output. | |
18190 | SED=$lt_SED | |
18191 | ||
18192 | # A symbol stripping program | |
18193 | STRIP=$STRIP | |
18194 | ||
18195 | # Used to examine libraries when file_magic_cmd begins "file" | |
18196 | MAGIC_CMD=$MAGIC_CMD | |
18197 | ||
18198 | # Used on cygwin: DLL creation program. | |
18199 | DLLTOOL="$DLLTOOL" | |
18200 | ||
18201 | # Used on cygwin: object dumper. | |
18202 | OBJDUMP="$OBJDUMP" | |
18203 | ||
18204 | # Used on cygwin: assembler. | |
18205 | AS="$AS" | |
18206 | ||
18207 | # The name of the directory that contains temporary libtool files. | |
18208 | objdir=$objdir | |
18209 | ||
18210 | # How to create reloadable object files. | |
18211 | reload_flag=$lt_reload_flag | |
18212 | reload_cmds=$lt_reload_cmds | |
18213 | ||
18214 | # How to pass a linker flag through the compiler. | |
18215 | wl=$lt_lt_prog_compiler_wl | |
18216 | ||
18217 | # Object file suffix (normally "o"). | |
18218 | objext="$ac_objext" | |
18219 | ||
18220 | # Old archive suffix (normally "a"). | |
18221 | libext="$libext" | |
18222 | ||
18223 | # Executable file suffix (normally ""). | |
18224 | exeext="$exeext" | |
18225 | ||
18226 | # Additional compiler flags for building library objects. | |
18227 | pic_flag=$lt_lt_prog_compiler_pic | |
18228 | pic_mode=$pic_mode | |
18229 | ||
18230 | # What is the maximum length of a command? | |
18231 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
18232 | ||
18233 | # Does compiler simultaneously support -c and -o options? | |
18234 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
18235 | ||
18236 | # Must we lock files when doing compilation ? | |
18237 | need_locks=$lt_need_locks | |
18238 | ||
18239 | # Do we need the lib prefix for modules? | |
18240 | need_lib_prefix=$need_lib_prefix | |
18241 | ||
18242 | # Do we need a version for libraries? | |
18243 | need_version=$need_version | |
18244 | ||
18245 | # Whether dlopen is supported. | |
18246 | dlopen_support=$enable_dlopen | |
18247 | ||
18248 | # Whether dlopen of programs is supported. | |
18249 | dlopen_self=$enable_dlopen_self | |
18250 | ||
18251 | # Whether dlopen of statically linked programs is supported. | |
18252 | dlopen_self_static=$enable_dlopen_self_static | |
18253 | ||
18254 | # Compiler flag to prevent dynamic linking. | |
18255 | link_static_flag=$lt_lt_prog_compiler_static | |
18256 | ||
18257 | # Compiler flag to turn off builtin functions. | |
18258 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
18259 | ||
18260 | # Compiler flag to allow reflexive dlopens. | |
18261 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
18262 | ||
18263 | # Compiler flag to generate shared objects directly from archives. | |
18264 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
18265 | ||
18266 | # Compiler flag to generate thread-safe objects. | |
18267 | thread_safe_flag_spec=$lt_thread_safe_flag_spec | |
18268 | ||
18269 | # Library versioning type. | |
18270 | version_type=$version_type | |
18271 | ||
18272 | # Format of library name prefix. | |
18273 | libname_spec=$lt_libname_spec | |
18274 | ||
18275 | # List of archive names. First name is the real one, the rest are links. | |
18276 | # The last name is the one that the linker finds with -lNAME. | |
18277 | library_names_spec=$lt_library_names_spec | |
18278 | ||
18279 | # The coded name of the library, if different from the real name. | |
18280 | soname_spec=$lt_soname_spec | |
18281 | ||
18282 | # Commands used to build and install an old-style archive. | |
18283 | RANLIB=$lt_RANLIB | |
18284 | old_archive_cmds=$lt_old_archive_cmds | |
18285 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
18286 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
18287 | ||
18288 | # Create an old-style archive from a shared archive. | |
18289 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
18290 | ||
18291 | # Create a temporary old-style archive to link instead of a shared archive. | |
18292 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
18293 | ||
18294 | # Commands used to build and install a shared archive. | |
18295 | archive_cmds=$lt_archive_cmds | |
18296 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
18297 | postinstall_cmds=$lt_postinstall_cmds | |
18298 | postuninstall_cmds=$lt_postuninstall_cmds | |
18299 | ||
18300 | # Commands to strip libraries. | |
18301 | old_striplib=$lt_old_striplib | |
18302 | striplib=$lt_striplib | |
18303 | ||
18304 | # Dependencies to place before the objects being linked to create a | |
18305 | # shared library. | |
18306 | predep_objects=$lt_predep_objects | |
18307 | ||
18308 | # Dependencies to place after the objects being linked to create a | |
18309 | # shared library. | |
18310 | postdep_objects=$lt_postdep_objects | |
18311 | ||
18312 | # Dependencies to place before the objects being linked to create a | |
18313 | # shared library. | |
18314 | predeps=$lt_predeps | |
18315 | ||
18316 | # Dependencies to place after the objects being linked to create a | |
18317 | # shared library. | |
18318 | postdeps=$lt_postdeps | |
18319 | ||
18320 | # The library search path used internally by the compiler when linking | |
18321 | # a shared library. | |
18322 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
18323 | ||
18324 | # Method to check whether dependent libraries are shared objects. | |
18325 | deplibs_check_method=$lt_deplibs_check_method | |
18326 | ||
18327 | # Command to use when deplibs_check_method == file_magic. | |
18328 | file_magic_cmd=$lt_file_magic_cmd | |
18329 | ||
18330 | # Flag that allows shared libraries with undefined symbols to be built. | |
18331 | allow_undefined_flag=$lt_allow_undefined_flag | |
18332 | ||
18333 | # Flag that forces no undefined symbols. | |
18334 | no_undefined_flag=$lt_no_undefined_flag | |
18335 | ||
18336 | # Commands used to finish a libtool library installation in a directory. | |
18337 | finish_cmds=$lt_finish_cmds | |
18338 | ||
18339 | # Same as above, but a single script fragment to be evaled but not shown. | |
18340 | finish_eval=$lt_finish_eval | |
18341 | ||
18342 | # Take the output of nm and produce a listing of raw symbols and C names. | |
18343 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
18344 | ||
18345 | # Transform the output of nm in a proper C declaration | |
18346 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
18347 | ||
18348 | # Transform the output of nm in a C name address pair | |
18349 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
18350 | ||
18351 | # This is the shared library runtime path variable. | |
18352 | runpath_var=$runpath_var | |
18353 | ||
18354 | # This is the shared library path variable. | |
18355 | shlibpath_var=$shlibpath_var | |
18356 | ||
18357 | # Is shlibpath searched before the hard-coded library search path? | |
18358 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
18359 | ||
18360 | # How to hardcode a shared library path into an executable. | |
18361 | hardcode_action=$hardcode_action | |
18362 | ||
18363 | # Whether we should hardcode library paths into libraries. | |
18364 | hardcode_into_libs=$hardcode_into_libs | |
18365 | ||
18366 | # Flag to hardcode \$libdir into a binary during linking. | |
18367 | # This must work even if \$libdir does not exist. | |
18368 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
18369 | ||
18370 | # Whether we need a single -rpath flag with a separated argument. | |
18371 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
18372 | ||
18373 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | |
18374 | # resulting binary. | |
18375 | hardcode_direct=$hardcode_direct | |
18376 | ||
18377 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
18378 | # resulting binary. | |
18379 | hardcode_minus_L=$hardcode_minus_L | |
18380 | ||
18381 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
18382 | # the resulting binary. | |
18383 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
18384 | ||
18385 | # Variables whose values should be saved in libtool wrapper scripts and | |
18386 | # restored at relink time. | |
18387 | variables_saved_for_relink="$variables_saved_for_relink" | |
18388 | ||
18389 | # Whether libtool must link a program against all its dependency libraries. | |
18390 | link_all_deplibs=$link_all_deplibs | |
18391 | ||
18392 | # Compile-time system search path for libraries | |
18393 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
18394 | ||
18395 | # Run-time system search path for libraries | |
18396 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
18397 | ||
18398 | # Fix the shell variable \$srcfile for the compiler. | |
18399 | fix_srcfile_path="$fix_srcfile_path" | |
18400 | ||
18401 | # Set to yes if exported symbols are required. | |
18402 | always_export_symbols=$always_export_symbols | |
18403 | ||
18404 | # The commands to list exported symbols. | |
18405 | export_symbols_cmds=$lt_export_symbols_cmds | |
18406 | ||
18407 | # The commands to extract the exported symbol list from a shared archive. | |
18408 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
18409 | ||
18410 | # Symbols that should not be listed in the preloaded symbols. | |
18411 | exclude_expsyms=$lt_exclude_expsyms | |
18412 | ||
18413 | # Symbols that must always be exported. | |
18414 | include_expsyms=$lt_include_expsyms | |
18415 | ||
18416 | # ### END LIBTOOL CONFIG | |
18417 | ||
18418 | __EOF__ | |
18419 | ||
18420 | ||
18421 | case $host_os in | |
18422 | aix3*) | |
18423 | cat <<\EOF >> "$cfgfile" | |
18424 | ||
18425 | # AIX sometimes has problems with the GCC collect2 program. For some | |
18426 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
18427 | # vanish in a puff of smoke. | |
18428 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
18429 | COLLECT_NAMES= | |
18430 | export COLLECT_NAMES | |
18431 | fi | |
18432 | EOF | |
18433 | ;; | |
18434 | ||
18435 | cygwin* | mingw* | pw32* | os2*) | |
18436 | cat <<'EOF' >> "$cfgfile" | |
18437 | # This is a source program that is used to create dlls on Windows | |
18438 | # Don't remove nor modify the starting and closing comments | |
18439 | ||
18440 | # /* ltdll.c starts here */ | |
18441 | # #define WIN32_LEAN_AND_MEAN | |
18442 | # #include <windows.h> | |
18443 | # #undef WIN32_LEAN_AND_MEAN | |
18444 | # #include <stdio.h> | |
18445 | # | |
18446 | # #ifndef __CYGWIN__ | |
18447 | # # ifdef __CYGWIN32__ | |
18448 | # # define __CYGWIN__ __CYGWIN32__ | |
18449 | # # endif | |
18450 | # #endif | |
18451 | # | |
18452 | # #ifdef __cplusplus | |
18453 | # extern "C" { | |
18454 | # #endif | |
18455 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); | |
18456 | # #ifdef __cplusplus | |
18457 | # } | |
18458 | # #endif | |
18459 | # | |
18460 | # #ifdef __CYGWIN__ | |
18461 | # #include <cygwin/cygwin_dll.h> | |
18462 | # DECLARE_CYGWIN_DLL( DllMain ); | |
18463 | # #endif | |
18464 | # HINSTANCE __hDllInstance_base; | |
18465 | # | |
18466 | # BOOL APIENTRY | |
18467 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) | |
18468 | # { | |
18469 | # __hDllInstance_base = hInst; | |
18470 | # return TRUE; | |
18471 | # } | |
18472 | # /* ltdll.c ends here */ | |
18473 | ||
18474 | # This is a source program that is used to create import libraries | |
18475 | # on Windows for dlls which lack them. Don't remove nor modify the | |
18476 | # starting and closing comments | |
18477 | ||
18478 | # /* impgen.c starts here */ | |
18479 | # /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. | |
18480 | # | |
18481 | # This file is part of GNU libtool. | |
18482 | # | |
18483 | # This program is free software; you can redistribute it and/or modify | |
18484 | # it under the terms of the GNU General Public License as published by | |
18485 | # the Free Software Foundation; either version 2 of the License, or | |
18486 | # (at your option) any later version. | |
18487 | # | |
18488 | # This program is distributed in the hope that it will be useful, | |
18489 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18490 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18491 | # GNU General Public License for more details. | |
18492 | # | |
18493 | # You should have received a copy of the GNU General Public License | |
18494 | # along with this program; if not, write to the Free Software | |
18495 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
18496 | # */ | |
18497 | # | |
18498 | # #include <stdio.h> /* for printf() */ | |
18499 | # #include <unistd.h> /* for open(), lseek(), read() */ | |
18500 | # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ | |
18501 | # #include <string.h> /* for strdup() */ | |
18502 | # | |
18503 | # /* O_BINARY isn't required (or even defined sometimes) under Unix */ | |
18504 | # #ifndef O_BINARY | |
18505 | # #define O_BINARY 0 | |
18506 | # #endif | |
18507 | # | |
18508 | # static unsigned int | |
18509 | # pe_get16 (fd, offset) | |
18510 | # int fd; | |
18511 | # int offset; | |
18512 | # { | |
18513 | # unsigned char b[2]; | |
18514 | # lseek (fd, offset, SEEK_SET); | |
18515 | # read (fd, b, 2); | |
18516 | # return b[0] + (b[1]<<8); | |
18517 | # } | |
18518 | # | |
18519 | # static unsigned int | |
18520 | # pe_get32 (fd, offset) | |
18521 | # int fd; | |
18522 | # int offset; | |
18523 | # { | |
18524 | # unsigned char b[4]; | |
18525 | # lseek (fd, offset, SEEK_SET); | |
18526 | # read (fd, b, 4); | |
18527 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); | |
18528 | # } | |
18529 | # | |
18530 | # static unsigned int | |
18531 | # pe_as32 (ptr) | |
18532 | # void *ptr; | |
18533 | # { | |
18534 | # unsigned char *b = ptr; | |
18535 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); | |
18536 | # } | |
18537 | # | |
18538 | # int | |
18539 | # main (argc, argv) | |
18540 | # int argc; | |
18541 | # char *argv[]; | |
18542 | # { | |
18543 | # int dll; | |
18544 | # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; | |
18545 | # unsigned long export_rva, export_size, nsections, secptr, expptr; | |
18546 | # unsigned long name_rvas, nexp; | |
18547 | # unsigned char *expdata, *erva; | |
18548 | # char *filename, *dll_name; | |
18549 | # | |
18550 | # filename = argv[1]; | |
18551 | # | |
18552 | # dll = open(filename, O_RDONLY|O_BINARY); | |
18553 | # if (dll < 1) | |
18554 | # return 1; | |
18555 | # | |
18556 | # dll_name = filename; | |
18557 | # | |
18558 | # for (i=0; filename[i]; i++) | |
18559 | # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') | |
18560 | # dll_name = filename + i +1; | |
18561 | # | |
18562 | # pe_header_offset = pe_get32 (dll, 0x3c); | |
18563 | # opthdr_ofs = pe_header_offset + 4 + 20; | |
18564 | # num_entries = pe_get32 (dll, opthdr_ofs + 92); | |
18565 | # | |
18566 | # if (num_entries < 1) /* no exports */ | |
18567 | # return 1; | |
18568 | # | |
18569 | # export_rva = pe_get32 (dll, opthdr_ofs + 96); | |
18570 | # export_size = pe_get32 (dll, opthdr_ofs + 100); | |
18571 | # nsections = pe_get16 (dll, pe_header_offset + 4 +2); | |
18572 | # secptr = (pe_header_offset + 4 + 20 + | |
18573 | # pe_get16 (dll, pe_header_offset + 4 + 16)); | |
18574 | # | |
18575 | # expptr = 0; | |
18576 | # for (i = 0; i < nsections; i++) | |
18577 | # { | |
18578 | # char sname[8]; | |
18579 | # unsigned long secptr1 = secptr + 40 * i; | |
18580 | # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); | |
18581 | # unsigned long vsize = pe_get32 (dll, secptr1 + 16); | |
18582 | # unsigned long fptr = pe_get32 (dll, secptr1 + 20); | |
18583 | # lseek(dll, secptr1, SEEK_SET); | |
18584 | # read(dll, sname, 8); | |
18585 | # if (vaddr <= export_rva && vaddr+vsize > export_rva) | |
18586 | # { | |
18587 | # expptr = fptr + (export_rva - vaddr); | |
18588 | # if (export_rva + export_size > vaddr + vsize) | |
18589 | # export_size = vsize - (export_rva - vaddr); | |
18590 | # break; | |
18591 | # } | |
18592 | # } | |
18593 | # | |
18594 | # expdata = (unsigned char*)malloc(export_size); | |
18595 | # lseek (dll, expptr, SEEK_SET); | |
18596 | # read (dll, expdata, export_size); | |
18597 | # erva = expdata - export_rva; | |
18598 | # | |
18599 | # nexp = pe_as32 (expdata+24); | |
18600 | # name_rvas = pe_as32 (expdata+32); | |
18601 | # | |
18602 | # printf ("EXPORTS\n"); | |
18603 | # for (i = 0; i<nexp; i++) | |
18604 | # { | |
18605 | # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); | |
18606 | # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); | |
18607 | # } | |
18608 | # | |
18609 | # return 0; | |
18610 | # } | |
18611 | # /* impgen.c ends here */ | |
18612 | ||
18613 | EOF | |
18614 | ;; | |
18615 | esac | |
18616 | ||
18617 | # We use sed instead of cat because bash on DJGPP gets confused if | |
18618 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
18619 | # text mode, it properly converts lines to CR/LF. This bash problem | |
18620 | # is reportedly fixed, but why not run on old versions too? | |
18621 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | |
18622 | ||
18623 | mv -f "$cfgfile" "$ofile" || \ | |
18624 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
18625 | chmod +x "$ofile" | |
18626 | ||
18627 | else | |
18628 | # If there is no Makefile yet, we rely on a make rule to execute | |
18629 | # `config.status --recheck' to rerun these tests and create the | |
18630 | # libtool script then. | |
18631 | test -f Makefile && make "$ltmain" | |
18632 | fi | |
18633 | ||
18634 | ||
18635 | ac_ext=c | |
18636 | ac_cpp='$CPP $CPPFLAGS' | |
18637 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18638 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18639 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18640 | ||
18641 | CC="$lt_save_CC" | |
18642 | ||
18643 | ||
18644 | # Check whether --with-tags or --without-tags was given. | |
18645 | if test "${with_tags+set}" = set; then | |
18646 | withval="$with_tags" | |
18647 | tagnames="$withval" | |
18648 | else | |
18649 | tagnames="CXX,GCJ" | |
18650 | case $host_os in | |
18651 | mingw*|cygwin*) tagnames="$tagnames,RC" ;; | |
18652 | esac | |
18653 | fi; | |
18654 | ||
18655 | if test -f "$ltmain" && test -n "$tagnames"; then | |
18656 | if test ! -f "${ofile}"; then | |
18657 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 | |
18658 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | |
18659 | fi | |
18660 | ||
18661 | if test -z "$LTCC"; then | |
18662 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | |
18663 | if test -z "$LTCC"; then | |
18664 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 | |
18665 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} | |
18666 | else | |
18667 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 | |
18668 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | |
18669 | fi | |
18670 | fi | |
18671 | ||
18672 | # Extract list of available tagged configurations in $ofile. | |
18673 | # Note that this assumes the entire list is on one line. | |
18674 | available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | |
18675 | ||
18676 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
18677 | for tagname in $tagnames; do | |
18678 | IFS="$lt_save_ifs" | |
18679 | # Check whether tagname contains only valid characters | |
18680 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | |
18681 | "") ;; | |
18682 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 | |
18683 | echo "$as_me: error: invalid tag name: $tagname" >&2;} | |
18684 | { (exit 1); exit 1; }; } | |
18685 | ;; | |
18686 | esac | |
18687 | ||
18688 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | |
18689 | then | |
18690 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 | |
18691 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | |
18692 | { (exit 1); exit 1; }; } | |
18693 | fi | |
18694 | ||
18695 | # Update the list of available tags. | |
18696 | if test -n "$tagname"; then | |
18697 | echo appending configuration tag \"$tagname\" to $ofile | |
18698 | ||
18699 | case $tagname in | |
18700 | CXX) | |
18701 | ac_ext=cc | |
18702 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18703 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18704 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18705 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18706 | ||
18707 | ||
18708 | ||
18709 | ||
18710 | archive_cmds_need_lc_CXX=no | |
18711 | allow_undefined_flag_CXX= | |
18712 | always_export_symbols_CXX=no | |
18713 | archive_expsym_cmds_CXX= | |
18714 | export_dynamic_flag_spec_CXX= | |
18715 | hardcode_direct_CXX=no | |
18716 | hardcode_libdir_flag_spec_CXX= | |
18717 | hardcode_libdir_separator_CXX= | |
18718 | hardcode_minus_L_CXX=no | |
18719 | link_all_deplibs_CXX=unknown | |
18720 | old_archive_cmds_CXX=$old_archive_cmds | |
18721 | no_undefined_flag_CXX= | |
18722 | whole_archive_flag_spec_CXX= | |
18723 | ||
18724 | # Dependencies to place before and after the object being linked: | |
18725 | predep_objects_CXX= | |
18726 | postdep_objects_CXX= | |
18727 | predeps_CXX= | |
18728 | postdeps_CXX= | |
18729 | compiler_lib_search_path_CXX= | |
18730 | ||
18731 | # Source file extension for C test sources. | |
18732 | ac_ext=cc | |
18733 | ||
18734 | # Object file extension for compiled C test sources. | |
18735 | objext=o | |
18736 | objext_CXX=$objext | |
18737 | ||
18738 | # Code to be used in simple compile tests | |
18739 | lt_simple_compile_test_code="int some_variable = 0;" | |
18740 | ||
18741 | # Code to be used in simple link tests | |
18742 | lt_simple_link_test_code='int main(int char *) { return(0); }' | |
18743 | ||
18744 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
18745 | ||
18746 | # If no C compiler was specified, use CC. | |
18747 | LTCC=${LTCC-"$CC"} | |
18748 | ||
18749 | # Allow CC to be a program name with arguments. | |
18750 | set dummy $CC | |
18751 | compiler="$2" | |
18752 | ||
18753 | ||
18754 | # Allow CC to be a program name with arguments. | |
18755 | lt_save_CC="$CC" | |
18756 | CC=${CXX-"c++"} | |
18757 | set dummy $CC | |
18758 | compiler="$2" | |
18759 | compiler_CXX=$CC | |
18760 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | |
18761 | ||
18762 | # We don't want -fno-exception wen compiling C++ code, so set the | |
18763 | # no_builtin_flag separately | |
18764 | if test "$GXX" = yes; then | |
18765 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
18766 | else | |
18767 | lt_prog_compiler_no_builtin_flag_CXX= | |
18768 | fi | |
18769 | ||
18770 | if test "$GXX" = yes; then | |
18771 | # Set up default GNU C++ configuration | |
18772 | ||
18773 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
18774 | # archiving commands below assume that GNU ld is being used. | |
18775 | if eval "`$CC -print-prog-name=ld` --version 2>&1" | \ | |
18776 | egrep 'GNU ld' > /dev/null; then | |
18777 | with_gnu_ld=yes | |
18778 | ||
18779 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18780 | 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' | |
18781 | ||
18782 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
18783 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
18784 | ||
18785 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
18786 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
18787 | # investigate it a little bit more. (MM) | |
18788 | wlarc='${wl}' | |
18789 | ||
18790 | # ancient GNU ld didn't support --whole-archive et. al. | |
18791 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | |
18792 | egrep 'no-whole-archive' > /dev/null; then | |
18793 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
18794 | else | |
18795 | whole_archive_flag_spec_CXX= | |
18796 | fi | |
18797 | else | |
18798 | with_gnu_ld=no | |
18799 | wlarc= | |
18800 | ||
18801 | # A generic and very simple default shared library creation | |
18802 | # command for GNU C++ for the case where it uses the native | |
18803 | # linker, instead of GNU ld. If possible, this setting should | |
18804 | # overridden to take advantage of the native linker features on | |
18805 | # the platform it is being used on. | |
18806 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
18807 | fi | |
18808 | ||
18809 | # Commands to make compiler produce verbose output that lists | |
18810 | # what "hidden" libraries, object files and flags are used when | |
18811 | # linking a shared library. | |
18812 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' | |
18813 | ||
18814 | else | |
18815 | GXX=no | |
18816 | with_gnu_ld=no | |
18817 | wlarc= | |
18818 | fi | |
18819 | ||
18820 | # PORTME: fill in a description of your system's C++ link characteristics | |
18821 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
18822 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
18823 | ld_shlibs_CXX=yes | |
18824 | case $host_os in | |
18825 | aix3*) | |
18826 | # FIXME: insert proper C++ library support | |
18827 | ld_shlibs_CXX=no | |
18828 | ;; | |
18829 | aix4* | aix5*) | |
18830 | if test "$host_cpu" = ia64; then | |
18831 | # On IA64, the linker does run time linking by default, so we don't | |
18832 | # have to do anything special. | |
18833 | aix_use_runtimelinking=no | |
18834 | exp_sym_flag='-Bexport' | |
18835 | no_entry_flag="" | |
18836 | else | |
18837 | # KDE requires run time linking. Make it the default. | |
18838 | aix_use_runtimelinking=yes | |
18839 | exp_sym_flag='-bexport' | |
18840 | no_entry_flag='-bnoentry' | |
18841 | fi | |
18842 | ||
18843 | # When large executables or shared objects are built, AIX ld can | |
18844 | # have problems creating the table of contents. If linking a library | |
18845 | # or program results in "error TOC overflow" add -mminimal-toc to | |
18846 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
18847 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
18848 | ||
18849 | archive_cmds_CXX='' | |
18850 | hardcode_direct_CXX=yes | |
18851 | hardcode_libdir_separator_CXX=':' | |
18852 | link_all_deplibs_CXX=yes | |
18853 | ||
18854 | if test "$GXX" = yes; then | |
18855 | case $host_os in aix4.012|aix4.012.*) | |
18856 | # We only want to do this on AIX 4.2 and lower, the check | |
18857 | # below for broken collect2 doesn't work under 4.3+ | |
18858 | collect2name=`${CC} -print-prog-name=collect2` | |
18859 | if test -f "$collect2name" && \ | |
18860 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
18861 | then | |
18862 | # We have reworked collect2 | |
18863 | hardcode_direct_CXX=yes | |
18864 | else | |
18865 | # We have old collect2 | |
18866 | hardcode_direct_CXX=unsupported | |
18867 | # It fails to find uninstalled libraries when the uninstalled | |
18868 | # path is not listed in the libpath. Setting hardcode_minus_L | |
18869 | # to unsupported forces relinking | |
18870 | hardcode_minus_L_CXX=yes | |
18871 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
18872 | hardcode_libdir_separator_CXX= | |
18873 | fi | |
18874 | esac | |
18875 | shared_flag='-shared' | |
18876 | else | |
18877 | # not using gcc | |
18878 | if test "$host_cpu" = ia64; then | |
18879 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
18880 | # chokes on -Wl,-G. The following line is correct: | |
18881 | shared_flag='-G' | |
18882 | else | |
18883 | if test "$aix_use_runtimelinking" = yes; then | |
18884 | shared_flag='-qmkshrobj ${wl}-G' | |
18885 | else | |
18886 | shared_flag='-qmkshrobj' | |
18887 | fi | |
18888 | fi | |
18889 | fi | |
18890 | ||
18891 | # Let the compiler handle the export list. | |
18892 | always_export_symbols_CXX=no | |
18893 | if test "$aix_use_runtimelinking" = yes; then | |
18894 | # Warning - without using the other runtime loading flags (-brtl), | |
18895 | # -berok will link without error, but may produce a broken library. | |
18896 | allow_undefined_flag_CXX='-berok' | |
18897 | # Determine the default libpath from the value encoded in an empty executable. | |
18898 | cat >conftest.$ac_ext <<_ACEOF | |
18899 | #line $LINENO "configure" | |
18900 | #include "confdefs.h" | |
18901 | ||
18902 | #ifdef F77_DUMMY_MAIN | |
18903 | # ifdef __cplusplus | |
18904 | extern "C" | |
18905 | # endif | |
18906 | int F77_DUMMY_MAIN() { return 1; } | |
18907 | #endif | |
18908 | int | |
18909 | main () | |
18910 | { | |
18911 | ||
18912 | ; | |
18913 | return 0; | |
18914 | } | |
18915 | _ACEOF | |
18916 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18917 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18918 | (eval $ac_link) 2>&5 | |
18919 | ac_status=$? | |
18920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18921 | (exit $ac_status); } && | |
18922 | { ac_try='test -s conftest$ac_exeext' | |
18923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18924 | (eval $ac_try) 2>&5 | |
18925 | ac_status=$? | |
18926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18927 | (exit $ac_status); }; }; then | |
18928 | ||
18929 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
18930 | }'` | |
18931 | # Check for a 64-bit object if we didn't find anything. | |
18932 | 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; } | |
18933 | }'`; fi | |
18934 | else | |
18935 | echo "$as_me: failed program was:" >&5 | |
18936 | cat conftest.$ac_ext >&5 | |
18937 | fi | |
18938 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18939 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
18940 | ||
18941 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
18942 | ||
18943 | 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" | |
18944 | 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" | |
18945 | else | |
18946 | if test "$host_cpu" = ia64; then | |
18947 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
18948 | allow_undefined_flag_CXX="-z nodefs" | |
18949 | 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" | |
18950 | else | |
18951 | # Determine the default libpath from the value encoded in an empty executable. | |
18952 | cat >conftest.$ac_ext <<_ACEOF | |
18953 | #line $LINENO "configure" | |
18954 | #include "confdefs.h" | |
18955 | ||
18956 | #ifdef F77_DUMMY_MAIN | |
18957 | # ifdef __cplusplus | |
18958 | extern "C" | |
18959 | # endif | |
18960 | int F77_DUMMY_MAIN() { return 1; } | |
18961 | #endif | |
18962 | int | |
18963 | main () | |
18964 | { | |
18965 | ||
18966 | ; | |
18967 | return 0; | |
18968 | } | |
18969 | _ACEOF | |
18970 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18972 | (eval $ac_link) 2>&5 | |
18973 | ac_status=$? | |
18974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18975 | (exit $ac_status); } && | |
18976 | { ac_try='test -s conftest$ac_exeext' | |
18977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18978 | (eval $ac_try) 2>&5 | |
18979 | ac_status=$? | |
18980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18981 | (exit $ac_status); }; }; then | |
18982 | ||
18983 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
18984 | }'` | |
18985 | # Check for a 64-bit object if we didn't find anything. | |
18986 | 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; } | |
18987 | }'`; fi | |
18988 | else | |
18989 | echo "$as_me: failed program was:" >&5 | |
18990 | cat conftest.$ac_ext >&5 | |
18991 | fi | |
18992 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18993 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
18994 | ||
18995 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
18996 | # Warning - without using the other run time loading flags, | |
18997 | # -berok will link without error, but may produce a broken library. | |
18998 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
18999 | allow_undefined_flag_CXX=' ${wl}-berok' | |
19000 | # -bexpall does not export symbols beginning with underscore (_) | |
19001 | always_export_symbols_CXX=yes | |
19002 | # Exported symbols can be pulled into shared objects from archives | |
19003 | whole_archive_flag_spec_CXX=' ' | |
19004 | archive_cmds_need_lc_CXX=yes | |
19005 | # This is similar to how AIX traditionally builds it's shared libraries. | |
19006 | 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' | |
19007 | fi | |
19008 | fi | |
19009 | ;; | |
19010 | chorus*) | |
19011 | case $cc_basename in | |
19012 | *) | |
19013 | # FIXME: insert proper C++ library support | |
19014 | ld_shlibs_CXX=no | |
19015 | ;; | |
19016 | esac | |
19017 | ;; | |
19018 | dgux*) | |
19019 | case $cc_basename in | |
19020 | ec++) | |
19021 | # FIXME: insert proper C++ library support | |
19022 | ld_shlibs_CXX=no | |
19023 | ;; | |
19024 | ghcx) | |
19025 | # Green Hills C++ Compiler | |
19026 | # FIXME: insert proper C++ library support | |
19027 | ld_shlibs_CXX=no | |
19028 | ;; | |
19029 | *) | |
19030 | # FIXME: insert proper C++ library support | |
19031 | ld_shlibs_CXX=no | |
19032 | ;; | |
19033 | esac | |
19034 | ;; | |
19035 | freebsd12*) | |
19036 | # C++ shared libraries reported to be fairly broken before switch to ELF | |
19037 | ld_shlibs_CXX=no | |
19038 | ;; | |
19039 | freebsd-elf*) | |
19040 | archive_cmds_need_lc_CXX=no | |
19041 | ;; | |
19042 | freebsd*) | |
19043 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
19044 | # conventions | |
19045 | ld_shlibs_CXX=yes | |
19046 | ;; | |
19047 | gnu*) | |
19048 | ;; | |
19049 | hpux*) | |
19050 | if test $with_gnu_ld = no; then | |
19051 | if test "$host_cpu" = ia64; then | |
19052 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
19053 | else | |
19054 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
19055 | hardcode_libdir_separator_CXX=: | |
19056 | export_dynamic_flag_spec_CXX='${wl}-E' | |
19057 | fi | |
19058 | fi | |
19059 | if test "$host_cpu" = ia64; then | |
19060 | hardcode_direct_CXX=no | |
19061 | hardcode_shlibpath_var_CXX=no | |
19062 | else | |
19063 | hardcode_direct_CXX=yes | |
19064 | fi | |
19065 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
19066 | # but as the default | |
19067 | # location of the library. | |
19068 | ||
19069 | case $cc_basename in | |
19070 | CC) | |
19071 | # FIXME: insert proper C++ library support | |
19072 | ld_shlibs_CXX=no | |
19073 | ;; | |
19074 | aCC) | |
19075 | case $host_os in | |
19076 | hpux9*) | |
19077 | 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' | |
19078 | ;; | |
19079 | *) | |
19080 | if test "$host_cpu" = ia64; then | |
19081 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | |
19082 | else | |
19083 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
19084 | fi | |
19085 | ;; | |
19086 | esac | |
19087 | # Commands to make compiler produce verbose output that lists | |
19088 | # what "hidden" libraries, object files and flags are used when | |
19089 | # linking a shared library. | |
19090 | # | |
19091 | # There doesn't appear to be a way to prevent this compiler from | |
19092 | # explicitly linking system object files so we need to strip them | |
19093 | # from the output so that they don't get included in the library | |
19094 | # dependencies. | |
19095 | 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' | |
19096 | ;; | |
19097 | *) | |
19098 | if test "$GXX" = yes; then | |
19099 | if test $with_gnu_ld = no; then | |
19100 | case $host_os in | |
19101 | hpux9*) | |
19102 | 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' | |
19103 | ;; | |
19104 | *) | |
19105 | if test "$host_cpu" = ia64; then | |
19106 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | |
19107 | else | |
19108 | 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' | |
19109 | fi | |
19110 | ;; | |
19111 | esac | |
19112 | fi | |
19113 | else | |
19114 | # FIXME: insert proper C++ library support | |
19115 | ld_shlibs_CXX=no | |
19116 | fi | |
19117 | ;; | |
19118 | esac | |
19119 | ;; | |
19120 | irix5* | irix6*) | |
19121 | case $cc_basename in | |
19122 | CC) | |
19123 | # SGI C++ | |
19124 | 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' | |
19125 | ||
19126 | # Archives containing C++ object files must be created using | |
19127 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
19128 | # necessary to make sure instantiated templates are included | |
19129 | # in the archive. | |
19130 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
19131 | ;; | |
19132 | *) | |
19133 | if test "$GXX" = yes; then | |
19134 | if test "$with_gnu_ld" = no; then | |
19135 | 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' | |
19136 | else | |
19137 | 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' | |
19138 | fi | |
19139 | fi | |
19140 | link_all_deplibs_CXX=yes | |
19141 | ;; | |
19142 | esac | |
19143 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
19144 | hardcode_libdir_separator_CXX=: | |
19145 | ;; | |
19146 | linux*) | |
19147 | case $cc_basename in | |
19148 | KCC) | |
19149 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
19150 | ||
19151 | # KCC will only create a shared library if the output file | |
19152 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
19153 | # to its proper name (with version) after linking. | |
19154 | 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' | |
19155 | 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' | |
19156 | ||
19157 | # Commands to make compiler produce verbose output that lists | |
19158 | # what "hidden" libraries, object files and flags are used when | |
19159 | # linking a shared library. | |
19160 | # | |
19161 | # There doesn't appear to be a way to prevent this compiler from | |
19162 | # explicitly linking system object files so we need to strip them | |
19163 | # from the output so that they don't get included in the library | |
19164 | # dependencies. | |
19165 | 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' | |
19166 | ||
19167 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | |
19168 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
19169 | ||
19170 | # Archives containing C++ object files must be created using | |
19171 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
19172 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
19173 | ;; | |
19174 | cxx) | |
19175 | # Compaq C++ | |
19176 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
19177 | 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' | |
19178 | ||
19179 | runpath_var=LD_RUN_PATH | |
19180 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
19181 | hardcode_libdir_separator_CXX=: | |
19182 | ||
19183 | # Commands to make compiler produce verbose output that lists | |
19184 | # what "hidden" libraries, object files and flags are used when | |
19185 | # linking a shared library. | |
19186 | # | |
19187 | # There doesn't appear to be a way to prevent this compiler from | |
19188 | # explicitly linking system object files so we need to strip them | |
19189 | # from the output so that they don't get included in the library | |
19190 | # dependencies. | |
19191 | 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' | |
19192 | ;; | |
19193 | esac | |
19194 | ;; | |
19195 | lynxos*) | |
19196 | # FIXME: insert proper C++ library support | |
19197 | ld_shlibs_CXX=no | |
19198 | ;; | |
19199 | m88k*) | |
19200 | # FIXME: insert proper C++ library support | |
19201 | ld_shlibs_CXX=no | |
19202 | ;; | |
19203 | mvs*) | |
19204 | case $cc_basename in | |
19205 | cxx) | |
19206 | # FIXME: insert proper C++ library support | |
19207 | ld_shlibs_CXX=no | |
19208 | ;; | |
19209 | *) | |
19210 | # FIXME: insert proper C++ library support | |
19211 | ld_shlibs_CXX=no | |
19212 | ;; | |
19213 | esac | |
19214 | ;; | |
19215 | netbsd*) | |
19216 | # NetBSD uses g++ - do we need to do anything? | |
19217 | ;; | |
19218 | osf3*) | |
19219 | case $cc_basename in | |
19220 | KCC) | |
19221 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
19222 | ||
19223 | # KCC will only create a shared library if the output file | |
19224 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
19225 | # to its proper name (with version) after linking. | |
19226 | 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' | |
19227 | ||
19228 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
19229 | hardcode_libdir_separator_CXX=: | |
19230 | ||
19231 | # Archives containing C++ object files must be created using | |
19232 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
19233 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
19234 | ||
19235 | ;; | |
19236 | RCC) | |
19237 | # Rational C++ 2.4.1 | |
19238 | # FIXME: insert proper C++ library support | |
19239 | ld_shlibs_CXX=no | |
19240 | ;; | |
19241 | cxx) | |
19242 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
19243 | 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' | |
19244 | ||
19245 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
19246 | hardcode_libdir_separator_CXX=: | |
19247 | ||
19248 | # Commands to make compiler produce verbose output that lists | |
19249 | # what "hidden" libraries, object files and flags are used when | |
19250 | # linking a shared library. | |
19251 | # | |
19252 | # There doesn't appear to be a way to prevent this compiler from | |
19253 | # explicitly linking system object files so we need to strip them | |
19254 | # from the output so that they don't get included in the library | |
19255 | # dependencies. | |
19256 | 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' | |
19257 | ;; | |
19258 | *) | |
19259 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
19260 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
19261 | 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' | |
19262 | ||
19263 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
19264 | hardcode_libdir_separator_CXX=: | |
19265 | ||
19266 | # Commands to make compiler produce verbose output that lists | |
19267 | # what "hidden" libraries, object files and flags are used when | |
19268 | # linking a shared library. | |
19269 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' | |
19270 | ||
19271 | else | |
19272 | # FIXME: insert proper C++ library support | |
19273 | ld_shlibs_CXX=no | |
19274 | fi | |
19275 | ;; | |
19276 | esac | |
19277 | ;; | |
19278 | osf4* | osf5*) | |
19279 | case $cc_basename in | |
19280 | KCC) | |
19281 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
19282 | ||
19283 | # KCC will only create a shared library if the output file | |
19284 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
19285 | # to its proper name (with version) after linking. | |
19286 | 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' | |
19287 | ||
19288 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
19289 | hardcode_libdir_separator_CXX=: | |
19290 | ||
19291 | # Archives containing C++ object files must be created using | |
19292 | # the KAI C++ compiler. | |
19293 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | |
19294 | ;; | |
19295 | RCC) | |
19296 | # Rational C++ 2.4.1 | |
19297 | # FIXME: insert proper C++ library support | |
19298 | ld_shlibs_CXX=no | |
19299 | ;; | |
19300 | cxx) | |
19301 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
19302 | 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' | |
19303 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~ | |
19304 | echo "-hidden">> $lib.exp~ | |
19305 | $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~ | |
19306 | $rm $lib.exp' | |
19307 | ||
19308 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
19309 | hardcode_libdir_separator_CXX=: | |
19310 | ||
19311 | # Commands to make compiler produce verbose output that lists | |
19312 | # what "hidden" libraries, object files and flags are used when | |
19313 | # linking a shared library. | |
19314 | # | |
19315 | # There doesn't appear to be a way to prevent this compiler from | |
19316 | # explicitly linking system object files so we need to strip them | |
19317 | # from the output so that they don't get included in the library | |
19318 | # dependencies. | |
19319 | 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' | |
19320 | ;; | |
19321 | *) | |
19322 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
19323 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
19324 | 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' | |
19325 | ||
19326 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
19327 | hardcode_libdir_separator_CXX=: | |
19328 | ||
19329 | # Commands to make compiler produce verbose output that lists | |
19330 | # what "hidden" libraries, object files and flags are used when | |
19331 | # linking a shared library. | |
19332 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' | |
19333 | ||
19334 | else | |
19335 | # FIXME: insert proper C++ library support | |
19336 | ld_shlibs_CXX=no | |
19337 | fi | |
19338 | ;; | |
19339 | esac | |
19340 | ;; | |
19341 | psos*) | |
19342 | # FIXME: insert proper C++ library support | |
19343 | ld_shlibs_CXX=no | |
19344 | ;; | |
19345 | sco*) | |
19346 | archive_cmds_need_lc_CXX=no | |
19347 | case $cc_basename in | |
19348 | CC) | |
19349 | # FIXME: insert proper C++ library support | |
19350 | ld_shlibs_CXX=no | |
19351 | ;; | |
19352 | *) | |
19353 | # FIXME: insert proper C++ library support | |
19354 | ld_shlibs_CXX=no | |
19355 | ;; | |
19356 | esac | |
19357 | ;; | |
19358 | sunos4*) | |
19359 | case $cc_basename in | |
19360 | CC) | |
19361 | # Sun C++ 4.x | |
19362 | # FIXME: insert proper C++ library support | |
19363 | ld_shlibs_CXX=no | |
19364 | ;; | |
19365 | lcc) | |
19366 | # Lucid | |
19367 | # FIXME: insert proper C++ library support | |
19368 | ld_shlibs_CXX=no | |
19369 | ;; | |
19370 | *) | |
19371 | # FIXME: insert proper C++ library support | |
19372 | ld_shlibs_CXX=no | |
19373 | ;; | |
19374 | esac | |
19375 | ;; | |
19376 | solaris*) | |
19377 | case $cc_basename in | |
19378 | CC) | |
19379 | # Sun C++ 4.2, 5.x and Centerline C++ | |
19380 | no_undefined_flag_CXX=' -zdefs' | |
19381 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
19382 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
19383 | $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' | |
19384 | ||
19385 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
19386 | hardcode_shlibpath_var_CXX=no | |
19387 | case $host_os in | |
19388 | solaris2.0-5 | solaris2.0-5.*) ;; | |
19389 | *) | |
19390 | # The C++ compiler is used as linker so we must use $wl | |
19391 | # flag to pass the commands to the underlying system | |
19392 | # linker. | |
19393 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
19394 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
19395 | ;; | |
19396 | esac | |
19397 | link_all_deplibs_CXX=yes | |
19398 | ||
19399 | # Commands to make compiler produce verbose output that lists | |
19400 | # what "hidden" libraries, object files and flags are used when | |
19401 | # linking a shared library. | |
19402 | # | |
19403 | # There doesn't appear to be a way to prevent this compiler from | |
19404 | # explicitly linking system object files so we need to strip them | |
19405 | # from the output so that they don't get included in the library | |
19406 | # dependencies. | |
19407 | 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' | |
19408 | ||
19409 | # Archives containing C++ object files must be created using | |
19410 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
19411 | # necessary to make sure instantiated templates are included | |
19412 | # in the archive. | |
19413 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
19414 | ;; | |
19415 | gcx) | |
19416 | # Green Hills C++ Compiler | |
19417 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
19418 | ||
19419 | # The C++ compiler must be used to create the archive. | |
19420 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
19421 | ;; | |
19422 | *) | |
19423 | # GNU C++ compiler with Solaris linker | |
19424 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
19425 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
19426 | if $CC --version | egrep -v '^2\.7' > /dev/null; then | |
19427 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib' | |
19428 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
19429 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp' | |
19430 | ||
19431 | # Commands to make compiler produce verbose output that lists | |
19432 | # what "hidden" libraries, object files and flags are used when | |
19433 | # linking a shared library. | |
19434 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\"" | |
19435 | else | |
19436 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
19437 | # platform. | |
19438 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib' | |
19439 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
19440 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp' | |
19441 | ||
19442 | # Commands to make compiler produce verbose output that lists | |
19443 | # what "hidden" libraries, object files and flags are used when | |
19444 | # linking a shared library. | |
19445 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\"" | |
19446 | fi | |
19447 | ||
19448 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
19449 | fi | |
19450 | ;; | |
19451 | esac | |
19452 | ;; | |
19453 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
19454 | archive_cmds_need_lc_CXX=no | |
19455 | ;; | |
19456 | tandem*) | |
19457 | case $cc_basename in | |
19458 | NCC) | |
19459 | # NonStop-UX NCC 3.20 | |
19460 | # FIXME: insert proper C++ library support | |
19461 | ld_shlibs_CXX=no | |
19462 | ;; | |
19463 | *) | |
19464 | # FIXME: insert proper C++ library support | |
19465 | ld_shlibs_CXX=no | |
19466 | ;; | |
19467 | esac | |
19468 | ;; | |
19469 | vxworks*) | |
19470 | # FIXME: insert proper C++ library support | |
19471 | ld_shlibs_CXX=no | |
19472 | ;; | |
19473 | *) | |
19474 | # FIXME: insert proper C++ library support | |
19475 | ld_shlibs_CXX=no | |
19476 | ;; | |
19477 | esac | |
19478 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
19479 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | |
19480 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
19481 | ||
19482 | # Figure out "hidden" C++ library dependencies from verbose | |
19483 | # compiler output whening linking a shared library. | |
19484 | cat > conftest.$ac_ext <<EOF | |
19485 | class Foo | |
19486 | { | |
19487 | public: | |
19488 | Foo (void) { a = 0; } | |
19489 | private: | |
19490 | int a; | |
19491 | }; | |
19492 | EOF | |
19493 | ||
19494 | ||
19495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19496 | (eval $ac_compile) 2>&5 | |
19497 | ac_status=$? | |
19498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19499 | (exit $ac_status); }; then | |
19500 | # Parse the compiler output and extract the necessary | |
19501 | # objects, libraries and library flags. | |
19502 | ||
19503 | # Sentinel used to keep track of whether or not we are before | |
19504 | # the conftest object file. | |
19505 | pre_test_object_deps_done=no | |
19506 | ||
19507 | # The `*' in the case matches for architectures that use `case' in | |
19508 | # $output_verbose_cmd can trigger glob expansion during the loop | |
19509 | # eval without this substitution. | |
19510 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" | |
19511 | ||
19512 | for p in `eval $output_verbose_link_cmd`; do | |
19513 | case $p in | |
19514 | ||
19515 | -L* | -R* | -l*) | |
19516 | # Some compilers place space between "-{L,R}" and the path. | |
19517 | # Remove the space. | |
19518 | if test $p = "-L" \ | |
19519 | || test $p = "-R"; then | |
19520 | prev=$p | |
19521 | continue | |
19522 | else | |
19523 | prev= | |
19524 | fi | |
19525 | ||
19526 | if test "$pre_test_object_deps_done" = no; then | |
19527 | case $p in | |
19528 | -L* | -R*) | |
19529 | # Internal compiler library paths should come after those | |
19530 | # provided the user. The postdeps already come after the | |
19531 | # user supplied libs so there is no need to process them. | |
19532 | if test -z "$compiler_lib_search_path_CXX"; then | |
19533 | compiler_lib_search_path_CXX="${prev}${p}" | |
19534 | else | |
19535 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
19536 | fi | |
19537 | ;; | |
19538 | # The "-l" case would never come before the object being | |
19539 | # linked, so don't bother handling this case. | |
19540 | esac | |
19541 | else | |
19542 | if test -z "$postdeps_CXX"; then | |
19543 | postdeps_CXX="${prev}${p}" | |
19544 | else | |
19545 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
19546 | fi | |
19547 | fi | |
19548 | ;; | |
19549 | ||
19550 | *.$objext|*.$libext) | |
19551 | # This assumes that the test object file only shows up | |
19552 | # once in the compiler output. | |
19553 | if test "$p" = "conftest.$objext"; then | |
19554 | pre_test_object_deps_done=yes | |
19555 | continue | |
19556 | fi | |
19557 | ||
19558 | if test "$pre_test_object_deps_done" = no; then | |
19559 | if test -z "$predep_objects_CXX"; then | |
19560 | predep_objects_CXX="$p" | |
19561 | else | |
19562 | predep_objects_CXX="$predep_objects_CXX $p" | |
19563 | fi | |
19564 | else | |
19565 | if test -z "$postdep_objects_CXX"; then | |
19566 | postdep_objects_CXX="$p" | |
19567 | else | |
19568 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
19569 | fi | |
19570 | fi | |
19571 | ;; | |
19572 | ||
19573 | *) ;; # Ignore the rest. | |
19574 | ||
19575 | esac | |
19576 | done | |
19577 | ||
19578 | # Clean up. | |
19579 | rm -f a.out | |
19580 | else | |
19581 | echo "libtool.m4: error: problem compiling C++ test program" | |
19582 | fi | |
19583 | ||
19584 | $rm -f confest.$objext | |
19585 | ||
19586 | case " $postdeps_CXX " in | |
19587 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
19588 | *) archive_cmds_need_lc_CXX=yes ;; | |
19589 | esac | |
19590 | ||
19591 | GCC_CXX="$GXX" | |
19592 | LD_CXX="$LD" | |
19593 | ||
19594 | lt_prog_compiler_wl_CXX= | |
19595 | lt_prog_compiler_pic_CXX= | |
19596 | lt_prog_compiler_static_CXX= | |
19597 | ||
19598 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
19599 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
19600 | ||
19601 | # C++ specific cases for pic, static, wl, etc. | |
19602 | if test "$GXX" = yes; then | |
19603 | lt_prog_compiler_wl_CXX='-Wl,' | |
19604 | lt_prog_compiler_static_CXX='-static' | |
19605 | ||
19606 | case $host_os in | |
19607 | aix*) | |
19608 | # All AIX code is PIC. | |
19609 | if test "$host_cpu" = ia64; then | |
19610 | # AIX 5 now supports IA64 processor | |
19611 | lt_prog_compiler_static_CXX='-Bstatic' | |
19612 | fi | |
19613 | ;; | |
19614 | amigaos*) | |
19615 | # FIXME: we need at least 68020 code to build shared libraries, but | |
19616 | # adding the `-m68020' flag to GCC prevents building anything better, | |
19617 | # like `-m68040'. | |
19618 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
19619 | ;; | |
19620 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
19621 | # PIC is the default for these OSes. | |
19622 | ;; | |
19623 | cygwin* | mingw* | os2*) | |
19624 | # This hack is so that the source file can tell whether it is being | |
19625 | # built for inclusion in a dll (and should export symbols for example). | |
19626 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
19627 | ;; | |
19628 | darwin* | rhapsody*) | |
19629 | # PIC is the default on this platform | |
19630 | # Common symbols not allowed in MH_DYLIB files | |
19631 | lt_prog_compiler_pic_CXX='-fno-common' | |
19632 | ;; | |
19633 | *djgpp*) | |
19634 | # DJGPP does not support shared libraries at all | |
19635 | lt_prog_compiler_pic_CXX= | |
19636 | ;; | |
19637 | sysv4*MP*) | |
19638 | if test -d /usr/nec; then | |
19639 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
19640 | fi | |
19641 | ;; | |
19642 | hpux*) | |
19643 | # PIC is the default for IA64 HP-UX, but not for PA HP-UX. | |
19644 | if test "$host_cpu" != ia64; then | |
19645 | lt_prog_compiler_pic_CXX='-fPIC' | |
19646 | fi | |
19647 | ;; | |
19648 | *) | |
19649 | lt_prog_compiler_pic_CXX='-fPIC' | |
19650 | ;; | |
19651 | esac | |
19652 | else | |
19653 | case $host_os in | |
19654 | aix4* | aix5*) | |
19655 | # All AIX code is PIC. | |
19656 | if test "$host_cpu" = ia64; then | |
19657 | # AIX 5 now supports IA64 processor | |
19658 | lt_prog_compiler_static_CXX='-Bstatic' | |
19659 | else | |
19660 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
19661 | fi | |
19662 | ;; | |
19663 | chorus*) | |
19664 | case $cc_basename in | |
19665 | cxch68) | |
19666 | # Green Hills C++ Compiler | |
19667 | # _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" | |
19668 | ;; | |
19669 | esac | |
19670 | ;; | |
19671 | dgux*) | |
19672 | case $cc_basename in | |
19673 | ec++) | |
19674 | lt_prog_compiler_pic_CXX='-KPIC' | |
19675 | ;; | |
19676 | ghcx) | |
19677 | # Green Hills C++ Compiler | |
19678 | lt_prog_compiler_pic_CXX='-pic' | |
19679 | ;; | |
19680 | *) | |
19681 | ;; | |
19682 | esac | |
19683 | ;; | |
19684 | freebsd*) | |
19685 | # FreeBSD uses GNU C++ | |
19686 | ;; | |
19687 | hpux9* | hpux10* | hpux11*) | |
19688 | case $cc_basename in | |
19689 | CC) | |
19690 | lt_prog_compiler_wl_CXX='-Wl,' | |
19691 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | |
19692 | if test "$host_cpu" != ia64; then | |
19693 | lt_prog_compiler_pic_CXX='+Z' | |
19694 | fi | |
19695 | ;; | |
19696 | aCC) | |
19697 | lt_prog_compiler_wl_CXX='-Wl,' | |
19698 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | |
19699 | if test "$host_cpu" != ia64; then | |
19700 | lt_prog_compiler_pic_CXX='+Z' | |
19701 | fi | |
19702 | ;; | |
19703 | *) | |
19704 | ;; | |
19705 | esac | |
19706 | ;; | |
19707 | irix5* | irix6* | nonstopux*) | |
19708 | case $cc_basename in | |
19709 | CC) | |
19710 | lt_prog_compiler_wl_CXX='-Wl,' | |
19711 | lt_prog_compiler_static_CXX='-non_shared' | |
19712 | # CC pic flag -KPIC is the default. | |
19713 | ;; | |
19714 | *) | |
19715 | ;; | |
19716 | esac | |
19717 | ;; | |
19718 | linux*) | |
19719 | case $cc_basename in | |
19720 | KCC) | |
19721 | # KAI C++ Compiler | |
19722 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
19723 | lt_prog_compiler_pic_CXX='-fPIC' | |
19724 | ;; | |
19725 | cxx) | |
19726 | # Compaq C++ | |
19727 | # Make sure the PIC flag is empty. It appears that all Alpha | |
19728 | # Linux and Compaq Tru64 Unix objects are PIC. | |
19729 | lt_prog_compiler_pic_CXX= | |
19730 | lt_prog_compiler_static_CXX='-non_shared' | |
19731 | ;; | |
19732 | *) | |
19733 | ;; | |
19734 | esac | |
19735 | ;; | |
19736 | lynxos*) | |
19737 | ;; | |
19738 | m88k*) | |
19739 | ;; | |
19740 | mvs*) | |
19741 | case $cc_basename in | |
19742 | cxx) | |
19743 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
19744 | ;; | |
19745 | *) | |
19746 | ;; | |
19747 | esac | |
19748 | ;; | |
19749 | netbsd*) | |
19750 | ;; | |
19751 | osf3* | osf4* | osf5*) | |
19752 | case $cc_basename in | |
19753 | KCC) | |
19754 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
19755 | ;; | |
19756 | RCC) | |
19757 | # Rational C++ 2.4.1 | |
19758 | lt_prog_compiler_pic_CXX='-pic' | |
19759 | ;; | |
19760 | cxx) | |
19761 | # Digital/Compaq C++ | |
19762 | lt_prog_compiler_wl_CXX='-Wl,' | |
19763 | # Make sure the PIC flag is empty. It appears that all Alpha | |
19764 | # Linux and Compaq Tru64 Unix objects are PIC. | |
19765 | lt_prog_compiler_pic_CXX= | |
19766 | lt_prog_compiler_static_CXX='-non_shared' | |
19767 | ;; | |
19768 | *) | |
19769 | ;; | |
19770 | esac | |
19771 | ;; | |
19772 | psos*) | |
19773 | ;; | |
19774 | sco*) | |
19775 | case $cc_basename in | |
19776 | CC) | |
19777 | lt_prog_compiler_pic_CXX='-fPIC' | |
19778 | ;; | |
19779 | *) | |
19780 | ;; | |
19781 | esac | |
19782 | ;; | |
19783 | solaris*) | |
19784 | case $cc_basename in | |
19785 | CC) | |
19786 | # Sun C++ 4.2, 5.x and Centerline C++ | |
19787 | lt_prog_compiler_pic_CXX='-KPIC' | |
19788 | lt_prog_compiler_static_CXX='-Bstatic' | |
19789 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
19790 | ;; | |
19791 | gcx) | |
19792 | # Green Hills C++ Compiler | |
19793 | lt_prog_compiler_pic_CXX='-PIC' | |
19794 | ;; | |
19795 | *) | |
19796 | ;; | |
19797 | esac | |
19798 | ;; | |
19799 | sunos4*) | |
19800 | case $cc_basename in | |
19801 | CC) | |
19802 | # Sun C++ 4.x | |
19803 | lt_prog_compiler_pic_CXX='-pic' | |
19804 | lt_prog_compiler_static_CXX='-Bstatic' | |
19805 | ;; | |
19806 | lcc) | |
19807 | # Lucid | |
19808 | lt_prog_compiler_pic_CXX='-pic' | |
19809 | ;; | |
19810 | *) | |
19811 | ;; | |
19812 | esac | |
19813 | ;; | |
19814 | tandem*) | |
19815 | case $cc_basename in | |
19816 | NCC) | |
19817 | # NonStop-UX NCC 3.20 | |
19818 | lt_prog_compiler_pic_CXX='-KPIC' | |
19819 | ;; | |
19820 | *) | |
19821 | ;; | |
19822 | esac | |
19823 | ;; | |
19824 | unixware*) | |
19825 | ;; | |
19826 | vxworks*) | |
19827 | ;; | |
19828 | *) | |
19829 | lt_prog_compiler_can_build_shared_CXX=no | |
19830 | ;; | |
19831 | esac | |
19832 | fi | |
19833 | ||
19834 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | |
19835 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 | |
19836 | ||
19837 | # | |
19838 | # Check to make sure the PIC flag actually works. | |
19839 | # | |
19840 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
19841 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
19842 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 | |
19843 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | |
19844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19845 | else | |
19846 | lt_prog_compiler_pic_works_CXX=no | |
19847 | ac_outfile=conftest.$ac_objext | |
19848 | save_CFLAGS="$CFLAGS" | |
19849 | CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC" | |
19850 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
19851 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
19852 | # The compiler can only warn and ignore the option if not recognized | |
19853 | # So say no if there are warnings | |
19854 | if test -s conftest.err; then | |
19855 | # Append any errors to the config.log. | |
19856 | cat conftest.err 1>&5 | |
19857 | else | |
19858 | lt_prog_compiler_pic_works_CXX=yes | |
19859 | fi | |
19860 | fi | |
19861 | $rm conftest* | |
19862 | CFLAGS="$save_CFLAGS" | |
19863 | ||
19864 | fi | |
19865 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | |
19866 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 | |
19867 | ||
19868 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | |
19869 | case $lt_prog_compiler_pic_CXX in | |
19870 | "" | " "*) ;; | |
19871 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
19872 | esac | |
19873 | else | |
19874 | lt_prog_compiler_pic_CXX= | |
19875 | lt_prog_compiler_can_build_shared_CXX=no | |
19876 | fi | |
19877 | ||
19878 | fi | |
19879 | case "$host_os" in | |
19880 | # For platforms which do not support PIC, -DPIC is meaningless: | |
19881 | *djgpp*) | |
19882 | lt_prog_compiler_pic_CXX= | |
19883 | ;; | |
19884 | *) | |
19885 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
19886 | ;; | |
19887 | esac | |
19888 | ||
19889 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
19890 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
19891 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | |
19892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19893 | else | |
19894 | lt_cv_prog_compiler_c_o_CXX=no | |
19895 | $rm -r conftest 2>/dev/null | |
19896 | mkdir conftest | |
19897 | cd conftest | |
19898 | mkdir out | |
19899 | save_CXXFLAGS="$CXXFLAGS" | |
19900 | CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext" | |
19901 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
19902 | ||
19903 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | |
19904 | # that will create temporary files in the current directory regardless of | |
19905 | # the output directory. Thus, making CWD read-only will cause this test | |
19906 | # to fail, enabling locking or at least warning the user not to do parallel | |
19907 | # builds. | |
19908 | chmod -w . | |
19909 | ||
19910 | if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext | |
19911 | then | |
19912 | # The compiler can only warn and ignore the option if not recognized | |
19913 | # So say no if there are warnings | |
19914 | if test -s out/conftest.err; then | |
19915 | # Append any errors to the config.log. | |
19916 | cat out/conftest.err 1>&5 | |
19917 | else | |
19918 | lt_cv_prog_compiler_c_o_CXX=yes | |
19919 | fi | |
19920 | fi | |
19921 | CXXFLAGS="$save_CXXFLAGS" | |
19922 | chmod u+w . | |
19923 | $rm conftest* out/* | |
19924 | rmdir out | |
19925 | cd .. | |
19926 | rmdir conftest | |
19927 | $rm conftest* | |
19928 | ||
19929 | fi | |
19930 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
19931 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 | |
19932 | ||
19933 | ||
19934 | hard_links="nottested" | |
19935 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
19936 | # do not overwrite the value of need_locks provided by the user | |
19937 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
19938 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
19939 | hard_links=yes | |
19940 | $rm conftest* | |
19941 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
19942 | touch conftest.a | |
19943 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
19944 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
19945 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
19946 | echo "${ECHO_T}$hard_links" >&6 | |
19947 | if test "$hard_links" = no; then | |
19948 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
19949 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
19950 | need_locks=warn | |
19951 | fi | |
19952 | else | |
19953 | need_locks=no | |
19954 | fi | |
19955 | ||
19956 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
19957 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
19958 | ||
19959 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
19960 | case $host_os in | |
19961 | aix4* | aix5*) | |
19962 | # If we're using GNU nm, then we don't want the "-C" option. | |
19963 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
19964 | if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then | |
19965 | 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' | |
19966 | else | |
19967 | 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' | |
19968 | fi | |
19969 | ;; | |
19970 | cygwin* | mingw* | pw32*) | |
19971 | export_symbols_cmds_CXX="$ltdll_cmds" | |
19972 | ;; | |
19973 | *) | |
19974 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
19975 | ;; | |
19976 | esac | |
19977 | ||
19978 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
19979 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | |
19980 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
19981 | ||
19982 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
19983 | if test "$GCC" = yes; then | |
19984 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
19985 | fi | |
19986 | ||
19987 | # | |
19988 | # Do we need to explicitly link libc? | |
19989 | # | |
19990 | archive_cmds_need_lc_CXX=yes | |
19991 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
19992 | case $archive_cmds_CXX in | |
19993 | *'~'*) | |
19994 | # FIXME: we may have to deal with multi-command sequences. | |
19995 | ;; | |
19996 | '$CC '*) | |
19997 | # Test whether the compiler implicitly links with -lc since on some | |
19998 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
19999 | # to ld, don't add -lc before -lgcc. | |
20000 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
20001 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
20002 | $rm conftest* | |
20003 | echo 'static int dummy;' > conftest.$ac_ext | |
20004 | ||
20005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20006 | (eval $ac_compile) 2>&5 | |
20007 | ac_status=$? | |
20008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20009 | (exit $ac_status); } 2>conftest.err; then | |
20010 | soname=conftest | |
20011 | lib=conftest | |
20012 | libobjs=conftest.$ac_objext | |
20013 | deplibs= | |
20014 | wl=$lt_prog_compiler_wl_CXX | |
20015 | compiler_flags=-v | |
20016 | linker_flags=-v | |
20017 | verstring= | |
20018 | output_objdir=. | |
20019 | libname=conftest | |
20020 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
20021 | allow_undefined_flag_CXX= | |
20022 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
20023 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
20024 | ac_status=$? | |
20025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20026 | (exit $ac_status); } | |
20027 | then | |
20028 | archive_cmds_need_lc_CXX=no | |
20029 | else | |
20030 | archive_cmds_need_lc_CXX=yes | |
20031 | fi | |
20032 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
20033 | else | |
20034 | cat conftest.err 1>&5 | |
20035 | fi | |
20036 | $rm conftest* | |
20037 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | |
20038 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 | |
20039 | ;; | |
20040 | esac | |
20041 | fi | |
20042 | ||
20043 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
20044 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
20045 | hardcode_action_CXX= | |
20046 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ | |
20047 | test -n "$runpath_var CXX"; then | |
20048 | ||
20049 | # We can hardcode non-existant directories. | |
20050 | if test "$hardcode_direct_CXX" != no && | |
20051 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
20052 | # have to relink, otherwise we might link with an installed library | |
20053 | # when we should be linking with a yet-to-be-installed one | |
20054 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
20055 | test "$hardcode_minus_L_CXX" != no; then | |
20056 | # Linking always hardcodes the temporary library directory. | |
20057 | hardcode_action_CXX=relink | |
20058 | else | |
20059 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
20060 | hardcode_action_CXX=immediate | |
20061 | fi | |
20062 | else | |
20063 | # We cannot hardcode anything, or else we can only hardcode existing | |
20064 | # directories. | |
20065 | hardcode_action_CXX=unsupported | |
20066 | fi | |
20067 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | |
20068 | echo "${ECHO_T}$hardcode_action_CXX" >&6 | |
20069 | ||
20070 | if test "$hardcode_action_CXX" = relink; then | |
20071 | # Fast installation is not supported | |
20072 | enable_fast_install=no | |
20073 | elif test "$shlibpath_overrides_runpath" = yes || | |
20074 | test "$enable_shared" = no; then | |
20075 | # Fast installation is not necessary | |
20076 | enable_fast_install=needless | |
20077 | fi | |
20078 | ||
20079 | striplib= | |
20080 | old_striplib= | |
20081 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
20082 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
20083 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
20084 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
20085 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
20086 | echo "$as_me:$LINENO: result: yes" >&5 | |
20087 | echo "${ECHO_T}yes" >&6 | |
20088 | else | |
20089 | echo "$as_me:$LINENO: result: no" >&5 | |
20090 | echo "${ECHO_T}no" >&6 | |
20091 | fi | |
20092 | ||
20093 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
20094 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
20095 | library_names_spec= | |
20096 | libname_spec='lib$name' | |
20097 | soname_spec= | |
20098 | postinstall_cmds= | |
20099 | postuninstall_cmds= | |
20100 | finish_cmds= | |
20101 | finish_eval= | |
20102 | shlibpath_var= | |
20103 | shlibpath_overrides_runpath=unknown | |
20104 | version_type=none | |
20105 | dynamic_linker="$host_os ld.so" | |
20106 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
20107 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
20108 | need_lib_prefix=unknown | |
20109 | hardcode_into_libs=no | |
20110 | ||
20111 | # when you set need_version to no, make sure it does not cause -set_version | |
20112 | # flags to be left without arguments | |
20113 | need_version=unknown | |
20114 | ||
20115 | case $host_os in | |
20116 | aix3*) | |
20117 | version_type=linux | |
20118 | library_names_spec='${libname}${release}.so$versuffix $libname.a' | |
20119 | shlibpath_var=LIBPATH | |
20120 | ||
20121 | # AIX 3 has no versioning support, so we append a major version to the name. | |
20122 | soname_spec='${libname}${release}.so$major' | |
20123 | ;; | |
20124 | ||
20125 | aix4* | aix5*) | |
20126 | version_type=linux | |
20127 | if test "$host_cpu" = ia64; then | |
20128 | # AIX 5 supports IA64 | |
20129 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' | |
20130 | shlibpath_var=LD_LIBRARY_PATH | |
20131 | else | |
20132 | # With GCC up to 2.95.x, collect2 would create an import file | |
20133 | # for dependence libraries. The import file would start with | |
20134 | # the line `#! .'. This would cause the generated library to | |
20135 | # depend on `.', always an invalid library. This was fixed in | |
20136 | # development snapshots of GCC prior to 3.0. | |
20137 | case $host_os in | |
20138 | aix4 | aix4.[01] | aix4.[01].*) | |
20139 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
20140 | echo ' yes ' | |
20141 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
20142 | : | |
20143 | else | |
20144 | can_build_shared=no | |
20145 | fi | |
20146 | ;; | |
20147 | esac | |
20148 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
20149 | # soname into executable. Probably we can add versioning support to | |
20150 | # collect2, so additional links can be useful in future. | |
20151 | if test "$aix_use_runtimelinking" = yes; then | |
20152 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
20153 | # instead of lib<name>.a to let people know that these are not | |
20154 | # typical AIX shared libraries. | |
20155 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
20156 | else | |
20157 | # We preserve .a as extension for shared libraries through AIX4.2 | |
20158 | # and later when we are not doing run time linking. | |
20159 | library_names_spec='${libname}${release}.a $libname.a' | |
20160 | soname_spec='${libname}${release}.so$major' | |
20161 | fi | |
20162 | shlibpath_var=LIBPATH | |
20163 | fi | |
20164 | ;; | |
20165 | ||
20166 | amigaos*) | |
20167 | library_names_spec='$libname.ixlibrary $libname.a' | |
20168 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
20169 | 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' | |
20170 | ;; | |
20171 | ||
20172 | beos*) | |
20173 | library_names_spec='${libname}.so' | |
20174 | dynamic_linker="$host_os ld.so" | |
20175 | shlibpath_var=LIBRARY_PATH | |
20176 | ;; | |
20177 | ||
20178 | bsdi4*) | |
20179 | version_type=linux | |
20180 | need_version=no | |
20181 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
20182 | soname_spec='${libname}${release}.so$major' | |
20183 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
20184 | shlibpath_var=LD_LIBRARY_PATH | |
20185 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
20186 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
20187 | # the default ld.so.conf also contains /usr/contrib/lib and | |
20188 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
20189 | # libtool to hard-code these into programs | |
20190 | ;; | |
20191 | ||
20192 | cygwin* | mingw* | pw32*) | |
20193 | version_type=windows | |
20194 | need_version=no | |
20195 | need_lib_prefix=no | |
20196 | case $GCC,$host_os in | |
20197 | yes,cygwin*) | |
20198 | library_names_spec='$libname.dll.a' | |
20199 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | |
20200 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
20201 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ | |
20202 | dldir=$destdir/`dirname \$dlpath`~ | |
20203 | test -d \$dldir || mkdir -p \$dldir~ | |
20204 | $install_prog .libs/$dlname \$dldir/$dlname' | |
20205 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
20206 | dlpath=$dir/\$dldll~ | |
20207 | $rm \$dlpath' | |
20208 | ;; | |
20209 | yes,mingw*) | |
20210 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
20211 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"` | |
20212 | if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then | |
20213 | # It is most probably a Windows format PATH printed by | |
20214 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
20215 | # path with ; separators, and with drive letters. We can handle the | |
20216 | # drive letters (cygwin fileutils understands them), so leave them, | |
20217 | # especially as we might pass files found there to a mingw objdump, | |
20218 | # which wouldn't understand a cygwinified path. Ahh. | |
20219 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` | |
20220 | else | |
20221 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` | |
20222 | fi | |
20223 | ;; | |
20224 | yes,pw32*) | |
20225 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' | |
20226 | ;; | |
20227 | *) | |
20228 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' | |
20229 | ;; | |
20230 | esac | |
20231 | dynamic_linker='Win32 ld.exe' | |
20232 | # FIXME: first we should search . and the directory the executable is in | |
20233 | shlibpath_var=PATH | |
20234 | ;; | |
20235 | ||
20236 | darwin* | rhapsody*) | |
20237 | dynamic_linker="$host_os dyld" | |
20238 | version_type=darwin | |
20239 | need_lib_prefix=no | |
20240 | need_version=no | |
20241 | # FIXME: Relying on posixy $() will cause problems for | |
20242 | # cross-compilation, but unfortunately the echo tests do not | |
20243 | # yet detect zsh echo's removal of \ escapes. | |
20244 | 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)' | |
20245 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' | |
20246 | shlibpath_overrides_runpath=yes | |
20247 | shlibpath_var=DYLD_LIBRARY_PATH | |
20248 | ;; | |
20249 | ||
20250 | dgux*) | |
20251 | version_type=linux | |
20252 | need_lib_prefix=no | |
20253 | need_version=no | |
20254 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
20255 | soname_spec='${libname}${release}.so$major' | |
20256 | shlibpath_var=LD_LIBRARY_PATH | |
20257 | ;; | |
20258 | ||
20259 | freebsd1*) | |
20260 | dynamic_linker=no | |
20261 | ;; | |
20262 | ||
20263 | freebsd*) | |
20264 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
20265 | version_type=freebsd-$objformat | |
20266 | case $version_type in | |
20267 | freebsd-elf*) | |
20268 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
20269 | need_version=no | |
20270 | need_lib_prefix=no | |
20271 | ;; | |
20272 | freebsd-*) | |
20273 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' | |
20274 | need_version=yes | |
20275 | ;; | |
20276 | esac | |
20277 | shlibpath_var=LD_LIBRARY_PATH | |
20278 | case $host_os in | |
20279 | freebsd2*) | |
20280 | shlibpath_overrides_runpath=yes | |
20281 | ;; | |
20282 | freebsd3.01* | freebsdelf3.01*) | |
20283 | shlibpath_overrides_runpath=yes | |
20284 | hardcode_into_libs=yes | |
20285 | ;; | |
20286 | *) # from 3.2 on | |
20287 | shlibpath_overrides_runpath=no | |
20288 | hardcode_into_libs=yes | |
20289 | ;; | |
20290 | esac | |
20291 | ;; | |
20292 | ||
20293 | gnu*) | |
20294 | version_type=linux | |
20295 | need_lib_prefix=no | |
20296 | need_version=no | |
20297 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' | |
20298 | soname_spec='${libname}${release}.so$major' | |
20299 | shlibpath_var=LD_LIBRARY_PATH | |
20300 | hardcode_into_libs=yes | |
20301 | ;; | |
20302 | ||
20303 | hpux9* | hpux10* | hpux11*) | |
20304 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
20305 | # link against other versions. | |
20306 | version_type=sunos | |
20307 | need_lib_prefix=no | |
20308 | need_version=no | |
20309 | if test "$host_cpu" = ia64; then | |
20310 | hardcode_into_libs=yes | |
20311 | dynamic_linker="$host_os dld.so" | |
20312 | shlibpath_var=LD_LIBRARY_PATH | |
20313 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
20314 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
20315 | soname_spec='${libname}${release}.so$major' | |
20316 | if test "X$HPUX_IA64_MODE" = X32; then | |
20317 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
20318 | else | |
20319 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
20320 | fi | |
20321 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
20322 | else | |
20323 | dynamic_linker="$host_os dld.sl" | |
20324 | shlibpath_var=SHLIB_PATH | |
20325 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
20326 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' | |
20327 | soname_spec='${libname}${release}.sl$major' | |
20328 | fi | |
20329 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
20330 | postinstall_cmds='chmod 555 $lib' | |
20331 | ;; | |
20332 | ||
20333 | irix5* | irix6* | nonstopux*) | |
20334 | case $host_os in | |
20335 | nonstopux*) version_type=nonstopux ;; | |
20336 | *) version_type=irix ;; | |
20337 | esac | |
20338 | need_lib_prefix=no | |
20339 | need_version=no | |
20340 | soname_spec='${libname}${release}.so$major' | |
20341 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' | |
20342 | case $host_os in | |
20343 | irix5* | nonstopux*) | |
20344 | libsuff= shlibsuff= | |
20345 | ;; | |
20346 | *) | |
20347 | case $LD in # libtool.m4 will add one of these switches to LD | |
20348 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; | |
20349 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; | |
20350 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
20351 | *) libsuff= shlibsuff= libmagic=never-match;; | |
20352 | esac | |
20353 | ;; | |
20354 | esac | |
20355 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
20356 | shlibpath_overrides_runpath=no | |
20357 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
20358 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
20359 | ;; | |
20360 | ||
20361 | # No shared lib support for Linux oldld, aout, or coff. | |
20362 | linux*oldld* | linux*aout* | linux*coff*) | |
20363 | dynamic_linker=no | |
20364 | ;; | |
20365 | ||
20366 | # This must be Linux ELF. | |
20367 | linux*) | |
20368 | version_type=linux | |
20369 | need_lib_prefix=no | |
20370 | need_version=no | |
20371 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
20372 | soname_spec='${libname}${release}.so$major' | |
20373 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
20374 | libsuff= | |
20375 | if test "x$LINUX_64_MODE" = x64; then | |
20376 | # Some platforms are per default 64-bit, so there's no /lib64 | |
20377 | if test -d /lib64; then | |
20378 | libsuff=64 | |
20379 | fi | |
20380 | fi | |
20381 | shlibpath_var=LD_LIBRARY_PATH | |
20382 | shlibpath_overrides_runpath=no | |
20383 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" | |
20384 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
20385 | # This implies no fast_install, which is unacceptable. | |
20386 | # Some rework will be needed to allow for fast_install | |
20387 | # before this can be enabled. | |
20388 | hardcode_into_libs=yes | |
20389 | ||
20390 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
20391 | # powerpc, because MkLinux only supported shared libraries with the | |
20392 | # GNU dynamic linker. Since this was broken with cross compilers, | |
20393 | # most powerpc-linux boxes support dynamic linking these days and | |
20394 | # people can always --disable-shared, the test was removed, and we | |
20395 | # assume the GNU/Linux dynamic linker is in use. | |
20396 | dynamic_linker='GNU/Linux ld.so' | |
20397 | ;; | |
20398 | ||
20399 | netbsd*) | |
20400 | version_type=sunos | |
20401 | need_lib_prefix=no | |
20402 | need_version=no | |
20403 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
20404 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
20405 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
20406 | dynamic_linker='NetBSD (a.out) ld.so' | |
20407 | else | |
20408 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' | |
20409 | soname_spec='${libname}${release}.so$major' | |
20410 | dynamic_linker='NetBSD ld.elf_so' | |
20411 | fi | |
20412 | shlibpath_var=LD_LIBRARY_PATH | |
20413 | shlibpath_overrides_runpath=yes | |
20414 | hardcode_into_libs=yes | |
20415 | ;; | |
20416 | ||
20417 | newsos6) | |
20418 | version_type=linux | |
20419 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
20420 | shlibpath_var=LD_LIBRARY_PATH | |
20421 | shlibpath_overrides_runpath=yes | |
20422 | ;; | |
20423 | ||
20424 | nto-qnx) | |
20425 | version_type=linux | |
20426 | need_lib_prefix=no | |
20427 | need_version=no | |
20428 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
20429 | soname_spec='${libname}${release}.so$major' | |
20430 | shlibpath_var=LD_LIBRARY_PATH | |
20431 | shlibpath_overrides_runpath=yes | |
20432 | ;; | |
20433 | ||
20434 | openbsd*) | |
20435 | version_type=sunos | |
20436 | need_lib_prefix=no | |
20437 | need_version=no | |
20438 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
20439 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
20440 | shlibpath_var=LD_LIBRARY_PATH | |
20441 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
20442 | case $host_os in | |
20443 | openbsd2.[89] | openbsd2.[89].*) | |
20444 | shlibpath_overrides_runpath=no | |
20445 | ;; | |
20446 | *) | |
20447 | shlibpath_overrides_runpath=yes | |
20448 | ;; | |
20449 | esac | |
20450 | else | |
20451 | shlibpath_overrides_runpath=yes | |
20452 | fi | |
20453 | ;; | |
20454 | ||
20455 | os2*) | |
20456 | libname_spec='$name' | |
20457 | need_lib_prefix=no | |
20458 | library_names_spec='$libname.dll $libname.a' | |
20459 | dynamic_linker='OS/2 ld.exe' | |
20460 | shlibpath_var=LIBPATH | |
20461 | ;; | |
20462 | ||
20463 | osf3* | osf4* | osf5*) | |
20464 | version_type=osf | |
20465 | need_lib_prefix=no | |
20466 | need_version=no | |
20467 | soname_spec='${libname}${release}.so' | |
20468 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
20469 | shlibpath_var=LD_LIBRARY_PATH | |
20470 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
20471 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
20472 | ;; | |
20473 | ||
20474 | sco3.2v5*) | |
20475 | version_type=osf | |
20476 | soname_spec='${libname}${release}.so$major' | |
20477 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
20478 | shlibpath_var=LD_LIBRARY_PATH | |
20479 | ;; | |
20480 | ||
20481 | solaris*) | |
20482 | version_type=linux | |
20483 | need_lib_prefix=no | |
20484 | need_version=no | |
20485 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
20486 | soname_spec='${libname}${release}.so$major' | |
20487 | shlibpath_var=LD_LIBRARY_PATH | |
20488 | shlibpath_overrides_runpath=yes | |
20489 | hardcode_into_libs=yes | |
20490 | # ldd complains unless libraries are executable | |
20491 | postinstall_cmds='chmod +x $lib' | |
20492 | ;; | |
20493 | ||
20494 | sunos4*) | |
20495 | version_type=sunos | |
20496 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
20497 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
20498 | shlibpath_var=LD_LIBRARY_PATH | |
20499 | shlibpath_overrides_runpath=yes | |
20500 | if test "$with_gnu_ld" = yes; then | |
20501 | need_lib_prefix=no | |
20502 | fi | |
20503 | need_version=yes | |
20504 | ;; | |
20505 | ||
20506 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
20507 | version_type=linux | |
20508 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
20509 | soname_spec='${libname}${release}.so$major' | |
20510 | shlibpath_var=LD_LIBRARY_PATH | |
20511 | case $host_vendor in | |
20512 | sni) | |
20513 | shlibpath_overrides_runpath=no | |
20514 | ;; | |
20515 | motorola) | |
20516 | need_lib_prefix=no | |
20517 | need_version=no | |
20518 | shlibpath_overrides_runpath=no | |
20519 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
20520 | ;; | |
20521 | esac | |
20522 | ;; | |
20523 | ||
20524 | sysv4*MP*) | |
20525 | if test -d /usr/nec ;then | |
20526 | version_type=linux | |
20527 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' | |
20528 | soname_spec='$libname.so.$major' | |
20529 | shlibpath_var=LD_LIBRARY_PATH | |
20530 | fi | |
20531 | ;; | |
20532 | ||
20533 | uts4*) | |
20534 | version_type=linux | |
20535 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
20536 | soname_spec='${libname}${release}.so$major' | |
20537 | shlibpath_var=LD_LIBRARY_PATH | |
20538 | ;; | |
20539 | ||
20540 | *) | |
20541 | dynamic_linker=no | |
20542 | ;; | |
20543 | esac | |
20544 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
20545 | echo "${ECHO_T}$dynamic_linker" >&6 | |
20546 | test "$dynamic_linker" = no && can_build_shared=no | |
20547 | ||
20548 | if test "x$enable_dlopen" != xyes; then | |
20549 | enable_dlopen=unknown | |
20550 | enable_dlopen_self=unknown | |
20551 | enable_dlopen_self_static=unknown | |
20552 | else | |
20553 | lt_cv_dlopen=no | |
20554 | lt_cv_dlopen_libs= | |
20555 | ||
20556 | case $host_os in | |
20557 | beos*) | |
20558 | lt_cv_dlopen="load_add_on" | |
20559 | lt_cv_dlopen_libs= | |
20560 | lt_cv_dlopen_self=yes | |
20561 | ;; | |
20562 | ||
20563 | cygwin* | mingw* | pw32*) | |
20564 | lt_cv_dlopen="LoadLibrary" | |
20565 | lt_cv_dlopen_libs= | |
20566 | ;; | |
20567 | ||
20568 | *) | |
20569 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
20570 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
20571 | if test "${ac_cv_func_shl_load+set}" = set; then | |
20572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20573 | else | |
20574 | cat >conftest.$ac_ext <<_ACEOF | |
20575 | #line $LINENO "configure" | |
20576 | #include "confdefs.h" | |
20577 | /* System header to define __stub macros and hopefully few prototypes, | |
20578 | which can conflict with char shl_load (); below. */ | |
20579 | #include <assert.h> | |
20580 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20581 | #ifdef __cplusplus | |
20582 | extern "C" | |
20583 | #endif | |
20584 | /* We use char because int might match the return type of a gcc2 | |
20585 | builtin and then its argument prototype would still apply. */ | |
20586 | char shl_load (); | |
20587 | char (*f) (); | |
20588 | ||
20589 | #ifdef F77_DUMMY_MAIN | |
20590 | # ifdef __cplusplus | |
20591 | extern "C" | |
20592 | # endif | |
20593 | int F77_DUMMY_MAIN() { return 1; } | |
20594 | #endif | |
20595 | int | |
20596 | main () | |
20597 | { | |
20598 | /* The GNU C library defines this for functions which it implements | |
20599 | to always fail with ENOSYS. Some functions are actually named | |
20600 | something starting with __ and the normal name is an alias. */ | |
20601 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
20602 | choke me | |
20603 | #else | |
20604 | f = shl_load; | |
20605 | #endif | |
20606 | ||
20607 | ; | |
20608 | return 0; | |
20609 | } | |
20610 | _ACEOF | |
20611 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20612 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20613 | (eval $ac_link) 2>&5 | |
20614 | ac_status=$? | |
20615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20616 | (exit $ac_status); } && | |
20617 | { ac_try='test -s conftest$ac_exeext' | |
20618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20619 | (eval $ac_try) 2>&5 | |
20620 | ac_status=$? | |
20621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20622 | (exit $ac_status); }; }; then | |
20623 | ac_cv_func_shl_load=yes | |
20624 | else | |
20625 | echo "$as_me: failed program was:" >&5 | |
20626 | cat conftest.$ac_ext >&5 | |
20627 | ac_cv_func_shl_load=no | |
20628 | fi | |
20629 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20630 | fi | |
20631 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
20632 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
20633 | if test $ac_cv_func_shl_load = yes; then | |
20634 | lt_cv_dlopen="shl_load" | |
20635 | else | |
20636 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
20637 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
20638 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
20639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20640 | else | |
20641 | ac_check_lib_save_LIBS=$LIBS | |
20642 | LIBS="-ldld $LIBS" | |
20643 | cat >conftest.$ac_ext <<_ACEOF | |
20644 | #line $LINENO "configure" | |
20645 | #include "confdefs.h" | |
20646 | ||
20647 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20648 | #ifdef __cplusplus | |
20649 | extern "C" | |
20650 | #endif | |
20651 | /* We use char because int might match the return type of a gcc2 | |
20652 | builtin and then its argument prototype would still apply. */ | |
20653 | char shl_load (); | |
20654 | #ifdef F77_DUMMY_MAIN | |
20655 | # ifdef __cplusplus | |
20656 | extern "C" | |
20657 | # endif | |
20658 | int F77_DUMMY_MAIN() { return 1; } | |
20659 | #endif | |
20660 | int | |
20661 | main () | |
20662 | { | |
20663 | shl_load (); | |
20664 | ; | |
20665 | return 0; | |
20666 | } | |
20667 | _ACEOF | |
20668 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20669 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20670 | (eval $ac_link) 2>&5 | |
20671 | ac_status=$? | |
20672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20673 | (exit $ac_status); } && | |
20674 | { ac_try='test -s conftest$ac_exeext' | |
20675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20676 | (eval $ac_try) 2>&5 | |
20677 | ac_status=$? | |
20678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20679 | (exit $ac_status); }; }; then | |
20680 | ac_cv_lib_dld_shl_load=yes | |
20681 | else | |
20682 | echo "$as_me: failed program was:" >&5 | |
20683 | cat conftest.$ac_ext >&5 | |
20684 | ac_cv_lib_dld_shl_load=no | |
20685 | fi | |
20686 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20687 | LIBS=$ac_check_lib_save_LIBS | |
20688 | fi | |
20689 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
20690 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
20691 | if test $ac_cv_lib_dld_shl_load = yes; then | |
20692 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
20693 | else | |
20694 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
20695 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
20696 | if test "${ac_cv_func_dlopen+set}" = set; then | |
20697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20698 | else | |
20699 | cat >conftest.$ac_ext <<_ACEOF | |
20700 | #line $LINENO "configure" | |
20701 | #include "confdefs.h" | |
20702 | /* System header to define __stub macros and hopefully few prototypes, | |
20703 | which can conflict with char dlopen (); below. */ | |
20704 | #include <assert.h> | |
20705 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20706 | #ifdef __cplusplus | |
20707 | extern "C" | |
20708 | #endif | |
20709 | /* We use char because int might match the return type of a gcc2 | |
20710 | builtin and then its argument prototype would still apply. */ | |
20711 | char dlopen (); | |
20712 | char (*f) (); | |
20713 | ||
20714 | #ifdef F77_DUMMY_MAIN | |
20715 | # ifdef __cplusplus | |
20716 | extern "C" | |
20717 | # endif | |
20718 | int F77_DUMMY_MAIN() { return 1; } | |
20719 | #endif | |
20720 | int | |
20721 | main () | |
20722 | { | |
20723 | /* The GNU C library defines this for functions which it implements | |
20724 | to always fail with ENOSYS. Some functions are actually named | |
20725 | something starting with __ and the normal name is an alias. */ | |
20726 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
20727 | choke me | |
20728 | #else | |
20729 | f = dlopen; | |
20730 | #endif | |
20731 | ||
20732 | ; | |
20733 | return 0; | |
20734 | } | |
20735 | _ACEOF | |
20736 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20737 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20738 | (eval $ac_link) 2>&5 | |
20739 | ac_status=$? | |
20740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20741 | (exit $ac_status); } && | |
20742 | { ac_try='test -s conftest$ac_exeext' | |
20743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20744 | (eval $ac_try) 2>&5 | |
20745 | ac_status=$? | |
20746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20747 | (exit $ac_status); }; }; then | |
20748 | ac_cv_func_dlopen=yes | |
20749 | else | |
20750 | echo "$as_me: failed program was:" >&5 | |
20751 | cat conftest.$ac_ext >&5 | |
20752 | ac_cv_func_dlopen=no | |
20753 | fi | |
20754 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20755 | fi | |
20756 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
20757 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
20758 | if test $ac_cv_func_dlopen = yes; then | |
20759 | lt_cv_dlopen="dlopen" | |
20760 | else | |
20761 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
20762 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
20763 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
20764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20765 | else | |
20766 | ac_check_lib_save_LIBS=$LIBS | |
20767 | LIBS="-ldl $LIBS" | |
20768 | cat >conftest.$ac_ext <<_ACEOF | |
20769 | #line $LINENO "configure" | |
20770 | #include "confdefs.h" | |
20771 | ||
20772 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20773 | #ifdef __cplusplus | |
20774 | extern "C" | |
20775 | #endif | |
20776 | /* We use char because int might match the return type of a gcc2 | |
20777 | builtin and then its argument prototype would still apply. */ | |
20778 | char dlopen (); | |
20779 | #ifdef F77_DUMMY_MAIN | |
20780 | # ifdef __cplusplus | |
20781 | extern "C" | |
20782 | # endif | |
20783 | int F77_DUMMY_MAIN() { return 1; } | |
20784 | #endif | |
20785 | int | |
20786 | main () | |
20787 | { | |
20788 | dlopen (); | |
20789 | ; | |
20790 | return 0; | |
20791 | } | |
20792 | _ACEOF | |
20793 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20794 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20795 | (eval $ac_link) 2>&5 | |
20796 | ac_status=$? | |
20797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20798 | (exit $ac_status); } && | |
20799 | { ac_try='test -s conftest$ac_exeext' | |
20800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20801 | (eval $ac_try) 2>&5 | |
20802 | ac_status=$? | |
20803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20804 | (exit $ac_status); }; }; then | |
20805 | ac_cv_lib_dl_dlopen=yes | |
20806 | else | |
20807 | echo "$as_me: failed program was:" >&5 | |
20808 | cat conftest.$ac_ext >&5 | |
20809 | ac_cv_lib_dl_dlopen=no | |
20810 | fi | |
20811 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20812 | LIBS=$ac_check_lib_save_LIBS | |
20813 | fi | |
20814 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
20815 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
20816 | if test $ac_cv_lib_dl_dlopen = yes; then | |
20817 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
20818 | else | |
20819 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
20820 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
20821 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
20822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20823 | else | |
20824 | ac_check_lib_save_LIBS=$LIBS | |
20825 | LIBS="-lsvld $LIBS" | |
20826 | cat >conftest.$ac_ext <<_ACEOF | |
20827 | #line $LINENO "configure" | |
20828 | #include "confdefs.h" | |
20829 | ||
20830 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20831 | #ifdef __cplusplus | |
20832 | extern "C" | |
20833 | #endif | |
20834 | /* We use char because int might match the return type of a gcc2 | |
20835 | builtin and then its argument prototype would still apply. */ | |
20836 | char dlopen (); | |
20837 | #ifdef F77_DUMMY_MAIN | |
20838 | # ifdef __cplusplus | |
20839 | extern "C" | |
20840 | # endif | |
20841 | int F77_DUMMY_MAIN() { return 1; } | |
20842 | #endif | |
20843 | int | |
20844 | main () | |
20845 | { | |
20846 | dlopen (); | |
20847 | ; | |
20848 | return 0; | |
20849 | } | |
20850 | _ACEOF | |
20851 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20852 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20853 | (eval $ac_link) 2>&5 | |
20854 | ac_status=$? | |
20855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20856 | (exit $ac_status); } && | |
20857 | { ac_try='test -s conftest$ac_exeext' | |
20858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20859 | (eval $ac_try) 2>&5 | |
20860 | ac_status=$? | |
20861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20862 | (exit $ac_status); }; }; then | |
20863 | ac_cv_lib_svld_dlopen=yes | |
20864 | else | |
20865 | echo "$as_me: failed program was:" >&5 | |
20866 | cat conftest.$ac_ext >&5 | |
20867 | ac_cv_lib_svld_dlopen=no | |
20868 | fi | |
20869 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20870 | LIBS=$ac_check_lib_save_LIBS | |
20871 | fi | |
20872 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
20873 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
20874 | if test $ac_cv_lib_svld_dlopen = yes; then | |
20875 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
20876 | else | |
20877 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
20878 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
20879 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
20880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20881 | else | |
20882 | ac_check_lib_save_LIBS=$LIBS | |
20883 | LIBS="-ldld $LIBS" | |
20884 | cat >conftest.$ac_ext <<_ACEOF | |
20885 | #line $LINENO "configure" | |
20886 | #include "confdefs.h" | |
20887 | ||
20888 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20889 | #ifdef __cplusplus | |
20890 | extern "C" | |
20891 | #endif | |
20892 | /* We use char because int might match the return type of a gcc2 | |
20893 | builtin and then its argument prototype would still apply. */ | |
20894 | char dld_link (); | |
20895 | #ifdef F77_DUMMY_MAIN | |
20896 | # ifdef __cplusplus | |
20897 | extern "C" | |
20898 | # endif | |
20899 | int F77_DUMMY_MAIN() { return 1; } | |
20900 | #endif | |
20901 | int | |
20902 | main () | |
20903 | { | |
20904 | dld_link (); | |
20905 | ; | |
20906 | return 0; | |
20907 | } | |
20908 | _ACEOF | |
20909 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20910 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20911 | (eval $ac_link) 2>&5 | |
20912 | ac_status=$? | |
20913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20914 | (exit $ac_status); } && | |
20915 | { ac_try='test -s conftest$ac_exeext' | |
20916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20917 | (eval $ac_try) 2>&5 | |
20918 | ac_status=$? | |
20919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20920 | (exit $ac_status); }; }; then | |
20921 | ac_cv_lib_dld_dld_link=yes | |
20922 | else | |
20923 | echo "$as_me: failed program was:" >&5 | |
20924 | cat conftest.$ac_ext >&5 | |
20925 | ac_cv_lib_dld_dld_link=no | |
20926 | fi | |
20927 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20928 | LIBS=$ac_check_lib_save_LIBS | |
20929 | fi | |
20930 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
20931 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
20932 | if test $ac_cv_lib_dld_dld_link = yes; then | |
20933 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
20934 | fi | |
20935 | ||
20936 | ||
20937 | fi | |
20938 | ||
20939 | ||
20940 | fi | |
20941 | ||
20942 | ||
20943 | fi | |
20944 | ||
20945 | ||
20946 | fi | |
20947 | ||
20948 | ||
20949 | fi | |
20950 | ||
20951 | ;; | |
20952 | esac | |
20953 | ||
20954 | if test "x$lt_cv_dlopen" != xno; then | |
20955 | enable_dlopen=yes | |
20956 | else | |
20957 | enable_dlopen=no | |
20958 | fi | |
20959 | ||
20960 | case $lt_cv_dlopen in | |
20961 | dlopen) | |
20962 | save_CPPFLAGS="$CPPFLAGS" | |
20963 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
20964 | ||
20965 | save_LDFLAGS="$LDFLAGS" | |
20966 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
20967 | ||
20968 | save_LIBS="$LIBS" | |
20969 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
20970 | ||
20971 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
20972 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
20973 | if test "${lt_cv_dlopen_self+set}" = set; then | |
20974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20975 | else | |
20976 | if test "$cross_compiling" = yes; then : | |
20977 | lt_cv_dlopen_self=cross | |
20978 | else | |
20979 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
20980 | lt_status=$lt_dlunknown | |
20981 | cat > conftest.$ac_ext <<EOF | |
20982 | #line 20982 "configure" | |
20983 | #include "confdefs.h" | |
20984 | ||
20985 | #if HAVE_DLFCN_H | |
20986 | #include <dlfcn.h> | |
20987 | #endif | |
20988 | ||
20989 | #include <stdio.h> | |
20990 | ||
20991 | #ifdef RTLD_GLOBAL | |
20992 | # define LT_DLGLOBAL RTLD_GLOBAL | |
20993 | #else | |
20994 | # ifdef DL_GLOBAL | |
20995 | # define LT_DLGLOBAL DL_GLOBAL | |
20996 | # else | |
20997 | # define LT_DLGLOBAL 0 | |
20998 | # endif | |
20999 | #endif | |
21000 | ||
21001 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
21002 | find out it does not work in some platform. */ | |
21003 | #ifndef LT_DLLAZY_OR_NOW | |
21004 | # ifdef RTLD_LAZY | |
21005 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
21006 | # else | |
21007 | # ifdef DL_LAZY | |
21008 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
21009 | # else | |
21010 | # ifdef RTLD_NOW | |
21011 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
21012 | # else | |
21013 | # ifdef DL_NOW | |
21014 | # define LT_DLLAZY_OR_NOW DL_NOW | |
21015 | # else | |
21016 | # define LT_DLLAZY_OR_NOW 0 | |
21017 | # endif | |
21018 | # endif | |
21019 | # endif | |
21020 | # endif | |
21021 | #endif | |
21022 | ||
21023 | #ifdef __cplusplus | |
21024 | extern "C" void exit (int); | |
21025 | #endif | |
21026 | ||
21027 | void fnord() { int i=42;} | |
21028 | int main () | |
21029 | { | |
21030 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
21031 | int status = $lt_dlunknown; | |
21032 | ||
21033 | if (self) | |
21034 | { | |
21035 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
21036 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
21037 | /* dlclose (self); */ | |
21038 | } | |
21039 | ||
21040 | exit (status); | |
21041 | } | |
21042 | EOF | |
21043 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21044 | (eval $ac_link) 2>&5 | |
21045 | ac_status=$? | |
21046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21047 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
21048 | (./conftest; exit; ) 2>/dev/null | |
21049 | lt_status=$? | |
21050 | case x$lt_status in | |
21051 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
21052 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
21053 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
21054 | esac | |
21055 | else : | |
21056 | # compilation failed | |
21057 | lt_cv_dlopen_self=no | |
21058 | fi | |
21059 | fi | |
21060 | rm -fr conftest* | |
21061 | ||
21062 | ||
21063 | fi | |
21064 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
21065 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
21066 | ||
21067 | if test "x$lt_cv_dlopen_self" = xyes; then | |
21068 | LDFLAGS="$LDFLAGS $link_static_flag" | |
21069 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
21070 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
21071 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
21072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21073 | else | |
21074 | if test "$cross_compiling" = yes; then : | |
21075 | lt_cv_dlopen_self_static=cross | |
21076 | else | |
21077 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
21078 | lt_status=$lt_dlunknown | |
21079 | cat > conftest.$ac_ext <<EOF | |
21080 | #line 21080 "configure" | |
21081 | #include "confdefs.h" | |
21082 | ||
21083 | #if HAVE_DLFCN_H | |
21084 | #include <dlfcn.h> | |
21085 | #endif | |
21086 | ||
21087 | #include <stdio.h> | |
21088 | ||
21089 | #ifdef RTLD_GLOBAL | |
21090 | # define LT_DLGLOBAL RTLD_GLOBAL | |
21091 | #else | |
21092 | # ifdef DL_GLOBAL | |
21093 | # define LT_DLGLOBAL DL_GLOBAL | |
21094 | # else | |
21095 | # define LT_DLGLOBAL 0 | |
21096 | # endif | |
21097 | #endif | |
21098 | ||
21099 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
21100 | find out it does not work in some platform. */ | |
21101 | #ifndef LT_DLLAZY_OR_NOW | |
21102 | # ifdef RTLD_LAZY | |
21103 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
21104 | # else | |
21105 | # ifdef DL_LAZY | |
21106 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
21107 | # else | |
21108 | # ifdef RTLD_NOW | |
21109 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
21110 | # else | |
21111 | # ifdef DL_NOW | |
21112 | # define LT_DLLAZY_OR_NOW DL_NOW | |
21113 | # else | |
21114 | # define LT_DLLAZY_OR_NOW 0 | |
21115 | # endif | |
21116 | # endif | |
21117 | # endif | |
21118 | # endif | |
21119 | #endif | |
21120 | ||
21121 | #ifdef __cplusplus | |
21122 | extern "C" void exit (int); | |
21123 | #endif | |
21124 | ||
21125 | void fnord() { int i=42;} | |
21126 | int main () | |
21127 | { | |
21128 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
21129 | int status = $lt_dlunknown; | |
21130 | ||
21131 | if (self) | |
21132 | { | |
21133 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
21134 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
21135 | /* dlclose (self); */ | |
21136 | } | |
21137 | ||
21138 | exit (status); | |
21139 | } | |
21140 | EOF | |
21141 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21142 | (eval $ac_link) 2>&5 | |
21143 | ac_status=$? | |
21144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21145 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
21146 | (./conftest; exit; ) 2>/dev/null | |
21147 | lt_status=$? | |
21148 | case x$lt_status in | |
21149 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
21150 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
21151 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
21152 | esac | |
21153 | else : | |
21154 | # compilation failed | |
21155 | lt_cv_dlopen_self_static=no | |
21156 | fi | |
21157 | fi | |
21158 | rm -fr conftest* | |
21159 | ||
21160 | ||
21161 | fi | |
21162 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
21163 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
21164 | fi | |
21165 | ||
21166 | CPPFLAGS="$save_CPPFLAGS" | |
21167 | LDFLAGS="$save_LDFLAGS" | |
21168 | LIBS="$save_LIBS" | |
21169 | ;; | |
21170 | esac | |
21171 | ||
21172 | case $lt_cv_dlopen_self in | |
21173 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
21174 | *) enable_dlopen_self=unknown ;; | |
21175 | esac | |
21176 | ||
21177 | case $lt_cv_dlopen_self_static in | |
21178 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
21179 | *) enable_dlopen_self_static=unknown ;; | |
21180 | esac | |
21181 | fi | |
21182 | ||
21183 | ||
21184 | # The else clause should only fire when bootstrapping the | |
21185 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
21186 | # with your package, and you will get complaints that there are | |
21187 | # no rules to generate ltmain.sh. | |
21188 | if test -f "$ltmain"; then | |
21189 | # Now quote all the things that may contain metacharacters while being | |
21190 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
21191 | # variables and quote the copies for generation of the libtool script. | |
21192 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \ | |
21193 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
21194 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
21195 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
21196 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
21197 | lt_cv_sys_global_symbol_to_c_name_address \ | |
21198 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
21199 | old_postinstall_cmds old_postuninstall_cmds \ | |
21200 | compiler_CXX \ | |
21201 | CC_CXX \ | |
21202 | LD_CXX \ | |
21203 | lt_prog_compiler_wl_CXX \ | |
21204 | lt_prog_compiler_pic_CXX \ | |
21205 | lt_prog_compiler_static_CXX \ | |
21206 | lt_prog_compiler_no_builtin_flag_CXX \ | |
21207 | export_dynamic_flag_spec_CXX \ | |
21208 | thread_safe_flag_spec_CXX \ | |
21209 | whole_archive_flag_spec_CXX \ | |
21210 | old_archive_cmds_CXX \ | |
21211 | old_archive_from_new_cmds_CXX \ | |
21212 | predep_objects_CXX \ | |
21213 | postdep_objects_CXX \ | |
21214 | predeps_CXX \ | |
21215 | postdeps_CXX \ | |
21216 | compiler_lib_search_path_CXX \ | |
21217 | archive_cmds_CXX \ | |
21218 | archive_expsym_cmds_CXX \ | |
21219 | postinstall_cmds_CXX \ | |
21220 | postuninstall_cmds_CXX \ | |
21221 | old_archive_from_expsyms_cmds_CXX \ | |
21222 | allow_undefined_flag_CXX \ | |
21223 | no_undefined_flag_CXX \ | |
21224 | export_symbols_cmds_CXX \ | |
21225 | hardcode_libdir_flag_spec_CXX \ | |
21226 | hardcode_libdir_separator_CXX \ | |
21227 | lt_cv_prog_compiler_c_o_CXX \ | |
21228 | exclude_expsyms_CXX \ | |
21229 | include_expsyms_CXX; do | |
21230 | ||
21231 | case $var in | |
21232 | old_archive_cmds_CXX | \ | |
21233 | old_archive_from_new_cmds_CXX | \ | |
21234 | archive_cmds_CXX | \ | |
21235 | archive_expsym_cmds_CXX | \ | |
21236 | old_archive_from_expsyms_cmds_CXX | \ | |
21237 | export_symbols_cmds_CXX | \ | |
21238 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
21239 | postinstall_cmds | postuninstall_cmds | \ | |
21240 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
21241 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
21242 | # Double-quote double-evaled strings. | |
21243 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
21244 | ;; | |
21245 | *) | |
21246 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
21247 | ;; | |
21248 | esac | |
21249 | done | |
21250 | ||
21251 | case $lt_echo in | |
21252 | *'\$0 --fallback-echo"') | |
21253 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
21254 | ;; | |
21255 | esac | |
21256 | ||
21257 | cfgfile="$ofile" | |
21258 | ||
21259 | cat <<__EOF__ >> "$cfgfile" | |
21260 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
21261 | ||
21262 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
21263 | ||
21264 | # Shell to use when invoking shell scripts. | |
21265 | SHELL=$lt_SHELL | |
21266 | ||
21267 | # Whether or not to build shared libraries. | |
21268 | build_libtool_libs=$enable_shared | |
21269 | ||
21270 | # Whether or not to build static libraries. | |
21271 | build_old_libs=$enable_static | |
21272 | ||
21273 | # Whether or not to add -lc for building shared libraries. | |
21274 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
21275 | ||
21276 | # Whether or not to optimize for fast installation. | |
21277 | fast_install=$enable_fast_install | |
21278 | ||
21279 | # The host system. | |
21280 | host_alias=$host_alias | |
21281 | host=$host | |
21282 | ||
21283 | # An echo program that does not interpret backslashes. | |
21284 | echo=$lt_echo | |
21285 | ||
21286 | # The archiver. | |
21287 | AR=$lt_AR | |
21288 | AR_FLAGS=$lt_AR_FLAGS | |
21289 | ||
21290 | # A C compiler. | |
21291 | LTCC=$lt_LTCC | |
21292 | ||
21293 | # A language-specific compiler. | |
21294 | CC=$lt_compiler_CXX | |
21295 | ||
21296 | # Is the compiler the GNU C compiler? | |
21297 | with_gcc=$GCC_CXX | |
21298 | ||
21299 | # The linker used to build libraries. | |
21300 | LD=$lt_LD_CXX | |
21301 | ||
21302 | # Whether we need hard or soft links. | |
21303 | LN_S=$lt_LN_S | |
21304 | ||
21305 | # A BSD-compatible nm program. | |
21306 | NM=$lt_NM | |
21307 | ||
21308 | # A sed program that does not truncate output. | |
21309 | SED=$lt_SED | |
21310 | ||
21311 | # A symbol stripping program | |
21312 | STRIP=$STRIP | |
21313 | ||
21314 | # Used to examine libraries when file_magic_cmd begins "file" | |
21315 | MAGIC_CMD=$MAGIC_CMD | |
21316 | ||
21317 | # Used on cygwin: DLL creation program. | |
21318 | DLLTOOL="$DLLTOOL" | |
21319 | ||
21320 | # Used on cygwin: object dumper. | |
21321 | OBJDUMP="$OBJDUMP" | |
21322 | ||
21323 | # Used on cygwin: assembler. | |
21324 | AS="$AS" | |
21325 | ||
21326 | # The name of the directory that contains temporary libtool files. | |
21327 | objdir=$objdir | |
21328 | ||
21329 | # How to create reloadable object files. | |
21330 | reload_flag=$lt_reload_flag | |
21331 | reload_cmds=$lt_reload_cmds | |
21332 | ||
21333 | # How to pass a linker flag through the compiler. | |
21334 | wl=$lt_lt_prog_compiler_wl_CXX | |
21335 | ||
21336 | # Object file suffix (normally "o"). | |
21337 | objext="$ac_objext" | |
21338 | ||
21339 | # Old archive suffix (normally "a"). | |
21340 | libext="$libext" | |
21341 | ||
21342 | # Executable file suffix (normally ""). | |
21343 | exeext="$exeext" | |
21344 | ||
21345 | # Additional compiler flags for building library objects. | |
21346 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
21347 | pic_mode=$pic_mode | |
21348 | ||
21349 | # What is the maximum length of a command? | |
21350 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
21351 | ||
21352 | # Does compiler simultaneously support -c and -o options? | |
21353 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
21354 | ||
21355 | # Must we lock files when doing compilation ? | |
21356 | need_locks=$lt_need_locks | |
21357 | ||
21358 | # Do we need the lib prefix for modules? | |
21359 | need_lib_prefix=$need_lib_prefix | |
21360 | ||
21361 | # Do we need a version for libraries? | |
21362 | need_version=$need_version | |
21363 | ||
21364 | # Whether dlopen is supported. | |
21365 | dlopen_support=$enable_dlopen | |
21366 | ||
21367 | # Whether dlopen of programs is supported. | |
21368 | dlopen_self=$enable_dlopen_self | |
21369 | ||
21370 | # Whether dlopen of statically linked programs is supported. | |
21371 | dlopen_self_static=$enable_dlopen_self_static | |
21372 | ||
21373 | # Compiler flag to prevent dynamic linking. | |
21374 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
21375 | ||
21376 | # Compiler flag to turn off builtin functions. | |
21377 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
21378 | ||
21379 | # Compiler flag to allow reflexive dlopens. | |
21380 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
21381 | ||
21382 | # Compiler flag to generate shared objects directly from archives. | |
21383 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
21384 | ||
21385 | # Compiler flag to generate thread-safe objects. | |
21386 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | |
21387 | ||
21388 | # Library versioning type. | |
21389 | version_type=$version_type | |
21390 | ||
21391 | # Format of library name prefix. | |
21392 | libname_spec=$lt_libname_spec | |
21393 | ||
21394 | # List of archive names. First name is the real one, the rest are links. | |
21395 | # The last name is the one that the linker finds with -lNAME. | |
21396 | library_names_spec=$lt_library_names_spec | |
21397 | ||
21398 | # The coded name of the library, if different from the real name. | |
21399 | soname_spec=$lt_soname_spec | |
21400 | ||
21401 | # Commands used to build and install an old-style archive. | |
21402 | RANLIB=$lt_RANLIB | |
21403 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
21404 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
21405 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
21406 | ||
21407 | # Create an old-style archive from a shared archive. | |
21408 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
21409 | ||
21410 | # Create a temporary old-style archive to link instead of a shared archive. | |
21411 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
21412 | ||
21413 | # Commands used to build and install a shared archive. | |
21414 | archive_cmds=$lt_archive_cmds_CXX | |
21415 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
21416 | postinstall_cmds=$lt_postinstall_cmds | |
21417 | postuninstall_cmds=$lt_postuninstall_cmds | |
21418 | ||
21419 | # Commands to strip libraries. | |
21420 | old_striplib=$lt_old_striplib | |
21421 | striplib=$lt_striplib | |
21422 | ||
21423 | # Dependencies to place before the objects being linked to create a | |
21424 | # shared library. | |
21425 | predep_objects=$lt_predep_objects_CXX | |
21426 | ||
21427 | # Dependencies to place after the objects being linked to create a | |
21428 | # shared library. | |
21429 | postdep_objects=$lt_postdep_objects_CXX | |
21430 | ||
21431 | # Dependencies to place before the objects being linked to create a | |
21432 | # shared library. | |
21433 | predeps=$lt_predeps_CXX | |
21434 | ||
21435 | # Dependencies to place after the objects being linked to create a | |
21436 | # shared library. | |
21437 | postdeps=$lt_postdeps_CXX | |
21438 | ||
21439 | # The library search path used internally by the compiler when linking | |
21440 | # a shared library. | |
21441 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
21442 | ||
21443 | # Method to check whether dependent libraries are shared objects. | |
21444 | deplibs_check_method=$lt_deplibs_check_method | |
21445 | ||
21446 | # Command to use when deplibs_check_method == file_magic. | |
21447 | file_magic_cmd=$lt_file_magic_cmd | |
21448 | ||
21449 | # Flag that allows shared libraries with undefined symbols to be built. | |
21450 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
21451 | ||
21452 | # Flag that forces no undefined symbols. | |
21453 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
21454 | ||
21455 | # Commands used to finish a libtool library installation in a directory. | |
21456 | finish_cmds=$lt_finish_cmds | |
21457 | ||
21458 | # Same as above, but a single script fragment to be evaled but not shown. | |
21459 | finish_eval=$lt_finish_eval | |
21460 | ||
21461 | # Take the output of nm and produce a listing of raw symbols and C names. | |
21462 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
21463 | ||
21464 | # Transform the output of nm in a proper C declaration | |
21465 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
21466 | ||
21467 | # Transform the output of nm in a C name address pair | |
21468 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
21469 | ||
21470 | # This is the shared library runtime path variable. | |
21471 | runpath_var=$runpath_var | |
21472 | ||
21473 | # This is the shared library path variable. | |
21474 | shlibpath_var=$shlibpath_var | |
21475 | ||
21476 | # Is shlibpath searched before the hard-coded library search path? | |
21477 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
21478 | ||
21479 | # How to hardcode a shared library path into an executable. | |
21480 | hardcode_action=$hardcode_action_CXX | |
21481 | ||
21482 | # Whether we should hardcode library paths into libraries. | |
21483 | hardcode_into_libs=$hardcode_into_libs | |
21484 | ||
21485 | # Flag to hardcode \$libdir into a binary during linking. | |
21486 | # This must work even if \$libdir does not exist. | |
21487 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
21488 | ||
21489 | # Whether we need a single -rpath flag with a separated argument. | |
21490 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
21491 | ||
21492 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | |
21493 | # resulting binary. | |
21494 | hardcode_direct=$hardcode_direct_CXX | |
21495 | ||
21496 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
21497 | # resulting binary. | |
21498 | hardcode_minus_L=$hardcode_minus_L_CXX | |
21499 | ||
21500 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
21501 | # the resulting binary. | |
21502 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
21503 | ||
21504 | # Variables whose values should be saved in libtool wrapper scripts and | |
21505 | # restored at relink time. | |
21506 | variables_saved_for_relink="$variables_saved_for_relink" | |
21507 | ||
21508 | # Whether libtool must link a program against all its dependency libraries. | |
21509 | link_all_deplibs=$link_all_deplibs_CXX | |
21510 | ||
21511 | # Compile-time system search path for libraries | |
21512 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
21513 | ||
21514 | # Run-time system search path for libraries | |
21515 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
21516 | ||
21517 | # Fix the shell variable \$srcfile for the compiler. | |
21518 | fix_srcfile_path="$fix_srcfile_path_CXX" | |
21519 | ||
21520 | # Set to yes if exported symbols are required. | |
21521 | always_export_symbols=$always_export_symbols_CXX | |
21522 | ||
21523 | # The commands to list exported symbols. | |
21524 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
21525 | ||
21526 | # The commands to extract the exported symbol list from a shared archive. | |
21527 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
21528 | ||
21529 | # Symbols that should not be listed in the preloaded symbols. | |
21530 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
21531 | ||
21532 | # Symbols that must always be exported. | |
21533 | include_expsyms=$lt_include_expsyms_CXX | |
21534 | ||
21535 | # ### END LIBTOOL TAG CONFIG: $tagname | |
21536 | ||
21537 | __EOF__ | |
21538 | ||
21539 | ||
21540 | else | |
21541 | # If there is no Makefile yet, we rely on a make rule to execute | |
21542 | # `config.status --recheck' to rerun these tests and create the | |
21543 | # libtool script then. | |
21544 | test -f Makefile && make "$ltmain" | |
21545 | fi | |
21546 | ||
21547 | ||
21548 | ac_ext=c | |
21549 | ac_cpp='$CPP $CPPFLAGS' | |
21550 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21551 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21552 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21553 | ||
21554 | CC="$lt_save_CC" | |
21555 | ||
21556 | ;; | |
21557 | ||
21558 | GCJ) | |
21559 | ||
21560 | ||
21561 | ||
21562 | # Source file extension for C test sources. | |
21563 | ac_ext=java | |
21564 | ||
21565 | # Object file extension for compiled C test sources. | |
21566 | objext=o | |
21567 | objext_GCJ=$objext | |
21568 | ||
21569 | # Code to be used in simple compile tests | |
21570 | lt_simple_compile_test_code="class foo {}" | |
21571 | ||
21572 | # Code to be used in simple link tests | |
21573 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }' | |
21574 | ||
21575 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
21576 | ||
21577 | # If no C compiler was specified, use CC. | |
21578 | LTCC=${LTCC-"$CC"} | |
21579 | ||
21580 | # Allow CC to be a program name with arguments. | |
21581 | set dummy $CC | |
21582 | compiler="$2" | |
21583 | ||
21584 | ||
21585 | # Allow CC to be a program name with arguments. | |
21586 | lt_save_CC="$CC" | |
21587 | CC=${GCJ-"gcj"} | |
21588 | set dummy $CC | |
21589 | compiler="$2" | |
21590 | compiler_GCJ=$CC | |
21591 | ||
21592 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | |
21593 | archive_cmds_need_lc_GCJ=no | |
21594 | ||
21595 | ||
21596 | lt_prog_compiler_no_builtin_flag_GCJ= | |
21597 | ||
21598 | if test "$GCC" = yes; then | |
21599 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | |
21600 | ||
21601 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
21602 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
21603 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
21604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21605 | else | |
21606 | lt_cv_prog_compiler_rtti_exceptions=no | |
21607 | ac_outfile=conftest.$ac_objext | |
21608 | save_CFLAGS="$CFLAGS" | |
21609 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" | |
21610 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
21611 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
21612 | # The compiler can only warn and ignore the option if not recognized | |
21613 | # So say no if there are warnings | |
21614 | if test -s conftest.err; then | |
21615 | # Append any errors to the config.log. | |
21616 | cat conftest.err 1>&5 | |
21617 | else | |
21618 | lt_cv_prog_compiler_rtti_exceptions=yes | |
21619 | fi | |
21620 | fi | |
21621 | $rm conftest* | |
21622 | CFLAGS="$save_CFLAGS" | |
21623 | ||
21624 | fi | |
21625 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
21626 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
21627 | ||
21628 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
21629 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | |
21630 | else | |
21631 | : | |
21632 | fi | |
21633 | ||
21634 | fi | |
21635 | ||
21636 | lt_prog_compiler_wl_GCJ= | |
21637 | lt_prog_compiler_pic_GCJ= | |
21638 | lt_prog_compiler_static_GCJ= | |
21639 | ||
21640 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
21641 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
21642 | ||
21643 | if test "$GCC" = yes; then | |
21644 | lt_prog_compiler_wl_GCJ='-Wl,' | |
21645 | lt_prog_compiler_static_GCJ='-static' | |
21646 | ||
21647 | case $host_os in | |
21648 | aix*) | |
21649 | # All AIX code is PIC. | |
21650 | if test "$host_cpu" = ia64; then | |
21651 | # AIX 5 now supports IA64 processor | |
21652 | lt_prog_compiler_static_GCJ='-Bstatic' | |
21653 | fi | |
21654 | ;; | |
21655 | ||
21656 | amigaos*) | |
21657 | # FIXME: we need at least 68020 code to build shared libraries, but | |
21658 | # adding the `-m68020' flag to GCC prevents building anything better, | |
21659 | # like `-m68040'. | |
21660 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | |
21661 | ;; | |
21662 | ||
21663 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
21664 | # PIC is the default for these OSes. | |
21665 | ;; | |
21666 | ||
21667 | cygwin* | mingw* | pw32* | os2*) | |
21668 | # This hack is so that the source file can tell whether it is being | |
21669 | # built for inclusion in a dll (and should export symbols for example). | |
21670 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
21671 | ;; | |
21672 | ||
21673 | darwin* | rhapsody*) | |
21674 | # PIC is the default on this platform | |
21675 | # Common symbols not allowed in MH_DYLIB files | |
21676 | lt_prog_compiler_pic_GCJ='-fno-common' | |
21677 | ;; | |
21678 | ||
21679 | msdosdjgpp*) | |
21680 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
21681 | # on systems that don't support them. | |
21682 | lt_prog_compiler_can_build_shared_GCJ=no | |
21683 | enable_shared=no | |
21684 | ;; | |
21685 | ||
21686 | sysv4*MP*) | |
21687 | if test -d /usr/nec; then | |
21688 | lt_prog_compiler_pic_GCJ=-Kconform_pic | |
21689 | fi | |
21690 | ;; | |
21691 | ||
21692 | hpux*) | |
21693 | # PIC is the default for IA64 HP-UX, but not for PA HP-UX. | |
21694 | if test "$host_cpu" != ia64; then | |
21695 | lt_prog_compiler_pic_GCJ='-fPIC' | |
21696 | fi | |
21697 | ;; | |
21698 | ||
21699 | *) | |
21700 | lt_prog_compiler_pic_GCJ='-fPIC' | |
21701 | ;; | |
21702 | esac | |
21703 | else | |
21704 | # PORTME Check for flag to pass linker flags through the system compiler. | |
21705 | case $host_os in | |
21706 | aix*) | |
21707 | lt_prog_compiler_wl_GCJ='-Wl,' | |
21708 | if test "$host_cpu" = ia64; then | |
21709 | # AIX 5 now supports IA64 processor | |
21710 | lt_prog_compiler_static_GCJ='-Bstatic' | |
21711 | else | |
21712 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | |
21713 | fi | |
21714 | ;; | |
21715 | ||
21716 | cygwin* | mingw* | pw32* | os2*) | |
21717 | # This hack is so that the source file can tell whether it is being | |
21718 | # built for inclusion in a dll (and should export symbols for example). | |
21719 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
21720 | ;; | |
21721 | ||
21722 | hpux9* | hpux10* | hpux11*) | |
21723 | lt_prog_compiler_wl_GCJ='-Wl,' | |
21724 | if test "$host_cpu" != ia64; then | |
21725 | lt_prog_compiler_pic_GCJ='+Z' | |
21726 | fi | |
21727 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
21728 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | |
21729 | ;; | |
21730 | ||
21731 | irix5* | irix6* | nonstopux*) | |
21732 | lt_prog_compiler_wl_GCJ='-Wl,' | |
21733 | # PIC (with -KPIC) is the default. | |
21734 | lt_prog_compiler_static_GCJ='-non_shared' | |
21735 | ;; | |
21736 | ||
21737 | newsos6) | |
21738 | lt_prog_compiler_pic_GCJ='-KPIC' | |
21739 | lt_prog_compiler_static_GCJ='-Bstatic' | |
21740 | ;; | |
21741 | ||
21742 | osf3* | osf4* | osf5*) | |
21743 | lt_prog_compiler_wl_GCJ='-Wl,' | |
21744 | # All OSF/1 code is PIC. | |
21745 | lt_prog_compiler_static_GCJ='-non_shared' | |
21746 | ;; | |
21747 | ||
21748 | sco3.2v5*) | |
21749 | lt_prog_compiler_pic_GCJ='-Kpic' | |
21750 | lt_prog_compiler_static_GCJ='-dn' | |
21751 | ;; | |
21752 | ||
21753 | solaris*) | |
21754 | lt_prog_compiler_wl_GCJ='-Wl,' | |
21755 | lt_prog_compiler_pic_GCJ='-KPIC' | |
21756 | lt_prog_compiler_static_GCJ='-Bstatic' | |
21757 | ;; | |
21758 | ||
21759 | sunos4*) | |
21760 | lt_prog_compiler_wl_GCJ='-Qoption ld ' | |
21761 | lt_prog_compiler_pic_GCJ='-PIC' | |
21762 | lt_prog_compiler_static_GCJ='-Bstatic' | |
21763 | ;; | |
21764 | ||
21765 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
21766 | if test "x$host_vendor" = xsni; then | |
21767 | lt_prog_compiler_wl_GCJ='-LD' | |
21768 | else | |
21769 | lt_prog_compiler_wl_GCJ='-Wl,' | |
21770 | fi | |
21771 | lt_prog_compiler_pic_GCJ='-KPIC' | |
21772 | lt_prog_compiler_static_GCJ='-Bstatic' | |
21773 | ;; | |
21774 | ||
21775 | sysv4*MP*) | |
21776 | if test -d /usr/nec ;then | |
21777 | lt_prog_compiler_pic_GCJ='-Kconform_pic' | |
21778 | lt_prog_compiler_static_GCJ='-Bstatic' | |
21779 | fi | |
21780 | ;; | |
21781 | ||
21782 | uts4*) | |
21783 | lt_prog_compiler_pic_GCJ='-pic' | |
21784 | lt_prog_compiler_static_GCJ='-Bstatic' | |
21785 | ;; | |
21786 | ||
21787 | *) | |
21788 | lt_prog_compiler_can_build_shared_GCJ=no | |
21789 | ;; | |
21790 | esac | |
21791 | fi | |
21792 | ||
21793 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | |
21794 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 | |
21795 | ||
21796 | # | |
21797 | # Check to make sure the PIC flag actually works. | |
21798 | # | |
21799 | if test -n "$lt_prog_compiler_pic_GCJ"; then | |
21800 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 | |
21801 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 | |
21802 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | |
21803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21804 | else | |
21805 | lt_prog_compiler_pic_works_GCJ=no | |
21806 | ac_outfile=conftest.$ac_objext | |
21807 | save_CFLAGS="$CFLAGS" | |
21808 | CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ -DPIC" | |
21809 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
21810 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
21811 | # The compiler can only warn and ignore the option if not recognized | |
21812 | # So say no if there are warnings | |
21813 | if test -s conftest.err; then | |
21814 | # Append any errors to the config.log. | |
21815 | cat conftest.err 1>&5 | |
21816 | else | |
21817 | lt_prog_compiler_pic_works_GCJ=yes | |
21818 | fi | |
21819 | fi | |
21820 | $rm conftest* | |
21821 | CFLAGS="$save_CFLAGS" | |
21822 | ||
21823 | fi | |
21824 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 | |
21825 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 | |
21826 | ||
21827 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | |
21828 | case $lt_prog_compiler_pic_GCJ in | |
21829 | "" | " "*) ;; | |
21830 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | |
21831 | esac | |
21832 | else | |
21833 | lt_prog_compiler_pic_GCJ= | |
21834 | lt_prog_compiler_can_build_shared_GCJ=no | |
21835 | fi | |
21836 | ||
21837 | fi | |
21838 | case "$host_os" in | |
21839 | # For platforms which do not support PIC, -DPIC is meaningless: | |
21840 | *djgpp*) | |
21841 | lt_prog_compiler_pic_GCJ= | |
21842 | ;; | |
21843 | *) | |
21844 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ -DPIC" | |
21845 | ;; | |
21846 | esac | |
21847 | ||
21848 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
21849 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
21850 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | |
21851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21852 | else | |
21853 | lt_cv_prog_compiler_c_o_GCJ=no | |
21854 | $rm -r conftest 2>/dev/null | |
21855 | mkdir conftest | |
21856 | cd conftest | |
21857 | mkdir out | |
21858 | save_GCJFLAGS="$GCJFLAGS" | |
21859 | GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext" | |
21860 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
21861 | ||
21862 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | |
21863 | # that will create temporary files in the current directory regardless of | |
21864 | # the output directory. Thus, making CWD read-only will cause this test | |
21865 | # to fail, enabling locking or at least warning the user not to do parallel | |
21866 | # builds. | |
21867 | chmod -w . | |
21868 | ||
21869 | if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext | |
21870 | then | |
21871 | # The compiler can only warn and ignore the option if not recognized | |
21872 | # So say no if there are warnings | |
21873 | if test -s out/conftest.err; then | |
21874 | # Append any errors to the config.log. | |
21875 | cat out/conftest.err 1>&5 | |
21876 | else | |
21877 | lt_cv_prog_compiler_c_o_GCJ=yes | |
21878 | fi | |
21879 | fi | |
21880 | GCJFLAGS="$save_GCJFLAGS" | |
21881 | chmod u+w . | |
21882 | $rm conftest* out/* | |
21883 | rmdir out | |
21884 | cd .. | |
21885 | rmdir conftest | |
21886 | $rm conftest* | |
21887 | ||
21888 | fi | |
21889 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 | |
21890 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 | |
21891 | ||
21892 | ||
21893 | hard_links="nottested" | |
21894 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | |
21895 | # do not overwrite the value of need_locks provided by the user | |
21896 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
21897 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
21898 | hard_links=yes | |
21899 | $rm conftest* | |
21900 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
21901 | touch conftest.a | |
21902 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
21903 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
21904 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
21905 | echo "${ECHO_T}$hard_links" >&6 | |
21906 | if test "$hard_links" = no; then | |
21907 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
21908 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
21909 | need_locks=warn | |
21910 | fi | |
21911 | else | |
21912 | need_locks=no | |
21913 | fi | |
21914 | ||
21915 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
21916 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
21917 | ||
21918 | runpath_var= | |
21919 | allow_undefined_flag_GCJ= | |
21920 | ||
21921 | archive_cmds_GCJ= | |
21922 | archive_cmds_need_lc_GCJ= | |
21923 | archive_expsym_cmds_GCJ= | |
21924 | old_archive_From_new_cmds_GCJ= | |
21925 | old_archive_from_expsyms_cmds_GCJ= | |
21926 | export_dynamic_flag_spec_GCJ= | |
21927 | whole_archive_flag_spec_GCJ= | |
21928 | thread_safe_flag_spec_GCJ= | |
21929 | hardcode_libdir_flag_spec_GCJ= | |
21930 | hardcode_libdir_separator_GCJ= | |
21931 | hardcode_direct_GCJ=no | |
21932 | hardcode_minus_L_GCJ=no | |
21933 | hardcode_shlibpath_var_GCJ=unsupported | |
21934 | link_all_deplibs_GCJ=unknown | |
21935 | always_export_symbols_GCJ=no | |
21936 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
21937 | # include_expsyms should be a list of space-separated symbols to be *always* | |
21938 | # included in the symbol list | |
21939 | include_expsyms_GCJ= | |
21940 | # exclude_expsyms can be an egrep regular expression of symbols to exclude | |
21941 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
21942 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
21943 | # as well as any symbol that contains `d'. | |
21944 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | |
21945 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
21946 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
21947 | # the symbol is explicitly referenced. Since portable code cannot | |
21948 | # rely on this symbol name, it's probably fine to never include it in | |
21949 | # preloaded symbol tables. | |
21950 | extract_expsyms_cmds= | |
21951 | ||
21952 | case $host_os in | |
21953 | cygwin* | mingw* | pw32*) | |
21954 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
21955 | # When not using gcc, we currently assume that we are using | |
21956 | # Microsoft Visual C++. | |
21957 | if test "$GCC" != yes; then | |
21958 | with_gnu_ld=no | |
21959 | fi | |
21960 | ;; | |
21961 | openbsd*) | |
21962 | with_gnu_ld=no | |
21963 | ;; | |
21964 | esac | |
21965 | ||
21966 | ld_shlibs_GCJ=yes | |
21967 | if test "$with_gnu_ld" = yes; then | |
21968 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
21969 | wlarc='${wl}' | |
21970 | ||
21971 | # See if GNU ld supports shared libraries. | |
21972 | case $host_os in | |
21973 | aix3* | aix4* | aix5*) | |
21974 | # On AIX/PPC, the GNU linker is very broken | |
21975 | if test "$host_cpu" != ia64; then | |
21976 | ld_shlibs_GCJ=no | |
21977 | cat <<EOF 1>&2 | |
21978 | ||
21979 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
21980 | *** to be unable to reliably create shared libraries on AIX. | |
21981 | *** Therefore, libtool is disabling shared libraries support. If you | |
21982 | *** really care for shared libraries, you may want to modify your PATH | |
21983 | *** so that a non-GNU linker is found, and then restart. | |
21984 | ||
21985 | EOF | |
21986 | fi | |
21987 | ;; | |
21988 | ||
21989 | amigaos*) | |
21990 | 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)' | |
21991 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
21992 | hardcode_minus_L_GCJ=yes | |
21993 | ||
21994 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
21995 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
21996 | # to version 4, is to share data among multiple programs linked | |
21997 | # with the same dynamic library. Since this doesn't match the | |
21998 | # behavior of shared libraries on other platforms, we can't use | |
21999 | # them. | |
22000 | ld_shlibs_GCJ=no | |
22001 | ;; | |
22002 | ||
22003 | beos*) | |
22004 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
22005 | allow_undefined_flag_GCJ=unsupported | |
22006 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
22007 | # support --undefined. This deserves some investigation. FIXME | |
22008 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
22009 | else | |
22010 | ld_shlibs_GCJ=no | |
22011 | fi | |
22012 | ;; | |
22013 | ||
22014 | cygwin* | mingw* | pw32*) | |
22015 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is | |
22016 | # no search path for DLLs. | |
22017 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
22018 | allow_undefined_flag_GCJ=unsupported | |
22019 | always_export_symbols_GCJ=yes | |
22020 | ||
22021 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ | |
22022 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ | |
22023 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ | |
22024 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ | |
22025 | else $CC -o impgen impgen.c ; fi)~ | |
22026 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' | |
22027 | ||
22028 | old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' | |
22029 | ||
22030 | # cygwin and mingw dlls have different entry points and sets of symbols | |
22031 | # to exclude. | |
22032 | # FIXME: what about values for MSVC? | |
22033 | dll_entry=__cygwin_dll_entry@12 | |
22034 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ | |
22035 | case $host_os in | |
22036 | mingw*) | |
22037 | # mingw values | |
22038 | dll_entry=_DllMainCRTStartup@12 | |
22039 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ | |
22040 | ;; | |
22041 | esac | |
22042 | ||
22043 | # mingw and cygwin differ, and it's simplest to just exclude the union | |
22044 | # of the two symbol sets. | |
22045 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 | |
22046 | ||
22047 | # recent cygwin and mingw systems supply a stub DllMain which the user | |
22048 | # can override, but on older systems we have to supply one (in ltdll.c) | |
22049 | if test "x$lt_cv_need_dllmain" = "xyes"; then | |
22050 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " | |
22051 | 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~ | |
22052 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' | |
22053 | else | |
22054 | ltdll_obj= | |
22055 | ltdll_cmds= | |
22056 | fi | |
22057 | ||
22058 | # Extract the symbol export list from an `--export-all' def file, | |
22059 | # then regenerate the def file from the symbol export list, so that | |
22060 | # the compiled dll only exports the symbol export list. | |
22061 | # Be careful not to strip the DATA tag left by newer dlltools. | |
22062 | export_symbols_cmds_GCJ="$ltdll_cmds"' | |
22063 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ | |
22064 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' | |
22065 | ||
22066 | # If the export-symbols file already is a .def file (1st line | |
22067 | # is EXPORTS), use it as is. | |
22068 | # If DATA tags from a recent dlltool are present, honour them! | |
22069 | archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then | |
22070 | cp $export_symbols $output_objdir/$soname-def; | |
22071 | else | |
22072 | echo EXPORTS > $output_objdir/$soname-def; | |
22073 | _lt_hint=1; | |
22074 | cat $export_symbols | while read symbol; do | |
22075 | set dummy \$symbol; | |
22076 | case \$# in | |
22077 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; | |
22078 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; | |
22079 | esac; | |
22080 | _lt_hint=`expr 1 + \$_lt_hint`; | |
22081 | done; | |
22082 | fi~ | |
22083 | '"$ltdll_cmds"' | |
22084 | $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~ | |
22085 | $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~ | |
22086 | $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~ | |
22087 | $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~ | |
22088 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' | |
22089 | ;; | |
22090 | ||
22091 | netbsd*) | |
22092 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
22093 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
22094 | wlarc= | |
22095 | else | |
22096 | archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
22097 | archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
22098 | fi | |
22099 | ;; | |
22100 | ||
22101 | solaris* | sysv5*) | |
22102 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then | |
22103 | ld_shlibs_GCJ=no | |
22104 | cat <<EOF 1>&2 | |
22105 | ||
22106 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
22107 | *** create shared libraries on Solaris systems. Therefore, libtool | |
22108 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
22109 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
22110 | *** your PATH or compiler configuration so that the native linker is | |
22111 | *** used, and then restart. | |
22112 | ||
22113 | EOF | |
22114 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
22115 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
22116 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
22117 | else | |
22118 | ld_shlibs_GCJ=no | |
22119 | fi | |
22120 | ;; | |
22121 | ||
22122 | sunos4*) | |
22123 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
22124 | wlarc= | |
22125 | hardcode_direct_GCJ=yes | |
22126 | hardcode_shlibpath_var_GCJ=no | |
22127 | ;; | |
22128 | ||
22129 | *) | |
22130 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
22131 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
22132 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
22133 | else | |
22134 | ld_shlibs_GCJ=no | |
22135 | fi | |
22136 | ;; | |
22137 | esac | |
22138 | ||
22139 | if test "$ld_shlibs_GCJ" = yes; then | |
22140 | runpath_var=LD_RUN_PATH | |
22141 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | |
22142 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | |
22143 | case $host_os in | |
22144 | cygwin* | mingw* | pw32*) | |
22145 | # dlltool doesn't understand --whole-archive et. al. | |
22146 | whole_archive_flag_spec_GCJ= | |
22147 | ;; | |
22148 | *) | |
22149 | # ancient GNU ld didn't support --whole-archive et. al. | |
22150 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then | |
22151 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
22152 | else | |
22153 | whole_archive_flag_spec_GCJ= | |
22154 | fi | |
22155 | ;; | |
22156 | esac | |
22157 | fi | |
22158 | else | |
22159 | # PORTME fill in a description of your system's linker (not GNU ld) | |
22160 | case $host_os in | |
22161 | aix3*) | |
22162 | allow_undefined_flag_GCJ=unsupported | |
22163 | always_export_symbols_GCJ=yes | |
22164 | 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' | |
22165 | # Note: this linker hardcodes the directories in LIBPATH if there | |
22166 | # are no directories specified by -L. | |
22167 | hardcode_minus_L_GCJ=yes | |
22168 | if test "$GCC" = yes && test -z "$link_static_flag"; then | |
22169 | # Neither direct hardcoding nor static linking is supported with a | |
22170 | # broken collect2. | |
22171 | hardcode_direct_GCJ=unsupported | |
22172 | fi | |
22173 | ;; | |
22174 | ||
22175 | aix4* | aix5*) | |
22176 | if test "$host_cpu" = ia64; then | |
22177 | # On IA64, the linker does run time linking by default, so we don't | |
22178 | # have to do anything special. | |
22179 | aix_use_runtimelinking=no | |
22180 | exp_sym_flag='-Bexport' | |
22181 | no_entry_flag="" | |
22182 | else | |
22183 | # If we're using GNU nm, then we don't want the "-C" option. | |
22184 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
22185 | if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then | |
22186 | 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' | |
22187 | else | |
22188 | 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' | |
22189 | fi | |
22190 | ||
22191 | # KDE requires run time linking. Make it the default. | |
22192 | aix_use_runtimelinking=yes | |
22193 | exp_sym_flag='-bexport' | |
22194 | no_entry_flag='-bnoentry' | |
22195 | fi | |
22196 | ||
22197 | # When large executables or shared objects are built, AIX ld can | |
22198 | # have problems creating the table of contents. If linking a library | |
22199 | # or program results in "error TOC overflow" add -mminimal-toc to | |
22200 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
22201 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
22202 | ||
22203 | archive_cmds_GCJ='' | |
22204 | hardcode_direct_GCJ=yes | |
22205 | hardcode_libdir_separator_GCJ=':' | |
22206 | link_all_deplibs_GCJ=yes | |
22207 | ||
22208 | if test "$GCC" = yes; then | |
22209 | case $host_os in aix4.012|aix4.012.*) | |
22210 | # We only want to do this on AIX 4.2 and lower, the check | |
22211 | # below for broken collect2 doesn't work under 4.3+ | |
22212 | collect2name=`${CC} -print-prog-name=collect2` | |
22213 | if test -f "$collect2name" && \ | |
22214 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
22215 | then | |
22216 | # We have reworked collect2 | |
22217 | hardcode_direct_GCJ=yes | |
22218 | else | |
22219 | # We have old collect2 | |
22220 | hardcode_direct_GCJ=unsupported | |
22221 | # It fails to find uninstalled libraries when the uninstalled | |
22222 | # path is not listed in the libpath. Setting hardcode_minus_L | |
22223 | # to unsupported forces relinking | |
22224 | hardcode_minus_L_GCJ=yes | |
22225 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
22226 | hardcode_libdir_separator_GCJ= | |
22227 | fi | |
22228 | esac | |
22229 | shared_flag='-shared' | |
22230 | else | |
22231 | # not using gcc | |
22232 | if test "$host_cpu" = ia64; then | |
22233 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
22234 | # chokes on -Wl,-G. The following line is correct: | |
22235 | shared_flag='-G' | |
22236 | else | |
22237 | if test "$aix_use_runtimelinking" = yes; then | |
22238 | shared_flag='-qmkshrobj ${wl}-G' | |
22239 | else | |
22240 | shared_flag='-qmkshrobj' | |
22241 | fi | |
22242 | fi | |
22243 | fi | |
22244 | ||
22245 | # Let the compiler handle the export list. | |
22246 | always_export_symbols_GCJ=no | |
22247 | if test "$aix_use_runtimelinking" = yes; then | |
22248 | # Warning - without using the other runtime loading flags (-brtl), | |
22249 | # -berok will link without error, but may produce a broken library. | |
22250 | allow_undefined_flag_GCJ='-berok' | |
22251 | # Determine the default libpath from the value encoded in an empty executable. | |
22252 | cat >conftest.$ac_ext <<_ACEOF | |
22253 | #line $LINENO "configure" | |
22254 | #include "confdefs.h" | |
22255 | ||
22256 | #ifdef F77_DUMMY_MAIN | |
22257 | # ifdef __cplusplus | |
22258 | extern "C" | |
22259 | # endif | |
22260 | int F77_DUMMY_MAIN() { return 1; } | |
22261 | #endif | |
22262 | int | |
22263 | main () | |
22264 | { | |
22265 | ||
22266 | ; | |
22267 | return 0; | |
22268 | } | |
22269 | _ACEOF | |
22270 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22272 | (eval $ac_link) 2>&5 | |
22273 | ac_status=$? | |
22274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22275 | (exit $ac_status); } && | |
22276 | { ac_try='test -s conftest$ac_exeext' | |
22277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22278 | (eval $ac_try) 2>&5 | |
22279 | ac_status=$? | |
22280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22281 | (exit $ac_status); }; }; then | |
22282 | ||
22283 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
22284 | }'` | |
22285 | # Check for a 64-bit object if we didn't find anything. | |
22286 | 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; } | |
22287 | }'`; fi | |
22288 | else | |
22289 | echo "$as_me: failed program was:" >&5 | |
22290 | cat conftest.$ac_ext >&5 | |
22291 | fi | |
22292 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22293 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
22294 | ||
22295 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
22296 | 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" | |
22297 | 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" | |
22298 | else | |
22299 | if test "$host_cpu" = ia64; then | |
22300 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | |
22301 | allow_undefined_flag_GCJ="-z nodefs" | |
22302 | 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" | |
22303 | else | |
22304 | # Determine the default libpath from the value encoded in an empty executable. | |
22305 | cat >conftest.$ac_ext <<_ACEOF | |
22306 | #line $LINENO "configure" | |
22307 | #include "confdefs.h" | |
22308 | ||
22309 | #ifdef F77_DUMMY_MAIN | |
22310 | # ifdef __cplusplus | |
22311 | extern "C" | |
22312 | # endif | |
22313 | int F77_DUMMY_MAIN() { return 1; } | |
22314 | #endif | |
22315 | int | |
22316 | main () | |
22317 | { | |
22318 | ||
22319 | ; | |
22320 | return 0; | |
22321 | } | |
22322 | _ACEOF | |
22323 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22324 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22325 | (eval $ac_link) 2>&5 | |
22326 | ac_status=$? | |
22327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22328 | (exit $ac_status); } && | |
22329 | { ac_try='test -s conftest$ac_exeext' | |
22330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22331 | (eval $ac_try) 2>&5 | |
22332 | ac_status=$? | |
22333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22334 | (exit $ac_status); }; }; then | |
22335 | ||
22336 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
22337 | }'` | |
22338 | # Check for a 64-bit object if we didn't find anything. | |
22339 | 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; } | |
22340 | }'`; fi | |
22341 | else | |
22342 | echo "$as_me: failed program was:" >&5 | |
22343 | cat conftest.$ac_ext >&5 | |
22344 | fi | |
22345 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22346 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
22347 | ||
22348 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
22349 | # Warning - without using the other run time loading flags, | |
22350 | # -berok will link without error, but may produce a broken library. | |
22351 | no_undefined_flag_GCJ=' ${wl}-bernotok' | |
22352 | allow_undefined_flag_GCJ=' ${wl}-berok' | |
22353 | # -bexpall does not export symbols beginning with underscore (_) | |
22354 | always_export_symbols_GCJ=yes | |
22355 | # Exported symbols can be pulled into shared objects from archives | |
22356 | whole_archive_flag_spec_GCJ=' ' | |
22357 | archive_cmds_need_lc_GCJ=yes | |
22358 | # This is similar to how AIX traditionally builds it's shared libraries. | |
22359 | 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' | |
22360 | fi | |
22361 | fi | |
22362 | ;; | |
22363 | ||
22364 | amigaos*) | |
22365 | 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)' | |
22366 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
22367 | hardcode_minus_L_GCJ=yes | |
22368 | # see comment about different semantics on the GNU ld section | |
22369 | ld_shlibs_GCJ=no | |
22370 | ;; | |
22371 | ||
22372 | bsdi4*) | |
22373 | export_dynamic_flag_spec_GCJ=-rdynamic | |
22374 | ;; | |
22375 | ||
22376 | cygwin* | mingw* | pw32*) | |
22377 | # When not using gcc, we currently assume that we are using | |
22378 | # Microsoft Visual C++. | |
22379 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
22380 | # no search path for DLLs. | |
22381 | hardcode_libdir_flag_spec_GCJ=' ' | |
22382 | allow_undefined_flag_GCJ=unsupported | |
22383 | # Tell ltmain to make .lib files, not .a files. | |
22384 | libext=lib | |
22385 | # FIXME: Setting linknames here is a bad hack. | |
22386 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
22387 | # The linker will automatically build a .lib file if we build a DLL. | |
22388 | old_archive_From_new_cmds_GCJ='true' | |
22389 | # FIXME: Should let the user specify the lib program. | |
22390 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
22391 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
22392 | ;; | |
22393 | ||
22394 | darwin* | rhapsody*) | |
22395 | case "$host_os" in | |
22396 | rhapsody* | darwin1.[012]) | |
22397 | allow_undefined_flag_GCJ='-undefined suppress' | |
22398 | ;; | |
22399 | *) # Darwin 1.3 on | |
22400 | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' | |
22401 | ;; | |
22402 | esac | |
22403 | ||
22404 | # FIXME: Relying on posixy $() will cause problems for | |
22405 | # cross-compilation, but unfortunately the echo tests do not | |
22406 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles | |
22407 | # `"' quotes if we put them in here... so don't! | |
22408 | 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' | |
22409 | # We need to add '_' to the symbols in $export_symbols first | |
22410 | #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols' | |
22411 | hardcode_direct_GCJ=yes | |
22412 | hardcode_shlibpath_var_GCJ=no | |
22413 | whole_archive_flag_spec_GCJ='-all_load $convenience' | |
22414 | ;; | |
22415 | ||
22416 | dgux*) | |
22417 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
22418 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
22419 | hardcode_shlibpath_var_GCJ=no | |
22420 | ;; | |
22421 | ||
22422 | freebsd1*) | |
22423 | ld_shlibs_GCJ=no | |
22424 | ;; | |
22425 | ||
22426 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
22427 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
22428 | # does not break anything, and helps significantly (at the cost of a little | |
22429 | # extra space). | |
22430 | freebsd2.2*) | |
22431 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
22432 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
22433 | hardcode_direct_GCJ=yes | |
22434 | hardcode_shlibpath_var_GCJ=no | |
22435 | ;; | |
22436 | ||
22437 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
22438 | freebsd2*) | |
22439 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
22440 | hardcode_direct_GCJ=yes | |
22441 | hardcode_minus_L_GCJ=yes | |
22442 | hardcode_shlibpath_var_GCJ=no | |
22443 | ;; | |
22444 | ||
22445 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
22446 | freebsd*) | |
22447 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
22448 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
22449 | hardcode_direct_GCJ=yes | |
22450 | hardcode_shlibpath_var_GCJ=no | |
22451 | ;; | |
22452 | ||
22453 | hpux9* | hpux10* | hpux11*) | |
22454 | if test "$GCC" = yes; then | |
22455 | case $host_os in | |
22456 | hpux9*) | |
22457 | 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' | |
22458 | ;; | |
22459 | *) | |
22460 | if test "$host_cpu" = ia64; then | |
22461 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
22462 | else | |
22463 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
22464 | fi | |
22465 | ;; | |
22466 | esac | |
22467 | else | |
22468 | case $host_os in | |
22469 | hpux9*) | |
22470 | 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' | |
22471 | ;; | |
22472 | *) | |
22473 | if test "$host_cpu" = ia64; then | |
22474 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | |
22475 | else | |
22476 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
22477 | fi | |
22478 | ;; | |
22479 | esac | |
22480 | fi | |
22481 | if test "$host_cpu" = ia64; then | |
22482 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
22483 | hardcode_direct_GCJ=no | |
22484 | hardcode_shlibpath_var_GCJ=no | |
22485 | else | |
22486 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
22487 | hardcode_libdir_separator_GCJ=: | |
22488 | hardcode_direct_GCJ=yes | |
22489 | fi | |
22490 | # hardcode_minus_L: Not really in the search PATH, | |
22491 | # but as the default location of the library. | |
22492 | hardcode_minus_L_GCJ=yes | |
22493 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
22494 | ;; | |
22495 | ||
22496 | irix5* | irix6* | nonstopux*) | |
22497 | if test "$GCC" = yes; then | |
22498 | 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' | |
22499 | else | |
22500 | 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' | |
22501 | fi | |
22502 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
22503 | hardcode_libdir_separator_GCJ=: | |
22504 | link_all_deplibs_GCJ=yes | |
22505 | ;; | |
22506 | ||
22507 | netbsd*) | |
22508 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
22509 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
22510 | else | |
22511 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
22512 | fi | |
22513 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
22514 | hardcode_direct_GCJ=yes | |
22515 | hardcode_shlibpath_var_GCJ=no | |
22516 | ;; | |
22517 | ||
22518 | newsos6) | |
22519 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
22520 | hardcode_direct_GCJ=yes | |
22521 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
22522 | hardcode_libdir_separator_GCJ=: | |
22523 | hardcode_shlibpath_var_GCJ=no | |
22524 | ;; | |
22525 | ||
22526 | openbsd*) | |
22527 | hardcode_direct_GCJ=yes | |
22528 | hardcode_shlibpath_var_GCJ=no | |
22529 | ||
22530 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
22531 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
22532 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
22533 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
22534 | else | |
22535 | case $host_os in | |
22536 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
22537 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
22538 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
22539 | ;; | |
22540 | *) | |
22541 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
22542 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
22543 | ;; | |
22544 | esac | |
22545 | fi | |
22546 | ;; | |
22547 | ||
22548 | os2*) | |
22549 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
22550 | hardcode_minus_L_GCJ=yes | |
22551 | allow_undefined_flag_GCJ=unsupported | |
22552 | 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' | |
22553 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
22554 | ;; | |
22555 | ||
22556 | osf3*) | |
22557 | if test "$GCC" = yes; then | |
22558 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
22559 | 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' | |
22560 | else | |
22561 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
22562 | 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' | |
22563 | fi | |
22564 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
22565 | hardcode_libdir_separator_GCJ=: | |
22566 | ;; | |
22567 | ||
22568 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
22569 | if test "$GCC" = yes; then | |
22570 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
22571 | 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' | |
22572 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
22573 | else | |
22574 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
22575 | 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' | |
22576 | 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~ | |
22577 | $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' | |
22578 | ||
22579 | # Both c and cxx compiler support -rpath directly | |
22580 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | |
22581 | fi | |
22582 | hardcode_libdir_separator_GCJ=: | |
22583 | ;; | |
22584 | ||
22585 | sco3.2v5*) | |
22586 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
22587 | hardcode_shlibpath_var_GCJ=no | |
22588 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' | |
22589 | runpath_var=LD_RUN_PATH | |
22590 | hardcode_runpath_var=yes | |
22591 | ;; | |
22592 | ||
22593 | solaris*) | |
22594 | no_undefined_flag_GCJ=' -z text' | |
22595 | if test "$GCC" = yes; then | |
22596 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
22597 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
22598 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
22599 | else | |
22600 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
22601 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
22602 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
22603 | fi | |
22604 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
22605 | hardcode_shlibpath_var_GCJ=no | |
22606 | case $host_os in | |
22607 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
22608 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | |
22609 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | |
22610 | esac | |
22611 | link_all_deplibs_GCJ=yes | |
22612 | ;; | |
22613 | ||
22614 | sunos4*) | |
22615 | if test "x$host_vendor" = xsequent; then | |
22616 | # Use $CC to link under sequent, because it throws in some extra .o | |
22617 | # files that make .init and .fini sections work. | |
22618 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
22619 | else | |
22620 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
22621 | fi | |
22622 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
22623 | hardcode_direct_GCJ=yes | |
22624 | hardcode_minus_L_GCJ=yes | |
22625 | hardcode_shlibpath_var_GCJ=no | |
22626 | ;; | |
22627 | ||
22628 | sysv4) | |
22629 | if test "x$host_vendor" = xsni; then | |
22630 | archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
22631 | hardcode_direct_GCJ=yes # is this really true??? | |
22632 | else | |
22633 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
22634 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | |
22635 | fi | |
22636 | runpath_var='LD_RUN_PATH' | |
22637 | hardcode_shlibpath_var_GCJ=no | |
22638 | ;; | |
22639 | ||
22640 | sysv4.3*) | |
22641 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
22642 | hardcode_shlibpath_var_GCJ=no | |
22643 | export_dynamic_flag_spec_GCJ='-Bexport' | |
22644 | ;; | |
22645 | ||
22646 | sysv4*MP*) | |
22647 | if test -d /usr/nec; then | |
22648 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
22649 | hardcode_shlibpath_var_GCJ=no | |
22650 | runpath_var=LD_RUN_PATH | |
22651 | hardcode_runpath_var=yes | |
22652 | ld_shlibs_GCJ=yes | |
22653 | fi | |
22654 | ;; | |
22655 | ||
22656 | sysv4.2uw2*) | |
22657 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
22658 | hardcode_direct_GCJ=yes | |
22659 | hardcode_minus_L_GCJ=no | |
22660 | hardcode_shlibpath_var_GCJ=no | |
22661 | hardcode_runpath_var=yes | |
22662 | runpath_var=LD_RUN_PATH | |
22663 | ;; | |
22664 | ||
22665 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
22666 | no_undefined_flag_GCJ='${wl}-z ${wl}text' | |
22667 | if test "$GCC" = yes; then | |
22668 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
22669 | else | |
22670 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
22671 | fi | |
22672 | runpath_var='LD_RUN_PATH' | |
22673 | hardcode_shlibpath_var_GCJ=no | |
22674 | ;; | |
22675 | ||
22676 | sysv5*) | |
22677 | no_undefined_flag_GCJ=' -z text' | |
22678 | # $CC -shared without GNU ld will not create a library from C++ | |
22679 | # object files and a static libstdc++, better avoid it by now | |
22680 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
22681 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
22682 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
22683 | hardcode_libdir_flag_spec_GCJ= | |
22684 | hardcode_shlibpath_var_GCJ=no | |
22685 | runpath_var='LD_RUN_PATH' | |
22686 | ;; | |
22687 | ||
22688 | uts4*) | |
22689 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
22690 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
22691 | hardcode_shlibpath_var_GCJ=no | |
22692 | ;; | |
22693 | ||
22694 | *) | |
22695 | ld_shlibs_GCJ=no | |
22696 | ;; | |
22697 | esac | |
22698 | fi | |
22699 | ||
22700 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | |
22701 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 | |
22702 | test "$ld_shlibs_GCJ" = no && can_build_shared=no | |
22703 | ||
22704 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
22705 | if test "$GCC" = yes; then | |
22706 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
22707 | fi | |
22708 | ||
22709 | # | |
22710 | # Do we need to explicitly link libc? | |
22711 | # | |
22712 | archive_cmds_need_lc_GCJ=yes | |
22713 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
22714 | case $archive_cmds_GCJ in | |
22715 | *'~'*) | |
22716 | # FIXME: we may have to deal with multi-command sequences. | |
22717 | ;; | |
22718 | '$CC '*) | |
22719 | # Test whether the compiler implicitly links with -lc since on some | |
22720 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
22721 | # to ld, don't add -lc before -lgcc. | |
22722 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
22723 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
22724 | $rm conftest* | |
22725 | echo 'static int dummy;' > conftest.$ac_ext | |
22726 | ||
22727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22728 | (eval $ac_compile) 2>&5 | |
22729 | ac_status=$? | |
22730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22731 | (exit $ac_status); } 2>conftest.err; then | |
22732 | soname=conftest | |
22733 | lib=conftest | |
22734 | libobjs=conftest.$ac_objext | |
22735 | deplibs= | |
22736 | wl=$lt_prog_compiler_wl_GCJ | |
22737 | compiler_flags=-v | |
22738 | linker_flags=-v | |
22739 | verstring= | |
22740 | output_objdir=. | |
22741 | libname=conftest | |
22742 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | |
22743 | allow_undefined_flag_GCJ= | |
22744 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
22745 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
22746 | ac_status=$? | |
22747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22748 | (exit $ac_status); } | |
22749 | then | |
22750 | archive_cmds_need_lc_GCJ=no | |
22751 | else | |
22752 | archive_cmds_need_lc_GCJ=yes | |
22753 | fi | |
22754 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | |
22755 | else | |
22756 | cat conftest.err 1>&5 | |
22757 | fi | |
22758 | $rm conftest* | |
22759 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 | |
22760 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 | |
22761 | ;; | |
22762 | esac | |
22763 | fi | |
22764 | ||
22765 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
22766 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
22767 | hardcode_action_GCJ= | |
22768 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | |
22769 | test -n "$runpath_var GCJ"; then | |
22770 | ||
22771 | # We can hardcode non-existant directories. | |
22772 | if test "$hardcode_direct_GCJ" != no && | |
22773 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
22774 | # have to relink, otherwise we might link with an installed library | |
22775 | # when we should be linking with a yet-to-be-installed one | |
22776 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | |
22777 | test "$hardcode_minus_L_GCJ" != no; then | |
22778 | # Linking always hardcodes the temporary library directory. | |
22779 | hardcode_action_GCJ=relink | |
22780 | else | |
22781 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
22782 | hardcode_action_GCJ=immediate | |
22783 | fi | |
22784 | else | |
22785 | # We cannot hardcode anything, or else we can only hardcode existing | |
22786 | # directories. | |
22787 | hardcode_action_GCJ=unsupported | |
22788 | fi | |
22789 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | |
22790 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 | |
22791 | ||
22792 | if test "$hardcode_action_GCJ" = relink; then | |
22793 | # Fast installation is not supported | |
22794 | enable_fast_install=no | |
22795 | elif test "$shlibpath_overrides_runpath" = yes || | |
22796 | test "$enable_shared" = no; then | |
22797 | # Fast installation is not necessary | |
22798 | enable_fast_install=needless | |
22799 | fi | |
22800 | ||
22801 | striplib= | |
22802 | old_striplib= | |
22803 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
22804 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
22805 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
22806 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
22807 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
22808 | echo "$as_me:$LINENO: result: yes" >&5 | |
22809 | echo "${ECHO_T}yes" >&6 | |
22810 | else | |
22811 | echo "$as_me:$LINENO: result: no" >&5 | |
22812 | echo "${ECHO_T}no" >&6 | |
22813 | fi | |
22814 | ||
22815 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
22816 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
22817 | library_names_spec= | |
22818 | libname_spec='lib$name' | |
22819 | soname_spec= | |
22820 | postinstall_cmds= | |
22821 | postuninstall_cmds= | |
22822 | finish_cmds= | |
22823 | finish_eval= | |
22824 | shlibpath_var= | |
22825 | shlibpath_overrides_runpath=unknown | |
22826 | version_type=none | |
22827 | dynamic_linker="$host_os ld.so" | |
22828 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
22829 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
22830 | need_lib_prefix=unknown | |
22831 | hardcode_into_libs=no | |
22832 | ||
22833 | # when you set need_version to no, make sure it does not cause -set_version | |
22834 | # flags to be left without arguments | |
22835 | need_version=unknown | |
22836 | ||
22837 | case $host_os in | |
22838 | aix3*) | |
22839 | version_type=linux | |
22840 | library_names_spec='${libname}${release}.so$versuffix $libname.a' | |
22841 | shlibpath_var=LIBPATH | |
22842 | ||
22843 | # AIX 3 has no versioning support, so we append a major version to the name. | |
22844 | soname_spec='${libname}${release}.so$major' | |
22845 | ;; | |
22846 | ||
22847 | aix4* | aix5*) | |
22848 | version_type=linux | |
22849 | if test "$host_cpu" = ia64; then | |
22850 | # AIX 5 supports IA64 | |
22851 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' | |
22852 | shlibpath_var=LD_LIBRARY_PATH | |
22853 | else | |
22854 | # With GCC up to 2.95.x, collect2 would create an import file | |
22855 | # for dependence libraries. The import file would start with | |
22856 | # the line `#! .'. This would cause the generated library to | |
22857 | # depend on `.', always an invalid library. This was fixed in | |
22858 | # development snapshots of GCC prior to 3.0. | |
22859 | case $host_os in | |
22860 | aix4 | aix4.[01] | aix4.[01].*) | |
22861 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
22862 | echo ' yes ' | |
22863 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
22864 | : | |
22865 | else | |
22866 | can_build_shared=no | |
22867 | fi | |
22868 | ;; | |
22869 | esac | |
22870 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
22871 | # soname into executable. Probably we can add versioning support to | |
22872 | # collect2, so additional links can be useful in future. | |
22873 | if test "$aix_use_runtimelinking" = yes; then | |
22874 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
22875 | # instead of lib<name>.a to let people know that these are not | |
22876 | # typical AIX shared libraries. | |
22877 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
22878 | else | |
22879 | # We preserve .a as extension for shared libraries through AIX4.2 | |
22880 | # and later when we are not doing run time linking. | |
22881 | library_names_spec='${libname}${release}.a $libname.a' | |
22882 | soname_spec='${libname}${release}.so$major' | |
22883 | fi | |
22884 | shlibpath_var=LIBPATH | |
22885 | fi | |
22886 | ;; | |
22887 | ||
22888 | amigaos*) | |
22889 | library_names_spec='$libname.ixlibrary $libname.a' | |
22890 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
22891 | 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' | |
22892 | ;; | |
22893 | ||
22894 | beos*) | |
22895 | library_names_spec='${libname}.so' | |
22896 | dynamic_linker="$host_os ld.so" | |
22897 | shlibpath_var=LIBRARY_PATH | |
22898 | ;; | |
22899 | ||
22900 | bsdi4*) | |
22901 | version_type=linux | |
22902 | need_version=no | |
22903 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
22904 | soname_spec='${libname}${release}.so$major' | |
22905 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
22906 | shlibpath_var=LD_LIBRARY_PATH | |
22907 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
22908 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
22909 | # the default ld.so.conf also contains /usr/contrib/lib and | |
22910 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
22911 | # libtool to hard-code these into programs | |
22912 | ;; | |
22913 | ||
22914 | cygwin* | mingw* | pw32*) | |
22915 | version_type=windows | |
22916 | need_version=no | |
22917 | need_lib_prefix=no | |
22918 | case $GCC,$host_os in | |
22919 | yes,cygwin*) | |
22920 | library_names_spec='$libname.dll.a' | |
22921 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | |
22922 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
22923 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ | |
22924 | dldir=$destdir/`dirname \$dlpath`~ | |
22925 | test -d \$dldir || mkdir -p \$dldir~ | |
22926 | $install_prog .libs/$dlname \$dldir/$dlname' | |
22927 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
22928 | dlpath=$dir/\$dldll~ | |
22929 | $rm \$dlpath' | |
22930 | ;; | |
22931 | yes,mingw*) | |
22932 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
22933 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"` | |
22934 | if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then | |
22935 | # It is most probably a Windows format PATH printed by | |
22936 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
22937 | # path with ; separators, and with drive letters. We can handle the | |
22938 | # drive letters (cygwin fileutils understands them), so leave them, | |
22939 | # especially as we might pass files found there to a mingw objdump, | |
22940 | # which wouldn't understand a cygwinified path. Ahh. | |
22941 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` | |
22942 | else | |
22943 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` | |
22944 | fi | |
22945 | ;; | |
22946 | yes,pw32*) | |
22947 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' | |
22948 | ;; | |
22949 | *) | |
22950 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' | |
22951 | ;; | |
22952 | esac | |
22953 | dynamic_linker='Win32 ld.exe' | |
22954 | # FIXME: first we should search . and the directory the executable is in | |
22955 | shlibpath_var=PATH | |
22956 | ;; | |
22957 | ||
22958 | darwin* | rhapsody*) | |
22959 | dynamic_linker="$host_os dyld" | |
22960 | version_type=darwin | |
22961 | need_lib_prefix=no | |
22962 | need_version=no | |
22963 | # FIXME: Relying on posixy $() will cause problems for | |
22964 | # cross-compilation, but unfortunately the echo tests do not | |
22965 | # yet detect zsh echo's removal of \ escapes. | |
22966 | 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)' | |
22967 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' | |
22968 | shlibpath_overrides_runpath=yes | |
22969 | shlibpath_var=DYLD_LIBRARY_PATH | |
22970 | ;; | |
22971 | ||
22972 | dgux*) | |
22973 | version_type=linux | |
22974 | need_lib_prefix=no | |
22975 | need_version=no | |
22976 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
22977 | soname_spec='${libname}${release}.so$major' | |
22978 | shlibpath_var=LD_LIBRARY_PATH | |
22979 | ;; | |
22980 | ||
22981 | freebsd1*) | |
22982 | dynamic_linker=no | |
22983 | ;; | |
22984 | ||
22985 | freebsd*) | |
22986 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
22987 | version_type=freebsd-$objformat | |
22988 | case $version_type in | |
22989 | freebsd-elf*) | |
22990 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
22991 | need_version=no | |
22992 | need_lib_prefix=no | |
22993 | ;; | |
22994 | freebsd-*) | |
22995 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' | |
22996 | need_version=yes | |
22997 | ;; | |
22998 | esac | |
22999 | shlibpath_var=LD_LIBRARY_PATH | |
23000 | case $host_os in | |
23001 | freebsd2*) | |
23002 | shlibpath_overrides_runpath=yes | |
23003 | ;; | |
23004 | freebsd3.01* | freebsdelf3.01*) | |
23005 | shlibpath_overrides_runpath=yes | |
23006 | hardcode_into_libs=yes | |
23007 | ;; | |
23008 | *) # from 3.2 on | |
23009 | shlibpath_overrides_runpath=no | |
23010 | hardcode_into_libs=yes | |
23011 | ;; | |
23012 | esac | |
23013 | ;; | |
23014 | ||
23015 | gnu*) | |
23016 | version_type=linux | |
23017 | need_lib_prefix=no | |
23018 | need_version=no | |
23019 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' | |
23020 | soname_spec='${libname}${release}.so$major' | |
23021 | shlibpath_var=LD_LIBRARY_PATH | |
23022 | hardcode_into_libs=yes | |
23023 | ;; | |
23024 | ||
23025 | hpux9* | hpux10* | hpux11*) | |
23026 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
23027 | # link against other versions. | |
23028 | version_type=sunos | |
23029 | need_lib_prefix=no | |
23030 | need_version=no | |
23031 | if test "$host_cpu" = ia64; then | |
23032 | hardcode_into_libs=yes | |
23033 | dynamic_linker="$host_os dld.so" | |
23034 | shlibpath_var=LD_LIBRARY_PATH | |
23035 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
23036 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
23037 | soname_spec='${libname}${release}.so$major' | |
23038 | if test "X$HPUX_IA64_MODE" = X32; then | |
23039 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
23040 | else | |
23041 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
23042 | fi | |
23043 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
23044 | else | |
23045 | dynamic_linker="$host_os dld.sl" | |
23046 | shlibpath_var=SHLIB_PATH | |
23047 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
23048 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' | |
23049 | soname_spec='${libname}${release}.sl$major' | |
23050 | fi | |
23051 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
23052 | postinstall_cmds='chmod 555 $lib' | |
23053 | ;; | |
23054 | ||
23055 | irix5* | irix6* | nonstopux*) | |
23056 | case $host_os in | |
23057 | nonstopux*) version_type=nonstopux ;; | |
23058 | *) version_type=irix ;; | |
23059 | esac | |
23060 | need_lib_prefix=no | |
23061 | need_version=no | |
23062 | soname_spec='${libname}${release}.so$major' | |
23063 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' | |
23064 | case $host_os in | |
23065 | irix5* | nonstopux*) | |
23066 | libsuff= shlibsuff= | |
23067 | ;; | |
23068 | *) | |
23069 | case $LD in # libtool.m4 will add one of these switches to LD | |
23070 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; | |
23071 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; | |
23072 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
23073 | *) libsuff= shlibsuff= libmagic=never-match;; | |
23074 | esac | |
23075 | ;; | |
23076 | esac | |
23077 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
23078 | shlibpath_overrides_runpath=no | |
23079 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
23080 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
23081 | ;; | |
23082 | ||
23083 | # No shared lib support for Linux oldld, aout, or coff. | |
23084 | linux*oldld* | linux*aout* | linux*coff*) | |
23085 | dynamic_linker=no | |
23086 | ;; | |
23087 | ||
23088 | # This must be Linux ELF. | |
23089 | linux*) | |
23090 | version_type=linux | |
23091 | need_lib_prefix=no | |
23092 | need_version=no | |
23093 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
23094 | soname_spec='${libname}${release}.so$major' | |
23095 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
23096 | libsuff= | |
23097 | if test "x$LINUX_64_MODE" = x64; then | |
23098 | # Some platforms are per default 64-bit, so there's no /lib64 | |
23099 | if test -d /lib64; then | |
23100 | libsuff=64 | |
23101 | fi | |
23102 | fi | |
23103 | shlibpath_var=LD_LIBRARY_PATH | |
23104 | shlibpath_overrides_runpath=no | |
23105 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" | |
23106 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
23107 | # This implies no fast_install, which is unacceptable. | |
23108 | # Some rework will be needed to allow for fast_install | |
23109 | # before this can be enabled. | |
23110 | hardcode_into_libs=yes | |
23111 | ||
23112 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
23113 | # powerpc, because MkLinux only supported shared libraries with the | |
23114 | # GNU dynamic linker. Since this was broken with cross compilers, | |
23115 | # most powerpc-linux boxes support dynamic linking these days and | |
23116 | # people can always --disable-shared, the test was removed, and we | |
23117 | # assume the GNU/Linux dynamic linker is in use. | |
23118 | dynamic_linker='GNU/Linux ld.so' | |
23119 | ;; | |
23120 | ||
23121 | netbsd*) | |
23122 | version_type=sunos | |
23123 | need_lib_prefix=no | |
23124 | need_version=no | |
23125 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
23126 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
23127 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
23128 | dynamic_linker='NetBSD (a.out) ld.so' | |
23129 | else | |
23130 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' | |
23131 | soname_spec='${libname}${release}.so$major' | |
23132 | dynamic_linker='NetBSD ld.elf_so' | |
23133 | fi | |
23134 | shlibpath_var=LD_LIBRARY_PATH | |
23135 | shlibpath_overrides_runpath=yes | |
23136 | hardcode_into_libs=yes | |
23137 | ;; | |
23138 | ||
23139 | newsos6) | |
23140 | version_type=linux | |
23141 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
23142 | shlibpath_var=LD_LIBRARY_PATH | |
23143 | shlibpath_overrides_runpath=yes | |
23144 | ;; | |
23145 | ||
23146 | nto-qnx) | |
23147 | version_type=linux | |
23148 | need_lib_prefix=no | |
23149 | need_version=no | |
23150 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
23151 | soname_spec='${libname}${release}.so$major' | |
23152 | shlibpath_var=LD_LIBRARY_PATH | |
23153 | shlibpath_overrides_runpath=yes | |
23154 | ;; | |
23155 | ||
23156 | openbsd*) | |
23157 | version_type=sunos | |
23158 | need_lib_prefix=no | |
23159 | need_version=no | |
23160 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
23161 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
23162 | shlibpath_var=LD_LIBRARY_PATH | |
23163 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
23164 | case $host_os in | |
23165 | openbsd2.[89] | openbsd2.[89].*) | |
23166 | shlibpath_overrides_runpath=no | |
23167 | ;; | |
23168 | *) | |
23169 | shlibpath_overrides_runpath=yes | |
23170 | ;; | |
23171 | esac | |
23172 | else | |
23173 | shlibpath_overrides_runpath=yes | |
23174 | fi | |
23175 | ;; | |
23176 | ||
23177 | os2*) | |
23178 | libname_spec='$name' | |
23179 | need_lib_prefix=no | |
23180 | library_names_spec='$libname.dll $libname.a' | |
23181 | dynamic_linker='OS/2 ld.exe' | |
23182 | shlibpath_var=LIBPATH | |
23183 | ;; | |
23184 | ||
23185 | osf3* | osf4* | osf5*) | |
23186 | version_type=osf | |
23187 | need_lib_prefix=no | |
23188 | need_version=no | |
23189 | soname_spec='${libname}${release}.so' | |
23190 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
23191 | shlibpath_var=LD_LIBRARY_PATH | |
23192 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
23193 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
23194 | ;; | |
23195 | ||
23196 | sco3.2v5*) | |
23197 | version_type=osf | |
23198 | soname_spec='${libname}${release}.so$major' | |
23199 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
23200 | shlibpath_var=LD_LIBRARY_PATH | |
23201 | ;; | |
23202 | ||
23203 | solaris*) | |
23204 | version_type=linux | |
23205 | need_lib_prefix=no | |
23206 | need_version=no | |
23207 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
23208 | soname_spec='${libname}${release}.so$major' | |
23209 | shlibpath_var=LD_LIBRARY_PATH | |
23210 | shlibpath_overrides_runpath=yes | |
23211 | hardcode_into_libs=yes | |
23212 | # ldd complains unless libraries are executable | |
23213 | postinstall_cmds='chmod +x $lib' | |
23214 | ;; | |
23215 | ||
23216 | sunos4*) | |
23217 | version_type=sunos | |
23218 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
23219 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
23220 | shlibpath_var=LD_LIBRARY_PATH | |
23221 | shlibpath_overrides_runpath=yes | |
23222 | if test "$with_gnu_ld" = yes; then | |
23223 | need_lib_prefix=no | |
23224 | fi | |
23225 | need_version=yes | |
23226 | ;; | |
23227 | ||
23228 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
23229 | version_type=linux | |
23230 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
23231 | soname_spec='${libname}${release}.so$major' | |
23232 | shlibpath_var=LD_LIBRARY_PATH | |
23233 | case $host_vendor in | |
23234 | sni) | |
23235 | shlibpath_overrides_runpath=no | |
23236 | ;; | |
23237 | motorola) | |
23238 | need_lib_prefix=no | |
23239 | need_version=no | |
23240 | shlibpath_overrides_runpath=no | |
23241 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
23242 | ;; | |
23243 | esac | |
23244 | ;; | |
23245 | ||
23246 | sysv4*MP*) | |
23247 | if test -d /usr/nec ;then | |
23248 | version_type=linux | |
23249 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' | |
23250 | soname_spec='$libname.so.$major' | |
23251 | shlibpath_var=LD_LIBRARY_PATH | |
23252 | fi | |
23253 | ;; | |
23254 | ||
23255 | uts4*) | |
23256 | version_type=linux | |
23257 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
23258 | soname_spec='${libname}${release}.so$major' | |
23259 | shlibpath_var=LD_LIBRARY_PATH | |
23260 | ;; | |
23261 | ||
23262 | *) | |
23263 | dynamic_linker=no | |
23264 | ;; | |
23265 | esac | |
23266 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
23267 | echo "${ECHO_T}$dynamic_linker" >&6 | |
23268 | test "$dynamic_linker" = no && can_build_shared=no | |
23269 | ||
23270 | if test "x$enable_dlopen" != xyes; then | |
23271 | enable_dlopen=unknown | |
23272 | enable_dlopen_self=unknown | |
23273 | enable_dlopen_self_static=unknown | |
23274 | else | |
23275 | lt_cv_dlopen=no | |
23276 | lt_cv_dlopen_libs= | |
23277 | ||
23278 | case $host_os in | |
23279 | beos*) | |
23280 | lt_cv_dlopen="load_add_on" | |
23281 | lt_cv_dlopen_libs= | |
23282 | lt_cv_dlopen_self=yes | |
23283 | ;; | |
23284 | ||
23285 | cygwin* | mingw* | pw32*) | |
23286 | lt_cv_dlopen="LoadLibrary" | |
23287 | lt_cv_dlopen_libs= | |
23288 | ;; | |
23289 | ||
23290 | *) | |
23291 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
23292 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
23293 | if test "${ac_cv_func_shl_load+set}" = set; then | |
23294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23295 | else | |
23296 | cat >conftest.$ac_ext <<_ACEOF | |
23297 | #line $LINENO "configure" | |
23298 | #include "confdefs.h" | |
23299 | /* System header to define __stub macros and hopefully few prototypes, | |
23300 | which can conflict with char shl_load (); below. */ | |
23301 | #include <assert.h> | |
23302 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23303 | #ifdef __cplusplus | |
23304 | extern "C" | |
23305 | #endif | |
23306 | /* We use char because int might match the return type of a gcc2 | |
23307 | builtin and then its argument prototype would still apply. */ | |
23308 | char shl_load (); | |
23309 | char (*f) (); | |
23310 | ||
23311 | #ifdef F77_DUMMY_MAIN | |
23312 | # ifdef __cplusplus | |
23313 | extern "C" | |
23314 | # endif | |
23315 | int F77_DUMMY_MAIN() { return 1; } | |
23316 | #endif | |
23317 | int | |
23318 | main () | |
23319 | { | |
23320 | /* The GNU C library defines this for functions which it implements | |
23321 | to always fail with ENOSYS. Some functions are actually named | |
23322 | something starting with __ and the normal name is an alias. */ | |
23323 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
23324 | choke me | |
23325 | #else | |
23326 | f = shl_load; | |
23327 | #endif | |
23328 | ||
23329 | ; | |
23330 | return 0; | |
23331 | } | |
23332 | _ACEOF | |
23333 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23334 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23335 | (eval $ac_link) 2>&5 | |
23336 | ac_status=$? | |
23337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23338 | (exit $ac_status); } && | |
23339 | { ac_try='test -s conftest$ac_exeext' | |
23340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23341 | (eval $ac_try) 2>&5 | |
23342 | ac_status=$? | |
23343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23344 | (exit $ac_status); }; }; then | |
23345 | ac_cv_func_shl_load=yes | |
23346 | else | |
23347 | echo "$as_me: failed program was:" >&5 | |
23348 | cat conftest.$ac_ext >&5 | |
23349 | ac_cv_func_shl_load=no | |
23350 | fi | |
23351 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23352 | fi | |
23353 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
23354 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
23355 | if test $ac_cv_func_shl_load = yes; then | |
23356 | lt_cv_dlopen="shl_load" | |
23357 | else | |
23358 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
23359 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
23360 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
23361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23362 | else | |
23363 | ac_check_lib_save_LIBS=$LIBS | |
23364 | LIBS="-ldld $LIBS" | |
23365 | cat >conftest.$ac_ext <<_ACEOF | |
23366 | #line $LINENO "configure" | |
23367 | #include "confdefs.h" | |
23368 | ||
23369 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23370 | #ifdef __cplusplus | |
23371 | extern "C" | |
23372 | #endif | |
23373 | /* We use char because int might match the return type of a gcc2 | |
23374 | builtin and then its argument prototype would still apply. */ | |
23375 | char shl_load (); | |
23376 | #ifdef F77_DUMMY_MAIN | |
23377 | # ifdef __cplusplus | |
23378 | extern "C" | |
23379 | # endif | |
23380 | int F77_DUMMY_MAIN() { return 1; } | |
23381 | #endif | |
23382 | int | |
23383 | main () | |
23384 | { | |
23385 | shl_load (); | |
23386 | ; | |
23387 | return 0; | |
23388 | } | |
23389 | _ACEOF | |
23390 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23391 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23392 | (eval $ac_link) 2>&5 | |
23393 | ac_status=$? | |
23394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23395 | (exit $ac_status); } && | |
23396 | { ac_try='test -s conftest$ac_exeext' | |
23397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23398 | (eval $ac_try) 2>&5 | |
23399 | ac_status=$? | |
23400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23401 | (exit $ac_status); }; }; then | |
23402 | ac_cv_lib_dld_shl_load=yes | |
23403 | else | |
23404 | echo "$as_me: failed program was:" >&5 | |
23405 | cat conftest.$ac_ext >&5 | |
23406 | ac_cv_lib_dld_shl_load=no | |
23407 | fi | |
23408 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23409 | LIBS=$ac_check_lib_save_LIBS | |
23410 | fi | |
23411 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
23412 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
23413 | if test $ac_cv_lib_dld_shl_load = yes; then | |
23414 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
23415 | else | |
23416 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
23417 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
23418 | if test "${ac_cv_func_dlopen+set}" = set; then | |
23419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23420 | else | |
23421 | cat >conftest.$ac_ext <<_ACEOF | |
23422 | #line $LINENO "configure" | |
23423 | #include "confdefs.h" | |
23424 | /* System header to define __stub macros and hopefully few prototypes, | |
23425 | which can conflict with char dlopen (); below. */ | |
23426 | #include <assert.h> | |
23427 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23428 | #ifdef __cplusplus | |
23429 | extern "C" | |
23430 | #endif | |
23431 | /* We use char because int might match the return type of a gcc2 | |
23432 | builtin and then its argument prototype would still apply. */ | |
23433 | char dlopen (); | |
23434 | char (*f) (); | |
23435 | ||
23436 | #ifdef F77_DUMMY_MAIN | |
23437 | # ifdef __cplusplus | |
23438 | extern "C" | |
23439 | # endif | |
23440 | int F77_DUMMY_MAIN() { return 1; } | |
23441 | #endif | |
23442 | int | |
23443 | main () | |
23444 | { | |
23445 | /* The GNU C library defines this for functions which it implements | |
23446 | to always fail with ENOSYS. Some functions are actually named | |
23447 | something starting with __ and the normal name is an alias. */ | |
23448 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
23449 | choke me | |
23450 | #else | |
23451 | f = dlopen; | |
23452 | #endif | |
23453 | ||
23454 | ; | |
23455 | return 0; | |
23456 | } | |
23457 | _ACEOF | |
23458 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23459 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23460 | (eval $ac_link) 2>&5 | |
23461 | ac_status=$? | |
23462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23463 | (exit $ac_status); } && | |
23464 | { ac_try='test -s conftest$ac_exeext' | |
23465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23466 | (eval $ac_try) 2>&5 | |
23467 | ac_status=$? | |
23468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23469 | (exit $ac_status); }; }; then | |
23470 | ac_cv_func_dlopen=yes | |
23471 | else | |
23472 | echo "$as_me: failed program was:" >&5 | |
23473 | cat conftest.$ac_ext >&5 | |
23474 | ac_cv_func_dlopen=no | |
23475 | fi | |
23476 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23477 | fi | |
23478 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
23479 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
23480 | if test $ac_cv_func_dlopen = yes; then | |
23481 | lt_cv_dlopen="dlopen" | |
23482 | else | |
23483 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
23484 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
23485 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
23486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23487 | else | |
23488 | ac_check_lib_save_LIBS=$LIBS | |
23489 | LIBS="-ldl $LIBS" | |
23490 | cat >conftest.$ac_ext <<_ACEOF | |
23491 | #line $LINENO "configure" | |
23492 | #include "confdefs.h" | |
23493 | ||
23494 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23495 | #ifdef __cplusplus | |
23496 | extern "C" | |
23497 | #endif | |
23498 | /* We use char because int might match the return type of a gcc2 | |
23499 | builtin and then its argument prototype would still apply. */ | |
23500 | char dlopen (); | |
23501 | #ifdef F77_DUMMY_MAIN | |
23502 | # ifdef __cplusplus | |
23503 | extern "C" | |
23504 | # endif | |
23505 | int F77_DUMMY_MAIN() { return 1; } | |
23506 | #endif | |
23507 | int | |
23508 | main () | |
23509 | { | |
23510 | dlopen (); | |
23511 | ; | |
23512 | return 0; | |
23513 | } | |
23514 | _ACEOF | |
23515 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23516 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23517 | (eval $ac_link) 2>&5 | |
23518 | ac_status=$? | |
23519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23520 | (exit $ac_status); } && | |
23521 | { ac_try='test -s conftest$ac_exeext' | |
23522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23523 | (eval $ac_try) 2>&5 | |
23524 | ac_status=$? | |
23525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23526 | (exit $ac_status); }; }; then | |
23527 | ac_cv_lib_dl_dlopen=yes | |
23528 | else | |
23529 | echo "$as_me: failed program was:" >&5 | |
23530 | cat conftest.$ac_ext >&5 | |
23531 | ac_cv_lib_dl_dlopen=no | |
23532 | fi | |
23533 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23534 | LIBS=$ac_check_lib_save_LIBS | |
23535 | fi | |
23536 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
23537 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
23538 | if test $ac_cv_lib_dl_dlopen = yes; then | |
23539 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
23540 | else | |
23541 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
23542 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
23543 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
23544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23545 | else | |
23546 | ac_check_lib_save_LIBS=$LIBS | |
23547 | LIBS="-lsvld $LIBS" | |
23548 | cat >conftest.$ac_ext <<_ACEOF | |
23549 | #line $LINENO "configure" | |
23550 | #include "confdefs.h" | |
23551 | ||
23552 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23553 | #ifdef __cplusplus | |
23554 | extern "C" | |
23555 | #endif | |
23556 | /* We use char because int might match the return type of a gcc2 | |
23557 | builtin and then its argument prototype would still apply. */ | |
23558 | char dlopen (); | |
23559 | #ifdef F77_DUMMY_MAIN | |
23560 | # ifdef __cplusplus | |
23561 | extern "C" | |
23562 | # endif | |
23563 | int F77_DUMMY_MAIN() { return 1; } | |
23564 | #endif | |
23565 | int | |
23566 | main () | |
23567 | { | |
23568 | dlopen (); | |
23569 | ; | |
23570 | return 0; | |
23571 | } | |
23572 | _ACEOF | |
23573 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23574 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23575 | (eval $ac_link) 2>&5 | |
23576 | ac_status=$? | |
23577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23578 | (exit $ac_status); } && | |
23579 | { ac_try='test -s conftest$ac_exeext' | |
23580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23581 | (eval $ac_try) 2>&5 | |
23582 | ac_status=$? | |
23583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23584 | (exit $ac_status); }; }; then | |
23585 | ac_cv_lib_svld_dlopen=yes | |
23586 | else | |
23587 | echo "$as_me: failed program was:" >&5 | |
23588 | cat conftest.$ac_ext >&5 | |
23589 | ac_cv_lib_svld_dlopen=no | |
23590 | fi | |
23591 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23592 | LIBS=$ac_check_lib_save_LIBS | |
23593 | fi | |
23594 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
23595 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
23596 | if test $ac_cv_lib_svld_dlopen = yes; then | |
23597 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
23598 | else | |
23599 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
23600 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
23601 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
23602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23603 | else | |
23604 | ac_check_lib_save_LIBS=$LIBS | |
23605 | LIBS="-ldld $LIBS" | |
23606 | cat >conftest.$ac_ext <<_ACEOF | |
23607 | #line $LINENO "configure" | |
23608 | #include "confdefs.h" | |
23609 | ||
23610 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23611 | #ifdef __cplusplus | |
23612 | extern "C" | |
23613 | #endif | |
23614 | /* We use char because int might match the return type of a gcc2 | |
23615 | builtin and then its argument prototype would still apply. */ | |
23616 | char dld_link (); | |
23617 | #ifdef F77_DUMMY_MAIN | |
23618 | # ifdef __cplusplus | |
23619 | extern "C" | |
23620 | # endif | |
23621 | int F77_DUMMY_MAIN() { return 1; } | |
23622 | #endif | |
23623 | int | |
23624 | main () | |
23625 | { | |
23626 | dld_link (); | |
23627 | ; | |
23628 | return 0; | |
23629 | } | |
23630 | _ACEOF | |
23631 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23632 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23633 | (eval $ac_link) 2>&5 | |
23634 | ac_status=$? | |
23635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23636 | (exit $ac_status); } && | |
23637 | { ac_try='test -s conftest$ac_exeext' | |
23638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23639 | (eval $ac_try) 2>&5 | |
23640 | ac_status=$? | |
23641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23642 | (exit $ac_status); }; }; then | |
23643 | ac_cv_lib_dld_dld_link=yes | |
23644 | else | |
23645 | echo "$as_me: failed program was:" >&5 | |
23646 | cat conftest.$ac_ext >&5 | |
23647 | ac_cv_lib_dld_dld_link=no | |
23648 | fi | |
23649 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23650 | LIBS=$ac_check_lib_save_LIBS | |
23651 | fi | |
23652 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
23653 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
23654 | if test $ac_cv_lib_dld_dld_link = yes; then | |
23655 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
23656 | fi | |
23657 | ||
23658 | ||
23659 | fi | |
23660 | ||
23661 | ||
23662 | fi | |
23663 | ||
23664 | ||
23665 | fi | |
23666 | ||
23667 | ||
23668 | fi | |
23669 | ||
23670 | ||
23671 | fi | |
23672 | ||
23673 | ;; | |
23674 | esac | |
23675 | ||
23676 | if test "x$lt_cv_dlopen" != xno; then | |
23677 | enable_dlopen=yes | |
23678 | else | |
23679 | enable_dlopen=no | |
23680 | fi | |
23681 | ||
23682 | case $lt_cv_dlopen in | |
23683 | dlopen) | |
23684 | save_CPPFLAGS="$CPPFLAGS" | |
23685 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
23686 | ||
23687 | save_LDFLAGS="$LDFLAGS" | |
23688 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
23689 | ||
23690 | save_LIBS="$LIBS" | |
23691 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
23692 | ||
23693 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
23694 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
23695 | if test "${lt_cv_dlopen_self+set}" = set; then | |
23696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23697 | else | |
23698 | if test "$cross_compiling" = yes; then : | |
23699 | lt_cv_dlopen_self=cross | |
23700 | else | |
23701 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
23702 | lt_status=$lt_dlunknown | |
23703 | cat > conftest.$ac_ext <<EOF | |
23704 | #line 23704 "configure" | |
23705 | #include "confdefs.h" | |
23706 | ||
23707 | #if HAVE_DLFCN_H | |
23708 | #include <dlfcn.h> | |
23709 | #endif | |
23710 | ||
23711 | #include <stdio.h> | |
23712 | ||
23713 | #ifdef RTLD_GLOBAL | |
23714 | # define LT_DLGLOBAL RTLD_GLOBAL | |
23715 | #else | |
23716 | # ifdef DL_GLOBAL | |
23717 | # define LT_DLGLOBAL DL_GLOBAL | |
23718 | # else | |
23719 | # define LT_DLGLOBAL 0 | |
23720 | # endif | |
23721 | #endif | |
23722 | ||
23723 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
23724 | find out it does not work in some platform. */ | |
23725 | #ifndef LT_DLLAZY_OR_NOW | |
23726 | # ifdef RTLD_LAZY | |
23727 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
23728 | # else | |
23729 | # ifdef DL_LAZY | |
23730 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
23731 | # else | |
23732 | # ifdef RTLD_NOW | |
23733 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
23734 | # else | |
23735 | # ifdef DL_NOW | |
23736 | # define LT_DLLAZY_OR_NOW DL_NOW | |
23737 | # else | |
23738 | # define LT_DLLAZY_OR_NOW 0 | |
23739 | # endif | |
23740 | # endif | |
23741 | # endif | |
23742 | # endif | |
23743 | #endif | |
23744 | ||
23745 | #ifdef __cplusplus | |
23746 | extern "C" void exit (int); | |
23747 | #endif | |
23748 | ||
23749 | void fnord() { int i=42;} | |
23750 | int main () | |
23751 | { | |
23752 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
23753 | int status = $lt_dlunknown; | |
23754 | ||
23755 | if (self) | |
23756 | { | |
23757 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
23758 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
23759 | /* dlclose (self); */ | |
23760 | } | |
23761 | ||
23762 | exit (status); | |
23763 | } | |
23764 | EOF | |
23765 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23766 | (eval $ac_link) 2>&5 | |
23767 | ac_status=$? | |
23768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23769 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
23770 | (./conftest; exit; ) 2>/dev/null | |
23771 | lt_status=$? | |
23772 | case x$lt_status in | |
23773 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
23774 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
23775 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
23776 | esac | |
23777 | else : | |
23778 | # compilation failed | |
23779 | lt_cv_dlopen_self=no | |
23780 | fi | |
23781 | fi | |
23782 | rm -fr conftest* | |
23783 | ||
23784 | ||
23785 | fi | |
23786 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
23787 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
23788 | ||
23789 | if test "x$lt_cv_dlopen_self" = xyes; then | |
23790 | LDFLAGS="$LDFLAGS $link_static_flag" | |
23791 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
23792 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
23793 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
23794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23795 | else | |
23796 | if test "$cross_compiling" = yes; then : | |
23797 | lt_cv_dlopen_self_static=cross | |
23798 | else | |
23799 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
23800 | lt_status=$lt_dlunknown | |
23801 | cat > conftest.$ac_ext <<EOF | |
23802 | #line 23802 "configure" | |
23803 | #include "confdefs.h" | |
23804 | ||
23805 | #if HAVE_DLFCN_H | |
23806 | #include <dlfcn.h> | |
23807 | #endif | |
23808 | ||
23809 | #include <stdio.h> | |
23810 | ||
23811 | #ifdef RTLD_GLOBAL | |
23812 | # define LT_DLGLOBAL RTLD_GLOBAL | |
23813 | #else | |
23814 | # ifdef DL_GLOBAL | |
23815 | # define LT_DLGLOBAL DL_GLOBAL | |
23816 | # else | |
23817 | # define LT_DLGLOBAL 0 | |
23818 | # endif | |
23819 | #endif | |
23820 | ||
23821 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
23822 | find out it does not work in some platform. */ | |
23823 | #ifndef LT_DLLAZY_OR_NOW | |
23824 | # ifdef RTLD_LAZY | |
23825 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
23826 | # else | |
23827 | # ifdef DL_LAZY | |
23828 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
23829 | # else | |
23830 | # ifdef RTLD_NOW | |
23831 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
23832 | # else | |
23833 | # ifdef DL_NOW | |
23834 | # define LT_DLLAZY_OR_NOW DL_NOW | |
23835 | # else | |
23836 | # define LT_DLLAZY_OR_NOW 0 | |
23837 | # endif | |
23838 | # endif | |
23839 | # endif | |
23840 | # endif | |
23841 | #endif | |
23842 | ||
23843 | #ifdef __cplusplus | |
23844 | extern "C" void exit (int); | |
23845 | #endif | |
23846 | ||
23847 | void fnord() { int i=42;} | |
23848 | int main () | |
23849 | { | |
23850 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
23851 | int status = $lt_dlunknown; | |
23852 | ||
23853 | if (self) | |
23854 | { | |
23855 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
23856 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
23857 | /* dlclose (self); */ | |
23858 | } | |
23859 | ||
23860 | exit (status); | |
23861 | } | |
23862 | EOF | |
23863 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23864 | (eval $ac_link) 2>&5 | |
23865 | ac_status=$? | |
23866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23867 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
23868 | (./conftest; exit; ) 2>/dev/null | |
23869 | lt_status=$? | |
23870 | case x$lt_status in | |
23871 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
23872 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
23873 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
23874 | esac | |
23875 | else : | |
23876 | # compilation failed | |
23877 | lt_cv_dlopen_self_static=no | |
23878 | fi | |
23879 | fi | |
23880 | rm -fr conftest* | |
23881 | ||
23882 | ||
23883 | fi | |
23884 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
23885 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
23886 | fi | |
23887 | ||
23888 | CPPFLAGS="$save_CPPFLAGS" | |
23889 | LDFLAGS="$save_LDFLAGS" | |
23890 | LIBS="$save_LIBS" | |
23891 | ;; | |
23892 | esac | |
23893 | ||
23894 | case $lt_cv_dlopen_self in | |
23895 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
23896 | *) enable_dlopen_self=unknown ;; | |
23897 | esac | |
23898 | ||
23899 | case $lt_cv_dlopen_self_static in | |
23900 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
23901 | *) enable_dlopen_self_static=unknown ;; | |
23902 | esac | |
23903 | fi | |
23904 | ||
23905 | ||
23906 | # The else clause should only fire when bootstrapping the | |
23907 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
23908 | # with your package, and you will get complaints that there are | |
23909 | # no rules to generate ltmain.sh. | |
23910 | if test -f "$ltmain"; then | |
23911 | # Now quote all the things that may contain metacharacters while being | |
23912 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
23913 | # variables and quote the copies for generation of the libtool script. | |
23914 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \ | |
23915 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
23916 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
23917 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
23918 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
23919 | lt_cv_sys_global_symbol_to_c_name_address \ | |
23920 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
23921 | old_postinstall_cmds old_postuninstall_cmds \ | |
23922 | compiler_GCJ \ | |
23923 | CC_GCJ \ | |
23924 | LD_GCJ \ | |
23925 | lt_prog_compiler_wl_GCJ \ | |
23926 | lt_prog_compiler_pic_GCJ \ | |
23927 | lt_prog_compiler_static_GCJ \ | |
23928 | lt_prog_compiler_no_builtin_flag_GCJ \ | |
23929 | export_dynamic_flag_spec_GCJ \ | |
23930 | thread_safe_flag_spec_GCJ \ | |
23931 | whole_archive_flag_spec_GCJ \ | |
23932 | old_archive_cmds_GCJ \ | |
23933 | old_archive_from_new_cmds_GCJ \ | |
23934 | predep_objects_GCJ \ | |
23935 | postdep_objects_GCJ \ | |
23936 | predeps_GCJ \ | |
23937 | postdeps_GCJ \ | |
23938 | compiler_lib_search_path_GCJ \ | |
23939 | archive_cmds_GCJ \ | |
23940 | archive_expsym_cmds_GCJ \ | |
23941 | postinstall_cmds_GCJ \ | |
23942 | postuninstall_cmds_GCJ \ | |
23943 | old_archive_from_expsyms_cmds_GCJ \ | |
23944 | allow_undefined_flag_GCJ \ | |
23945 | no_undefined_flag_GCJ \ | |
23946 | export_symbols_cmds_GCJ \ | |
23947 | hardcode_libdir_flag_spec_GCJ \ | |
23948 | hardcode_libdir_separator_GCJ \ | |
23949 | lt_cv_prog_compiler_c_o_GCJ \ | |
23950 | exclude_expsyms_GCJ \ | |
23951 | include_expsyms_GCJ; do | |
23952 | ||
23953 | case $var in | |
23954 | old_archive_cmds_GCJ | \ | |
23955 | old_archive_from_new_cmds_GCJ | \ | |
23956 | archive_cmds_GCJ | \ | |
23957 | archive_expsym_cmds_GCJ | \ | |
23958 | old_archive_from_expsyms_cmds_GCJ | \ | |
23959 | export_symbols_cmds_GCJ | \ | |
23960 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
23961 | postinstall_cmds | postuninstall_cmds | \ | |
23962 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
23963 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
23964 | # Double-quote double-evaled strings. | |
23965 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
23966 | ;; | |
23967 | *) | |
23968 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
23969 | ;; | |
23970 | esac | |
23971 | done | |
23972 | ||
23973 | case $lt_echo in | |
23974 | *'\$0 --fallback-echo"') | |
23975 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
23976 | ;; | |
23977 | esac | |
23978 | ||
23979 | cfgfile="$ofile" | |
23980 | ||
23981 | cat <<__EOF__ >> "$cfgfile" | |
23982 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
23983 | ||
23984 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
23985 | ||
23986 | # Shell to use when invoking shell scripts. | |
23987 | SHELL=$lt_SHELL | |
23988 | ||
23989 | # Whether or not to build shared libraries. | |
23990 | build_libtool_libs=$enable_shared | |
23991 | ||
23992 | # Whether or not to build static libraries. | |
23993 | build_old_libs=$enable_static | |
23994 | ||
23995 | # Whether or not to add -lc for building shared libraries. | |
23996 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ | |
23997 | ||
23998 | # Whether or not to optimize for fast installation. | |
23999 | fast_install=$enable_fast_install | |
24000 | ||
24001 | # The host system. | |
24002 | host_alias=$host_alias | |
24003 | host=$host | |
24004 | ||
24005 | # An echo program that does not interpret backslashes. | |
24006 | echo=$lt_echo | |
24007 | ||
24008 | # The archiver. | |
24009 | AR=$lt_AR | |
24010 | AR_FLAGS=$lt_AR_FLAGS | |
24011 | ||
24012 | # A C compiler. | |
24013 | LTCC=$lt_LTCC | |
24014 | ||
24015 | # A language-specific compiler. | |
24016 | CC=$lt_compiler_GCJ | |
24017 | ||
24018 | # Is the compiler the GNU C compiler? | |
24019 | with_gcc=$GCC_GCJ | |
24020 | ||
24021 | # The linker used to build libraries. | |
24022 | LD=$lt_LD_GCJ | |
24023 | ||
24024 | # Whether we need hard or soft links. | |
24025 | LN_S=$lt_LN_S | |
24026 | ||
24027 | # A BSD-compatible nm program. | |
24028 | NM=$lt_NM | |
24029 | ||
24030 | # A sed program that does not truncate output. | |
24031 | SED=$lt_SED | |
24032 | ||
24033 | # A symbol stripping program | |
24034 | STRIP=$STRIP | |
24035 | ||
24036 | # Used to examine libraries when file_magic_cmd begins "file" | |
24037 | MAGIC_CMD=$MAGIC_CMD | |
24038 | ||
24039 | # Used on cygwin: DLL creation program. | |
24040 | DLLTOOL="$DLLTOOL" | |
24041 | ||
24042 | # Used on cygwin: object dumper. | |
24043 | OBJDUMP="$OBJDUMP" | |
24044 | ||
24045 | # Used on cygwin: assembler. | |
24046 | AS="$AS" | |
24047 | ||
24048 | # The name of the directory that contains temporary libtool files. | |
24049 | objdir=$objdir | |
24050 | ||
24051 | # How to create reloadable object files. | |
24052 | reload_flag=$lt_reload_flag | |
24053 | reload_cmds=$lt_reload_cmds | |
24054 | ||
24055 | # How to pass a linker flag through the compiler. | |
24056 | wl=$lt_lt_prog_compiler_wl_GCJ | |
24057 | ||
24058 | # Object file suffix (normally "o"). | |
24059 | objext="$ac_objext" | |
24060 | ||
24061 | # Old archive suffix (normally "a"). | |
24062 | libext="$libext" | |
24063 | ||
24064 | # Executable file suffix (normally ""). | |
24065 | exeext="$exeext" | |
24066 | ||
24067 | # Additional compiler flags for building library objects. | |
24068 | pic_flag=$lt_lt_prog_compiler_pic_GCJ | |
24069 | pic_mode=$pic_mode | |
24070 | ||
24071 | # What is the maximum length of a command? | |
24072 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
24073 | ||
24074 | # Does compiler simultaneously support -c and -o options? | |
24075 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | |
24076 | ||
24077 | # Must we lock files when doing compilation ? | |
24078 | need_locks=$lt_need_locks | |
24079 | ||
24080 | # Do we need the lib prefix for modules? | |
24081 | need_lib_prefix=$need_lib_prefix | |
24082 | ||
24083 | # Do we need a version for libraries? | |
24084 | need_version=$need_version | |
24085 | ||
24086 | # Whether dlopen is supported. | |
24087 | dlopen_support=$enable_dlopen | |
24088 | ||
24089 | # Whether dlopen of programs is supported. | |
24090 | dlopen_self=$enable_dlopen_self | |
24091 | ||
24092 | # Whether dlopen of statically linked programs is supported. | |
24093 | dlopen_self_static=$enable_dlopen_self_static | |
24094 | ||
24095 | # Compiler flag to prevent dynamic linking. | |
24096 | link_static_flag=$lt_lt_prog_compiler_static_GCJ | |
24097 | ||
24098 | # Compiler flag to turn off builtin functions. | |
24099 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | |
24100 | ||
24101 | # Compiler flag to allow reflexive dlopens. | |
24102 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | |
24103 | ||
24104 | # Compiler flag to generate shared objects directly from archives. | |
24105 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | |
24106 | ||
24107 | # Compiler flag to generate thread-safe objects. | |
24108 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | |
24109 | ||
24110 | # Library versioning type. | |
24111 | version_type=$version_type | |
24112 | ||
24113 | # Format of library name prefix. | |
24114 | libname_spec=$lt_libname_spec | |
24115 | ||
24116 | # List of archive names. First name is the real one, the rest are links. | |
24117 | # The last name is the one that the linker finds with -lNAME. | |
24118 | library_names_spec=$lt_library_names_spec | |
24119 | ||
24120 | # The coded name of the library, if different from the real name. | |
24121 | soname_spec=$lt_soname_spec | |
24122 | ||
24123 | # Commands used to build and install an old-style archive. | |
24124 | RANLIB=$lt_RANLIB | |
24125 | old_archive_cmds=$lt_old_archive_cmds_GCJ | |
24126 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
24127 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
24128 | ||
24129 | # Create an old-style archive from a shared archive. | |
24130 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | |
24131 | ||
24132 | # Create a temporary old-style archive to link instead of a shared archive. | |
24133 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | |
24134 | ||
24135 | # Commands used to build and install a shared archive. | |
24136 | archive_cmds=$lt_archive_cmds_GCJ | |
24137 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | |
24138 | postinstall_cmds=$lt_postinstall_cmds | |
24139 | postuninstall_cmds=$lt_postuninstall_cmds | |
24140 | ||
24141 | # Commands to strip libraries. | |
24142 | old_striplib=$lt_old_striplib | |
24143 | striplib=$lt_striplib | |
24144 | ||
24145 | # Dependencies to place before the objects being linked to create a | |
24146 | # shared library. | |
24147 | predep_objects=$lt_predep_objects_GCJ | |
24148 | ||
24149 | # Dependencies to place after the objects being linked to create a | |
24150 | # shared library. | |
24151 | postdep_objects=$lt_postdep_objects_GCJ | |
24152 | ||
24153 | # Dependencies to place before the objects being linked to create a | |
24154 | # shared library. | |
24155 | predeps=$lt_predeps_GCJ | |
24156 | ||
24157 | # Dependencies to place after the objects being linked to create a | |
24158 | # shared library. | |
24159 | postdeps=$lt_postdeps_GCJ | |
24160 | ||
24161 | # The library search path used internally by the compiler when linking | |
24162 | # a shared library. | |
24163 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | |
24164 | ||
24165 | # Method to check whether dependent libraries are shared objects. | |
24166 | deplibs_check_method=$lt_deplibs_check_method | |
24167 | ||
24168 | # Command to use when deplibs_check_method == file_magic. | |
24169 | file_magic_cmd=$lt_file_magic_cmd | |
24170 | ||
24171 | # Flag that allows shared libraries with undefined symbols to be built. | |
24172 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ | |
24173 | ||
24174 | # Flag that forces no undefined symbols. | |
24175 | no_undefined_flag=$lt_no_undefined_flag_GCJ | |
24176 | ||
24177 | # Commands used to finish a libtool library installation in a directory. | |
24178 | finish_cmds=$lt_finish_cmds | |
24179 | ||
24180 | # Same as above, but a single script fragment to be evaled but not shown. | |
24181 | finish_eval=$lt_finish_eval | |
24182 | ||
24183 | # Take the output of nm and produce a listing of raw symbols and C names. | |
24184 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
24185 | ||
24186 | # Transform the output of nm in a proper C declaration | |
24187 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
24188 | ||
24189 | # Transform the output of nm in a C name address pair | |
24190 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
24191 | ||
24192 | # This is the shared library runtime path variable. | |
24193 | runpath_var=$runpath_var | |
24194 | ||
24195 | # This is the shared library path variable. | |
24196 | shlibpath_var=$shlibpath_var | |
24197 | ||
24198 | # Is shlibpath searched before the hard-coded library search path? | |
24199 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
24200 | ||
24201 | # How to hardcode a shared library path into an executable. | |
24202 | hardcode_action=$hardcode_action_GCJ | |
24203 | ||
24204 | # Whether we should hardcode library paths into libraries. | |
24205 | hardcode_into_libs=$hardcode_into_libs | |
24206 | ||
24207 | # Flag to hardcode \$libdir into a binary during linking. | |
24208 | # This must work even if \$libdir does not exist. | |
24209 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | |
24210 | ||
24211 | # Whether we need a single -rpath flag with a separated argument. | |
24212 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | |
24213 | ||
24214 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | |
24215 | # resulting binary. | |
24216 | hardcode_direct=$hardcode_direct_GCJ | |
24217 | ||
24218 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
24219 | # resulting binary. | |
24220 | hardcode_minus_L=$hardcode_minus_L_GCJ | |
24221 | ||
24222 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
24223 | # the resulting binary. | |
24224 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | |
24225 | ||
24226 | # Variables whose values should be saved in libtool wrapper scripts and | |
24227 | # restored at relink time. | |
24228 | variables_saved_for_relink="$variables_saved_for_relink" | |
24229 | ||
24230 | # Whether libtool must link a program against all its dependency libraries. | |
24231 | link_all_deplibs=$link_all_deplibs_GCJ | |
24232 | ||
24233 | # Compile-time system search path for libraries | |
24234 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
24235 | ||
24236 | # Run-time system search path for libraries | |
24237 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
24238 | ||
24239 | # Fix the shell variable \$srcfile for the compiler. | |
24240 | fix_srcfile_path="$fix_srcfile_path_GCJ" | |
24241 | ||
24242 | # Set to yes if exported symbols are required. | |
24243 | always_export_symbols=$always_export_symbols_GCJ | |
24244 | ||
24245 | # The commands to list exported symbols. | |
24246 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ | |
24247 | ||
24248 | # The commands to extract the exported symbol list from a shared archive. | |
24249 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
24250 | ||
24251 | # Symbols that should not be listed in the preloaded symbols. | |
24252 | exclude_expsyms=$lt_exclude_expsyms_GCJ | |
24253 | ||
24254 | # Symbols that must always be exported. | |
24255 | include_expsyms=$lt_include_expsyms_GCJ | |
24256 | ||
24257 | # ### END LIBTOOL TAG CONFIG: $tagname | |
24258 | ||
24259 | __EOF__ | |
24260 | ||
24261 | ||
24262 | else | |
24263 | # If there is no Makefile yet, we rely on a make rule to execute | |
24264 | # `config.status --recheck' to rerun these tests and create the | |
24265 | # libtool script then. | |
24266 | test -f Makefile && make "$ltmain" | |
24267 | fi | |
24268 | ||
24269 | ||
24270 | ac_ext=c | |
24271 | ac_cpp='$CPP $CPPFLAGS' | |
24272 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
24273 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
24274 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
24275 | ||
24276 | CC="$lt_save_CC" | |
24277 | ||
24278 | ;; | |
24279 | ||
24280 | RC) | |
24281 | ||
24282 | ||
24283 | ||
24284 | # Source file extension for RC test sources. | |
24285 | ac_ext=rc | |
24286 | ||
24287 | # Object file extension for compiled RC test sources. | |
24288 | objext=o | |
24289 | objext_RC=$objext | |
24290 | ||
24291 | # Code to be used in simple compile tests | |
24292 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' | |
24293 | ||
24294 | # Code to be used in simple link tests | |
24295 | lt_simple_link_test_code="$lt_simple_compile_test_code" | |
24296 | ||
24297 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
24298 | ||
24299 | # If no C compiler was specified, use CC. | |
24300 | LTCC=${LTCC-"$CC"} | |
24301 | ||
24302 | # Allow CC to be a program name with arguments. | |
24303 | set dummy $CC | |
24304 | compiler="$2" | |
24305 | ||
24306 | ||
24307 | # Allow CC to be a program name with arguments. | |
24308 | lt_save_CC="$CC" | |
24309 | CC=${RC-"windres"} | |
24310 | set dummy $CC | |
24311 | compiler="$2" | |
24312 | compiler_RC=$CC | |
24313 | lt_cv_prog_compiler_c_o_RC=yes | |
24314 | ||
24315 | # The else clause should only fire when bootstrapping the | |
24316 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
24317 | # with your package, and you will get complaints that there are | |
24318 | # no rules to generate ltmain.sh. | |
24319 | if test -f "$ltmain"; then | |
24320 | # Now quote all the things that may contain metacharacters while being | |
24321 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
24322 | # variables and quote the copies for generation of the libtool script. | |
24323 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \ | |
24324 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
24325 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
24326 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
24327 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
24328 | lt_cv_sys_global_symbol_to_c_name_address \ | |
24329 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
24330 | old_postinstall_cmds old_postuninstall_cmds \ | |
24331 | compiler_RC \ | |
24332 | CC_RC \ | |
24333 | LD_RC \ | |
24334 | lt_prog_compiler_wl_RC \ | |
24335 | lt_prog_compiler_pic_RC \ | |
24336 | lt_prog_compiler_static_RC \ | |
24337 | lt_prog_compiler_no_builtin_flag_RC \ | |
24338 | export_dynamic_flag_spec_RC \ | |
24339 | thread_safe_flag_spec_RC \ | |
24340 | whole_archive_flag_spec_RC \ | |
24341 | old_archive_cmds_RC \ | |
24342 | old_archive_from_new_cmds_RC \ | |
24343 | predep_objects_RC \ | |
24344 | postdep_objects_RC \ | |
24345 | predeps_RC \ | |
24346 | postdeps_RC \ | |
24347 | compiler_lib_search_path_RC \ | |
24348 | archive_cmds_RC \ | |
24349 | archive_expsym_cmds_RC \ | |
24350 | postinstall_cmds_RC \ | |
24351 | postuninstall_cmds_RC \ | |
24352 | old_archive_from_expsyms_cmds_RC \ | |
24353 | allow_undefined_flag_RC \ | |
24354 | no_undefined_flag_RC \ | |
24355 | export_symbols_cmds_RC \ | |
24356 | hardcode_libdir_flag_spec_RC \ | |
24357 | hardcode_libdir_separator_RC \ | |
24358 | lt_cv_prog_compiler_c_o_RC \ | |
24359 | exclude_expsyms_RC \ | |
24360 | include_expsyms_RC; do | |
24361 | ||
24362 | case $var in | |
24363 | old_archive_cmds_RC | \ | |
24364 | old_archive_from_new_cmds_RC | \ | |
24365 | archive_cmds_RC | \ | |
24366 | archive_expsym_cmds_RC | \ | |
24367 | old_archive_from_expsyms_cmds_RC | \ | |
24368 | export_symbols_cmds_RC | \ | |
24369 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
24370 | postinstall_cmds | postuninstall_cmds | \ | |
24371 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
24372 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
24373 | # Double-quote double-evaled strings. | |
24374 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
24375 | ;; | |
24376 | *) | |
24377 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
24378 | ;; | |
24379 | esac | |
24380 | done | |
24381 | ||
24382 | case $lt_echo in | |
24383 | *'\$0 --fallback-echo"') | |
24384 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
24385 | ;; | |
24386 | esac | |
24387 | ||
24388 | cfgfile="$ofile" | |
24389 | ||
24390 | cat <<__EOF__ >> "$cfgfile" | |
24391 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
24392 | ||
24393 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
24394 | ||
24395 | # Shell to use when invoking shell scripts. | |
24396 | SHELL=$lt_SHELL | |
24397 | ||
24398 | # Whether or not to build shared libraries. | |
24399 | build_libtool_libs=$enable_shared | |
24400 | ||
24401 | # Whether or not to build static libraries. | |
24402 | build_old_libs=$enable_static | |
24403 | ||
24404 | # Whether or not to add -lc for building shared libraries. | |
24405 | build_libtool_need_lc=$archive_cmds_need_lc_RC | |
24406 | ||
24407 | # Whether or not to optimize for fast installation. | |
24408 | fast_install=$enable_fast_install | |
24409 | ||
24410 | # The host system. | |
24411 | host_alias=$host_alias | |
24412 | host=$host | |
24413 | ||
24414 | # An echo program that does not interpret backslashes. | |
24415 | echo=$lt_echo | |
24416 | ||
24417 | # The archiver. | |
24418 | AR=$lt_AR | |
24419 | AR_FLAGS=$lt_AR_FLAGS | |
24420 | ||
24421 | # A C compiler. | |
24422 | LTCC=$lt_LTCC | |
24423 | ||
24424 | # A language-specific compiler. | |
24425 | CC=$lt_compiler_RC | |
24426 | ||
24427 | # Is the compiler the GNU C compiler? | |
24428 | with_gcc=$GCC_RC | |
24429 | ||
24430 | # The linker used to build libraries. | |
24431 | LD=$lt_LD_RC | |
24432 | ||
24433 | # Whether we need hard or soft links. | |
24434 | LN_S=$lt_LN_S | |
24435 | ||
24436 | # A BSD-compatible nm program. | |
24437 | NM=$lt_NM | |
24438 | ||
24439 | # A sed program that does not truncate output. | |
24440 | SED=$lt_SED | |
24441 | ||
24442 | # A symbol stripping program | |
24443 | STRIP=$STRIP | |
24444 | ||
24445 | # Used to examine libraries when file_magic_cmd begins "file" | |
24446 | MAGIC_CMD=$MAGIC_CMD | |
24447 | ||
24448 | # Used on cygwin: DLL creation program. | |
24449 | DLLTOOL="$DLLTOOL" | |
24450 | ||
24451 | # Used on cygwin: object dumper. | |
24452 | OBJDUMP="$OBJDUMP" | |
24453 | ||
24454 | # Used on cygwin: assembler. | |
24455 | AS="$AS" | |
24456 | ||
24457 | # The name of the directory that contains temporary libtool files. | |
24458 | objdir=$objdir | |
24459 | ||
24460 | # How to create reloadable object files. | |
24461 | reload_flag=$lt_reload_flag | |
24462 | reload_cmds=$lt_reload_cmds | |
24463 | ||
24464 | # How to pass a linker flag through the compiler. | |
24465 | wl=$lt_lt_prog_compiler_wl_RC | |
24466 | ||
24467 | # Object file suffix (normally "o"). | |
24468 | objext="$ac_objext" | |
24469 | ||
24470 | # Old archive suffix (normally "a"). | |
24471 | libext="$libext" | |
24472 | ||
24473 | # Executable file suffix (normally ""). | |
24474 | exeext="$exeext" | |
24475 | ||
24476 | # Additional compiler flags for building library objects. | |
24477 | pic_flag=$lt_lt_prog_compiler_pic_RC | |
24478 | pic_mode=$pic_mode | |
24479 | ||
24480 | # What is the maximum length of a command? | |
24481 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
24482 | ||
24483 | # Does compiler simultaneously support -c and -o options? | |
24484 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | |
24485 | ||
24486 | # Must we lock files when doing compilation ? | |
24487 | need_locks=$lt_need_locks | |
24488 | ||
24489 | # Do we need the lib prefix for modules? | |
24490 | need_lib_prefix=$need_lib_prefix | |
24491 | ||
24492 | # Do we need a version for libraries? | |
24493 | need_version=$need_version | |
24494 | ||
24495 | # Whether dlopen is supported. | |
24496 | dlopen_support=$enable_dlopen | |
24497 | ||
24498 | # Whether dlopen of programs is supported. | |
24499 | dlopen_self=$enable_dlopen_self | |
24500 | ||
24501 | # Whether dlopen of statically linked programs is supported. | |
24502 | dlopen_self_static=$enable_dlopen_self_static | |
24503 | ||
24504 | # Compiler flag to prevent dynamic linking. | |
24505 | link_static_flag=$lt_lt_prog_compiler_static_RC | |
24506 | ||
24507 | # Compiler flag to turn off builtin functions. | |
24508 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | |
24509 | ||
24510 | # Compiler flag to allow reflexive dlopens. | |
24511 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | |
24512 | ||
24513 | # Compiler flag to generate shared objects directly from archives. | |
24514 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | |
24515 | ||
24516 | # Compiler flag to generate thread-safe objects. | |
24517 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | |
24518 | ||
24519 | # Library versioning type. | |
24520 | version_type=$version_type | |
24521 | ||
24522 | # Format of library name prefix. | |
24523 | libname_spec=$lt_libname_spec | |
24524 | ||
24525 | # List of archive names. First name is the real one, the rest are links. | |
24526 | # The last name is the one that the linker finds with -lNAME. | |
24527 | library_names_spec=$lt_library_names_spec | |
24528 | ||
24529 | # The coded name of the library, if different from the real name. | |
24530 | soname_spec=$lt_soname_spec | |
24531 | ||
24532 | # Commands used to build and install an old-style archive. | |
24533 | RANLIB=$lt_RANLIB | |
24534 | old_archive_cmds=$lt_old_archive_cmds_RC | |
24535 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
24536 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
24537 | ||
24538 | # Create an old-style archive from a shared archive. | |
24539 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | |
24540 | ||
24541 | # Create a temporary old-style archive to link instead of a shared archive. | |
24542 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | |
24543 | ||
24544 | # Commands used to build and install a shared archive. | |
24545 | archive_cmds=$lt_archive_cmds_RC | |
24546 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC | |
24547 | postinstall_cmds=$lt_postinstall_cmds | |
24548 | postuninstall_cmds=$lt_postuninstall_cmds | |
24549 | ||
24550 | # Commands to strip libraries. | |
24551 | old_striplib=$lt_old_striplib | |
24552 | striplib=$lt_striplib | |
24553 | ||
24554 | # Dependencies to place before the objects being linked to create a | |
24555 | # shared library. | |
24556 | predep_objects=$lt_predep_objects_RC | |
24557 | ||
24558 | # Dependencies to place after the objects being linked to create a | |
24559 | # shared library. | |
24560 | postdep_objects=$lt_postdep_objects_RC | |
24561 | ||
24562 | # Dependencies to place before the objects being linked to create a | |
24563 | # shared library. | |
24564 | predeps=$lt_predeps_RC | |
24565 | ||
24566 | # Dependencies to place after the objects being linked to create a | |
24567 | # shared library. | |
24568 | postdeps=$lt_postdeps_RC | |
24569 | ||
24570 | # The library search path used internally by the compiler when linking | |
24571 | # a shared library. | |
24572 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC | |
24573 | ||
24574 | # Method to check whether dependent libraries are shared objects. | |
24575 | deplibs_check_method=$lt_deplibs_check_method | |
24576 | ||
24577 | # Command to use when deplibs_check_method == file_magic. | |
24578 | file_magic_cmd=$lt_file_magic_cmd | |
24579 | ||
24580 | # Flag that allows shared libraries with undefined symbols to be built. | |
24581 | allow_undefined_flag=$lt_allow_undefined_flag_RC | |
24582 | ||
24583 | # Flag that forces no undefined symbols. | |
24584 | no_undefined_flag=$lt_no_undefined_flag_RC | |
24585 | ||
24586 | # Commands used to finish a libtool library installation in a directory. | |
24587 | finish_cmds=$lt_finish_cmds | |
24588 | ||
24589 | # Same as above, but a single script fragment to be evaled but not shown. | |
24590 | finish_eval=$lt_finish_eval | |
24591 | ||
24592 | # Take the output of nm and produce a listing of raw symbols and C names. | |
24593 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
24594 | ||
24595 | # Transform the output of nm in a proper C declaration | |
24596 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
24597 | ||
24598 | # Transform the output of nm in a C name address pair | |
24599 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
24600 | ||
24601 | # This is the shared library runtime path variable. | |
24602 | runpath_var=$runpath_var | |
24603 | ||
24604 | # This is the shared library path variable. | |
24605 | shlibpath_var=$shlibpath_var | |
24606 | ||
24607 | # Is shlibpath searched before the hard-coded library search path? | |
24608 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
24609 | ||
24610 | # How to hardcode a shared library path into an executable. | |
24611 | hardcode_action=$hardcode_action_RC | |
24612 | ||
24613 | # Whether we should hardcode library paths into libraries. | |
24614 | hardcode_into_libs=$hardcode_into_libs | |
24615 | ||
24616 | # Flag to hardcode \$libdir into a binary during linking. | |
24617 | # This must work even if \$libdir does not exist. | |
24618 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | |
24619 | ||
24620 | # Whether we need a single -rpath flag with a separated argument. | |
24621 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | |
24622 | ||
24623 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | |
24624 | # resulting binary. | |
24625 | hardcode_direct=$hardcode_direct_RC | |
24626 | ||
24627 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
24628 | # resulting binary. | |
24629 | hardcode_minus_L=$hardcode_minus_L_RC | |
24630 | ||
24631 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
24632 | # the resulting binary. | |
24633 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | |
24634 | ||
24635 | # Variables whose values should be saved in libtool wrapper scripts and | |
24636 | # restored at relink time. | |
24637 | variables_saved_for_relink="$variables_saved_for_relink" | |
24638 | ||
24639 | # Whether libtool must link a program against all its dependency libraries. | |
24640 | link_all_deplibs=$link_all_deplibs_RC | |
24641 | ||
24642 | # Compile-time system search path for libraries | |
24643 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
24644 | ||
24645 | # Run-time system search path for libraries | |
24646 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
24647 | ||
24648 | # Fix the shell variable \$srcfile for the compiler. | |
24649 | fix_srcfile_path="$fix_srcfile_path_RC" | |
24650 | ||
24651 | # Set to yes if exported symbols are required. | |
24652 | always_export_symbols=$always_export_symbols_RC | |
24653 | ||
24654 | # The commands to list exported symbols. | |
24655 | export_symbols_cmds=$lt_export_symbols_cmds_RC | |
24656 | ||
24657 | # The commands to extract the exported symbol list from a shared archive. | |
24658 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
24659 | ||
24660 | # Symbols that should not be listed in the preloaded symbols. | |
24661 | exclude_expsyms=$lt_exclude_expsyms_RC | |
24662 | ||
24663 | # Symbols that must always be exported. | |
24664 | include_expsyms=$lt_include_expsyms_RC | |
24665 | ||
24666 | # ### END LIBTOOL TAG CONFIG: $tagname | |
24667 | ||
24668 | __EOF__ | |
24669 | ||
24670 | ||
24671 | else | |
24672 | # If there is no Makefile yet, we rely on a make rule to execute | |
24673 | # `config.status --recheck' to rerun these tests and create the | |
24674 | # libtool script then. | |
24675 | test -f Makefile && make "$ltmain" | |
24676 | fi | |
24677 | ||
24678 | ||
24679 | ac_ext=c | |
24680 | ac_cpp='$CPP $CPPFLAGS' | |
24681 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
24682 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
24683 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
24684 | ||
24685 | CC="$lt_save_CC" | |
24686 | ||
24687 | ;; | |
24688 | ||
24689 | *) | |
24690 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 | |
24691 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | |
24692 | { (exit 1); exit 1; }; } | |
24693 | ;; | |
24694 | esac | |
24695 | ||
24696 | # Append the new tag name to the list of available tags. | |
24697 | available_tags="$available_tags $tagname" | |
24698 | fi | |
24699 | done | |
24700 | IFS="$lt_save_ifs" | |
24701 | ||
24702 | # Now substitute the updated list of available tags. | |
24703 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | |
24704 | mv "${ofile}T" "$ofile" | |
24705 | chmod +x "$ofile" | |
24706 | else | |
24707 | rm -f "${ofile}T" | |
24708 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 | |
24709 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} | |
24710 | { (exit 1); exit 1; }; } | |
24711 | fi | |
24712 | fi | |
24713 | ||
24714 | ||
24715 | ||
24716 | LIBTOOL_SHELL="/bin/sh ./libtool" | |
24717 | # LIBTOOL="$LIBTOOL --silent" | |
24718 | ||
24719 | ||
24720 | ||
24721 | ||
24722 | ||
24723 | all_libraries="$all_libraries $USER_LDFLAGS" | |
24724 | all_includes="$all_includes $USER_INCLUDES" | |
24725 | ||
24726 | ||
24727 | ||
24728 | ||
24729 | ||
24730 | ||
24731 | ||
24732 | DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin" | |
24733 | ||
24734 | if test ! -s $srcdir/subdirs; then | |
24735 | TOPSUBDIRS="" | |
24736 | files=`cd $srcdir && ls -1` | |
24737 | dirs=`for i in $files; do if test -d $i; then echo $i; fi; done` | |
24738 | for i in $dirs; do | |
24739 | echo $i >> $srcdir/subdirs | |
24740 | done | |
24741 | fi | |
24742 | ||
24743 | if test -s $srcdir/inst-apps; then | |
24744 | ac_topsubdirs="`cat $srcdir/inst-apps`" | |
24745 | else | |
24746 | ac_topsubdirs="`cat $srcdir/subdirs`" | |
24747 | fi | |
24748 | ||
24749 | for i in $ac_topsubdirs; do | |
24750 | echo "$as_me:$LINENO: checking if $i should be compiled" >&5 | |
24751 | echo $ECHO_N "checking if $i should be compiled... $ECHO_C" >&6 | |
24752 | if test -d $srcdir/$i; then | |
24753 | install_it="yes" | |
24754 | for j in $DO_NOT_COMPILE; do | |
24755 | if test $i = $j; then | |
24756 | install_it="no" | |
24757 | fi | |
24758 | done | |
24759 | else | |
24760 | install_it="no" | |
24761 | fi | |
24762 | echo "$as_me:$LINENO: result: $install_it" >&5 | |
24763 | echo "${ECHO_T}$install_it" >&6 | |
24764 | vari=`echo $i | sed -e 's,[-+.],_,g'` | |
24765 | if test $install_it = "yes"; then | |
24766 | TOPSUBDIRS="$TOPSUBDIRS $i" | |
24767 | eval "$vari""_SUBDIR_included=yes" | |
24768 | else | |
24769 | eval "$vari""_SUBDIR_included=no" | |
24770 | fi | |
24771 | done | |
24772 | ||
24773 | ||
24774 | ||
24775 | ac_config_files="$ac_config_files Makefile" | |
24776 | ||
24777 | ac_config_files="$ac_config_files ftdi/Makefile" | |
24778 | ||
24779 | cat >confcache <<\_ACEOF | |
24780 | # This file is a shell script that caches the results of configure | |
24781 | # tests run on this system so they can be shared between configure | |
24782 | # scripts and configure runs, see configure's option --config-cache. | |
24783 | # It is not useful on other systems. If it contains results you don't | |
24784 | # want to keep, you may remove or edit it. | |
24785 | # | |
24786 | # config.status only pays attention to the cache file if you give it | |
24787 | # the --recheck option to rerun configure. | |
24788 | # | |
24789 | # `ac_cv_env_foo' variables (set or unset) will be overriden when | |
24790 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
24791 | # following values. | |
24792 | ||
24793 | _ACEOF | |
24794 | ||
24795 | # The following way of writing the cache mishandles newlines in values, | |
24796 | # but we know of no workaround that is simple, portable, and efficient. | |
24797 | # So, don't put newlines in cache variables' values. | |
24798 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
24799 | # and sets the high bit in the cache file unless we assign to the vars. | |
24800 | { | |
24801 | (set) 2>&1 | | |
24802 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
24803 | *ac_space=\ *) | |
24804 | # `set' does not quote correctly, so add quotes (double-quote | |
24805 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
24806 | sed -n \ | |
24807 | "s/'/'\\\\''/g; | |
24808 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
24809 | ;; | |
24810 | *) | |
24811 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
24812 | sed -n \ | |
24813 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
24814 | ;; | |
24815 | esac; | |
24816 | } | | |
24817 | sed ' | |
24818 | t clear | |
24819 | : clear | |
24820 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
24821 | t end | |
24822 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
24823 | : end' >>confcache | |
24824 | if cmp -s $cache_file confcache; then :; else | |
24825 | if test -w $cache_file; then | |
24826 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
24827 | cat confcache >$cache_file | |
24828 | else | |
24829 | echo "not updating unwritable cache $cache_file" | |
24830 | fi | |
24831 | fi | |
24832 | rm -f confcache | |
24833 | ||
24834 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
24835 | # Let make expand exec_prefix. | |
24836 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
24837 | ||
24838 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
24839 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
24840 | # trailing colons and then remove the whole line if VPATH becomes empty | |
24841 | # (actually we leave an empty line to preserve line numbers). | |
24842 | if test "x$srcdir" = x.; then | |
24843 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
24844 | s/:*\$(srcdir):*/:/; | |
24845 | s/:*\${srcdir}:*/:/; | |
24846 | s/:*@srcdir@:*/:/; | |
24847 | s/^\([^=]*=[ ]*\):*/\1/; | |
24848 | s/:*$//; | |
24849 | s/^[^=]*=[ ]*$//; | |
24850 | }' | |
24851 | fi | |
24852 | ||
24853 | DEFS=-DHAVE_CONFIG_H | |
24854 | ||
24855 | ||
24856 | : ${CONFIG_STATUS=./config.status} | |
24857 | ac_clean_files_save=$ac_clean_files | |
24858 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
24859 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
24860 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
24861 | cat >$CONFIG_STATUS <<_ACEOF | |
24862 | #! $SHELL | |
24863 | # Generated by $as_me. | |
24864 | # Run this file to recreate the current configuration. | |
24865 | # Compiler output produced by configure, useful for debugging | |
24866 | # configure, is in config.log if it exists. | |
24867 | ||
24868 | debug=false | |
24869 | SHELL=\${CONFIG_SHELL-$SHELL} | |
24870 | _ACEOF | |
24871 | ||
24872 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24873 | ||
24874 | ## --------------------- ## | |
24875 | ## M4sh Initialization. ## | |
24876 | ## --------------------- ## | |
24877 | ||
24878 | # Be Bourne compatible | |
24879 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
24880 | emulate sh | |
24881 | NULLCMD=: | |
24882 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
24883 | set -o posix | |
24884 | fi | |
24885 | ||
24886 | # NLS nuisances. | |
24887 | # Support unset when possible. | |
24888 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
24889 | as_unset=unset | |
24890 | else | |
24891 | as_unset=false | |
24892 | fi | |
24893 | ||
24894 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && | |
24895 | { $as_unset LANG || test "${LANG+set}" != set; } || | |
24896 | { LANG=C; export LANG; } | |
24897 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && | |
24898 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || | |
24899 | { LC_ALL=C; export LC_ALL; } | |
24900 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && | |
24901 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || | |
24902 | { LC_TIME=C; export LC_TIME; } | |
24903 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && | |
24904 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || | |
24905 | { LC_CTYPE=C; export LC_CTYPE; } | |
24906 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && | |
24907 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || | |
24908 | { LANGUAGE=C; export LANGUAGE; } | |
24909 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && | |
24910 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || | |
24911 | { LC_COLLATE=C; export LC_COLLATE; } | |
24912 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && | |
24913 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || | |
24914 | { LC_NUMERIC=C; export LC_NUMERIC; } | |
24915 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && | |
24916 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || | |
24917 | { LC_MESSAGES=C; export LC_MESSAGES; } | |
24918 | ||
24919 | ||
24920 | # Name of the executable. | |
24921 | as_me=`(basename "$0") 2>/dev/null || | |
24922 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
24923 | X"$0" : 'X\(//\)$' \| \ | |
24924 | X"$0" : 'X\(/\)$' \| \ | |
24925 | . : '\(.\)' 2>/dev/null || | |
24926 | echo X/"$0" | | |
24927 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
24928 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
24929 | /^X\/\(\/\).*/{ s//\1/; q; } | |
24930 | s/.*/./; q'` | |
24931 | ||
24932 | # PATH needs CR, and LINENO needs CR and PATH. | |
24933 | # Avoid depending upon Character Ranges. | |
24934 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
24935 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
24936 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
24937 | as_cr_digits='0123456789' | |
24938 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
24939 | ||
24940 | # The user is always right. | |
24941 | if test "${PATH_SEPARATOR+set}" != set; then | |
24942 | echo "#! /bin/sh" >conftest.sh | |
24943 | echo "exit 0" >>conftest.sh | |
24944 | chmod +x conftest.sh | |
24945 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then | |
24946 | PATH_SEPARATOR=';' | |
24947 | else | |
24948 | PATH_SEPARATOR=: | |
24949 | fi | |
24950 | rm -f conftest.sh | |
24951 | fi | |
24952 | ||
24953 | ||
24954 | as_lineno_1=$LINENO | |
24955 | as_lineno_2=$LINENO | |
24956 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
24957 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
24958 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
24959 | # Find who we are. Look in the path if we contain no path at all | |
24960 | # relative or not. | |
24961 | case $0 in | |
24962 | *[\\/]* ) as_myself=$0 ;; | |
24963 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24964 | for as_dir in $PATH | |
24965 | do | |
24966 | IFS=$as_save_IFS | |
24967 | test -z "$as_dir" && as_dir=. | |
24968 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
24969 | done | |
24970 | ||
24971 | ;; | |
24972 | esac | |
24973 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
24974 | # in which case we are not to be found in the path. | |
24975 | if test "x$as_myself" = x; then | |
24976 | as_myself=$0 | |
24977 | fi | |
24978 | if test ! -f "$as_myself"; then | |
24979 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
24980 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
24981 | { (exit 1); exit 1; }; } | |
24982 | fi | |
24983 | case $CONFIG_SHELL in | |
24984 | '') | |
24985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24986 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
24987 | do | |
24988 | IFS=$as_save_IFS | |
24989 | test -z "$as_dir" && as_dir=. | |
24990 | for as_base in sh bash ksh sh5; do | |
24991 | case $as_dir in | |
24992 | /*) | |
24993 | if ("$as_dir/$as_base" -c ' | |
24994 | as_lineno_1=$LINENO | |
24995 | as_lineno_2=$LINENO | |
24996 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
24997 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
24998 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
24999 | CONFIG_SHELL=$as_dir/$as_base | |
25000 | export CONFIG_SHELL | |
25001 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
25002 | fi;; | |
25003 | esac | |
25004 | done | |
25005 | done | |
25006 | ;; | |
25007 | esac | |
25008 | ||
25009 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
25010 | # uniformly replaced by the line number. The first 'sed' inserts a | |
25011 | # line-number line before each line; the second 'sed' does the real | |
25012 | # work. The second script uses 'N' to pair each line-number line | |
25013 | # with the numbered line, and appends trailing '-' during | |
25014 | # substitution so that $LINENO is not a special case at line end. | |
25015 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
25016 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
25017 | sed '=' <$as_myself | | |
25018 | sed ' | |
25019 | N | |
25020 | s,$,-, | |
25021 | : loop | |
25022 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
25023 | t loop | |
25024 | s,-$,, | |
25025 | s,^['$as_cr_digits']*\n,, | |
25026 | ' >$as_me.lineno && | |
25027 | chmod +x $as_me.lineno || | |
25028 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
25029 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
25030 | { (exit 1); exit 1; }; } | |
25031 | ||
25032 | # Don't try to exec as it changes $[0], causing all sort of problems | |
25033 | # (the dirname of $[0] is not the place where we might find the | |
25034 | # original and so on. Autoconf is especially sensible to this). | |
25035 | . ./$as_me.lineno | |
25036 | # Exit status is that of the last command. | |
25037 | exit | |
25038 | } | |
25039 | ||
25040 | ||
25041 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
25042 | *c*,-n*) ECHO_N= ECHO_C=' | |
25043 | ' ECHO_T=' ' ;; | |
25044 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
25045 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
25046 | esac | |
25047 | ||
25048 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
25049 | as_expr=expr | |
25050 | else | |
25051 | as_expr=false | |
25052 | fi | |
25053 | ||
25054 | rm -f conf$$ conf$$.exe conf$$.file | |
25055 | echo >conf$$.file | |
25056 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
25057 | # We could just check for DJGPP; but this test a) works b) is more generic | |
25058 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
25059 | if test -f conf$$.exe; then | |
25060 | # Don't use ln at all; we don't have any links | |
25061 | as_ln_s='cp -p' | |
25062 | else | |
25063 | as_ln_s='ln -s' | |
25064 | fi | |
25065 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
25066 | as_ln_s=ln | |
25067 | else | |
25068 | as_ln_s='cp -p' | |
25069 | fi | |
25070 | rm -f conf$$ conf$$.exe conf$$.file | |
25071 | ||
25072 | as_executable_p="test -f" | |
25073 | ||
25074 | # Sed expression to map a string onto a valid CPP name. | |
25075 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
25076 | ||
25077 | # Sed expression to map a string onto a valid variable name. | |
25078 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
25079 | ||
25080 | ||
25081 | # IFS | |
25082 | # We need space, tab and new line, in precisely that order. | |
25083 | as_nl=' | |
25084 | ' | |
25085 | IFS=" $as_nl" | |
25086 | ||
25087 | # CDPATH. | |
25088 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } | |
25089 | ||
25090 | exec 6>&1 | |
25091 | ||
25092 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
25093 | # report actual input values of CONFIG_FILES etc. instead of their | |
25094 | # values after options handling. Logging --version etc. is OK. | |
25095 | exec 5>>config.log | |
25096 | { | |
25097 | echo | |
25098 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
25099 | ## Running $as_me. ## | |
25100 | _ASBOX | |
25101 | } >&5 | |
25102 | cat >&5 <<_CSEOF | |
25103 | ||
25104 | This file was extended by $as_me, which was | |
25105 | generated by GNU Autoconf 2.53. Invocation command line was | |
25106 | ||
25107 | CONFIG_FILES = $CONFIG_FILES | |
25108 | CONFIG_HEADERS = $CONFIG_HEADERS | |
25109 | CONFIG_LINKS = $CONFIG_LINKS | |
25110 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
25111 | $ $0 $@ | |
25112 | ||
25113 | _CSEOF | |
25114 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
25115 | echo >&5 | |
25116 | _ACEOF | |
25117 | ||
25118 | # Files that config.status was made for. | |
25119 | if test -n "$ac_config_files"; then | |
25120 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
25121 | fi | |
25122 | ||
25123 | if test -n "$ac_config_headers"; then | |
25124 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
25125 | fi | |
25126 | ||
25127 | if test -n "$ac_config_links"; then | |
25128 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
25129 | fi | |
25130 | ||
25131 | if test -n "$ac_config_commands"; then | |
25132 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
25133 | fi | |
25134 | ||
25135 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25136 | ||
25137 | ac_cs_usage="\ | |
25138 | \`$as_me' instantiates files from templates according to the | |
25139 | current configuration. | |
25140 | ||
25141 | Usage: $0 [OPTIONS] [FILE]... | |
25142 | ||
25143 | -h, --help print this help, then exit | |
25144 | -V, --version print version number, then exit | |
25145 | -d, --debug don't remove temporary files | |
25146 | --recheck update $as_me by reconfiguring in the same conditions | |
25147 | --file=FILE[:TEMPLATE] | |
25148 | instantiate the configuration file FILE | |
25149 | --header=FILE[:TEMPLATE] | |
25150 | instantiate the configuration header FILE | |
25151 | ||
25152 | Configuration files: | |
25153 | $config_files | |
25154 | ||
25155 | Configuration headers: | |
25156 | $config_headers | |
25157 | ||
25158 | Configuration commands: | |
25159 | $config_commands | |
25160 | ||
25161 | Report bugs to <bug-autoconf@gnu.org>." | |
25162 | _ACEOF | |
25163 | ||
25164 | cat >>$CONFIG_STATUS <<_ACEOF | |
25165 | ac_cs_version="\\ | |
25166 | config.status | |
25167 | configured by $0, generated by GNU Autoconf 2.53, | |
25168 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
25169 | ||
25170 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
25171 | Free Software Foundation, Inc. | |
25172 | This config.status script is free software; the Free Software Foundation | |
25173 | gives unlimited permission to copy, distribute and modify it." | |
25174 | srcdir=$srcdir | |
25175 | INSTALL="$INSTALL" | |
25176 | _ACEOF | |
25177 | ||
25178 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25179 | # If no file are specified by the user, then we need to provide default | |
25180 | # value. By we need to know if files were specified by the user. | |
25181 | ac_need_defaults=: | |
25182 | while test $# != 0 | |
25183 | do | |
25184 | case $1 in | |
25185 | --*=*) | |
25186 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
25187 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
25188 | shift | |
25189 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | |
25190 | shift | |
25191 | ;; | |
25192 | -*);; | |
25193 | *) # This is not an option, so the user has probably given explicit | |
25194 | # arguments. | |
25195 | ac_need_defaults=false;; | |
25196 | esac | |
25197 | ||
25198 | case $1 in | |
25199 | # Handling of the options. | |
25200 | _ACEOF | |
25201 | cat >>$CONFIG_STATUS <<_ACEOF | |
25202 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
25203 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" | |
25204 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | |
25205 | _ACEOF | |
25206 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25207 | --version | --vers* | -V ) | |
25208 | echo "$ac_cs_version"; exit 0 ;; | |
25209 | --he | --h) | |
25210 | # Conflict between --help and --header | |
25211 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
25212 | Try \`$0 --help' for more information." >&5 | |
25213 | echo "$as_me: error: ambiguous option: $1 | |
25214 | Try \`$0 --help' for more information." >&2;} | |
25215 | { (exit 1); exit 1; }; };; | |
25216 | --help | --hel | -h ) | |
25217 | echo "$ac_cs_usage"; exit 0 ;; | |
25218 | --debug | --d* | -d ) | |
25219 | debug=: ;; | |
25220 | --file | --fil | --fi | --f ) | |
25221 | shift | |
25222 | CONFIG_FILES="$CONFIG_FILES $1" | |
25223 | ac_need_defaults=false;; | |
25224 | --header | --heade | --head | --hea ) | |
25225 | shift | |
25226 | CONFIG_HEADERS="$CONFIG_HEADERS $1" | |
25227 | ac_need_defaults=false;; | |
25228 | ||
25229 | # This is an error. | |
25230 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
25231 | Try \`$0 --help' for more information." >&5 | |
25232 | echo "$as_me: error: unrecognized option: $1 | |
25233 | Try \`$0 --help' for more information." >&2;} | |
25234 | { (exit 1); exit 1; }; } ;; | |
25235 | ||
25236 | *) ac_config_targets="$ac_config_targets $1" ;; | |
25237 | ||
25238 | esac | |
25239 | shift | |
25240 | done | |
25241 | ||
25242 | _ACEOF | |
25243 | ||
25244 | cat >>$CONFIG_STATUS <<_ACEOF | |
25245 | # | |
25246 | # INIT-COMMANDS section. | |
25247 | # | |
25248 | ||
25249 | AMDEP_TRUE="$AMDEP_TRUE" | |
25250 | ac_aux_dir="$ac_aux_dir" | |
25251 | ||
25252 | _ACEOF | |
25253 | ||
25254 | ||
25255 | ||
25256 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25257 | for ac_config_target in $ac_config_targets | |
25258 | do | |
25259 | case "$ac_config_target" in | |
25260 | # Handling of arguments. | |
25261 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
25262 | "ftdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES ftdi/Makefile" ;; | |
25263 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
25264 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
25265 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
25266 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
25267 | { (exit 1); exit 1; }; };; | |
25268 | esac | |
25269 | done | |
25270 | ||
25271 | # If the user did not use the arguments to specify the items to instantiate, | |
25272 | # then the envvar interface is used. Set only those that are not. | |
25273 | # We use the long form for the default assignment because of an extremely | |
25274 | # bizarre bug on SunOS 4.1.3. | |
25275 | if $ac_need_defaults; then | |
25276 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
25277 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
25278 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
25279 | fi | |
25280 | ||
25281 | # Create a temporary directory, and hook for its removal unless debugging. | |
25282 | $debug || | |
25283 | { | |
25284 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
25285 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
25286 | } | |
25287 | ||
25288 | # Create a (secure) tmp directory for tmp files. | |
25289 | : ${TMPDIR=/tmp} | |
25290 | { | |
25291 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | |
25292 | test -n "$tmp" && test -d "$tmp" | |
25293 | } || | |
25294 | { | |
25295 | tmp=$TMPDIR/cs$$-$RANDOM | |
25296 | (umask 077 && mkdir $tmp) | |
25297 | } || | |
25298 | { | |
25299 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
25300 | { (exit 1); exit 1; } | |
25301 | } | |
25302 | ||
25303 | _ACEOF | |
25304 | ||
25305 | cat >>$CONFIG_STATUS <<_ACEOF | |
25306 | ||
25307 | # | |
25308 | # CONFIG_FILES section. | |
25309 | # | |
25310 | ||
25311 | # No need to generate the scripts if there are no CONFIG_FILES. | |
25312 | # This happens for instance when ./config.status config.h | |
25313 | if test -n "\$CONFIG_FILES"; then | |
25314 | # Protect against being on the right side of a sed subst in config.status. | |
25315 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
25316 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
25317 | s,@SHELL@,$SHELL,;t t | |
25318 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
25319 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
25320 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
25321 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
25322 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
25323 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
25324 | s,@exec_prefix@,$exec_prefix,;t t | |
25325 | s,@prefix@,$prefix,;t t | |
25326 | s,@program_transform_name@,$program_transform_name,;t t | |
25327 | s,@bindir@,$bindir,;t t | |
25328 | s,@sbindir@,$sbindir,;t t | |
25329 | s,@libexecdir@,$libexecdir,;t t | |
25330 | s,@datadir@,$datadir,;t t | |
25331 | s,@sysconfdir@,$sysconfdir,;t t | |
25332 | s,@sharedstatedir@,$sharedstatedir,;t t | |
25333 | s,@localstatedir@,$localstatedir,;t t | |
25334 | s,@libdir@,$libdir,;t t | |
25335 | s,@includedir@,$includedir,;t t | |
25336 | s,@oldincludedir@,$oldincludedir,;t t | |
25337 | s,@infodir@,$infodir,;t t | |
25338 | s,@mandir@,$mandir,;t t | |
25339 | s,@build_alias@,$build_alias,;t t | |
25340 | s,@host_alias@,$host_alias,;t t | |
25341 | s,@target_alias@,$target_alias,;t t | |
25342 | s,@DEFS@,$DEFS,;t t | |
25343 | s,@ECHO_C@,$ECHO_C,;t t | |
25344 | s,@ECHO_N@,$ECHO_N,;t t | |
25345 | s,@ECHO_T@,$ECHO_T,;t t | |
25346 | s,@LIBS@,$LIBS,;t t | |
25347 | s,@build@,$build,;t t | |
25348 | s,@build_cpu@,$build_cpu,;t t | |
25349 | s,@build_vendor@,$build_vendor,;t t | |
25350 | s,@build_os@,$build_os,;t t | |
25351 | s,@host@,$host,;t t | |
25352 | s,@host_cpu@,$host_cpu,;t t | |
25353 | s,@host_vendor@,$host_vendor,;t t | |
25354 | s,@host_os@,$host_os,;t t | |
25355 | s,@target@,$target,;t t | |
25356 | s,@target_cpu@,$target_cpu,;t t | |
25357 | s,@target_vendor@,$target_vendor,;t t | |
25358 | s,@target_os@,$target_os,;t t | |
25359 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
25360 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
25361 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
25362 | s,@PACKAGE@,$PACKAGE,;t t | |
25363 | s,@VERSION@,$VERSION,;t t | |
25364 | s,@EXEEXT@,$EXEEXT,;t t | |
25365 | s,@OBJEXT@,$OBJEXT,;t t | |
25366 | s,@ACLOCAL@,$ACLOCAL,;t t | |
25367 | s,@AUTOCONF@,$AUTOCONF,;t t | |
25368 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
25369 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
25370 | s,@MAKEINFO@,$MAKEINFO,;t t | |
25371 | s,@AMTAR@,$AMTAR,;t t | |
25372 | s,@install_sh@,$install_sh,;t t | |
25373 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
25374 | s,@AWK@,$AWK,;t t | |
25375 | s,@SET_MAKE@,$SET_MAKE,;t t | |
25376 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
25377 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
25378 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
25379 | s,@DEPDIR@,$DEPDIR,;t t | |
25380 | s,@CC@,$CC,;t t | |
25381 | s,@CFLAGS@,$CFLAGS,;t t | |
25382 | s,@LDFLAGS@,$LDFLAGS,;t t | |
25383 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
25384 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
25385 | s,@am__include@,$am__include,;t t | |
25386 | s,@am__quote@,$am__quote,;t t | |
25387 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
25388 | s,@CXX@,$CXX,;t t | |
25389 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
25390 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
25391 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t | |
25392 | s,@USE_EXCEPTIONS@,$USE_EXCEPTIONS,;t t | |
25393 | s,@USE_RTTI@,$USE_RTTI,;t t | |
25394 | s,@CPP@,$CPP,;t t | |
25395 | s,@NOOPT_CFLAGS@,$NOOPT_CFLAGS,;t t | |
25396 | s,@REPO@,$REPO,;t t | |
25397 | s,@NOREPO@,$NOREPO,;t t | |
25398 | s,@KDE_USE_FINAL_TRUE@,$KDE_USE_FINAL_TRUE,;t t | |
25399 | s,@KDE_USE_FINAL_FALSE@,$KDE_USE_FINAL_FALSE,;t t | |
25400 | s,@KDE_USE_CLOSURE_TRUE@,$KDE_USE_CLOSURE_TRUE,;t t | |
25401 | s,@KDE_USE_CLOSURE_FALSE@,$KDE_USE_CLOSURE_FALSE,;t t | |
25402 | s,@KDE_CXXFLAGS@,$KDE_CXXFLAGS,;t t | |
25403 | s,@LN_S@,$LN_S,;t t | |
25404 | s,@ECHO@,$ECHO,;t t | |
25405 | s,@RANLIB@,$RANLIB,;t t | |
25406 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
25407 | s,@STRIP@,$STRIP,;t t | |
25408 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
25409 | s,@CXXCPP@,$CXXCPP,;t t | |
25410 | s,@LIBTOOL@,$LIBTOOL,;t t | |
25411 | s,@all_includes@,$all_includes,;t t | |
25412 | s,@all_libraries@,$all_libraries,;t t | |
25413 | s,@AUTODIRS@,$AUTODIRS,;t t | |
25414 | s,@TOPSUBDIRS@,$TOPSUBDIRS,;t t | |
25415 | CEOF | |
25416 | ||
25417 | _ACEOF | |
25418 | ||
25419 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25420 | # Split the substitutions into bite-sized pieces for seds with | |
25421 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
25422 | ac_max_sed_lines=48 | |
25423 | ac_sed_frag=1 # Number of current file. | |
25424 | ac_beg=1 # First line for current file. | |
25425 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
25426 | ac_more_lines=: | |
25427 | ac_sed_cmds= | |
25428 | while $ac_more_lines; do | |
25429 | if test $ac_beg -gt 1; then | |
25430 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
25431 | else | |
25432 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
25433 | fi | |
25434 | if test ! -s $tmp/subs.frag; then | |
25435 | ac_more_lines=false | |
25436 | else | |
25437 | # The purpose of the label and of the branching condition is to | |
25438 | # speed up the sed processing (if there are no `@' at all, there | |
25439 | # is no need to browse any of the substitutions). | |
25440 | # These are the two extra sed commands mentioned above. | |
25441 | (echo ':t | |
25442 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
25443 | if test -z "$ac_sed_cmds"; then | |
25444 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
25445 | else | |
25446 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
25447 | fi | |
25448 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
25449 | ac_beg=$ac_end | |
25450 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
25451 | fi | |
25452 | done | |
25453 | if test -z "$ac_sed_cmds"; then | |
25454 | ac_sed_cmds=cat | |
25455 | fi | |
25456 | fi # test -n "$CONFIG_FILES" | |
25457 | ||
25458 | _ACEOF | |
25459 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25460 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
25461 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
25462 | case $ac_file in | |
25463 | - | *:- | *:-:* ) # input from stdin | |
25464 | cat >$tmp/stdin | |
25465 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
25466 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
25467 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
25468 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
25469 | * ) ac_file_in=$ac_file.in ;; | |
25470 | esac | |
25471 | ||
25472 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
25473 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
25474 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25475 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
25476 | X"$ac_file" : 'X\(//\)$' \| \ | |
25477 | X"$ac_file" : 'X\(/\)' \| \ | |
25478 | . : '\(.\)' 2>/dev/null || | |
25479 | echo X"$ac_file" | | |
25480 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25481 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25482 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25483 | /^X\(\/\).*/{ s//\1/; q; } | |
25484 | s/.*/./; q'` | |
25485 | { case "$ac_dir" in | |
25486 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
25487 | *) as_incr_dir=.;; | |
25488 | esac | |
25489 | as_dummy="$ac_dir" | |
25490 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
25491 | case $as_mkdir_dir in | |
25492 | # Skip DOS drivespec | |
25493 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
25494 | *) | |
25495 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
25496 | test -d "$as_incr_dir" || | |
25497 | mkdir "$as_incr_dir" || | |
25498 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 | |
25499 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} | |
25500 | { (exit 1); exit 1; }; } | |
25501 | ;; | |
25502 | esac | |
25503 | done; } | |
25504 | ||
25505 | ac_builddir=. | |
25506 | ||
25507 | if test "$ac_dir" != .; then | |
25508 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
25509 | # A "../" for each directory in $ac_dir_suffix. | |
25510 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
25511 | else | |
25512 | ac_dir_suffix= ac_top_builddir= | |
25513 | fi | |
25514 | ||
25515 | case $srcdir in | |
25516 | .) # No --srcdir option. We are building in place. | |
25517 | ac_srcdir=. | |
25518 | if test -z "$ac_top_builddir"; then | |
25519 | ac_top_srcdir=. | |
25520 | else | |
25521 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
25522 | fi ;; | |
25523 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
25524 | ac_srcdir=$srcdir$ac_dir_suffix; | |
25525 | ac_top_srcdir=$srcdir ;; | |
25526 | *) # Relative path. | |
25527 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
25528 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
25529 | esac | |
25530 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
25531 | # absolute. | |
25532 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
25533 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | |
25534 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
25535 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
25536 | ||
25537 | ||
25538 | case $INSTALL in | |
25539 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
25540 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
25541 | esac | |
25542 | ||
25543 | if test x"$ac_file" != x-; then | |
25544 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
25545 | echo "$as_me: creating $ac_file" >&6;} | |
25546 | rm -f "$ac_file" | |
25547 | fi | |
25548 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
25549 | # use $as_me), people would be surprised to read: | |
25550 | # /* config.h. Generated by config.status. */ | |
25551 | if test x"$ac_file" = x-; then | |
25552 | configure_input= | |
25553 | else | |
25554 | configure_input="$ac_file. " | |
25555 | fi | |
25556 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
25557 | sed 's,.*/,,'` by configure." | |
25558 | ||
25559 | # First look for the input files in the build tree, otherwise in the | |
25560 | # src tree. | |
25561 | ac_file_inputs=`IFS=: | |
25562 | for f in $ac_file_in; do | |
25563 | case $f in | |
25564 | -) echo $tmp/stdin ;; | |
25565 | [\\/$]*) | |
25566 | # Absolute (can't be DOS-style, as IFS=:) | |
25567 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
25568 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
25569 | { (exit 1); exit 1; }; } | |
25570 | echo $f;; | |
25571 | *) # Relative | |
25572 | if test -f "$f"; then | |
25573 | # Build tree | |
25574 | echo $f | |
25575 | elif test -f "$srcdir/$f"; then | |
25576 | # Source tree | |
25577 | echo $srcdir/$f | |
25578 | else | |
25579 | # /dev/null tree | |
25580 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
25581 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
25582 | { (exit 1); exit 1; }; } | |
25583 | fi;; | |
25584 | esac | |
25585 | done` || { (exit 1); exit 1; } | |
25586 | _ACEOF | |
25587 | cat >>$CONFIG_STATUS <<_ACEOF | |
25588 | sed "$ac_vpsub | |
25589 | $extrasub | |
25590 | _ACEOF | |
25591 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25592 | :t | |
25593 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
25594 | s,@configure_input@,$configure_input,;t t | |
25595 | s,@srcdir@,$ac_srcdir,;t t | |
25596 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
25597 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
25598 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
25599 | s,@builddir@,$ac_builddir,;t t | |
25600 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
25601 | s,@top_builddir@,$ac_top_builddir,;t t | |
25602 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
25603 | s,@INSTALL@,$ac_INSTALL,;t t | |
25604 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
25605 | rm -f $tmp/stdin | |
25606 | if test x"$ac_file" != x-; then | |
25607 | mv $tmp/out $ac_file | |
25608 | else | |
25609 | cat $tmp/out | |
25610 | rm -f $tmp/out | |
25611 | fi | |
25612 | ||
25613 | done | |
25614 | _ACEOF | |
25615 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25616 | ||
25617 | # | |
25618 | # CONFIG_HEADER section. | |
25619 | # | |
25620 | ||
25621 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
25622 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
25623 | # | |
25624 | # ac_d sets the value in "#define NAME VALUE" lines. | |
25625 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
25626 | ac_dB='[ ].*$,\1#\2' | |
25627 | ac_dC=' ' | |
25628 | ac_dD=',;t' | |
25629 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
25630 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
25631 | ac_uB='$,\1#\2define\3' | |
25632 | ac_uC=' ' | |
25633 | ac_uD=',;t' | |
25634 | ||
25635 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
25636 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
25637 | case $ac_file in | |
25638 | - | *:- | *:-:* ) # input from stdin | |
25639 | cat >$tmp/stdin | |
25640 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
25641 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
25642 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
25643 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
25644 | * ) ac_file_in=$ac_file.in ;; | |
25645 | esac | |
25646 | ||
25647 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
25648 | echo "$as_me: creating $ac_file" >&6;} | |
25649 | ||
25650 | # First look for the input files in the build tree, otherwise in the | |
25651 | # src tree. | |
25652 | ac_file_inputs=`IFS=: | |
25653 | for f in $ac_file_in; do | |
25654 | case $f in | |
25655 | -) echo $tmp/stdin ;; | |
25656 | [\\/$]*) | |
25657 | # Absolute (can't be DOS-style, as IFS=:) | |
25658 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
25659 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
25660 | { (exit 1); exit 1; }; } | |
25661 | echo $f;; | |
25662 | *) # Relative | |
25663 | if test -f "$f"; then | |
25664 | # Build tree | |
25665 | echo $f | |
25666 | elif test -f "$srcdir/$f"; then | |
25667 | # Source tree | |
25668 | echo $srcdir/$f | |
25669 | else | |
25670 | # /dev/null tree | |
25671 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
25672 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
25673 | { (exit 1); exit 1; }; } | |
25674 | fi;; | |
25675 | esac | |
25676 | done` || { (exit 1); exit 1; } | |
25677 | # Remove the trailing spaces. | |
25678 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
25679 | ||
25680 | _ACEOF | |
25681 | ||
25682 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
25683 | # `conftest.undefs', that substitutes the proper values into | |
25684 | # config.h.in to produce config.h. The first handles `#define' | |
25685 | # templates, and the second `#undef' templates. | |
25686 | # And first: Protect against being on the right side of a sed subst in | |
25687 | # config.status. Protect against being in an unquoted here document | |
25688 | # in config.status. | |
25689 | rm -f conftest.defines conftest.undefs | |
25690 | # Using a here document instead of a string reduces the quoting nightmare. | |
25691 | # Putting comments in sed scripts is not portable. | |
25692 | # | |
25693 | # `end' is used to avoid that the second main sed command (meant for | |
25694 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
25695 | # See the Autoconf documentation for `clear'. | |
25696 | cat >confdef2sed.sed <<\_ACEOF | |
25697 | s/[\\&,]/\\&/g | |
25698 | s,[\\$`],\\&,g | |
25699 | t clear | |
25700 | : clear | |
25701 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
25702 | t end | |
25703 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
25704 | : end | |
25705 | _ACEOF | |
25706 | # If some macros were called several times there might be several times | |
25707 | # the same #defines, which is useless. Nevertheless, we may not want to | |
25708 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
25709 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
25710 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
25711 | rm -f confdef2sed.sed | |
25712 | ||
25713 | # This sed command replaces #undef with comments. This is necessary, for | |
25714 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
25715 | # on some systems where configure will not decide to define it. | |
25716 | cat >>conftest.undefs <<\_ACEOF | |
25717 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
25718 | _ACEOF | |
25719 | ||
25720 | # Break up conftest.defines because some shells have a limit on the size | |
25721 | # of here documents, and old seds have small limits too (100 cmds). | |
25722 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
25723 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
25724 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
25725 | echo ' :' >>$CONFIG_STATUS | |
25726 | rm -f conftest.tail | |
25727 | while grep . conftest.defines >/dev/null | |
25728 | do | |
25729 | # Write a limited-size here document to $tmp/defines.sed. | |
25730 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
25731 | # Speed up: don't consider the non `#define' lines. | |
25732 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
25733 | # Work around the forget-to-reset-the-flag bug. | |
25734 | echo 't clr' >>$CONFIG_STATUS | |
25735 | echo ': clr' >>$CONFIG_STATUS | |
25736 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
25737 | echo 'CEOF | |
25738 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
25739 | rm -f $tmp/in | |
25740 | mv $tmp/out $tmp/in | |
25741 | ' >>$CONFIG_STATUS | |
25742 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
25743 | rm -f conftest.defines | |
25744 | mv conftest.tail conftest.defines | |
25745 | done | |
25746 | rm -f conftest.defines | |
25747 | echo ' fi # egrep' >>$CONFIG_STATUS | |
25748 | echo >>$CONFIG_STATUS | |
25749 | ||
25750 | # Break up conftest.undefs because some shells have a limit on the size | |
25751 | # of here documents, and old seds have small limits too (100 cmds). | |
25752 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
25753 | rm -f conftest.tail | |
25754 | while grep . conftest.undefs >/dev/null | |
25755 | do | |
25756 | # Write a limited-size here document to $tmp/undefs.sed. | |
25757 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
25758 | # Speed up: don't consider the non `#undef' | |
25759 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
25760 | # Work around the forget-to-reset-the-flag bug. | |
25761 | echo 't clr' >>$CONFIG_STATUS | |
25762 | echo ': clr' >>$CONFIG_STATUS | |
25763 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
25764 | echo 'CEOF | |
25765 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
25766 | rm -f $tmp/in | |
25767 | mv $tmp/out $tmp/in | |
25768 | ' >>$CONFIG_STATUS | |
25769 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
25770 | rm -f conftest.undefs | |
25771 | mv conftest.tail conftest.undefs | |
25772 | done | |
25773 | rm -f conftest.undefs | |
25774 | ||
25775 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25776 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
25777 | # use $as_me), people would be surprised to read: | |
25778 | # /* config.h. Generated by config.status. */ | |
25779 | if test x"$ac_file" = x-; then | |
25780 | echo "/* Generated by configure. */" >$tmp/config.h | |
25781 | else | |
25782 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
25783 | fi | |
25784 | cat $tmp/in >>$tmp/config.h | |
25785 | rm -f $tmp/in | |
25786 | if test x"$ac_file" != x-; then | |
25787 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | |
25788 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
25789 | echo "$as_me: $ac_file is unchanged" >&6;} | |
25790 | else | |
25791 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
25792 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25793 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
25794 | X"$ac_file" : 'X\(//\)$' \| \ | |
25795 | X"$ac_file" : 'X\(/\)' \| \ | |
25796 | . : '\(.\)' 2>/dev/null || | |
25797 | echo X"$ac_file" | | |
25798 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25799 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25800 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25801 | /^X\(\/\).*/{ s//\1/; q; } | |
25802 | s/.*/./; q'` | |
25803 | { case "$ac_dir" in | |
25804 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
25805 | *) as_incr_dir=.;; | |
25806 | esac | |
25807 | as_dummy="$ac_dir" | |
25808 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
25809 | case $as_mkdir_dir in | |
25810 | # Skip DOS drivespec | |
25811 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
25812 | *) | |
25813 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
25814 | test -d "$as_incr_dir" || | |
25815 | mkdir "$as_incr_dir" || | |
25816 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 | |
25817 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} | |
25818 | { (exit 1); exit 1; }; } | |
25819 | ;; | |
25820 | esac | |
25821 | done; } | |
25822 | ||
25823 | rm -f $ac_file | |
25824 | mv $tmp/config.h $ac_file | |
25825 | fi | |
25826 | else | |
25827 | cat $tmp/config.h | |
25828 | rm -f $tmp/config.h | |
25829 | fi | |
25830 | # Run the commands associated with the file. | |
25831 | case $ac_file in | |
25832 | config.h ) # update the timestamp | |
25833 | echo timestamp >"./stamp-h1" | |
25834 | ;; | |
25835 | esac | |
25836 | done | |
25837 | _ACEOF | |
25838 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25839 | ||
25840 | # | |
25841 | # CONFIG_COMMANDS section. | |
25842 | # | |
25843 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
25844 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
25845 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
25846 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
25847 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25848 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
25849 | X"$ac_dest" : 'X\(//\)$' \| \ | |
25850 | X"$ac_dest" : 'X\(/\)' \| \ | |
25851 | . : '\(.\)' 2>/dev/null || | |
25852 | echo X"$ac_dest" | | |
25853 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25854 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25855 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25856 | /^X\(\/\).*/{ s//\1/; q; } | |
25857 | s/.*/./; q'` | |
25858 | ac_builddir=. | |
25859 | ||
25860 | if test "$ac_dir" != .; then | |
25861 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
25862 | # A "../" for each directory in $ac_dir_suffix. | |
25863 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
25864 | else | |
25865 | ac_dir_suffix= ac_top_builddir= | |
25866 | fi | |
25867 | ||
25868 | case $srcdir in | |
25869 | .) # No --srcdir option. We are building in place. | |
25870 | ac_srcdir=. | |
25871 | if test -z "$ac_top_builddir"; then | |
25872 | ac_top_srcdir=. | |
25873 | else | |
25874 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
25875 | fi ;; | |
25876 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
25877 | ac_srcdir=$srcdir$ac_dir_suffix; | |
25878 | ac_top_srcdir=$srcdir ;; | |
25879 | *) # Relative path. | |
25880 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
25881 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
25882 | esac | |
25883 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
25884 | # absolute. | |
25885 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
25886 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | |
25887 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
25888 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
25889 | ||
25890 | ||
25891 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
25892 | echo "$as_me: executing $ac_dest commands" >&6;} | |
25893 | case $ac_dest in | |
25894 | default-1 ) | |
25895 | test x"$AMDEP_TRUE" != x"" || | |
25896 | for mf in $CONFIG_FILES; do | |
25897 | case "$mf" in | |
25898 | Makefile) dirpart=.;; | |
25899 | */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;; | |
25900 | *) continue;; | |
25901 | esac | |
25902 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue | |
25903 | # Extract the definition of DEP_FILES from the Makefile without | |
25904 | # running `make'. | |
25905 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` | |
25906 | test -z "$DEPDIR" && continue | |
25907 | # When using ansi2knr, U may be empty or an underscore; expand it | |
25908 | U=`sed -n -e '/^U = / s///p' < "$mf"` | |
25909 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" | |
25910 | # We invoke sed twice because it is the simplest approach to | |
25911 | # changing $(DEPDIR) to its actual value in the expansion. | |
25912 | for file in `sed -n -e ' | |
25913 | /^DEP_FILES = .*\\\\$/ { | |
25914 | s/^DEP_FILES = // | |
25915 | :loop | |
25916 | s/\\\\$// | |
25917 | p | |
25918 | n | |
25919 | /\\\\$/ b loop | |
25920 | p | |
25921 | } | |
25922 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ | |
25923 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
25924 | # Make sure the directory exists. | |
25925 | test -f "$dirpart/$file" && continue | |
25926 | fdir=`echo "$file" | sed -e 's|/[^/]*$||'` | |
25927 | $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1 | |
25928 | # echo "creating $dirpart/$file" | |
25929 | echo '# dummy' > "$dirpart/$file" | |
25930 | done | |
25931 | done | |
25932 | ;; | |
25933 | esac | |
25934 | done | |
25935 | _ACEOF | |
25936 | ||
25937 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25938 | ||
25939 | { (exit 0); exit 0; } | |
25940 | _ACEOF | |
25941 | if test "x$with_fast_perl" = "xyes"; then | |
25942 | perl -i.bak $ac_aux_dir/conf.change.pl $CONFIG_STATUS \ | |
25943 | || mv $CONFIG_STATUS.bak $CONFIG_STATUS | |
25944 | rm -f $CONFIG_STATUS.bak | |
25945 | fi | |
25946 | chmod +x $CONFIG_STATUS | |
25947 | ac_clean_files=$ac_clean_files_save | |
25948 | ||
25949 | ||
25950 | # configure is writing to config.log, and then calls config.status. | |
25951 | # config.status does its own redirection, appending to config.log. | |
25952 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
25953 | # by configure, so config.status won't be able to write to it; its | |
25954 | # output is simply discarded. So we exec the FD to /dev/null, | |
25955 | # effectively closing config.log, so it can be properly (re)opened and | |
25956 | # appended to by config.status. When coming back to configure, we | |
25957 | # need to make the FD available again. | |
25958 | if test "$no_create" != yes; then | |
25959 | ac_cs_success=: | |
25960 | exec 5>/dev/null | |
25961 | $SHELL $CONFIG_STATUS || ac_cs_success=false | |
25962 | exec 5>>config.log | |
25963 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
25964 | # would make configure fail if this is the last instruction. | |
25965 | $ac_cs_success || { (exit 1); exit 1; } | |
25966 | fi | |
25967 | ||
25968 | if test "$all_tests" = "bad"; then | |
25969 | if test ! "$cache_file" = "/dev/null"; then | |
25970 | echo "" | |
25971 | echo "Please remove the file $cache_file after changing your setup" | |
25972 | echo "so that configure will find the changes next time." | |
25973 | echo "" | |
25974 | fi | |
25975 | else | |
25976 | echo "" | |
25977 | echo "Good - your configure finished. Start make now" | |
25978 | echo "" | |
25979 | fi |