d9898ee8 |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
3 | # Generated by GNU Autoconf 2.59 for numlib 0.10. |
4 | # |
5 | # Report bugs to <courier-users@lists.sourceforge.net>. |
6 | # |
7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
8 | # This configure script is free software; the Free Software Foundation |
9 | # gives unlimited permission to copy, distribute and modify it. |
10 | ## --------------------- ## |
11 | ## M4sh Initialization. ## |
12 | ## --------------------- ## |
13 | |
14 | # Be Bourne compatible |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh |
17 | NULLCMD=: |
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
19 | # is contrary to our usage. Disable this feature. |
20 | alias -g '${1+"$@"}'='"$@"' |
21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
22 | set -o posix |
23 | fi |
24 | DUALCASE=1; export DUALCASE # for MKS sh |
25 | |
26 | # Support unset when possible. |
27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
28 | as_unset=unset |
29 | else |
30 | as_unset=false |
31 | fi |
32 | |
33 | |
34 | # Work around bugs in pre-3.0 UWIN ksh. |
35 | $as_unset ENV MAIL MAILPATH |
36 | PS1='$ ' |
37 | PS2='> ' |
38 | PS4='+ ' |
39 | |
40 | # NLS nuisances. |
41 | for as_var in \ |
42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
44 | LC_TELEPHONE LC_TIME |
45 | do |
46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
47 | eval $as_var=C; export $as_var |
48 | else |
49 | $as_unset $as_var |
50 | fi |
51 | done |
52 | |
53 | # Required to use basename. |
54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
55 | as_expr=expr |
56 | else |
57 | as_expr=false |
58 | fi |
59 | |
60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
61 | as_basename=basename |
62 | else |
63 | as_basename=false |
64 | fi |
65 | |
66 | |
67 | # Name of the executable. |
68 | as_me=`$as_basename "$0" || |
69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
70 | X"$0" : 'X\(//\)$' \| \ |
71 | X"$0" : 'X\(/\)$' \| \ |
72 | . : '\(.\)' 2>/dev/null || |
73 | echo X/"$0" | |
74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
76 | /^X\/\(\/\).*/{ s//\1/; q; } |
77 | s/.*/./; q'` |
78 | |
79 | |
80 | # PATH needs CR, and LINENO needs CR and PATH. |
81 | # Avoid depending upon Character Ranges. |
82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
85 | as_cr_digits='0123456789' |
86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
87 | |
88 | # The user is always right. |
89 | if test "${PATH_SEPARATOR+set}" != set; then |
90 | echo "#! /bin/sh" >conf$$.sh |
91 | echo "exit 0" >>conf$$.sh |
92 | chmod +x conf$$.sh |
93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
94 | PATH_SEPARATOR=';' |
95 | else |
96 | PATH_SEPARATOR=: |
97 | fi |
98 | rm -f conf$$.sh |
99 | fi |
100 | |
101 | |
102 | as_lineno_1=$LINENO |
103 | as_lineno_2=$LINENO |
104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
107 | # Find who we are. Look in the path if we contain no path at all |
108 | # relative or not. |
109 | case $0 in |
110 | *[\\/]* ) as_myself=$0 ;; |
111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
112 | for as_dir in $PATH |
113 | do |
114 | IFS=$as_save_IFS |
115 | test -z "$as_dir" && as_dir=. |
116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
117 | done |
118 | |
119 | ;; |
120 | esac |
121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
122 | # in which case we are not to be found in the path. |
123 | if test "x$as_myself" = x; then |
124 | as_myself=$0 |
125 | fi |
126 | if test ! -f "$as_myself"; then |
127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
128 | { (exit 1); exit 1; }; } |
129 | fi |
130 | case $CONFIG_SHELL in |
131 | '') |
132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
134 | do |
135 | IFS=$as_save_IFS |
136 | test -z "$as_dir" && as_dir=. |
137 | for as_base in sh bash ksh sh5; do |
138 | case $as_dir in |
139 | /*) |
140 | if ("$as_dir/$as_base" -c ' |
141 | as_lineno_1=$LINENO |
142 | as_lineno_2=$LINENO |
143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
148 | CONFIG_SHELL=$as_dir/$as_base |
149 | export CONFIG_SHELL |
150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
151 | fi;; |
152 | esac |
153 | done |
154 | done |
155 | ;; |
156 | esac |
157 | |
158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
159 | # uniformly replaced by the line number. The first 'sed' inserts a |
160 | # line-number line before each line; the second 'sed' does the real |
161 | # work. The second script uses 'N' to pair each line-number line |
162 | # with the numbered line, and appends trailing '-' during |
163 | # substitution so that $LINENO is not a special case at line end. |
164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
166 | sed '=' <$as_myself | |
167 | sed ' |
168 | N |
169 | s,$,-, |
170 | : loop |
171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
172 | t loop |
173 | s,-$,, |
174 | s,^['$as_cr_digits']*\n,, |
175 | ' >$as_me.lineno && |
176 | chmod +x $as_me.lineno || |
177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
178 | { (exit 1); exit 1; }; } |
179 | |
180 | # Don't try to exec as it changes $[0], causing all sort of problems |
181 | # (the dirname of $[0] is not the place where we might find the |
182 | # original and so on. Autoconf is especially sensible to this). |
183 | . ./$as_me.lineno |
184 | # Exit status is that of the last command. |
185 | exit |
186 | } |
187 | |
188 | |
189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
190 | *c*,-n*) ECHO_N= ECHO_C=' |
191 | ' ECHO_T=' ' ;; |
192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
194 | esac |
195 | |
196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
197 | as_expr=expr |
198 | else |
199 | as_expr=false |
200 | fi |
201 | |
202 | rm -f conf$$ conf$$.exe conf$$.file |
203 | echo >conf$$.file |
204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
205 | # We could just check for DJGPP; but this test a) works b) is more generic |
206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
207 | if test -f conf$$.exe; then |
208 | # Don't use ln at all; we don't have any links |
209 | as_ln_s='cp -p' |
210 | else |
211 | as_ln_s='ln -s' |
212 | fi |
213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
214 | as_ln_s=ln |
215 | else |
216 | as_ln_s='cp -p' |
217 | fi |
218 | rm -f conf$$ conf$$.exe conf$$.file |
219 | |
220 | if mkdir -p . 2>/dev/null; then |
221 | as_mkdir_p=: |
222 | else |
223 | test -d ./-p && rmdir ./-p |
224 | as_mkdir_p=false |
225 | fi |
226 | |
227 | as_executable_p="test -f" |
228 | |
229 | # Sed expression to map a string onto a valid CPP name. |
230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
231 | |
232 | # Sed expression to map a string onto a valid variable name. |
233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
234 | |
235 | |
236 | # IFS |
237 | # We need space, tab and new line, in precisely that order. |
238 | as_nl=' |
239 | ' |
240 | IFS=" $as_nl" |
241 | |
242 | # CDPATH. |
243 | $as_unset CDPATH |
244 | |
245 | |
246 | |
247 | # Check that we are running under the correct shell. |
248 | SHELL=${CONFIG_SHELL-/bin/sh} |
249 | |
250 | case X$ECHO in |
251 | X*--fallback-echo) |
252 | # Remove one level of quotation (which was required for Make). |
253 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
254 | ;; |
255 | esac |
256 | |
257 | echo=${ECHO-echo} |
258 | if test "X$1" = X--no-reexec; then |
259 | # Discard the --no-reexec flag, and continue. |
260 | shift |
261 | elif test "X$1" = X--fallback-echo; then |
262 | # Avoid inline document here, it may be left over |
263 | : |
264 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
265 | # Yippee, $echo works! |
266 | : |
267 | else |
268 | # Restart under the correct shell. |
269 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
270 | fi |
271 | |
272 | if test "X$1" = X--fallback-echo; then |
273 | # used as fallback echo |
274 | shift |
275 | cat <<EOF |
276 | $* |
277 | EOF |
278 | exit 0 |
279 | fi |
280 | |
281 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
282 | # if CDPATH is set. |
283 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
284 | |
285 | if test -z "$ECHO"; then |
286 | if test "X${echo_test_string+set}" != Xset; then |
287 | # find a string as large as possible, as long as the shell can cope with it |
288 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
289 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
290 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
291 | echo_test_string=`eval $cmd` && |
292 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
293 | then |
294 | break |
295 | fi |
296 | done |
297 | fi |
298 | |
299 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
300 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
301 | test "X$echo_testing_string" = "X$echo_test_string"; then |
302 | : |
303 | else |
304 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
305 | # backslashes. This makes it impossible to quote backslashes using |
306 | # echo "$something" | sed 's/\\/\\\\/g' |
307 | # |
308 | # So, first we look for a working echo in the user's PATH. |
309 | |
310 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
311 | for dir in $PATH /usr/ucb; do |
312 | IFS="$lt_save_ifs" |
313 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
314 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
315 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
316 | test "X$echo_testing_string" = "X$echo_test_string"; then |
317 | echo="$dir/echo" |
318 | break |
319 | fi |
320 | done |
321 | IFS="$lt_save_ifs" |
322 | |
323 | if test "X$echo" = Xecho; then |
324 | # We didn't find a better echo, so look for alternatives. |
325 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
326 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
327 | test "X$echo_testing_string" = "X$echo_test_string"; then |
328 | # This shell has a builtin print -r that does the trick. |
329 | echo='print -r' |
330 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
331 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
332 | # If we have ksh, try running configure again with it. |
333 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
334 | export ORIGINAL_CONFIG_SHELL |
335 | CONFIG_SHELL=/bin/ksh |
336 | export CONFIG_SHELL |
337 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
338 | else |
339 | # Try using printf. |
340 | echo='printf %s\n' |
341 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
342 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
343 | test "X$echo_testing_string" = "X$echo_test_string"; then |
344 | # Cool, printf works |
345 | : |
346 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
347 | test "X$echo_testing_string" = 'X\t' && |
348 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
349 | test "X$echo_testing_string" = "X$echo_test_string"; then |
350 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
351 | export CONFIG_SHELL |
352 | SHELL="$CONFIG_SHELL" |
353 | export SHELL |
354 | echo="$CONFIG_SHELL $0 --fallback-echo" |
355 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
356 | test "X$echo_testing_string" = 'X\t' && |
357 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
358 | test "X$echo_testing_string" = "X$echo_test_string"; then |
359 | echo="$CONFIG_SHELL $0 --fallback-echo" |
360 | else |
361 | # maybe with a smaller string... |
362 | prev=: |
363 | |
364 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
365 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
366 | then |
367 | break |
368 | fi |
369 | prev="$cmd" |
370 | done |
371 | |
372 | if test "$prev" != 'sed 50q "$0"'; then |
373 | echo_test_string=`eval $prev` |
374 | export echo_test_string |
375 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
376 | else |
377 | # Oops. We lost completely, so just stick with echo. |
378 | echo=echo |
379 | fi |
380 | fi |
381 | fi |
382 | fi |
383 | fi |
384 | fi |
385 | |
386 | # Copy echo and quote the copy suitably for passing to libtool from |
387 | # the Makefile, instead of quoting the original, which is used later. |
388 | ECHO=$echo |
389 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
390 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
391 | fi |
392 | |
393 | |
394 | |
395 | |
396 | tagnames=${tagnames+${tagnames},}CXX |
397 | |
398 | tagnames=${tagnames+${tagnames},}F77 |
399 | |
400 | # Name of the host. |
401 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
402 | # so uname gets run too. |
403 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
404 | |
405 | exec 6>&1 |
406 | |
407 | # |
408 | # Initializations. |
409 | # |
410 | ac_default_prefix=/usr/local |
411 | ac_config_libobj_dir=. |
412 | cross_compiling=no |
413 | subdirs= |
414 | MFLAGS= |
415 | MAKEFLAGS= |
416 | SHELL=${CONFIG_SHELL-/bin/sh} |
417 | |
418 | # Maximum number of lines to put in a shell here document. |
419 | # This variable seems obsolete. It should probably be removed, and |
420 | # only ac_max_sed_lines should be used. |
421 | : ${ac_max_here_lines=38} |
422 | |
423 | # Identity of this package. |
424 | PACKAGE_NAME='numlib' |
425 | PACKAGE_TARNAME='numlib' |
426 | PACKAGE_VERSION='0.10' |
427 | PACKAGE_STRING='numlib 0.10' |
428 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' |
429 | |
430 | ac_unique_file="atotimet.c" |
431 | # Factoring default headers for most tests. |
432 | ac_includes_default="\ |
433 | #include <stdio.h> |
434 | #if HAVE_SYS_TYPES_H |
435 | # include <sys/types.h> |
436 | #endif |
437 | #if HAVE_SYS_STAT_H |
438 | # include <sys/stat.h> |
439 | #endif |
440 | #if STDC_HEADERS |
441 | # include <stdlib.h> |
442 | # include <stddef.h> |
443 | #else |
444 | # if HAVE_STDLIB_H |
445 | # include <stdlib.h> |
446 | # endif |
447 | #endif |
448 | #if HAVE_STRING_H |
449 | # if !STDC_HEADERS && HAVE_MEMORY_H |
450 | # include <memory.h> |
451 | # endif |
452 | # include <string.h> |
453 | #endif |
454 | #if HAVE_STRINGS_H |
455 | # include <strings.h> |
456 | #endif |
457 | #if HAVE_INTTYPES_H |
458 | # include <inttypes.h> |
459 | #else |
460 | # if HAVE_STDINT_H |
461 | # include <stdint.h> |
462 | # endif |
463 | #endif |
464 | #if HAVE_UNISTD_H |
465 | # include <unistd.h> |
466 | #endif" |
467 | |
468 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS' |
469 | ac_subst_files='' |
470 | |
471 | # Initialize some variables set by options. |
472 | ac_init_help= |
473 | ac_init_version=false |
474 | # The variables have the same names as the options, with |
475 | # dashes changed to underlines. |
476 | cache_file=/dev/null |
477 | exec_prefix=NONE |
478 | no_create= |
479 | no_recursion= |
480 | prefix=NONE |
481 | program_prefix=NONE |
482 | program_suffix=NONE |
483 | program_transform_name=s,x,x, |
484 | silent= |
485 | site= |
486 | srcdir= |
487 | verbose= |
488 | x_includes=NONE |
489 | x_libraries=NONE |
490 | |
491 | # Installation directory options. |
492 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
493 | # and all the variables that are supposed to be based on exec_prefix |
494 | # by default will actually change. |
495 | # Use braces instead of parens because sh, perl, etc. also accept them. |
496 | bindir='${exec_prefix}/bin' |
497 | sbindir='${exec_prefix}/sbin' |
498 | libexecdir='${exec_prefix}/libexec' |
499 | datadir='${prefix}/share' |
500 | sysconfdir='${prefix}/etc' |
501 | sharedstatedir='${prefix}/com' |
502 | localstatedir='${prefix}/var' |
503 | libdir='${exec_prefix}/lib' |
504 | includedir='${prefix}/include' |
505 | oldincludedir='/usr/include' |
506 | infodir='${prefix}/info' |
507 | mandir='${prefix}/man' |
508 | |
509 | ac_prev= |
510 | for ac_option |
511 | do |
512 | # If the previous option needs an argument, assign it. |
513 | if test -n "$ac_prev"; then |
514 | eval "$ac_prev=\$ac_option" |
515 | ac_prev= |
516 | continue |
517 | fi |
518 | |
519 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
520 | |
521 | # Accept the important Cygnus configure options, so we can diagnose typos. |
522 | |
523 | case $ac_option in |
524 | |
525 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
526 | ac_prev=bindir ;; |
527 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
528 | bindir=$ac_optarg ;; |
529 | |
530 | -build | --build | --buil | --bui | --bu) |
531 | ac_prev=build_alias ;; |
532 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
533 | build_alias=$ac_optarg ;; |
534 | |
535 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
536 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
537 | ac_prev=cache_file ;; |
538 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
539 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
540 | cache_file=$ac_optarg ;; |
541 | |
542 | --config-cache | -C) |
543 | cache_file=config.cache ;; |
544 | |
545 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
546 | ac_prev=datadir ;; |
547 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
548 | | --da=*) |
549 | datadir=$ac_optarg ;; |
550 | |
551 | -disable-* | --disable-*) |
552 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
553 | # Reject names that are not valid shell variable names. |
554 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
555 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
556 | { (exit 1); exit 1; }; } |
557 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
558 | eval "enable_$ac_feature=no" ;; |
559 | |
560 | -enable-* | --enable-*) |
561 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
562 | # Reject names that are not valid shell variable names. |
563 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
564 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
565 | { (exit 1); exit 1; }; } |
566 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
567 | case $ac_option in |
568 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
569 | *) ac_optarg=yes ;; |
570 | esac |
571 | eval "enable_$ac_feature='$ac_optarg'" ;; |
572 | |
573 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
574 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
575 | | --exec | --exe | --ex) |
576 | ac_prev=exec_prefix ;; |
577 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
578 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
579 | | --exec=* | --exe=* | --ex=*) |
580 | exec_prefix=$ac_optarg ;; |
581 | |
582 | -gas | --gas | --ga | --g) |
583 | # Obsolete; use --with-gas. |
584 | with_gas=yes ;; |
585 | |
586 | -help | --help | --hel | --he | -h) |
587 | ac_init_help=long ;; |
588 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
589 | ac_init_help=recursive ;; |
590 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
591 | ac_init_help=short ;; |
592 | |
593 | -host | --host | --hos | --ho) |
594 | ac_prev=host_alias ;; |
595 | -host=* | --host=* | --hos=* | --ho=*) |
596 | host_alias=$ac_optarg ;; |
597 | |
598 | -includedir | --includedir | --includedi | --included | --include \ |
599 | | --includ | --inclu | --incl | --inc) |
600 | ac_prev=includedir ;; |
601 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
602 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
603 | includedir=$ac_optarg ;; |
604 | |
605 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
606 | ac_prev=infodir ;; |
607 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
608 | infodir=$ac_optarg ;; |
609 | |
610 | -libdir | --libdir | --libdi | --libd) |
611 | ac_prev=libdir ;; |
612 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
613 | libdir=$ac_optarg ;; |
614 | |
615 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
616 | | --libexe | --libex | --libe) |
617 | ac_prev=libexecdir ;; |
618 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
619 | | --libexe=* | --libex=* | --libe=*) |
620 | libexecdir=$ac_optarg ;; |
621 | |
622 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
623 | | --localstate | --localstat | --localsta | --localst \ |
624 | | --locals | --local | --loca | --loc | --lo) |
625 | ac_prev=localstatedir ;; |
626 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
627 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
628 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
629 | localstatedir=$ac_optarg ;; |
630 | |
631 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
632 | ac_prev=mandir ;; |
633 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
634 | mandir=$ac_optarg ;; |
635 | |
636 | -nfp | --nfp | --nf) |
637 | # Obsolete; use --without-fp. |
638 | with_fp=no ;; |
639 | |
640 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
641 | | --no-cr | --no-c | -n) |
642 | no_create=yes ;; |
643 | |
644 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
645 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
646 | no_recursion=yes ;; |
647 | |
648 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
649 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
650 | | --oldin | --oldi | --old | --ol | --o) |
651 | ac_prev=oldincludedir ;; |
652 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
653 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
654 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
655 | oldincludedir=$ac_optarg ;; |
656 | |
657 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
658 | ac_prev=prefix ;; |
659 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
660 | prefix=$ac_optarg ;; |
661 | |
662 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
663 | | --program-pre | --program-pr | --program-p) |
664 | ac_prev=program_prefix ;; |
665 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
666 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
667 | program_prefix=$ac_optarg ;; |
668 | |
669 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
670 | | --program-suf | --program-su | --program-s) |
671 | ac_prev=program_suffix ;; |
672 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
673 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
674 | program_suffix=$ac_optarg ;; |
675 | |
676 | -program-transform-name | --program-transform-name \ |
677 | | --program-transform-nam | --program-transform-na \ |
678 | | --program-transform-n | --program-transform- \ |
679 | | --program-transform | --program-transfor \ |
680 | | --program-transfo | --program-transf \ |
681 | | --program-trans | --program-tran \ |
682 | | --progr-tra | --program-tr | --program-t) |
683 | ac_prev=program_transform_name ;; |
684 | -program-transform-name=* | --program-transform-name=* \ |
685 | | --program-transform-nam=* | --program-transform-na=* \ |
686 | | --program-transform-n=* | --program-transform-=* \ |
687 | | --program-transform=* | --program-transfor=* \ |
688 | | --program-transfo=* | --program-transf=* \ |
689 | | --program-trans=* | --program-tran=* \ |
690 | | --progr-tra=* | --program-tr=* | --program-t=*) |
691 | program_transform_name=$ac_optarg ;; |
692 | |
693 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
694 | | -silent | --silent | --silen | --sile | --sil) |
695 | silent=yes ;; |
696 | |
697 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
698 | ac_prev=sbindir ;; |
699 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
700 | | --sbi=* | --sb=*) |
701 | sbindir=$ac_optarg ;; |
702 | |
703 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
704 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
705 | | --sharedst | --shareds | --shared | --share | --shar \ |
706 | | --sha | --sh) |
707 | ac_prev=sharedstatedir ;; |
708 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
709 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
710 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
711 | | --sha=* | --sh=*) |
712 | sharedstatedir=$ac_optarg ;; |
713 | |
714 | -site | --site | --sit) |
715 | ac_prev=site ;; |
716 | -site=* | --site=* | --sit=*) |
717 | site=$ac_optarg ;; |
718 | |
719 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
720 | ac_prev=srcdir ;; |
721 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
722 | srcdir=$ac_optarg ;; |
723 | |
724 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
725 | | --syscon | --sysco | --sysc | --sys | --sy) |
726 | ac_prev=sysconfdir ;; |
727 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
728 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
729 | sysconfdir=$ac_optarg ;; |
730 | |
731 | -target | --target | --targe | --targ | --tar | --ta | --t) |
732 | ac_prev=target_alias ;; |
733 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
734 | target_alias=$ac_optarg ;; |
735 | |
736 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
737 | verbose=yes ;; |
738 | |
739 | -version | --version | --versio | --versi | --vers | -V) |
740 | ac_init_version=: ;; |
741 | |
742 | -with-* | --with-*) |
743 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
744 | # Reject names that are not valid shell variable names. |
745 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
746 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
747 | { (exit 1); exit 1; }; } |
748 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
749 | case $ac_option in |
750 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
751 | *) ac_optarg=yes ;; |
752 | esac |
753 | eval "with_$ac_package='$ac_optarg'" ;; |
754 | |
755 | -without-* | --without-*) |
756 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
757 | # Reject names that are not valid shell variable names. |
758 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
759 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
760 | { (exit 1); exit 1; }; } |
761 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
762 | eval "with_$ac_package=no" ;; |
763 | |
764 | --x) |
765 | # Obsolete; use --with-x. |
766 | with_x=yes ;; |
767 | |
768 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
769 | | --x-incl | --x-inc | --x-in | --x-i) |
770 | ac_prev=x_includes ;; |
771 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
772 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
773 | x_includes=$ac_optarg ;; |
774 | |
775 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
776 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
777 | ac_prev=x_libraries ;; |
778 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
779 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
780 | x_libraries=$ac_optarg ;; |
781 | |
782 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
783 | Try \`$0 --help' for more information." >&2 |
784 | { (exit 1); exit 1; }; } |
785 | ;; |
786 | |
787 | *=*) |
788 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
789 | # Reject names that are not valid shell variable names. |
790 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
791 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
792 | { (exit 1); exit 1; }; } |
793 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
794 | eval "$ac_envvar='$ac_optarg'" |
795 | export $ac_envvar ;; |
796 | |
797 | *) |
798 | # FIXME: should be removed in autoconf 3.0. |
799 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
800 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
801 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
802 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
803 | ;; |
804 | |
805 | esac |
806 | done |
807 | |
808 | if test -n "$ac_prev"; then |
809 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
810 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
811 | { (exit 1); exit 1; }; } |
812 | fi |
813 | |
814 | # Be sure to have absolute paths. |
815 | for ac_var in exec_prefix prefix |
816 | do |
817 | eval ac_val=$`echo $ac_var` |
818 | case $ac_val in |
819 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
820 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
821 | { (exit 1); exit 1; }; };; |
822 | esac |
823 | done |
824 | |
825 | # Be sure to have absolute paths. |
826 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
827 | localstatedir libdir includedir oldincludedir infodir mandir |
828 | do |
829 | eval ac_val=$`echo $ac_var` |
830 | case $ac_val in |
831 | [\\/$]* | ?:[\\/]* ) ;; |
832 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
833 | { (exit 1); exit 1; }; };; |
834 | esac |
835 | done |
836 | |
837 | # There might be people who depend on the old broken behavior: `$host' |
838 | # used to hold the argument of --host etc. |
839 | # FIXME: To remove some day. |
840 | build=$build_alias |
841 | host=$host_alias |
842 | target=$target_alias |
843 | |
844 | # FIXME: To remove some day. |
845 | if test "x$host_alias" != x; then |
846 | if test "x$build_alias" = x; then |
847 | cross_compiling=maybe |
848 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
849 | If a cross compiler is detected then cross compile mode will be used." >&2 |
850 | elif test "x$build_alias" != "x$host_alias"; then |
851 | cross_compiling=yes |
852 | fi |
853 | fi |
854 | |
855 | ac_tool_prefix= |
856 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
857 | |
858 | test "$silent" = yes && exec 6>/dev/null |
859 | |
860 | |
861 | # Find the source files, if location was not specified. |
862 | if test -z "$srcdir"; then |
863 | ac_srcdir_defaulted=yes |
864 | # Try the directory containing this script, then its parent. |
865 | ac_confdir=`(dirname "$0") 2>/dev/null || |
866 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
867 | X"$0" : 'X\(//\)[^/]' \| \ |
868 | X"$0" : 'X\(//\)$' \| \ |
869 | X"$0" : 'X\(/\)' \| \ |
870 | . : '\(.\)' 2>/dev/null || |
871 | echo X"$0" | |
872 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
873 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
874 | /^X\(\/\/\)$/{ s//\1/; q; } |
875 | /^X\(\/\).*/{ s//\1/; q; } |
876 | s/.*/./; q'` |
877 | srcdir=$ac_confdir |
878 | if test ! -r $srcdir/$ac_unique_file; then |
879 | srcdir=.. |
880 | fi |
881 | else |
882 | ac_srcdir_defaulted=no |
883 | fi |
884 | if test ! -r $srcdir/$ac_unique_file; then |
885 | if test "$ac_srcdir_defaulted" = yes; then |
886 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
887 | { (exit 1); exit 1; }; } |
888 | else |
889 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
890 | { (exit 1); exit 1; }; } |
891 | fi |
892 | fi |
893 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
894 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
895 | { (exit 1); exit 1; }; } |
896 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
897 | ac_env_build_alias_set=${build_alias+set} |
898 | ac_env_build_alias_value=$build_alias |
899 | ac_cv_env_build_alias_set=${build_alias+set} |
900 | ac_cv_env_build_alias_value=$build_alias |
901 | ac_env_host_alias_set=${host_alias+set} |
902 | ac_env_host_alias_value=$host_alias |
903 | ac_cv_env_host_alias_set=${host_alias+set} |
904 | ac_cv_env_host_alias_value=$host_alias |
905 | ac_env_target_alias_set=${target_alias+set} |
906 | ac_env_target_alias_value=$target_alias |
907 | ac_cv_env_target_alias_set=${target_alias+set} |
908 | ac_cv_env_target_alias_value=$target_alias |
909 | ac_env_CC_set=${CC+set} |
910 | ac_env_CC_value=$CC |
911 | ac_cv_env_CC_set=${CC+set} |
912 | ac_cv_env_CC_value=$CC |
913 | ac_env_CFLAGS_set=${CFLAGS+set} |
914 | ac_env_CFLAGS_value=$CFLAGS |
915 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
916 | ac_cv_env_CFLAGS_value=$CFLAGS |
917 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
918 | ac_env_LDFLAGS_value=$LDFLAGS |
919 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
920 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
921 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
922 | ac_env_CPPFLAGS_value=$CPPFLAGS |
923 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
924 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
925 | ac_env_CPP_set=${CPP+set} |
926 | ac_env_CPP_value=$CPP |
927 | ac_cv_env_CPP_set=${CPP+set} |
928 | ac_cv_env_CPP_value=$CPP |
929 | ac_env_CXX_set=${CXX+set} |
930 | ac_env_CXX_value=$CXX |
931 | ac_cv_env_CXX_set=${CXX+set} |
932 | ac_cv_env_CXX_value=$CXX |
933 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
934 | ac_env_CXXFLAGS_value=$CXXFLAGS |
935 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
936 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
937 | ac_env_CXXCPP_set=${CXXCPP+set} |
938 | ac_env_CXXCPP_value=$CXXCPP |
939 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
940 | ac_cv_env_CXXCPP_value=$CXXCPP |
941 | ac_env_F77_set=${F77+set} |
942 | ac_env_F77_value=$F77 |
943 | ac_cv_env_F77_set=${F77+set} |
944 | ac_cv_env_F77_value=$F77 |
945 | ac_env_FFLAGS_set=${FFLAGS+set} |
946 | ac_env_FFLAGS_value=$FFLAGS |
947 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
948 | ac_cv_env_FFLAGS_value=$FFLAGS |
949 | |
950 | # |
951 | # Report the --help message. |
952 | # |
953 | if test "$ac_init_help" = "long"; then |
954 | # Omit some internal or obsolete options to make the list less imposing. |
955 | # This message is too long to be a string in the A/UX 3.1 sh. |
956 | cat <<_ACEOF |
957 | \`configure' configures numlib 0.10 to adapt to many kinds of systems. |
958 | |
959 | Usage: $0 [OPTION]... [VAR=VALUE]... |
960 | |
961 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
962 | VAR=VALUE. See below for descriptions of some of the useful variables. |
963 | |
964 | Defaults for the options are specified in brackets. |
965 | |
966 | Configuration: |
967 | -h, --help display this help and exit |
968 | --help=short display options specific to this package |
969 | --help=recursive display the short help of all the included packages |
970 | -V, --version display version information and exit |
971 | -q, --quiet, --silent do not print \`checking...' messages |
972 | --cache-file=FILE cache test results in FILE [disabled] |
973 | -C, --config-cache alias for \`--cache-file=config.cache' |
974 | -n, --no-create do not create output files |
975 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
976 | |
977 | _ACEOF |
978 | |
979 | cat <<_ACEOF |
980 | Installation directories: |
981 | --prefix=PREFIX install architecture-independent files in PREFIX |
982 | [$ac_default_prefix] |
983 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
984 | [PREFIX] |
985 | |
986 | By default, \`make install' will install all the files in |
987 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
988 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
989 | for instance \`--prefix=\$HOME'. |
990 | |
991 | For better control, use the options below. |
992 | |
993 | Fine tuning of the installation directories: |
994 | --bindir=DIR user executables [EPREFIX/bin] |
995 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
996 | --libexecdir=DIR program executables [EPREFIX/libexec] |
997 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
998 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
999 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1000 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1001 | --libdir=DIR object code libraries [EPREFIX/lib] |
1002 | --includedir=DIR C header files [PREFIX/include] |
1003 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
1004 | --infodir=DIR info documentation [PREFIX/info] |
1005 | --mandir=DIR man documentation [PREFIX/man] |
1006 | _ACEOF |
1007 | |
1008 | cat <<\_ACEOF |
1009 | |
1010 | Program names: |
1011 | --program-prefix=PREFIX prepend PREFIX to installed program names |
1012 | --program-suffix=SUFFIX append SUFFIX to installed program names |
1013 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1014 | |
1015 | System types: |
1016 | --build=BUILD configure for building on BUILD [guessed] |
1017 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1018 | _ACEOF |
1019 | fi |
1020 | |
1021 | if test -n "$ac_init_help"; then |
1022 | case $ac_init_help in |
1023 | short | recursive ) echo "Configuration of numlib 0.10:";; |
1024 | esac |
1025 | cat <<\_ACEOF |
1026 | |
1027 | Optional Features: |
1028 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1029 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1030 | --disable-dependency-tracking speeds up one-time build |
1031 | --enable-dependency-tracking do not reject slow dependency extractors |
1032 | --enable-shared[=PKGS] |
1033 | build shared libraries [default=yes] |
1034 | --enable-static[=PKGS] |
1035 | build static libraries [default=yes] |
1036 | --enable-fast-install[=PKGS] |
1037 | optimize for fast installation [default=yes] |
1038 | --disable-libtool-lock avoid locking (might break parallel builds) |
1039 | |
1040 | Optional Packages: |
1041 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1042 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1043 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1044 | --with-pic try to use only PIC/non-PIC objects [default=use |
1045 | both] |
1046 | --with-tags[=TAGS] |
1047 | include additional configurations [automatic] |
1048 | |
1049 | Some influential environment variables: |
1050 | CC C compiler command |
1051 | CFLAGS C compiler flags |
1052 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1053 | nonstandard directory <lib dir> |
1054 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
1055 | headers in a nonstandard directory <include dir> |
1056 | CPP C preprocessor |
1057 | CXX C++ compiler command |
1058 | CXXFLAGS C++ compiler flags |
1059 | CXXCPP C++ preprocessor |
1060 | F77 Fortran 77 compiler command |
1061 | FFLAGS Fortran 77 compiler flags |
1062 | |
1063 | Use these variables to override the choices made by `configure' or to help |
1064 | it to find libraries and programs with nonstandard names/locations. |
1065 | |
1066 | Report bugs to <courier-users@lists.sourceforge.net>. |
1067 | _ACEOF |
1068 | fi |
1069 | |
1070 | if test "$ac_init_help" = "recursive"; then |
1071 | # If there are subdirs, report their specific --help. |
1072 | ac_popdir=`pwd` |
1073 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1074 | test -d $ac_dir || continue |
1075 | ac_builddir=. |
1076 | |
1077 | if test "$ac_dir" != .; then |
1078 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
1079 | # A "../" for each directory in $ac_dir_suffix. |
1080 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
1081 | else |
1082 | ac_dir_suffix= ac_top_builddir= |
1083 | fi |
1084 | |
1085 | case $srcdir in |
1086 | .) # No --srcdir option. We are building in place. |
1087 | ac_srcdir=. |
1088 | if test -z "$ac_top_builddir"; then |
1089 | ac_top_srcdir=. |
1090 | else |
1091 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
1092 | fi ;; |
1093 | [\\/]* | ?:[\\/]* ) # Absolute path. |
1094 | ac_srcdir=$srcdir$ac_dir_suffix; |
1095 | ac_top_srcdir=$srcdir ;; |
1096 | *) # Relative path. |
1097 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
1098 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
1099 | esac |
1100 | |
1101 | # Do not use `cd foo && pwd` to compute absolute paths, because |
1102 | # the directories may not exist. |
1103 | case `pwd` in |
1104 | .) ac_abs_builddir="$ac_dir";; |
1105 | *) |
1106 | case "$ac_dir" in |
1107 | .) ac_abs_builddir=`pwd`;; |
1108 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
1109 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
1110 | esac;; |
1111 | esac |
1112 | case $ac_abs_builddir in |
1113 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
1114 | *) |
1115 | case ${ac_top_builddir}. in |
1116 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
1117 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
1118 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
1119 | esac;; |
1120 | esac |
1121 | case $ac_abs_builddir in |
1122 | .) ac_abs_srcdir=$ac_srcdir;; |
1123 | *) |
1124 | case $ac_srcdir in |
1125 | .) ac_abs_srcdir=$ac_abs_builddir;; |
1126 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
1127 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
1128 | esac;; |
1129 | esac |
1130 | case $ac_abs_builddir in |
1131 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
1132 | *) |
1133 | case $ac_top_srcdir in |
1134 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
1135 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
1136 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
1137 | esac;; |
1138 | esac |
1139 | |
1140 | cd $ac_dir |
1141 | # Check for guested configure; otherwise get Cygnus style configure. |
1142 | if test -f $ac_srcdir/configure.gnu; then |
1143 | echo |
1144 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
1145 | elif test -f $ac_srcdir/configure; then |
1146 | echo |
1147 | $SHELL $ac_srcdir/configure --help=recursive |
1148 | elif test -f $ac_srcdir/configure.ac || |
1149 | test -f $ac_srcdir/configure.in; then |
1150 | echo |
1151 | $ac_configure --help |
1152 | else |
1153 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1154 | fi |
1155 | cd $ac_popdir |
1156 | done |
1157 | fi |
1158 | |
1159 | test -n "$ac_init_help" && exit 0 |
1160 | if $ac_init_version; then |
1161 | cat <<\_ACEOF |
1162 | numlib configure 0.10 |
1163 | generated by GNU Autoconf 2.59 |
1164 | |
1165 | Copyright (C) 2003 Free Software Foundation, Inc. |
1166 | This configure script is free software; the Free Software Foundation |
1167 | gives unlimited permission to copy, distribute and modify it. |
1168 | _ACEOF |
1169 | exit 0 |
1170 | fi |
1171 | exec 5>config.log |
1172 | cat >&5 <<_ACEOF |
1173 | This file contains any messages produced by compilers while |
1174 | running configure, to aid debugging if configure makes a mistake. |
1175 | |
1176 | It was created by numlib $as_me 0.10, which was |
1177 | generated by GNU Autoconf 2.59. Invocation command line was |
1178 | |
1179 | $ $0 $@ |
1180 | |
1181 | _ACEOF |
1182 | { |
1183 | cat <<_ASUNAME |
1184 | ## --------- ## |
1185 | ## Platform. ## |
1186 | ## --------- ## |
1187 | |
1188 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1189 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1190 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1191 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1192 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1193 | |
1194 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1195 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1196 | |
1197 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1198 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1199 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1200 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
1201 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1202 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1203 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1204 | |
1205 | _ASUNAME |
1206 | |
1207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1208 | for as_dir in $PATH |
1209 | do |
1210 | IFS=$as_save_IFS |
1211 | test -z "$as_dir" && as_dir=. |
1212 | echo "PATH: $as_dir" |
1213 | done |
1214 | |
1215 | } >&5 |
1216 | |
1217 | cat >&5 <<_ACEOF |
1218 | |
1219 | |
1220 | ## ----------- ## |
1221 | ## Core tests. ## |
1222 | ## ----------- ## |
1223 | |
1224 | _ACEOF |
1225 | |
1226 | |
1227 | # Keep a trace of the command line. |
1228 | # Strip out --no-create and --no-recursion so they do not pile up. |
1229 | # Strip out --silent because we don't want to record it for future runs. |
1230 | # Also quote any args containing shell meta-characters. |
1231 | # Make two passes to allow for proper duplicate-argument suppression. |
1232 | ac_configure_args= |
1233 | ac_configure_args0= |
1234 | ac_configure_args1= |
1235 | ac_sep= |
1236 | ac_must_keep_next=false |
1237 | for ac_pass in 1 2 |
1238 | do |
1239 | for ac_arg |
1240 | do |
1241 | case $ac_arg in |
1242 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1243 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1244 | | -silent | --silent | --silen | --sile | --sil) |
1245 | continue ;; |
1246 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1247 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1248 | esac |
1249 | case $ac_pass in |
1250 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1251 | 2) |
1252 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1253 | if test $ac_must_keep_next = true; then |
1254 | ac_must_keep_next=false # Got value, back to normal. |
1255 | else |
1256 | case $ac_arg in |
1257 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
1258 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1259 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1260 | | -with-* | --with-* | -without-* | --without-* | --x) |
1261 | case "$ac_configure_args0 " in |
1262 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1263 | esac |
1264 | ;; |
1265 | -* ) ac_must_keep_next=true ;; |
1266 | esac |
1267 | fi |
1268 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1269 | # Get rid of the leading space. |
1270 | ac_sep=" " |
1271 | ;; |
1272 | esac |
1273 | done |
1274 | done |
1275 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1276 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1277 | |
1278 | # When interrupted or exit'd, cleanup temporary files, and complete |
1279 | # config.log. We remove comments because anyway the quotes in there |
1280 | # would cause problems or look ugly. |
1281 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1282 | # such as our DU 5.0 friend, will then `close' the trap. |
1283 | trap 'exit_status=$? |
1284 | # Save into config.log some information that might help in debugging. |
1285 | { |
1286 | echo |
1287 | |
1288 | cat <<\_ASBOX |
1289 | ## ---------------- ## |
1290 | ## Cache variables. ## |
1291 | ## ---------------- ## |
1292 | _ASBOX |
1293 | echo |
1294 | # The following way of writing the cache mishandles newlines in values, |
1295 | { |
1296 | (set) 2>&1 | |
1297 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1298 | *ac_space=\ *) |
1299 | sed -n \ |
1300 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1301 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
1302 | ;; |
1303 | *) |
1304 | sed -n \ |
1305 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
1306 | ;; |
1307 | esac; |
1308 | } |
1309 | echo |
1310 | |
1311 | cat <<\_ASBOX |
1312 | ## ----------------- ## |
1313 | ## Output variables. ## |
1314 | ## ----------------- ## |
1315 | _ASBOX |
1316 | echo |
1317 | for ac_var in $ac_subst_vars |
1318 | do |
1319 | eval ac_val=$`echo $ac_var` |
1320 | echo "$ac_var='"'"'$ac_val'"'"'" |
1321 | done | sort |
1322 | echo |
1323 | |
1324 | if test -n "$ac_subst_files"; then |
1325 | cat <<\_ASBOX |
1326 | ## ------------- ## |
1327 | ## Output files. ## |
1328 | ## ------------- ## |
1329 | _ASBOX |
1330 | echo |
1331 | for ac_var in $ac_subst_files |
1332 | do |
1333 | eval ac_val=$`echo $ac_var` |
1334 | echo "$ac_var='"'"'$ac_val'"'"'" |
1335 | done | sort |
1336 | echo |
1337 | fi |
1338 | |
1339 | if test -s confdefs.h; then |
1340 | cat <<\_ASBOX |
1341 | ## ----------- ## |
1342 | ## confdefs.h. ## |
1343 | ## ----------- ## |
1344 | _ASBOX |
1345 | echo |
1346 | sed "/^$/d" confdefs.h | sort |
1347 | echo |
1348 | fi |
1349 | test "$ac_signal" != 0 && |
1350 | echo "$as_me: caught signal $ac_signal" |
1351 | echo "$as_me: exit $exit_status" |
1352 | } >&5 |
1353 | rm -f core *.core && |
1354 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1355 | exit $exit_status |
1356 | ' 0 |
1357 | for ac_signal in 1 2 13 15; do |
1358 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1359 | done |
1360 | ac_signal=0 |
1361 | |
1362 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
1363 | rm -rf conftest* confdefs.h |
1364 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
1365 | echo >confdefs.h |
1366 | |
1367 | # Predefined preprocessor variables. |
1368 | |
1369 | cat >>confdefs.h <<_ACEOF |
1370 | #define PACKAGE_NAME "$PACKAGE_NAME" |
1371 | _ACEOF |
1372 | |
1373 | |
1374 | cat >>confdefs.h <<_ACEOF |
1375 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1376 | _ACEOF |
1377 | |
1378 | |
1379 | cat >>confdefs.h <<_ACEOF |
1380 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
1381 | _ACEOF |
1382 | |
1383 | |
1384 | cat >>confdefs.h <<_ACEOF |
1385 | #define PACKAGE_STRING "$PACKAGE_STRING" |
1386 | _ACEOF |
1387 | |
1388 | |
1389 | cat >>confdefs.h <<_ACEOF |
1390 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1391 | _ACEOF |
1392 | |
1393 | |
1394 | # Let the site file select an alternate cache file if it wants to. |
1395 | # Prefer explicitly selected file to automatically selected ones. |
1396 | if test -z "$CONFIG_SITE"; then |
1397 | if test "x$prefix" != xNONE; then |
1398 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
1399 | else |
1400 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
1401 | fi |
1402 | fi |
1403 | for ac_site_file in $CONFIG_SITE; do |
1404 | if test -r "$ac_site_file"; then |
1405 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1406 | echo "$as_me: loading site script $ac_site_file" >&6;} |
1407 | sed 's/^/| /' "$ac_site_file" >&5 |
1408 | . "$ac_site_file" |
1409 | fi |
1410 | done |
1411 | |
1412 | if test -r "$cache_file"; then |
1413 | # Some versions of bash will fail to source /dev/null (special |
1414 | # files actually), so we avoid doing that. |
1415 | if test -f "$cache_file"; then |
1416 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1417 | echo "$as_me: loading cache $cache_file" >&6;} |
1418 | case $cache_file in |
1419 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
1420 | *) . ./$cache_file;; |
1421 | esac |
1422 | fi |
1423 | else |
1424 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1425 | echo "$as_me: creating cache $cache_file" >&6;} |
1426 | >$cache_file |
1427 | fi |
1428 | |
1429 | # Check that the precious variables saved in the cache have kept the same |
1430 | # value. |
1431 | ac_cache_corrupted=false |
1432 | for ac_var in `(set) 2>&1 | |
1433 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
1434 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1435 | eval ac_new_set=\$ac_env_${ac_var}_set |
1436 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1437 | eval ac_new_val="\$ac_env_${ac_var}_value" |
1438 | case $ac_old_set,$ac_new_set in |
1439 | set,) |
1440 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1441 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1442 | ac_cache_corrupted=: ;; |
1443 | ,set) |
1444 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1445 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1446 | ac_cache_corrupted=: ;; |
1447 | ,);; |
1448 | *) |
1449 | if test "x$ac_old_val" != "x$ac_new_val"; then |
1450 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1451 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1452 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1453 | echo "$as_me: former value: $ac_old_val" >&2;} |
1454 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1455 | echo "$as_me: current value: $ac_new_val" >&2;} |
1456 | ac_cache_corrupted=: |
1457 | fi;; |
1458 | esac |
1459 | # Pass precious variables to config.status. |
1460 | if test "$ac_new_set" = set; then |
1461 | case $ac_new_val in |
1462 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1463 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1464 | *) ac_arg=$ac_var=$ac_new_val ;; |
1465 | esac |
1466 | case " $ac_configure_args " in |
1467 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1468 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1469 | esac |
1470 | fi |
1471 | done |
1472 | if $ac_cache_corrupted; then |
1473 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1474 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1475 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1476 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1477 | { (exit 1); exit 1; }; } |
1478 | fi |
1479 | |
1480 | ac_ext=c |
1481 | ac_cpp='$CPP $CPPFLAGS' |
1482 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1483 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1484 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1485 | |
1486 | |
1487 | |
1488 | |
1489 | |
1490 | |
1491 | |
1492 | |
1493 | |
1494 | |
1495 | |
1496 | |
1497 | |
1498 | |
1499 | |
1500 | |
1501 | |
1502 | |
1503 | |
1504 | |
1505 | |
1506 | |
1507 | |
1508 | |
1509 | |
1510 | |
1511 | |
1512 | |
1513 | >confdefs.h # Kill PACKAGE_ macros |
1514 | |
1515 | |
1516 | ac_config_headers="$ac_config_headers config.h" |
1517 | |
1518 | am__api_version="1.9" |
1519 | ac_aux_dir= |
1520 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1521 | if test -f $ac_dir/install-sh; then |
1522 | ac_aux_dir=$ac_dir |
1523 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1524 | break |
1525 | elif test -f $ac_dir/install.sh; then |
1526 | ac_aux_dir=$ac_dir |
1527 | ac_install_sh="$ac_aux_dir/install.sh -c" |
1528 | break |
1529 | elif test -f $ac_dir/shtool; then |
1530 | ac_aux_dir=$ac_dir |
1531 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1532 | break |
1533 | fi |
1534 | done |
1535 | if test -z "$ac_aux_dir"; then |
1536 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1537 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1538 | { (exit 1); exit 1; }; } |
1539 | fi |
1540 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1541 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1542 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1543 | |
1544 | # Find a good install program. We prefer a C program (faster), |
1545 | # so one script is as good as another. But avoid the broken or |
1546 | # incompatible versions: |
1547 | # SysV /etc/install, /usr/sbin/install |
1548 | # SunOS /usr/etc/install |
1549 | # IRIX /sbin/install |
1550 | # AIX /bin/install |
1551 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
1552 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1553 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
1554 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
1555 | # OS/2's system install, which has a completely different semantic |
1556 | # ./install, which can be erroneously created by make from ./install.sh. |
1557 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1558 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
1559 | if test -z "$INSTALL"; then |
1560 | if test "${ac_cv_path_install+set}" = set; then |
1561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1562 | else |
1563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1564 | for as_dir in $PATH |
1565 | do |
1566 | IFS=$as_save_IFS |
1567 | test -z "$as_dir" && as_dir=. |
1568 | # Account for people who put trailing slashes in PATH elements. |
1569 | case $as_dir/ in |
1570 | ./ | .// | /cC/* | \ |
1571 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
1572 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
1573 | /usr/ucb/* ) ;; |
1574 | *) |
1575 | # OSF1 and SCO ODT 3.0 have their own names for install. |
1576 | # Don't use installbsd from OSF since it installs stuff as root |
1577 | # by default. |
1578 | for ac_prog in ginstall scoinst install; do |
1579 | for ac_exec_ext in '' $ac_executable_extensions; do |
1580 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
1581 | if test $ac_prog = install && |
1582 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
1583 | # AIX install. It has an incompatible calling convention. |
1584 | : |
1585 | elif test $ac_prog = install && |
1586 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
1587 | # program-specific install script used by HP pwplus--don't use. |
1588 | : |
1589 | else |
1590 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
1591 | break 3 |
1592 | fi |
1593 | fi |
1594 | done |
1595 | done |
1596 | ;; |
1597 | esac |
1598 | done |
1599 | |
1600 | |
1601 | fi |
1602 | if test "${ac_cv_path_install+set}" = set; then |
1603 | INSTALL=$ac_cv_path_install |
1604 | else |
1605 | # As a last resort, use the slow shell script. We don't cache a |
1606 | # path for INSTALL within a source directory, because that will |
1607 | # break other packages using the cache if that directory is |
1608 | # removed, or if the path is relative. |
1609 | INSTALL=$ac_install_sh |
1610 | fi |
1611 | fi |
1612 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
1613 | echo "${ECHO_T}$INSTALL" >&6 |
1614 | |
1615 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
1616 | # It thinks the first close brace ends the variable substitution. |
1617 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
1618 | |
1619 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
1620 | |
1621 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
1622 | |
1623 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
1624 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
1625 | # Just in case |
1626 | sleep 1 |
1627 | echo timestamp > conftest.file |
1628 | # Do `set' in a subshell so we don't clobber the current shell's |
1629 | # arguments. Must try -L first in case configure is actually a |
1630 | # symlink; some systems play weird games with the mod time of symlinks |
1631 | # (eg FreeBSD returns the mod time of the symlink's containing |
1632 | # directory). |
1633 | if ( |
1634 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
1635 | if test "$*" = "X"; then |
1636 | # -L didn't work. |
1637 | set X `ls -t $srcdir/configure conftest.file` |
1638 | fi |
1639 | rm -f conftest.file |
1640 | if test "$*" != "X $srcdir/configure conftest.file" \ |
1641 | && test "$*" != "X conftest.file $srcdir/configure"; then |
1642 | |
1643 | # If neither matched, then we have a broken ls. This can happen |
1644 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
1645 | # broken ls alias from the environment. This has actually |
1646 | # happened. Such a system could not be considered "sane". |
1647 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
1648 | alias in your environment" >&5 |
1649 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
1650 | alias in your environment" >&2;} |
1651 | { (exit 1); exit 1; }; } |
1652 | fi |
1653 | |
1654 | test "$2" = conftest.file |
1655 | ) |
1656 | then |
1657 | # Ok. |
1658 | : |
1659 | else |
1660 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
1661 | Check your system clock" >&5 |
1662 | echo "$as_me: error: newly created file is older than distributed files! |
1663 | Check your system clock" >&2;} |
1664 | { (exit 1); exit 1; }; } |
1665 | fi |
1666 | echo "$as_me:$LINENO: result: yes" >&5 |
1667 | echo "${ECHO_T}yes" >&6 |
1668 | test "$program_prefix" != NONE && |
1669 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
1670 | # Use a double $ so make ignores it. |
1671 | test "$program_suffix" != NONE && |
1672 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
1673 | # Double any \ or $. echo might interpret backslashes. |
1674 | # By default was `s,x,x', remove it if useless. |
1675 | cat <<\_ACEOF >conftest.sed |
1676 | s/[\\$]/&&/g;s/;s,x,x,$// |
1677 | _ACEOF |
1678 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
1679 | rm conftest.sed |
1680 | |
1681 | # expand $ac_aux_dir to an absolute path |
1682 | am_aux_dir=`cd $ac_aux_dir && pwd` |
1683 | |
1684 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
1685 | # Use eval to expand $SHELL |
1686 | if eval "$MISSING --run true"; then |
1687 | am_missing_run="$MISSING --run " |
1688 | else |
1689 | am_missing_run= |
1690 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
1691 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
1692 | fi |
1693 | |
1694 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
1695 | # We used to keeping the `.' as first argument, in order to |
1696 | # allow $(mkdir_p) to be used without argument. As in |
1697 | # $(mkdir_p) $(somedir) |
1698 | # where $(somedir) is conditionally defined. However this is wrong |
1699 | # for two reasons: |
1700 | # 1. if the package is installed by a user who cannot write `.' |
1701 | # make install will fail, |
1702 | # 2. the above comment should most certainly read |
1703 | # $(mkdir_p) $(DESTDIR)$(somedir) |
1704 | # so it does not work when $(somedir) is undefined and |
1705 | # $(DESTDIR) is not. |
1706 | # To support the latter case, we have to write |
1707 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
1708 | # so the `.' trick is pointless. |
1709 | mkdir_p='mkdir -p --' |
1710 | else |
1711 | # On NextStep and OpenStep, the `mkdir' command does not |
1712 | # recognize any option. It will interpret all options as |
1713 | # directories to create, and then abort because `.' already |
1714 | # exists. |
1715 | for d in ./-p ./--version; |
1716 | do |
1717 | test -d $d && rmdir $d |
1718 | done |
1719 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
1720 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
1721 | mkdir_p='$(mkinstalldirs)' |
1722 | else |
1723 | mkdir_p='$(install_sh) -d' |
1724 | fi |
1725 | fi |
1726 | |
1727 | for ac_prog in gawk mawk nawk awk |
1728 | do |
1729 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1730 | set dummy $ac_prog; ac_word=$2 |
1731 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1732 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1733 | if test "${ac_cv_prog_AWK+set}" = set; then |
1734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1735 | else |
1736 | if test -n "$AWK"; then |
1737 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
1738 | else |
1739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1740 | for as_dir in $PATH |
1741 | do |
1742 | IFS=$as_save_IFS |
1743 | test -z "$as_dir" && as_dir=. |
1744 | for ac_exec_ext in '' $ac_executable_extensions; do |
1745 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1746 | ac_cv_prog_AWK="$ac_prog" |
1747 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1748 | break 2 |
1749 | fi |
1750 | done |
1751 | done |
1752 | |
1753 | fi |
1754 | fi |
1755 | AWK=$ac_cv_prog_AWK |
1756 | if test -n "$AWK"; then |
1757 | echo "$as_me:$LINENO: result: $AWK" >&5 |
1758 | echo "${ECHO_T}$AWK" >&6 |
1759 | else |
1760 | echo "$as_me:$LINENO: result: no" >&5 |
1761 | echo "${ECHO_T}no" >&6 |
1762 | fi |
1763 | |
1764 | test -n "$AWK" && break |
1765 | done |
1766 | |
1767 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1768 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
1769 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
1770 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
1771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1772 | else |
1773 | cat >conftest.make <<\_ACEOF |
1774 | all: |
1775 | @echo 'ac_maketemp="$(MAKE)"' |
1776 | _ACEOF |
1777 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
1778 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
1779 | if test -n "$ac_maketemp"; then |
1780 | eval ac_cv_prog_make_${ac_make}_set=yes |
1781 | else |
1782 | eval ac_cv_prog_make_${ac_make}_set=no |
1783 | fi |
1784 | rm -f conftest.make |
1785 | fi |
1786 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
1787 | echo "$as_me:$LINENO: result: yes" >&5 |
1788 | echo "${ECHO_T}yes" >&6 |
1789 | SET_MAKE= |
1790 | else |
1791 | echo "$as_me:$LINENO: result: no" >&5 |
1792 | echo "${ECHO_T}no" >&6 |
1793 | SET_MAKE="MAKE=${MAKE-make}" |
1794 | fi |
1795 | |
1796 | rm -rf .tst 2>/dev/null |
1797 | mkdir .tst 2>/dev/null |
1798 | if test -d .tst; then |
1799 | am__leading_dot=. |
1800 | else |
1801 | am__leading_dot=_ |
1802 | fi |
1803 | rmdir .tst 2>/dev/null |
1804 | |
1805 | # test to see if srcdir already configured |
1806 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
1807 | test -f $srcdir/config.status; then |
1808 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
1809 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
1810 | { (exit 1); exit 1; }; } |
1811 | fi |
1812 | |
1813 | # test whether we have cygpath |
1814 | if test -z "$CYGPATH_W"; then |
1815 | if (cygpath --version) >/dev/null 2>/dev/null; then |
1816 | CYGPATH_W='cygpath -w' |
1817 | else |
1818 | CYGPATH_W=echo |
1819 | fi |
1820 | fi |
1821 | |
1822 | |
1823 | # Define the identity of the package. |
1824 | PACKAGE='numlib' |
1825 | VERSION='0.10' |
1826 | |
1827 | |
1828 | # Some tools Automake needs. |
1829 | |
1830 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
1831 | |
1832 | |
1833 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
1834 | |
1835 | |
1836 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
1837 | |
1838 | |
1839 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
1840 | |
1841 | |
1842 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
1843 | |
1844 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
1845 | |
1846 | # Installed binaries are usually stripped using `strip' when the user |
1847 | # run `make install-strip'. However `strip' might not be the right |
1848 | # tool to use in cross-compilation environments, therefore Automake |
1849 | # will honor the `STRIP' environment variable to overrule this program. |
1850 | if test "$cross_compiling" != no; then |
1851 | if test -n "$ac_tool_prefix"; then |
1852 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
1853 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
1854 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1855 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1856 | if test "${ac_cv_prog_STRIP+set}" = set; then |
1857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1858 | else |
1859 | if test -n "$STRIP"; then |
1860 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
1861 | else |
1862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1863 | for as_dir in $PATH |
1864 | do |
1865 | IFS=$as_save_IFS |
1866 | test -z "$as_dir" && as_dir=. |
1867 | for ac_exec_ext in '' $ac_executable_extensions; do |
1868 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1869 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
1870 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1871 | break 2 |
1872 | fi |
1873 | done |
1874 | done |
1875 | |
1876 | fi |
1877 | fi |
1878 | STRIP=$ac_cv_prog_STRIP |
1879 | if test -n "$STRIP"; then |
1880 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
1881 | echo "${ECHO_T}$STRIP" >&6 |
1882 | else |
1883 | echo "$as_me:$LINENO: result: no" >&5 |
1884 | echo "${ECHO_T}no" >&6 |
1885 | fi |
1886 | |
1887 | fi |
1888 | if test -z "$ac_cv_prog_STRIP"; then |
1889 | ac_ct_STRIP=$STRIP |
1890 | # Extract the first word of "strip", so it can be a program name with args. |
1891 | set dummy strip; ac_word=$2 |
1892 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1893 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1894 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
1895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1896 | else |
1897 | if test -n "$ac_ct_STRIP"; then |
1898 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
1899 | else |
1900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1901 | for as_dir in $PATH |
1902 | do |
1903 | IFS=$as_save_IFS |
1904 | test -z "$as_dir" && as_dir=. |
1905 | for ac_exec_ext in '' $ac_executable_extensions; do |
1906 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1907 | ac_cv_prog_ac_ct_STRIP="strip" |
1908 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1909 | break 2 |
1910 | fi |
1911 | done |
1912 | done |
1913 | |
1914 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
1915 | fi |
1916 | fi |
1917 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
1918 | if test -n "$ac_ct_STRIP"; then |
1919 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
1920 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
1921 | else |
1922 | echo "$as_me:$LINENO: result: no" >&5 |
1923 | echo "${ECHO_T}no" >&6 |
1924 | fi |
1925 | |
1926 | STRIP=$ac_ct_STRIP |
1927 | else |
1928 | STRIP="$ac_cv_prog_STRIP" |
1929 | fi |
1930 | |
1931 | fi |
1932 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
1933 | |
1934 | # We need awk for the "check" target. The system "awk" is bad on |
1935 | # some platforms. |
1936 | # Always define AMTAR for backward compatibility. |
1937 | |
1938 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
1939 | |
1940 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
1941 | |
1942 | |
1943 | |
1944 | |
1945 | |
1946 | |
1947 | for ac_prog in gawk mawk nawk awk |
1948 | do |
1949 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1950 | set dummy $ac_prog; ac_word=$2 |
1951 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1952 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1953 | if test "${ac_cv_prog_AWK+set}" = set; then |
1954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1955 | else |
1956 | if test -n "$AWK"; then |
1957 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
1958 | else |
1959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1960 | for as_dir in $PATH |
1961 | do |
1962 | IFS=$as_save_IFS |
1963 | test -z "$as_dir" && as_dir=. |
1964 | for ac_exec_ext in '' $ac_executable_extensions; do |
1965 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1966 | ac_cv_prog_AWK="$ac_prog" |
1967 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1968 | break 2 |
1969 | fi |
1970 | done |
1971 | done |
1972 | |
1973 | fi |
1974 | fi |
1975 | AWK=$ac_cv_prog_AWK |
1976 | if test -n "$AWK"; then |
1977 | echo "$as_me:$LINENO: result: $AWK" >&5 |
1978 | echo "${ECHO_T}$AWK" >&6 |
1979 | else |
1980 | echo "$as_me:$LINENO: result: no" >&5 |
1981 | echo "${ECHO_T}no" >&6 |
1982 | fi |
1983 | |
1984 | test -n "$AWK" && break |
1985 | done |
1986 | |
1987 | ac_ext=c |
1988 | ac_cpp='$CPP $CPPFLAGS' |
1989 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1990 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1991 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1992 | if test -n "$ac_tool_prefix"; then |
1993 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
1994 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
1995 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1996 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1997 | if test "${ac_cv_prog_CC+set}" = set; then |
1998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1999 | else |
2000 | if test -n "$CC"; then |
2001 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2002 | else |
2003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2004 | for as_dir in $PATH |
2005 | do |
2006 | IFS=$as_save_IFS |
2007 | test -z "$as_dir" && as_dir=. |
2008 | for ac_exec_ext in '' $ac_executable_extensions; do |
2009 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2010 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2011 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2012 | break 2 |
2013 | fi |
2014 | done |
2015 | done |
2016 | |
2017 | fi |
2018 | fi |
2019 | CC=$ac_cv_prog_CC |
2020 | if test -n "$CC"; then |
2021 | echo "$as_me:$LINENO: result: $CC" >&5 |
2022 | echo "${ECHO_T}$CC" >&6 |
2023 | else |
2024 | echo "$as_me:$LINENO: result: no" >&5 |
2025 | echo "${ECHO_T}no" >&6 |
2026 | fi |
2027 | |
2028 | fi |
2029 | if test -z "$ac_cv_prog_CC"; then |
2030 | ac_ct_CC=$CC |
2031 | # Extract the first word of "gcc", so it can be a program name with args. |
2032 | set dummy gcc; ac_word=$2 |
2033 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2034 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2035 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2037 | else |
2038 | if test -n "$ac_ct_CC"; then |
2039 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2040 | else |
2041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2042 | for as_dir in $PATH |
2043 | do |
2044 | IFS=$as_save_IFS |
2045 | test -z "$as_dir" && as_dir=. |
2046 | for ac_exec_ext in '' $ac_executable_extensions; do |
2047 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2048 | ac_cv_prog_ac_ct_CC="gcc" |
2049 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2050 | break 2 |
2051 | fi |
2052 | done |
2053 | done |
2054 | |
2055 | fi |
2056 | fi |
2057 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2058 | if test -n "$ac_ct_CC"; then |
2059 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2060 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2061 | else |
2062 | echo "$as_me:$LINENO: result: no" >&5 |
2063 | echo "${ECHO_T}no" >&6 |
2064 | fi |
2065 | |
2066 | CC=$ac_ct_CC |
2067 | else |
2068 | CC="$ac_cv_prog_CC" |
2069 | fi |
2070 | |
2071 | if test -z "$CC"; then |
2072 | if test -n "$ac_tool_prefix"; then |
2073 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
2074 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2075 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2076 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2077 | if test "${ac_cv_prog_CC+set}" = set; then |
2078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2079 | else |
2080 | if test -n "$CC"; then |
2081 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2082 | else |
2083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2084 | for as_dir in $PATH |
2085 | do |
2086 | IFS=$as_save_IFS |
2087 | test -z "$as_dir" && as_dir=. |
2088 | for ac_exec_ext in '' $ac_executable_extensions; do |
2089 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2090 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2091 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2092 | break 2 |
2093 | fi |
2094 | done |
2095 | done |
2096 | |
2097 | fi |
2098 | fi |
2099 | CC=$ac_cv_prog_CC |
2100 | if test -n "$CC"; then |
2101 | echo "$as_me:$LINENO: result: $CC" >&5 |
2102 | echo "${ECHO_T}$CC" >&6 |
2103 | else |
2104 | echo "$as_me:$LINENO: result: no" >&5 |
2105 | echo "${ECHO_T}no" >&6 |
2106 | fi |
2107 | |
2108 | fi |
2109 | if test -z "$ac_cv_prog_CC"; then |
2110 | ac_ct_CC=$CC |
2111 | # Extract the first word of "cc", so it can be a program name with args. |
2112 | set dummy cc; ac_word=$2 |
2113 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2114 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2115 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2117 | else |
2118 | if test -n "$ac_ct_CC"; then |
2119 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2120 | else |
2121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2122 | for as_dir in $PATH |
2123 | do |
2124 | IFS=$as_save_IFS |
2125 | test -z "$as_dir" && as_dir=. |
2126 | for ac_exec_ext in '' $ac_executable_extensions; do |
2127 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2128 | ac_cv_prog_ac_ct_CC="cc" |
2129 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2130 | break 2 |
2131 | fi |
2132 | done |
2133 | done |
2134 | |
2135 | fi |
2136 | fi |
2137 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2138 | if test -n "$ac_ct_CC"; then |
2139 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2140 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2141 | else |
2142 | echo "$as_me:$LINENO: result: no" >&5 |
2143 | echo "${ECHO_T}no" >&6 |
2144 | fi |
2145 | |
2146 | CC=$ac_ct_CC |
2147 | else |
2148 | CC="$ac_cv_prog_CC" |
2149 | fi |
2150 | |
2151 | fi |
2152 | if test -z "$CC"; then |
2153 | # Extract the first word of "cc", so it can be a program name with args. |
2154 | set dummy cc; ac_word=$2 |
2155 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2156 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2157 | if test "${ac_cv_prog_CC+set}" = set; then |
2158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2159 | else |
2160 | if test -n "$CC"; then |
2161 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2162 | else |
2163 | ac_prog_rejected=no |
2164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2165 | for as_dir in $PATH |
2166 | do |
2167 | IFS=$as_save_IFS |
2168 | test -z "$as_dir" && as_dir=. |
2169 | for ac_exec_ext in '' $ac_executable_extensions; do |
2170 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2171 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2172 | ac_prog_rejected=yes |
2173 | continue |
2174 | fi |
2175 | ac_cv_prog_CC="cc" |
2176 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2177 | break 2 |
2178 | fi |
2179 | done |
2180 | done |
2181 | |
2182 | if test $ac_prog_rejected = yes; then |
2183 | # We found a bogon in the path, so make sure we never use it. |
2184 | set dummy $ac_cv_prog_CC |
2185 | shift |
2186 | if test $# != 0; then |
2187 | # We chose a different compiler from the bogus one. |
2188 | # However, it has the same basename, so the bogon will be chosen |
2189 | # first if we set CC to just the basename; use the full file name. |
2190 | shift |
2191 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
2192 | fi |
2193 | fi |
2194 | fi |
2195 | fi |
2196 | CC=$ac_cv_prog_CC |
2197 | if test -n "$CC"; then |
2198 | echo "$as_me:$LINENO: result: $CC" >&5 |
2199 | echo "${ECHO_T}$CC" >&6 |
2200 | else |
2201 | echo "$as_me:$LINENO: result: no" >&5 |
2202 | echo "${ECHO_T}no" >&6 |
2203 | fi |
2204 | |
2205 | fi |
2206 | if test -z "$CC"; then |
2207 | if test -n "$ac_tool_prefix"; then |
2208 | for ac_prog in cl |
2209 | do |
2210 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2211 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2212 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2213 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2214 | if test "${ac_cv_prog_CC+set}" = set; then |
2215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2216 | else |
2217 | if test -n "$CC"; then |
2218 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2219 | else |
2220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2221 | for as_dir in $PATH |
2222 | do |
2223 | IFS=$as_save_IFS |
2224 | test -z "$as_dir" && as_dir=. |
2225 | for ac_exec_ext in '' $ac_executable_extensions; do |
2226 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2227 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2228 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2229 | break 2 |
2230 | fi |
2231 | done |
2232 | done |
2233 | |
2234 | fi |
2235 | fi |
2236 | CC=$ac_cv_prog_CC |
2237 | if test -n "$CC"; then |
2238 | echo "$as_me:$LINENO: result: $CC" >&5 |
2239 | echo "${ECHO_T}$CC" >&6 |
2240 | else |
2241 | echo "$as_me:$LINENO: result: no" >&5 |
2242 | echo "${ECHO_T}no" >&6 |
2243 | fi |
2244 | |
2245 | test -n "$CC" && break |
2246 | done |
2247 | fi |
2248 | if test -z "$CC"; then |
2249 | ac_ct_CC=$CC |
2250 | for ac_prog in cl |
2251 | do |
2252 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2253 | set dummy $ac_prog; ac_word=$2 |
2254 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2255 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2256 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2258 | else |
2259 | if test -n "$ac_ct_CC"; then |
2260 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2261 | else |
2262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2263 | for as_dir in $PATH |
2264 | do |
2265 | IFS=$as_save_IFS |
2266 | test -z "$as_dir" && as_dir=. |
2267 | for ac_exec_ext in '' $ac_executable_extensions; do |
2268 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2269 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2270 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2271 | break 2 |
2272 | fi |
2273 | done |
2274 | done |
2275 | |
2276 | fi |
2277 | fi |
2278 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2279 | if test -n "$ac_ct_CC"; then |
2280 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2281 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2282 | else |
2283 | echo "$as_me:$LINENO: result: no" >&5 |
2284 | echo "${ECHO_T}no" >&6 |
2285 | fi |
2286 | |
2287 | test -n "$ac_ct_CC" && break |
2288 | done |
2289 | |
2290 | CC=$ac_ct_CC |
2291 | fi |
2292 | |
2293 | fi |
2294 | |
2295 | |
2296 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2297 | See \`config.log' for more details." >&5 |
2298 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
2299 | See \`config.log' for more details." >&2;} |
2300 | { (exit 1); exit 1; }; } |
2301 | |
2302 | # Provide some information about the compiler. |
2303 | echo "$as_me:$LINENO:" \ |
2304 | "checking for C compiler version" >&5 |
2305 | ac_compiler=`set X $ac_compile; echo $2` |
2306 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
2307 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
2308 | ac_status=$? |
2309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2310 | (exit $ac_status); } |
2311 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
2312 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
2313 | ac_status=$? |
2314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2315 | (exit $ac_status); } |
2316 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
2317 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
2318 | ac_status=$? |
2319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2320 | (exit $ac_status); } |
2321 | |
2322 | cat >conftest.$ac_ext <<_ACEOF |
2323 | /* confdefs.h. */ |
2324 | _ACEOF |
2325 | cat confdefs.h >>conftest.$ac_ext |
2326 | cat >>conftest.$ac_ext <<_ACEOF |
2327 | /* end confdefs.h. */ |
2328 | |
2329 | int |
2330 | main () |
2331 | { |
2332 | |
2333 | ; |
2334 | return 0; |
2335 | } |
2336 | _ACEOF |
2337 | ac_clean_files_save=$ac_clean_files |
2338 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2339 | # Try to create an executable without -o first, disregard a.out. |
2340 | # It will help us diagnose broken compilers, and finding out an intuition |
2341 | # of exeext. |
2342 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2343 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
2344 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2345 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
2346 | (eval $ac_link_default) 2>&5 |
2347 | ac_status=$? |
2348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2349 | (exit $ac_status); }; then |
2350 | # Find the output, starting from the most likely. This scheme is |
2351 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
2352 | # resort. |
2353 | |
2354 | # Be careful to initialize this variable, since it used to be cached. |
2355 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
2356 | ac_cv_exeext= |
2357 | # b.out is created by i960 compilers. |
2358 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
2359 | do |
2360 | test -f "$ac_file" || continue |
2361 | case $ac_file in |
2362 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
2363 | ;; |
2364 | conftest.$ac_ext ) |
2365 | # This is the source file. |
2366 | ;; |
2367 | [ab].out ) |
2368 | # We found the default executable, but exeext='' is most |
2369 | # certainly right. |
2370 | break;; |
2371 | *.* ) |
2372 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2373 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
2374 | # but it would be cool to find out if it's true. Does anybody |
2375 | # maintain Libtool? --akim. |
2376 | export ac_cv_exeext |
2377 | break;; |
2378 | * ) |
2379 | break;; |
2380 | esac |
2381 | done |
2382 | else |
2383 | echo "$as_me: failed program was:" >&5 |
2384 | sed 's/^/| /' conftest.$ac_ext >&5 |
2385 | |
2386 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2387 | See \`config.log' for more details." >&5 |
2388 | echo "$as_me: error: C compiler cannot create executables |
2389 | See \`config.log' for more details." >&2;} |
2390 | { (exit 77); exit 77; }; } |
2391 | fi |
2392 | |
2393 | ac_exeext=$ac_cv_exeext |
2394 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
2395 | echo "${ECHO_T}$ac_file" >&6 |
2396 | |
2397 | # Check the compiler produces executables we can run. If not, either |
2398 | # the compiler is broken, or we cross compile. |
2399 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2400 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
2401 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2402 | # If not cross compiling, check that we can run a simple program. |
2403 | if test "$cross_compiling" != yes; then |
2404 | if { ac_try='./$ac_file' |
2405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2406 | (eval $ac_try) 2>&5 |
2407 | ac_status=$? |
2408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2409 | (exit $ac_status); }; }; then |
2410 | cross_compiling=no |
2411 | else |
2412 | if test "$cross_compiling" = maybe; then |
2413 | cross_compiling=yes |
2414 | else |
2415 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
2416 | If you meant to cross compile, use \`--host'. |
2417 | See \`config.log' for more details." >&5 |
2418 | echo "$as_me: error: cannot run C compiled programs. |
2419 | If you meant to cross compile, use \`--host'. |
2420 | See \`config.log' for more details." >&2;} |
2421 | { (exit 1); exit 1; }; } |
2422 | fi |
2423 | fi |
2424 | fi |
2425 | echo "$as_me:$LINENO: result: yes" >&5 |
2426 | echo "${ECHO_T}yes" >&6 |
2427 | |
2428 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2429 | ac_clean_files=$ac_clean_files_save |
2430 | # Check the compiler produces executables we can run. If not, either |
2431 | # the compiler is broken, or we cross compile. |
2432 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2433 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
2434 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2435 | echo "${ECHO_T}$cross_compiling" >&6 |
2436 | |
2437 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2438 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
2439 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2440 | (eval $ac_link) 2>&5 |
2441 | ac_status=$? |
2442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2443 | (exit $ac_status); }; then |
2444 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2445 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2446 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
2447 | # `rm'. |
2448 | for ac_file in conftest.exe conftest conftest.*; do |
2449 | test -f "$ac_file" || continue |
2450 | case $ac_file in |
2451 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
2452 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2453 | export ac_cv_exeext |
2454 | break;; |
2455 | * ) break;; |
2456 | esac |
2457 | done |
2458 | else |
2459 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2460 | See \`config.log' for more details." >&5 |
2461 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2462 | See \`config.log' for more details." >&2;} |
2463 | { (exit 1); exit 1; }; } |
2464 | fi |
2465 | |
2466 | rm -f conftest$ac_cv_exeext |
2467 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2468 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
2469 | |
2470 | rm -f conftest.$ac_ext |
2471 | EXEEXT=$ac_cv_exeext |
2472 | ac_exeext=$EXEEXT |
2473 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2474 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
2475 | if test "${ac_cv_objext+set}" = set; then |
2476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2477 | else |
2478 | cat >conftest.$ac_ext <<_ACEOF |
2479 | /* confdefs.h. */ |
2480 | _ACEOF |
2481 | cat confdefs.h >>conftest.$ac_ext |
2482 | cat >>conftest.$ac_ext <<_ACEOF |
2483 | /* end confdefs.h. */ |
2484 | |
2485 | int |
2486 | main () |
2487 | { |
2488 | |
2489 | ; |
2490 | return 0; |
2491 | } |
2492 | _ACEOF |
2493 | rm -f conftest.o conftest.obj |
2494 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2495 | (eval $ac_compile) 2>&5 |
2496 | ac_status=$? |
2497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2498 | (exit $ac_status); }; then |
2499 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
2500 | case $ac_file in |
2501 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
2502 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2503 | break;; |
2504 | esac |
2505 | done |
2506 | else |
2507 | echo "$as_me: failed program was:" >&5 |
2508 | sed 's/^/| /' conftest.$ac_ext >&5 |
2509 | |
2510 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2511 | See \`config.log' for more details." >&5 |
2512 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
2513 | See \`config.log' for more details." >&2;} |
2514 | { (exit 1); exit 1; }; } |
2515 | fi |
2516 | |
2517 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2518 | fi |
2519 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2520 | echo "${ECHO_T}$ac_cv_objext" >&6 |
2521 | OBJEXT=$ac_cv_objext |
2522 | ac_objext=$OBJEXT |
2523 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2524 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
2525 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2527 | else |
2528 | cat >conftest.$ac_ext <<_ACEOF |
2529 | /* confdefs.h. */ |
2530 | _ACEOF |
2531 | cat confdefs.h >>conftest.$ac_ext |
2532 | cat >>conftest.$ac_ext <<_ACEOF |
2533 | /* end confdefs.h. */ |
2534 | |
2535 | int |
2536 | main () |
2537 | { |
2538 | #ifndef __GNUC__ |
2539 | choke me |
2540 | #endif |
2541 | |
2542 | ; |
2543 | return 0; |
2544 | } |
2545 | _ACEOF |
2546 | rm -f conftest.$ac_objext |
2547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2548 | (eval $ac_compile) 2>conftest.er1 |
2549 | ac_status=$? |
2550 | grep -v '^ *+' conftest.er1 >conftest.err |
2551 | rm -f conftest.er1 |
2552 | cat conftest.err >&5 |
2553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2554 | (exit $ac_status); } && |
2555 | { ac_try='test -z "$ac_c_werror_flag" |
2556 | || test ! -s conftest.err' |
2557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2558 | (eval $ac_try) 2>&5 |
2559 | ac_status=$? |
2560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2561 | (exit $ac_status); }; } && |
2562 | { ac_try='test -s conftest.$ac_objext' |
2563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2564 | (eval $ac_try) 2>&5 |
2565 | ac_status=$? |
2566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2567 | (exit $ac_status); }; }; then |
2568 | ac_compiler_gnu=yes |
2569 | else |
2570 | echo "$as_me: failed program was:" >&5 |
2571 | sed 's/^/| /' conftest.$ac_ext >&5 |
2572 | |
2573 | ac_compiler_gnu=no |
2574 | fi |
2575 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2576 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2577 | |
2578 | fi |
2579 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2580 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
2581 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2582 | ac_test_CFLAGS=${CFLAGS+set} |
2583 | ac_save_CFLAGS=$CFLAGS |
2584 | CFLAGS="-g" |
2585 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2586 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
2587 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2589 | else |
2590 | cat >conftest.$ac_ext <<_ACEOF |
2591 | /* confdefs.h. */ |
2592 | _ACEOF |
2593 | cat confdefs.h >>conftest.$ac_ext |
2594 | cat >>conftest.$ac_ext <<_ACEOF |
2595 | /* end confdefs.h. */ |
2596 | |
2597 | int |
2598 | main () |
2599 | { |
2600 | |
2601 | ; |
2602 | return 0; |
2603 | } |
2604 | _ACEOF |
2605 | rm -f conftest.$ac_objext |
2606 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2607 | (eval $ac_compile) 2>conftest.er1 |
2608 | ac_status=$? |
2609 | grep -v '^ *+' conftest.er1 >conftest.err |
2610 | rm -f conftest.er1 |
2611 | cat conftest.err >&5 |
2612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2613 | (exit $ac_status); } && |
2614 | { ac_try='test -z "$ac_c_werror_flag" |
2615 | || test ! -s conftest.err' |
2616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2617 | (eval $ac_try) 2>&5 |
2618 | ac_status=$? |
2619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2620 | (exit $ac_status); }; } && |
2621 | { ac_try='test -s conftest.$ac_objext' |
2622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2623 | (eval $ac_try) 2>&5 |
2624 | ac_status=$? |
2625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2626 | (exit $ac_status); }; }; then |
2627 | ac_cv_prog_cc_g=yes |
2628 | else |
2629 | echo "$as_me: failed program was:" >&5 |
2630 | sed 's/^/| /' conftest.$ac_ext >&5 |
2631 | |
2632 | ac_cv_prog_cc_g=no |
2633 | fi |
2634 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2635 | fi |
2636 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2637 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
2638 | if test "$ac_test_CFLAGS" = set; then |
2639 | CFLAGS=$ac_save_CFLAGS |
2640 | elif test $ac_cv_prog_cc_g = yes; then |
2641 | if test "$GCC" = yes; then |
2642 | CFLAGS="-g -O2" |
2643 | else |
2644 | CFLAGS="-g" |
2645 | fi |
2646 | else |
2647 | if test "$GCC" = yes; then |
2648 | CFLAGS="-O2" |
2649 | else |
2650 | CFLAGS= |
2651 | fi |
2652 | fi |
2653 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2654 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
2655 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
2656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2657 | else |
2658 | ac_cv_prog_cc_stdc=no |
2659 | ac_save_CC=$CC |
2660 | cat >conftest.$ac_ext <<_ACEOF |
2661 | /* confdefs.h. */ |
2662 | _ACEOF |
2663 | cat confdefs.h >>conftest.$ac_ext |
2664 | cat >>conftest.$ac_ext <<_ACEOF |
2665 | /* end confdefs.h. */ |
2666 | #include <stdarg.h> |
2667 | #include <stdio.h> |
2668 | #include <sys/types.h> |
2669 | #include <sys/stat.h> |
2670 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2671 | struct buf { int x; }; |
2672 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
2673 | static char *e (p, i) |
2674 | char **p; |
2675 | int i; |
2676 | { |
2677 | return p[i]; |
2678 | } |
2679 | static char *f (char * (*g) (char **, int), char **p, ...) |
2680 | { |
2681 | char *s; |
2682 | va_list v; |
2683 | va_start (v,p); |
2684 | s = g (p, va_arg (v,int)); |
2685 | va_end (v); |
2686 | return s; |
2687 | } |
2688 | |
2689 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2690 | function prototypes and stuff, but not '\xHH' hex character constants. |
2691 | These don't provoke an error unfortunately, instead are silently treated |
2692 | as 'x'. The following induces an error, until -std1 is added to get |
2693 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2694 | array size at least. It's necessary to write '\x00'==0 to get something |
2695 | that's true only with -std1. */ |
2696 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2697 | |
2698 | int test (int i, double x); |
2699 | struct s1 {int (*f) (int a);}; |
2700 | struct s2 {int (*f) (double a);}; |
2701 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
2702 | int argc; |
2703 | char **argv; |
2704 | int |
2705 | main () |
2706 | { |
2707 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2708 | ; |
2709 | return 0; |
2710 | } |
2711 | _ACEOF |
2712 | # Don't try gcc -ansi; that turns off useful extensions and |
2713 | # breaks some systems' header files. |
2714 | # AIX -qlanglvl=ansi |
2715 | # Ultrix and OSF/1 -std1 |
2716 | # HP-UX 10.20 and later -Ae |
2717 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
2718 | # SVR4 -Xc -D__EXTENSIONS__ |
2719 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2720 | do |
2721 | CC="$ac_save_CC $ac_arg" |
2722 | rm -f conftest.$ac_objext |
2723 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2724 | (eval $ac_compile) 2>conftest.er1 |
2725 | ac_status=$? |
2726 | grep -v '^ *+' conftest.er1 >conftest.err |
2727 | rm -f conftest.er1 |
2728 | cat conftest.err >&5 |
2729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2730 | (exit $ac_status); } && |
2731 | { ac_try='test -z "$ac_c_werror_flag" |
2732 | || test ! -s conftest.err' |
2733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2734 | (eval $ac_try) 2>&5 |
2735 | ac_status=$? |
2736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2737 | (exit $ac_status); }; } && |
2738 | { ac_try='test -s conftest.$ac_objext' |
2739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2740 | (eval $ac_try) 2>&5 |
2741 | ac_status=$? |
2742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2743 | (exit $ac_status); }; }; then |
2744 | ac_cv_prog_cc_stdc=$ac_arg |
2745 | break |
2746 | else |
2747 | echo "$as_me: failed program was:" >&5 |
2748 | sed 's/^/| /' conftest.$ac_ext >&5 |
2749 | |
2750 | fi |
2751 | rm -f conftest.err conftest.$ac_objext |
2752 | done |
2753 | rm -f conftest.$ac_ext conftest.$ac_objext |
2754 | CC=$ac_save_CC |
2755 | |
2756 | fi |
2757 | |
2758 | case "x$ac_cv_prog_cc_stdc" in |
2759 | x|xno) |
2760 | echo "$as_me:$LINENO: result: none needed" >&5 |
2761 | echo "${ECHO_T}none needed" >&6 ;; |
2762 | *) |
2763 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2764 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
2765 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
2766 | esac |
2767 | |
2768 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2769 | # in C++ we need to declare it. In case someone uses the same compiler |
2770 | # for both compiling C and C++ we need to have the C++ compiler decide |
2771 | # the declaration of exit, since it's the most demanding environment. |
2772 | cat >conftest.$ac_ext <<_ACEOF |
2773 | #ifndef __cplusplus |
2774 | choke me |
2775 | #endif |
2776 | _ACEOF |
2777 | rm -f conftest.$ac_objext |
2778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2779 | (eval $ac_compile) 2>conftest.er1 |
2780 | ac_status=$? |
2781 | grep -v '^ *+' conftest.er1 >conftest.err |
2782 | rm -f conftest.er1 |
2783 | cat conftest.err >&5 |
2784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2785 | (exit $ac_status); } && |
2786 | { ac_try='test -z "$ac_c_werror_flag" |
2787 | || test ! -s conftest.err' |
2788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2789 | (eval $ac_try) 2>&5 |
2790 | ac_status=$? |
2791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2792 | (exit $ac_status); }; } && |
2793 | { ac_try='test -s conftest.$ac_objext' |
2794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2795 | (eval $ac_try) 2>&5 |
2796 | ac_status=$? |
2797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2798 | (exit $ac_status); }; }; then |
2799 | for ac_declaration in \ |
2800 | '' \ |
2801 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2802 | 'extern "C" void std::exit (int); using std::exit;' \ |
2803 | 'extern "C" void exit (int) throw ();' \ |
2804 | 'extern "C" void exit (int);' \ |
2805 | 'void exit (int);' |
2806 | do |
2807 | cat >conftest.$ac_ext <<_ACEOF |
2808 | /* confdefs.h. */ |
2809 | _ACEOF |
2810 | cat confdefs.h >>conftest.$ac_ext |
2811 | cat >>conftest.$ac_ext <<_ACEOF |
2812 | /* end confdefs.h. */ |
2813 | $ac_declaration |
2814 | #include <stdlib.h> |
2815 | int |
2816 | main () |
2817 | { |
2818 | exit (42); |
2819 | ; |
2820 | return 0; |
2821 | } |
2822 | _ACEOF |
2823 | rm -f conftest.$ac_objext |
2824 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2825 | (eval $ac_compile) 2>conftest.er1 |
2826 | ac_status=$? |
2827 | grep -v '^ *+' conftest.er1 >conftest.err |
2828 | rm -f conftest.er1 |
2829 | cat conftest.err >&5 |
2830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2831 | (exit $ac_status); } && |
2832 | { ac_try='test -z "$ac_c_werror_flag" |
2833 | || test ! -s conftest.err' |
2834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2835 | (eval $ac_try) 2>&5 |
2836 | ac_status=$? |
2837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2838 | (exit $ac_status); }; } && |
2839 | { ac_try='test -s conftest.$ac_objext' |
2840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2841 | (eval $ac_try) 2>&5 |
2842 | ac_status=$? |
2843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2844 | (exit $ac_status); }; }; then |
2845 | : |
2846 | else |
2847 | echo "$as_me: failed program was:" >&5 |
2848 | sed 's/^/| /' conftest.$ac_ext >&5 |
2849 | |
2850 | continue |
2851 | fi |
2852 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2853 | cat >conftest.$ac_ext <<_ACEOF |
2854 | /* confdefs.h. */ |
2855 | _ACEOF |
2856 | cat confdefs.h >>conftest.$ac_ext |
2857 | cat >>conftest.$ac_ext <<_ACEOF |
2858 | /* end confdefs.h. */ |
2859 | $ac_declaration |
2860 | int |
2861 | main () |
2862 | { |
2863 | exit (42); |
2864 | ; |
2865 | return 0; |
2866 | } |
2867 | _ACEOF |
2868 | rm -f conftest.$ac_objext |
2869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2870 | (eval $ac_compile) 2>conftest.er1 |
2871 | ac_status=$? |
2872 | grep -v '^ *+' conftest.er1 >conftest.err |
2873 | rm -f conftest.er1 |
2874 | cat conftest.err >&5 |
2875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2876 | (exit $ac_status); } && |
2877 | { ac_try='test -z "$ac_c_werror_flag" |
2878 | || test ! -s conftest.err' |
2879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2880 | (eval $ac_try) 2>&5 |
2881 | ac_status=$? |
2882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2883 | (exit $ac_status); }; } && |
2884 | { ac_try='test -s conftest.$ac_objext' |
2885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2886 | (eval $ac_try) 2>&5 |
2887 | ac_status=$? |
2888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2889 | (exit $ac_status); }; }; then |
2890 | break |
2891 | else |
2892 | echo "$as_me: failed program was:" >&5 |
2893 | sed 's/^/| /' conftest.$ac_ext >&5 |
2894 | |
2895 | fi |
2896 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2897 | done |
2898 | rm -f conftest* |
2899 | if test -n "$ac_declaration"; then |
2900 | echo '#ifdef __cplusplus' >>confdefs.h |
2901 | echo $ac_declaration >>confdefs.h |
2902 | echo '#endif' >>confdefs.h |
2903 | fi |
2904 | |
2905 | else |
2906 | echo "$as_me: failed program was:" >&5 |
2907 | sed 's/^/| /' conftest.$ac_ext >&5 |
2908 | |
2909 | fi |
2910 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2911 | ac_ext=c |
2912 | ac_cpp='$CPP $CPPFLAGS' |
2913 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2914 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2915 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2916 | DEPDIR="${am__leading_dot}deps" |
2917 | |
2918 | ac_config_commands="$ac_config_commands depfiles" |
2919 | |
2920 | |
2921 | am_make=${MAKE-make} |
2922 | cat > confinc << 'END' |
2923 | am__doit: |
2924 | @echo done |
2925 | .PHONY: am__doit |
2926 | END |
2927 | # If we don't find an include directive, just comment out the code. |
2928 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
2929 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
2930 | am__include="#" |
2931 | am__quote= |
2932 | _am_result=none |
2933 | # First try GNU make style include. |
2934 | echo "include confinc" > confmf |
2935 | # We grep out `Entering directory' and `Leaving directory' |
2936 | # messages which can occur if `w' ends up in MAKEFLAGS. |
2937 | # In particular we don't look at `^make:' because GNU make might |
2938 | # be invoked under some other name (usually "gmake"), in which |
2939 | # case it prints its new name instead of `make'. |
2940 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
2941 | am__include=include |
2942 | am__quote= |
2943 | _am_result=GNU |
2944 | fi |
2945 | # Now try BSD make style include. |
2946 | if test "$am__include" = "#"; then |
2947 | echo '.include "confinc"' > confmf |
2948 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
2949 | am__include=.include |
2950 | am__quote="\"" |
2951 | _am_result=BSD |
2952 | fi |
2953 | fi |
2954 | |
2955 | |
2956 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
2957 | echo "${ECHO_T}$_am_result" >&6 |
2958 | rm -f confinc confmf |
2959 | |
2960 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
2961 | if test "${enable_dependency_tracking+set}" = set; then |
2962 | enableval="$enable_dependency_tracking" |
2963 | |
2964 | fi; |
2965 | if test "x$enable_dependency_tracking" != xno; then |
2966 | am_depcomp="$ac_aux_dir/depcomp" |
2967 | AMDEPBACKSLASH='\' |
2968 | fi |
2969 | |
2970 | |
2971 | if test "x$enable_dependency_tracking" != xno; then |
2972 | AMDEP_TRUE= |
2973 | AMDEP_FALSE='#' |
2974 | else |
2975 | AMDEP_TRUE='#' |
2976 | AMDEP_FALSE= |
2977 | fi |
2978 | |
2979 | |
2980 | |
2981 | |
2982 | depcc="$CC" am_compiler_list= |
2983 | |
2984 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
2985 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
2986 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
2987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2988 | else |
2989 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
2990 | # We make a subdir and do the tests there. Otherwise we can end up |
2991 | # making bogus files that we don't know about and never remove. For |
2992 | # instance it was reported that on HP-UX the gcc test will end up |
2993 | # making a dummy file named `D' -- because `-MD' means `put the output |
2994 | # in D'. |
2995 | mkdir conftest.dir |
2996 | # Copy depcomp to subdir because otherwise we won't find it if we're |
2997 | # using a relative directory. |
2998 | cp "$am_depcomp" conftest.dir |
2999 | cd conftest.dir |
3000 | # We will build objects and dependencies in a subdirectory because |
3001 | # it helps to detect inapplicable dependency modes. For instance |
3002 | # both Tru64's cc and ICC support -MD to output dependencies as a |
3003 | # side effect of compilation, but ICC will put the dependencies in |
3004 | # the current directory while Tru64 will put them in the object |
3005 | # directory. |
3006 | mkdir sub |
3007 | |
3008 | am_cv_CC_dependencies_compiler_type=none |
3009 | if test "$am_compiler_list" = ""; then |
3010 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
3011 | fi |
3012 | for depmode in $am_compiler_list; do |
3013 | # Setup a source with many dependencies, because some compilers |
3014 | # like to wrap large dependency lists on column 80 (with \), and |
3015 | # we should not choose a depcomp mode which is confused by this. |
3016 | # |
3017 | # We need to recreate these files for each test, as the compiler may |
3018 | # overwrite some of them when testing with obscure command lines. |
3019 | # This happens at least with the AIX C compiler. |
3020 | : > sub/conftest.c |
3021 | for i in 1 2 3 4 5 6; do |
3022 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3023 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
3024 | # Solaris 8's {/usr,}/bin/sh. |
3025 | touch sub/conftst$i.h |
3026 | done |
3027 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
3028 | |
3029 | case $depmode in |
3030 | nosideeffect) |
3031 | # after this tag, mechanisms are not by side-effect, so they'll |
3032 | # only be used when explicitly requested |
3033 | if test "x$enable_dependency_tracking" = xyes; then |
3034 | continue |
3035 | else |
3036 | break |
3037 | fi |
3038 | ;; |
3039 | none) break ;; |
3040 | esac |
3041 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3042 | # mode. It turns out that the SunPro C++ compiler does not properly |
3043 | # handle `-M -o', and we need to detect this. |
3044 | if depmode=$depmode \ |
3045 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
3046 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
3047 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
3048 | >/dev/null 2>conftest.err && |
3049 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3050 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
3051 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3052 | # icc doesn't choke on unknown options, it will just issue warnings |
3053 | # or remarks (even with -Werror). So we grep stderr for any message |
3054 | # that says an option was ignored or not supported. |
3055 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
3056 | # icc: Command line warning: ignoring option '-M'; no argument required |
3057 | # The diagnosis changed in icc 8.0: |
3058 | # icc: Command line remark: option '-MP' not supported |
3059 | if (grep 'ignoring option' conftest.err || |
3060 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
3061 | am_cv_CC_dependencies_compiler_type=$depmode |
3062 | break |
3063 | fi |
3064 | fi |
3065 | done |
3066 | |
3067 | cd .. |
3068 | rm -rf conftest.dir |
3069 | else |
3070 | am_cv_CC_dependencies_compiler_type=none |
3071 | fi |
3072 | |
3073 | fi |
3074 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3075 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
3076 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3077 | |
3078 | |
3079 | |
3080 | if |
3081 | test "x$enable_dependency_tracking" != xno \ |
3082 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
3083 | am__fastdepCC_TRUE= |
3084 | am__fastdepCC_FALSE='#' |
3085 | else |
3086 | am__fastdepCC_TRUE='#' |
3087 | am__fastdepCC_FALSE= |
3088 | fi |
3089 | |
3090 | |
3091 | # Find a good install program. We prefer a C program (faster), |
3092 | # so one script is as good as another. But avoid the broken or |
3093 | # incompatible versions: |
3094 | # SysV /etc/install, /usr/sbin/install |
3095 | # SunOS /usr/etc/install |
3096 | # IRIX /sbin/install |
3097 | # AIX /bin/install |
3098 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
3099 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3100 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3101 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
3102 | # OS/2's system install, which has a completely different semantic |
3103 | # ./install, which can be erroneously created by make from ./install.sh. |
3104 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3105 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
3106 | if test -z "$INSTALL"; then |
3107 | if test "${ac_cv_path_install+set}" = set; then |
3108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3109 | else |
3110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3111 | for as_dir in $PATH |
3112 | do |
3113 | IFS=$as_save_IFS |
3114 | test -z "$as_dir" && as_dir=. |
3115 | # Account for people who put trailing slashes in PATH elements. |
3116 | case $as_dir/ in |
3117 | ./ | .// | /cC/* | \ |
3118 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
3119 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
3120 | /usr/ucb/* ) ;; |
3121 | *) |
3122 | # OSF1 and SCO ODT 3.0 have their own names for install. |
3123 | # Don't use installbsd from OSF since it installs stuff as root |
3124 | # by default. |
3125 | for ac_prog in ginstall scoinst install; do |
3126 | for ac_exec_ext in '' $ac_executable_extensions; do |
3127 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
3128 | if test $ac_prog = install && |
3129 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3130 | # AIX install. It has an incompatible calling convention. |
3131 | : |
3132 | elif test $ac_prog = install && |
3133 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3134 | # program-specific install script used by HP pwplus--don't use. |
3135 | : |
3136 | else |
3137 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
3138 | break 3 |
3139 | fi |
3140 | fi |
3141 | done |
3142 | done |
3143 | ;; |
3144 | esac |
3145 | done |
3146 | |
3147 | |
3148 | fi |
3149 | if test "${ac_cv_path_install+set}" = set; then |
3150 | INSTALL=$ac_cv_path_install |
3151 | else |
3152 | # As a last resort, use the slow shell script. We don't cache a |
3153 | # path for INSTALL within a source directory, because that will |
3154 | # break other packages using the cache if that directory is |
3155 | # removed, or if the path is relative. |
3156 | INSTALL=$ac_install_sh |
3157 | fi |
3158 | fi |
3159 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3160 | echo "${ECHO_T}$INSTALL" >&6 |
3161 | |
3162 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3163 | # It thinks the first close brace ends the variable substitution. |
3164 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
3165 | |
3166 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3167 | |
3168 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3169 | |
3170 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3171 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
3172 | LN_S=$as_ln_s |
3173 | if test "$LN_S" = "ln -s"; then |
3174 | echo "$as_me:$LINENO: result: yes" >&5 |
3175 | echo "${ECHO_T}yes" >&6 |
3176 | else |
3177 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3178 | echo "${ECHO_T}no, using $LN_S" >&6 |
3179 | fi |
3180 | |
3181 | # Check whether --enable-shared or --disable-shared was given. |
3182 | if test "${enable_shared+set}" = set; then |
3183 | enableval="$enable_shared" |
3184 | p=${PACKAGE-default} |
3185 | case $enableval in |
3186 | yes) enable_shared=yes ;; |
3187 | no) enable_shared=no ;; |
3188 | *) |
3189 | enable_shared=no |
3190 | # Look at the argument we got. We use all the common list separators. |
3191 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3192 | for pkg in $enableval; do |
3193 | IFS="$lt_save_ifs" |
3194 | if test "X$pkg" = "X$p"; then |
3195 | enable_shared=yes |
3196 | fi |
3197 | done |
3198 | IFS="$lt_save_ifs" |
3199 | ;; |
3200 | esac |
3201 | else |
3202 | enable_shared=yes |
3203 | fi; |
3204 | |
3205 | # Check whether --enable-static or --disable-static was given. |
3206 | if test "${enable_static+set}" = set; then |
3207 | enableval="$enable_static" |
3208 | p=${PACKAGE-default} |
3209 | case $enableval in |
3210 | yes) enable_static=yes ;; |
3211 | no) enable_static=no ;; |
3212 | *) |
3213 | enable_static=no |
3214 | # Look at the argument we got. We use all the common list separators. |
3215 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3216 | for pkg in $enableval; do |
3217 | IFS="$lt_save_ifs" |
3218 | if test "X$pkg" = "X$p"; then |
3219 | enable_static=yes |
3220 | fi |
3221 | done |
3222 | IFS="$lt_save_ifs" |
3223 | ;; |
3224 | esac |
3225 | else |
3226 | enable_static=yes |
3227 | fi; |
3228 | |
3229 | # Check whether --enable-fast-install or --disable-fast-install was given. |
3230 | if test "${enable_fast_install+set}" = set; then |
3231 | enableval="$enable_fast_install" |
3232 | p=${PACKAGE-default} |
3233 | case $enableval in |
3234 | yes) enable_fast_install=yes ;; |
3235 | no) enable_fast_install=no ;; |
3236 | *) |
3237 | enable_fast_install=no |
3238 | # Look at the argument we got. We use all the common list separators. |
3239 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3240 | for pkg in $enableval; do |
3241 | IFS="$lt_save_ifs" |
3242 | if test "X$pkg" = "X$p"; then |
3243 | enable_fast_install=yes |
3244 | fi |
3245 | done |
3246 | IFS="$lt_save_ifs" |
3247 | ;; |
3248 | esac |
3249 | else |
3250 | enable_fast_install=yes |
3251 | fi; |
3252 | |
3253 | # Make sure we can run config.sub. |
3254 | $ac_config_sub sun4 >/dev/null 2>&1 || |
3255 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
3256 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
3257 | { (exit 1); exit 1; }; } |
3258 | |
3259 | echo "$as_me:$LINENO: checking build system type" >&5 |
3260 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
3261 | if test "${ac_cv_build+set}" = set; then |
3262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3263 | else |
3264 | ac_cv_build_alias=$build_alias |
3265 | test -z "$ac_cv_build_alias" && |
3266 | ac_cv_build_alias=`$ac_config_guess` |
3267 | test -z "$ac_cv_build_alias" && |
3268 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
3269 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
3270 | { (exit 1); exit 1; }; } |
3271 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
3272 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
3273 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
3274 | { (exit 1); exit 1; }; } |
3275 | |
3276 | fi |
3277 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
3278 | echo "${ECHO_T}$ac_cv_build" >&6 |
3279 | build=$ac_cv_build |
3280 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
3281 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
3282 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
3283 | |
3284 | |
3285 | echo "$as_me:$LINENO: checking host system type" >&5 |
3286 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
3287 | if test "${ac_cv_host+set}" = set; then |
3288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3289 | else |
3290 | ac_cv_host_alias=$host_alias |
3291 | test -z "$ac_cv_host_alias" && |
3292 | ac_cv_host_alias=$ac_cv_build_alias |
3293 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
3294 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
3295 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
3296 | { (exit 1); exit 1; }; } |
3297 | |
3298 | fi |
3299 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
3300 | echo "${ECHO_T}$ac_cv_host" >&6 |
3301 | host=$ac_cv_host |
3302 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
3303 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
3304 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
3305 | |
3306 | |
3307 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
3308 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
3309 | if test "${lt_cv_path_SED+set}" = set; then |
3310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3311 | else |
3312 | # Loop through the user's path and test for sed and gsed. |
3313 | # Then use that list of sed's as ones to test for truncation. |
3314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3315 | for as_dir in $PATH |
3316 | do |
3317 | IFS=$as_save_IFS |
3318 | test -z "$as_dir" && as_dir=. |
3319 | for lt_ac_prog in sed gsed; do |
3320 | for ac_exec_ext in '' $ac_executable_extensions; do |
3321 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
3322 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
3323 | fi |
3324 | done |
3325 | done |
3326 | done |
3327 | IFS=$as_save_IFS |
3328 | lt_ac_max=0 |
3329 | lt_ac_count=0 |
3330 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
3331 | # along with /bin/sed that truncates output. |
3332 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
3333 | test ! -f $lt_ac_sed && continue |
3334 | cat /dev/null > conftest.in |
3335 | lt_ac_count=0 |
3336 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
3337 | # Check for GNU sed and select it if it is found. |
3338 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
3339 | lt_cv_path_SED=$lt_ac_sed |
3340 | break |
3341 | fi |
3342 | while true; do |
3343 | cat conftest.in conftest.in >conftest.tmp |
3344 | mv conftest.tmp conftest.in |
3345 | cp conftest.in conftest.nl |
3346 | echo >>conftest.nl |
3347 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
3348 | cmp -s conftest.out conftest.nl || break |
3349 | # 10000 chars as input seems more than enough |
3350 | test $lt_ac_count -gt 10 && break |
3351 | lt_ac_count=`expr $lt_ac_count + 1` |
3352 | if test $lt_ac_count -gt $lt_ac_max; then |
3353 | lt_ac_max=$lt_ac_count |
3354 | lt_cv_path_SED=$lt_ac_sed |
3355 | fi |
3356 | done |
3357 | done |
3358 | |
3359 | fi |
3360 | |
3361 | SED=$lt_cv_path_SED |
3362 | |
3363 | echo "$as_me:$LINENO: result: $SED" >&5 |
3364 | echo "${ECHO_T}$SED" >&6 |
3365 | |
3366 | echo "$as_me:$LINENO: checking for egrep" >&5 |
3367 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
3368 | if test "${ac_cv_prog_egrep+set}" = set; then |
3369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3370 | else |
3371 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
3372 | then ac_cv_prog_egrep='grep -E' |
3373 | else ac_cv_prog_egrep='egrep' |
3374 | fi |
3375 | fi |
3376 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
3377 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
3378 | EGREP=$ac_cv_prog_egrep |
3379 | |
3380 | |
3381 | |
3382 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3383 | if test "${with_gnu_ld+set}" = set; then |
3384 | withval="$with_gnu_ld" |
3385 | test "$withval" = no || with_gnu_ld=yes |
3386 | else |
3387 | with_gnu_ld=no |
3388 | fi; |
3389 | ac_prog=ld |
3390 | if test "$GCC" = yes; then |
3391 | # Check if gcc -print-prog-name=ld gives a path. |
3392 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
3393 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
3394 | case $host in |
3395 | *-*-mingw*) |
3396 | # gcc leaves a trailing carriage return which upsets mingw |
3397 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
3398 | *) |
3399 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
3400 | esac |
3401 | case $ac_prog in |
3402 | # Accept absolute paths. |
3403 | [\\/]* | ?:[\\/]*) |
3404 | re_direlt='/[^/][^/]*/\.\./' |
3405 | # Canonicalize the pathname of ld |
3406 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
3407 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
3408 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
3409 | done |
3410 | test -z "$LD" && LD="$ac_prog" |
3411 | ;; |
3412 | "") |
3413 | # If it fails, then pretend we aren't using GCC. |
3414 | ac_prog=ld |
3415 | ;; |
3416 | *) |
3417 | # If it is relative, then search for the first ld in PATH. |
3418 | with_gnu_ld=unknown |
3419 | ;; |
3420 | esac |
3421 | elif test "$with_gnu_ld" = yes; then |
3422 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3423 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
3424 | else |
3425 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
3426 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
3427 | fi |
3428 | if test "${lt_cv_path_LD+set}" = set; then |
3429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3430 | else |
3431 | if test -z "$LD"; then |
3432 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3433 | for ac_dir in $PATH; do |
3434 | IFS="$lt_save_ifs" |
3435 | test -z "$ac_dir" && ac_dir=. |
3436 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
3437 | lt_cv_path_LD="$ac_dir/$ac_prog" |
3438 | # Check to see if the program is GNU ld. I'd rather use --version, |
3439 | # but apparently some variants of GNU ld only accept -v. |
3440 | # Break only if it was the GNU/non-GNU ld that we prefer. |
3441 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
3442 | *GNU* | *'with BFD'*) |
3443 | test "$with_gnu_ld" != no && break |
3444 | ;; |
3445 | *) |
3446 | test "$with_gnu_ld" != yes && break |
3447 | ;; |
3448 | esac |
3449 | fi |
3450 | done |
3451 | IFS="$lt_save_ifs" |
3452 | else |
3453 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
3454 | fi |
3455 | fi |
3456 | |
3457 | LD="$lt_cv_path_LD" |
3458 | if test -n "$LD"; then |
3459 | echo "$as_me:$LINENO: result: $LD" >&5 |
3460 | echo "${ECHO_T}$LD" >&6 |
3461 | else |
3462 | echo "$as_me:$LINENO: result: no" >&5 |
3463 | echo "${ECHO_T}no" >&6 |
3464 | fi |
3465 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
3466 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
3467 | { (exit 1); exit 1; }; } |
3468 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
3469 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
3470 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
3471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3472 | else |
3473 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
3474 | case `$LD -v 2>&1 </dev/null` in |
3475 | *GNU* | *'with BFD'*) |
3476 | lt_cv_prog_gnu_ld=yes |
3477 | ;; |
3478 | *) |
3479 | lt_cv_prog_gnu_ld=no |
3480 | ;; |
3481 | esac |
3482 | fi |
3483 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
3484 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
3485 | with_gnu_ld=$lt_cv_prog_gnu_ld |
3486 | |
3487 | |
3488 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
3489 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
3490 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
3491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3492 | else |
3493 | lt_cv_ld_reload_flag='-r' |
3494 | fi |
3495 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
3496 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
3497 | reload_flag=$lt_cv_ld_reload_flag |
3498 | case $reload_flag in |
3499 | "" | " "*) ;; |
3500 | *) reload_flag=" $reload_flag" ;; |
3501 | esac |
3502 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3503 | case $host_os in |
3504 | darwin*) |
3505 | if test "$GCC" = yes; then |
3506 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
3507 | else |
3508 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3509 | fi |
3510 | ;; |
3511 | esac |
3512 | |
3513 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
3514 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
3515 | if test "${lt_cv_path_NM+set}" = set; then |
3516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3517 | else |
3518 | if test -n "$NM"; then |
3519 | # Let the user override the test. |
3520 | lt_cv_path_NM="$NM" |
3521 | else |
3522 | lt_nm_to_check="${ac_tool_prefix}nm" |
3523 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
3524 | lt_nm_to_check="$lt_nm_to_check nm" |
3525 | fi |
3526 | for lt_tmp_nm in $lt_nm_to_check; do |
3527 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3528 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
3529 | IFS="$lt_save_ifs" |
3530 | test -z "$ac_dir" && ac_dir=. |
3531 | tmp_nm="$ac_dir/$lt_tmp_nm" |
3532 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
3533 | # Check to see if the nm accepts a BSD-compat flag. |
3534 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
3535 | # nm: unknown option "B" ignored |
3536 | # Tru64's nm complains that /dev/null is an invalid object file |
3537 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
3538 | */dev/null* | *'Invalid file or object type'*) |
3539 | lt_cv_path_NM="$tmp_nm -B" |
3540 | break |
3541 | ;; |
3542 | *) |
3543 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
3544 | */dev/null*) |
3545 | lt_cv_path_NM="$tmp_nm -p" |
3546 | break |
3547 | ;; |
3548 | *) |
3549 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
3550 | continue # so that we can try to find one that supports BSD flags |
3551 | ;; |
3552 | esac |
3553 | ;; |
3554 | esac |
3555 | fi |
3556 | done |
3557 | IFS="$lt_save_ifs" |
3558 | done |
3559 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
3560 | fi |
3561 | fi |
3562 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
3563 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
3564 | NM="$lt_cv_path_NM" |
3565 | |
3566 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
3567 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
3568 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
3569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3570 | else |
3571 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
3572 | lt_cv_file_magic_test_file= |
3573 | lt_cv_deplibs_check_method='unknown' |
3574 | # Need to set the preceding variable on all platforms that support |
3575 | # interlibrary dependencies. |
3576 | # 'none' -- dependencies not supported. |
3577 | # `unknown' -- same as none, but documents that we really don't know. |
3578 | # 'pass_all' -- all dependencies passed with no checks. |
3579 | # 'test_compile' -- check by making test program. |
3580 | # 'file_magic [[regex]]' -- check by looking for files in library path |
3581 | # which responds to the $file_magic_cmd with a given extended regex. |
3582 | # If you have `file' or equivalent on your system and you're not sure |
3583 | # whether `pass_all' will *always* work, you probably want this one. |
3584 | |
3585 | case $host_os in |
3586 | aix4* | aix5*) |
3587 | lt_cv_deplibs_check_method=pass_all |
3588 | ;; |
3589 | |
3590 | beos*) |
3591 | lt_cv_deplibs_check_method=pass_all |
3592 | ;; |
3593 | |
3594 | bsdi[45]*) |
3595 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
3596 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
3597 | lt_cv_file_magic_test_file=/shlib/libc.so |
3598 | ;; |
3599 | |
3600 | cygwin*) |
3601 | # func_win32_libid is a shell function defined in ltmain.sh |
3602 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
3603 | lt_cv_file_magic_cmd='func_win32_libid' |
3604 | ;; |
3605 | |
3606 | mingw* | pw32*) |
3607 | # Base MSYS/MinGW do not provide the 'file' command needed by |
3608 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
3609 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
3610 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
3611 | ;; |
3612 | |
3613 | darwin* | rhapsody*) |
3614 | lt_cv_deplibs_check_method=pass_all |
3615 | ;; |
3616 | |
3617 | freebsd* | kfreebsd*-gnu | dragonfly*) |
3618 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3619 | case $host_cpu in |
3620 | i*86 ) |
3621 | # Not sure whether the presence of OpenBSD here was a mistake. |
3622 | # Let's accept both of them until this is cleared up. |
3623 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
3624 | lt_cv_file_magic_cmd=/usr/bin/file |
3625 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3626 | ;; |
3627 | esac |
3628 | else |
3629 | lt_cv_deplibs_check_method=pass_all |
3630 | fi |
3631 | ;; |
3632 | |
3633 | gnu*) |
3634 | lt_cv_deplibs_check_method=pass_all |
3635 | ;; |
3636 | |
3637 | hpux10.20* | hpux11*) |
3638 | lt_cv_file_magic_cmd=/usr/bin/file |
3639 | case $host_cpu in |
3640 | ia64*) |
3641 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
3642 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
3643 | ;; |
3644 | hppa*64*) |
3645 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' |
3646 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
3647 | ;; |
3648 | *) |
3649 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
3650 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
3651 | ;; |
3652 | esac |
3653 | ;; |
3654 | |
3655 | interix3*) |
3656 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
3657 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
3658 | ;; |
3659 | |
3660 | irix5* | irix6* | nonstopux*) |
3661 | case $LD in |
3662 | *-32|*"-32 ") libmagic=32-bit;; |
3663 | *-n32|*"-n32 ") libmagic=N32;; |
3664 | *-64|*"-64 ") libmagic=64-bit;; |
3665 | *) libmagic=never-match;; |
3666 | esac |
3667 | lt_cv_deplibs_check_method=pass_all |
3668 | ;; |
3669 | |
3670 | # This must be Linux ELF. |
3671 | linux*) |
3672 | lt_cv_deplibs_check_method=pass_all |
3673 | ;; |
3674 | |
3675 | netbsd*) |
3676 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3677 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
3678 | else |
3679 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
3680 | fi |
3681 | ;; |
3682 | |
3683 | newos6*) |
3684 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
3685 | lt_cv_file_magic_cmd=/usr/bin/file |
3686 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
3687 | ;; |
3688 | |
3689 | nto-qnx*) |
3690 | lt_cv_deplibs_check_method=unknown |
3691 | ;; |
3692 | |
3693 | openbsd*) |
3694 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
3695 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
3696 | else |
3697 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
3698 | fi |
3699 | ;; |
3700 | |
3701 | osf3* | osf4* | osf5*) |
3702 | lt_cv_deplibs_check_method=pass_all |
3703 | ;; |
3704 | |
3705 | solaris*) |
3706 | lt_cv_deplibs_check_method=pass_all |
3707 | ;; |
3708 | |
3709 | sysv4 | sysv4.3*) |
3710 | case $host_vendor in |
3711 | motorola) |
3712 | 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]' |
3713 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
3714 | ;; |
3715 | ncr) |
3716 | lt_cv_deplibs_check_method=pass_all |
3717 | ;; |
3718 | sequent) |
3719 | lt_cv_file_magic_cmd='/bin/file' |
3720 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
3721 | ;; |
3722 | sni) |
3723 | lt_cv_file_magic_cmd='/bin/file' |
3724 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
3725 | lt_cv_file_magic_test_file=/lib/libc.so |
3726 | ;; |
3727 | siemens) |
3728 | lt_cv_deplibs_check_method=pass_all |
3729 | ;; |
3730 | pc) |
3731 | lt_cv_deplibs_check_method=pass_all |
3732 | ;; |
3733 | esac |
3734 | ;; |
3735 | |
3736 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
3737 | lt_cv_deplibs_check_method=pass_all |
3738 | ;; |
3739 | esac |
3740 | |
3741 | fi |
3742 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
3743 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
3744 | file_magic_cmd=$lt_cv_file_magic_cmd |
3745 | deplibs_check_method=$lt_cv_deplibs_check_method |
3746 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
3747 | |
3748 | |
3749 | |
3750 | |
3751 | # If no C compiler was specified, use CC. |
3752 | LTCC=${LTCC-"$CC"} |
3753 | |
3754 | # If no C compiler flags were specified, use CFLAGS. |
3755 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
3756 | |
3757 | # Allow CC to be a program name with arguments. |
3758 | compiler=$CC |
3759 | |
3760 | |
3761 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
3762 | if test "${enable_libtool_lock+set}" = set; then |
3763 | enableval="$enable_libtool_lock" |
3764 | |
3765 | fi; |
3766 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
3767 | |
3768 | # Some flags need to be propagated to the compiler or linker for good |
3769 | # libtool support. |
3770 | case $host in |
3771 | ia64-*-hpux*) |
3772 | # Find out which ABI we are using. |
3773 | echo 'int i;' > conftest.$ac_ext |
3774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3775 | (eval $ac_compile) 2>&5 |
3776 | ac_status=$? |
3777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3778 | (exit $ac_status); }; then |
3779 | case `/usr/bin/file conftest.$ac_objext` in |
3780 | *ELF-32*) |
3781 | HPUX_IA64_MODE="32" |
3782 | ;; |
3783 | *ELF-64*) |
3784 | HPUX_IA64_MODE="64" |
3785 | ;; |
3786 | esac |
3787 | fi |
3788 | rm -rf conftest* |
3789 | ;; |
3790 | *-*-irix6*) |
3791 | # Find out which ABI we are using. |
3792 | echo '#line 3792 "configure"' > conftest.$ac_ext |
3793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3794 | (eval $ac_compile) 2>&5 |
3795 | ac_status=$? |
3796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3797 | (exit $ac_status); }; then |
3798 | if test "$lt_cv_prog_gnu_ld" = yes; then |
3799 | case `/usr/bin/file conftest.$ac_objext` in |
3800 | *32-bit*) |
3801 | LD="${LD-ld} -melf32bsmip" |
3802 | ;; |
3803 | *N32*) |
3804 | LD="${LD-ld} -melf32bmipn32" |
3805 | ;; |
3806 | *64-bit*) |
3807 | LD="${LD-ld} -melf64bmip" |
3808 | ;; |
3809 | esac |
3810 | else |
3811 | case `/usr/bin/file conftest.$ac_objext` in |
3812 | *32-bit*) |
3813 | LD="${LD-ld} -32" |
3814 | ;; |
3815 | *N32*) |
3816 | LD="${LD-ld} -n32" |
3817 | ;; |
3818 | *64-bit*) |
3819 | LD="${LD-ld} -64" |
3820 | ;; |
3821 | esac |
3822 | fi |
3823 | fi |
3824 | rm -rf conftest* |
3825 | ;; |
3826 | |
3827 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
3828 | # Find out which ABI we are using. |
3829 | echo 'int i;' > conftest.$ac_ext |
3830 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3831 | (eval $ac_compile) 2>&5 |
3832 | ac_status=$? |
3833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3834 | (exit $ac_status); }; then |
3835 | case `/usr/bin/file conftest.o` in |
3836 | *32-bit*) |
3837 | case $host in |
3838 | x86_64-*linux*) |
3839 | LD="${LD-ld} -m elf_i386" |
3840 | ;; |
3841 | ppc64-*linux*|powerpc64-*linux*) |
3842 | LD="${LD-ld} -m elf32ppclinux" |
3843 | ;; |
3844 | s390x-*linux*) |
3845 | LD="${LD-ld} -m elf_s390" |
3846 | ;; |
3847 | sparc64-*linux*) |
3848 | LD="${LD-ld} -m elf32_sparc" |
3849 | ;; |
3850 | esac |
3851 | ;; |
3852 | *64-bit*) |
3853 | case $host in |
3854 | x86_64-*linux*) |
3855 | LD="${LD-ld} -m elf_x86_64" |
3856 | ;; |
3857 | ppc*-*linux*|powerpc*-*linux*) |
3858 | LD="${LD-ld} -m elf64ppc" |
3859 | ;; |
3860 | s390*-*linux*) |
3861 | LD="${LD-ld} -m elf64_s390" |
3862 | ;; |
3863 | sparc*-*linux*) |
3864 | LD="${LD-ld} -m elf64_sparc" |
3865 | ;; |
3866 | esac |
3867 | ;; |
3868 | esac |
3869 | fi |
3870 | rm -rf conftest* |
3871 | ;; |
3872 | |
3873 | *-*-sco3.2v5*) |
3874 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
3875 | SAVE_CFLAGS="$CFLAGS" |
3876 | CFLAGS="$CFLAGS -belf" |
3877 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
3878 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
3879 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
3880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3881 | else |
3882 | ac_ext=c |
3883 | ac_cpp='$CPP $CPPFLAGS' |
3884 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3885 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3886 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3887 | |
3888 | cat >conftest.$ac_ext <<_ACEOF |
3889 | /* confdefs.h. */ |
3890 | _ACEOF |
3891 | cat confdefs.h >>conftest.$ac_ext |
3892 | cat >>conftest.$ac_ext <<_ACEOF |
3893 | /* end confdefs.h. */ |
3894 | |
3895 | int |
3896 | main () |
3897 | { |
3898 | |
3899 | ; |
3900 | return 0; |
3901 | } |
3902 | _ACEOF |
3903 | rm -f conftest.$ac_objext conftest$ac_exeext |
3904 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3905 | (eval $ac_link) 2>conftest.er1 |
3906 | ac_status=$? |
3907 | grep -v '^ *+' conftest.er1 >conftest.err |
3908 | rm -f conftest.er1 |
3909 | cat conftest.err >&5 |
3910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3911 | (exit $ac_status); } && |
3912 | { ac_try='test -z "$ac_c_werror_flag" |
3913 | || test ! -s conftest.err' |
3914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3915 | (eval $ac_try) 2>&5 |
3916 | ac_status=$? |
3917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3918 | (exit $ac_status); }; } && |
3919 | { ac_try='test -s conftest$ac_exeext' |
3920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3921 | (eval $ac_try) 2>&5 |
3922 | ac_status=$? |
3923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3924 | (exit $ac_status); }; }; then |
3925 | lt_cv_cc_needs_belf=yes |
3926 | else |
3927 | echo "$as_me: failed program was:" >&5 |
3928 | sed 's/^/| /' conftest.$ac_ext >&5 |
3929 | |
3930 | lt_cv_cc_needs_belf=no |
3931 | fi |
3932 | rm -f conftest.err conftest.$ac_objext \ |
3933 | conftest$ac_exeext conftest.$ac_ext |
3934 | ac_ext=c |
3935 | ac_cpp='$CPP $CPPFLAGS' |
3936 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3937 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3938 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3939 | |
3940 | fi |
3941 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
3942 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
3943 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
3944 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
3945 | CFLAGS="$SAVE_CFLAGS" |
3946 | fi |
3947 | ;; |
3948 | sparc*-*solaris*) |
3949 | # Find out which ABI we are using. |
3950 | echo 'int i;' > conftest.$ac_ext |
3951 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3952 | (eval $ac_compile) 2>&5 |
3953 | ac_status=$? |
3954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3955 | (exit $ac_status); }; then |
3956 | case `/usr/bin/file conftest.o` in |
3957 | *64-bit*) |
3958 | case $lt_cv_prog_gnu_ld in |
3959 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
3960 | *) LD="${LD-ld} -64" ;; |
3961 | esac |
3962 | ;; |
3963 | esac |
3964 | fi |
3965 | rm -rf conftest* |
3966 | ;; |
3967 | |
3968 | |
3969 | esac |
3970 | |
3971 | need_locks="$enable_libtool_lock" |
3972 | |
3973 | |
3974 | ac_ext=c |
3975 | ac_cpp='$CPP $CPPFLAGS' |
3976 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3977 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3978 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3979 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3980 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
3981 | # On Suns, sometimes $CPP names a directory. |
3982 | if test -n "$CPP" && test -d "$CPP"; then |
3983 | CPP= |
3984 | fi |
3985 | if test -z "$CPP"; then |
3986 | if test "${ac_cv_prog_CPP+set}" = set; then |
3987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3988 | else |
3989 | # Double quotes because CPP needs to be expanded |
3990 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
3991 | do |
3992 | ac_preproc_ok=false |
3993 | for ac_c_preproc_warn_flag in '' yes |
3994 | do |
3995 | # Use a header file that comes with gcc, so configuring glibc |
3996 | # with a fresh cross-compiler works. |
3997 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3998 | # <limits.h> exists even on freestanding compilers. |
3999 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4000 | # not just through cpp. "Syntax error" is here to catch this case. |
4001 | cat >conftest.$ac_ext <<_ACEOF |
4002 | /* confdefs.h. */ |
4003 | _ACEOF |
4004 | cat confdefs.h >>conftest.$ac_ext |
4005 | cat >>conftest.$ac_ext <<_ACEOF |
4006 | /* end confdefs.h. */ |
4007 | #ifdef __STDC__ |
4008 | # include <limits.h> |
4009 | #else |
4010 | # include <assert.h> |
4011 | #endif |
4012 | Syntax error |
4013 | _ACEOF |
4014 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4015 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4016 | ac_status=$? |
4017 | grep -v '^ *+' conftest.er1 >conftest.err |
4018 | rm -f conftest.er1 |
4019 | cat conftest.err >&5 |
4020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4021 | (exit $ac_status); } >/dev/null; then |
4022 | if test -s conftest.err; then |
4023 | ac_cpp_err=$ac_c_preproc_warn_flag |
4024 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4025 | else |
4026 | ac_cpp_err= |
4027 | fi |
4028 | else |
4029 | ac_cpp_err=yes |
4030 | fi |
4031 | if test -z "$ac_cpp_err"; then |
4032 | : |
4033 | else |
4034 | echo "$as_me: failed program was:" >&5 |
4035 | sed 's/^/| /' conftest.$ac_ext >&5 |
4036 | |
4037 | # Broken: fails on valid input. |
4038 | continue |
4039 | fi |
4040 | rm -f conftest.err conftest.$ac_ext |
4041 | |
4042 | # OK, works on sane cases. Now check whether non-existent headers |
4043 | # can be detected and how. |
4044 | cat >conftest.$ac_ext <<_ACEOF |
4045 | /* confdefs.h. */ |
4046 | _ACEOF |
4047 | cat confdefs.h >>conftest.$ac_ext |
4048 | cat >>conftest.$ac_ext <<_ACEOF |
4049 | /* end confdefs.h. */ |
4050 | #include <ac_nonexistent.h> |
4051 | _ACEOF |
4052 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4053 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4054 | ac_status=$? |
4055 | grep -v '^ *+' conftest.er1 >conftest.err |
4056 | rm -f conftest.er1 |
4057 | cat conftest.err >&5 |
4058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4059 | (exit $ac_status); } >/dev/null; then |
4060 | if test -s conftest.err; then |
4061 | ac_cpp_err=$ac_c_preproc_warn_flag |
4062 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4063 | else |
4064 | ac_cpp_err= |
4065 | fi |
4066 | else |
4067 | ac_cpp_err=yes |
4068 | fi |
4069 | if test -z "$ac_cpp_err"; then |
4070 | # Broken: success on invalid input. |
4071 | continue |
4072 | else |
4073 | echo "$as_me: failed program was:" >&5 |
4074 | sed 's/^/| /' conftest.$ac_ext >&5 |
4075 | |
4076 | # Passes both tests. |
4077 | ac_preproc_ok=: |
4078 | break |
4079 | fi |
4080 | rm -f conftest.err conftest.$ac_ext |
4081 | |
4082 | done |
4083 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4084 | rm -f conftest.err conftest.$ac_ext |
4085 | if $ac_preproc_ok; then |
4086 | break |
4087 | fi |
4088 | |
4089 | done |
4090 | ac_cv_prog_CPP=$CPP |
4091 | |
4092 | fi |
4093 | CPP=$ac_cv_prog_CPP |
4094 | else |
4095 | ac_cv_prog_CPP=$CPP |
4096 | fi |
4097 | echo "$as_me:$LINENO: result: $CPP" >&5 |
4098 | echo "${ECHO_T}$CPP" >&6 |
4099 | ac_preproc_ok=false |
4100 | for ac_c_preproc_warn_flag in '' yes |
4101 | do |
4102 | # Use a header file that comes with gcc, so configuring glibc |
4103 | # with a fresh cross-compiler works. |
4104 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4105 | # <limits.h> exists even on freestanding compilers. |
4106 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4107 | # not just through cpp. "Syntax error" is here to catch this case. |
4108 | cat >conftest.$ac_ext <<_ACEOF |
4109 | /* confdefs.h. */ |
4110 | _ACEOF |
4111 | cat confdefs.h >>conftest.$ac_ext |
4112 | cat >>conftest.$ac_ext <<_ACEOF |
4113 | /* end confdefs.h. */ |
4114 | #ifdef __STDC__ |
4115 | # include <limits.h> |
4116 | #else |
4117 | # include <assert.h> |
4118 | #endif |
4119 | Syntax error |
4120 | _ACEOF |
4121 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4122 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4123 | ac_status=$? |
4124 | grep -v '^ *+' conftest.er1 >conftest.err |
4125 | rm -f conftest.er1 |
4126 | cat conftest.err >&5 |
4127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4128 | (exit $ac_status); } >/dev/null; then |
4129 | if test -s conftest.err; then |
4130 | ac_cpp_err=$ac_c_preproc_warn_flag |
4131 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4132 | else |
4133 | ac_cpp_err= |
4134 | fi |
4135 | else |
4136 | ac_cpp_err=yes |
4137 | fi |
4138 | if test -z "$ac_cpp_err"; then |
4139 | : |
4140 | else |
4141 | echo "$as_me: failed program was:" >&5 |
4142 | sed 's/^/| /' conftest.$ac_ext >&5 |
4143 | |
4144 | # Broken: fails on valid input. |
4145 | continue |
4146 | fi |
4147 | rm -f conftest.err conftest.$ac_ext |
4148 | |
4149 | # OK, works on sane cases. Now check whether non-existent headers |
4150 | # can be detected and how. |
4151 | cat >conftest.$ac_ext <<_ACEOF |
4152 | /* confdefs.h. */ |
4153 | _ACEOF |
4154 | cat confdefs.h >>conftest.$ac_ext |
4155 | cat >>conftest.$ac_ext <<_ACEOF |
4156 | /* end confdefs.h. */ |
4157 | #include <ac_nonexistent.h> |
4158 | _ACEOF |
4159 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4160 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4161 | ac_status=$? |
4162 | grep -v '^ *+' conftest.er1 >conftest.err |
4163 | rm -f conftest.er1 |
4164 | cat conftest.err >&5 |
4165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4166 | (exit $ac_status); } >/dev/null; then |
4167 | if test -s conftest.err; then |
4168 | ac_cpp_err=$ac_c_preproc_warn_flag |
4169 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4170 | else |
4171 | ac_cpp_err= |
4172 | fi |
4173 | else |
4174 | ac_cpp_err=yes |
4175 | fi |
4176 | if test -z "$ac_cpp_err"; then |
4177 | # Broken: success on invalid input. |
4178 | continue |
4179 | else |
4180 | echo "$as_me: failed program was:" >&5 |
4181 | sed 's/^/| /' conftest.$ac_ext >&5 |
4182 | |
4183 | # Passes both tests. |
4184 | ac_preproc_ok=: |
4185 | break |
4186 | fi |
4187 | rm -f conftest.err conftest.$ac_ext |
4188 | |
4189 | done |
4190 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4191 | rm -f conftest.err conftest.$ac_ext |
4192 | if $ac_preproc_ok; then |
4193 | : |
4194 | else |
4195 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
4196 | See \`config.log' for more details." >&5 |
4197 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
4198 | See \`config.log' for more details." >&2;} |
4199 | { (exit 1); exit 1; }; } |
4200 | fi |
4201 | |
4202 | ac_ext=c |
4203 | ac_cpp='$CPP $CPPFLAGS' |
4204 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4205 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4206 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4207 | |
4208 | |
4209 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4210 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
4211 | if test "${ac_cv_header_stdc+set}" = set; then |
4212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4213 | else |
4214 | cat >conftest.$ac_ext <<_ACEOF |
4215 | /* confdefs.h. */ |
4216 | _ACEOF |
4217 | cat confdefs.h >>conftest.$ac_ext |
4218 | cat >>conftest.$ac_ext <<_ACEOF |
4219 | /* end confdefs.h. */ |
4220 | #include <stdlib.h> |
4221 | #include <stdarg.h> |
4222 | #include <string.h> |
4223 | #include <float.h> |
4224 | |
4225 | int |
4226 | main () |
4227 | { |
4228 | |
4229 | ; |
4230 | return 0; |
4231 | } |
4232 | _ACEOF |
4233 | rm -f conftest.$ac_objext |
4234 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4235 | (eval $ac_compile) 2>conftest.er1 |
4236 | ac_status=$? |
4237 | grep -v '^ *+' conftest.er1 >conftest.err |
4238 | rm -f conftest.er1 |
4239 | cat conftest.err >&5 |
4240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4241 | (exit $ac_status); } && |
4242 | { ac_try='test -z "$ac_c_werror_flag" |
4243 | || test ! -s conftest.err' |
4244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4245 | (eval $ac_try) 2>&5 |
4246 | ac_status=$? |
4247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4248 | (exit $ac_status); }; } && |
4249 | { ac_try='test -s conftest.$ac_objext' |
4250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4251 | (eval $ac_try) 2>&5 |
4252 | ac_status=$? |
4253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4254 | (exit $ac_status); }; }; then |
4255 | ac_cv_header_stdc=yes |
4256 | else |
4257 | echo "$as_me: failed program was:" >&5 |
4258 | sed 's/^/| /' conftest.$ac_ext >&5 |
4259 | |
4260 | ac_cv_header_stdc=no |
4261 | fi |
4262 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4263 | |
4264 | if test $ac_cv_header_stdc = yes; then |
4265 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
4266 | cat >conftest.$ac_ext <<_ACEOF |
4267 | /* confdefs.h. */ |
4268 | _ACEOF |
4269 | cat confdefs.h >>conftest.$ac_ext |
4270 | cat >>conftest.$ac_ext <<_ACEOF |
4271 | /* end confdefs.h. */ |
4272 | #include <string.h> |
4273 | |
4274 | _ACEOF |
4275 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4276 | $EGREP "memchr" >/dev/null 2>&1; then |
4277 | : |
4278 | else |
4279 | ac_cv_header_stdc=no |
4280 | fi |
4281 | rm -f conftest* |
4282 | |
4283 | fi |
4284 | |
4285 | if test $ac_cv_header_stdc = yes; then |
4286 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
4287 | cat >conftest.$ac_ext <<_ACEOF |
4288 | /* confdefs.h. */ |
4289 | _ACEOF |
4290 | cat confdefs.h >>conftest.$ac_ext |
4291 | cat >>conftest.$ac_ext <<_ACEOF |
4292 | /* end confdefs.h. */ |
4293 | #include <stdlib.h> |
4294 | |
4295 | _ACEOF |
4296 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4297 | $EGREP "free" >/dev/null 2>&1; then |
4298 | : |
4299 | else |
4300 | ac_cv_header_stdc=no |
4301 | fi |
4302 | rm -f conftest* |
4303 | |
4304 | fi |
4305 | |
4306 | if test $ac_cv_header_stdc = yes; then |
4307 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
4308 | if test "$cross_compiling" = yes; then |
4309 | : |
4310 | else |
4311 | cat >conftest.$ac_ext <<_ACEOF |
4312 | /* confdefs.h. */ |
4313 | _ACEOF |
4314 | cat confdefs.h >>conftest.$ac_ext |
4315 | cat >>conftest.$ac_ext <<_ACEOF |
4316 | /* end confdefs.h. */ |
4317 | #include <ctype.h> |
4318 | #if ((' ' & 0x0FF) == 0x020) |
4319 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
4320 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
4321 | #else |
4322 | # define ISLOWER(c) \ |
4323 | (('a' <= (c) && (c) <= 'i') \ |
4324 | || ('j' <= (c) && (c) <= 'r') \ |
4325 | || ('s' <= (c) && (c) <= 'z')) |
4326 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4327 | #endif |
4328 | |
4329 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4330 | int |
4331 | main () |
4332 | { |
4333 | int i; |
4334 | for (i = 0; i < 256; i++) |
4335 | if (XOR (islower (i), ISLOWER (i)) |
4336 | || toupper (i) != TOUPPER (i)) |
4337 | exit(2); |
4338 | exit (0); |
4339 | } |
4340 | _ACEOF |
4341 | rm -f conftest$ac_exeext |
4342 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4343 | (eval $ac_link) 2>&5 |
4344 | ac_status=$? |
4345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4346 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4348 | (eval $ac_try) 2>&5 |
4349 | ac_status=$? |
4350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4351 | (exit $ac_status); }; }; then |
4352 | : |
4353 | else |
4354 | echo "$as_me: program exited with status $ac_status" >&5 |
4355 | echo "$as_me: failed program was:" >&5 |
4356 | sed 's/^/| /' conftest.$ac_ext >&5 |
4357 | |
4358 | ( exit $ac_status ) |
4359 | ac_cv_header_stdc=no |
4360 | fi |
4361 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4362 | fi |
4363 | fi |
4364 | fi |
4365 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4366 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
4367 | if test $ac_cv_header_stdc = yes; then |
4368 | |
4369 | cat >>confdefs.h <<\_ACEOF |
4370 | #define STDC_HEADERS 1 |
4371 | _ACEOF |
4372 | |
4373 | fi |
4374 | |
4375 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4376 | |
4377 | |
4378 | |
4379 | |
4380 | |
4381 | |
4382 | |
4383 | |
4384 | |
4385 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4386 | inttypes.h stdint.h unistd.h |
4387 | do |
4388 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4389 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4390 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4391 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4393 | else |
4394 | cat >conftest.$ac_ext <<_ACEOF |
4395 | /* confdefs.h. */ |
4396 | _ACEOF |
4397 | cat confdefs.h >>conftest.$ac_ext |
4398 | cat >>conftest.$ac_ext <<_ACEOF |
4399 | /* end confdefs.h. */ |
4400 | $ac_includes_default |
4401 | |
4402 | #include <$ac_header> |
4403 | _ACEOF |
4404 | rm -f conftest.$ac_objext |
4405 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4406 | (eval $ac_compile) 2>conftest.er1 |
4407 | ac_status=$? |
4408 | grep -v '^ *+' conftest.er1 >conftest.err |
4409 | rm -f conftest.er1 |
4410 | cat conftest.err >&5 |
4411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4412 | (exit $ac_status); } && |
4413 | { ac_try='test -z "$ac_c_werror_flag" |
4414 | || test ! -s conftest.err' |
4415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4416 | (eval $ac_try) 2>&5 |
4417 | ac_status=$? |
4418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4419 | (exit $ac_status); }; } && |
4420 | { ac_try='test -s conftest.$ac_objext' |
4421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4422 | (eval $ac_try) 2>&5 |
4423 | ac_status=$? |
4424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4425 | (exit $ac_status); }; }; then |
4426 | eval "$as_ac_Header=yes" |
4427 | else |
4428 | echo "$as_me: failed program was:" >&5 |
4429 | sed 's/^/| /' conftest.$ac_ext >&5 |
4430 | |
4431 | eval "$as_ac_Header=no" |
4432 | fi |
4433 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4434 | fi |
4435 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4436 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4437 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4438 | cat >>confdefs.h <<_ACEOF |
4439 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4440 | _ACEOF |
4441 | |
4442 | fi |
4443 | |
4444 | done |
4445 | |
4446 | |
4447 | |
4448 | for ac_header in dlfcn.h |
4449 | do |
4450 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4451 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4452 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4453 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4454 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4456 | fi |
4457 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4458 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4459 | else |
4460 | # Is the header compilable? |
4461 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4462 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
4463 | cat >conftest.$ac_ext <<_ACEOF |
4464 | /* confdefs.h. */ |
4465 | _ACEOF |
4466 | cat confdefs.h >>conftest.$ac_ext |
4467 | cat >>conftest.$ac_ext <<_ACEOF |
4468 | /* end confdefs.h. */ |
4469 | $ac_includes_default |
4470 | #include <$ac_header> |
4471 | _ACEOF |
4472 | rm -f conftest.$ac_objext |
4473 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4474 | (eval $ac_compile) 2>conftest.er1 |
4475 | ac_status=$? |
4476 | grep -v '^ *+' conftest.er1 >conftest.err |
4477 | rm -f conftest.er1 |
4478 | cat conftest.err >&5 |
4479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4480 | (exit $ac_status); } && |
4481 | { ac_try='test -z "$ac_c_werror_flag" |
4482 | || test ! -s conftest.err' |
4483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4484 | (eval $ac_try) 2>&5 |
4485 | ac_status=$? |
4486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4487 | (exit $ac_status); }; } && |
4488 | { ac_try='test -s conftest.$ac_objext' |
4489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4490 | (eval $ac_try) 2>&5 |
4491 | ac_status=$? |
4492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4493 | (exit $ac_status); }; }; then |
4494 | ac_header_compiler=yes |
4495 | else |
4496 | echo "$as_me: failed program was:" >&5 |
4497 | sed 's/^/| /' conftest.$ac_ext >&5 |
4498 | |
4499 | ac_header_compiler=no |
4500 | fi |
4501 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4502 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4503 | echo "${ECHO_T}$ac_header_compiler" >&6 |
4504 | |
4505 | # Is the header present? |
4506 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4507 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
4508 | cat >conftest.$ac_ext <<_ACEOF |
4509 | /* confdefs.h. */ |
4510 | _ACEOF |
4511 | cat confdefs.h >>conftest.$ac_ext |
4512 | cat >>conftest.$ac_ext <<_ACEOF |
4513 | /* end confdefs.h. */ |
4514 | #include <$ac_header> |
4515 | _ACEOF |
4516 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4517 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4518 | ac_status=$? |
4519 | grep -v '^ *+' conftest.er1 >conftest.err |
4520 | rm -f conftest.er1 |
4521 | cat conftest.err >&5 |
4522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4523 | (exit $ac_status); } >/dev/null; then |
4524 | if test -s conftest.err; then |
4525 | ac_cpp_err=$ac_c_preproc_warn_flag |
4526 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4527 | else |
4528 | ac_cpp_err= |
4529 | fi |
4530 | else |
4531 | ac_cpp_err=yes |
4532 | fi |
4533 | if test -z "$ac_cpp_err"; then |
4534 | ac_header_preproc=yes |
4535 | else |
4536 | echo "$as_me: failed program was:" >&5 |
4537 | sed 's/^/| /' conftest.$ac_ext >&5 |
4538 | |
4539 | ac_header_preproc=no |
4540 | fi |
4541 | rm -f conftest.err conftest.$ac_ext |
4542 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4543 | echo "${ECHO_T}$ac_header_preproc" >&6 |
4544 | |
4545 | # So? What about this header? |
4546 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4547 | yes:no: ) |
4548 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4549 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
4550 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4551 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
4552 | ac_header_preproc=yes |
4553 | ;; |
4554 | no:yes:* ) |
4555 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4556 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
4557 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4558 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
4559 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
4560 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
4561 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
4562 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
4563 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4564 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
4565 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4566 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
4567 | ( |
4568 | cat <<\_ASBOX |
4569 | ## -------------------------------------------------- ## |
4570 | ## Report this to courier-users@lists.sourceforge.net ## |
4571 | ## -------------------------------------------------- ## |
4572 | _ASBOX |
4573 | ) | |
4574 | sed "s/^/$as_me: WARNING: /" >&2 |
4575 | ;; |
4576 | esac |
4577 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4578 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4579 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4581 | else |
4582 | eval "$as_ac_Header=\$ac_header_preproc" |
4583 | fi |
4584 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4585 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4586 | |
4587 | fi |
4588 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4589 | cat >>confdefs.h <<_ACEOF |
4590 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4591 | _ACEOF |
4592 | |
4593 | fi |
4594 | |
4595 | done |
4596 | |
4597 | ac_ext=cc |
4598 | ac_cpp='$CXXCPP $CPPFLAGS' |
4599 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4600 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4601 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4602 | if test -n "$ac_tool_prefix"; then |
4603 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
4604 | do |
4605 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
4606 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
4607 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4608 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4609 | if test "${ac_cv_prog_CXX+set}" = set; then |
4610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4611 | else |
4612 | if test -n "$CXX"; then |
4613 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
4614 | else |
4615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4616 | for as_dir in $PATH |
4617 | do |
4618 | IFS=$as_save_IFS |
4619 | test -z "$as_dir" && as_dir=. |
4620 | for ac_exec_ext in '' $ac_executable_extensions; do |
4621 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4622 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
4623 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4624 | break 2 |
4625 | fi |
4626 | done |
4627 | done |
4628 | |
4629 | fi |
4630 | fi |
4631 | CXX=$ac_cv_prog_CXX |
4632 | if test -n "$CXX"; then |
4633 | echo "$as_me:$LINENO: result: $CXX" >&5 |
4634 | echo "${ECHO_T}$CXX" >&6 |
4635 | else |
4636 | echo "$as_me:$LINENO: result: no" >&5 |
4637 | echo "${ECHO_T}no" >&6 |
4638 | fi |
4639 | |
4640 | test -n "$CXX" && break |
4641 | done |
4642 | fi |
4643 | if test -z "$CXX"; then |
4644 | ac_ct_CXX=$CXX |
4645 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
4646 | do |
4647 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
4648 | set dummy $ac_prog; ac_word=$2 |
4649 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4650 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4651 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
4652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4653 | else |
4654 | if test -n "$ac_ct_CXX"; then |
4655 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
4656 | else |
4657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4658 | for as_dir in $PATH |
4659 | do |
4660 | IFS=$as_save_IFS |
4661 | test -z "$as_dir" && as_dir=. |
4662 | for ac_exec_ext in '' $ac_executable_extensions; do |
4663 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4664 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
4665 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4666 | break 2 |
4667 | fi |
4668 | done |
4669 | done |
4670 | |
4671 | fi |
4672 | fi |
4673 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4674 | if test -n "$ac_ct_CXX"; then |
4675 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
4676 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
4677 | else |
4678 | echo "$as_me:$LINENO: result: no" >&5 |
4679 | echo "${ECHO_T}no" >&6 |
4680 | fi |
4681 | |
4682 | test -n "$ac_ct_CXX" && break |
4683 | done |
4684 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
4685 | |
4686 | CXX=$ac_ct_CXX |
4687 | fi |
4688 | |
4689 | |
4690 | # Provide some information about the compiler. |
4691 | echo "$as_me:$LINENO:" \ |
4692 | "checking for C++ compiler version" >&5 |
4693 | ac_compiler=`set X $ac_compile; echo $2` |
4694 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
4695 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
4696 | ac_status=$? |
4697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4698 | (exit $ac_status); } |
4699 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
4700 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
4701 | ac_status=$? |
4702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4703 | (exit $ac_status); } |
4704 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
4705 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
4706 | ac_status=$? |
4707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4708 | (exit $ac_status); } |
4709 | |
4710 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
4711 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
4712 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
4713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4714 | else |
4715 | cat >conftest.$ac_ext <<_ACEOF |
4716 | /* confdefs.h. */ |
4717 | _ACEOF |
4718 | cat confdefs.h >>conftest.$ac_ext |
4719 | cat >>conftest.$ac_ext <<_ACEOF |
4720 | /* end confdefs.h. */ |
4721 | |
4722 | int |
4723 | main () |
4724 | { |
4725 | #ifndef __GNUC__ |
4726 | choke me |
4727 | #endif |
4728 | |
4729 | ; |
4730 | return 0; |
4731 | } |
4732 | _ACEOF |
4733 | rm -f conftest.$ac_objext |
4734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4735 | (eval $ac_compile) 2>conftest.er1 |
4736 | ac_status=$? |
4737 | grep -v '^ *+' conftest.er1 >conftest.err |
4738 | rm -f conftest.er1 |
4739 | cat conftest.err >&5 |
4740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4741 | (exit $ac_status); } && |
4742 | { ac_try='test -z "$ac_cxx_werror_flag" |
4743 | || test ! -s conftest.err' |
4744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4745 | (eval $ac_try) 2>&5 |
4746 | ac_status=$? |
4747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4748 | (exit $ac_status); }; } && |
4749 | { ac_try='test -s conftest.$ac_objext' |
4750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4751 | (eval $ac_try) 2>&5 |
4752 | ac_status=$? |
4753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4754 | (exit $ac_status); }; }; then |
4755 | ac_compiler_gnu=yes |
4756 | else |
4757 | echo "$as_me: failed program was:" >&5 |
4758 | sed 's/^/| /' conftest.$ac_ext >&5 |
4759 | |
4760 | ac_compiler_gnu=no |
4761 | fi |
4762 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4763 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4764 | |
4765 | fi |
4766 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
4767 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
4768 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
4769 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4770 | ac_save_CXXFLAGS=$CXXFLAGS |
4771 | CXXFLAGS="-g" |
4772 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
4773 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
4774 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
4775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4776 | else |
4777 | cat >conftest.$ac_ext <<_ACEOF |
4778 | /* confdefs.h. */ |
4779 | _ACEOF |
4780 | cat confdefs.h >>conftest.$ac_ext |
4781 | cat >>conftest.$ac_ext <<_ACEOF |
4782 | /* end confdefs.h. */ |
4783 | |
4784 | int |
4785 | main () |
4786 | { |
4787 | |
4788 | ; |
4789 | return 0; |
4790 | } |
4791 | _ACEOF |
4792 | rm -f conftest.$ac_objext |
4793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4794 | (eval $ac_compile) 2>conftest.er1 |
4795 | ac_status=$? |
4796 | grep -v '^ *+' conftest.er1 >conftest.err |
4797 | rm -f conftest.er1 |
4798 | cat conftest.err >&5 |
4799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4800 | (exit $ac_status); } && |
4801 | { ac_try='test -z "$ac_cxx_werror_flag" |
4802 | || test ! -s conftest.err' |
4803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4804 | (eval $ac_try) 2>&5 |
4805 | ac_status=$? |
4806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4807 | (exit $ac_status); }; } && |
4808 | { ac_try='test -s conftest.$ac_objext' |
4809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4810 | (eval $ac_try) 2>&5 |
4811 | ac_status=$? |
4812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4813 | (exit $ac_status); }; }; then |
4814 | ac_cv_prog_cxx_g=yes |
4815 | else |
4816 | echo "$as_me: failed program was:" >&5 |
4817 | sed 's/^/| /' conftest.$ac_ext >&5 |
4818 | |
4819 | ac_cv_prog_cxx_g=no |
4820 | fi |
4821 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4822 | fi |
4823 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
4824 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
4825 | if test "$ac_test_CXXFLAGS" = set; then |
4826 | CXXFLAGS=$ac_save_CXXFLAGS |
4827 | elif test $ac_cv_prog_cxx_g = yes; then |
4828 | if test "$GXX" = yes; then |
4829 | CXXFLAGS="-g -O2" |
4830 | else |
4831 | CXXFLAGS="-g" |
4832 | fi |
4833 | else |
4834 | if test "$GXX" = yes; then |
4835 | CXXFLAGS="-O2" |
4836 | else |
4837 | CXXFLAGS= |
4838 | fi |
4839 | fi |
4840 | for ac_declaration in \ |
4841 | '' \ |
4842 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
4843 | 'extern "C" void std::exit (int); using std::exit;' \ |
4844 | 'extern "C" void exit (int) throw ();' \ |
4845 | 'extern "C" void exit (int);' \ |
4846 | 'void exit (int);' |
4847 | do |
4848 | cat >conftest.$ac_ext <<_ACEOF |
4849 | /* confdefs.h. */ |
4850 | _ACEOF |
4851 | cat confdefs.h >>conftest.$ac_ext |
4852 | cat >>conftest.$ac_ext <<_ACEOF |
4853 | /* end confdefs.h. */ |
4854 | $ac_declaration |
4855 | #include <stdlib.h> |
4856 | int |
4857 | main () |
4858 | { |
4859 | exit (42); |
4860 | ; |
4861 | return 0; |
4862 | } |
4863 | _ACEOF |
4864 | rm -f conftest.$ac_objext |
4865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4866 | (eval $ac_compile) 2>conftest.er1 |
4867 | ac_status=$? |
4868 | grep -v '^ *+' conftest.er1 >conftest.err |
4869 | rm -f conftest.er1 |
4870 | cat conftest.err >&5 |
4871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4872 | (exit $ac_status); } && |
4873 | { ac_try='test -z "$ac_cxx_werror_flag" |
4874 | || test ! -s conftest.err' |
4875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4876 | (eval $ac_try) 2>&5 |
4877 | ac_status=$? |
4878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4879 | (exit $ac_status); }; } && |
4880 | { ac_try='test -s conftest.$ac_objext' |
4881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4882 | (eval $ac_try) 2>&5 |
4883 | ac_status=$? |
4884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4885 | (exit $ac_status); }; }; then |
4886 | : |
4887 | else |
4888 | echo "$as_me: failed program was:" >&5 |
4889 | sed 's/^/| /' conftest.$ac_ext >&5 |
4890 | |
4891 | continue |
4892 | fi |
4893 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4894 | cat >conftest.$ac_ext <<_ACEOF |
4895 | /* confdefs.h. */ |
4896 | _ACEOF |
4897 | cat confdefs.h >>conftest.$ac_ext |
4898 | cat >>conftest.$ac_ext <<_ACEOF |
4899 | /* end confdefs.h. */ |
4900 | $ac_declaration |
4901 | int |
4902 | main () |
4903 | { |
4904 | exit (42); |
4905 | ; |
4906 | return 0; |
4907 | } |
4908 | _ACEOF |
4909 | rm -f conftest.$ac_objext |
4910 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4911 | (eval $ac_compile) 2>conftest.er1 |
4912 | ac_status=$? |
4913 | grep -v '^ *+' conftest.er1 >conftest.err |
4914 | rm -f conftest.er1 |
4915 | cat conftest.err >&5 |
4916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4917 | (exit $ac_status); } && |
4918 | { ac_try='test -z "$ac_cxx_werror_flag" |
4919 | || test ! -s conftest.err' |
4920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4921 | (eval $ac_try) 2>&5 |
4922 | ac_status=$? |
4923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4924 | (exit $ac_status); }; } && |
4925 | { ac_try='test -s conftest.$ac_objext' |
4926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4927 | (eval $ac_try) 2>&5 |
4928 | ac_status=$? |
4929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4930 | (exit $ac_status); }; }; then |
4931 | break |
4932 | else |
4933 | echo "$as_me: failed program was:" >&5 |
4934 | sed 's/^/| /' conftest.$ac_ext >&5 |
4935 | |
4936 | fi |
4937 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4938 | done |
4939 | rm -f conftest* |
4940 | if test -n "$ac_declaration"; then |
4941 | echo '#ifdef __cplusplus' >>confdefs.h |
4942 | echo $ac_declaration >>confdefs.h |
4943 | echo '#endif' >>confdefs.h |
4944 | fi |
4945 | |
4946 | ac_ext=cc |
4947 | ac_cpp='$CXXCPP $CPPFLAGS' |
4948 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4949 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4950 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4951 | |
4952 | depcc="$CXX" am_compiler_list= |
4953 | |
4954 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
4955 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
4956 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
4957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4958 | else |
4959 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4960 | # We make a subdir and do the tests there. Otherwise we can end up |
4961 | # making bogus files that we don't know about and never remove. For |
4962 | # instance it was reported that on HP-UX the gcc test will end up |
4963 | # making a dummy file named `D' -- because `-MD' means `put the output |
4964 | # in D'. |
4965 | mkdir conftest.dir |
4966 | # Copy depcomp to subdir because otherwise we won't find it if we're |
4967 | # using a relative directory. |
4968 | cp "$am_depcomp" conftest.dir |
4969 | cd conftest.dir |
4970 | # We will build objects and dependencies in a subdirectory because |
4971 | # it helps to detect inapplicable dependency modes. For instance |
4972 | # both Tru64's cc and ICC support -MD to output dependencies as a |
4973 | # side effect of compilation, but ICC will put the dependencies in |
4974 | # the current directory while Tru64 will put them in the object |
4975 | # directory. |
4976 | mkdir sub |
4977 | |
4978 | am_cv_CXX_dependencies_compiler_type=none |
4979 | if test "$am_compiler_list" = ""; then |
4980 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
4981 | fi |
4982 | for depmode in $am_compiler_list; do |
4983 | # Setup a source with many dependencies, because some compilers |
4984 | # like to wrap large dependency lists on column 80 (with \), and |
4985 | # we should not choose a depcomp mode which is confused by this. |
4986 | # |
4987 | # We need to recreate these files for each test, as the compiler may |
4988 | # overwrite some of them when testing with obscure command lines. |
4989 | # This happens at least with the AIX C compiler. |
4990 | : > sub/conftest.c |
4991 | for i in 1 2 3 4 5 6; do |
4992 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
4993 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
4994 | # Solaris 8's {/usr,}/bin/sh. |
4995 | touch sub/conftst$i.h |
4996 | done |
4997 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
4998 | |
4999 | case $depmode in |
5000 | nosideeffect) |
5001 | # after this tag, mechanisms are not by side-effect, so they'll |
5002 | # only be used when explicitly requested |
5003 | if test "x$enable_dependency_tracking" = xyes; then |
5004 | continue |
5005 | else |
5006 | break |
5007 | fi |
5008 | ;; |
5009 | none) break ;; |
5010 | esac |
5011 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5012 | # mode. It turns out that the SunPro C++ compiler does not properly |
5013 | # handle `-M -o', and we need to detect this. |
5014 | if depmode=$depmode \ |
5015 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
5016 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5017 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
5018 | >/dev/null 2>conftest.err && |
5019 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5020 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
5021 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5022 | # icc doesn't choke on unknown options, it will just issue warnings |
5023 | # or remarks (even with -Werror). So we grep stderr for any message |
5024 | # that says an option was ignored or not supported. |
5025 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
5026 | # icc: Command line warning: ignoring option '-M'; no argument required |
5027 | # The diagnosis changed in icc 8.0: |
5028 | # icc: Command line remark: option '-MP' not supported |
5029 | if (grep 'ignoring option' conftest.err || |
5030 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
5031 | am_cv_CXX_dependencies_compiler_type=$depmode |
5032 | break |
5033 | fi |
5034 | fi |
5035 | done |
5036 | |
5037 | cd .. |
5038 | rm -rf conftest.dir |
5039 | else |
5040 | am_cv_CXX_dependencies_compiler_type=none |
5041 | fi |
5042 | |
5043 | fi |
5044 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
5045 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
5046 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
5047 | |
5048 | |
5049 | |
5050 | if |
5051 | test "x$enable_dependency_tracking" != xno \ |
5052 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
5053 | am__fastdepCXX_TRUE= |
5054 | am__fastdepCXX_FALSE='#' |
5055 | else |
5056 | am__fastdepCXX_TRUE='#' |
5057 | am__fastdepCXX_FALSE= |
5058 | fi |
5059 | |
5060 | |
5061 | |
5062 | |
5063 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
5064 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
5065 | (test "X$CXX" != "Xg++"))) ; then |
5066 | ac_ext=cc |
5067 | ac_cpp='$CXXCPP $CPPFLAGS' |
5068 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5069 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5070 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5071 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
5072 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
5073 | if test -z "$CXXCPP"; then |
5074 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
5075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5076 | else |
5077 | # Double quotes because CXXCPP needs to be expanded |
5078 | for CXXCPP in "$CXX -E" "/lib/cpp" |
5079 | do |
5080 | ac_preproc_ok=false |
5081 | for ac_cxx_preproc_warn_flag in '' yes |
5082 | do |
5083 | # Use a header file that comes with gcc, so configuring glibc |
5084 | # with a fresh cross-compiler works. |
5085 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5086 | # <limits.h> exists even on freestanding compilers. |
5087 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5088 | # not just through cpp. "Syntax error" is here to catch this case. |
5089 | cat >conftest.$ac_ext <<_ACEOF |
5090 | /* confdefs.h. */ |
5091 | _ACEOF |
5092 | cat confdefs.h >>conftest.$ac_ext |
5093 | cat >>conftest.$ac_ext <<_ACEOF |
5094 | /* end confdefs.h. */ |
5095 | #ifdef __STDC__ |
5096 | # include <limits.h> |
5097 | #else |
5098 | # include <assert.h> |
5099 | #endif |
5100 | Syntax error |
5101 | _ACEOF |
5102 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5103 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5104 | ac_status=$? |
5105 | grep -v '^ *+' conftest.er1 >conftest.err |
5106 | rm -f conftest.er1 |
5107 | cat conftest.err >&5 |
5108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5109 | (exit $ac_status); } >/dev/null; then |
5110 | if test -s conftest.err; then |
5111 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5112 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5113 | else |
5114 | ac_cpp_err= |
5115 | fi |
5116 | else |
5117 | ac_cpp_err=yes |
5118 | fi |
5119 | if test -z "$ac_cpp_err"; then |
5120 | : |
5121 | else |
5122 | echo "$as_me: failed program was:" >&5 |
5123 | sed 's/^/| /' conftest.$ac_ext >&5 |
5124 | |
5125 | # Broken: fails on valid input. |
5126 | continue |
5127 | fi |
5128 | rm -f conftest.err conftest.$ac_ext |
5129 | |
5130 | # OK, works on sane cases. Now check whether non-existent headers |
5131 | # can be detected and how. |
5132 | cat >conftest.$ac_ext <<_ACEOF |
5133 | /* confdefs.h. */ |
5134 | _ACEOF |
5135 | cat confdefs.h >>conftest.$ac_ext |
5136 | cat >>conftest.$ac_ext <<_ACEOF |
5137 | /* end confdefs.h. */ |
5138 | #include <ac_nonexistent.h> |
5139 | _ACEOF |
5140 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5141 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5142 | ac_status=$? |
5143 | grep -v '^ *+' conftest.er1 >conftest.err |
5144 | rm -f conftest.er1 |
5145 | cat conftest.err >&5 |
5146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5147 | (exit $ac_status); } >/dev/null; then |
5148 | if test -s conftest.err; then |
5149 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5150 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5151 | else |
5152 | ac_cpp_err= |
5153 | fi |
5154 | else |
5155 | ac_cpp_err=yes |
5156 | fi |
5157 | if test -z "$ac_cpp_err"; then |
5158 | # Broken: success on invalid input. |
5159 | continue |
5160 | else |
5161 | echo "$as_me: failed program was:" >&5 |
5162 | sed 's/^/| /' conftest.$ac_ext >&5 |
5163 | |
5164 | # Passes both tests. |
5165 | ac_preproc_ok=: |
5166 | break |
5167 | fi |
5168 | rm -f conftest.err conftest.$ac_ext |
5169 | |
5170 | done |
5171 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5172 | rm -f conftest.err conftest.$ac_ext |
5173 | if $ac_preproc_ok; then |
5174 | break |
5175 | fi |
5176 | |
5177 | done |
5178 | ac_cv_prog_CXXCPP=$CXXCPP |
5179 | |
5180 | fi |
5181 | CXXCPP=$ac_cv_prog_CXXCPP |
5182 | else |
5183 | ac_cv_prog_CXXCPP=$CXXCPP |
5184 | fi |
5185 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
5186 | echo "${ECHO_T}$CXXCPP" >&6 |
5187 | ac_preproc_ok=false |
5188 | for ac_cxx_preproc_warn_flag in '' yes |
5189 | do |
5190 | # Use a header file that comes with gcc, so configuring glibc |
5191 | # with a fresh cross-compiler works. |
5192 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5193 | # <limits.h> exists even on freestanding compilers. |
5194 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5195 | # not just through cpp. "Syntax error" is here to catch this case. |
5196 | cat >conftest.$ac_ext <<_ACEOF |
5197 | /* confdefs.h. */ |
5198 | _ACEOF |
5199 | cat confdefs.h >>conftest.$ac_ext |
5200 | cat >>conftest.$ac_ext <<_ACEOF |
5201 | /* end confdefs.h. */ |
5202 | #ifdef __STDC__ |
5203 | # include <limits.h> |
5204 | #else |
5205 | # include <assert.h> |
5206 | #endif |
5207 | Syntax error |
5208 | _ACEOF |
5209 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5210 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5211 | ac_status=$? |
5212 | grep -v '^ *+' conftest.er1 >conftest.err |
5213 | rm -f conftest.er1 |
5214 | cat conftest.err >&5 |
5215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5216 | (exit $ac_status); } >/dev/null; then |
5217 | if test -s conftest.err; then |
5218 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5219 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5220 | else |
5221 | ac_cpp_err= |
5222 | fi |
5223 | else |
5224 | ac_cpp_err=yes |
5225 | fi |
5226 | if test -z "$ac_cpp_err"; then |
5227 | : |
5228 | else |
5229 | echo "$as_me: failed program was:" >&5 |
5230 | sed 's/^/| /' conftest.$ac_ext >&5 |
5231 | |
5232 | # Broken: fails on valid input. |
5233 | continue |
5234 | fi |
5235 | rm -f conftest.err conftest.$ac_ext |
5236 | |
5237 | # OK, works on sane cases. Now check whether non-existent headers |
5238 | # can be detected and how. |
5239 | cat >conftest.$ac_ext <<_ACEOF |
5240 | /* confdefs.h. */ |
5241 | _ACEOF |
5242 | cat confdefs.h >>conftest.$ac_ext |
5243 | cat >>conftest.$ac_ext <<_ACEOF |
5244 | /* end confdefs.h. */ |
5245 | #include <ac_nonexistent.h> |
5246 | _ACEOF |
5247 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5248 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5249 | ac_status=$? |
5250 | grep -v '^ *+' conftest.er1 >conftest.err |
5251 | rm -f conftest.er1 |
5252 | cat conftest.err >&5 |
5253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5254 | (exit $ac_status); } >/dev/null; then |
5255 | if test -s conftest.err; then |
5256 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5257 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5258 | else |
5259 | ac_cpp_err= |
5260 | fi |
5261 | else |
5262 | ac_cpp_err=yes |
5263 | fi |
5264 | if test -z "$ac_cpp_err"; then |
5265 | # Broken: success on invalid input. |
5266 | continue |
5267 | else |
5268 | echo "$as_me: failed program was:" >&5 |
5269 | sed 's/^/| /' conftest.$ac_ext >&5 |
5270 | |
5271 | # Passes both tests. |
5272 | ac_preproc_ok=: |
5273 | break |
5274 | fi |
5275 | rm -f conftest.err conftest.$ac_ext |
5276 | |
5277 | done |
5278 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5279 | rm -f conftest.err conftest.$ac_ext |
5280 | if $ac_preproc_ok; then |
5281 | : |
5282 | else |
5283 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5284 | See \`config.log' for more details." >&5 |
5285 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5286 | See \`config.log' for more details." >&2;} |
5287 | { (exit 1); exit 1; }; } |
5288 | fi |
5289 | |
5290 | ac_ext=cc |
5291 | ac_cpp='$CXXCPP $CPPFLAGS' |
5292 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5293 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5294 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5295 | |
5296 | fi |
5297 | |
5298 | |
5299 | ac_ext=f |
5300 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
5301 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5302 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
5303 | if test -n "$ac_tool_prefix"; then |
5304 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
5305 | do |
5306 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5307 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
5308 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5309 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5310 | if test "${ac_cv_prog_F77+set}" = set; then |
5311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5312 | else |
5313 | if test -n "$F77"; then |
5314 | ac_cv_prog_F77="$F77" # Let the user override the test. |
5315 | else |
5316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5317 | for as_dir in $PATH |
5318 | do |
5319 | IFS=$as_save_IFS |
5320 | test -z "$as_dir" && as_dir=. |
5321 | for ac_exec_ext in '' $ac_executable_extensions; do |
5322 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5323 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
5324 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5325 | break 2 |
5326 | fi |
5327 | done |
5328 | done |
5329 | |
5330 | fi |
5331 | fi |
5332 | F77=$ac_cv_prog_F77 |
5333 | if test -n "$F77"; then |
5334 | echo "$as_me:$LINENO: result: $F77" >&5 |
5335 | echo "${ECHO_T}$F77" >&6 |
5336 | else |
5337 | echo "$as_me:$LINENO: result: no" >&5 |
5338 | echo "${ECHO_T}no" >&6 |
5339 | fi |
5340 | |
5341 | test -n "$F77" && break |
5342 | done |
5343 | fi |
5344 | if test -z "$F77"; then |
5345 | ac_ct_F77=$F77 |
5346 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
5347 | do |
5348 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5349 | set dummy $ac_prog; ac_word=$2 |
5350 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5351 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5352 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
5353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5354 | else |
5355 | if test -n "$ac_ct_F77"; then |
5356 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
5357 | else |
5358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5359 | for as_dir in $PATH |
5360 | do |
5361 | IFS=$as_save_IFS |
5362 | test -z "$as_dir" && as_dir=. |
5363 | for ac_exec_ext in '' $ac_executable_extensions; do |
5364 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5365 | ac_cv_prog_ac_ct_F77="$ac_prog" |
5366 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5367 | break 2 |
5368 | fi |
5369 | done |
5370 | done |
5371 | |
5372 | fi |
5373 | fi |
5374 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
5375 | if test -n "$ac_ct_F77"; then |
5376 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
5377 | echo "${ECHO_T}$ac_ct_F77" >&6 |
5378 | else |
5379 | echo "$as_me:$LINENO: result: no" >&5 |
5380 | echo "${ECHO_T}no" >&6 |
5381 | fi |
5382 | |
5383 | test -n "$ac_ct_F77" && break |
5384 | done |
5385 | |
5386 | F77=$ac_ct_F77 |
5387 | fi |
5388 | |
5389 | |
5390 | # Provide some information about the compiler. |
5391 | echo "$as_me:5391:" \ |
5392 | "checking for Fortran 77 compiler version" >&5 |
5393 | ac_compiler=`set X $ac_compile; echo $2` |
5394 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
5395 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
5396 | ac_status=$? |
5397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5398 | (exit $ac_status); } |
5399 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
5400 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
5401 | ac_status=$? |
5402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5403 | (exit $ac_status); } |
5404 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
5405 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
5406 | ac_status=$? |
5407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5408 | (exit $ac_status); } |
5409 | rm -f a.out |
5410 | |
5411 | # If we don't use `.F' as extension, the preprocessor is not run on the |
5412 | # input file. (Note that this only needs to work for GNU compilers.) |
5413 | ac_save_ext=$ac_ext |
5414 | ac_ext=F |
5415 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
5416 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
5417 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
5418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5419 | else |
5420 | cat >conftest.$ac_ext <<_ACEOF |
5421 | program main |
5422 | #ifndef __GNUC__ |
5423 | choke me |
5424 | #endif |
5425 | |
5426 | end |
5427 | _ACEOF |
5428 | rm -f conftest.$ac_objext |
5429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5430 | (eval $ac_compile) 2>conftest.er1 |
5431 | ac_status=$? |
5432 | grep -v '^ *+' conftest.er1 >conftest.err |
5433 | rm -f conftest.er1 |
5434 | cat conftest.err >&5 |
5435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5436 | (exit $ac_status); } && |
5437 | { ac_try='test -z "$ac_f77_werror_flag" |
5438 | || test ! -s conftest.err' |
5439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5440 | (eval $ac_try) 2>&5 |
5441 | ac_status=$? |
5442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5443 | (exit $ac_status); }; } && |
5444 | { ac_try='test -s conftest.$ac_objext' |
5445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5446 | (eval $ac_try) 2>&5 |
5447 | ac_status=$? |
5448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5449 | (exit $ac_status); }; }; then |
5450 | ac_compiler_gnu=yes |
5451 | else |
5452 | echo "$as_me: failed program was:" >&5 |
5453 | sed 's/^/| /' conftest.$ac_ext >&5 |
5454 | |
5455 | ac_compiler_gnu=no |
5456 | fi |
5457 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5458 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
5459 | |
5460 | fi |
5461 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
5462 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
5463 | ac_ext=$ac_save_ext |
5464 | ac_test_FFLAGS=${FFLAGS+set} |
5465 | ac_save_FFLAGS=$FFLAGS |
5466 | FFLAGS= |
5467 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
5468 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
5469 | if test "${ac_cv_prog_f77_g+set}" = set; then |
5470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5471 | else |
5472 | FFLAGS=-g |
5473 | cat >conftest.$ac_ext <<_ACEOF |
5474 | program main |
5475 | |
5476 | end |
5477 | _ACEOF |
5478 | rm -f conftest.$ac_objext |
5479 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5480 | (eval $ac_compile) 2>conftest.er1 |
5481 | ac_status=$? |
5482 | grep -v '^ *+' conftest.er1 >conftest.err |
5483 | rm -f conftest.er1 |
5484 | cat conftest.err >&5 |
5485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5486 | (exit $ac_status); } && |
5487 | { ac_try='test -z "$ac_f77_werror_flag" |
5488 | || test ! -s conftest.err' |
5489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5490 | (eval $ac_try) 2>&5 |
5491 | ac_status=$? |
5492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5493 | (exit $ac_status); }; } && |
5494 | { ac_try='test -s conftest.$ac_objext' |
5495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5496 | (eval $ac_try) 2>&5 |
5497 | ac_status=$? |
5498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5499 | (exit $ac_status); }; }; then |
5500 | ac_cv_prog_f77_g=yes |
5501 | else |
5502 | echo "$as_me: failed program was:" >&5 |
5503 | sed 's/^/| /' conftest.$ac_ext >&5 |
5504 | |
5505 | ac_cv_prog_f77_g=no |
5506 | fi |
5507 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5508 | |
5509 | fi |
5510 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
5511 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
5512 | if test "$ac_test_FFLAGS" = set; then |
5513 | FFLAGS=$ac_save_FFLAGS |
5514 | elif test $ac_cv_prog_f77_g = yes; then |
5515 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
5516 | FFLAGS="-g -O2" |
5517 | else |
5518 | FFLAGS="-g" |
5519 | fi |
5520 | else |
5521 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
5522 | FFLAGS="-O2" |
5523 | else |
5524 | FFLAGS= |
5525 | fi |
5526 | fi |
5527 | |
5528 | G77=`test $ac_compiler_gnu = yes && echo yes` |
5529 | ac_ext=c |
5530 | ac_cpp='$CPP $CPPFLAGS' |
5531 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5532 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5533 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5534 | |
5535 | |
5536 | |
5537 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
5538 | |
5539 | # find the maximum length of command line arguments |
5540 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
5541 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
5542 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
5543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5544 | else |
5545 | i=0 |
5546 | teststring="ABCD" |
5547 | |
5548 | case $build_os in |
5549 | msdosdjgpp*) |
5550 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
5551 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
5552 | # during glob expansion). Even if it were fixed, the result of this |
5553 | # check would be larger than it should be. |
5554 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
5555 | ;; |
5556 | |
5557 | gnu*) |
5558 | # Under GNU Hurd, this test is not required because there is |
5559 | # no limit to the length of command line arguments. |
5560 | # Libtool will interpret -1 as no limit whatsoever |
5561 | lt_cv_sys_max_cmd_len=-1; |
5562 | ;; |
5563 | |
5564 | cygwin* | mingw*) |
5565 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5566 | # about 5 minutes as the teststring grows exponentially. |
5567 | # Worse, since 9x/ME are not pre-emptively multitasking, |
5568 | # you end up with a "frozen" computer, even though with patience |
5569 | # the test eventually succeeds (with a max line length of 256k). |
5570 | # Instead, let's just punt: use the minimum linelength reported by |
5571 | # all of the supported platforms: 8192 (on NT/2K/XP). |
5572 | lt_cv_sys_max_cmd_len=8192; |
5573 | ;; |
5574 | |
5575 | amigaos*) |
5576 | # On AmigaOS with pdksh, this test takes hours, literally. |
5577 | # So we just punt and use a minimum line length of 8192. |
5578 | lt_cv_sys_max_cmd_len=8192; |
5579 | ;; |
5580 | |
5581 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
5582 | # This has been around since 386BSD, at least. Likely further. |
5583 | if test -x /sbin/sysctl; then |
5584 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
5585 | elif test -x /usr/sbin/sysctl; then |
5586 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
5587 | else |
5588 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
5589 | fi |
5590 | # And add a safety zone |
5591 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5592 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
5593 | ;; |
5594 | |
5595 | interix*) |
5596 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
5597 | lt_cv_sys_max_cmd_len=196608 |
5598 | ;; |
5599 | |
5600 | osf*) |
5601 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
5602 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
5603 | # nice to cause kernel panics so lets avoid the loop below. |
5604 | # First set a reasonable default. |
5605 | lt_cv_sys_max_cmd_len=16384 |
5606 | # |
5607 | if test -x /sbin/sysconfig; then |
5608 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
5609 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
5610 | esac |
5611 | fi |
5612 | ;; |
5613 | sco3.2v5*) |
5614 | lt_cv_sys_max_cmd_len=102400 |
5615 | ;; |
5616 | sysv5* | sco5v6* | sysv4.2uw2*) |
5617 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
5618 | if test -n "$kargmax"; then |
5619 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
5620 | else |
5621 | lt_cv_sys_max_cmd_len=32768 |
5622 | fi |
5623 | ;; |
5624 | *) |
5625 | # If test is not a shell built-in, we'll probably end up computing a |
5626 | # maximum length that is only half of the actual maximum length, but |
5627 | # we can't tell. |
5628 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
5629 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
5630 | = "XX$teststring") >/dev/null 2>&1 && |
5631 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
5632 | lt_cv_sys_max_cmd_len=$new_result && |
5633 | test $i != 17 # 1/2 MB should be enough |
5634 | do |
5635 | i=`expr $i + 1` |
5636 | teststring=$teststring$teststring |
5637 | done |
5638 | teststring= |
5639 | # Add a significant safety factor because C++ compilers can tack on massive |
5640 | # amounts of additional arguments before passing them to the linker. |
5641 | # It appears as though 1/2 is a usable value. |
5642 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
5643 | ;; |
5644 | esac |
5645 | |
5646 | fi |
5647 | |
5648 | if test -n $lt_cv_sys_max_cmd_len ; then |
5649 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
5650 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
5651 | else |
5652 | echo "$as_me:$LINENO: result: none" >&5 |
5653 | echo "${ECHO_T}none" >&6 |
5654 | fi |
5655 | |
5656 | |
5657 | |
5658 | |
5659 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
5660 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
5661 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
5662 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
5663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5664 | else |
5665 | |
5666 | # These are sane defaults that work on at least a few old systems. |
5667 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
5668 | |
5669 | # Character class describing NM global symbol codes. |
5670 | symcode='[BCDEGRST]' |
5671 | |
5672 | # Regexp to match symbols that can be accessed directly from C. |
5673 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
5674 | |
5675 | # Transform an extracted symbol line into a proper C declaration |
5676 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
5677 | |
5678 | # Transform an extracted symbol line into symbol name and symbol address |
5679 | 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'" |
5680 | |
5681 | # Define system-specific variables. |
5682 | case $host_os in |
5683 | aix*) |
5684 | symcode='[BCDT]' |
5685 | ;; |
5686 | cygwin* | mingw* | pw32*) |
5687 | symcode='[ABCDGISTW]' |
5688 | ;; |
5689 | hpux*) # Its linker distinguishes data from code symbols |
5690 | if test "$host_cpu" = ia64; then |
5691 | symcode='[ABCDEGRST]' |
5692 | fi |
5693 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
5694 | 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'" |
5695 | ;; |
5696 | linux*) |
5697 | if test "$host_cpu" = ia64; then |
5698 | symcode='[ABCDGIRSTW]' |
5699 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
5700 | 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'" |
5701 | fi |
5702 | ;; |
5703 | irix* | nonstopux*) |
5704 | symcode='[BCDEGRST]' |
5705 | ;; |
5706 | osf*) |
5707 | symcode='[BCDEGQRST]' |
5708 | ;; |
5709 | solaris*) |
5710 | symcode='[BDRT]' |
5711 | ;; |
5712 | sco3.2v5*) |
5713 | symcode='[DT]' |
5714 | ;; |
5715 | sysv4.2uw2*) |
5716 | symcode='[DT]' |
5717 | ;; |
5718 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
5719 | symcode='[ABDT]' |
5720 | ;; |
5721 | sysv4) |
5722 | symcode='[DFNSTU]' |
5723 | ;; |
5724 | esac |
5725 | |
5726 | # Handle CRLF in mingw tool chain |
5727 | opt_cr= |
5728 | case $build_os in |
5729 | mingw*) |
5730 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
5731 | ;; |
5732 | esac |
5733 | |
5734 | # If we're using GNU nm, then use its standard symbol codes. |
5735 | case `$NM -V 2>&1` in |
5736 | *GNU* | *'with BFD'*) |
5737 | symcode='[ABCDGIRSTW]' ;; |
5738 | esac |
5739 | |
5740 | # Try without a prefix undercore, then with it. |
5741 | for ac_symprfx in "" "_"; do |
5742 | |
5743 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
5744 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
5745 | |
5746 | # Write the raw and C identifiers. |
5747 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
5748 | |
5749 | # Check to see that the pipe works correctly. |
5750 | pipe_works=no |
5751 | |
5752 | rm -f conftest* |
5753 | cat > conftest.$ac_ext <<EOF |
5754 | #ifdef __cplusplus |
5755 | extern "C" { |
5756 | #endif |
5757 | char nm_test_var; |
5758 | void nm_test_func(){} |
5759 | #ifdef __cplusplus |
5760 | } |
5761 | #endif |
5762 | int main(){nm_test_var='a';nm_test_func();return(0);} |
5763 | EOF |
5764 | |
5765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5766 | (eval $ac_compile) 2>&5 |
5767 | ac_status=$? |
5768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5769 | (exit $ac_status); }; then |
5770 | # Now try to grab the symbols. |
5771 | nlist=conftest.nm |
5772 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
5773 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
5774 | ac_status=$? |
5775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5776 | (exit $ac_status); } && test -s "$nlist"; then |
5777 | # Try sorting and uniquifying the output. |
5778 | if sort "$nlist" | uniq > "$nlist"T; then |
5779 | mv -f "$nlist"T "$nlist" |
5780 | else |
5781 | rm -f "$nlist"T |
5782 | fi |
5783 | |
5784 | # Make sure that we snagged all the symbols we need. |
5785 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
5786 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
5787 | cat <<EOF > conftest.$ac_ext |
5788 | #ifdef __cplusplus |
5789 | extern "C" { |
5790 | #endif |
5791 | |
5792 | EOF |
5793 | # Now generate the symbol file. |
5794 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
5795 | |
5796 | cat <<EOF >> conftest.$ac_ext |
5797 | #if defined (__STDC__) && __STDC__ |
5798 | # define lt_ptr_t void * |
5799 | #else |
5800 | # define lt_ptr_t char * |
5801 | # define const |
5802 | #endif |
5803 | |
5804 | /* The mapping between symbol names and symbols. */ |
5805 | const struct { |
5806 | const char *name; |
5807 | lt_ptr_t address; |
5808 | } |
5809 | lt_preloaded_symbols[] = |
5810 | { |
5811 | EOF |
5812 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
5813 | cat <<\EOF >> conftest.$ac_ext |
5814 | {0, (lt_ptr_t) 0} |
5815 | }; |
5816 | |
5817 | #ifdef __cplusplus |
5818 | } |
5819 | #endif |
5820 | EOF |
5821 | # Now try linking the two files. |
5822 | mv conftest.$ac_objext conftstm.$ac_objext |
5823 | lt_save_LIBS="$LIBS" |
5824 | lt_save_CFLAGS="$CFLAGS" |
5825 | LIBS="conftstm.$ac_objext" |
5826 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
5827 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5828 | (eval $ac_link) 2>&5 |
5829 | ac_status=$? |
5830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5831 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
5832 | pipe_works=yes |
5833 | fi |
5834 | LIBS="$lt_save_LIBS" |
5835 | CFLAGS="$lt_save_CFLAGS" |
5836 | else |
5837 | echo "cannot find nm_test_func in $nlist" >&5 |
5838 | fi |
5839 | else |
5840 | echo "cannot find nm_test_var in $nlist" >&5 |
5841 | fi |
5842 | else |
5843 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
5844 | fi |
5845 | else |
5846 | echo "$progname: failed program was:" >&5 |
5847 | cat conftest.$ac_ext >&5 |
5848 | fi |
5849 | rm -f conftest* conftst* |
5850 | |
5851 | # Do not use the global_symbol_pipe unless it works. |
5852 | if test "$pipe_works" = yes; then |
5853 | break |
5854 | else |
5855 | lt_cv_sys_global_symbol_pipe= |
5856 | fi |
5857 | done |
5858 | |
5859 | fi |
5860 | |
5861 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
5862 | lt_cv_sys_global_symbol_to_cdecl= |
5863 | fi |
5864 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
5865 | echo "$as_me:$LINENO: result: failed" >&5 |
5866 | echo "${ECHO_T}failed" >&6 |
5867 | else |
5868 | echo "$as_me:$LINENO: result: ok" >&5 |
5869 | echo "${ECHO_T}ok" >&6 |
5870 | fi |
5871 | |
5872 | echo "$as_me:$LINENO: checking for objdir" >&5 |
5873 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
5874 | if test "${lt_cv_objdir+set}" = set; then |
5875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5876 | else |
5877 | rm -f .libs 2>/dev/null |
5878 | mkdir .libs 2>/dev/null |
5879 | if test -d .libs; then |
5880 | lt_cv_objdir=.libs |
5881 | else |
5882 | # MS-DOS does not allow filenames that begin with a dot. |
5883 | lt_cv_objdir=_libs |
5884 | fi |
5885 | rmdir .libs 2>/dev/null |
5886 | fi |
5887 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
5888 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
5889 | objdir=$lt_cv_objdir |
5890 | |
5891 | |
5892 | |
5893 | |
5894 | |
5895 | case $host_os in |
5896 | aix3*) |
5897 | # AIX sometimes has problems with the GCC collect2 program. For some |
5898 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
5899 | # vanish in a puff of smoke. |
5900 | if test "X${COLLECT_NAMES+set}" != Xset; then |
5901 | COLLECT_NAMES= |
5902 | export COLLECT_NAMES |
5903 | fi |
5904 | ;; |
5905 | esac |
5906 | |
5907 | # Sed substitution that helps us do robust quoting. It backslashifies |
5908 | # metacharacters that are still active within double-quoted strings. |
5909 | Xsed='sed -e 1s/^X//' |
5910 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
5911 | |
5912 | # Same as above, but do not quote variable references. |
5913 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
5914 | |
5915 | # Sed substitution to delay expansion of an escaped shell variable in a |
5916 | # double_quote_subst'ed string. |
5917 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
5918 | |
5919 | # Sed substitution to avoid accidental globbing in evaled expressions |
5920 | no_glob_subst='s/\*/\\\*/g' |
5921 | |
5922 | # Constants: |
5923 | rm="rm -f" |
5924 | |
5925 | # Global variables: |
5926 | default_ofile=libtool |
5927 | can_build_shared=yes |
5928 | |
5929 | # All known linkers require a `.a' archive for static linking (except MSVC, |
5930 | # which needs '.lib'). |
5931 | libext=a |
5932 | ltmain="$ac_aux_dir/ltmain.sh" |
5933 | ofile="$default_ofile" |
5934 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
5935 | |
5936 | if test -n "$ac_tool_prefix"; then |
5937 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
5938 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
5939 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5940 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5941 | if test "${ac_cv_prog_AR+set}" = set; then |
5942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5943 | else |
5944 | if test -n "$AR"; then |
5945 | ac_cv_prog_AR="$AR" # Let the user override the test. |
5946 | else |
5947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5948 | for as_dir in $PATH |
5949 | do |
5950 | IFS=$as_save_IFS |
5951 | test -z "$as_dir" && as_dir=. |
5952 | for ac_exec_ext in '' $ac_executable_extensions; do |
5953 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5954 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5955 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5956 | break 2 |
5957 | fi |
5958 | done |
5959 | done |
5960 | |
5961 | fi |
5962 | fi |
5963 | AR=$ac_cv_prog_AR |
5964 | if test -n "$AR"; then |
5965 | echo "$as_me:$LINENO: result: $AR" >&5 |
5966 | echo "${ECHO_T}$AR" >&6 |
5967 | else |
5968 | echo "$as_me:$LINENO: result: no" >&5 |
5969 | echo "${ECHO_T}no" >&6 |
5970 | fi |
5971 | |
5972 | fi |
5973 | if test -z "$ac_cv_prog_AR"; then |
5974 | ac_ct_AR=$AR |
5975 | # Extract the first word of "ar", so it can be a program name with args. |
5976 | set dummy ar; ac_word=$2 |
5977 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5978 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5979 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
5980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5981 | else |
5982 | if test -n "$ac_ct_AR"; then |
5983 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
5984 | else |
5985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5986 | for as_dir in $PATH |
5987 | do |
5988 | IFS=$as_save_IFS |
5989 | test -z "$as_dir" && as_dir=. |
5990 | for ac_exec_ext in '' $ac_executable_extensions; do |
5991 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5992 | ac_cv_prog_ac_ct_AR="ar" |
5993 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5994 | break 2 |
5995 | fi |
5996 | done |
5997 | done |
5998 | |
5999 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
6000 | fi |
6001 | fi |
6002 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6003 | if test -n "$ac_ct_AR"; then |
6004 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
6005 | echo "${ECHO_T}$ac_ct_AR" >&6 |
6006 | else |
6007 | echo "$as_me:$LINENO: result: no" >&5 |
6008 | echo "${ECHO_T}no" >&6 |
6009 | fi |
6010 | |
6011 | AR=$ac_ct_AR |
6012 | else |
6013 | AR="$ac_cv_prog_AR" |
6014 | fi |
6015 | |
6016 | if test -n "$ac_tool_prefix"; then |
6017 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
6018 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
6019 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6020 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6021 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
6022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6023 | else |
6024 | if test -n "$RANLIB"; then |
6025 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
6026 | else |
6027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6028 | for as_dir in $PATH |
6029 | do |
6030 | IFS=$as_save_IFS |
6031 | test -z "$as_dir" && as_dir=. |
6032 | for ac_exec_ext in '' $ac_executable_extensions; do |
6033 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6034 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6035 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6036 | break 2 |
6037 | fi |
6038 | done |
6039 | done |
6040 | |
6041 | fi |
6042 | fi |
6043 | RANLIB=$ac_cv_prog_RANLIB |
6044 | if test -n "$RANLIB"; then |
6045 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6046 | echo "${ECHO_T}$RANLIB" >&6 |
6047 | else |
6048 | echo "$as_me:$LINENO: result: no" >&5 |
6049 | echo "${ECHO_T}no" >&6 |
6050 | fi |
6051 | |
6052 | fi |
6053 | if test -z "$ac_cv_prog_RANLIB"; then |
6054 | ac_ct_RANLIB=$RANLIB |
6055 | # Extract the first word of "ranlib", so it can be a program name with args. |
6056 | set dummy ranlib; ac_word=$2 |
6057 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6058 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6059 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
6060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6061 | else |
6062 | if test -n "$ac_ct_RANLIB"; then |
6063 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
6064 | else |
6065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6066 | for as_dir in $PATH |
6067 | do |
6068 | IFS=$as_save_IFS |
6069 | test -z "$as_dir" && as_dir=. |
6070 | for ac_exec_ext in '' $ac_executable_extensions; do |
6071 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6072 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6073 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6074 | break 2 |
6075 | fi |
6076 | done |
6077 | done |
6078 | |
6079 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
6080 | fi |
6081 | fi |
6082 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6083 | if test -n "$ac_ct_RANLIB"; then |
6084 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
6085 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
6086 | else |
6087 | echo "$as_me:$LINENO: result: no" >&5 |
6088 | echo "${ECHO_T}no" >&6 |
6089 | fi |
6090 | |
6091 | RANLIB=$ac_ct_RANLIB |
6092 | else |
6093 | RANLIB="$ac_cv_prog_RANLIB" |
6094 | fi |
6095 | |
6096 | if test -n "$ac_tool_prefix"; then |
6097 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6098 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
6099 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6100 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6101 | if test "${ac_cv_prog_STRIP+set}" = set; then |
6102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6103 | else |
6104 | if test -n "$STRIP"; then |
6105 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
6106 | else |
6107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6108 | for as_dir in $PATH |
6109 | do |
6110 | IFS=$as_save_IFS |
6111 | test -z "$as_dir" && as_dir=. |
6112 | for ac_exec_ext in '' $ac_executable_extensions; do |
6113 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6114 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6115 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6116 | break 2 |
6117 | fi |
6118 | done |
6119 | done |
6120 | |
6121 | fi |
6122 | fi |
6123 | STRIP=$ac_cv_prog_STRIP |
6124 | if test -n "$STRIP"; then |
6125 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
6126 | echo "${ECHO_T}$STRIP" >&6 |
6127 | else |
6128 | echo "$as_me:$LINENO: result: no" >&5 |
6129 | echo "${ECHO_T}no" >&6 |
6130 | fi |
6131 | |
6132 | fi |
6133 | if test -z "$ac_cv_prog_STRIP"; then |
6134 | ac_ct_STRIP=$STRIP |
6135 | # Extract the first word of "strip", so it can be a program name with args. |
6136 | set dummy strip; ac_word=$2 |
6137 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6138 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6139 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
6140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6141 | else |
6142 | if test -n "$ac_ct_STRIP"; then |
6143 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
6144 | else |
6145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6146 | for as_dir in $PATH |
6147 | do |
6148 | IFS=$as_save_IFS |
6149 | test -z "$as_dir" && as_dir=. |
6150 | for ac_exec_ext in '' $ac_executable_extensions; do |
6151 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6152 | ac_cv_prog_ac_ct_STRIP="strip" |
6153 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6154 | break 2 |
6155 | fi |
6156 | done |
6157 | done |
6158 | |
6159 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
6160 | fi |
6161 | fi |
6162 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6163 | if test -n "$ac_ct_STRIP"; then |
6164 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
6165 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
6166 | else |
6167 | echo "$as_me:$LINENO: result: no" >&5 |
6168 | echo "${ECHO_T}no" >&6 |
6169 | fi |
6170 | |
6171 | STRIP=$ac_ct_STRIP |
6172 | else |
6173 | STRIP="$ac_cv_prog_STRIP" |
6174 | fi |
6175 | |
6176 | |
6177 | old_CC="$CC" |
6178 | old_CFLAGS="$CFLAGS" |
6179 | |
6180 | # Set sane defaults for various variables |
6181 | test -z "$AR" && AR=ar |
6182 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
6183 | test -z "$AS" && AS=as |
6184 | test -z "$CC" && CC=cc |
6185 | test -z "$LTCC" && LTCC=$CC |
6186 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
6187 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
6188 | test -z "$LD" && LD=ld |
6189 | test -z "$LN_S" && LN_S="ln -s" |
6190 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
6191 | test -z "$NM" && NM=nm |
6192 | test -z "$SED" && SED=sed |
6193 | test -z "$OBJDUMP" && OBJDUMP=objdump |
6194 | test -z "$RANLIB" && RANLIB=: |
6195 | test -z "$STRIP" && STRIP=: |
6196 | test -z "$ac_objext" && ac_objext=o |
6197 | |
6198 | # Determine commands to create old-style static archives. |
6199 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
6200 | old_postinstall_cmds='chmod 644 $oldlib' |
6201 | old_postuninstall_cmds= |
6202 | |
6203 | if test -n "$RANLIB"; then |
6204 | case $host_os in |
6205 | openbsd*) |
6206 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
6207 | ;; |
6208 | *) |
6209 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
6210 | ;; |
6211 | esac |
6212 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
6213 | fi |
6214 | |
6215 | for cc_temp in $compiler""; do |
6216 | case $cc_temp in |
6217 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
6218 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
6219 | \-*) ;; |
6220 | *) break;; |
6221 | esac |
6222 | done |
6223 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
6224 | |
6225 | |
6226 | # Only perform the check for file, if the check method requires it |
6227 | case $deplibs_check_method in |
6228 | file_magic*) |
6229 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
6230 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
6231 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
6232 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
6233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6234 | else |
6235 | case $MAGIC_CMD in |
6236 | [\\/*] | ?:[\\/]*) |
6237 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6238 | ;; |
6239 | *) |
6240 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
6241 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6242 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
6243 | for ac_dir in $ac_dummy; do |
6244 | IFS="$lt_save_ifs" |
6245 | test -z "$ac_dir" && ac_dir=. |
6246 | if test -f $ac_dir/${ac_tool_prefix}file; then |
6247 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
6248 | if test -n "$file_magic_test_file"; then |
6249 | case $deplibs_check_method in |
6250 | "file_magic "*) |
6251 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
6252 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6253 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6254 | $EGREP "$file_magic_regex" > /dev/null; then |
6255 | : |
6256 | else |
6257 | cat <<EOF 1>&2 |
6258 | |
6259 | *** Warning: the command libtool uses to detect shared libraries, |
6260 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
6261 | *** The result is that libtool may fail to recognize shared libraries |
6262 | *** as such. This will affect the creation of libtool libraries that |
6263 | *** depend on shared libraries, but programs linked with such libtool |
6264 | *** libraries will work regardless of this problem. Nevertheless, you |
6265 | *** may want to report the problem to your system manager and/or to |
6266 | *** bug-libtool@gnu.org |
6267 | |
6268 | EOF |
6269 | fi ;; |
6270 | esac |
6271 | fi |
6272 | break |
6273 | fi |
6274 | done |
6275 | IFS="$lt_save_ifs" |
6276 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
6277 | ;; |
6278 | esac |
6279 | fi |
6280 | |
6281 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6282 | if test -n "$MAGIC_CMD"; then |
6283 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
6284 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
6285 | else |
6286 | echo "$as_me:$LINENO: result: no" >&5 |
6287 | echo "${ECHO_T}no" >&6 |
6288 | fi |
6289 | |
6290 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
6291 | if test -n "$ac_tool_prefix"; then |
6292 | echo "$as_me:$LINENO: checking for file" >&5 |
6293 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
6294 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
6295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6296 | else |
6297 | case $MAGIC_CMD in |
6298 | [\\/*] | ?:[\\/]*) |
6299 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6300 | ;; |
6301 | *) |
6302 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
6303 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6304 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
6305 | for ac_dir in $ac_dummy; do |
6306 | IFS="$lt_save_ifs" |
6307 | test -z "$ac_dir" && ac_dir=. |
6308 | if test -f $ac_dir/file; then |
6309 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
6310 | if test -n "$file_magic_test_file"; then |
6311 | case $deplibs_check_method in |
6312 | "file_magic "*) |
6313 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
6314 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6315 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6316 | $EGREP "$file_magic_regex" > /dev/null; then |
6317 | : |
6318 | else |
6319 | cat <<EOF 1>&2 |
6320 | |
6321 | *** Warning: the command libtool uses to detect shared libraries, |
6322 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
6323 | *** The result is that libtool may fail to recognize shared libraries |
6324 | *** as such. This will affect the creation of libtool libraries that |
6325 | *** depend on shared libraries, but programs linked with such libtool |
6326 | *** libraries will work regardless of this problem. Nevertheless, you |
6327 | *** may want to report the problem to your system manager and/or to |
6328 | *** bug-libtool@gnu.org |
6329 | |
6330 | EOF |
6331 | fi ;; |
6332 | esac |
6333 | fi |
6334 | break |
6335 | fi |
6336 | done |
6337 | IFS="$lt_save_ifs" |
6338 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
6339 | ;; |
6340 | esac |
6341 | fi |
6342 | |
6343 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6344 | if test -n "$MAGIC_CMD"; then |
6345 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
6346 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
6347 | else |
6348 | echo "$as_me:$LINENO: result: no" >&5 |
6349 | echo "${ECHO_T}no" >&6 |
6350 | fi |
6351 | |
6352 | else |
6353 | MAGIC_CMD=: |
6354 | fi |
6355 | fi |
6356 | |
6357 | fi |
6358 | ;; |
6359 | esac |
6360 | |
6361 | enable_dlopen=no |
6362 | enable_win32_dll=no |
6363 | |
6364 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
6365 | if test "${enable_libtool_lock+set}" = set; then |
6366 | enableval="$enable_libtool_lock" |
6367 | |
6368 | fi; |
6369 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6370 | |
6371 | |
6372 | # Check whether --with-pic or --without-pic was given. |
6373 | if test "${with_pic+set}" = set; then |
6374 | withval="$with_pic" |
6375 | pic_mode="$withval" |
6376 | else |
6377 | pic_mode=default |
6378 | fi; |
6379 | test -z "$pic_mode" && pic_mode=default |
6380 | |
6381 | # Use C for the default configuration in the libtool script |
6382 | tagname= |
6383 | lt_save_CC="$CC" |
6384 | ac_ext=c |
6385 | ac_cpp='$CPP $CPPFLAGS' |
6386 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6387 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6388 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6389 | |
6390 | |
6391 | # Source file extension for C test sources. |
6392 | ac_ext=c |
6393 | |
6394 | # Object file extension for compiled C test sources. |
6395 | objext=o |
6396 | objext=$objext |
6397 | |
6398 | # Code to be used in simple compile tests |
6399 | lt_simple_compile_test_code="int some_variable = 0;\n" |
6400 | |
6401 | # Code to be used in simple link tests |
6402 | lt_simple_link_test_code='int main(){return(0);}\n' |
6403 | |
6404 | |
6405 | # If no C compiler was specified, use CC. |
6406 | LTCC=${LTCC-"$CC"} |
6407 | |
6408 | # If no C compiler flags were specified, use CFLAGS. |
6409 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
6410 | |
6411 | # Allow CC to be a program name with arguments. |
6412 | compiler=$CC |
6413 | |
6414 | |
6415 | # save warnings/boilerplate of simple test code |
6416 | ac_outfile=conftest.$ac_objext |
6417 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
6418 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
6419 | _lt_compiler_boilerplate=`cat conftest.err` |
6420 | $rm conftest* |
6421 | |
6422 | ac_outfile=conftest.$ac_objext |
6423 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
6424 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
6425 | _lt_linker_boilerplate=`cat conftest.err` |
6426 | $rm conftest* |
6427 | |
6428 | |
6429 | |
6430 | lt_prog_compiler_no_builtin_flag= |
6431 | |
6432 | if test "$GCC" = yes; then |
6433 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
6434 | |
6435 | |
6436 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
6437 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
6438 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
6439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6440 | else |
6441 | lt_cv_prog_compiler_rtti_exceptions=no |
6442 | ac_outfile=conftest.$ac_objext |
6443 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6444 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
6445 | # Insert the option either (1) after the last *FLAGS variable, or |
6446 | # (2) before a word containing "conftest.", or (3) at the end. |
6447 | # Note that $ac_compile itself does not contain backslashes and begins |
6448 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
6449 | # The option is referenced via a variable to avoid confusing sed. |
6450 | lt_compile=`echo "$ac_compile" | $SED \ |
6451 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
6452 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6453 | -e 's:$: $lt_compiler_flag:'` |
6454 | (eval echo "\"\$as_me:6454: $lt_compile\"" >&5) |
6455 | (eval "$lt_compile" 2>conftest.err) |
6456 | ac_status=$? |
6457 | cat conftest.err >&5 |
6458 | echo "$as_me:6458: \$? = $ac_status" >&5 |
6459 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6460 | # The compiler can only warn and ignore the option if not recognized |
6461 | # So say no if there are warnings other than the usual output. |
6462 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
6463 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
6464 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
6465 | lt_cv_prog_compiler_rtti_exceptions=yes |
6466 | fi |
6467 | fi |
6468 | $rm conftest* |
6469 | |
6470 | fi |
6471 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
6472 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
6473 | |
6474 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
6475 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
6476 | else |
6477 | : |
6478 | fi |
6479 | |
6480 | fi |
6481 | |
6482 | lt_prog_compiler_wl= |
6483 | lt_prog_compiler_pic= |
6484 | lt_prog_compiler_static= |
6485 | |
6486 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
6487 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
6488 | |
6489 | if test "$GCC" = yes; then |
6490 | lt_prog_compiler_wl='-Wl,' |
6491 | lt_prog_compiler_static='-static' |
6492 | |
6493 | case $host_os in |
6494 | aix*) |
6495 | # All AIX code is PIC. |
6496 | if test "$host_cpu" = ia64; then |
6497 | # AIX 5 now supports IA64 processor |
6498 | lt_prog_compiler_static='-Bstatic' |
6499 | fi |
6500 | ;; |
6501 | |
6502 | amigaos*) |
6503 | # FIXME: we need at least 68020 code to build shared libraries, but |
6504 | # adding the `-m68020' flag to GCC prevents building anything better, |
6505 | # like `-m68040'. |
6506 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
6507 | ;; |
6508 | |
6509 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
6510 | # PIC is the default for these OSes. |
6511 | ;; |
6512 | |
6513 | mingw* | pw32* | os2*) |
6514 | # This hack is so that the source file can tell whether it is being |
6515 | # built for inclusion in a dll (and should export symbols for example). |
6516 | lt_prog_compiler_pic='-DDLL_EXPORT' |
6517 | ;; |
6518 | |
6519 | darwin* | rhapsody*) |
6520 | # PIC is the default on this platform |
6521 | # Common symbols not allowed in MH_DYLIB files |
6522 | lt_prog_compiler_pic='-fno-common' |
6523 | ;; |
6524 | |
6525 | interix3*) |
6526 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
6527 | # Instead, we relocate shared libraries at runtime. |
6528 | ;; |
6529 | |
6530 | msdosdjgpp*) |
6531 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
6532 | # on systems that don't support them. |
6533 | lt_prog_compiler_can_build_shared=no |
6534 | enable_shared=no |
6535 | ;; |
6536 | |
6537 | sysv4*MP*) |
6538 | if test -d /usr/nec; then |
6539 | lt_prog_compiler_pic=-Kconform_pic |
6540 | fi |
6541 | ;; |
6542 | |
6543 | hpux*) |
6544 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
6545 | # not for PA HP-UX. |
6546 | case $host_cpu in |
6547 | hppa*64*|ia64*) |
6548 | # +Z the default |
6549 | ;; |
6550 | *) |
6551 | lt_prog_compiler_pic='-fPIC' |
6552 | ;; |
6553 | esac |
6554 | ;; |
6555 | |
6556 | *) |
6557 | lt_prog_compiler_pic='-fPIC' |
6558 | ;; |
6559 | esac |
6560 | else |
6561 | # PORTME Check for flag to pass linker flags through the system compiler. |
6562 | case $host_os in |
6563 | aix*) |
6564 | lt_prog_compiler_wl='-Wl,' |
6565 | if test "$host_cpu" = ia64; then |
6566 | # AIX 5 now supports IA64 processor |
6567 | lt_prog_compiler_static='-Bstatic' |
6568 | else |
6569 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
6570 | fi |
6571 | ;; |
6572 | darwin*) |
6573 | # PIC is the default on this platform |
6574 | # Common symbols not allowed in MH_DYLIB files |
6575 | case $cc_basename in |
6576 | xlc*) |
6577 | lt_prog_compiler_pic='-qnocommon' |
6578 | lt_prog_compiler_wl='-Wl,' |
6579 | ;; |
6580 | esac |
6581 | ;; |
6582 | |
6583 | mingw* | pw32* | os2*) |
6584 | # This hack is so that the source file can tell whether it is being |
6585 | # built for inclusion in a dll (and should export symbols for example). |
6586 | lt_prog_compiler_pic='-DDLL_EXPORT' |
6587 | ;; |
6588 | |
6589 | hpux9* | hpux10* | hpux11*) |
6590 | lt_prog_compiler_wl='-Wl,' |
6591 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
6592 | # not for PA HP-UX. |
6593 | case $host_cpu in |
6594 | hppa*64*|ia64*) |
6595 | # +Z the default |
6596 | ;; |
6597 | *) |
6598 | lt_prog_compiler_pic='+Z' |
6599 | ;; |
6600 | esac |
6601 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
6602 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
6603 | ;; |
6604 | |
6605 | irix5* | irix6* | nonstopux*) |
6606 | lt_prog_compiler_wl='-Wl,' |
6607 | # PIC (with -KPIC) is the default. |
6608 | lt_prog_compiler_static='-non_shared' |
6609 | ;; |
6610 | |
6611 | newsos6) |
6612 | lt_prog_compiler_pic='-KPIC' |
6613 | lt_prog_compiler_static='-Bstatic' |
6614 | ;; |
6615 | |
6616 | linux*) |
6617 | case $cc_basename in |
6618 | icc* | ecc*) |
6619 | lt_prog_compiler_wl='-Wl,' |
6620 | lt_prog_compiler_pic='-KPIC' |
6621 | lt_prog_compiler_static='-static' |
6622 | ;; |
6623 | pgcc* | pgf77* | pgf90* | pgf95*) |
6624 | # Portland Group compilers (*not* the Pentium gcc compiler, |
6625 | # which looks to be a dead project) |
6626 | lt_prog_compiler_wl='-Wl,' |
6627 | lt_prog_compiler_pic='-fpic' |
6628 | lt_prog_compiler_static='-Bstatic' |
6629 | ;; |
6630 | ccc*) |
6631 | lt_prog_compiler_wl='-Wl,' |
6632 | # All Alpha code is PIC. |
6633 | lt_prog_compiler_static='-non_shared' |
6634 | ;; |
6635 | esac |
6636 | ;; |
6637 | |
6638 | osf3* | osf4* | osf5*) |
6639 | lt_prog_compiler_wl='-Wl,' |
6640 | # All OSF/1 code is PIC. |
6641 | lt_prog_compiler_static='-non_shared' |
6642 | ;; |
6643 | |
6644 | solaris*) |
6645 | lt_prog_compiler_pic='-KPIC' |
6646 | lt_prog_compiler_static='-Bstatic' |
6647 | case $cc_basename in |
6648 | f77* | f90* | f95*) |
6649 | lt_prog_compiler_wl='-Qoption ld ';; |
6650 | *) |
6651 | lt_prog_compiler_wl='-Wl,';; |
6652 | esac |
6653 | ;; |
6654 | |
6655 | sunos4*) |
6656 | lt_prog_compiler_wl='-Qoption ld ' |
6657 | lt_prog_compiler_pic='-PIC' |
6658 | lt_prog_compiler_static='-Bstatic' |
6659 | ;; |
6660 | |
6661 | sysv4 | sysv4.2uw2* | sysv4.3*) |
6662 | lt_prog_compiler_wl='-Wl,' |
6663 | lt_prog_compiler_pic='-KPIC' |
6664 | lt_prog_compiler_static='-Bstatic' |
6665 | ;; |
6666 | |
6667 | sysv4*MP*) |
6668 | if test -d /usr/nec ;then |
6669 | lt_prog_compiler_pic='-Kconform_pic' |
6670 | lt_prog_compiler_static='-Bstatic' |
6671 | fi |
6672 | ;; |
6673 | |
6674 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
6675 | lt_prog_compiler_wl='-Wl,' |
6676 | lt_prog_compiler_pic='-KPIC' |
6677 | lt_prog_compiler_static='-Bstatic' |
6678 | ;; |
6679 | |
6680 | unicos*) |
6681 | lt_prog_compiler_wl='-Wl,' |
6682 | lt_prog_compiler_can_build_shared=no |
6683 | ;; |
6684 | |
6685 | uts4*) |
6686 | lt_prog_compiler_pic='-pic' |
6687 | lt_prog_compiler_static='-Bstatic' |
6688 | ;; |
6689 | |
6690 | *) |
6691 | lt_prog_compiler_can_build_shared=no |
6692 | ;; |
6693 | esac |
6694 | fi |
6695 | |
6696 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
6697 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
6698 | |
6699 | # |
6700 | # Check to make sure the PIC flag actually works. |
6701 | # |
6702 | if test -n "$lt_prog_compiler_pic"; then |
6703 | |
6704 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
6705 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
6706 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
6707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6708 | else |
6709 | lt_prog_compiler_pic_works=no |
6710 | ac_outfile=conftest.$ac_objext |
6711 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6712 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
6713 | # Insert the option either (1) after the last *FLAGS variable, or |
6714 | # (2) before a word containing "conftest.", or (3) at the end. |
6715 | # Note that $ac_compile itself does not contain backslashes and begins |
6716 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
6717 | # The option is referenced via a variable to avoid confusing sed. |
6718 | lt_compile=`echo "$ac_compile" | $SED \ |
6719 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
6720 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6721 | -e 's:$: $lt_compiler_flag:'` |
6722 | (eval echo "\"\$as_me:6722: $lt_compile\"" >&5) |
6723 | (eval "$lt_compile" 2>conftest.err) |
6724 | ac_status=$? |
6725 | cat conftest.err >&5 |
6726 | echo "$as_me:6726: \$? = $ac_status" >&5 |
6727 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6728 | # The compiler can only warn and ignore the option if not recognized |
6729 | # So say no if there are warnings other than the usual output. |
6730 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
6731 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
6732 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
6733 | lt_prog_compiler_pic_works=yes |
6734 | fi |
6735 | fi |
6736 | $rm conftest* |
6737 | |
6738 | fi |
6739 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
6740 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
6741 | |
6742 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
6743 | case $lt_prog_compiler_pic in |
6744 | "" | " "*) ;; |
6745 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
6746 | esac |
6747 | else |
6748 | lt_prog_compiler_pic= |
6749 | lt_prog_compiler_can_build_shared=no |
6750 | fi |
6751 | |
6752 | fi |
6753 | case $host_os in |
6754 | # For platforms which do not support PIC, -DPIC is meaningless: |
6755 | *djgpp*) |
6756 | lt_prog_compiler_pic= |
6757 | ;; |
6758 | *) |
6759 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
6760 | ;; |
6761 | esac |
6762 | |
6763 | # |
6764 | # Check to make sure the static flag actually works. |
6765 | # |
6766 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
6767 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
6768 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
6769 | if test "${lt_prog_compiler_static_works+set}" = set; then |
6770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6771 | else |
6772 | lt_prog_compiler_static_works=no |
6773 | save_LDFLAGS="$LDFLAGS" |
6774 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
6775 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
6776 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
6777 | # The linker can only warn and ignore the option if not recognized |
6778 | # So say no if there are warnings |
6779 | if test -s conftest.err; then |
6780 | # Append any errors to the config.log. |
6781 | cat conftest.err 1>&5 |
6782 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
6783 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
6784 | if diff conftest.exp conftest.er2 >/dev/null; then |
6785 | lt_prog_compiler_static_works=yes |
6786 | fi |
6787 | else |
6788 | lt_prog_compiler_static_works=yes |
6789 | fi |
6790 | fi |
6791 | $rm conftest* |
6792 | LDFLAGS="$save_LDFLAGS" |
6793 | |
6794 | fi |
6795 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
6796 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
6797 | |
6798 | if test x"$lt_prog_compiler_static_works" = xyes; then |
6799 | : |
6800 | else |
6801 | lt_prog_compiler_static= |
6802 | fi |
6803 | |
6804 | |
6805 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
6806 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
6807 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
6808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6809 | else |
6810 | lt_cv_prog_compiler_c_o=no |
6811 | $rm -r conftest 2>/dev/null |
6812 | mkdir conftest |
6813 | cd conftest |
6814 | mkdir out |
6815 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6816 | |
6817 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
6818 | # Insert the option either (1) after the last *FLAGS variable, or |
6819 | # (2) before a word containing "conftest.", or (3) at the end. |
6820 | # Note that $ac_compile itself does not contain backslashes and begins |
6821 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
6822 | lt_compile=`echo "$ac_compile" | $SED \ |
6823 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
6824 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6825 | -e 's:$: $lt_compiler_flag:'` |
6826 | (eval echo "\"\$as_me:6826: $lt_compile\"" >&5) |
6827 | (eval "$lt_compile" 2>out/conftest.err) |
6828 | ac_status=$? |
6829 | cat out/conftest.err >&5 |
6830 | echo "$as_me:6830: \$? = $ac_status" >&5 |
6831 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
6832 | then |
6833 | # The compiler can only warn and ignore the option if not recognized |
6834 | # So say no if there are warnings |
6835 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
6836 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
6837 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
6838 | lt_cv_prog_compiler_c_o=yes |
6839 | fi |
6840 | fi |
6841 | chmod u+w . 2>&5 |
6842 | $rm conftest* |
6843 | # SGI C++ compiler will create directory out/ii_files/ for |
6844 | # template instantiation |
6845 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
6846 | $rm out/* && rmdir out |
6847 | cd .. |
6848 | rmdir conftest |
6849 | $rm conftest* |
6850 | |
6851 | fi |
6852 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
6853 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
6854 | |
6855 | |
6856 | hard_links="nottested" |
6857 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
6858 | # do not overwrite the value of need_locks provided by the user |
6859 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
6860 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
6861 | hard_links=yes |
6862 | $rm conftest* |
6863 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
6864 | touch conftest.a |
6865 | ln conftest.a conftest.b 2>&5 || hard_links=no |
6866 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
6867 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
6868 | echo "${ECHO_T}$hard_links" >&6 |
6869 | if test "$hard_links" = no; then |
6870 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
6871 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
6872 | need_locks=warn |
6873 | fi |
6874 | else |
6875 | need_locks=no |
6876 | fi |
6877 | |
6878 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
6879 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
6880 | |
6881 | runpath_var= |
6882 | allow_undefined_flag= |
6883 | enable_shared_with_static_runtimes=no |
6884 | archive_cmds= |
6885 | archive_expsym_cmds= |
6886 | old_archive_From_new_cmds= |
6887 | old_archive_from_expsyms_cmds= |
6888 | export_dynamic_flag_spec= |
6889 | whole_archive_flag_spec= |
6890 | thread_safe_flag_spec= |
6891 | hardcode_libdir_flag_spec= |
6892 | hardcode_libdir_flag_spec_ld= |
6893 | hardcode_libdir_separator= |
6894 | hardcode_direct=no |
6895 | hardcode_minus_L=no |
6896 | hardcode_shlibpath_var=unsupported |
6897 | link_all_deplibs=unknown |
6898 | hardcode_automatic=no |
6899 | module_cmds= |
6900 | module_expsym_cmds= |
6901 | always_export_symbols=no |
6902 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
6903 | # include_expsyms should be a list of space-separated symbols to be *always* |
6904 | # included in the symbol list |
6905 | include_expsyms= |
6906 | # exclude_expsyms can be an extended regexp of symbols to exclude |
6907 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
6908 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
6909 | # as well as any symbol that contains `d'. |
6910 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
6911 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
6912 | # platforms (ab)use it in PIC code, but their linkers get confused if |
6913 | # the symbol is explicitly referenced. Since portable code cannot |
6914 | # rely on this symbol name, it's probably fine to never include it in |
6915 | # preloaded symbol tables. |
6916 | extract_expsyms_cmds= |
6917 | # Just being paranoid about ensuring that cc_basename is set. |
6918 | for cc_temp in $compiler""; do |
6919 | case $cc_temp in |
6920 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
6921 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
6922 | \-*) ;; |
6923 | *) break;; |
6924 | esac |
6925 | done |
6926 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
6927 | |
6928 | case $host_os in |
6929 | cygwin* | mingw* | pw32*) |
6930 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
6931 | # When not using gcc, we currently assume that we are using |
6932 | # Microsoft Visual C++. |
6933 | if test "$GCC" != yes; then |
6934 | with_gnu_ld=no |
6935 | fi |
6936 | ;; |
6937 | interix*) |
6938 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
6939 | with_gnu_ld=yes |
6940 | ;; |
6941 | openbsd*) |
6942 | with_gnu_ld=no |
6943 | ;; |
6944 | esac |
6945 | |
6946 | ld_shlibs=yes |
6947 | if test "$with_gnu_ld" = yes; then |
6948 | # If archive_cmds runs LD, not CC, wlarc should be empty |
6949 | wlarc='${wl}' |
6950 | |
6951 | # Set some defaults for GNU ld with shared library support. These |
6952 | # are reset later if shared libraries are not supported. Putting them |
6953 | # here allows them to be overridden if necessary. |
6954 | runpath_var=LD_RUN_PATH |
6955 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
6956 | export_dynamic_flag_spec='${wl}--export-dynamic' |
6957 | # ancient GNU ld didn't support --whole-archive et. al. |
6958 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
6959 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
6960 | else |
6961 | whole_archive_flag_spec= |
6962 | fi |
6963 | supports_anon_versioning=no |
6964 | case `$LD -v 2>/dev/null` in |
6965 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
6966 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
6967 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
6968 | *\ 2.11.*) ;; # other 2.11 versions |
6969 | *) supports_anon_versioning=yes ;; |
6970 | esac |
6971 | |
6972 | # See if GNU ld supports shared libraries. |
6973 | case $host_os in |
6974 | aix3* | aix4* | aix5*) |
6975 | # On AIX/PPC, the GNU linker is very broken |
6976 | if test "$host_cpu" != ia64; then |
6977 | ld_shlibs=no |
6978 | cat <<EOF 1>&2 |
6979 | |
6980 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
6981 | *** to be unable to reliably create shared libraries on AIX. |
6982 | *** Therefore, libtool is disabling shared libraries support. If you |
6983 | *** really care for shared libraries, you may want to modify your PATH |
6984 | *** so that a non-GNU linker is found, and then restart. |
6985 | |
6986 | EOF |
6987 | fi |
6988 | ;; |
6989 | |
6990 | amigaos*) |
6991 | 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)' |
6992 | hardcode_libdir_flag_spec='-L$libdir' |
6993 | hardcode_minus_L=yes |
6994 | |
6995 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
6996 | # that the semantics of dynamic libraries on AmigaOS, at least up |
6997 | # to version 4, is to share data among multiple programs linked |
6998 | # with the same dynamic library. Since this doesn't match the |
6999 | # behavior of shared libraries on other platforms, we can't use |
7000 | # them. |
7001 | ld_shlibs=no |
7002 | ;; |
7003 | |
7004 | beos*) |
7005 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7006 | allow_undefined_flag=unsupported |
7007 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
7008 | # support --undefined. This deserves some investigation. FIXME |
7009 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7010 | else |
7011 | ld_shlibs=no |
7012 | fi |
7013 | ;; |
7014 | |
7015 | cygwin* | mingw* | pw32*) |
7016 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
7017 | # as there is no search path for DLLs. |
7018 | hardcode_libdir_flag_spec='-L$libdir' |
7019 | allow_undefined_flag=unsupported |
7020 | always_export_symbols=no |
7021 | enable_shared_with_static_runtimes=yes |
7022 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
7023 | |
7024 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
7025 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7026 | # If the export-symbols file already is a .def file (1st line |
7027 | # is EXPORTS), use it as is; otherwise, prepend... |
7028 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
7029 | cp $export_symbols $output_objdir/$soname.def; |
7030 | else |
7031 | echo EXPORTS > $output_objdir/$soname.def; |
7032 | cat $export_symbols >> $output_objdir/$soname.def; |
7033 | fi~ |
7034 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7035 | else |
7036 | ld_shlibs=no |
7037 | fi |
7038 | ;; |
7039 | |
7040 | interix3*) |
7041 | hardcode_direct=no |
7042 | hardcode_shlibpath_var=no |
7043 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7044 | export_dynamic_flag_spec='${wl}-E' |
7045 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
7046 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
7047 | # default) and relocated if they conflict, which is a slow very memory |
7048 | # consuming and fragmenting process. To avoid this, we pick a random, |
7049 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
7050 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
7051 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
7052 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
7053 | ;; |
7054 | |
7055 | linux*) |
7056 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7057 | tmp_addflag= |
7058 | case $cc_basename,$host_cpu in |
7059 | pgcc*) # Portland Group C compiler |
7060 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
7061 | tmp_addflag=' $pic_flag' |
7062 | ;; |
7063 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
7064 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
7065 | tmp_addflag=' $pic_flag -Mnomain' ;; |
7066 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
7067 | tmp_addflag=' -i_dynamic' ;; |
7068 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
7069 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
7070 | ifc* | ifort*) # Intel Fortran compiler |
7071 | tmp_addflag=' -nofor_main' ;; |
7072 | esac |
7073 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7074 | |
7075 | if test $supports_anon_versioning = yes; then |
7076 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
7077 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
7078 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
7079 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
7080 | fi |
7081 | else |
7082 | ld_shlibs=no |
7083 | fi |
7084 | ;; |
7085 | |
7086 | netbsd*) |
7087 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7088 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
7089 | wlarc= |
7090 | else |
7091 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7092 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7093 | fi |
7094 | ;; |
7095 | |
7096 | solaris*) |
7097 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
7098 | ld_shlibs=no |
7099 | cat <<EOF 1>&2 |
7100 | |
7101 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
7102 | *** create shared libraries on Solaris systems. Therefore, libtool |
7103 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7104 | *** binutils to release 2.9.1 or newer. Another option is to modify |
7105 | *** your PATH or compiler configuration so that the native linker is |
7106 | *** used, and then restart. |
7107 | |
7108 | EOF |
7109 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7110 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7111 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7112 | else |
7113 | ld_shlibs=no |
7114 | fi |
7115 | ;; |
7116 | |
7117 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
7118 | case `$LD -v 2>&1` in |
7119 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
7120 | ld_shlibs=no |
7121 | cat <<_LT_EOF 1>&2 |
7122 | |
7123 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
7124 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
7125 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7126 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
7127 | *** your PATH or compiler configuration so that the native linker is |
7128 | *** used, and then restart. |
7129 | |
7130 | _LT_EOF |
7131 | ;; |
7132 | *) |
7133 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7134 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
7135 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
7136 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
7137 | else |
7138 | ld_shlibs=no |
7139 | fi |
7140 | ;; |
7141 | esac |
7142 | ;; |
7143 | |
7144 | sunos4*) |
7145 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7146 | wlarc= |
7147 | hardcode_direct=yes |
7148 | hardcode_shlibpath_var=no |
7149 | ;; |
7150 | |
7151 | *) |
7152 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7153 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7154 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7155 | else |
7156 | ld_shlibs=no |
7157 | fi |
7158 | ;; |
7159 | esac |
7160 | |
7161 | if test "$ld_shlibs" = no; then |
7162 | runpath_var= |
7163 | hardcode_libdir_flag_spec= |
7164 | export_dynamic_flag_spec= |
7165 | whole_archive_flag_spec= |
7166 | fi |
7167 | else |
7168 | # PORTME fill in a description of your system's linker (not GNU ld) |
7169 | case $host_os in |
7170 | aix3*) |
7171 | allow_undefined_flag=unsupported |
7172 | always_export_symbols=yes |
7173 | 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' |
7174 | # Note: this linker hardcodes the directories in LIBPATH if there |
7175 | # are no directories specified by -L. |
7176 | hardcode_minus_L=yes |
7177 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
7178 | # Neither direct hardcoding nor static linking is supported with a |
7179 | # broken collect2. |
7180 | hardcode_direct=unsupported |
7181 | fi |
7182 | ;; |
7183 | |
7184 | aix4* | aix5*) |
7185 | if test "$host_cpu" = ia64; then |
7186 | # On IA64, the linker does run time linking by default, so we don't |
7187 | # have to do anything special. |
7188 | aix_use_runtimelinking=no |
7189 | exp_sym_flag='-Bexport' |
7190 | no_entry_flag="" |
7191 | else |
7192 | # If we're using GNU nm, then we don't want the "-C" option. |
7193 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
7194 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
7195 | 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' |
7196 | else |
7197 | 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' |
7198 | fi |
7199 | aix_use_runtimelinking=no |
7200 | |
7201 | # Test if we are trying to use run time linking or normal |
7202 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
7203 | # need to do runtime linking. |
7204 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
7205 | for ld_flag in $LDFLAGS; do |
7206 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
7207 | aix_use_runtimelinking=yes |
7208 | break |
7209 | fi |
7210 | done |
7211 | ;; |
7212 | esac |
7213 | |
7214 | exp_sym_flag='-bexport' |
7215 | no_entry_flag='-bnoentry' |
7216 | fi |
7217 | |
7218 | # When large executables or shared objects are built, AIX ld can |
7219 | # have problems creating the table of contents. If linking a library |
7220 | # or program results in "error TOC overflow" add -mminimal-toc to |
7221 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
7222 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
7223 | |
7224 | archive_cmds='' |
7225 | hardcode_direct=yes |
7226 | hardcode_libdir_separator=':' |
7227 | link_all_deplibs=yes |
7228 | |
7229 | if test "$GCC" = yes; then |
7230 | case $host_os in aix4.[012]|aix4.[012].*) |
7231 | # We only want to do this on AIX 4.2 and lower, the check |
7232 | # below for broken collect2 doesn't work under 4.3+ |
7233 | collect2name=`${CC} -print-prog-name=collect2` |
7234 | if test -f "$collect2name" && \ |
7235 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
7236 | then |
7237 | # We have reworked collect2 |
7238 | hardcode_direct=yes |
7239 | else |
7240 | # We have old collect2 |
7241 | hardcode_direct=unsupported |
7242 | # It fails to find uninstalled libraries when the uninstalled |
7243 | # path is not listed in the libpath. Setting hardcode_minus_L |
7244 | # to unsupported forces relinking |
7245 | hardcode_minus_L=yes |
7246 | hardcode_libdir_flag_spec='-L$libdir' |
7247 | hardcode_libdir_separator= |
7248 | fi |
7249 | ;; |
7250 | esac |
7251 | shared_flag='-shared' |
7252 | if test "$aix_use_runtimelinking" = yes; then |
7253 | shared_flag="$shared_flag "'${wl}-G' |
7254 | fi |
7255 | else |
7256 | # not using gcc |
7257 | if test "$host_cpu" = ia64; then |
7258 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
7259 | # chokes on -Wl,-G. The following line is correct: |
7260 | shared_flag='-G' |
7261 | else |
7262 | if test "$aix_use_runtimelinking" = yes; then |
7263 | shared_flag='${wl}-G' |
7264 | else |
7265 | shared_flag='${wl}-bM:SRE' |
7266 | fi |
7267 | fi |
7268 | fi |
7269 | |
7270 | # It seems that -bexpall does not export symbols beginning with |
7271 | # underscore (_), so it is better to generate a list of symbols to export. |
7272 | always_export_symbols=yes |
7273 | if test "$aix_use_runtimelinking" = yes; then |
7274 | # Warning - without using the other runtime loading flags (-brtl), |
7275 | # -berok will link without error, but may produce a broken library. |
7276 | allow_undefined_flag='-berok' |
7277 | # Determine the default libpath from the value encoded in an empty executable. |
7278 | cat >conftest.$ac_ext <<_ACEOF |
7279 | /* confdefs.h. */ |
7280 | _ACEOF |
7281 | cat confdefs.h >>conftest.$ac_ext |
7282 | cat >>conftest.$ac_ext <<_ACEOF |
7283 | /* end confdefs.h. */ |
7284 | |
7285 | int |
7286 | main () |
7287 | { |
7288 | |
7289 | ; |
7290 | return 0; |
7291 | } |
7292 | _ACEOF |
7293 | rm -f conftest.$ac_objext conftest$ac_exeext |
7294 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7295 | (eval $ac_link) 2>conftest.er1 |
7296 | ac_status=$? |
7297 | grep -v '^ *+' conftest.er1 >conftest.err |
7298 | rm -f conftest.er1 |
7299 | cat conftest.err >&5 |
7300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7301 | (exit $ac_status); } && |
7302 | { ac_try='test -z "$ac_c_werror_flag" |
7303 | || test ! -s conftest.err' |
7304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7305 | (eval $ac_try) 2>&5 |
7306 | ac_status=$? |
7307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7308 | (exit $ac_status); }; } && |
7309 | { ac_try='test -s conftest$ac_exeext' |
7310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7311 | (eval $ac_try) 2>&5 |
7312 | ac_status=$? |
7313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7314 | (exit $ac_status); }; }; then |
7315 | |
7316 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
7317 | }'` |
7318 | # Check for a 64-bit object if we didn't find anything. |
7319 | 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; } |
7320 | }'`; fi |
7321 | else |
7322 | echo "$as_me: failed program was:" >&5 |
7323 | sed 's/^/| /' conftest.$ac_ext >&5 |
7324 | |
7325 | fi |
7326 | rm -f conftest.err conftest.$ac_objext \ |
7327 | conftest$ac_exeext conftest.$ac_ext |
7328 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
7329 | |
7330 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
7331 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
7332 | else |
7333 | if test "$host_cpu" = ia64; then |
7334 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
7335 | allow_undefined_flag="-z nodefs" |
7336 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
7337 | else |
7338 | # Determine the default libpath from the value encoded in an empty executable. |
7339 | cat >conftest.$ac_ext <<_ACEOF |
7340 | /* confdefs.h. */ |
7341 | _ACEOF |
7342 | cat confdefs.h >>conftest.$ac_ext |
7343 | cat >>conftest.$ac_ext <<_ACEOF |
7344 | /* end confdefs.h. */ |
7345 | |
7346 | int |
7347 | main () |
7348 | { |
7349 | |
7350 | ; |
7351 | return 0; |
7352 | } |
7353 | _ACEOF |
7354 | rm -f conftest.$ac_objext conftest$ac_exeext |
7355 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7356 | (eval $ac_link) 2>conftest.er1 |
7357 | ac_status=$? |
7358 | grep -v '^ *+' conftest.er1 >conftest.err |
7359 | rm -f conftest.er1 |
7360 | cat conftest.err >&5 |
7361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7362 | (exit $ac_status); } && |
7363 | { ac_try='test -z "$ac_c_werror_flag" |
7364 | || test ! -s conftest.err' |
7365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7366 | (eval $ac_try) 2>&5 |
7367 | ac_status=$? |
7368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7369 | (exit $ac_status); }; } && |
7370 | { ac_try='test -s conftest$ac_exeext' |
7371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7372 | (eval $ac_try) 2>&5 |
7373 | ac_status=$? |
7374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7375 | (exit $ac_status); }; }; then |
7376 | |
7377 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
7378 | }'` |
7379 | # Check for a 64-bit object if we didn't find anything. |
7380 | 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; } |
7381 | }'`; fi |
7382 | else |
7383 | echo "$as_me: failed program was:" >&5 |
7384 | sed 's/^/| /' conftest.$ac_ext >&5 |
7385 | |
7386 | fi |
7387 | rm -f conftest.err conftest.$ac_objext \ |
7388 | conftest$ac_exeext conftest.$ac_ext |
7389 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
7390 | |
7391 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
7392 | # Warning - without using the other run time loading flags, |
7393 | # -berok will link without error, but may produce a broken library. |
7394 | no_undefined_flag=' ${wl}-bernotok' |
7395 | allow_undefined_flag=' ${wl}-berok' |
7396 | # Exported symbols can be pulled into shared objects from archives |
7397 | whole_archive_flag_spec='$convenience' |
7398 | archive_cmds_need_lc=yes |
7399 | # This is similar to how AIX traditionally builds its shared libraries. |
7400 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
7401 | fi |
7402 | fi |
7403 | ;; |
7404 | |
7405 | amigaos*) |
7406 | 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)' |
7407 | hardcode_libdir_flag_spec='-L$libdir' |
7408 | hardcode_minus_L=yes |
7409 | # see comment about different semantics on the GNU ld section |
7410 | ld_shlibs=no |
7411 | ;; |
7412 | |
7413 | bsdi[45]*) |
7414 | export_dynamic_flag_spec=-rdynamic |
7415 | ;; |
7416 | |
7417 | cygwin* | mingw* | pw32*) |
7418 | # When not using gcc, we currently assume that we are using |
7419 | # Microsoft Visual C++. |
7420 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
7421 | # no search path for DLLs. |
7422 | hardcode_libdir_flag_spec=' ' |
7423 | allow_undefined_flag=unsupported |
7424 | # Tell ltmain to make .lib files, not .a files. |
7425 | libext=lib |
7426 | # Tell ltmain to make .dll files, not .so files. |
7427 | shrext_cmds=".dll" |
7428 | # FIXME: Setting linknames here is a bad hack. |
7429 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
7430 | # The linker will automatically build a .lib file if we build a DLL. |
7431 | old_archive_From_new_cmds='true' |
7432 | # FIXME: Should let the user specify the lib program. |
7433 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
7434 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
7435 | enable_shared_with_static_runtimes=yes |
7436 | ;; |
7437 | |
7438 | darwin* | rhapsody*) |
7439 | case $host_os in |
7440 | rhapsody* | darwin1.[012]) |
7441 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
7442 | ;; |
7443 | *) # Darwin 1.3 on |
7444 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
7445 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
7446 | else |
7447 | case ${MACOSX_DEPLOYMENT_TARGET} in |
7448 | 10.[012]) |
7449 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
7450 | ;; |
7451 | 10.*) |
7452 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
7453 | ;; |
7454 | esac |
7455 | fi |
7456 | ;; |
7457 | esac |
7458 | archive_cmds_need_lc=no |
7459 | hardcode_direct=no |
7460 | hardcode_automatic=yes |
7461 | hardcode_shlibpath_var=unsupported |
7462 | whole_archive_flag_spec='' |
7463 | link_all_deplibs=yes |
7464 | if test "$GCC" = yes ; then |
7465 | output_verbose_link_cmd='echo' |
7466 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
7467 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
7468 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
7469 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
7470 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
7471 | else |
7472 | case $cc_basename in |
7473 | xlc*) |
7474 | output_verbose_link_cmd='echo' |
7475 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
7476 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
7477 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
7478 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
7479 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
7480 | ;; |
7481 | *) |
7482 | ld_shlibs=no |
7483 | ;; |
7484 | esac |
7485 | fi |
7486 | ;; |
7487 | |
7488 | dgux*) |
7489 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7490 | hardcode_libdir_flag_spec='-L$libdir' |
7491 | hardcode_shlibpath_var=no |
7492 | ;; |
7493 | |
7494 | freebsd1*) |
7495 | ld_shlibs=no |
7496 | ;; |
7497 | |
7498 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
7499 | # support. Future versions do this automatically, but an explicit c++rt0.o |
7500 | # does not break anything, and helps significantly (at the cost of a little |
7501 | # extra space). |
7502 | freebsd2.2*) |
7503 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
7504 | hardcode_libdir_flag_spec='-R$libdir' |
7505 | hardcode_direct=yes |
7506 | hardcode_shlibpath_var=no |
7507 | ;; |
7508 | |
7509 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
7510 | freebsd2*) |
7511 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7512 | hardcode_direct=yes |
7513 | hardcode_minus_L=yes |
7514 | hardcode_shlibpath_var=no |
7515 | ;; |
7516 | |
7517 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
7518 | freebsd* | kfreebsd*-gnu | dragonfly*) |
7519 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
7520 | hardcode_libdir_flag_spec='-R$libdir' |
7521 | hardcode_direct=yes |
7522 | hardcode_shlibpath_var=no |
7523 | ;; |
7524 | |
7525 | hpux9*) |
7526 | if test "$GCC" = yes; then |
7527 | 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' |
7528 | else |
7529 | 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' |
7530 | fi |
7531 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7532 | hardcode_libdir_separator=: |
7533 | hardcode_direct=yes |
7534 | |
7535 | # hardcode_minus_L: Not really in the search PATH, |
7536 | # but as the default location of the library. |
7537 | hardcode_minus_L=yes |
7538 | export_dynamic_flag_spec='${wl}-E' |
7539 | ;; |
7540 | |
7541 | hpux10*) |
7542 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
7543 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
7544 | else |
7545 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
7546 | fi |
7547 | if test "$with_gnu_ld" = no; then |
7548 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7549 | hardcode_libdir_separator=: |
7550 | |
7551 | hardcode_direct=yes |
7552 | export_dynamic_flag_spec='${wl}-E' |
7553 | |
7554 | # hardcode_minus_L: Not really in the search PATH, |
7555 | # but as the default location of the library. |
7556 | hardcode_minus_L=yes |
7557 | fi |
7558 | ;; |
7559 | |
7560 | hpux11*) |
7561 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
7562 | case $host_cpu in |
7563 | hppa*64*) |
7564 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7565 | ;; |
7566 | ia64*) |
7567 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
7568 | ;; |
7569 | *) |
7570 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
7571 | ;; |
7572 | esac |
7573 | else |
7574 | case $host_cpu in |
7575 | hppa*64*) |
7576 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7577 | ;; |
7578 | ia64*) |
7579 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
7580 | ;; |
7581 | *) |
7582 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
7583 | ;; |
7584 | esac |
7585 | fi |
7586 | if test "$with_gnu_ld" = no; then |
7587 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7588 | hardcode_libdir_separator=: |
7589 | |
7590 | case $host_cpu in |
7591 | hppa*64*|ia64*) |
7592 | hardcode_libdir_flag_spec_ld='+b $libdir' |
7593 | hardcode_direct=no |
7594 | hardcode_shlibpath_var=no |
7595 | ;; |
7596 | *) |
7597 | hardcode_direct=yes |
7598 | export_dynamic_flag_spec='${wl}-E' |
7599 | |
7600 | # hardcode_minus_L: Not really in the search PATH, |
7601 | # but as the default location of the library. |
7602 | hardcode_minus_L=yes |
7603 | ;; |
7604 | esac |
7605 | fi |
7606 | ;; |
7607 | |
7608 | irix5* | irix6* | nonstopux*) |
7609 | if test "$GCC" = yes; then |
7610 | 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' |
7611 | else |
7612 | 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' |
7613 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
7614 | fi |
7615 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7616 | hardcode_libdir_separator=: |
7617 | link_all_deplibs=yes |
7618 | ;; |
7619 | |
7620 | netbsd*) |
7621 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7622 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
7623 | else |
7624 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
7625 | fi |
7626 | hardcode_libdir_flag_spec='-R$libdir' |
7627 | hardcode_direct=yes |
7628 | hardcode_shlibpath_var=no |
7629 | ;; |
7630 | |
7631 | newsos6) |
7632 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7633 | hardcode_direct=yes |
7634 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7635 | hardcode_libdir_separator=: |
7636 | hardcode_shlibpath_var=no |
7637 | ;; |
7638 | |
7639 | openbsd*) |
7640 | hardcode_direct=yes |
7641 | hardcode_shlibpath_var=no |
7642 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
7643 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
7644 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
7645 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7646 | export_dynamic_flag_spec='${wl}-E' |
7647 | else |
7648 | case $host_os in |
7649 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
7650 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7651 | hardcode_libdir_flag_spec='-R$libdir' |
7652 | ;; |
7653 | *) |
7654 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
7655 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7656 | ;; |
7657 | esac |
7658 | fi |
7659 | ;; |
7660 | |
7661 | os2*) |
7662 | hardcode_libdir_flag_spec='-L$libdir' |
7663 | hardcode_minus_L=yes |
7664 | allow_undefined_flag=unsupported |
7665 | 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' |
7666 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
7667 | ;; |
7668 | |
7669 | osf3*) |
7670 | if test "$GCC" = yes; then |
7671 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
7672 | 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' |
7673 | else |
7674 | allow_undefined_flag=' -expect_unresolved \*' |
7675 | 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' |
7676 | fi |
7677 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7678 | hardcode_libdir_separator=: |
7679 | ;; |
7680 | |
7681 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
7682 | if test "$GCC" = yes; then |
7683 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
7684 | 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' |
7685 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7686 | else |
7687 | allow_undefined_flag=' -expect_unresolved \*' |
7688 | 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' |
7689 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
7690 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
7691 | |
7692 | # Both c and cxx compiler support -rpath directly |
7693 | hardcode_libdir_flag_spec='-rpath $libdir' |
7694 | fi |
7695 | hardcode_libdir_separator=: |
7696 | ;; |
7697 | |
7698 | solaris*) |
7699 | no_undefined_flag=' -z text' |
7700 | if test "$GCC" = yes; then |
7701 | wlarc='${wl}' |
7702 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7703 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
7704 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
7705 | else |
7706 | wlarc='' |
7707 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7708 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
7709 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
7710 | fi |
7711 | hardcode_libdir_flag_spec='-R$libdir' |
7712 | hardcode_shlibpath_var=no |
7713 | case $host_os in |
7714 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
7715 | *) |
7716 | # The compiler driver will combine linker options so we |
7717 | # cannot just pass the convience library names through |
7718 | # without $wl, iff we do not link with $LD. |
7719 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
7720 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
7721 | case $wlarc in |
7722 | '') |
7723 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
7724 | *) |
7725 | whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
7726 | esac ;; |
7727 | esac |
7728 | link_all_deplibs=yes |
7729 | ;; |
7730 | |
7731 | sunos4*) |
7732 | if test "x$host_vendor" = xsequent; then |
7733 | # Use $CC to link under sequent, because it throws in some extra .o |
7734 | # files that make .init and .fini sections work. |
7735 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
7736 | else |
7737 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
7738 | fi |
7739 | hardcode_libdir_flag_spec='-L$libdir' |
7740 | hardcode_direct=yes |
7741 | hardcode_minus_L=yes |
7742 | hardcode_shlibpath_var=no |
7743 | ;; |
7744 | |
7745 | sysv4) |
7746 | case $host_vendor in |
7747 | sni) |
7748 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7749 | hardcode_direct=yes # is this really true??? |
7750 | ;; |
7751 | siemens) |
7752 | ## LD is ld it makes a PLAMLIB |
7753 | ## CC just makes a GrossModule. |
7754 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
7755 | reload_cmds='$CC -r -o $output$reload_objs' |
7756 | hardcode_direct=no |
7757 | ;; |
7758 | motorola) |
7759 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7760 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
7761 | ;; |
7762 | esac |
7763 | runpath_var='LD_RUN_PATH' |
7764 | hardcode_shlibpath_var=no |
7765 | ;; |
7766 | |
7767 | sysv4.3*) |
7768 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7769 | hardcode_shlibpath_var=no |
7770 | export_dynamic_flag_spec='-Bexport' |
7771 | ;; |
7772 | |
7773 | sysv4*MP*) |
7774 | if test -d /usr/nec; then |
7775 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7776 | hardcode_shlibpath_var=no |
7777 | runpath_var=LD_RUN_PATH |
7778 | hardcode_runpath_var=yes |
7779 | ld_shlibs=yes |
7780 | fi |
7781 | ;; |
7782 | |
7783 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
7784 | no_undefined_flag='${wl}-z,text' |
7785 | archive_cmds_need_lc=no |
7786 | hardcode_shlibpath_var=no |
7787 | runpath_var='LD_RUN_PATH' |
7788 | |
7789 | if test "$GCC" = yes; then |
7790 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7791 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7792 | else |
7793 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7794 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7795 | fi |
7796 | ;; |
7797 | |
7798 | sysv5* | sco3.2v5* | sco5v6*) |
7799 | # Note: We can NOT use -z defs as we might desire, because we do not |
7800 | # link with -lc, and that would cause any symbols used from libc to |
7801 | # always be unresolved, which means just about no library would |
7802 | # ever link correctly. If we're not using GNU ld we use -z text |
7803 | # though, which does catch some bad symbols but isn't as heavy-handed |
7804 | # as -z defs. |
7805 | no_undefined_flag='${wl}-z,text' |
7806 | allow_undefined_flag='${wl}-z,nodefs' |
7807 | archive_cmds_need_lc=no |
7808 | hardcode_shlibpath_var=no |
7809 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
7810 | hardcode_libdir_separator=':' |
7811 | link_all_deplibs=yes |
7812 | export_dynamic_flag_spec='${wl}-Bexport' |
7813 | runpath_var='LD_RUN_PATH' |
7814 | |
7815 | if test "$GCC" = yes; then |
7816 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7817 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7818 | else |
7819 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7820 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7821 | fi |
7822 | ;; |
7823 | |
7824 | uts4*) |
7825 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7826 | hardcode_libdir_flag_spec='-L$libdir' |
7827 | hardcode_shlibpath_var=no |
7828 | ;; |
7829 | |
7830 | *) |
7831 | ld_shlibs=no |
7832 | ;; |
7833 | esac |
7834 | fi |
7835 | |
7836 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
7837 | echo "${ECHO_T}$ld_shlibs" >&6 |
7838 | test "$ld_shlibs" = no && can_build_shared=no |
7839 | |
7840 | # |
7841 | # Do we need to explicitly link libc? |
7842 | # |
7843 | case "x$archive_cmds_need_lc" in |
7844 | x|xyes) |
7845 | # Assume -lc should be added |
7846 | archive_cmds_need_lc=yes |
7847 | |
7848 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
7849 | case $archive_cmds in |
7850 | *'~'*) |
7851 | # FIXME: we may have to deal with multi-command sequences. |
7852 | ;; |
7853 | '$CC '*) |
7854 | # Test whether the compiler implicitly links with -lc since on some |
7855 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
7856 | # to ld, don't add -lc before -lgcc. |
7857 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
7858 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
7859 | $rm conftest* |
7860 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7861 | |
7862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7863 | (eval $ac_compile) 2>&5 |
7864 | ac_status=$? |
7865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7866 | (exit $ac_status); } 2>conftest.err; then |
7867 | soname=conftest |
7868 | lib=conftest |
7869 | libobjs=conftest.$ac_objext |
7870 | deplibs= |
7871 | wl=$lt_prog_compiler_wl |
7872 | pic_flag=$lt_prog_compiler_pic |
7873 | compiler_flags=-v |
7874 | linker_flags=-v |
7875 | verstring= |
7876 | output_objdir=. |
7877 | libname=conftest |
7878 | lt_save_allow_undefined_flag=$allow_undefined_flag |
7879 | allow_undefined_flag= |
7880 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
7881 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
7882 | ac_status=$? |
7883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7884 | (exit $ac_status); } |
7885 | then |
7886 | archive_cmds_need_lc=no |
7887 | else |
7888 | archive_cmds_need_lc=yes |
7889 | fi |
7890 | allow_undefined_flag=$lt_save_allow_undefined_flag |
7891 | else |
7892 | cat conftest.err 1>&5 |
7893 | fi |
7894 | $rm conftest* |
7895 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
7896 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
7897 | ;; |
7898 | esac |
7899 | fi |
7900 | ;; |
7901 | esac |
7902 | |
7903 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
7904 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
7905 | library_names_spec= |
7906 | libname_spec='lib$name' |
7907 | soname_spec= |
7908 | shrext_cmds=".so" |
7909 | postinstall_cmds= |
7910 | postuninstall_cmds= |
7911 | finish_cmds= |
7912 | finish_eval= |
7913 | shlibpath_var= |
7914 | shlibpath_overrides_runpath=unknown |
7915 | version_type=none |
7916 | dynamic_linker="$host_os ld.so" |
7917 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
7918 | if test "$GCC" = yes; then |
7919 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
7920 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
7921 | # if the path contains ";" then we assume it to be the separator |
7922 | # otherwise default to the standard path separator (i.e. ":") - it is |
7923 | # assumed that no part of a normal pathname contains ";" but that should |
7924 | # okay in the real world where ";" in dirpaths is itself problematic. |
7925 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
7926 | else |
7927 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
7928 | fi |
7929 | else |
7930 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
7931 | fi |
7932 | need_lib_prefix=unknown |
7933 | hardcode_into_libs=no |
7934 | |
7935 | # when you set need_version to no, make sure it does not cause -set_version |
7936 | # flags to be left without arguments |
7937 | need_version=unknown |
7938 | |
7939 | case $host_os in |
7940 | aix3*) |
7941 | version_type=linux |
7942 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
7943 | shlibpath_var=LIBPATH |
7944 | |
7945 | # AIX 3 has no versioning support, so we append a major version to the name. |
7946 | soname_spec='${libname}${release}${shared_ext}$major' |
7947 | ;; |
7948 | |
7949 | aix4* | aix5*) |
7950 | version_type=linux |
7951 | need_lib_prefix=no |
7952 | need_version=no |
7953 | hardcode_into_libs=yes |
7954 | if test "$host_cpu" = ia64; then |
7955 | # AIX 5 supports IA64 |
7956 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
7957 | shlibpath_var=LD_LIBRARY_PATH |
7958 | else |
7959 | # With GCC up to 2.95.x, collect2 would create an import file |
7960 | # for dependence libraries. The import file would start with |
7961 | # the line `#! .'. This would cause the generated library to |
7962 | # depend on `.', always an invalid library. This was fixed in |
7963 | # development snapshots of GCC prior to 3.0. |
7964 | case $host_os in |
7965 | aix4 | aix4.[01] | aix4.[01].*) |
7966 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
7967 | echo ' yes ' |
7968 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
7969 | : |
7970 | else |
7971 | can_build_shared=no |
7972 | fi |
7973 | ;; |
7974 | esac |
7975 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
7976 | # soname into executable. Probably we can add versioning support to |
7977 | # collect2, so additional links can be useful in future. |
7978 | if test "$aix_use_runtimelinking" = yes; then |
7979 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
7980 | # instead of lib<name>.a to let people know that these are not |
7981 | # typical AIX shared libraries. |
7982 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
7983 | else |
7984 | # We preserve .a as extension for shared libraries through AIX4.2 |
7985 | # and later when we are not doing run time linking. |
7986 | library_names_spec='${libname}${release}.a $libname.a' |
7987 | soname_spec='${libname}${release}${shared_ext}$major' |
7988 | fi |
7989 | shlibpath_var=LIBPATH |
7990 | fi |
7991 | ;; |
7992 | |
7993 | amigaos*) |
7994 | library_names_spec='$libname.ixlibrary $libname.a' |
7995 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
7996 | 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' |
7997 | ;; |
7998 | |
7999 | beos*) |
8000 | library_names_spec='${libname}${shared_ext}' |
8001 | dynamic_linker="$host_os ld.so" |
8002 | shlibpath_var=LIBRARY_PATH |
8003 | ;; |
8004 | |
8005 | bsdi[45]*) |
8006 | version_type=linux |
8007 | need_version=no |
8008 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8009 | soname_spec='${libname}${release}${shared_ext}$major' |
8010 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
8011 | shlibpath_var=LD_LIBRARY_PATH |
8012 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
8013 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
8014 | # the default ld.so.conf also contains /usr/contrib/lib and |
8015 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
8016 | # libtool to hard-code these into programs |
8017 | ;; |
8018 | |
8019 | cygwin* | mingw* | pw32*) |
8020 | version_type=windows |
8021 | shrext_cmds=".dll" |
8022 | need_version=no |
8023 | need_lib_prefix=no |
8024 | |
8025 | case $GCC,$host_os in |
8026 | yes,cygwin* | yes,mingw* | yes,pw32*) |
8027 | library_names_spec='$libname.dll.a' |
8028 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
8029 | postinstall_cmds='base_file=`basename \${file}`~ |
8030 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
8031 | dldir=$destdir/`dirname \$dlpath`~ |
8032 | test -d \$dldir || mkdir -p \$dldir~ |
8033 | $install_prog $dir/$dlname \$dldir/$dlname~ |
8034 | chmod a+x \$dldir/$dlname' |
8035 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
8036 | dlpath=$dir/\$dldll~ |
8037 | $rm \$dlpath' |
8038 | shlibpath_overrides_runpath=yes |
8039 | |
8040 | case $host_os in |
8041 | cygwin*) |
8042 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
8043 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8044 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
8045 | ;; |
8046 | mingw*) |
8047 | # MinGW DLLs use traditional 'lib' prefix |
8048 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8049 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8050 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
8051 | # It is most probably a Windows format PATH printed by |
8052 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
8053 | # path with ; separators, and with drive letters. We can handle the |
8054 | # drive letters (cygwin fileutils understands them), so leave them, |
8055 | # especially as we might pass files found there to a mingw objdump, |
8056 | # which wouldn't understand a cygwinified path. Ahh. |
8057 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
8058 | else |
8059 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8060 | fi |
8061 | ;; |
8062 | pw32*) |
8063 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
8064 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8065 | ;; |
8066 | esac |
8067 | ;; |
8068 | |
8069 | *) |
8070 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
8071 | ;; |
8072 | esac |
8073 | dynamic_linker='Win32 ld.exe' |
8074 | # FIXME: first we should search . and the directory the executable is in |
8075 | shlibpath_var=PATH |
8076 | ;; |
8077 | |
8078 | darwin* | rhapsody*) |
8079 | dynamic_linker="$host_os dyld" |
8080 | version_type=darwin |
8081 | need_lib_prefix=no |
8082 | need_version=no |
8083 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
8084 | soname_spec='${libname}${release}${major}$shared_ext' |
8085 | shlibpath_overrides_runpath=yes |
8086 | shlibpath_var=DYLD_LIBRARY_PATH |
8087 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
8088 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
8089 | if test "$GCC" = yes; then |
8090 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
8091 | else |
8092 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
8093 | fi |
8094 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
8095 | ;; |
8096 | |
8097 | dgux*) |
8098 | version_type=linux |
8099 | need_lib_prefix=no |
8100 | need_version=no |
8101 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
8102 | soname_spec='${libname}${release}${shared_ext}$major' |
8103 | shlibpath_var=LD_LIBRARY_PATH |
8104 | ;; |
8105 | |
8106 | freebsd1*) |
8107 | dynamic_linker=no |
8108 | ;; |
8109 | |
8110 | kfreebsd*-gnu) |
8111 | version_type=linux |
8112 | need_lib_prefix=no |
8113 | need_version=no |
8114 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8115 | soname_spec='${libname}${release}${shared_ext}$major' |
8116 | shlibpath_var=LD_LIBRARY_PATH |
8117 | shlibpath_overrides_runpath=no |
8118 | hardcode_into_libs=yes |
8119 | dynamic_linker='GNU ld.so' |
8120 | ;; |
8121 | |
8122 | freebsd* | dragonfly*) |
8123 | # DragonFly does not have aout. When/if they implement a new |
8124 | # versioning mechanism, adjust this. |
8125 | if test -x /usr/bin/objformat; then |
8126 | objformat=`/usr/bin/objformat` |
8127 | else |
8128 | case $host_os in |
8129 | freebsd[123]*) objformat=aout ;; |
8130 | *) objformat=elf ;; |
8131 | esac |
8132 | fi |
8133 | version_type=freebsd-$objformat |
8134 | case $version_type in |
8135 | freebsd-elf*) |
8136 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
8137 | need_version=no |
8138 | need_lib_prefix=no |
8139 | ;; |
8140 | freebsd-*) |
8141 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
8142 | need_version=yes |
8143 | ;; |
8144 | esac |
8145 | shlibpath_var=LD_LIBRARY_PATH |
8146 | case $host_os in |
8147 | freebsd2*) |
8148 | shlibpath_overrides_runpath=yes |
8149 | ;; |
8150 | freebsd3.[01]* | freebsdelf3.[01]*) |
8151 | shlibpath_overrides_runpath=yes |
8152 | hardcode_into_libs=yes |
8153 | ;; |
8154 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
8155 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
8156 | shlibpath_overrides_runpath=no |
8157 | hardcode_into_libs=yes |
8158 | ;; |
8159 | freebsd*) # from 4.6 on |
8160 | shlibpath_overrides_runpath=yes |
8161 | hardcode_into_libs=yes |
8162 | ;; |
8163 | esac |
8164 | ;; |
8165 | |
8166 | gnu*) |
8167 | version_type=linux |
8168 | need_lib_prefix=no |
8169 | need_version=no |
8170 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
8171 | soname_spec='${libname}${release}${shared_ext}$major' |
8172 | shlibpath_var=LD_LIBRARY_PATH |
8173 | hardcode_into_libs=yes |
8174 | ;; |
8175 | |
8176 | hpux9* | hpux10* | hpux11*) |
8177 | # Give a soname corresponding to the major version so that dld.sl refuses to |
8178 | # link against other versions. |
8179 | version_type=sunos |
8180 | need_lib_prefix=no |
8181 | need_version=no |
8182 | case $host_cpu in |
8183 | ia64*) |
8184 | shrext_cmds='.so' |
8185 | hardcode_into_libs=yes |
8186 | dynamic_linker="$host_os dld.so" |
8187 | shlibpath_var=LD_LIBRARY_PATH |
8188 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8189 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8190 | soname_spec='${libname}${release}${shared_ext}$major' |
8191 | if test "X$HPUX_IA64_MODE" = X32; then |
8192 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
8193 | else |
8194 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
8195 | fi |
8196 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8197 | ;; |
8198 | hppa*64*) |
8199 | shrext_cmds='.sl' |
8200 | hardcode_into_libs=yes |
8201 | dynamic_linker="$host_os dld.sl" |
8202 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
8203 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8204 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8205 | soname_spec='${libname}${release}${shared_ext}$major' |
8206 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
8207 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8208 | ;; |
8209 | *) |
8210 | shrext_cmds='.sl' |
8211 | dynamic_linker="$host_os dld.sl" |
8212 | shlibpath_var=SHLIB_PATH |
8213 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
8214 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8215 | soname_spec='${libname}${release}${shared_ext}$major' |
8216 | ;; |
8217 | esac |
8218 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
8219 | postinstall_cmds='chmod 555 $lib' |
8220 | ;; |
8221 | |
8222 | interix3*) |
8223 | version_type=linux |
8224 | need_lib_prefix=no |
8225 | need_version=no |
8226 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8227 | soname_spec='${libname}${release}${shared_ext}$major' |
8228 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
8229 | shlibpath_var=LD_LIBRARY_PATH |
8230 | shlibpath_overrides_runpath=no |
8231 | hardcode_into_libs=yes |
8232 | ;; |
8233 | |
8234 | irix5* | irix6* | nonstopux*) |
8235 | case $host_os in |
8236 | nonstopux*) version_type=nonstopux ;; |
8237 | *) |
8238 | if test "$lt_cv_prog_gnu_ld" = yes; then |
8239 | version_type=linux |
8240 | else |
8241 | version_type=irix |
8242 | fi ;; |
8243 | esac |
8244 | need_lib_prefix=no |
8245 | need_version=no |
8246 | soname_spec='${libname}${release}${shared_ext}$major' |
8247 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
8248 | case $host_os in |
8249 | irix5* | nonstopux*) |
8250 | libsuff= shlibsuff= |
8251 | ;; |
8252 | *) |
8253 | case $LD in # libtool.m4 will add one of these switches to LD |
8254 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
8255 | libsuff= shlibsuff= libmagic=32-bit;; |
8256 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
8257 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
8258 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
8259 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
8260 | *) libsuff= shlibsuff= libmagic=never-match;; |
8261 | esac |
8262 | ;; |
8263 | esac |
8264 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
8265 | shlibpath_overrides_runpath=no |
8266 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
8267 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
8268 | hardcode_into_libs=yes |
8269 | ;; |
8270 | |
8271 | # No shared lib support for Linux oldld, aout, or coff. |
8272 | linux*oldld* | linux*aout* | linux*coff*) |
8273 | dynamic_linker=no |
8274 | ;; |
8275 | |
8276 | # This must be Linux ELF. |
8277 | linux*) |
8278 | version_type=linux |
8279 | need_lib_prefix=no |
8280 | need_version=no |
8281 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8282 | soname_spec='${libname}${release}${shared_ext}$major' |
8283 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
8284 | shlibpath_var=LD_LIBRARY_PATH |
8285 | shlibpath_overrides_runpath=no |
8286 | # This implies no fast_install, which is unacceptable. |
8287 | # Some rework will be needed to allow for fast_install |
8288 | # before this can be enabled. |
8289 | hardcode_into_libs=yes |
8290 | |
8291 | # find out which ABI we are using |
8292 | libsuff= |
8293 | case "$host_cpu" in |
8294 | x86_64*|s390x*|powerpc64*) |
8295 | echo '#line 8295 "configure"' > conftest.$ac_ext |
8296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8297 | (eval $ac_compile) 2>&5 |
8298 | ac_status=$? |
8299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8300 | (exit $ac_status); }; then |
8301 | case `/usr/bin/file conftest.$ac_objext` in |
8302 | *64-bit*) |
8303 | libsuff=64 |
8304 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
8305 | ;; |
8306 | esac |
8307 | fi |
8308 | rm -rf conftest* |
8309 | ;; |
8310 | esac |
8311 | |
8312 | # Append ld.so.conf contents to the search path |
8313 | if test -f /etc/ld.so.conf; then |
8314 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
8315 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
8316 | fi |
8317 | |
8318 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
8319 | # powerpc, because MkLinux only supported shared libraries with the |
8320 | # GNU dynamic linker. Since this was broken with cross compilers, |
8321 | # most powerpc-linux boxes support dynamic linking these days and |
8322 | # people can always --disable-shared, the test was removed, and we |
8323 | # assume the GNU/Linux dynamic linker is in use. |
8324 | dynamic_linker='GNU/Linux ld.so' |
8325 | ;; |
8326 | |
8327 | knetbsd*-gnu) |
8328 | version_type=linux |
8329 | need_lib_prefix=no |
8330 | need_version=no |
8331 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8332 | soname_spec='${libname}${release}${shared_ext}$major' |
8333 | shlibpath_var=LD_LIBRARY_PATH |
8334 | shlibpath_overrides_runpath=no |
8335 | hardcode_into_libs=yes |
8336 | dynamic_linker='GNU ld.so' |
8337 | ;; |
8338 | |
8339 | netbsd*) |
8340 | version_type=sunos |
8341 | need_lib_prefix=no |
8342 | need_version=no |
8343 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8344 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8345 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
8346 | dynamic_linker='NetBSD (a.out) ld.so' |
8347 | else |
8348 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8349 | soname_spec='${libname}${release}${shared_ext}$major' |
8350 | dynamic_linker='NetBSD ld.elf_so' |
8351 | fi |
8352 | shlibpath_var=LD_LIBRARY_PATH |
8353 | shlibpath_overrides_runpath=yes |
8354 | hardcode_into_libs=yes |
8355 | ;; |
8356 | |
8357 | newsos6) |
8358 | version_type=linux |
8359 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8360 | shlibpath_var=LD_LIBRARY_PATH |
8361 | shlibpath_overrides_runpath=yes |
8362 | ;; |
8363 | |
8364 | nto-qnx*) |
8365 | version_type=linux |
8366 | need_lib_prefix=no |
8367 | need_version=no |
8368 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8369 | soname_spec='${libname}${release}${shared_ext}$major' |
8370 | shlibpath_var=LD_LIBRARY_PATH |
8371 | shlibpath_overrides_runpath=yes |
8372 | ;; |
8373 | |
8374 | openbsd*) |
8375 | version_type=sunos |
8376 | sys_lib_dlsearch_path_spec="/usr/lib" |
8377 | need_lib_prefix=no |
8378 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
8379 | case $host_os in |
8380 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
8381 | *) need_version=no ;; |
8382 | esac |
8383 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8384 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
8385 | shlibpath_var=LD_LIBRARY_PATH |
8386 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
8387 | case $host_os in |
8388 | openbsd2.[89] | openbsd2.[89].*) |
8389 | shlibpath_overrides_runpath=no |
8390 | ;; |
8391 | *) |
8392 | shlibpath_overrides_runpath=yes |
8393 | ;; |
8394 | esac |
8395 | else |
8396 | shlibpath_overrides_runpath=yes |
8397 | fi |
8398 | ;; |
8399 | |
8400 | os2*) |
8401 | libname_spec='$name' |
8402 | shrext_cmds=".dll" |
8403 | need_lib_prefix=no |
8404 | library_names_spec='$libname${shared_ext} $libname.a' |
8405 | dynamic_linker='OS/2 ld.exe' |
8406 | shlibpath_var=LIBPATH |
8407 | ;; |
8408 | |
8409 | osf3* | osf4* | osf5*) |
8410 | version_type=osf |
8411 | need_lib_prefix=no |
8412 | need_version=no |
8413 | soname_spec='${libname}${release}${shared_ext}$major' |
8414 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8415 | shlibpath_var=LD_LIBRARY_PATH |
8416 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
8417 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
8418 | ;; |
8419 | |
8420 | solaris*) |
8421 | version_type=linux |
8422 | need_lib_prefix=no |
8423 | need_version=no |
8424 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8425 | soname_spec='${libname}${release}${shared_ext}$major' |
8426 | shlibpath_var=LD_LIBRARY_PATH |
8427 | shlibpath_overrides_runpath=yes |
8428 | hardcode_into_libs=yes |
8429 | # ldd complains unless libraries are executable |
8430 | postinstall_cmds='chmod +x $lib' |
8431 | ;; |
8432 | |
8433 | sunos4*) |
8434 | version_type=sunos |
8435 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8436 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
8437 | shlibpath_var=LD_LIBRARY_PATH |
8438 | shlibpath_overrides_runpath=yes |
8439 | if test "$with_gnu_ld" = yes; then |
8440 | need_lib_prefix=no |
8441 | fi |
8442 | need_version=yes |
8443 | ;; |
8444 | |
8445 | sysv4 | sysv4.3*) |
8446 | version_type=linux |
8447 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8448 | soname_spec='${libname}${release}${shared_ext}$major' |
8449 | shlibpath_var=LD_LIBRARY_PATH |
8450 | case $host_vendor in |
8451 | sni) |
8452 | shlibpath_overrides_runpath=no |
8453 | need_lib_prefix=no |
8454 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
8455 | runpath_var=LD_RUN_PATH |
8456 | ;; |
8457 | siemens) |
8458 | need_lib_prefix=no |
8459 | ;; |
8460 | motorola) |
8461 | need_lib_prefix=no |
8462 | need_version=no |
8463 | shlibpath_overrides_runpath=no |
8464 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
8465 | ;; |
8466 | esac |
8467 | ;; |
8468 | |
8469 | sysv4*MP*) |
8470 | if test -d /usr/nec ;then |
8471 | version_type=linux |
8472 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
8473 | soname_spec='$libname${shared_ext}.$major' |
8474 | shlibpath_var=LD_LIBRARY_PATH |
8475 | fi |
8476 | ;; |
8477 | |
8478 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
8479 | version_type=freebsd-elf |
8480 | need_lib_prefix=no |
8481 | need_version=no |
8482 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
8483 | soname_spec='${libname}${release}${shared_ext}$major' |
8484 | shlibpath_var=LD_LIBRARY_PATH |
8485 | hardcode_into_libs=yes |
8486 | if test "$with_gnu_ld" = yes; then |
8487 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
8488 | shlibpath_overrides_runpath=no |
8489 | else |
8490 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
8491 | shlibpath_overrides_runpath=yes |
8492 | case $host_os in |
8493 | sco3.2v5*) |
8494 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
8495 | ;; |
8496 | esac |
8497 | fi |
8498 | sys_lib_dlsearch_path_spec='/usr/lib' |
8499 | ;; |
8500 | |
8501 | uts4*) |
8502 | version_type=linux |
8503 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8504 | soname_spec='${libname}${release}${shared_ext}$major' |
8505 | shlibpath_var=LD_LIBRARY_PATH |
8506 | ;; |
8507 | |
8508 | *) |
8509 | dynamic_linker=no |
8510 | ;; |
8511 | esac |
8512 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
8513 | echo "${ECHO_T}$dynamic_linker" >&6 |
8514 | test "$dynamic_linker" = no && can_build_shared=no |
8515 | |
8516 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
8517 | if test "$GCC" = yes; then |
8518 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
8519 | fi |
8520 | |
8521 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
8522 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
8523 | hardcode_action= |
8524 | if test -n "$hardcode_libdir_flag_spec" || \ |
8525 | test -n "$runpath_var" || \ |
8526 | test "X$hardcode_automatic" = "Xyes" ; then |
8527 | |
8528 | # We can hardcode non-existant directories. |
8529 | if test "$hardcode_direct" != no && |
8530 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
8531 | # have to relink, otherwise we might link with an installed library |
8532 | # when we should be linking with a yet-to-be-installed one |
8533 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
8534 | test "$hardcode_minus_L" != no; then |
8535 | # Linking always hardcodes the temporary library directory. |
8536 | hardcode_action=relink |
8537 | else |
8538 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
8539 | hardcode_action=immediate |
8540 | fi |
8541 | else |
8542 | # We cannot hardcode anything, or else we can only hardcode existing |
8543 | # directories. |
8544 | hardcode_action=unsupported |
8545 | fi |
8546 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
8547 | echo "${ECHO_T}$hardcode_action" >&6 |
8548 | |
8549 | if test "$hardcode_action" = relink; then |
8550 | # Fast installation is not supported |
8551 | enable_fast_install=no |
8552 | elif test "$shlibpath_overrides_runpath" = yes || |
8553 | test "$enable_shared" = no; then |
8554 | # Fast installation is not necessary |
8555 | enable_fast_install=needless |
8556 | fi |
8557 | |
8558 | striplib= |
8559 | old_striplib= |
8560 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
8561 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
8562 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
8563 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
8564 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
8565 | echo "$as_me:$LINENO: result: yes" >&5 |
8566 | echo "${ECHO_T}yes" >&6 |
8567 | else |
8568 | # FIXME - insert some real tests, host_os isn't really good enough |
8569 | case $host_os in |
8570 | darwin*) |
8571 | if test -n "$STRIP" ; then |
8572 | striplib="$STRIP -x" |
8573 | echo "$as_me:$LINENO: result: yes" >&5 |
8574 | echo "${ECHO_T}yes" >&6 |
8575 | else |
8576 | echo "$as_me:$LINENO: result: no" >&5 |
8577 | echo "${ECHO_T}no" >&6 |
8578 | fi |
8579 | ;; |
8580 | *) |
8581 | echo "$as_me:$LINENO: result: no" >&5 |
8582 | echo "${ECHO_T}no" >&6 |
8583 | ;; |
8584 | esac |
8585 | fi |
8586 | |
8587 | if test "x$enable_dlopen" != xyes; then |
8588 | enable_dlopen=unknown |
8589 | enable_dlopen_self=unknown |
8590 | enable_dlopen_self_static=unknown |
8591 | else |
8592 | lt_cv_dlopen=no |
8593 | lt_cv_dlopen_libs= |
8594 | |
8595 | case $host_os in |
8596 | beos*) |
8597 | lt_cv_dlopen="load_add_on" |
8598 | lt_cv_dlopen_libs= |
8599 | lt_cv_dlopen_self=yes |
8600 | ;; |
8601 | |
8602 | mingw* | pw32*) |
8603 | lt_cv_dlopen="LoadLibrary" |
8604 | lt_cv_dlopen_libs= |
8605 | ;; |
8606 | |
8607 | cygwin*) |
8608 | lt_cv_dlopen="dlopen" |
8609 | lt_cv_dlopen_libs= |
8610 | ;; |
8611 | |
8612 | darwin*) |
8613 | # if libdl is installed we need to link against it |
8614 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
8615 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
8616 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
8617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8618 | else |
8619 | ac_check_lib_save_LIBS=$LIBS |
8620 | LIBS="-ldl $LIBS" |
8621 | cat >conftest.$ac_ext <<_ACEOF |
8622 | /* confdefs.h. */ |
8623 | _ACEOF |
8624 | cat confdefs.h >>conftest.$ac_ext |
8625 | cat >>conftest.$ac_ext <<_ACEOF |
8626 | /* end confdefs.h. */ |
8627 | |
8628 | /* Override any gcc2 internal prototype to avoid an error. */ |
8629 | #ifdef __cplusplus |
8630 | extern "C" |
8631 | #endif |
8632 | /* We use char because int might match the return type of a gcc2 |
8633 | builtin and then its argument prototype would still apply. */ |
8634 | char dlopen (); |
8635 | int |
8636 | main () |
8637 | { |
8638 | dlopen (); |
8639 | ; |
8640 | return 0; |
8641 | } |
8642 | _ACEOF |
8643 | rm -f conftest.$ac_objext conftest$ac_exeext |
8644 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8645 | (eval $ac_link) 2>conftest.er1 |
8646 | ac_status=$? |
8647 | grep -v '^ *+' conftest.er1 >conftest.err |
8648 | rm -f conftest.er1 |
8649 | cat conftest.err >&5 |
8650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8651 | (exit $ac_status); } && |
8652 | { ac_try='test -z "$ac_c_werror_flag" |
8653 | || test ! -s conftest.err' |
8654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8655 | (eval $ac_try) 2>&5 |
8656 | ac_status=$? |
8657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8658 | (exit $ac_status); }; } && |
8659 | { ac_try='test -s conftest$ac_exeext' |
8660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8661 | (eval $ac_try) 2>&5 |
8662 | ac_status=$? |
8663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8664 | (exit $ac_status); }; }; then |
8665 | ac_cv_lib_dl_dlopen=yes |
8666 | else |
8667 | echo "$as_me: failed program was:" >&5 |
8668 | sed 's/^/| /' conftest.$ac_ext >&5 |
8669 | |
8670 | ac_cv_lib_dl_dlopen=no |
8671 | fi |
8672 | rm -f conftest.err conftest.$ac_objext \ |
8673 | conftest$ac_exeext conftest.$ac_ext |
8674 | LIBS=$ac_check_lib_save_LIBS |
8675 | fi |
8676 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
8677 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
8678 | if test $ac_cv_lib_dl_dlopen = yes; then |
8679 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
8680 | else |
8681 | |
8682 | lt_cv_dlopen="dyld" |
8683 | lt_cv_dlopen_libs= |
8684 | lt_cv_dlopen_self=yes |
8685 | |
8686 | fi |
8687 | |
8688 | ;; |
8689 | |
8690 | *) |
8691 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
8692 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
8693 | if test "${ac_cv_func_shl_load+set}" = set; then |
8694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8695 | else |
8696 | cat >conftest.$ac_ext <<_ACEOF |
8697 | /* confdefs.h. */ |
8698 | _ACEOF |
8699 | cat confdefs.h >>conftest.$ac_ext |
8700 | cat >>conftest.$ac_ext <<_ACEOF |
8701 | /* end confdefs.h. */ |
8702 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
8703 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8704 | #define shl_load innocuous_shl_load |
8705 | |
8706 | /* System header to define __stub macros and hopefully few prototypes, |
8707 | which can conflict with char shl_load (); below. |
8708 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8709 | <limits.h> exists even on freestanding compilers. */ |
8710 | |
8711 | #ifdef __STDC__ |
8712 | # include <limits.h> |
8713 | #else |
8714 | # include <assert.h> |
8715 | #endif |
8716 | |
8717 | #undef shl_load |
8718 | |
8719 | /* Override any gcc2 internal prototype to avoid an error. */ |
8720 | #ifdef __cplusplus |
8721 | extern "C" |
8722 | { |
8723 | #endif |
8724 | /* We use char because int might match the return type of a gcc2 |
8725 | builtin and then its argument prototype would still apply. */ |
8726 | char shl_load (); |
8727 | /* The GNU C library defines this for functions which it implements |
8728 | to always fail with ENOSYS. Some functions are actually named |
8729 | something starting with __ and the normal name is an alias. */ |
8730 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
8731 | choke me |
8732 | #else |
8733 | char (*f) () = shl_load; |
8734 | #endif |
8735 | #ifdef __cplusplus |
8736 | } |
8737 | #endif |
8738 | |
8739 | int |
8740 | main () |
8741 | { |
8742 | return f != shl_load; |
8743 | ; |
8744 | return 0; |
8745 | } |
8746 | _ACEOF |
8747 | rm -f conftest.$ac_objext conftest$ac_exeext |
8748 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8749 | (eval $ac_link) 2>conftest.er1 |
8750 | ac_status=$? |
8751 | grep -v '^ *+' conftest.er1 >conftest.err |
8752 | rm -f conftest.er1 |
8753 | cat conftest.err >&5 |
8754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8755 | (exit $ac_status); } && |
8756 | { ac_try='test -z "$ac_c_werror_flag" |
8757 | || test ! -s conftest.err' |
8758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8759 | (eval $ac_try) 2>&5 |
8760 | ac_status=$? |
8761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8762 | (exit $ac_status); }; } && |
8763 | { ac_try='test -s conftest$ac_exeext' |
8764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8765 | (eval $ac_try) 2>&5 |
8766 | ac_status=$? |
8767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8768 | (exit $ac_status); }; }; then |
8769 | ac_cv_func_shl_load=yes |
8770 | else |
8771 | echo "$as_me: failed program was:" >&5 |
8772 | sed 's/^/| /' conftest.$ac_ext >&5 |
8773 | |
8774 | ac_cv_func_shl_load=no |
8775 | fi |
8776 | rm -f conftest.err conftest.$ac_objext \ |
8777 | conftest$ac_exeext conftest.$ac_ext |
8778 | fi |
8779 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
8780 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
8781 | if test $ac_cv_func_shl_load = yes; then |
8782 | lt_cv_dlopen="shl_load" |
8783 | else |
8784 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
8785 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
8786 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
8787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8788 | else |
8789 | ac_check_lib_save_LIBS=$LIBS |
8790 | LIBS="-ldld $LIBS" |
8791 | cat >conftest.$ac_ext <<_ACEOF |
8792 | /* confdefs.h. */ |
8793 | _ACEOF |
8794 | cat confdefs.h >>conftest.$ac_ext |
8795 | cat >>conftest.$ac_ext <<_ACEOF |
8796 | /* end confdefs.h. */ |
8797 | |
8798 | /* Override any gcc2 internal prototype to avoid an error. */ |
8799 | #ifdef __cplusplus |
8800 | extern "C" |
8801 | #endif |
8802 | /* We use char because int might match the return type of a gcc2 |
8803 | builtin and then its argument prototype would still apply. */ |
8804 | char shl_load (); |
8805 | int |
8806 | main () |
8807 | { |
8808 | shl_load (); |
8809 | ; |
8810 | return 0; |
8811 | } |
8812 | _ACEOF |
8813 | rm -f conftest.$ac_objext conftest$ac_exeext |
8814 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8815 | (eval $ac_link) 2>conftest.er1 |
8816 | ac_status=$? |
8817 | grep -v '^ *+' conftest.er1 >conftest.err |
8818 | rm -f conftest.er1 |
8819 | cat conftest.err >&5 |
8820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8821 | (exit $ac_status); } && |
8822 | { ac_try='test -z "$ac_c_werror_flag" |
8823 | || test ! -s conftest.err' |
8824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8825 | (eval $ac_try) 2>&5 |
8826 | ac_status=$? |
8827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8828 | (exit $ac_status); }; } && |
8829 | { ac_try='test -s conftest$ac_exeext' |
8830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8831 | (eval $ac_try) 2>&5 |
8832 | ac_status=$? |
8833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8834 | (exit $ac_status); }; }; then |
8835 | ac_cv_lib_dld_shl_load=yes |
8836 | else |
8837 | echo "$as_me: failed program was:" >&5 |
8838 | sed 's/^/| /' conftest.$ac_ext >&5 |
8839 | |
8840 | ac_cv_lib_dld_shl_load=no |
8841 | fi |
8842 | rm -f conftest.err conftest.$ac_objext \ |
8843 | conftest$ac_exeext conftest.$ac_ext |
8844 | LIBS=$ac_check_lib_save_LIBS |
8845 | fi |
8846 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
8847 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
8848 | if test $ac_cv_lib_dld_shl_load = yes; then |
8849 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
8850 | else |
8851 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
8852 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
8853 | if test "${ac_cv_func_dlopen+set}" = set; then |
8854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8855 | else |
8856 | cat >conftest.$ac_ext <<_ACEOF |
8857 | /* confdefs.h. */ |
8858 | _ACEOF |
8859 | cat confdefs.h >>conftest.$ac_ext |
8860 | cat >>conftest.$ac_ext <<_ACEOF |
8861 | /* end confdefs.h. */ |
8862 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
8863 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8864 | #define dlopen innocuous_dlopen |
8865 | |
8866 | /* System header to define __stub macros and hopefully few prototypes, |
8867 | which can conflict with char dlopen (); below. |
8868 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8869 | <limits.h> exists even on freestanding compilers. */ |
8870 | |
8871 | #ifdef __STDC__ |
8872 | # include <limits.h> |
8873 | #else |
8874 | # include <assert.h> |
8875 | #endif |
8876 | |
8877 | #undef dlopen |
8878 | |
8879 | /* Override any gcc2 internal prototype to avoid an error. */ |
8880 | #ifdef __cplusplus |
8881 | extern "C" |
8882 | { |
8883 | #endif |
8884 | /* We use char because int might match the return type of a gcc2 |
8885 | builtin and then its argument prototype would still apply. */ |
8886 | char dlopen (); |
8887 | /* The GNU C library defines this for functions which it implements |
8888 | to always fail with ENOSYS. Some functions are actually named |
8889 | something starting with __ and the normal name is an alias. */ |
8890 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
8891 | choke me |
8892 | #else |
8893 | char (*f) () = dlopen; |
8894 | #endif |
8895 | #ifdef __cplusplus |
8896 | } |
8897 | #endif |
8898 | |
8899 | int |
8900 | main () |
8901 | { |
8902 | return f != dlopen; |
8903 | ; |
8904 | return 0; |
8905 | } |
8906 | _ACEOF |
8907 | rm -f conftest.$ac_objext conftest$ac_exeext |
8908 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8909 | (eval $ac_link) 2>conftest.er1 |
8910 | ac_status=$? |
8911 | grep -v '^ *+' conftest.er1 >conftest.err |
8912 | rm -f conftest.er1 |
8913 | cat conftest.err >&5 |
8914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8915 | (exit $ac_status); } && |
8916 | { ac_try='test -z "$ac_c_werror_flag" |
8917 | || test ! -s conftest.err' |
8918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8919 | (eval $ac_try) 2>&5 |
8920 | ac_status=$? |
8921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8922 | (exit $ac_status); }; } && |
8923 | { ac_try='test -s conftest$ac_exeext' |
8924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8925 | (eval $ac_try) 2>&5 |
8926 | ac_status=$? |
8927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8928 | (exit $ac_status); }; }; then |
8929 | ac_cv_func_dlopen=yes |
8930 | else |
8931 | echo "$as_me: failed program was:" >&5 |
8932 | sed 's/^/| /' conftest.$ac_ext >&5 |
8933 | |
8934 | ac_cv_func_dlopen=no |
8935 | fi |
8936 | rm -f conftest.err conftest.$ac_objext \ |
8937 | conftest$ac_exeext conftest.$ac_ext |
8938 | fi |
8939 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
8940 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
8941 | if test $ac_cv_func_dlopen = yes; then |
8942 | lt_cv_dlopen="dlopen" |
8943 | else |
8944 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
8945 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
8946 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
8947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8948 | else |
8949 | ac_check_lib_save_LIBS=$LIBS |
8950 | LIBS="-ldl $LIBS" |
8951 | cat >conftest.$ac_ext <<_ACEOF |
8952 | /* confdefs.h. */ |
8953 | _ACEOF |
8954 | cat confdefs.h >>conftest.$ac_ext |
8955 | cat >>conftest.$ac_ext <<_ACEOF |
8956 | /* end confdefs.h. */ |
8957 | |
8958 | /* Override any gcc2 internal prototype to avoid an error. */ |
8959 | #ifdef __cplusplus |
8960 | extern "C" |
8961 | #endif |
8962 | /* We use char because int might match the return type of a gcc2 |
8963 | builtin and then its argument prototype would still apply. */ |
8964 | char dlopen (); |
8965 | int |
8966 | main () |
8967 | { |
8968 | dlopen (); |
8969 | ; |
8970 | return 0; |
8971 | } |
8972 | _ACEOF |
8973 | rm -f conftest.$ac_objext conftest$ac_exeext |
8974 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8975 | (eval $ac_link) 2>conftest.er1 |
8976 | ac_status=$? |
8977 | grep -v '^ *+' conftest.er1 >conftest.err |
8978 | rm -f conftest.er1 |
8979 | cat conftest.err >&5 |
8980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8981 | (exit $ac_status); } && |
8982 | { ac_try='test -z "$ac_c_werror_flag" |
8983 | || test ! -s conftest.err' |
8984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8985 | (eval $ac_try) 2>&5 |
8986 | ac_status=$? |
8987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8988 | (exit $ac_status); }; } && |
8989 | { ac_try='test -s conftest$ac_exeext' |
8990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8991 | (eval $ac_try) 2>&5 |
8992 | ac_status=$? |
8993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8994 | (exit $ac_status); }; }; then |
8995 | ac_cv_lib_dl_dlopen=yes |
8996 | else |
8997 | echo "$as_me: failed program was:" >&5 |
8998 | sed 's/^/| /' conftest.$ac_ext >&5 |
8999 | |
9000 | ac_cv_lib_dl_dlopen=no |
9001 | fi |
9002 | rm -f conftest.err conftest.$ac_objext \ |
9003 | conftest$ac_exeext conftest.$ac_ext |
9004 | LIBS=$ac_check_lib_save_LIBS |
9005 | fi |
9006 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9007 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
9008 | if test $ac_cv_lib_dl_dlopen = yes; then |
9009 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9010 | else |
9011 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
9012 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
9013 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
9014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9015 | else |
9016 | ac_check_lib_save_LIBS=$LIBS |
9017 | LIBS="-lsvld $LIBS" |
9018 | cat >conftest.$ac_ext <<_ACEOF |
9019 | /* confdefs.h. */ |
9020 | _ACEOF |
9021 | cat confdefs.h >>conftest.$ac_ext |
9022 | cat >>conftest.$ac_ext <<_ACEOF |
9023 | /* end confdefs.h. */ |
9024 | |
9025 | /* Override any gcc2 internal prototype to avoid an error. */ |
9026 | #ifdef __cplusplus |
9027 | extern "C" |
9028 | #endif |
9029 | /* We use char because int might match the return type of a gcc2 |
9030 | builtin and then its argument prototype would still apply. */ |
9031 | char dlopen (); |
9032 | int |
9033 | main () |
9034 | { |
9035 | dlopen (); |
9036 | ; |
9037 | return 0; |
9038 | } |
9039 | _ACEOF |
9040 | rm -f conftest.$ac_objext conftest$ac_exeext |
9041 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9042 | (eval $ac_link) 2>conftest.er1 |
9043 | ac_status=$? |
9044 | grep -v '^ *+' conftest.er1 >conftest.err |
9045 | rm -f conftest.er1 |
9046 | cat conftest.err >&5 |
9047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9048 | (exit $ac_status); } && |
9049 | { ac_try='test -z "$ac_c_werror_flag" |
9050 | || test ! -s conftest.err' |
9051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9052 | (eval $ac_try) 2>&5 |
9053 | ac_status=$? |
9054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9055 | (exit $ac_status); }; } && |
9056 | { ac_try='test -s conftest$ac_exeext' |
9057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9058 | (eval $ac_try) 2>&5 |
9059 | ac_status=$? |
9060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9061 | (exit $ac_status); }; }; then |
9062 | ac_cv_lib_svld_dlopen=yes |
9063 | else |
9064 | echo "$as_me: failed program was:" >&5 |
9065 | sed 's/^/| /' conftest.$ac_ext >&5 |
9066 | |
9067 | ac_cv_lib_svld_dlopen=no |
9068 | fi |
9069 | rm -f conftest.err conftest.$ac_objext \ |
9070 | conftest$ac_exeext conftest.$ac_ext |
9071 | LIBS=$ac_check_lib_save_LIBS |
9072 | fi |
9073 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
9074 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
9075 | if test $ac_cv_lib_svld_dlopen = yes; then |
9076 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
9077 | else |
9078 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
9079 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
9080 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
9081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9082 | else |
9083 | ac_check_lib_save_LIBS=$LIBS |
9084 | LIBS="-ldld $LIBS" |
9085 | cat >conftest.$ac_ext <<_ACEOF |
9086 | /* confdefs.h. */ |
9087 | _ACEOF |
9088 | cat confdefs.h >>conftest.$ac_ext |
9089 | cat >>conftest.$ac_ext <<_ACEOF |
9090 | /* end confdefs.h. */ |
9091 | |
9092 | /* Override any gcc2 internal prototype to avoid an error. */ |
9093 | #ifdef __cplusplus |
9094 | extern "C" |
9095 | #endif |
9096 | /* We use char because int might match the return type of a gcc2 |
9097 | builtin and then its argument prototype would still apply. */ |
9098 | char dld_link (); |
9099 | int |
9100 | main () |
9101 | { |
9102 | dld_link (); |
9103 | ; |
9104 | return 0; |
9105 | } |
9106 | _ACEOF |
9107 | rm -f conftest.$ac_objext conftest$ac_exeext |
9108 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9109 | (eval $ac_link) 2>conftest.er1 |
9110 | ac_status=$? |
9111 | grep -v '^ *+' conftest.er1 >conftest.err |
9112 | rm -f conftest.er1 |
9113 | cat conftest.err >&5 |
9114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9115 | (exit $ac_status); } && |
9116 | { ac_try='test -z "$ac_c_werror_flag" |
9117 | || test ! -s conftest.err' |
9118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9119 | (eval $ac_try) 2>&5 |
9120 | ac_status=$? |
9121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9122 | (exit $ac_status); }; } && |
9123 | { ac_try='test -s conftest$ac_exeext' |
9124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9125 | (eval $ac_try) 2>&5 |
9126 | ac_status=$? |
9127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9128 | (exit $ac_status); }; }; then |
9129 | ac_cv_lib_dld_dld_link=yes |
9130 | else |
9131 | echo "$as_me: failed program was:" >&5 |
9132 | sed 's/^/| /' conftest.$ac_ext >&5 |
9133 | |
9134 | ac_cv_lib_dld_dld_link=no |
9135 | fi |
9136 | rm -f conftest.err conftest.$ac_objext \ |
9137 | conftest$ac_exeext conftest.$ac_ext |
9138 | LIBS=$ac_check_lib_save_LIBS |
9139 | fi |
9140 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
9141 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
9142 | if test $ac_cv_lib_dld_dld_link = yes; then |
9143 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
9144 | fi |
9145 | |
9146 | |
9147 | fi |
9148 | |
9149 | |
9150 | fi |
9151 | |
9152 | |
9153 | fi |
9154 | |
9155 | |
9156 | fi |
9157 | |
9158 | |
9159 | fi |
9160 | |
9161 | ;; |
9162 | esac |
9163 | |
9164 | if test "x$lt_cv_dlopen" != xno; then |
9165 | enable_dlopen=yes |
9166 | else |
9167 | enable_dlopen=no |
9168 | fi |
9169 | |
9170 | case $lt_cv_dlopen in |
9171 | dlopen) |
9172 | save_CPPFLAGS="$CPPFLAGS" |
9173 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
9174 | |
9175 | save_LDFLAGS="$LDFLAGS" |
9176 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
9177 | |
9178 | save_LIBS="$LIBS" |
9179 | LIBS="$lt_cv_dlopen_libs $LIBS" |
9180 | |
9181 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
9182 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
9183 | if test "${lt_cv_dlopen_self+set}" = set; then |
9184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9185 | else |
9186 | if test "$cross_compiling" = yes; then : |
9187 | lt_cv_dlopen_self=cross |
9188 | else |
9189 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9190 | lt_status=$lt_dlunknown |
9191 | cat > conftest.$ac_ext <<EOF |
9192 | #line 9192 "configure" |
9193 | #include "confdefs.h" |
9194 | |
9195 | #if HAVE_DLFCN_H |
9196 | #include <dlfcn.h> |
9197 | #endif |
9198 | |
9199 | #include <stdio.h> |
9200 | |
9201 | #ifdef RTLD_GLOBAL |
9202 | # define LT_DLGLOBAL RTLD_GLOBAL |
9203 | #else |
9204 | # ifdef DL_GLOBAL |
9205 | # define LT_DLGLOBAL DL_GLOBAL |
9206 | # else |
9207 | # define LT_DLGLOBAL 0 |
9208 | # endif |
9209 | #endif |
9210 | |
9211 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9212 | find out it does not work in some platform. */ |
9213 | #ifndef LT_DLLAZY_OR_NOW |
9214 | # ifdef RTLD_LAZY |
9215 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
9216 | # else |
9217 | # ifdef DL_LAZY |
9218 | # define LT_DLLAZY_OR_NOW DL_LAZY |
9219 | # else |
9220 | # ifdef RTLD_NOW |
9221 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
9222 | # else |
9223 | # ifdef DL_NOW |
9224 | # define LT_DLLAZY_OR_NOW DL_NOW |
9225 | # else |
9226 | # define LT_DLLAZY_OR_NOW 0 |
9227 | # endif |
9228 | # endif |
9229 | # endif |
9230 | # endif |
9231 | #endif |
9232 | |
9233 | #ifdef __cplusplus |
9234 | extern "C" void exit (int); |
9235 | #endif |
9236 | |
9237 | void fnord() { int i=42;} |
9238 | int main () |
9239 | { |
9240 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
9241 | int status = $lt_dlunknown; |
9242 | |
9243 | if (self) |
9244 | { |
9245 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9246 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9247 | /* dlclose (self); */ |
9248 | } |
9249 | else |
9250 | puts (dlerror ()); |
9251 | |
9252 | exit (status); |
9253 | } |
9254 | EOF |
9255 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9256 | (eval $ac_link) 2>&5 |
9257 | ac_status=$? |
9258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9259 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9260 | (./conftest; exit; ) >&5 2>/dev/null |
9261 | lt_status=$? |
9262 | case x$lt_status in |
9263 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
9264 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
9265 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
9266 | esac |
9267 | else : |
9268 | # compilation failed |
9269 | lt_cv_dlopen_self=no |
9270 | fi |
9271 | fi |
9272 | rm -fr conftest* |
9273 | |
9274 | |
9275 | fi |
9276 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
9277 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
9278 | |
9279 | if test "x$lt_cv_dlopen_self" = xyes; then |
9280 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
9281 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
9282 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
9283 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
9284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9285 | else |
9286 | if test "$cross_compiling" = yes; then : |
9287 | lt_cv_dlopen_self_static=cross |
9288 | else |
9289 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9290 | lt_status=$lt_dlunknown |
9291 | cat > conftest.$ac_ext <<EOF |
9292 | #line 9292 "configure" |
9293 | #include "confdefs.h" |
9294 | |
9295 | #if HAVE_DLFCN_H |
9296 | #include <dlfcn.h> |
9297 | #endif |
9298 | |
9299 | #include <stdio.h> |
9300 | |
9301 | #ifdef RTLD_GLOBAL |
9302 | # define LT_DLGLOBAL RTLD_GLOBAL |
9303 | #else |
9304 | # ifdef DL_GLOBAL |
9305 | # define LT_DLGLOBAL DL_GLOBAL |
9306 | # else |
9307 | # define LT_DLGLOBAL 0 |
9308 | # endif |
9309 | #endif |
9310 | |
9311 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9312 | find out it does not work in some platform. */ |
9313 | #ifndef LT_DLLAZY_OR_NOW |
9314 | # ifdef RTLD_LAZY |
9315 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
9316 | # else |
9317 | # ifdef DL_LAZY |
9318 | # define LT_DLLAZY_OR_NOW DL_LAZY |
9319 | # else |
9320 | # ifdef RTLD_NOW |
9321 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
9322 | # else |
9323 | # ifdef DL_NOW |
9324 | # define LT_DLLAZY_OR_NOW DL_NOW |
9325 | # else |
9326 | # define LT_DLLAZY_OR_NOW 0 |
9327 | # endif |
9328 | # endif |
9329 | # endif |
9330 | # endif |
9331 | #endif |
9332 | |
9333 | #ifdef __cplusplus |
9334 | extern "C" void exit (int); |
9335 | #endif |
9336 | |
9337 | void fnord() { int i=42;} |
9338 | int main () |
9339 | { |
9340 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
9341 | int status = $lt_dlunknown; |
9342 | |
9343 | if (self) |
9344 | { |
9345 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9346 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9347 | /* dlclose (self); */ |
9348 | } |
9349 | else |
9350 | puts (dlerror ()); |
9351 | |
9352 | exit (status); |
9353 | } |
9354 | EOF |
9355 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9356 | (eval $ac_link) 2>&5 |
9357 | ac_status=$? |
9358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9359 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9360 | (./conftest; exit; ) >&5 2>/dev/null |
9361 | lt_status=$? |
9362 | case x$lt_status in |
9363 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
9364 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
9365 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
9366 | esac |
9367 | else : |
9368 | # compilation failed |
9369 | lt_cv_dlopen_self_static=no |
9370 | fi |
9371 | fi |
9372 | rm -fr conftest* |
9373 | |
9374 | |
9375 | fi |
9376 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
9377 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
9378 | fi |
9379 | |
9380 | CPPFLAGS="$save_CPPFLAGS" |
9381 | LDFLAGS="$save_LDFLAGS" |
9382 | LIBS="$save_LIBS" |
9383 | ;; |
9384 | esac |
9385 | |
9386 | case $lt_cv_dlopen_self in |
9387 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
9388 | *) enable_dlopen_self=unknown ;; |
9389 | esac |
9390 | |
9391 | case $lt_cv_dlopen_self_static in |
9392 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
9393 | *) enable_dlopen_self_static=unknown ;; |
9394 | esac |
9395 | fi |
9396 | |
9397 | |
9398 | # Report which library types will actually be built |
9399 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
9400 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
9401 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
9402 | echo "${ECHO_T}$can_build_shared" >&6 |
9403 | |
9404 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
9405 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
9406 | test "$can_build_shared" = "no" && enable_shared=no |
9407 | |
9408 | # On AIX, shared libraries and static libraries use the same namespace, and |
9409 | # are all built from PIC. |
9410 | case $host_os in |
9411 | aix3*) |
9412 | test "$enable_shared" = yes && enable_static=no |
9413 | if test -n "$RANLIB"; then |
9414 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
9415 | postinstall_cmds='$RANLIB $lib' |
9416 | fi |
9417 | ;; |
9418 | |
9419 | aix4* | aix5*) |
9420 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
9421 | test "$enable_shared" = yes && enable_static=no |
9422 | fi |
9423 | ;; |
9424 | esac |
9425 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
9426 | echo "${ECHO_T}$enable_shared" >&6 |
9427 | |
9428 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
9429 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
9430 | # Make sure either enable_shared or enable_static is yes. |
9431 | test "$enable_shared" = yes || enable_static=yes |
9432 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
9433 | echo "${ECHO_T}$enable_static" >&6 |
9434 | |
9435 | # The else clause should only fire when bootstrapping the |
9436 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
9437 | # with your package, and you will get complaints that there are |
9438 | # no rules to generate ltmain.sh. |
9439 | if test -f "$ltmain"; then |
9440 | # See if we are running on zsh, and set the options which allow our commands through |
9441 | # without removal of \ escapes. |
9442 | if test -n "${ZSH_VERSION+set}" ; then |
9443 | setopt NO_GLOB_SUBST |
9444 | fi |
9445 | # Now quote all the things that may contain metacharacters while being |
9446 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
9447 | # variables and quote the copies for generation of the libtool script. |
9448 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
9449 | SED SHELL STRIP \ |
9450 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
9451 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
9452 | deplibs_check_method reload_flag reload_cmds need_locks \ |
9453 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
9454 | lt_cv_sys_global_symbol_to_c_name_address \ |
9455 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
9456 | old_postinstall_cmds old_postuninstall_cmds \ |
9457 | compiler \ |
9458 | CC \ |
9459 | LD \ |
9460 | lt_prog_compiler_wl \ |
9461 | lt_prog_compiler_pic \ |
9462 | lt_prog_compiler_static \ |
9463 | lt_prog_compiler_no_builtin_flag \ |
9464 | export_dynamic_flag_spec \ |
9465 | thread_safe_flag_spec \ |
9466 | whole_archive_flag_spec \ |
9467 | enable_shared_with_static_runtimes \ |
9468 | old_archive_cmds \ |
9469 | old_archive_from_new_cmds \ |
9470 | predep_objects \ |
9471 | postdep_objects \ |
9472 | predeps \ |
9473 | postdeps \ |
9474 | compiler_lib_search_path \ |
9475 | archive_cmds \ |
9476 | archive_expsym_cmds \ |
9477 | postinstall_cmds \ |
9478 | postuninstall_cmds \ |
9479 | old_archive_from_expsyms_cmds \ |
9480 | allow_undefined_flag \ |
9481 | no_undefined_flag \ |
9482 | export_symbols_cmds \ |
9483 | hardcode_libdir_flag_spec \ |
9484 | hardcode_libdir_flag_spec_ld \ |
9485 | hardcode_libdir_separator \ |
9486 | hardcode_automatic \ |
9487 | module_cmds \ |
9488 | module_expsym_cmds \ |
9489 | lt_cv_prog_compiler_c_o \ |
9490 | exclude_expsyms \ |
9491 | include_expsyms; do |
9492 | |
9493 | case $var in |
9494 | old_archive_cmds | \ |
9495 | old_archive_from_new_cmds | \ |
9496 | archive_cmds | \ |
9497 | archive_expsym_cmds | \ |
9498 | module_cmds | \ |
9499 | module_expsym_cmds | \ |
9500 | old_archive_from_expsyms_cmds | \ |
9501 | export_symbols_cmds | \ |
9502 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
9503 | postinstall_cmds | postuninstall_cmds | \ |
9504 | old_postinstall_cmds | old_postuninstall_cmds | \ |
9505 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
9506 | # Double-quote double-evaled strings. |
9507 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
9508 | ;; |
9509 | *) |
9510 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
9511 | ;; |
9512 | esac |
9513 | done |
9514 | |
9515 | case $lt_echo in |
9516 | *'\$0 --fallback-echo"') |
9517 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
9518 | ;; |
9519 | esac |
9520 | |
9521 | cfgfile="${ofile}T" |
9522 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
9523 | $rm -f "$cfgfile" |
9524 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
9525 | echo "$as_me: creating $ofile" >&6;} |
9526 | |
9527 | cat <<__EOF__ >> "$cfgfile" |
9528 | #! $SHELL |
9529 | |
9530 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
9531 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
9532 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
9533 | # |
9534 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
9535 | # Free Software Foundation, Inc. |
9536 | # |
9537 | # This file is part of GNU Libtool: |
9538 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
9539 | # |
9540 | # This program is free software; you can redistribute it and/or modify |
9541 | # it under the terms of the GNU General Public License as published by |
9542 | # the Free Software Foundation; either version 2 of the License, or |
9543 | # (at your option) any later version. |
9544 | # |
9545 | # This program is distributed in the hope that it will be useful, but |
9546 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
9547 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
9548 | # General Public License for more details. |
9549 | # |
9550 | # You should have received a copy of the GNU General Public License |
9551 | # along with this program; if not, write to the Free Software |
9552 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
9553 | # |
9554 | # As a special exception to the GNU General Public License, if you |
9555 | # distribute this file as part of a program that contains a |
9556 | # configuration script generated by Autoconf, you may include it under |
9557 | # the same distribution terms that you use for the rest of that program. |
9558 | |
9559 | # A sed program that does not truncate output. |
9560 | SED=$lt_SED |
9561 | |
9562 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
9563 | Xsed="$SED -e 1s/^X//" |
9564 | |
9565 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
9566 | # if CDPATH is set. |
9567 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
9568 | |
9569 | # The names of the tagged configurations supported by this script. |
9570 | available_tags= |
9571 | |
9572 | # ### BEGIN LIBTOOL CONFIG |
9573 | |
9574 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
9575 | |
9576 | # Shell to use when invoking shell scripts. |
9577 | SHELL=$lt_SHELL |
9578 | |
9579 | # Whether or not to build shared libraries. |
9580 | build_libtool_libs=$enable_shared |
9581 | |
9582 | # Whether or not to build static libraries. |
9583 | build_old_libs=$enable_static |
9584 | |
9585 | # Whether or not to add -lc for building shared libraries. |
9586 | build_libtool_need_lc=$archive_cmds_need_lc |
9587 | |
9588 | # Whether or not to disallow shared libs when runtime libs are static |
9589 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
9590 | |
9591 | # Whether or not to optimize for fast installation. |
9592 | fast_install=$enable_fast_install |
9593 | |
9594 | # The host system. |
9595 | host_alias=$host_alias |
9596 | host=$host |
9597 | host_os=$host_os |
9598 | |
9599 | # The build system. |
9600 | build_alias=$build_alias |
9601 | build=$build |
9602 | build_os=$build_os |
9603 | |
9604 | # An echo program that does not interpret backslashes. |
9605 | echo=$lt_echo |
9606 | |
9607 | # The archiver. |
9608 | AR=$lt_AR |
9609 | AR_FLAGS=$lt_AR_FLAGS |
9610 | |
9611 | # A C compiler. |
9612 | LTCC=$lt_LTCC |
9613 | |
9614 | # LTCC compiler flags. |
9615 | LTCFLAGS=$lt_LTCFLAGS |
9616 | |
9617 | # A language-specific compiler. |
9618 | CC=$lt_compiler |
9619 | |
9620 | # Is the compiler the GNU C compiler? |
9621 | with_gcc=$GCC |
9622 | |
9623 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
9624 | gcc_ver=\`gcc -dumpversion\` |
9625 | |
9626 | # An ERE matcher. |
9627 | EGREP=$lt_EGREP |
9628 | |
9629 | # The linker used to build libraries. |
9630 | LD=$lt_LD |
9631 | |
9632 | # Whether we need hard or soft links. |
9633 | LN_S=$lt_LN_S |
9634 | |
9635 | # A BSD-compatible nm program. |
9636 | NM=$lt_NM |
9637 | |
9638 | # A symbol stripping program |
9639 | STRIP=$lt_STRIP |
9640 | |
9641 | # Used to examine libraries when file_magic_cmd begins "file" |
9642 | MAGIC_CMD=$MAGIC_CMD |
9643 | |
9644 | # Used on cygwin: DLL creation program. |
9645 | DLLTOOL="$DLLTOOL" |
9646 | |
9647 | # Used on cygwin: object dumper. |
9648 | OBJDUMP="$OBJDUMP" |
9649 | |
9650 | # Used on cygwin: assembler. |
9651 | AS="$AS" |
9652 | |
9653 | # The name of the directory that contains temporary libtool files. |
9654 | objdir=$objdir |
9655 | |
9656 | # How to create reloadable object files. |
9657 | reload_flag=$lt_reload_flag |
9658 | reload_cmds=$lt_reload_cmds |
9659 | |
9660 | # How to pass a linker flag through the compiler. |
9661 | wl=$lt_lt_prog_compiler_wl |
9662 | |
9663 | # Object file suffix (normally "o"). |
9664 | objext="$ac_objext" |
9665 | |
9666 | # Old archive suffix (normally "a"). |
9667 | libext="$libext" |
9668 | |
9669 | # Shared library suffix (normally ".so"). |
9670 | shrext_cmds='$shrext_cmds' |
9671 | |
9672 | # Executable file suffix (normally ""). |
9673 | exeext="$exeext" |
9674 | |
9675 | # Additional compiler flags for building library objects. |
9676 | pic_flag=$lt_lt_prog_compiler_pic |
9677 | pic_mode=$pic_mode |
9678 | |
9679 | # What is the maximum length of a command? |
9680 | max_cmd_len=$lt_cv_sys_max_cmd_len |
9681 | |
9682 | # Does compiler simultaneously support -c and -o options? |
9683 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
9684 | |
9685 | # Must we lock files when doing compilation? |
9686 | need_locks=$lt_need_locks |
9687 | |
9688 | # Do we need the lib prefix for modules? |
9689 | need_lib_prefix=$need_lib_prefix |
9690 | |
9691 | # Do we need a version for libraries? |
9692 | need_version=$need_version |
9693 | |
9694 | # Whether dlopen is supported. |
9695 | dlopen_support=$enable_dlopen |
9696 | |
9697 | # Whether dlopen of programs is supported. |
9698 | dlopen_self=$enable_dlopen_self |
9699 | |
9700 | # Whether dlopen of statically linked programs is supported. |
9701 | dlopen_self_static=$enable_dlopen_self_static |
9702 | |
9703 | # Compiler flag to prevent dynamic linking. |
9704 | link_static_flag=$lt_lt_prog_compiler_static |
9705 | |
9706 | # Compiler flag to turn off builtin functions. |
9707 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
9708 | |
9709 | # Compiler flag to allow reflexive dlopens. |
9710 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
9711 | |
9712 | # Compiler flag to generate shared objects directly from archives. |
9713 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
9714 | |
9715 | # Compiler flag to generate thread-safe objects. |
9716 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
9717 | |
9718 | # Library versioning type. |
9719 | version_type=$version_type |
9720 | |
9721 | # Format of library name prefix. |
9722 | libname_spec=$lt_libname_spec |
9723 | |
9724 | # List of archive names. First name is the real one, the rest are links. |
9725 | # The last name is the one that the linker finds with -lNAME. |
9726 | library_names_spec=$lt_library_names_spec |
9727 | |
9728 | # The coded name of the library, if different from the real name. |
9729 | soname_spec=$lt_soname_spec |
9730 | |
9731 | # Commands used to build and install an old-style archive. |
9732 | RANLIB=$lt_RANLIB |
9733 | old_archive_cmds=$lt_old_archive_cmds |
9734 | old_postinstall_cmds=$lt_old_postinstall_cmds |
9735 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
9736 | |
9737 | # Create an old-style archive from a shared archive. |
9738 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
9739 | |
9740 | # Create a temporary old-style archive to link instead of a shared archive. |
9741 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
9742 | |
9743 | # Commands used to build and install a shared archive. |
9744 | archive_cmds=$lt_archive_cmds |
9745 | archive_expsym_cmds=$lt_archive_expsym_cmds |
9746 | postinstall_cmds=$lt_postinstall_cmds |
9747 | postuninstall_cmds=$lt_postuninstall_cmds |
9748 | |
9749 | # Commands used to build a loadable module (assumed same as above if empty) |
9750 | module_cmds=$lt_module_cmds |
9751 | module_expsym_cmds=$lt_module_expsym_cmds |
9752 | |
9753 | # Commands to strip libraries. |
9754 | old_striplib=$lt_old_striplib |
9755 | striplib=$lt_striplib |
9756 | |
9757 | # Dependencies to place before the objects being linked to create a |
9758 | # shared library. |
9759 | predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
9760 | |
9761 | # Dependencies to place after the objects being linked to create a |
9762 | # shared library. |
9763 | postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
9764 | |
9765 | # Dependencies to place before the objects being linked to create a |
9766 | # shared library. |
9767 | predeps=$lt_predeps |
9768 | |
9769 | # Dependencies to place after the objects being linked to create a |
9770 | # shared library. |
9771 | postdeps=$lt_postdeps |
9772 | |
9773 | # The library search path used internally by the compiler when linking |
9774 | # a shared library. |
9775 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
9776 | |
9777 | # Method to check whether dependent libraries are shared objects. |
9778 | deplibs_check_method=$lt_deplibs_check_method |
9779 | |
9780 | # Command to use when deplibs_check_method == file_magic. |
9781 | file_magic_cmd=$lt_file_magic_cmd |
9782 | |
9783 | # Flag that allows shared libraries with undefined symbols to be built. |
9784 | allow_undefined_flag=$lt_allow_undefined_flag |
9785 | |
9786 | # Flag that forces no undefined symbols. |
9787 | no_undefined_flag=$lt_no_undefined_flag |
9788 | |
9789 | # Commands used to finish a libtool library installation in a directory. |
9790 | finish_cmds=$lt_finish_cmds |
9791 | |
9792 | # Same as above, but a single script fragment to be evaled but not shown. |
9793 | finish_eval=$lt_finish_eval |
9794 | |
9795 | # Take the output of nm and produce a listing of raw symbols and C names. |
9796 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
9797 | |
9798 | # Transform the output of nm in a proper C declaration |
9799 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
9800 | |
9801 | # Transform the output of nm in a C name address pair |
9802 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
9803 | |
9804 | # This is the shared library runtime path variable. |
9805 | runpath_var=$runpath_var |
9806 | |
9807 | # This is the shared library path variable. |
9808 | shlibpath_var=$shlibpath_var |
9809 | |
9810 | # Is shlibpath searched before the hard-coded library search path? |
9811 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
9812 | |
9813 | # How to hardcode a shared library path into an executable. |
9814 | hardcode_action=$hardcode_action |
9815 | |
9816 | # Whether we should hardcode library paths into libraries. |
9817 | hardcode_into_libs=$hardcode_into_libs |
9818 | |
9819 | # Flag to hardcode \$libdir into a binary during linking. |
9820 | # This must work even if \$libdir does not exist. |
9821 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
9822 | |
9823 | # If ld is used when linking, flag to hardcode \$libdir into |
9824 | # a binary during linking. This must work even if \$libdir does |
9825 | # not exist. |
9826 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
9827 | |
9828 | # Whether we need a single -rpath flag with a separated argument. |
9829 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
9830 | |
9831 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
9832 | # resulting binary. |
9833 | hardcode_direct=$hardcode_direct |
9834 | |
9835 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
9836 | # resulting binary. |
9837 | hardcode_minus_L=$hardcode_minus_L |
9838 | |
9839 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
9840 | # the resulting binary. |
9841 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
9842 | |
9843 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
9844 | # and all subsequent libraries and executables linked against it. |
9845 | hardcode_automatic=$hardcode_automatic |
9846 | |
9847 | # Variables whose values should be saved in libtool wrapper scripts and |
9848 | # restored at relink time. |
9849 | variables_saved_for_relink="$variables_saved_for_relink" |
9850 | |
9851 | # Whether libtool must link a program against all its dependency libraries. |
9852 | link_all_deplibs=$link_all_deplibs |
9853 | |
9854 | # Compile-time system search path for libraries |
9855 | sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
9856 | |
9857 | # Run-time system search path for libraries |
9858 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
9859 | |
9860 | # Fix the shell variable \$srcfile for the compiler. |
9861 | fix_srcfile_path="$fix_srcfile_path" |
9862 | |
9863 | # Set to yes if exported symbols are required. |
9864 | always_export_symbols=$always_export_symbols |
9865 | |
9866 | # The commands to list exported symbols. |
9867 | export_symbols_cmds=$lt_export_symbols_cmds |
9868 | |
9869 | # The commands to extract the exported symbol list from a shared archive. |
9870 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
9871 | |
9872 | # Symbols that should not be listed in the preloaded symbols. |
9873 | exclude_expsyms=$lt_exclude_expsyms |
9874 | |
9875 | # Symbols that must always be exported. |
9876 | include_expsyms=$lt_include_expsyms |
9877 | |
9878 | # ### END LIBTOOL CONFIG |
9879 | |
9880 | __EOF__ |
9881 | |
9882 | |
9883 | case $host_os in |
9884 | aix3*) |
9885 | cat <<\EOF >> "$cfgfile" |
9886 | |
9887 | # AIX sometimes has problems with the GCC collect2 program. For some |
9888 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
9889 | # vanish in a puff of smoke. |
9890 | if test "X${COLLECT_NAMES+set}" != Xset; then |
9891 | COLLECT_NAMES= |
9892 | export COLLECT_NAMES |
9893 | fi |
9894 | EOF |
9895 | ;; |
9896 | esac |
9897 | |
9898 | # We use sed instead of cat because bash on DJGPP gets confused if |
9899 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
9900 | # text mode, it properly converts lines to CR/LF. This bash problem |
9901 | # is reportedly fixed, but why not run on old versions too? |
9902 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
9903 | |
9904 | mv -f "$cfgfile" "$ofile" || \ |
9905 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
9906 | chmod +x "$ofile" |
9907 | |
9908 | else |
9909 | # If there is no Makefile yet, we rely on a make rule to execute |
9910 | # `config.status --recheck' to rerun these tests and create the |
9911 | # libtool script then. |
9912 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
9913 | if test -f "$ltmain_in"; then |
9914 | test -f Makefile && make "$ltmain" |
9915 | fi |
9916 | fi |
9917 | |
9918 | |
9919 | ac_ext=c |
9920 | ac_cpp='$CPP $CPPFLAGS' |
9921 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9922 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9923 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
9924 | |
9925 | CC="$lt_save_CC" |
9926 | |
9927 | |
9928 | # Check whether --with-tags or --without-tags was given. |
9929 | if test "${with_tags+set}" = set; then |
9930 | withval="$with_tags" |
9931 | tagnames="$withval" |
9932 | fi; |
9933 | |
9934 | if test -f "$ltmain" && test -n "$tagnames"; then |
9935 | if test ! -f "${ofile}"; then |
9936 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
9937 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
9938 | fi |
9939 | |
9940 | if test -z "$LTCC"; then |
9941 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
9942 | if test -z "$LTCC"; then |
9943 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
9944 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
9945 | else |
9946 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
9947 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
9948 | fi |
9949 | fi |
9950 | if test -z "$LTCFLAGS"; then |
9951 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
9952 | fi |
9953 | |
9954 | # Extract list of available tagged configurations in $ofile. |
9955 | # Note that this assumes the entire list is on one line. |
9956 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
9957 | |
9958 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
9959 | for tagname in $tagnames; do |
9960 | IFS="$lt_save_ifs" |
9961 | # Check whether tagname contains only valid characters |
9962 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
9963 | "") ;; |
9964 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
9965 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
9966 | { (exit 1); exit 1; }; } |
9967 | ;; |
9968 | esac |
9969 | |
9970 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
9971 | then |
9972 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
9973 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
9974 | { (exit 1); exit 1; }; } |
9975 | fi |
9976 | |
9977 | # Update the list of available tags. |
9978 | if test -n "$tagname"; then |
9979 | echo appending configuration tag \"$tagname\" to $ofile |
9980 | |
9981 | case $tagname in |
9982 | CXX) |
9983 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
9984 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
9985 | (test "X$CXX" != "Xg++"))) ; then |
9986 | ac_ext=cc |
9987 | ac_cpp='$CXXCPP $CPPFLAGS' |
9988 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9989 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9990 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
9991 | |
9992 | |
9993 | |
9994 | |
9995 | archive_cmds_need_lc_CXX=no |
9996 | allow_undefined_flag_CXX= |
9997 | always_export_symbols_CXX=no |
9998 | archive_expsym_cmds_CXX= |
9999 | export_dynamic_flag_spec_CXX= |
10000 | hardcode_direct_CXX=no |
10001 | hardcode_libdir_flag_spec_CXX= |
10002 | hardcode_libdir_flag_spec_ld_CXX= |
10003 | hardcode_libdir_separator_CXX= |
10004 | hardcode_minus_L_CXX=no |
10005 | hardcode_shlibpath_var_CXX=unsupported |
10006 | hardcode_automatic_CXX=no |
10007 | module_cmds_CXX= |
10008 | module_expsym_cmds_CXX= |
10009 | link_all_deplibs_CXX=unknown |
10010 | old_archive_cmds_CXX=$old_archive_cmds |
10011 | no_undefined_flag_CXX= |
10012 | whole_archive_flag_spec_CXX= |
10013 | enable_shared_with_static_runtimes_CXX=no |
10014 | |
10015 | # Dependencies to place before and after the object being linked: |
10016 | predep_objects_CXX= |
10017 | postdep_objects_CXX= |
10018 | predeps_CXX= |
10019 | postdeps_CXX= |
10020 | compiler_lib_search_path_CXX= |
10021 | |
10022 | # Source file extension for C++ test sources. |
10023 | ac_ext=cpp |
10024 | |
10025 | # Object file extension for compiled C++ test sources. |
10026 | objext=o |
10027 | objext_CXX=$objext |
10028 | |
10029 | # Code to be used in simple compile tests |
10030 | lt_simple_compile_test_code="int some_variable = 0;\n" |
10031 | |
10032 | # Code to be used in simple link tests |
10033 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
10034 | |
10035 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
10036 | |
10037 | # If no C compiler was specified, use CC. |
10038 | LTCC=${LTCC-"$CC"} |
10039 | |
10040 | # If no C compiler flags were specified, use CFLAGS. |
10041 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
10042 | |
10043 | # Allow CC to be a program name with arguments. |
10044 | compiler=$CC |
10045 | |
10046 | |
10047 | # save warnings/boilerplate of simple test code |
10048 | ac_outfile=conftest.$ac_objext |
10049 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
10050 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10051 | _lt_compiler_boilerplate=`cat conftest.err` |
10052 | $rm conftest* |
10053 | |
10054 | ac_outfile=conftest.$ac_objext |
10055 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
10056 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10057 | _lt_linker_boilerplate=`cat conftest.err` |
10058 | $rm conftest* |
10059 | |
10060 | |
10061 | # Allow CC to be a program name with arguments. |
10062 | lt_save_CC=$CC |
10063 | lt_save_LD=$LD |
10064 | lt_save_GCC=$GCC |
10065 | GCC=$GXX |
10066 | lt_save_with_gnu_ld=$with_gnu_ld |
10067 | lt_save_path_LD=$lt_cv_path_LD |
10068 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
10069 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
10070 | else |
10071 | $as_unset lt_cv_prog_gnu_ld |
10072 | fi |
10073 | if test -n "${lt_cv_path_LDCXX+set}"; then |
10074 | lt_cv_path_LD=$lt_cv_path_LDCXX |
10075 | else |
10076 | $as_unset lt_cv_path_LD |
10077 | fi |
10078 | test -z "${LDCXX+set}" || LD=$LDCXX |
10079 | CC=${CXX-"c++"} |
10080 | compiler=$CC |
10081 | compiler_CXX=$CC |
10082 | for cc_temp in $compiler""; do |
10083 | case $cc_temp in |
10084 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
10085 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
10086 | \-*) ;; |
10087 | *) break;; |
10088 | esac |
10089 | done |
10090 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
10091 | |
10092 | |
10093 | # We don't want -fno-exception wen compiling C++ code, so set the |
10094 | # no_builtin_flag separately |
10095 | if test "$GXX" = yes; then |
10096 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
10097 | else |
10098 | lt_prog_compiler_no_builtin_flag_CXX= |
10099 | fi |
10100 | |
10101 | if test "$GXX" = yes; then |
10102 | # Set up default GNU C++ configuration |
10103 | |
10104 | |
10105 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
10106 | if test "${with_gnu_ld+set}" = set; then |
10107 | withval="$with_gnu_ld" |
10108 | test "$withval" = no || with_gnu_ld=yes |
10109 | else |
10110 | with_gnu_ld=no |
10111 | fi; |
10112 | ac_prog=ld |
10113 | if test "$GCC" = yes; then |
10114 | # Check if gcc -print-prog-name=ld gives a path. |
10115 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
10116 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
10117 | case $host in |
10118 | *-*-mingw*) |
10119 | # gcc leaves a trailing carriage return which upsets mingw |
10120 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
10121 | *) |
10122 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
10123 | esac |
10124 | case $ac_prog in |
10125 | # Accept absolute paths. |
10126 | [\\/]* | ?:[\\/]*) |
10127 | re_direlt='/[^/][^/]*/\.\./' |
10128 | # Canonicalize the pathname of ld |
10129 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
10130 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
10131 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
10132 | done |
10133 | test -z "$LD" && LD="$ac_prog" |
10134 | ;; |
10135 | "") |
10136 | # If it fails, then pretend we aren't using GCC. |
10137 | ac_prog=ld |
10138 | ;; |
10139 | *) |
10140 | # If it is relative, then search for the first ld in PATH. |
10141 | with_gnu_ld=unknown |
10142 | ;; |
10143 | esac |
10144 | elif test "$with_gnu_ld" = yes; then |
10145 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
10146 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
10147 | else |
10148 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
10149 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
10150 | fi |
10151 | if test "${lt_cv_path_LD+set}" = set; then |
10152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10153 | else |
10154 | if test -z "$LD"; then |
10155 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
10156 | for ac_dir in $PATH; do |
10157 | IFS="$lt_save_ifs" |
10158 | test -z "$ac_dir" && ac_dir=. |
10159 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
10160 | lt_cv_path_LD="$ac_dir/$ac_prog" |
10161 | # Check to see if the program is GNU ld. I'd rather use --version, |
10162 | # but apparently some variants of GNU ld only accept -v. |
10163 | # Break only if it was the GNU/non-GNU ld that we prefer. |
10164 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
10165 | *GNU* | *'with BFD'*) |
10166 | test "$with_gnu_ld" != no && break |
10167 | ;; |
10168 | *) |
10169 | test "$with_gnu_ld" != yes && break |
10170 | ;; |
10171 | esac |
10172 | fi |
10173 | done |
10174 | IFS="$lt_save_ifs" |
10175 | else |
10176 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
10177 | fi |
10178 | fi |
10179 | |
10180 | LD="$lt_cv_path_LD" |
10181 | if test -n "$LD"; then |
10182 | echo "$as_me:$LINENO: result: $LD" >&5 |
10183 | echo "${ECHO_T}$LD" >&6 |
10184 | else |
10185 | echo "$as_me:$LINENO: result: no" >&5 |
10186 | echo "${ECHO_T}no" >&6 |
10187 | fi |
10188 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
10189 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
10190 | { (exit 1); exit 1; }; } |
10191 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
10192 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
10193 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
10194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10195 | else |
10196 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
10197 | case `$LD -v 2>&1 </dev/null` in |
10198 | *GNU* | *'with BFD'*) |
10199 | lt_cv_prog_gnu_ld=yes |
10200 | ;; |
10201 | *) |
10202 | lt_cv_prog_gnu_ld=no |
10203 | ;; |
10204 | esac |
10205 | fi |
10206 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
10207 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
10208 | with_gnu_ld=$lt_cv_prog_gnu_ld |
10209 | |
10210 | |
10211 | |
10212 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
10213 | # archiving commands below assume that GNU ld is being used. |
10214 | if test "$with_gnu_ld" = yes; then |
10215 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10216 | 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' |
10217 | |
10218 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
10219 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10220 | |
10221 | # If archive_cmds runs LD, not CC, wlarc should be empty |
10222 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
10223 | # investigate it a little bit more. (MM) |
10224 | wlarc='${wl}' |
10225 | |
10226 | # ancient GNU ld didn't support --whole-archive et. al. |
10227 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
10228 | grep 'no-whole-archive' > /dev/null; then |
10229 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
10230 | else |
10231 | whole_archive_flag_spec_CXX= |
10232 | fi |
10233 | else |
10234 | with_gnu_ld=no |
10235 | wlarc= |
10236 | |
10237 | # A generic and very simple default shared library creation |
10238 | # command for GNU C++ for the case where it uses the native |
10239 | # linker, instead of GNU ld. If possible, this setting should |
10240 | # overridden to take advantage of the native linker features on |
10241 | # the platform it is being used on. |
10242 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
10243 | fi |
10244 | |
10245 | # Commands to make compiler produce verbose output that lists |
10246 | # what "hidden" libraries, object files and flags are used when |
10247 | # linking a shared library. |
10248 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
10249 | |
10250 | else |
10251 | GXX=no |
10252 | with_gnu_ld=no |
10253 | wlarc= |
10254 | fi |
10255 | |
10256 | # PORTME: fill in a description of your system's C++ link characteristics |
10257 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
10258 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
10259 | ld_shlibs_CXX=yes |
10260 | case $host_os in |
10261 | aix3*) |
10262 | # FIXME: insert proper C++ library support |
10263 | ld_shlibs_CXX=no |
10264 | ;; |
10265 | aix4* | aix5*) |
10266 | if test "$host_cpu" = ia64; then |
10267 | # On IA64, the linker does run time linking by default, so we don't |
10268 | # have to do anything special. |
10269 | aix_use_runtimelinking=no |
10270 | exp_sym_flag='-Bexport' |
10271 | no_entry_flag="" |
10272 | else |
10273 | aix_use_runtimelinking=no |
10274 | |
10275 | # Test if we are trying to use run time linking or normal |
10276 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
10277 | # need to do runtime linking. |
10278 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
10279 | for ld_flag in $LDFLAGS; do |
10280 | case $ld_flag in |
10281 | *-brtl*) |
10282 | aix_use_runtimelinking=yes |
10283 | break |
10284 | ;; |
10285 | esac |
10286 | done |
10287 | ;; |
10288 | esac |
10289 | |
10290 | exp_sym_flag='-bexport' |
10291 | no_entry_flag='-bnoentry' |
10292 | fi |
10293 | |
10294 | # When large executables or shared objects are built, AIX ld can |
10295 | # have problems creating the table of contents. If linking a library |
10296 | # or program results in "error TOC overflow" add -mminimal-toc to |
10297 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
10298 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
10299 | |
10300 | archive_cmds_CXX='' |
10301 | hardcode_direct_CXX=yes |
10302 | hardcode_libdir_separator_CXX=':' |
10303 | link_all_deplibs_CXX=yes |
10304 | |
10305 | if test "$GXX" = yes; then |
10306 | case $host_os in aix4.[012]|aix4.[012].*) |
10307 | # We only want to do this on AIX 4.2 and lower, the check |
10308 | # below for broken collect2 doesn't work under 4.3+ |
10309 | collect2name=`${CC} -print-prog-name=collect2` |
10310 | if test -f "$collect2name" && \ |
10311 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
10312 | then |
10313 | # We have reworked collect2 |
10314 | hardcode_direct_CXX=yes |
10315 | else |
10316 | # We have old collect2 |
10317 | hardcode_direct_CXX=unsupported |
10318 | # It fails to find uninstalled libraries when the uninstalled |
10319 | # path is not listed in the libpath. Setting hardcode_minus_L |
10320 | # to unsupported forces relinking |
10321 | hardcode_minus_L_CXX=yes |
10322 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
10323 | hardcode_libdir_separator_CXX= |
10324 | fi |
10325 | ;; |
10326 | esac |
10327 | shared_flag='-shared' |
10328 | if test "$aix_use_runtimelinking" = yes; then |
10329 | shared_flag="$shared_flag "'${wl}-G' |
10330 | fi |
10331 | else |
10332 | # not using gcc |
10333 | if test "$host_cpu" = ia64; then |
10334 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
10335 | # chokes on -Wl,-G. The following line is correct: |
10336 | shared_flag='-G' |
10337 | else |
10338 | if test "$aix_use_runtimelinking" = yes; then |
10339 | shared_flag='${wl}-G' |
10340 | else |
10341 | shared_flag='${wl}-bM:SRE' |
10342 | fi |
10343 | fi |
10344 | fi |
10345 | |
10346 | # It seems that -bexpall does not export symbols beginning with |
10347 | # underscore (_), so it is better to generate a list of symbols to export. |
10348 | always_export_symbols_CXX=yes |
10349 | if test "$aix_use_runtimelinking" = yes; then |
10350 | # Warning - without using the other runtime loading flags (-brtl), |
10351 | # -berok will link without error, but may produce a broken library. |
10352 | allow_undefined_flag_CXX='-berok' |
10353 | # Determine the default libpath from the value encoded in an empty executable. |
10354 | cat >conftest.$ac_ext <<_ACEOF |
10355 | /* confdefs.h. */ |
10356 | _ACEOF |
10357 | cat confdefs.h >>conftest.$ac_ext |
10358 | cat >>conftest.$ac_ext <<_ACEOF |
10359 | /* end confdefs.h. */ |
10360 | |
10361 | int |
10362 | main () |
10363 | { |
10364 | |
10365 | ; |
10366 | return 0; |
10367 | } |
10368 | _ACEOF |
10369 | rm -f conftest.$ac_objext conftest$ac_exeext |
10370 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10371 | (eval $ac_link) 2>conftest.er1 |
10372 | ac_status=$? |
10373 | grep -v '^ *+' conftest.er1 >conftest.err |
10374 | rm -f conftest.er1 |
10375 | cat conftest.err >&5 |
10376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10377 | (exit $ac_status); } && |
10378 | { ac_try='test -z "$ac_cxx_werror_flag" |
10379 | || test ! -s conftest.err' |
10380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10381 | (eval $ac_try) 2>&5 |
10382 | ac_status=$? |
10383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10384 | (exit $ac_status); }; } && |
10385 | { ac_try='test -s conftest$ac_exeext' |
10386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10387 | (eval $ac_try) 2>&5 |
10388 | ac_status=$? |
10389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10390 | (exit $ac_status); }; }; then |
10391 | |
10392 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
10393 | }'` |
10394 | # Check for a 64-bit object if we didn't find anything. |
10395 | 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; } |
10396 | }'`; fi |
10397 | else |
10398 | echo "$as_me: failed program was:" >&5 |
10399 | sed 's/^/| /' conftest.$ac_ext >&5 |
10400 | |
10401 | fi |
10402 | rm -f conftest.err conftest.$ac_objext \ |
10403 | conftest$ac_exeext conftest.$ac_ext |
10404 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10405 | |
10406 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
10407 | |
10408 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
10409 | else |
10410 | if test "$host_cpu" = ia64; then |
10411 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
10412 | allow_undefined_flag_CXX="-z nodefs" |
10413 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
10414 | else |
10415 | # Determine the default libpath from the value encoded in an empty executable. |
10416 | cat >conftest.$ac_ext <<_ACEOF |
10417 | /* confdefs.h. */ |
10418 | _ACEOF |
10419 | cat confdefs.h >>conftest.$ac_ext |
10420 | cat >>conftest.$ac_ext <<_ACEOF |
10421 | /* end confdefs.h. */ |
10422 | |
10423 | int |
10424 | main () |
10425 | { |
10426 | |
10427 | ; |
10428 | return 0; |
10429 | } |
10430 | _ACEOF |
10431 | rm -f conftest.$ac_objext conftest$ac_exeext |
10432 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10433 | (eval $ac_link) 2>conftest.er1 |
10434 | ac_status=$? |
10435 | grep -v '^ *+' conftest.er1 >conftest.err |
10436 | rm -f conftest.er1 |
10437 | cat conftest.err >&5 |
10438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10439 | (exit $ac_status); } && |
10440 | { ac_try='test -z "$ac_cxx_werror_flag" |
10441 | || test ! -s conftest.err' |
10442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10443 | (eval $ac_try) 2>&5 |
10444 | ac_status=$? |
10445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10446 | (exit $ac_status); }; } && |
10447 | { ac_try='test -s conftest$ac_exeext' |
10448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10449 | (eval $ac_try) 2>&5 |
10450 | ac_status=$? |
10451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10452 | (exit $ac_status); }; }; then |
10453 | |
10454 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
10455 | }'` |
10456 | # Check for a 64-bit object if we didn't find anything. |
10457 | 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; } |
10458 | }'`; fi |
10459 | else |
10460 | echo "$as_me: failed program was:" >&5 |
10461 | sed 's/^/| /' conftest.$ac_ext >&5 |
10462 | |
10463 | fi |
10464 | rm -f conftest.err conftest.$ac_objext \ |
10465 | conftest$ac_exeext conftest.$ac_ext |
10466 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10467 | |
10468 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
10469 | # Warning - without using the other run time loading flags, |
10470 | # -berok will link without error, but may produce a broken library. |
10471 | no_undefined_flag_CXX=' ${wl}-bernotok' |
10472 | allow_undefined_flag_CXX=' ${wl}-berok' |
10473 | # Exported symbols can be pulled into shared objects from archives |
10474 | whole_archive_flag_spec_CXX='$convenience' |
10475 | archive_cmds_need_lc_CXX=yes |
10476 | # This is similar to how AIX traditionally builds its shared libraries. |
10477 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
10478 | fi |
10479 | fi |
10480 | ;; |
10481 | |
10482 | beos*) |
10483 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
10484 | allow_undefined_flag_CXX=unsupported |
10485 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
10486 | # support --undefined. This deserves some investigation. FIXME |
10487 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10488 | else |
10489 | ld_shlibs_CXX=no |
10490 | fi |
10491 | ;; |
10492 | |
10493 | chorus*) |
10494 | case $cc_basename in |
10495 | *) |
10496 | # FIXME: insert proper C++ library support |
10497 | ld_shlibs_CXX=no |
10498 | ;; |
10499 | esac |
10500 | ;; |
10501 | |
10502 | cygwin* | mingw* | pw32*) |
10503 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
10504 | # as there is no search path for DLLs. |
10505 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
10506 | allow_undefined_flag_CXX=unsupported |
10507 | always_export_symbols_CXX=no |
10508 | enable_shared_with_static_runtimes_CXX=yes |
10509 | |
10510 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
10511 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
10512 | # If the export-symbols file already is a .def file (1st line |
10513 | # is EXPORTS), use it as is; otherwise, prepend... |
10514 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
10515 | cp $export_symbols $output_objdir/$soname.def; |
10516 | else |
10517 | echo EXPORTS > $output_objdir/$soname.def; |
10518 | cat $export_symbols >> $output_objdir/$soname.def; |
10519 | fi~ |
10520 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
10521 | else |
10522 | ld_shlibs_CXX=no |
10523 | fi |
10524 | ;; |
10525 | darwin* | rhapsody*) |
10526 | case $host_os in |
10527 | rhapsody* | darwin1.[012]) |
10528 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
10529 | ;; |
10530 | *) # Darwin 1.3 on |
10531 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
10532 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
10533 | else |
10534 | case ${MACOSX_DEPLOYMENT_TARGET} in |
10535 | 10.[012]) |
10536 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
10537 | ;; |
10538 | 10.*) |
10539 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
10540 | ;; |
10541 | esac |
10542 | fi |
10543 | ;; |
10544 | esac |
10545 | archive_cmds_need_lc_CXX=no |
10546 | hardcode_direct_CXX=no |
10547 | hardcode_automatic_CXX=yes |
10548 | hardcode_shlibpath_var_CXX=unsupported |
10549 | whole_archive_flag_spec_CXX='' |
10550 | link_all_deplibs_CXX=yes |
10551 | |
10552 | if test "$GXX" = yes ; then |
10553 | lt_int_apple_cc_single_mod=no |
10554 | output_verbose_link_cmd='echo' |
10555 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
10556 | lt_int_apple_cc_single_mod=yes |
10557 | fi |
10558 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
10559 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
10560 | else |
10561 | archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
10562 | fi |
10563 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
10564 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
10565 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
10566 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
10567 | else |
10568 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
10569 | fi |
10570 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
10571 | else |
10572 | case $cc_basename in |
10573 | xlc*) |
10574 | output_verbose_link_cmd='echo' |
10575 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
10576 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
10577 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
10578 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
10579 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
10580 | ;; |
10581 | *) |
10582 | ld_shlibs_CXX=no |
10583 | ;; |
10584 | esac |
10585 | fi |
10586 | ;; |
10587 | |
10588 | dgux*) |
10589 | case $cc_basename in |
10590 | ec++*) |
10591 | # FIXME: insert proper C++ library support |
10592 | ld_shlibs_CXX=no |
10593 | ;; |
10594 | ghcx*) |
10595 | # Green Hills C++ Compiler |
10596 | # FIXME: insert proper C++ library support |
10597 | ld_shlibs_CXX=no |
10598 | ;; |
10599 | *) |
10600 | # FIXME: insert proper C++ library support |
10601 | ld_shlibs_CXX=no |
10602 | ;; |
10603 | esac |
10604 | ;; |
10605 | freebsd[12]*) |
10606 | # C++ shared libraries reported to be fairly broken before switch to ELF |
10607 | ld_shlibs_CXX=no |
10608 | ;; |
10609 | freebsd-elf*) |
10610 | archive_cmds_need_lc_CXX=no |
10611 | ;; |
10612 | freebsd* | kfreebsd*-gnu | dragonfly*) |
10613 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
10614 | # conventions |
10615 | ld_shlibs_CXX=yes |
10616 | ;; |
10617 | gnu*) |
10618 | ;; |
10619 | hpux9*) |
10620 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
10621 | hardcode_libdir_separator_CXX=: |
10622 | export_dynamic_flag_spec_CXX='${wl}-E' |
10623 | hardcode_direct_CXX=yes |
10624 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
10625 | # but as the default |
10626 | # location of the library. |
10627 | |
10628 | case $cc_basename in |
10629 | CC*) |
10630 | # FIXME: insert proper C++ library support |
10631 | ld_shlibs_CXX=no |
10632 | ;; |
10633 | aCC*) |
10634 | 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' |
10635 | # Commands to make compiler produce verbose output that lists |
10636 | # what "hidden" libraries, object files and flags are used when |
10637 | # linking a shared library. |
10638 | # |
10639 | # There doesn't appear to be a way to prevent this compiler from |
10640 | # explicitly linking system object files so we need to strip them |
10641 | # from the output so that they don't get included in the library |
10642 | # dependencies. |
10643 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
10644 | ;; |
10645 | *) |
10646 | if test "$GXX" = yes; then |
10647 | 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' |
10648 | else |
10649 | # FIXME: insert proper C++ library support |
10650 | ld_shlibs_CXX=no |
10651 | fi |
10652 | ;; |
10653 | esac |
10654 | ;; |
10655 | hpux10*|hpux11*) |
10656 | if test $with_gnu_ld = no; then |
10657 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
10658 | hardcode_libdir_separator_CXX=: |
10659 | |
10660 | case $host_cpu in |
10661 | hppa*64*|ia64*) |
10662 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
10663 | ;; |
10664 | *) |
10665 | export_dynamic_flag_spec_CXX='${wl}-E' |
10666 | ;; |
10667 | esac |
10668 | fi |
10669 | case $host_cpu in |
10670 | hppa*64*|ia64*) |
10671 | hardcode_direct_CXX=no |
10672 | hardcode_shlibpath_var_CXX=no |
10673 | ;; |
10674 | *) |
10675 | hardcode_direct_CXX=yes |
10676 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
10677 | # but as the default |
10678 | # location of the library. |
10679 | ;; |
10680 | esac |
10681 | |
10682 | case $cc_basename in |
10683 | CC*) |
10684 | # FIXME: insert proper C++ library support |
10685 | ld_shlibs_CXX=no |
10686 | ;; |
10687 | aCC*) |
10688 | case $host_cpu in |
10689 | hppa*64*) |
10690 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10691 | ;; |
10692 | ia64*) |
10693 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10694 | ;; |
10695 | *) |
10696 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10697 | ;; |
10698 | esac |
10699 | # Commands to make compiler produce verbose output that lists |
10700 | # what "hidden" libraries, object files and flags are used when |
10701 | # linking a shared library. |
10702 | # |
10703 | # There doesn't appear to be a way to prevent this compiler from |
10704 | # explicitly linking system object files so we need to strip them |
10705 | # from the output so that they don't get included in the library |
10706 | # dependencies. |
10707 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
10708 | ;; |
10709 | *) |
10710 | if test "$GXX" = yes; then |
10711 | if test $with_gnu_ld = no; then |
10712 | case $host_cpu in |
10713 | hppa*64*) |
10714 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10715 | ;; |
10716 | ia64*) |
10717 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10718 | ;; |
10719 | *) |
10720 | 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' |
10721 | ;; |
10722 | esac |
10723 | fi |
10724 | else |
10725 | # FIXME: insert proper C++ library support |
10726 | ld_shlibs_CXX=no |
10727 | fi |
10728 | ;; |
10729 | esac |
10730 | ;; |
10731 | interix3*) |
10732 | hardcode_direct_CXX=no |
10733 | hardcode_shlibpath_var_CXX=no |
10734 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10735 | export_dynamic_flag_spec_CXX='${wl}-E' |
10736 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
10737 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
10738 | # default) and relocated if they conflict, which is a slow very memory |
10739 | # consuming and fragmenting process. To avoid this, we pick a random, |
10740 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
10741 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
10742 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
10743 | archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
10744 | ;; |
10745 | irix5* | irix6*) |
10746 | case $cc_basename in |
10747 | CC*) |
10748 | # SGI C++ |
10749 | 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 ${output_objdir}/so_locations -o $lib' |
10750 | |
10751 | # Archives containing C++ object files must be created using |
10752 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
10753 | # necessary to make sure instantiated templates are included |
10754 | # in the archive. |
10755 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
10756 | ;; |
10757 | *) |
10758 | if test "$GXX" = yes; then |
10759 | if test "$with_gnu_ld" = no; then |
10760 | 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}${output_objdir}/so_locations -o $lib' |
10761 | else |
10762 | 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` -o $lib' |
10763 | fi |
10764 | fi |
10765 | link_all_deplibs_CXX=yes |
10766 | ;; |
10767 | esac |
10768 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
10769 | hardcode_libdir_separator_CXX=: |
10770 | ;; |
10771 | linux*) |
10772 | case $cc_basename in |
10773 | KCC*) |
10774 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
10775 | |
10776 | # KCC will only create a shared library if the output file |
10777 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
10778 | # to its proper name (with version) after linking. |
10779 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
10780 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
10781 | # Commands to make compiler produce verbose output that lists |
10782 | # what "hidden" libraries, object files and flags are used when |
10783 | # linking a shared library. |
10784 | # |
10785 | # There doesn't appear to be a way to prevent this compiler from |
10786 | # explicitly linking system object files so we need to strip them |
10787 | # from the output so that they don't get included in the library |
10788 | # dependencies. |
10789 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
10790 | |
10791 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
10792 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10793 | |
10794 | # Archives containing C++ object files must be created using |
10795 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
10796 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
10797 | ;; |
10798 | icpc*) |
10799 | # Intel C++ |
10800 | with_gnu_ld=yes |
10801 | # version 8.0 and above of icpc choke on multiply defined symbols |
10802 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
10803 | # earlier do not add the objects themselves. |
10804 | case `$CC -V 2>&1` in |
10805 | *"Version 7."*) |
10806 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10807 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
10808 | ;; |
10809 | *) # Version 8.0 or newer |
10810 | tmp_idyn= |
10811 | case $host_cpu in |
10812 | ia64*) tmp_idyn=' -i_dynamic';; |
10813 | esac |
10814 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10815 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
10816 | ;; |
10817 | esac |
10818 | archive_cmds_need_lc_CXX=no |
10819 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10820 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10821 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
10822 | ;; |
10823 | pgCC*) |
10824 | # Portland Group C++ compiler |
10825 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
10826 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
10827 | |
10828 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
10829 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10830 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
10831 | ;; |
10832 | cxx*) |
10833 | # Compaq C++ |
10834 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10835 | 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' |
10836 | |
10837 | runpath_var=LD_RUN_PATH |
10838 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
10839 | hardcode_libdir_separator_CXX=: |
10840 | |
10841 | # Commands to make compiler produce verbose output that lists |
10842 | # what "hidden" libraries, object files and flags are used when |
10843 | # linking a shared library. |
10844 | # |
10845 | # There doesn't appear to be a way to prevent this compiler from |
10846 | # explicitly linking system object files so we need to strip them |
10847 | # from the output so that they don't get included in the library |
10848 | # dependencies. |
10849 | 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' |
10850 | ;; |
10851 | esac |
10852 | ;; |
10853 | lynxos*) |
10854 | # FIXME: insert proper C++ library support |
10855 | ld_shlibs_CXX=no |
10856 | ;; |
10857 | m88k*) |
10858 | # FIXME: insert proper C++ library support |
10859 | ld_shlibs_CXX=no |
10860 | ;; |
10861 | mvs*) |
10862 | case $cc_basename in |
10863 | cxx*) |
10864 | # FIXME: insert proper C++ library support |
10865 | ld_shlibs_CXX=no |
10866 | ;; |
10867 | *) |
10868 | # FIXME: insert proper C++ library support |
10869 | ld_shlibs_CXX=no |
10870 | ;; |
10871 | esac |
10872 | ;; |
10873 | netbsd*) |
10874 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
10875 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
10876 | wlarc= |
10877 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
10878 | hardcode_direct_CXX=yes |
10879 | hardcode_shlibpath_var_CXX=no |
10880 | fi |
10881 | # Workaround some broken pre-1.5 toolchains |
10882 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
10883 | ;; |
10884 | openbsd2*) |
10885 | # C++ shared libraries are fairly broken |
10886 | ld_shlibs_CXX=no |
10887 | ;; |
10888 | openbsd*) |
10889 | hardcode_direct_CXX=yes |
10890 | hardcode_shlibpath_var_CXX=no |
10891 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
10892 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10893 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
10894 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
10895 | export_dynamic_flag_spec_CXX='${wl}-E' |
10896 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
10897 | fi |
10898 | output_verbose_link_cmd='echo' |
10899 | ;; |
10900 | osf3*) |
10901 | case $cc_basename in |
10902 | KCC*) |
10903 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
10904 | |
10905 | # KCC will only create a shared library if the output file |
10906 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
10907 | # to its proper name (with version) after linking. |
10908 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
10909 | |
10910 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10911 | hardcode_libdir_separator_CXX=: |
10912 | |
10913 | # Archives containing C++ object files must be created using |
10914 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
10915 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
10916 | |
10917 | ;; |
10918 | RCC*) |
10919 | # Rational C++ 2.4.1 |
10920 | # FIXME: insert proper C++ library support |
10921 | ld_shlibs_CXX=no |
10922 | ;; |
10923 | cxx*) |
10924 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
10925 | 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 ${output_objdir}/so_locations -o $lib' |
10926 | |
10927 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
10928 | hardcode_libdir_separator_CXX=: |
10929 | |
10930 | # Commands to make compiler produce verbose output that lists |
10931 | # what "hidden" libraries, object files and flags are used when |
10932 | # linking a shared library. |
10933 | # |
10934 | # There doesn't appear to be a way to prevent this compiler from |
10935 | # explicitly linking system object files so we need to strip them |
10936 | # from the output so that they don't get included in the library |
10937 | # dependencies. |
10938 | 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' |
10939 | ;; |
10940 | *) |
10941 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
10942 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
10943 | 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}${output_objdir}/so_locations -o $lib' |
10944 | |
10945 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
10946 | hardcode_libdir_separator_CXX=: |
10947 | |
10948 | # Commands to make compiler produce verbose output that lists |
10949 | # what "hidden" libraries, object files and flags are used when |
10950 | # linking a shared library. |
10951 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
10952 | |
10953 | else |
10954 | # FIXME: insert proper C++ library support |
10955 | ld_shlibs_CXX=no |
10956 | fi |
10957 | ;; |
10958 | esac |
10959 | ;; |
10960 | osf4* | osf5*) |
10961 | case $cc_basename in |
10962 | KCC*) |
10963 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
10964 | |
10965 | # KCC will only create a shared library if the output file |
10966 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
10967 | # to its proper name (with version) after linking. |
10968 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
10969 | |
10970 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10971 | hardcode_libdir_separator_CXX=: |
10972 | |
10973 | # Archives containing C++ object files must be created using |
10974 | # the KAI C++ compiler. |
10975 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
10976 | ;; |
10977 | RCC*) |
10978 | # Rational C++ 2.4.1 |
10979 | # FIXME: insert proper C++ library support |
10980 | ld_shlibs_CXX=no |
10981 | ;; |
10982 | cxx*) |
10983 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
10984 | 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 ${output_objdir}/so_locations -o $lib' |
10985 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
10986 | echo "-hidden">> $lib.exp~ |
10987 | $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 ${output_objdir}/so_locations -o $lib~ |
10988 | $rm $lib.exp' |
10989 | |
10990 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
10991 | hardcode_libdir_separator_CXX=: |
10992 | |
10993 | # Commands to make compiler produce verbose output that lists |
10994 | # what "hidden" libraries, object files and flags are used when |
10995 | # linking a shared library. |
10996 | # |
10997 | # There doesn't appear to be a way to prevent this compiler from |
10998 | # explicitly linking system object files so we need to strip them |
10999 | # from the output so that they don't get included in the library |
11000 | # dependencies. |
11001 | 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' |
11002 | ;; |
11003 | *) |
11004 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11005 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11006 | 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}${output_objdir}/so_locations -o $lib' |
11007 | |
11008 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11009 | hardcode_libdir_separator_CXX=: |
11010 | |
11011 | # Commands to make compiler produce verbose output that lists |
11012 | # what "hidden" libraries, object files and flags are used when |
11013 | # linking a shared library. |
11014 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11015 | |
11016 | else |
11017 | # FIXME: insert proper C++ library support |
11018 | ld_shlibs_CXX=no |
11019 | fi |
11020 | ;; |
11021 | esac |
11022 | ;; |
11023 | psos*) |
11024 | # FIXME: insert proper C++ library support |
11025 | ld_shlibs_CXX=no |
11026 | ;; |
11027 | sunos4*) |
11028 | case $cc_basename in |
11029 | CC*) |
11030 | # Sun C++ 4.x |
11031 | # FIXME: insert proper C++ library support |
11032 | ld_shlibs_CXX=no |
11033 | ;; |
11034 | lcc*) |
11035 | # Lucid |
11036 | # FIXME: insert proper C++ library support |
11037 | ld_shlibs_CXX=no |
11038 | ;; |
11039 | *) |
11040 | # FIXME: insert proper C++ library support |
11041 | ld_shlibs_CXX=no |
11042 | ;; |
11043 | esac |
11044 | ;; |
11045 | solaris*) |
11046 | case $cc_basename in |
11047 | CC*) |
11048 | # Sun C++ 4.2, 5.x and Centerline C++ |
11049 | archive_cmds_need_lc_CXX=yes |
11050 | no_undefined_flag_CXX=' -zdefs' |
11051 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11052 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11053 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11054 | |
11055 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11056 | hardcode_shlibpath_var_CXX=no |
11057 | case $host_os in |
11058 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
11059 | *) |
11060 | # The C++ compiler is used as linker so we must use $wl |
11061 | # flag to pass the commands to the underlying system |
11062 | # linker. We must also pass each convience library through |
11063 | # to the system linker between allextract/defaultextract. |
11064 | # The C++ compiler will combine linker options so we |
11065 | # cannot just pass the convience library names through |
11066 | # without $wl. |
11067 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
11068 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' |
11069 | ;; |
11070 | esac |
11071 | link_all_deplibs_CXX=yes |
11072 | |
11073 | output_verbose_link_cmd='echo' |
11074 | |
11075 | # Archives containing C++ object files must be created using |
11076 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
11077 | # necessary to make sure instantiated templates are included |
11078 | # in the archive. |
11079 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
11080 | ;; |
11081 | gcx*) |
11082 | # Green Hills C++ Compiler |
11083 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11084 | |
11085 | # The C++ compiler must be used to create the archive. |
11086 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
11087 | ;; |
11088 | *) |
11089 | # GNU C++ compiler with Solaris linker |
11090 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11091 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
11092 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
11093 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11094 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11095 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11096 | |
11097 | # Commands to make compiler produce verbose output that lists |
11098 | # what "hidden" libraries, object files and flags are used when |
11099 | # linking a shared library. |
11100 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11101 | else |
11102 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
11103 | # platform. |
11104 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11105 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11106 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11107 | |
11108 | # Commands to make compiler produce verbose output that lists |
11109 | # what "hidden" libraries, object files and flags are used when |
11110 | # linking a shared library. |
11111 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11112 | fi |
11113 | |
11114 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
11115 | fi |
11116 | ;; |
11117 | esac |
11118 | ;; |
11119 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
11120 | no_undefined_flag_CXX='${wl}-z,text' |
11121 | archive_cmds_need_lc_CXX=no |
11122 | hardcode_shlibpath_var_CXX=no |
11123 | runpath_var='LD_RUN_PATH' |
11124 | |
11125 | case $cc_basename in |
11126 | CC*) |
11127 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11128 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11129 | ;; |
11130 | *) |
11131 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11132 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11133 | ;; |
11134 | esac |
11135 | ;; |
11136 | sysv5* | sco3.2v5* | sco5v6*) |
11137 | # Note: We can NOT use -z defs as we might desire, because we do not |
11138 | # link with -lc, and that would cause any symbols used from libc to |
11139 | # always be unresolved, which means just about no library would |
11140 | # ever link correctly. If we're not using GNU ld we use -z text |
11141 | # though, which does catch some bad symbols but isn't as heavy-handed |
11142 | # as -z defs. |
11143 | # For security reasons, it is highly recommended that you always |
11144 | # use absolute paths for naming shared libraries, and exclude the |
11145 | # DT_RUNPATH tag from executables and libraries. But doing so |
11146 | # requires that you compile everything twice, which is a pain. |
11147 | # So that behaviour is only enabled if SCOABSPATH is set to a |
11148 | # non-empty value in the environment. Most likely only useful for |
11149 | # creating official distributions of packages. |
11150 | # This is a hack until libtool officially supports absolute path |
11151 | # names for shared libraries. |
11152 | no_undefined_flag_CXX='${wl}-z,text' |
11153 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
11154 | archive_cmds_need_lc_CXX=no |
11155 | hardcode_shlibpath_var_CXX=no |
11156 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
11157 | hardcode_libdir_separator_CXX=':' |
11158 | link_all_deplibs_CXX=yes |
11159 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
11160 | runpath_var='LD_RUN_PATH' |
11161 | |
11162 | case $cc_basename in |
11163 | CC*) |
11164 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11165 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11166 | ;; |
11167 | *) |
11168 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11169 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11170 | ;; |
11171 | esac |
11172 | ;; |
11173 | tandem*) |
11174 | case $cc_basename in |
11175 | NCC*) |
11176 | # NonStop-UX NCC 3.20 |
11177 | # FIXME: insert proper C++ library support |
11178 | ld_shlibs_CXX=no |
11179 | ;; |
11180 | *) |
11181 | # FIXME: insert proper C++ library support |
11182 | ld_shlibs_CXX=no |
11183 | ;; |
11184 | esac |
11185 | ;; |
11186 | vxworks*) |
11187 | # FIXME: insert proper C++ library support |
11188 | ld_shlibs_CXX=no |
11189 | ;; |
11190 | *) |
11191 | # FIXME: insert proper C++ library support |
11192 | ld_shlibs_CXX=no |
11193 | ;; |
11194 | esac |
11195 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
11196 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
11197 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
11198 | |
11199 | GCC_CXX="$GXX" |
11200 | LD_CXX="$LD" |
11201 | |
11202 | |
11203 | cat > conftest.$ac_ext <<EOF |
11204 | class Foo |
11205 | { |
11206 | public: |
11207 | Foo (void) { a = 0; } |
11208 | private: |
11209 | int a; |
11210 | }; |
11211 | EOF |
11212 | |
11213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11214 | (eval $ac_compile) 2>&5 |
11215 | ac_status=$? |
11216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11217 | (exit $ac_status); }; then |
11218 | # Parse the compiler output and extract the necessary |
11219 | # objects, libraries and library flags. |
11220 | |
11221 | # Sentinel used to keep track of whether or not we are before |
11222 | # the conftest object file. |
11223 | pre_test_object_deps_done=no |
11224 | |
11225 | # The `*' in the case matches for architectures that use `case' in |
11226 | # $output_verbose_cmd can trigger glob expansion during the loop |
11227 | # eval without this substitution. |
11228 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
11229 | |
11230 | for p in `eval $output_verbose_link_cmd`; do |
11231 | case $p in |
11232 | |
11233 | -L* | -R* | -l*) |
11234 | # Some compilers place space between "-{L,R}" and the path. |
11235 | # Remove the space. |
11236 | if test $p = "-L" \ |
11237 | || test $p = "-R"; then |
11238 | prev=$p |
11239 | continue |
11240 | else |
11241 | prev= |
11242 | fi |
11243 | |
11244 | if test "$pre_test_object_deps_done" = no; then |
11245 | case $p in |
11246 | -L* | -R*) |
11247 | # Internal compiler library paths should come after those |
11248 | # provided the user. The postdeps already come after the |
11249 | # user supplied libs so there is no need to process them. |
11250 | if test -z "$compiler_lib_search_path_CXX"; then |
11251 | compiler_lib_search_path_CXX="${prev}${p}" |
11252 | else |
11253 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
11254 | fi |
11255 | ;; |
11256 | # The "-l" case would never come before the object being |
11257 | # linked, so don't bother handling this case. |
11258 | esac |
11259 | else |
11260 | if test -z "$postdeps_CXX"; then |
11261 | postdeps_CXX="${prev}${p}" |
11262 | else |
11263 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
11264 | fi |
11265 | fi |
11266 | ;; |
11267 | |
11268 | *.$objext) |
11269 | # This assumes that the test object file only shows up |
11270 | # once in the compiler output. |
11271 | if test "$p" = "conftest.$objext"; then |
11272 | pre_test_object_deps_done=yes |
11273 | continue |
11274 | fi |
11275 | |
11276 | if test "$pre_test_object_deps_done" = no; then |
11277 | if test -z "$predep_objects_CXX"; then |
11278 | predep_objects_CXX="$p" |
11279 | else |
11280 | predep_objects_CXX="$predep_objects_CXX $p" |
11281 | fi |
11282 | else |
11283 | if test -z "$postdep_objects_CXX"; then |
11284 | postdep_objects_CXX="$p" |
11285 | else |
11286 | postdep_objects_CXX="$postdep_objects_CXX $p" |
11287 | fi |
11288 | fi |
11289 | ;; |
11290 | |
11291 | *) ;; # Ignore the rest. |
11292 | |
11293 | esac |
11294 | done |
11295 | |
11296 | # Clean up. |
11297 | rm -f a.out a.exe |
11298 | else |
11299 | echo "libtool.m4: error: problem compiling CXX test program" |
11300 | fi |
11301 | |
11302 | $rm -f confest.$objext |
11303 | |
11304 | # PORTME: override above test on systems where it is broken |
11305 | case $host_os in |
11306 | interix3*) |
11307 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
11308 | # hack all around it, let's just trust "g++" to DTRT. |
11309 | predep_objects_CXX= |
11310 | postdep_objects_CXX= |
11311 | postdeps_CXX= |
11312 | ;; |
11313 | |
11314 | solaris*) |
11315 | case $cc_basename in |
11316 | CC*) |
11317 | # Adding this requires a known-good setup of shared libraries for |
11318 | # Sun compiler versions before 5.6, else PIC objects from an old |
11319 | # archive will be linked into the output, leading to subtle bugs. |
11320 | postdeps_CXX='-lCstd -lCrun' |
11321 | ;; |
11322 | esac |
11323 | ;; |
11324 | esac |
11325 | |
11326 | |
11327 | case " $postdeps_CXX " in |
11328 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
11329 | esac |
11330 | |
11331 | lt_prog_compiler_wl_CXX= |
11332 | lt_prog_compiler_pic_CXX= |
11333 | lt_prog_compiler_static_CXX= |
11334 | |
11335 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
11336 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
11337 | |
11338 | # C++ specific cases for pic, static, wl, etc. |
11339 | if test "$GXX" = yes; then |
11340 | lt_prog_compiler_wl_CXX='-Wl,' |
11341 | lt_prog_compiler_static_CXX='-static' |
11342 | |
11343 | case $host_os in |
11344 | aix*) |
11345 | # All AIX code is PIC. |
11346 | if test "$host_cpu" = ia64; then |
11347 | # AIX 5 now supports IA64 processor |
11348 | lt_prog_compiler_static_CXX='-Bstatic' |
11349 | fi |
11350 | ;; |
11351 | amigaos*) |
11352 | # FIXME: we need at least 68020 code to build shared libraries, but |
11353 | # adding the `-m68020' flag to GCC prevents building anything better, |
11354 | # like `-m68040'. |
11355 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
11356 | ;; |
11357 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
11358 | # PIC is the default for these OSes. |
11359 | ;; |
11360 | mingw* | os2* | pw32*) |
11361 | # This hack is so that the source file can tell whether it is being |
11362 | # built for inclusion in a dll (and should export symbols for example). |
11363 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
11364 | ;; |
11365 | darwin* | rhapsody*) |
11366 | # PIC is the default on this platform |
11367 | # Common symbols not allowed in MH_DYLIB files |
11368 | lt_prog_compiler_pic_CXX='-fno-common' |
11369 | ;; |
11370 | *djgpp*) |
11371 | # DJGPP does not support shared libraries at all |
11372 | lt_prog_compiler_pic_CXX= |
11373 | ;; |
11374 | interix3*) |
11375 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
11376 | # Instead, we relocate shared libraries at runtime. |
11377 | ;; |
11378 | sysv4*MP*) |
11379 | if test -d /usr/nec; then |
11380 | lt_prog_compiler_pic_CXX=-Kconform_pic |
11381 | fi |
11382 | ;; |
11383 | hpux*) |
11384 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
11385 | # not for PA HP-UX. |
11386 | case $host_cpu in |
11387 | hppa*64*|ia64*) |
11388 | ;; |
11389 | *) |
11390 | lt_prog_compiler_pic_CXX='-fPIC' |
11391 | ;; |
11392 | esac |
11393 | ;; |
11394 | *) |
11395 | lt_prog_compiler_pic_CXX='-fPIC' |
11396 | ;; |
11397 | esac |
11398 | else |
11399 | case $host_os in |
11400 | aix4* | aix5*) |
11401 | # All AIX code is PIC. |
11402 | if test "$host_cpu" = ia64; then |
11403 | # AIX 5 now supports IA64 processor |
11404 | lt_prog_compiler_static_CXX='-Bstatic' |
11405 | else |
11406 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
11407 | fi |
11408 | ;; |
11409 | chorus*) |
11410 | case $cc_basename in |
11411 | cxch68*) |
11412 | # Green Hills C++ Compiler |
11413 | # _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" |
11414 | ;; |
11415 | esac |
11416 | ;; |
11417 | darwin*) |
11418 | # PIC is the default on this platform |
11419 | # Common symbols not allowed in MH_DYLIB files |
11420 | case $cc_basename in |
11421 | xlc*) |
11422 | lt_prog_compiler_pic_CXX='-qnocommon' |
11423 | lt_prog_compiler_wl_CXX='-Wl,' |
11424 | ;; |
11425 | esac |
11426 | ;; |
11427 | dgux*) |
11428 | case $cc_basename in |
11429 | ec++*) |
11430 | lt_prog_compiler_pic_CXX='-KPIC' |
11431 | ;; |
11432 | ghcx*) |
11433 | # Green Hills C++ Compiler |
11434 | lt_prog_compiler_pic_CXX='-pic' |
11435 | ;; |
11436 | *) |
11437 | ;; |
11438 | esac |
11439 | ;; |
11440 | freebsd* | kfreebsd*-gnu | dragonfly*) |
11441 | # FreeBSD uses GNU C++ |
11442 | ;; |
11443 | hpux9* | hpux10* | hpux11*) |
11444 | case $cc_basename in |
11445 | CC*) |
11446 | lt_prog_compiler_wl_CXX='-Wl,' |
11447 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
11448 | if test "$host_cpu" != ia64; then |
11449 | lt_prog_compiler_pic_CXX='+Z' |
11450 | fi |
11451 | ;; |
11452 | aCC*) |
11453 | lt_prog_compiler_wl_CXX='-Wl,' |
11454 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
11455 | case $host_cpu in |
11456 | hppa*64*|ia64*) |
11457 | # +Z the default |
11458 | ;; |
11459 | *) |
11460 | lt_prog_compiler_pic_CXX='+Z' |
11461 | ;; |
11462 | esac |
11463 | ;; |
11464 | *) |
11465 | ;; |
11466 | esac |
11467 | ;; |
11468 | interix*) |
11469 | # This is c89, which is MS Visual C++ (no shared libs) |
11470 | # Anyone wants to do a port? |
11471 | ;; |
11472 | irix5* | irix6* | nonstopux*) |
11473 | case $cc_basename in |
11474 | CC*) |
11475 | lt_prog_compiler_wl_CXX='-Wl,' |
11476 | lt_prog_compiler_static_CXX='-non_shared' |
11477 | # CC pic flag -KPIC is the default. |
11478 | ;; |
11479 | *) |
11480 | ;; |
11481 | esac |
11482 | ;; |
11483 | linux*) |
11484 | case $cc_basename in |
11485 | KCC*) |
11486 | # KAI C++ Compiler |
11487 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
11488 | lt_prog_compiler_pic_CXX='-fPIC' |
11489 | ;; |
11490 | icpc* | ecpc*) |
11491 | # Intel C++ |
11492 | lt_prog_compiler_wl_CXX='-Wl,' |
11493 | lt_prog_compiler_pic_CXX='-KPIC' |
11494 | lt_prog_compiler_static_CXX='-static' |
11495 | ;; |
11496 | pgCC*) |
11497 | # Portland Group C++ compiler. |
11498 | lt_prog_compiler_wl_CXX='-Wl,' |
11499 | lt_prog_compiler_pic_CXX='-fpic' |
11500 | lt_prog_compiler_static_CXX='-Bstatic' |
11501 | ;; |
11502 | cxx*) |
11503 | # Compaq C++ |
11504 | # Make sure the PIC flag is empty. It appears that all Alpha |
11505 | # Linux and Compaq Tru64 Unix objects are PIC. |
11506 | lt_prog_compiler_pic_CXX= |
11507 | lt_prog_compiler_static_CXX='-non_shared' |
11508 | ;; |
11509 | *) |
11510 | ;; |
11511 | esac |
11512 | ;; |
11513 | lynxos*) |
11514 | ;; |
11515 | m88k*) |
11516 | ;; |
11517 | mvs*) |
11518 | case $cc_basename in |
11519 | cxx*) |
11520 | lt_prog_compiler_pic_CXX='-W c,exportall' |
11521 | ;; |
11522 | *) |
11523 | ;; |
11524 | esac |
11525 | ;; |
11526 | netbsd*) |
11527 | ;; |
11528 | osf3* | osf4* | osf5*) |
11529 | case $cc_basename in |
11530 | KCC*) |
11531 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
11532 | ;; |
11533 | RCC*) |
11534 | # Rational C++ 2.4.1 |
11535 | lt_prog_compiler_pic_CXX='-pic' |
11536 | ;; |
11537 | cxx*) |
11538 | # Digital/Compaq C++ |
11539 | lt_prog_compiler_wl_CXX='-Wl,' |
11540 | # Make sure the PIC flag is empty. It appears that all Alpha |
11541 | # Linux and Compaq Tru64 Unix objects are PIC. |
11542 | lt_prog_compiler_pic_CXX= |
11543 | lt_prog_compiler_static_CXX='-non_shared' |
11544 | ;; |
11545 | *) |
11546 | ;; |
11547 | esac |
11548 | ;; |
11549 | psos*) |
11550 | ;; |
11551 | solaris*) |
11552 | case $cc_basename in |
11553 | CC*) |
11554 | # Sun C++ 4.2, 5.x and Centerline C++ |
11555 | lt_prog_compiler_pic_CXX='-KPIC' |
11556 | lt_prog_compiler_static_CXX='-Bstatic' |
11557 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
11558 | ;; |
11559 | gcx*) |
11560 | # Green Hills C++ Compiler |
11561 | lt_prog_compiler_pic_CXX='-PIC' |
11562 | ;; |
11563 | *) |
11564 | ;; |
11565 | esac |
11566 | ;; |
11567 | sunos4*) |
11568 | case $cc_basename in |
11569 | CC*) |
11570 | # Sun C++ 4.x |
11571 | lt_prog_compiler_pic_CXX='-pic' |
11572 | lt_prog_compiler_static_CXX='-Bstatic' |
11573 | ;; |
11574 | lcc*) |
11575 | # Lucid |
11576 | lt_prog_compiler_pic_CXX='-pic' |
11577 | ;; |
11578 | *) |
11579 | ;; |
11580 | esac |
11581 | ;; |
11582 | tandem*) |
11583 | case $cc_basename in |
11584 | NCC*) |
11585 | # NonStop-UX NCC 3.20 |
11586 | lt_prog_compiler_pic_CXX='-KPIC' |
11587 | ;; |
11588 | *) |
11589 | ;; |
11590 | esac |
11591 | ;; |
11592 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
11593 | case $cc_basename in |
11594 | CC*) |
11595 | lt_prog_compiler_wl_CXX='-Wl,' |
11596 | lt_prog_compiler_pic_CXX='-KPIC' |
11597 | lt_prog_compiler_static_CXX='-Bstatic' |
11598 | ;; |
11599 | esac |
11600 | ;; |
11601 | vxworks*) |
11602 | ;; |
11603 | *) |
11604 | lt_prog_compiler_can_build_shared_CXX=no |
11605 | ;; |
11606 | esac |
11607 | fi |
11608 | |
11609 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
11610 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
11611 | |
11612 | # |
11613 | # Check to make sure the PIC flag actually works. |
11614 | # |
11615 | if test -n "$lt_prog_compiler_pic_CXX"; then |
11616 | |
11617 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
11618 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
11619 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
11620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11621 | else |
11622 | lt_prog_compiler_pic_works_CXX=no |
11623 | ac_outfile=conftest.$ac_objext |
11624 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
11625 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
11626 | # Insert the option either (1) after the last *FLAGS variable, or |
11627 | # (2) before a word containing "conftest.", or (3) at the end. |
11628 | # Note that $ac_compile itself does not contain backslashes and begins |
11629 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
11630 | # The option is referenced via a variable to avoid confusing sed. |
11631 | lt_compile=`echo "$ac_compile" | $SED \ |
11632 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
11633 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
11634 | -e 's:$: $lt_compiler_flag:'` |
11635 | (eval echo "\"\$as_me:11635: $lt_compile\"" >&5) |
11636 | (eval "$lt_compile" 2>conftest.err) |
11637 | ac_status=$? |
11638 | cat conftest.err >&5 |
11639 | echo "$as_me:11639: \$? = $ac_status" >&5 |
11640 | if (exit $ac_status) && test -s "$ac_outfile"; then |
11641 | # The compiler can only warn and ignore the option if not recognized |
11642 | # So say no if there are warnings other than the usual output. |
11643 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
11644 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
11645 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
11646 | lt_prog_compiler_pic_works_CXX=yes |
11647 | fi |
11648 | fi |
11649 | $rm conftest* |
11650 | |
11651 | fi |
11652 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
11653 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
11654 | |
11655 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
11656 | case $lt_prog_compiler_pic_CXX in |
11657 | "" | " "*) ;; |
11658 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
11659 | esac |
11660 | else |
11661 | lt_prog_compiler_pic_CXX= |
11662 | lt_prog_compiler_can_build_shared_CXX=no |
11663 | fi |
11664 | |
11665 | fi |
11666 | case $host_os in |
11667 | # For platforms which do not support PIC, -DPIC is meaningless: |
11668 | *djgpp*) |
11669 | lt_prog_compiler_pic_CXX= |
11670 | ;; |
11671 | *) |
11672 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
11673 | ;; |
11674 | esac |
11675 | |
11676 | # |
11677 | # Check to make sure the static flag actually works. |
11678 | # |
11679 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
11680 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
11681 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
11682 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
11683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11684 | else |
11685 | lt_prog_compiler_static_works_CXX=no |
11686 | save_LDFLAGS="$LDFLAGS" |
11687 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
11688 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
11689 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
11690 | # The linker can only warn and ignore the option if not recognized |
11691 | # So say no if there are warnings |
11692 | if test -s conftest.err; then |
11693 | # Append any errors to the config.log. |
11694 | cat conftest.err 1>&5 |
11695 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
11696 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
11697 | if diff conftest.exp conftest.er2 >/dev/null; then |
11698 | lt_prog_compiler_static_works_CXX=yes |
11699 | fi |
11700 | else |
11701 | lt_prog_compiler_static_works_CXX=yes |
11702 | fi |
11703 | fi |
11704 | $rm conftest* |
11705 | LDFLAGS="$save_LDFLAGS" |
11706 | |
11707 | fi |
11708 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
11709 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 |
11710 | |
11711 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
11712 | : |
11713 | else |
11714 | lt_prog_compiler_static_CXX= |
11715 | fi |
11716 | |
11717 | |
11718 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
11719 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
11720 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
11721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11722 | else |
11723 | lt_cv_prog_compiler_c_o_CXX=no |
11724 | $rm -r conftest 2>/dev/null |
11725 | mkdir conftest |
11726 | cd conftest |
11727 | mkdir out |
11728 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
11729 | |
11730 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
11731 | # Insert the option either (1) after the last *FLAGS variable, or |
11732 | # (2) before a word containing "conftest.", or (3) at the end. |
11733 | # Note that $ac_compile itself does not contain backslashes and begins |
11734 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
11735 | lt_compile=`echo "$ac_compile" | $SED \ |
11736 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
11737 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
11738 | -e 's:$: $lt_compiler_flag:'` |
11739 | (eval echo "\"\$as_me:11739: $lt_compile\"" >&5) |
11740 | (eval "$lt_compile" 2>out/conftest.err) |
11741 | ac_status=$? |
11742 | cat out/conftest.err >&5 |
11743 | echo "$as_me:11743: \$? = $ac_status" >&5 |
11744 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
11745 | then |
11746 | # The compiler can only warn and ignore the option if not recognized |
11747 | # So say no if there are warnings |
11748 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
11749 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
11750 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
11751 | lt_cv_prog_compiler_c_o_CXX=yes |
11752 | fi |
11753 | fi |
11754 | chmod u+w . 2>&5 |
11755 | $rm conftest* |
11756 | # SGI C++ compiler will create directory out/ii_files/ for |
11757 | # template instantiation |
11758 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
11759 | $rm out/* && rmdir out |
11760 | cd .. |
11761 | rmdir conftest |
11762 | $rm conftest* |
11763 | |
11764 | fi |
11765 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
11766 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
11767 | |
11768 | |
11769 | hard_links="nottested" |
11770 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
11771 | # do not overwrite the value of need_locks provided by the user |
11772 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
11773 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
11774 | hard_links=yes |
11775 | $rm conftest* |
11776 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
11777 | touch conftest.a |
11778 | ln conftest.a conftest.b 2>&5 || hard_links=no |
11779 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
11780 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
11781 | echo "${ECHO_T}$hard_links" >&6 |
11782 | if test "$hard_links" = no; then |
11783 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
11784 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
11785 | need_locks=warn |
11786 | fi |
11787 | else |
11788 | need_locks=no |
11789 | fi |
11790 | |
11791 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
11792 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
11793 | |
11794 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
11795 | case $host_os in |
11796 | aix4* | aix5*) |
11797 | # If we're using GNU nm, then we don't want the "-C" option. |
11798 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
11799 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
11800 | 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' |
11801 | else |
11802 | 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' |
11803 | fi |
11804 | ;; |
11805 | pw32*) |
11806 | export_symbols_cmds_CXX="$ltdll_cmds" |
11807 | ;; |
11808 | cygwin* | mingw*) |
11809 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
11810 | ;; |
11811 | *) |
11812 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
11813 | ;; |
11814 | esac |
11815 | |
11816 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
11817 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
11818 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
11819 | |
11820 | # |
11821 | # Do we need to explicitly link libc? |
11822 | # |
11823 | case "x$archive_cmds_need_lc_CXX" in |
11824 | x|xyes) |
11825 | # Assume -lc should be added |
11826 | archive_cmds_need_lc_CXX=yes |
11827 | |
11828 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
11829 | case $archive_cmds_CXX in |
11830 | *'~'*) |
11831 | # FIXME: we may have to deal with multi-command sequences. |
11832 | ;; |
11833 | '$CC '*) |
11834 | # Test whether the compiler implicitly links with -lc since on some |
11835 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
11836 | # to ld, don't add -lc before -lgcc. |
11837 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
11838 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
11839 | $rm conftest* |
11840 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
11841 | |
11842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11843 | (eval $ac_compile) 2>&5 |
11844 | ac_status=$? |
11845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11846 | (exit $ac_status); } 2>conftest.err; then |
11847 | soname=conftest |
11848 | lib=conftest |
11849 | libobjs=conftest.$ac_objext |
11850 | deplibs= |
11851 | wl=$lt_prog_compiler_wl_CXX |
11852 | pic_flag=$lt_prog_compiler_pic_CXX |
11853 | compiler_flags=-v |
11854 | linker_flags=-v |
11855 | verstring= |
11856 | output_objdir=. |
11857 | libname=conftest |
11858 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
11859 | allow_undefined_flag_CXX= |
11860 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
11861 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
11862 | ac_status=$? |
11863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11864 | (exit $ac_status); } |
11865 | then |
11866 | archive_cmds_need_lc_CXX=no |
11867 | else |
11868 | archive_cmds_need_lc_CXX=yes |
11869 | fi |
11870 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
11871 | else |
11872 | cat conftest.err 1>&5 |
11873 | fi |
11874 | $rm conftest* |
11875 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
11876 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
11877 | ;; |
11878 | esac |
11879 | fi |
11880 | ;; |
11881 | esac |
11882 | |
11883 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
11884 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
11885 | library_names_spec= |
11886 | libname_spec='lib$name' |
11887 | soname_spec= |
11888 | shrext_cmds=".so" |
11889 | postinstall_cmds= |
11890 | postuninstall_cmds= |
11891 | finish_cmds= |
11892 | finish_eval= |
11893 | shlibpath_var= |
11894 | shlibpath_overrides_runpath=unknown |
11895 | version_type=none |
11896 | dynamic_linker="$host_os ld.so" |
11897 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
11898 | if test "$GCC" = yes; then |
11899 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
11900 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
11901 | # if the path contains ";" then we assume it to be the separator |
11902 | # otherwise default to the standard path separator (i.e. ":") - it is |
11903 | # assumed that no part of a normal pathname contains ";" but that should |
11904 | # okay in the real world where ";" in dirpaths is itself problematic. |
11905 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
11906 | else |
11907 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
11908 | fi |
11909 | else |
11910 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
11911 | fi |
11912 | need_lib_prefix=unknown |
11913 | hardcode_into_libs=no |
11914 | |
11915 | # when you set need_version to no, make sure it does not cause -set_version |
11916 | # flags to be left without arguments |
11917 | need_version=unknown |
11918 | |
11919 | case $host_os in |
11920 | aix3*) |
11921 | version_type=linux |
11922 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
11923 | shlibpath_var=LIBPATH |
11924 | |
11925 | # AIX 3 has no versioning support, so we append a major version to the name. |
11926 | soname_spec='${libname}${release}${shared_ext}$major' |
11927 | ;; |
11928 | |
11929 | aix4* | aix5*) |
11930 | version_type=linux |
11931 | need_lib_prefix=no |
11932 | need_version=no |
11933 | hardcode_into_libs=yes |
11934 | if test "$host_cpu" = ia64; then |
11935 | # AIX 5 supports IA64 |
11936 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
11937 | shlibpath_var=LD_LIBRARY_PATH |
11938 | else |
11939 | # With GCC up to 2.95.x, collect2 would create an import file |
11940 | # for dependence libraries. The import file would start with |
11941 | # the line `#! .'. This would cause the generated library to |
11942 | # depend on `.', always an invalid library. This was fixed in |
11943 | # development snapshots of GCC prior to 3.0. |
11944 | case $host_os in |
11945 | aix4 | aix4.[01] | aix4.[01].*) |
11946 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
11947 | echo ' yes ' |
11948 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
11949 | : |
11950 | else |
11951 | can_build_shared=no |
11952 | fi |
11953 | ;; |
11954 | esac |
11955 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
11956 | # soname into executable. Probably we can add versioning support to |
11957 | # collect2, so additional links can be useful in future. |
11958 | if test "$aix_use_runtimelinking" = yes; then |
11959 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
11960 | # instead of lib<name>.a to let people know that these are not |
11961 | # typical AIX shared libraries. |
11962 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11963 | else |
11964 | # We preserve .a as extension for shared libraries through AIX4.2 |
11965 | # and later when we are not doing run time linking. |
11966 | library_names_spec='${libname}${release}.a $libname.a' |
11967 | soname_spec='${libname}${release}${shared_ext}$major' |
11968 | fi |
11969 | shlibpath_var=LIBPATH |
11970 | fi |
11971 | ;; |
11972 | |
11973 | amigaos*) |
11974 | library_names_spec='$libname.ixlibrary $libname.a' |
11975 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
11976 | 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' |
11977 | ;; |
11978 | |
11979 | beos*) |
11980 | library_names_spec='${libname}${shared_ext}' |
11981 | dynamic_linker="$host_os ld.so" |
11982 | shlibpath_var=LIBRARY_PATH |
11983 | ;; |
11984 | |
11985 | bsdi[45]*) |
11986 | version_type=linux |
11987 | need_version=no |
11988 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11989 | soname_spec='${libname}${release}${shared_ext}$major' |
11990 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
11991 | shlibpath_var=LD_LIBRARY_PATH |
11992 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
11993 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
11994 | # the default ld.so.conf also contains /usr/contrib/lib and |
11995 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
11996 | # libtool to hard-code these into programs |
11997 | ;; |
11998 | |
11999 | cygwin* | mingw* | pw32*) |
12000 | version_type=windows |
12001 | shrext_cmds=".dll" |
12002 | need_version=no |
12003 | need_lib_prefix=no |
12004 | |
12005 | case $GCC,$host_os in |
12006 | yes,cygwin* | yes,mingw* | yes,pw32*) |
12007 | library_names_spec='$libname.dll.a' |
12008 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
12009 | postinstall_cmds='base_file=`basename \${file}`~ |
12010 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
12011 | dldir=$destdir/`dirname \$dlpath`~ |
12012 | test -d \$dldir || mkdir -p \$dldir~ |
12013 | $install_prog $dir/$dlname \$dldir/$dlname~ |
12014 | chmod a+x \$dldir/$dlname' |
12015 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
12016 | dlpath=$dir/\$dldll~ |
12017 | $rm \$dlpath' |
12018 | shlibpath_overrides_runpath=yes |
12019 | |
12020 | case $host_os in |
12021 | cygwin*) |
12022 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
12023 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12024 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
12025 | ;; |
12026 | mingw*) |
12027 | # MinGW DLLs use traditional 'lib' prefix |
12028 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12029 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
12030 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
12031 | # It is most probably a Windows format PATH printed by |
12032 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
12033 | # path with ; separators, and with drive letters. We can handle the |
12034 | # drive letters (cygwin fileutils understands them), so leave them, |
12035 | # especially as we might pass files found there to a mingw objdump, |
12036 | # which wouldn't understand a cygwinified path. Ahh. |
12037 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
12038 | else |
12039 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12040 | fi |
12041 | ;; |
12042 | pw32*) |
12043 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
12044 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12045 | ;; |
12046 | esac |
12047 | ;; |
12048 | |
12049 | *) |
12050 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
12051 | ;; |
12052 | esac |
12053 | dynamic_linker='Win32 ld.exe' |
12054 | # FIXME: first we should search . and the directory the executable is in |
12055 | shlibpath_var=PATH |
12056 | ;; |
12057 | |
12058 | darwin* | rhapsody*) |
12059 | dynamic_linker="$host_os dyld" |
12060 | version_type=darwin |
12061 | need_lib_prefix=no |
12062 | need_version=no |
12063 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
12064 | soname_spec='${libname}${release}${major}$shared_ext' |
12065 | shlibpath_overrides_runpath=yes |
12066 | shlibpath_var=DYLD_LIBRARY_PATH |
12067 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
12068 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
12069 | if test "$GCC" = yes; then |
12070 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
12071 | else |
12072 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
12073 | fi |
12074 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
12075 | ;; |
12076 | |
12077 | dgux*) |
12078 | version_type=linux |
12079 | need_lib_prefix=no |
12080 | need_version=no |
12081 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
12082 | soname_spec='${libname}${release}${shared_ext}$major' |
12083 | shlibpath_var=LD_LIBRARY_PATH |
12084 | ;; |
12085 | |
12086 | freebsd1*) |
12087 | dynamic_linker=no |
12088 | ;; |
12089 | |
12090 | kfreebsd*-gnu) |
12091 | version_type=linux |
12092 | need_lib_prefix=no |
12093 | need_version=no |
12094 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12095 | soname_spec='${libname}${release}${shared_ext}$major' |
12096 | shlibpath_var=LD_LIBRARY_PATH |
12097 | shlibpath_overrides_runpath=no |
12098 | hardcode_into_libs=yes |
12099 | dynamic_linker='GNU ld.so' |
12100 | ;; |
12101 | |
12102 | freebsd* | dragonfly*) |
12103 | # DragonFly does not have aout. When/if they implement a new |
12104 | # versioning mechanism, adjust this. |
12105 | if test -x /usr/bin/objformat; then |
12106 | objformat=`/usr/bin/objformat` |
12107 | else |
12108 | case $host_os in |
12109 | freebsd[123]*) objformat=aout ;; |
12110 | *) objformat=elf ;; |
12111 | esac |
12112 | fi |
12113 | version_type=freebsd-$objformat |
12114 | case $version_type in |
12115 | freebsd-elf*) |
12116 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
12117 | need_version=no |
12118 | need_lib_prefix=no |
12119 | ;; |
12120 | freebsd-*) |
12121 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
12122 | need_version=yes |
12123 | ;; |
12124 | esac |
12125 | shlibpath_var=LD_LIBRARY_PATH |
12126 | case $host_os in |
12127 | freebsd2*) |
12128 | shlibpath_overrides_runpath=yes |
12129 | ;; |
12130 | freebsd3.[01]* | freebsdelf3.[01]*) |
12131 | shlibpath_overrides_runpath=yes |
12132 | hardcode_into_libs=yes |
12133 | ;; |
12134 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
12135 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
12136 | shlibpath_overrides_runpath=no |
12137 | hardcode_into_libs=yes |
12138 | ;; |
12139 | freebsd*) # from 4.6 on |
12140 | shlibpath_overrides_runpath=yes |
12141 | hardcode_into_libs=yes |
12142 | ;; |
12143 | esac |
12144 | ;; |
12145 | |
12146 | gnu*) |
12147 | version_type=linux |
12148 | need_lib_prefix=no |
12149 | need_version=no |
12150 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
12151 | soname_spec='${libname}${release}${shared_ext}$major' |
12152 | shlibpath_var=LD_LIBRARY_PATH |
12153 | hardcode_into_libs=yes |
12154 | ;; |
12155 | |
12156 | hpux9* | hpux10* | hpux11*) |
12157 | # Give a soname corresponding to the major version so that dld.sl refuses to |
12158 | # link against other versions. |
12159 | version_type=sunos |
12160 | need_lib_prefix=no |
12161 | need_version=no |
12162 | case $host_cpu in |
12163 | ia64*) |
12164 | shrext_cmds='.so' |
12165 | hardcode_into_libs=yes |
12166 | dynamic_linker="$host_os dld.so" |
12167 | shlibpath_var=LD_LIBRARY_PATH |
12168 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12169 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12170 | soname_spec='${libname}${release}${shared_ext}$major' |
12171 | if test "X$HPUX_IA64_MODE" = X32; then |
12172 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
12173 | else |
12174 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
12175 | fi |
12176 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12177 | ;; |
12178 | hppa*64*) |
12179 | shrext_cmds='.sl' |
12180 | hardcode_into_libs=yes |
12181 | dynamic_linker="$host_os dld.sl" |
12182 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
12183 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12184 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12185 | soname_spec='${libname}${release}${shared_ext}$major' |
12186 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
12187 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12188 | ;; |
12189 | *) |
12190 | shrext_cmds='.sl' |
12191 | dynamic_linker="$host_os dld.sl" |
12192 | shlibpath_var=SHLIB_PATH |
12193 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
12194 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12195 | soname_spec='${libname}${release}${shared_ext}$major' |
12196 | ;; |
12197 | esac |
12198 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
12199 | postinstall_cmds='chmod 555 $lib' |
12200 | ;; |
12201 | |
12202 | interix3*) |
12203 | version_type=linux |
12204 | need_lib_prefix=no |
12205 | need_version=no |
12206 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12207 | soname_spec='${libname}${release}${shared_ext}$major' |
12208 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
12209 | shlibpath_var=LD_LIBRARY_PATH |
12210 | shlibpath_overrides_runpath=no |
12211 | hardcode_into_libs=yes |
12212 | ;; |
12213 | |
12214 | irix5* | irix6* | nonstopux*) |
12215 | case $host_os in |
12216 | nonstopux*) version_type=nonstopux ;; |
12217 | *) |
12218 | if test "$lt_cv_prog_gnu_ld" = yes; then |
12219 | version_type=linux |
12220 | else |
12221 | version_type=irix |
12222 | fi ;; |
12223 | esac |
12224 | need_lib_prefix=no |
12225 | need_version=no |
12226 | soname_spec='${libname}${release}${shared_ext}$major' |
12227 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
12228 | case $host_os in |
12229 | irix5* | nonstopux*) |
12230 | libsuff= shlibsuff= |
12231 | ;; |
12232 | *) |
12233 | case $LD in # libtool.m4 will add one of these switches to LD |
12234 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
12235 | libsuff= shlibsuff= libmagic=32-bit;; |
12236 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
12237 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
12238 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
12239 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
12240 | *) libsuff= shlibsuff= libmagic=never-match;; |
12241 | esac |
12242 | ;; |
12243 | esac |
12244 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
12245 | shlibpath_overrides_runpath=no |
12246 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
12247 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
12248 | hardcode_into_libs=yes |
12249 | ;; |
12250 | |
12251 | # No shared lib support for Linux oldld, aout, or coff. |
12252 | linux*oldld* | linux*aout* | linux*coff*) |
12253 | dynamic_linker=no |
12254 | ;; |
12255 | |
12256 | # This must be Linux ELF. |
12257 | linux*) |
12258 | version_type=linux |
12259 | need_lib_prefix=no |
12260 | need_version=no |
12261 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12262 | soname_spec='${libname}${release}${shared_ext}$major' |
12263 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
12264 | shlibpath_var=LD_LIBRARY_PATH |
12265 | shlibpath_overrides_runpath=no |
12266 | # This implies no fast_install, which is unacceptable. |
12267 | # Some rework will be needed to allow for fast_install |
12268 | # before this can be enabled. |
12269 | hardcode_into_libs=yes |
12270 | |
12271 | # find out which ABI we are using |
12272 | libsuff= |
12273 | case "$host_cpu" in |
12274 | x86_64*|s390x*|powerpc64*) |
12275 | echo '#line 12275 "configure"' > conftest.$ac_ext |
12276 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12277 | (eval $ac_compile) 2>&5 |
12278 | ac_status=$? |
12279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12280 | (exit $ac_status); }; then |
12281 | case `/usr/bin/file conftest.$ac_objext` in |
12282 | *64-bit*) |
12283 | libsuff=64 |
12284 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
12285 | ;; |
12286 | esac |
12287 | fi |
12288 | rm -rf conftest* |
12289 | ;; |
12290 | esac |
12291 | |
12292 | # Append ld.so.conf contents to the search path |
12293 | if test -f /etc/ld.so.conf; then |
12294 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
12295 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
12296 | fi |
12297 | |
12298 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
12299 | # powerpc, because MkLinux only supported shared libraries with the |
12300 | # GNU dynamic linker. Since this was broken with cross compilers, |
12301 | # most powerpc-linux boxes support dynamic linking these days and |
12302 | # people can always --disable-shared, the test was removed, and we |
12303 | # assume the GNU/Linux dynamic linker is in use. |
12304 | dynamic_linker='GNU/Linux ld.so' |
12305 | ;; |
12306 | |
12307 | knetbsd*-gnu) |
12308 | version_type=linux |
12309 | need_lib_prefix=no |
12310 | need_version=no |
12311 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12312 | soname_spec='${libname}${release}${shared_ext}$major' |
12313 | shlibpath_var=LD_LIBRARY_PATH |
12314 | shlibpath_overrides_runpath=no |
12315 | hardcode_into_libs=yes |
12316 | dynamic_linker='GNU ld.so' |
12317 | ;; |
12318 | |
12319 | netbsd*) |
12320 | version_type=sunos |
12321 | need_lib_prefix=no |
12322 | need_version=no |
12323 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
12324 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12325 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
12326 | dynamic_linker='NetBSD (a.out) ld.so' |
12327 | else |
12328 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12329 | soname_spec='${libname}${release}${shared_ext}$major' |
12330 | dynamic_linker='NetBSD ld.elf_so' |
12331 | fi |
12332 | shlibpath_var=LD_LIBRARY_PATH |
12333 | shlibpath_overrides_runpath=yes |
12334 | hardcode_into_libs=yes |
12335 | ;; |
12336 | |
12337 | newsos6) |
12338 | version_type=linux |
12339 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12340 | shlibpath_var=LD_LIBRARY_PATH |
12341 | shlibpath_overrides_runpath=yes |
12342 | ;; |
12343 | |
12344 | nto-qnx*) |
12345 | version_type=linux |
12346 | need_lib_prefix=no |
12347 | need_version=no |
12348 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12349 | soname_spec='${libname}${release}${shared_ext}$major' |
12350 | shlibpath_var=LD_LIBRARY_PATH |
12351 | shlibpath_overrides_runpath=yes |
12352 | ;; |
12353 | |
12354 | openbsd*) |
12355 | version_type=sunos |
12356 | sys_lib_dlsearch_path_spec="/usr/lib" |
12357 | need_lib_prefix=no |
12358 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
12359 | case $host_os in |
12360 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
12361 | *) need_version=no ;; |
12362 | esac |
12363 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12364 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
12365 | shlibpath_var=LD_LIBRARY_PATH |
12366 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
12367 | case $host_os in |
12368 | openbsd2.[89] | openbsd2.[89].*) |
12369 | shlibpath_overrides_runpath=no |
12370 | ;; |
12371 | *) |
12372 | shlibpath_overrides_runpath=yes |
12373 | ;; |
12374 | esac |
12375 | else |
12376 | shlibpath_overrides_runpath=yes |
12377 | fi |
12378 | ;; |
12379 | |
12380 | os2*) |
12381 | libname_spec='$name' |
12382 | shrext_cmds=".dll" |
12383 | need_lib_prefix=no |
12384 | library_names_spec='$libname${shared_ext} $libname.a' |
12385 | dynamic_linker='OS/2 ld.exe' |
12386 | shlibpath_var=LIBPATH |
12387 | ;; |
12388 | |
12389 | osf3* | osf4* | osf5*) |
12390 | version_type=osf |
12391 | need_lib_prefix=no |
12392 | need_version=no |
12393 | soname_spec='${libname}${release}${shared_ext}$major' |
12394 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12395 | shlibpath_var=LD_LIBRARY_PATH |
12396 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
12397 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
12398 | ;; |
12399 | |
12400 | solaris*) |
12401 | version_type=linux |
12402 | need_lib_prefix=no |
12403 | need_version=no |
12404 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12405 | soname_spec='${libname}${release}${shared_ext}$major' |
12406 | shlibpath_var=LD_LIBRARY_PATH |
12407 | shlibpath_overrides_runpath=yes |
12408 | hardcode_into_libs=yes |
12409 | # ldd complains unless libraries are executable |
12410 | postinstall_cmds='chmod +x $lib' |
12411 | ;; |
12412 | |
12413 | sunos4*) |
12414 | version_type=sunos |
12415 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12416 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
12417 | shlibpath_var=LD_LIBRARY_PATH |
12418 | shlibpath_overrides_runpath=yes |
12419 | if test "$with_gnu_ld" = yes; then |
12420 | need_lib_prefix=no |
12421 | fi |
12422 | need_version=yes |
12423 | ;; |
12424 | |
12425 | sysv4 | sysv4.3*) |
12426 | version_type=linux |
12427 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12428 | soname_spec='${libname}${release}${shared_ext}$major' |
12429 | shlibpath_var=LD_LIBRARY_PATH |
12430 | case $host_vendor in |
12431 | sni) |
12432 | shlibpath_overrides_runpath=no |
12433 | need_lib_prefix=no |
12434 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
12435 | runpath_var=LD_RUN_PATH |
12436 | ;; |
12437 | siemens) |
12438 | need_lib_prefix=no |
12439 | ;; |
12440 | motorola) |
12441 | need_lib_prefix=no |
12442 | need_version=no |
12443 | shlibpath_overrides_runpath=no |
12444 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
12445 | ;; |
12446 | esac |
12447 | ;; |
12448 | |
12449 | sysv4*MP*) |
12450 | if test -d /usr/nec ;then |
12451 | version_type=linux |
12452 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
12453 | soname_spec='$libname${shared_ext}.$major' |
12454 | shlibpath_var=LD_LIBRARY_PATH |
12455 | fi |
12456 | ;; |
12457 | |
12458 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
12459 | version_type=freebsd-elf |
12460 | need_lib_prefix=no |
12461 | need_version=no |
12462 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
12463 | soname_spec='${libname}${release}${shared_ext}$major' |
12464 | shlibpath_var=LD_LIBRARY_PATH |
12465 | hardcode_into_libs=yes |
12466 | if test "$with_gnu_ld" = yes; then |
12467 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
12468 | shlibpath_overrides_runpath=no |
12469 | else |
12470 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
12471 | shlibpath_overrides_runpath=yes |
12472 | case $host_os in |
12473 | sco3.2v5*) |
12474 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
12475 | ;; |
12476 | esac |
12477 | fi |
12478 | sys_lib_dlsearch_path_spec='/usr/lib' |
12479 | ;; |
12480 | |
12481 | uts4*) |
12482 | version_type=linux |
12483 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12484 | soname_spec='${libname}${release}${shared_ext}$major' |
12485 | shlibpath_var=LD_LIBRARY_PATH |
12486 | ;; |
12487 | |
12488 | *) |
12489 | dynamic_linker=no |
12490 | ;; |
12491 | esac |
12492 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
12493 | echo "${ECHO_T}$dynamic_linker" >&6 |
12494 | test "$dynamic_linker" = no && can_build_shared=no |
12495 | |
12496 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
12497 | if test "$GCC" = yes; then |
12498 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
12499 | fi |
12500 | |
12501 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
12502 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
12503 | hardcode_action_CXX= |
12504 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
12505 | test -n "$runpath_var_CXX" || \ |
12506 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
12507 | |
12508 | # We can hardcode non-existant directories. |
12509 | if test "$hardcode_direct_CXX" != no && |
12510 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
12511 | # have to relink, otherwise we might link with an installed library |
12512 | # when we should be linking with a yet-to-be-installed one |
12513 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
12514 | test "$hardcode_minus_L_CXX" != no; then |
12515 | # Linking always hardcodes the temporary library directory. |
12516 | hardcode_action_CXX=relink |
12517 | else |
12518 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
12519 | hardcode_action_CXX=immediate |
12520 | fi |
12521 | else |
12522 | # We cannot hardcode anything, or else we can only hardcode existing |
12523 | # directories. |
12524 | hardcode_action_CXX=unsupported |
12525 | fi |
12526 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
12527 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
12528 | |
12529 | if test "$hardcode_action_CXX" = relink; then |
12530 | # Fast installation is not supported |
12531 | enable_fast_install=no |
12532 | elif test "$shlibpath_overrides_runpath" = yes || |
12533 | test "$enable_shared" = no; then |
12534 | # Fast installation is not necessary |
12535 | enable_fast_install=needless |
12536 | fi |
12537 | |
12538 | |
12539 | # The else clause should only fire when bootstrapping the |
12540 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
12541 | # with your package, and you will get complaints that there are |
12542 | # no rules to generate ltmain.sh. |
12543 | if test -f "$ltmain"; then |
12544 | # See if we are running on zsh, and set the options which allow our commands through |
12545 | # without removal of \ escapes. |
12546 | if test -n "${ZSH_VERSION+set}" ; then |
12547 | setopt NO_GLOB_SUBST |
12548 | fi |
12549 | # Now quote all the things that may contain metacharacters while being |
12550 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
12551 | # variables and quote the copies for generation of the libtool script. |
12552 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
12553 | SED SHELL STRIP \ |
12554 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
12555 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
12556 | deplibs_check_method reload_flag reload_cmds need_locks \ |
12557 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
12558 | lt_cv_sys_global_symbol_to_c_name_address \ |
12559 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
12560 | old_postinstall_cmds old_postuninstall_cmds \ |
12561 | compiler_CXX \ |
12562 | CC_CXX \ |
12563 | LD_CXX \ |
12564 | lt_prog_compiler_wl_CXX \ |
12565 | lt_prog_compiler_pic_CXX \ |
12566 | lt_prog_compiler_static_CXX \ |
12567 | lt_prog_compiler_no_builtin_flag_CXX \ |
12568 | export_dynamic_flag_spec_CXX \ |
12569 | thread_safe_flag_spec_CXX \ |
12570 | whole_archive_flag_spec_CXX \ |
12571 | enable_shared_with_static_runtimes_CXX \ |
12572 | old_archive_cmds_CXX \ |
12573 | old_archive_from_new_cmds_CXX \ |
12574 | predep_objects_CXX \ |
12575 | postdep_objects_CXX \ |
12576 | predeps_CXX \ |
12577 | postdeps_CXX \ |
12578 | compiler_lib_search_path_CXX \ |
12579 | archive_cmds_CXX \ |
12580 | archive_expsym_cmds_CXX \ |
12581 | postinstall_cmds_CXX \ |
12582 | postuninstall_cmds_CXX \ |
12583 | old_archive_from_expsyms_cmds_CXX \ |
12584 | allow_undefined_flag_CXX \ |
12585 | no_undefined_flag_CXX \ |
12586 | export_symbols_cmds_CXX \ |
12587 | hardcode_libdir_flag_spec_CXX \ |
12588 | hardcode_libdir_flag_spec_ld_CXX \ |
12589 | hardcode_libdir_separator_CXX \ |
12590 | hardcode_automatic_CXX \ |
12591 | module_cmds_CXX \ |
12592 | module_expsym_cmds_CXX \ |
12593 | lt_cv_prog_compiler_c_o_CXX \ |
12594 | exclude_expsyms_CXX \ |
12595 | include_expsyms_CXX; do |
12596 | |
12597 | case $var in |
12598 | old_archive_cmds_CXX | \ |
12599 | old_archive_from_new_cmds_CXX | \ |
12600 | archive_cmds_CXX | \ |
12601 | archive_expsym_cmds_CXX | \ |
12602 | module_cmds_CXX | \ |
12603 | module_expsym_cmds_CXX | \ |
12604 | old_archive_from_expsyms_cmds_CXX | \ |
12605 | export_symbols_cmds_CXX | \ |
12606 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
12607 | postinstall_cmds | postuninstall_cmds | \ |
12608 | old_postinstall_cmds | old_postuninstall_cmds | \ |
12609 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
12610 | # Double-quote double-evaled strings. |
12611 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
12612 | ;; |
12613 | *) |
12614 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
12615 | ;; |
12616 | esac |
12617 | done |
12618 | |
12619 | case $lt_echo in |
12620 | *'\$0 --fallback-echo"') |
12621 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
12622 | ;; |
12623 | esac |
12624 | |
12625 | cfgfile="$ofile" |
12626 | |
12627 | cat <<__EOF__ >> "$cfgfile" |
12628 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
12629 | |
12630 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
12631 | |
12632 | # Shell to use when invoking shell scripts. |
12633 | SHELL=$lt_SHELL |
12634 | |
12635 | # Whether or not to build shared libraries. |
12636 | build_libtool_libs=$enable_shared |
12637 | |
12638 | # Whether or not to build static libraries. |
12639 | build_old_libs=$enable_static |
12640 | |
12641 | # Whether or not to add -lc for building shared libraries. |
12642 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
12643 | |
12644 | # Whether or not to disallow shared libs when runtime libs are static |
12645 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
12646 | |
12647 | # Whether or not to optimize for fast installation. |
12648 | fast_install=$enable_fast_install |
12649 | |
12650 | # The host system. |
12651 | host_alias=$host_alias |
12652 | host=$host |
12653 | host_os=$host_os |
12654 | |
12655 | # The build system. |
12656 | build_alias=$build_alias |
12657 | build=$build |
12658 | build_os=$build_os |
12659 | |
12660 | # An echo program that does not interpret backslashes. |
12661 | echo=$lt_echo |
12662 | |
12663 | # The archiver. |
12664 | AR=$lt_AR |
12665 | AR_FLAGS=$lt_AR_FLAGS |
12666 | |
12667 | # A C compiler. |
12668 | LTCC=$lt_LTCC |
12669 | |
12670 | # LTCC compiler flags. |
12671 | LTCFLAGS=$lt_LTCFLAGS |
12672 | |
12673 | # A language-specific compiler. |
12674 | CC=$lt_compiler_CXX |
12675 | |
12676 | # Is the compiler the GNU C compiler? |
12677 | with_gcc=$GCC_CXX |
12678 | |
12679 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
12680 | gcc_ver=\`gcc -dumpversion\` |
12681 | |
12682 | # An ERE matcher. |
12683 | EGREP=$lt_EGREP |
12684 | |
12685 | # The linker used to build libraries. |
12686 | LD=$lt_LD_CXX |
12687 | |
12688 | # Whether we need hard or soft links. |
12689 | LN_S=$lt_LN_S |
12690 | |
12691 | # A BSD-compatible nm program. |
12692 | NM=$lt_NM |
12693 | |
12694 | # A symbol stripping program |
12695 | STRIP=$lt_STRIP |
12696 | |
12697 | # Used to examine libraries when file_magic_cmd begins "file" |
12698 | MAGIC_CMD=$MAGIC_CMD |
12699 | |
12700 | # Used on cygwin: DLL creation program. |
12701 | DLLTOOL="$DLLTOOL" |
12702 | |
12703 | # Used on cygwin: object dumper. |
12704 | OBJDUMP="$OBJDUMP" |
12705 | |
12706 | # Used on cygwin: assembler. |
12707 | AS="$AS" |
12708 | |
12709 | # The name of the directory that contains temporary libtool files. |
12710 | objdir=$objdir |
12711 | |
12712 | # How to create reloadable object files. |
12713 | reload_flag=$lt_reload_flag |
12714 | reload_cmds=$lt_reload_cmds |
12715 | |
12716 | # How to pass a linker flag through the compiler. |
12717 | wl=$lt_lt_prog_compiler_wl_CXX |
12718 | |
12719 | # Object file suffix (normally "o"). |
12720 | objext="$ac_objext" |
12721 | |
12722 | # Old archive suffix (normally "a"). |
12723 | libext="$libext" |
12724 | |
12725 | # Shared library suffix (normally ".so"). |
12726 | shrext_cmds='$shrext_cmds' |
12727 | |
12728 | # Executable file suffix (normally ""). |
12729 | exeext="$exeext" |
12730 | |
12731 | # Additional compiler flags for building library objects. |
12732 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
12733 | pic_mode=$pic_mode |
12734 | |
12735 | # What is the maximum length of a command? |
12736 | max_cmd_len=$lt_cv_sys_max_cmd_len |
12737 | |
12738 | # Does compiler simultaneously support -c and -o options? |
12739 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
12740 | |
12741 | # Must we lock files when doing compilation? |
12742 | need_locks=$lt_need_locks |
12743 | |
12744 | # Do we need the lib prefix for modules? |
12745 | need_lib_prefix=$need_lib_prefix |
12746 | |
12747 | # Do we need a version for libraries? |
12748 | need_version=$need_version |
12749 | |
12750 | # Whether dlopen is supported. |
12751 | dlopen_support=$enable_dlopen |
12752 | |
12753 | # Whether dlopen of programs is supported. |
12754 | dlopen_self=$enable_dlopen_self |
12755 | |
12756 | # Whether dlopen of statically linked programs is supported. |
12757 | dlopen_self_static=$enable_dlopen_self_static |
12758 | |
12759 | # Compiler flag to prevent dynamic linking. |
12760 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
12761 | |
12762 | # Compiler flag to turn off builtin functions. |
12763 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
12764 | |
12765 | # Compiler flag to allow reflexive dlopens. |
12766 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
12767 | |
12768 | # Compiler flag to generate shared objects directly from archives. |
12769 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
12770 | |
12771 | # Compiler flag to generate thread-safe objects. |
12772 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
12773 | |
12774 | # Library versioning type. |
12775 | version_type=$version_type |
12776 | |
12777 | # Format of library name prefix. |
12778 | libname_spec=$lt_libname_spec |
12779 | |
12780 | # List of archive names. First name is the real one, the rest are links. |
12781 | # The last name is the one that the linker finds with -lNAME. |
12782 | library_names_spec=$lt_library_names_spec |
12783 | |
12784 | # The coded name of the library, if different from the real name. |
12785 | soname_spec=$lt_soname_spec |
12786 | |
12787 | # Commands used to build and install an old-style archive. |
12788 | RANLIB=$lt_RANLIB |
12789 | old_archive_cmds=$lt_old_archive_cmds_CXX |
12790 | old_postinstall_cmds=$lt_old_postinstall_cmds |
12791 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
12792 | |
12793 | # Create an old-style archive from a shared archive. |
12794 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
12795 | |
12796 | # Create a temporary old-style archive to link instead of a shared archive. |
12797 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
12798 | |
12799 | # Commands used to build and install a shared archive. |
12800 | archive_cmds=$lt_archive_cmds_CXX |
12801 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
12802 | postinstall_cmds=$lt_postinstall_cmds |
12803 | postuninstall_cmds=$lt_postuninstall_cmds |
12804 | |
12805 | # Commands used to build a loadable module (assumed same as above if empty) |
12806 | module_cmds=$lt_module_cmds_CXX |
12807 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
12808 | |
12809 | # Commands to strip libraries. |
12810 | old_striplib=$lt_old_striplib |
12811 | striplib=$lt_striplib |
12812 | |
12813 | # Dependencies to place before the objects being linked to create a |
12814 | # shared library. |
12815 | predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
12816 | |
12817 | # Dependencies to place after the objects being linked to create a |
12818 | # shared library. |
12819 | postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
12820 | |
12821 | # Dependencies to place before the objects being linked to create a |
12822 | # shared library. |
12823 | predeps=$lt_predeps_CXX |
12824 | |
12825 | # Dependencies to place after the objects being linked to create a |
12826 | # shared library. |
12827 | postdeps=$lt_postdeps_CXX |
12828 | |
12829 | # The library search path used internally by the compiler when linking |
12830 | # a shared library. |
12831 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
12832 | |
12833 | # Method to check whether dependent libraries are shared objects. |
12834 | deplibs_check_method=$lt_deplibs_check_method |
12835 | |
12836 | # Command to use when deplibs_check_method == file_magic. |
12837 | file_magic_cmd=$lt_file_magic_cmd |
12838 | |
12839 | # Flag that allows shared libraries with undefined symbols to be built. |
12840 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
12841 | |
12842 | # Flag that forces no undefined symbols. |
12843 | no_undefined_flag=$lt_no_undefined_flag_CXX |
12844 | |
12845 | # Commands used to finish a libtool library installation in a directory. |
12846 | finish_cmds=$lt_finish_cmds |
12847 | |
12848 | # Same as above, but a single script fragment to be evaled but not shown. |
12849 | finish_eval=$lt_finish_eval |
12850 | |
12851 | # Take the output of nm and produce a listing of raw symbols and C names. |
12852 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
12853 | |
12854 | # Transform the output of nm in a proper C declaration |
12855 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
12856 | |
12857 | # Transform the output of nm in a C name address pair |
12858 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
12859 | |
12860 | # This is the shared library runtime path variable. |
12861 | runpath_var=$runpath_var |
12862 | |
12863 | # This is the shared library path variable. |
12864 | shlibpath_var=$shlibpath_var |
12865 | |
12866 | # Is shlibpath searched before the hard-coded library search path? |
12867 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
12868 | |
12869 | # How to hardcode a shared library path into an executable. |
12870 | hardcode_action=$hardcode_action_CXX |
12871 | |
12872 | # Whether we should hardcode library paths into libraries. |
12873 | hardcode_into_libs=$hardcode_into_libs |
12874 | |
12875 | # Flag to hardcode \$libdir into a binary during linking. |
12876 | # This must work even if \$libdir does not exist. |
12877 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
12878 | |
12879 | # If ld is used when linking, flag to hardcode \$libdir into |
12880 | # a binary during linking. This must work even if \$libdir does |
12881 | # not exist. |
12882 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
12883 | |
12884 | # Whether we need a single -rpath flag with a separated argument. |
12885 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
12886 | |
12887 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
12888 | # resulting binary. |
12889 | hardcode_direct=$hardcode_direct_CXX |
12890 | |
12891 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
12892 | # resulting binary. |
12893 | hardcode_minus_L=$hardcode_minus_L_CXX |
12894 | |
12895 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
12896 | # the resulting binary. |
12897 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
12898 | |
12899 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
12900 | # and all subsequent libraries and executables linked against it. |
12901 | hardcode_automatic=$hardcode_automatic_CXX |
12902 | |
12903 | # Variables whose values should be saved in libtool wrapper scripts and |
12904 | # restored at relink time. |
12905 | variables_saved_for_relink="$variables_saved_for_relink" |
12906 | |
12907 | # Whether libtool must link a program against all its dependency libraries. |
12908 | link_all_deplibs=$link_all_deplibs_CXX |
12909 | |
12910 | # Compile-time system search path for libraries |
12911 | sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
12912 | |
12913 | # Run-time system search path for libraries |
12914 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
12915 | |
12916 | # Fix the shell variable \$srcfile for the compiler. |
12917 | fix_srcfile_path="$fix_srcfile_path_CXX" |
12918 | |
12919 | # Set to yes if exported symbols are required. |
12920 | always_export_symbols=$always_export_symbols_CXX |
12921 | |
12922 | # The commands to list exported symbols. |
12923 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
12924 | |
12925 | # The commands to extract the exported symbol list from a shared archive. |
12926 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
12927 | |
12928 | # Symbols that should not be listed in the preloaded symbols. |
12929 | exclude_expsyms=$lt_exclude_expsyms_CXX |
12930 | |
12931 | # Symbols that must always be exported. |
12932 | include_expsyms=$lt_include_expsyms_CXX |
12933 | |
12934 | # ### END LIBTOOL TAG CONFIG: $tagname |
12935 | |
12936 | __EOF__ |
12937 | |
12938 | |
12939 | else |
12940 | # If there is no Makefile yet, we rely on a make rule to execute |
12941 | # `config.status --recheck' to rerun these tests and create the |
12942 | # libtool script then. |
12943 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
12944 | if test -f "$ltmain_in"; then |
12945 | test -f Makefile && make "$ltmain" |
12946 | fi |
12947 | fi |
12948 | |
12949 | |
12950 | ac_ext=c |
12951 | ac_cpp='$CPP $CPPFLAGS' |
12952 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
12953 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12954 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
12955 | |
12956 | CC=$lt_save_CC |
12957 | LDCXX=$LD |
12958 | LD=$lt_save_LD |
12959 | GCC=$lt_save_GCC |
12960 | with_gnu_ldcxx=$with_gnu_ld |
12961 | with_gnu_ld=$lt_save_with_gnu_ld |
12962 | lt_cv_path_LDCXX=$lt_cv_path_LD |
12963 | lt_cv_path_LD=$lt_save_path_LD |
12964 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
12965 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
12966 | |
12967 | else |
12968 | tagname="" |
12969 | fi |
12970 | ;; |
12971 | |
12972 | F77) |
12973 | if test -n "$F77" && test "X$F77" != "Xno"; then |
12974 | |
12975 | ac_ext=f |
12976 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
12977 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12978 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
12979 | |
12980 | |
12981 | archive_cmds_need_lc_F77=no |
12982 | allow_undefined_flag_F77= |
12983 | always_export_symbols_F77=no |
12984 | archive_expsym_cmds_F77= |
12985 | export_dynamic_flag_spec_F77= |
12986 | hardcode_direct_F77=no |
12987 | hardcode_libdir_flag_spec_F77= |
12988 | hardcode_libdir_flag_spec_ld_F77= |
12989 | hardcode_libdir_separator_F77= |
12990 | hardcode_minus_L_F77=no |
12991 | hardcode_automatic_F77=no |
12992 | module_cmds_F77= |
12993 | module_expsym_cmds_F77= |
12994 | link_all_deplibs_F77=unknown |
12995 | old_archive_cmds_F77=$old_archive_cmds |
12996 | no_undefined_flag_F77= |
12997 | whole_archive_flag_spec_F77= |
12998 | enable_shared_with_static_runtimes_F77=no |
12999 | |
13000 | # Source file extension for f77 test sources. |
13001 | ac_ext=f |
13002 | |
13003 | # Object file extension for compiled f77 test sources. |
13004 | objext=o |
13005 | objext_F77=$objext |
13006 | |
13007 | # Code to be used in simple compile tests |
13008 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
13009 | |
13010 | # Code to be used in simple link tests |
13011 | lt_simple_link_test_code=" program t\n end\n" |
13012 | |
13013 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
13014 | |
13015 | # If no C compiler was specified, use CC. |
13016 | LTCC=${LTCC-"$CC"} |
13017 | |
13018 | # If no C compiler flags were specified, use CFLAGS. |
13019 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
13020 | |
13021 | # Allow CC to be a program name with arguments. |
13022 | compiler=$CC |
13023 | |
13024 | |
13025 | # save warnings/boilerplate of simple test code |
13026 | ac_outfile=conftest.$ac_objext |
13027 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
13028 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13029 | _lt_compiler_boilerplate=`cat conftest.err` |
13030 | $rm conftest* |
13031 | |
13032 | ac_outfile=conftest.$ac_objext |
13033 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
13034 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13035 | _lt_linker_boilerplate=`cat conftest.err` |
13036 | $rm conftest* |
13037 | |
13038 | |
13039 | # Allow CC to be a program name with arguments. |
13040 | lt_save_CC="$CC" |
13041 | CC=${F77-"f77"} |
13042 | compiler=$CC |
13043 | compiler_F77=$CC |
13044 | for cc_temp in $compiler""; do |
13045 | case $cc_temp in |
13046 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
13047 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
13048 | \-*) ;; |
13049 | *) break;; |
13050 | esac |
13051 | done |
13052 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
13053 | |
13054 | |
13055 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
13056 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
13057 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
13058 | echo "${ECHO_T}$can_build_shared" >&6 |
13059 | |
13060 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
13061 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
13062 | test "$can_build_shared" = "no" && enable_shared=no |
13063 | |
13064 | # On AIX, shared libraries and static libraries use the same namespace, and |
13065 | # are all built from PIC. |
13066 | case $host_os in |
13067 | aix3*) |
13068 | test "$enable_shared" = yes && enable_static=no |
13069 | if test -n "$RANLIB"; then |
13070 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
13071 | postinstall_cmds='$RANLIB $lib' |
13072 | fi |
13073 | ;; |
13074 | aix4* | aix5*) |
13075 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13076 | test "$enable_shared" = yes && enable_static=no |
13077 | fi |
13078 | ;; |
13079 | esac |
13080 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
13081 | echo "${ECHO_T}$enable_shared" >&6 |
13082 | |
13083 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
13084 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
13085 | # Make sure either enable_shared or enable_static is yes. |
13086 | test "$enable_shared" = yes || enable_static=yes |
13087 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
13088 | echo "${ECHO_T}$enable_static" >&6 |
13089 | |
13090 | GCC_F77="$G77" |
13091 | LD_F77="$LD" |
13092 | |
13093 | lt_prog_compiler_wl_F77= |
13094 | lt_prog_compiler_pic_F77= |
13095 | lt_prog_compiler_static_F77= |
13096 | |
13097 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
13098 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
13099 | |
13100 | if test "$GCC" = yes; then |
13101 | lt_prog_compiler_wl_F77='-Wl,' |
13102 | lt_prog_compiler_static_F77='-static' |
13103 | |
13104 | case $host_os in |
13105 | aix*) |
13106 | # All AIX code is PIC. |
13107 | if test "$host_cpu" = ia64; then |
13108 | # AIX 5 now supports IA64 processor |
13109 | lt_prog_compiler_static_F77='-Bstatic' |
13110 | fi |
13111 | ;; |
13112 | |
13113 | amigaos*) |
13114 | # FIXME: we need at least 68020 code to build shared libraries, but |
13115 | # adding the `-m68020' flag to GCC prevents building anything better, |
13116 | # like `-m68040'. |
13117 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
13118 | ;; |
13119 | |
13120 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
13121 | # PIC is the default for these OSes. |
13122 | ;; |
13123 | |
13124 | mingw* | pw32* | os2*) |
13125 | # This hack is so that the source file can tell whether it is being |
13126 | # built for inclusion in a dll (and should export symbols for example). |
13127 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13128 | ;; |
13129 | |
13130 | darwin* | rhapsody*) |
13131 | # PIC is the default on this platform |
13132 | # Common symbols not allowed in MH_DYLIB files |
13133 | lt_prog_compiler_pic_F77='-fno-common' |
13134 | ;; |
13135 | |
13136 | interix3*) |
13137 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
13138 | # Instead, we relocate shared libraries at runtime. |
13139 | ;; |
13140 | |
13141 | msdosdjgpp*) |
13142 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
13143 | # on systems that don't support them. |
13144 | lt_prog_compiler_can_build_shared_F77=no |
13145 | enable_shared=no |
13146 | ;; |
13147 | |
13148 | sysv4*MP*) |
13149 | if test -d /usr/nec; then |
13150 | lt_prog_compiler_pic_F77=-Kconform_pic |
13151 | fi |
13152 | ;; |
13153 | |
13154 | hpux*) |
13155 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13156 | # not for PA HP-UX. |
13157 | case $host_cpu in |
13158 | hppa*64*|ia64*) |
13159 | # +Z the default |
13160 | ;; |
13161 | *) |
13162 | lt_prog_compiler_pic_F77='-fPIC' |
13163 | ;; |
13164 | esac |
13165 | ;; |
13166 | |
13167 | *) |
13168 | lt_prog_compiler_pic_F77='-fPIC' |
13169 | ;; |
13170 | esac |
13171 | else |
13172 | # PORTME Check for flag to pass linker flags through the system compiler. |
13173 | case $host_os in |
13174 | aix*) |
13175 | lt_prog_compiler_wl_F77='-Wl,' |
13176 | if test "$host_cpu" = ia64; then |
13177 | # AIX 5 now supports IA64 processor |
13178 | lt_prog_compiler_static_F77='-Bstatic' |
13179 | else |
13180 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
13181 | fi |
13182 | ;; |
13183 | darwin*) |
13184 | # PIC is the default on this platform |
13185 | # Common symbols not allowed in MH_DYLIB files |
13186 | case $cc_basename in |
13187 | xlc*) |
13188 | lt_prog_compiler_pic_F77='-qnocommon' |
13189 | lt_prog_compiler_wl_F77='-Wl,' |
13190 | ;; |
13191 | esac |
13192 | ;; |
13193 | |
13194 | mingw* | pw32* | os2*) |
13195 | # This hack is so that the source file can tell whether it is being |
13196 | # built for inclusion in a dll (and should export symbols for example). |
13197 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13198 | ;; |
13199 | |
13200 | hpux9* | hpux10* | hpux11*) |
13201 | lt_prog_compiler_wl_F77='-Wl,' |
13202 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13203 | # not for PA HP-UX. |
13204 | case $host_cpu in |
13205 | hppa*64*|ia64*) |
13206 | # +Z the default |
13207 | ;; |
13208 | *) |
13209 | lt_prog_compiler_pic_F77='+Z' |
13210 | ;; |
13211 | esac |
13212 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
13213 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
13214 | ;; |
13215 | |
13216 | irix5* | irix6* | nonstopux*) |
13217 | lt_prog_compiler_wl_F77='-Wl,' |
13218 | # PIC (with -KPIC) is the default. |
13219 | lt_prog_compiler_static_F77='-non_shared' |
13220 | ;; |
13221 | |
13222 | newsos6) |
13223 | lt_prog_compiler_pic_F77='-KPIC' |
13224 | lt_prog_compiler_static_F77='-Bstatic' |
13225 | ;; |
13226 | |
13227 | linux*) |
13228 | case $cc_basename in |
13229 | icc* | ecc*) |
13230 | lt_prog_compiler_wl_F77='-Wl,' |
13231 | lt_prog_compiler_pic_F77='-KPIC' |
13232 | lt_prog_compiler_static_F77='-static' |
13233 | ;; |
13234 | pgcc* | pgf77* | pgf90* | pgf95*) |
13235 | # Portland Group compilers (*not* the Pentium gcc compiler, |
13236 | # which looks to be a dead project) |
13237 | lt_prog_compiler_wl_F77='-Wl,' |
13238 | lt_prog_compiler_pic_F77='-fpic' |
13239 | lt_prog_compiler_static_F77='-Bstatic' |
13240 | ;; |
13241 | ccc*) |
13242 | lt_prog_compiler_wl_F77='-Wl,' |
13243 | # All Alpha code is PIC. |
13244 | lt_prog_compiler_static_F77='-non_shared' |
13245 | ;; |
13246 | esac |
13247 | ;; |
13248 | |
13249 | osf3* | osf4* | osf5*) |
13250 | lt_prog_compiler_wl_F77='-Wl,' |
13251 | # All OSF/1 code is PIC. |
13252 | lt_prog_compiler_static_F77='-non_shared' |
13253 | ;; |
13254 | |
13255 | solaris*) |
13256 | lt_prog_compiler_pic_F77='-KPIC' |
13257 | lt_prog_compiler_static_F77='-Bstatic' |
13258 | case $cc_basename in |
13259 | f77* | f90* | f95*) |
13260 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
13261 | *) |
13262 | lt_prog_compiler_wl_F77='-Wl,';; |
13263 | esac |
13264 | ;; |
13265 | |
13266 | sunos4*) |
13267 | lt_prog_compiler_wl_F77='-Qoption ld ' |
13268 | lt_prog_compiler_pic_F77='-PIC' |
13269 | lt_prog_compiler_static_F77='-Bstatic' |
13270 | ;; |
13271 | |
13272 | sysv4 | sysv4.2uw2* | sysv4.3*) |
13273 | lt_prog_compiler_wl_F77='-Wl,' |
13274 | lt_prog_compiler_pic_F77='-KPIC' |
13275 | lt_prog_compiler_static_F77='-Bstatic' |
13276 | ;; |
13277 | |
13278 | sysv4*MP*) |
13279 | if test -d /usr/nec ;then |
13280 | lt_prog_compiler_pic_F77='-Kconform_pic' |
13281 | lt_prog_compiler_static_F77='-Bstatic' |
13282 | fi |
13283 | ;; |
13284 | |
13285 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
13286 | lt_prog_compiler_wl_F77='-Wl,' |
13287 | lt_prog_compiler_pic_F77='-KPIC' |
13288 | lt_prog_compiler_static_F77='-Bstatic' |
13289 | ;; |
13290 | |
13291 | unicos*) |
13292 | lt_prog_compiler_wl_F77='-Wl,' |
13293 | lt_prog_compiler_can_build_shared_F77=no |
13294 | ;; |
13295 | |
13296 | uts4*) |
13297 | lt_prog_compiler_pic_F77='-pic' |
13298 | lt_prog_compiler_static_F77='-Bstatic' |
13299 | ;; |
13300 | |
13301 | *) |
13302 | lt_prog_compiler_can_build_shared_F77=no |
13303 | ;; |
13304 | esac |
13305 | fi |
13306 | |
13307 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
13308 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
13309 | |
13310 | # |
13311 | # Check to make sure the PIC flag actually works. |
13312 | # |
13313 | if test -n "$lt_prog_compiler_pic_F77"; then |
13314 | |
13315 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
13316 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
13317 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
13318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13319 | else |
13320 | lt_prog_compiler_pic_works_F77=no |
13321 | ac_outfile=conftest.$ac_objext |
13322 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
13323 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
13324 | # Insert the option either (1) after the last *FLAGS variable, or |
13325 | # (2) before a word containing "conftest.", or (3) at the end. |
13326 | # Note that $ac_compile itself does not contain backslashes and begins |
13327 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
13328 | # The option is referenced via a variable to avoid confusing sed. |
13329 | lt_compile=`echo "$ac_compile" | $SED \ |
13330 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
13331 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
13332 | -e 's:$: $lt_compiler_flag:'` |
13333 | (eval echo "\"\$as_me:13333: $lt_compile\"" >&5) |
13334 | (eval "$lt_compile" 2>conftest.err) |
13335 | ac_status=$? |
13336 | cat conftest.err >&5 |
13337 | echo "$as_me:13337: \$? = $ac_status" >&5 |
13338 | if (exit $ac_status) && test -s "$ac_outfile"; then |
13339 | # The compiler can only warn and ignore the option if not recognized |
13340 | # So say no if there are warnings other than the usual output. |
13341 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
13342 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
13343 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
13344 | lt_prog_compiler_pic_works_F77=yes |
13345 | fi |
13346 | fi |
13347 | $rm conftest* |
13348 | |
13349 | fi |
13350 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
13351 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
13352 | |
13353 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
13354 | case $lt_prog_compiler_pic_F77 in |
13355 | "" | " "*) ;; |
13356 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
13357 | esac |
13358 | else |
13359 | lt_prog_compiler_pic_F77= |
13360 | lt_prog_compiler_can_build_shared_F77=no |
13361 | fi |
13362 | |
13363 | fi |
13364 | case $host_os in |
13365 | # For platforms which do not support PIC, -DPIC is meaningless: |
13366 | *djgpp*) |
13367 | lt_prog_compiler_pic_F77= |
13368 | ;; |
13369 | *) |
13370 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
13371 | ;; |
13372 | esac |
13373 | |
13374 | # |
13375 | # Check to make sure the static flag actually works. |
13376 | # |
13377 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
13378 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
13379 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
13380 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
13381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13382 | else |
13383 | lt_prog_compiler_static_works_F77=no |
13384 | save_LDFLAGS="$LDFLAGS" |
13385 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
13386 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
13387 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
13388 | # The linker can only warn and ignore the option if not recognized |
13389 | # So say no if there are warnings |
13390 | if test -s conftest.err; then |
13391 | # Append any errors to the config.log. |
13392 | cat conftest.err 1>&5 |
13393 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
13394 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
13395 | if diff conftest.exp conftest.er2 >/dev/null; then |
13396 | lt_prog_compiler_static_works_F77=yes |
13397 | fi |
13398 | else |
13399 | lt_prog_compiler_static_works_F77=yes |
13400 | fi |
13401 | fi |
13402 | $rm conftest* |
13403 | LDFLAGS="$save_LDFLAGS" |
13404 | |
13405 | fi |
13406 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
13407 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 |
13408 | |
13409 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
13410 | : |
13411 | else |
13412 | lt_prog_compiler_static_F77= |
13413 | fi |
13414 | |
13415 | |
13416 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
13417 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
13418 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
13419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13420 | else |
13421 | lt_cv_prog_compiler_c_o_F77=no |
13422 | $rm -r conftest 2>/dev/null |
13423 | mkdir conftest |
13424 | cd conftest |
13425 | mkdir out |
13426 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
13427 | |
13428 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
13429 | # Insert the option either (1) after the last *FLAGS variable, or |
13430 | # (2) before a word containing "conftest.", or (3) at the end. |
13431 | # Note that $ac_compile itself does not contain backslashes and begins |
13432 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
13433 | lt_compile=`echo "$ac_compile" | $SED \ |
13434 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
13435 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
13436 | -e 's:$: $lt_compiler_flag:'` |
13437 | (eval echo "\"\$as_me:13437: $lt_compile\"" >&5) |
13438 | (eval "$lt_compile" 2>out/conftest.err) |
13439 | ac_status=$? |
13440 | cat out/conftest.err >&5 |
13441 | echo "$as_me:13441: \$? = $ac_status" >&5 |
13442 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13443 | then |
13444 | # The compiler can only warn and ignore the option if not recognized |
13445 | # So say no if there are warnings |
13446 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
13447 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
13448 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
13449 | lt_cv_prog_compiler_c_o_F77=yes |
13450 | fi |
13451 | fi |
13452 | chmod u+w . 2>&5 |
13453 | $rm conftest* |
13454 | # SGI C++ compiler will create directory out/ii_files/ for |
13455 | # template instantiation |
13456 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
13457 | $rm out/* && rmdir out |
13458 | cd .. |
13459 | rmdir conftest |
13460 | $rm conftest* |
13461 | |
13462 | fi |
13463 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
13464 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
13465 | |
13466 | |
13467 | hard_links="nottested" |
13468 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
13469 | # do not overwrite the value of need_locks provided by the user |
13470 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
13471 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
13472 | hard_links=yes |
13473 | $rm conftest* |
13474 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
13475 | touch conftest.a |
13476 | ln conftest.a conftest.b 2>&5 || hard_links=no |
13477 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
13478 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
13479 | echo "${ECHO_T}$hard_links" >&6 |
13480 | if test "$hard_links" = no; then |
13481 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
13482 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
13483 | need_locks=warn |
13484 | fi |
13485 | else |
13486 | need_locks=no |
13487 | fi |
13488 | |
13489 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
13490 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
13491 | |
13492 | runpath_var= |
13493 | allow_undefined_flag_F77= |
13494 | enable_shared_with_static_runtimes_F77=no |
13495 | archive_cmds_F77= |
13496 | archive_expsym_cmds_F77= |
13497 | old_archive_From_new_cmds_F77= |
13498 | old_archive_from_expsyms_cmds_F77= |
13499 | export_dynamic_flag_spec_F77= |
13500 | whole_archive_flag_spec_F77= |
13501 | thread_safe_flag_spec_F77= |
13502 | hardcode_libdir_flag_spec_F77= |
13503 | hardcode_libdir_flag_spec_ld_F77= |
13504 | hardcode_libdir_separator_F77= |
13505 | hardcode_direct_F77=no |
13506 | hardcode_minus_L_F77=no |
13507 | hardcode_shlibpath_var_F77=unsupported |
13508 | link_all_deplibs_F77=unknown |
13509 | hardcode_automatic_F77=no |
13510 | module_cmds_F77= |
13511 | module_expsym_cmds_F77= |
13512 | always_export_symbols_F77=no |
13513 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
13514 | # include_expsyms should be a list of space-separated symbols to be *always* |
13515 | # included in the symbol list |
13516 | include_expsyms_F77= |
13517 | # exclude_expsyms can be an extended regexp of symbols to exclude |
13518 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
13519 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
13520 | # as well as any symbol that contains `d'. |
13521 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
13522 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
13523 | # platforms (ab)use it in PIC code, but their linkers get confused if |
13524 | # the symbol is explicitly referenced. Since portable code cannot |
13525 | # rely on this symbol name, it's probably fine to never include it in |
13526 | # preloaded symbol tables. |
13527 | extract_expsyms_cmds= |
13528 | # Just being paranoid about ensuring that cc_basename is set. |
13529 | for cc_temp in $compiler""; do |
13530 | case $cc_temp in |
13531 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
13532 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
13533 | \-*) ;; |
13534 | *) break;; |
13535 | esac |
13536 | done |
13537 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
13538 | |
13539 | case $host_os in |
13540 | cygwin* | mingw* | pw32*) |
13541 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
13542 | # When not using gcc, we currently assume that we are using |
13543 | # Microsoft Visual C++. |
13544 | if test "$GCC" != yes; then |
13545 | with_gnu_ld=no |
13546 | fi |
13547 | ;; |
13548 | interix*) |
13549 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
13550 | with_gnu_ld=yes |
13551 | ;; |
13552 | openbsd*) |
13553 | with_gnu_ld=no |
13554 | ;; |
13555 | esac |
13556 | |
13557 | ld_shlibs_F77=yes |
13558 | if test "$with_gnu_ld" = yes; then |
13559 | # If archive_cmds runs LD, not CC, wlarc should be empty |
13560 | wlarc='${wl}' |
13561 | |
13562 | # Set some defaults for GNU ld with shared library support. These |
13563 | # are reset later if shared libraries are not supported. Putting them |
13564 | # here allows them to be overridden if necessary. |
13565 | runpath_var=LD_RUN_PATH |
13566 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
13567 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
13568 | # ancient GNU ld didn't support --whole-archive et. al. |
13569 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
13570 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
13571 | else |
13572 | whole_archive_flag_spec_F77= |
13573 | fi |
13574 | supports_anon_versioning=no |
13575 | case `$LD -v 2>/dev/null` in |
13576 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
13577 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
13578 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
13579 | *\ 2.11.*) ;; # other 2.11 versions |
13580 | *) supports_anon_versioning=yes ;; |
13581 | esac |
13582 | |
13583 | # See if GNU ld supports shared libraries. |
13584 | case $host_os in |
13585 | aix3* | aix4* | aix5*) |
13586 | # On AIX/PPC, the GNU linker is very broken |
13587 | if test "$host_cpu" != ia64; then |
13588 | ld_shlibs_F77=no |
13589 | cat <<EOF 1>&2 |
13590 | |
13591 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
13592 | *** to be unable to reliably create shared libraries on AIX. |
13593 | *** Therefore, libtool is disabling shared libraries support. If you |
13594 | *** really care for shared libraries, you may want to modify your PATH |
13595 | *** so that a non-GNU linker is found, and then restart. |
13596 | |
13597 | EOF |
13598 | fi |
13599 | ;; |
13600 | |
13601 | amigaos*) |
13602 | archive_cmds_F77='$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)' |
13603 | hardcode_libdir_flag_spec_F77='-L$libdir' |
13604 | hardcode_minus_L_F77=yes |
13605 | |
13606 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
13607 | # that the semantics of dynamic libraries on AmigaOS, at least up |
13608 | # to version 4, is to share data among multiple programs linked |
13609 | # with the same dynamic library. Since this doesn't match the |
13610 | # behavior of shared libraries on other platforms, we can't use |
13611 | # them. |
13612 | ld_shlibs_F77=no |
13613 | ;; |
13614 | |
13615 | beos*) |
13616 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13617 | allow_undefined_flag_F77=unsupported |
13618 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
13619 | # support --undefined. This deserves some investigation. FIXME |
13620 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13621 | else |
13622 | ld_shlibs_F77=no |
13623 | fi |
13624 | ;; |
13625 | |
13626 | cygwin* | mingw* | pw32*) |
13627 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
13628 | # as there is no search path for DLLs. |
13629 | hardcode_libdir_flag_spec_F77='-L$libdir' |
13630 | allow_undefined_flag_F77=unsupported |
13631 | always_export_symbols_F77=no |
13632 | enable_shared_with_static_runtimes_F77=yes |
13633 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
13634 | |
13635 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
13636 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
13637 | # If the export-symbols file already is a .def file (1st line |
13638 | # is EXPORTS), use it as is; otherwise, prepend... |
13639 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
13640 | cp $export_symbols $output_objdir/$soname.def; |
13641 | else |
13642 | echo EXPORTS > $output_objdir/$soname.def; |
13643 | cat $export_symbols >> $output_objdir/$soname.def; |
13644 | fi~ |
13645 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
13646 | else |
13647 | ld_shlibs_F77=no |
13648 | fi |
13649 | ;; |
13650 | |
13651 | interix3*) |
13652 | hardcode_direct_F77=no |
13653 | hardcode_shlibpath_var_F77=no |
13654 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
13655 | export_dynamic_flag_spec_F77='${wl}-E' |
13656 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
13657 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
13658 | # default) and relocated if they conflict, which is a slow very memory |
13659 | # consuming and fragmenting process. To avoid this, we pick a random, |
13660 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
13661 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
13662 | archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
13663 | archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
13664 | ;; |
13665 | |
13666 | linux*) |
13667 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13668 | tmp_addflag= |
13669 | case $cc_basename,$host_cpu in |
13670 | pgcc*) # Portland Group C compiler |
13671 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
13672 | tmp_addflag=' $pic_flag' |
13673 | ;; |
13674 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
13675 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
13676 | tmp_addflag=' $pic_flag -Mnomain' ;; |
13677 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
13678 | tmp_addflag=' -i_dynamic' ;; |
13679 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
13680 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
13681 | ifc* | ifort*) # Intel Fortran compiler |
13682 | tmp_addflag=' -nofor_main' ;; |
13683 | esac |
13684 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13685 | |
13686 | if test $supports_anon_versioning = yes; then |
13687 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
13688 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
13689 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
13690 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
13691 | fi |
13692 | else |
13693 | ld_shlibs_F77=no |
13694 | fi |
13695 | ;; |
13696 | |
13697 | netbsd*) |
13698 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
13699 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
13700 | wlarc= |
13701 | else |
13702 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13703 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
13704 | fi |
13705 | ;; |
13706 | |
13707 | solaris*) |
13708 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
13709 | ld_shlibs_F77=no |
13710 | cat <<EOF 1>&2 |
13711 | |
13712 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
13713 | *** create shared libraries on Solaris systems. Therefore, libtool |
13714 | *** is disabling shared libraries support. We urge you to upgrade GNU |
13715 | *** binutils to release 2.9.1 or newer. Another option is to modify |
13716 | *** your PATH or compiler configuration so that the native linker is |
13717 | *** used, and then restart. |
13718 | |
13719 | EOF |
13720 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13721 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13722 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
13723 | else |
13724 | ld_shlibs_F77=no |
13725 | fi |
13726 | ;; |
13727 | |
13728 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
13729 | case `$LD -v 2>&1` in |
13730 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
13731 | ld_shlibs_F77=no |
13732 | cat <<_LT_EOF 1>&2 |
13733 | |
13734 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
13735 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
13736 | *** is disabling shared libraries support. We urge you to upgrade GNU |
13737 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
13738 | *** your PATH or compiler configuration so that the native linker is |
13739 | *** used, and then restart. |
13740 | |
13741 | _LT_EOF |
13742 | ;; |
13743 | *) |
13744 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13745 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
13746 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
13747 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
13748 | else |
13749 | ld_shlibs_F77=no |
13750 | fi |
13751 | ;; |
13752 | esac |
13753 | ;; |
13754 | |
13755 | sunos4*) |
13756 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
13757 | wlarc= |
13758 | hardcode_direct_F77=yes |
13759 | hardcode_shlibpath_var_F77=no |
13760 | ;; |
13761 | |
13762 | *) |
13763 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13764 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13765 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
13766 | else |
13767 | ld_shlibs_F77=no |
13768 | fi |
13769 | ;; |
13770 | esac |
13771 | |
13772 | if test "$ld_shlibs_F77" = no; then |
13773 | runpath_var= |
13774 | hardcode_libdir_flag_spec_F77= |
13775 | export_dynamic_flag_spec_F77= |
13776 | whole_archive_flag_spec_F77= |
13777 | fi |
13778 | else |
13779 | # PORTME fill in a description of your system's linker (not GNU ld) |
13780 | case $host_os in |
13781 | aix3*) |
13782 | allow_undefined_flag_F77=unsupported |
13783 | always_export_symbols_F77=yes |
13784 | archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
13785 | # Note: this linker hardcodes the directories in LIBPATH if there |
13786 | # are no directories specified by -L. |
13787 | hardcode_minus_L_F77=yes |
13788 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
13789 | # Neither direct hardcoding nor static linking is supported with a |
13790 | # broken collect2. |
13791 | hardcode_direct_F77=unsupported |
13792 | fi |
13793 | ;; |
13794 | |
13795 | aix4* | aix5*) |
13796 | if test "$host_cpu" = ia64; then |
13797 | # On IA64, the linker does run time linking by default, so we don't |
13798 | # have to do anything special. |
13799 | aix_use_runtimelinking=no |
13800 | exp_sym_flag='-Bexport' |
13801 | no_entry_flag="" |
13802 | else |
13803 | # If we're using GNU nm, then we don't want the "-C" option. |
13804 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
13805 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
13806 | export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
13807 | else |
13808 | export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
13809 | fi |
13810 | aix_use_runtimelinking=no |
13811 | |
13812 | # Test if we are trying to use run time linking or normal |
13813 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
13814 | # need to do runtime linking. |
13815 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
13816 | for ld_flag in $LDFLAGS; do |
13817 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
13818 | aix_use_runtimelinking=yes |
13819 | break |
13820 | fi |
13821 | done |
13822 | ;; |
13823 | esac |
13824 | |
13825 | exp_sym_flag='-bexport' |
13826 | no_entry_flag='-bnoentry' |
13827 | fi |
13828 | |
13829 | # When large executables or shared objects are built, AIX ld can |
13830 | # have problems creating the table of contents. If linking a library |
13831 | # or program results in "error TOC overflow" add -mminimal-toc to |
13832 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
13833 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
13834 | |
13835 | archive_cmds_F77='' |
13836 | hardcode_direct_F77=yes |
13837 | hardcode_libdir_separator_F77=':' |
13838 | link_all_deplibs_F77=yes |
13839 | |
13840 | if test "$GCC" = yes; then |
13841 | case $host_os in aix4.[012]|aix4.[012].*) |
13842 | # We only want to do this on AIX 4.2 and lower, the check |
13843 | # below for broken collect2 doesn't work under 4.3+ |
13844 | collect2name=`${CC} -print-prog-name=collect2` |
13845 | if test -f "$collect2name" && \ |
13846 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
13847 | then |
13848 | # We have reworked collect2 |
13849 | hardcode_direct_F77=yes |
13850 | else |
13851 | # We have old collect2 |
13852 | hardcode_direct_F77=unsupported |
13853 | # It fails to find uninstalled libraries when the uninstalled |
13854 | # path is not listed in the libpath. Setting hardcode_minus_L |
13855 | # to unsupported forces relinking |
13856 | hardcode_minus_L_F77=yes |
13857 | hardcode_libdir_flag_spec_F77='-L$libdir' |
13858 | hardcode_libdir_separator_F77= |
13859 | fi |
13860 | ;; |
13861 | esac |
13862 | shared_flag='-shared' |
13863 | if test "$aix_use_runtimelinking" = yes; then |
13864 | shared_flag="$shared_flag "'${wl}-G' |
13865 | fi |
13866 | else |
13867 | # not using gcc |
13868 | if test "$host_cpu" = ia64; then |
13869 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
13870 | # chokes on -Wl,-G. The following line is correct: |
13871 | shared_flag='-G' |
13872 | else |
13873 | if test "$aix_use_runtimelinking" = yes; then |
13874 | shared_flag='${wl}-G' |
13875 | else |
13876 | shared_flag='${wl}-bM:SRE' |
13877 | fi |
13878 | fi |
13879 | fi |
13880 | |
13881 | # It seems that -bexpall does not export symbols beginning with |
13882 | # underscore (_), so it is better to generate a list of symbols to export. |
13883 | always_export_symbols_F77=yes |
13884 | if test "$aix_use_runtimelinking" = yes; then |
13885 | # Warning - without using the other runtime loading flags (-brtl), |
13886 | # -berok will link without error, but may produce a broken library. |
13887 | allow_undefined_flag_F77='-berok' |
13888 | # Determine the default libpath from the value encoded in an empty executable. |
13889 | cat >conftest.$ac_ext <<_ACEOF |
13890 | program main |
13891 | |
13892 | end |
13893 | _ACEOF |
13894 | rm -f conftest.$ac_objext conftest$ac_exeext |
13895 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13896 | (eval $ac_link) 2>conftest.er1 |
13897 | ac_status=$? |
13898 | grep -v '^ *+' conftest.er1 >conftest.err |
13899 | rm -f conftest.er1 |
13900 | cat conftest.err >&5 |
13901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13902 | (exit $ac_status); } && |
13903 | { ac_try='test -z "$ac_f77_werror_flag" |
13904 | || test ! -s conftest.err' |
13905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13906 | (eval $ac_try) 2>&5 |
13907 | ac_status=$? |
13908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13909 | (exit $ac_status); }; } && |
13910 | { ac_try='test -s conftest$ac_exeext' |
13911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13912 | (eval $ac_try) 2>&5 |
13913 | ac_status=$? |
13914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13915 | (exit $ac_status); }; }; then |
13916 | |
13917 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
13918 | }'` |
13919 | # Check for a 64-bit object if we didn't find anything. |
13920 | 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; } |
13921 | }'`; fi |
13922 | else |
13923 | echo "$as_me: failed program was:" >&5 |
13924 | sed 's/^/| /' conftest.$ac_ext >&5 |
13925 | |
13926 | fi |
13927 | rm -f conftest.err conftest.$ac_objext \ |
13928 | conftest$ac_exeext conftest.$ac_ext |
13929 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
13930 | |
13931 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
13932 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $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" |
13933 | else |
13934 | if test "$host_cpu" = ia64; then |
13935 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
13936 | allow_undefined_flag_F77="-z nodefs" |
13937 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
13938 | else |
13939 | # Determine the default libpath from the value encoded in an empty executable. |
13940 | cat >conftest.$ac_ext <<_ACEOF |
13941 | program main |
13942 | |
13943 | end |
13944 | _ACEOF |
13945 | rm -f conftest.$ac_objext conftest$ac_exeext |
13946 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13947 | (eval $ac_link) 2>conftest.er1 |
13948 | ac_status=$? |
13949 | grep -v '^ *+' conftest.er1 >conftest.err |
13950 | rm -f conftest.er1 |
13951 | cat conftest.err >&5 |
13952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13953 | (exit $ac_status); } && |
13954 | { ac_try='test -z "$ac_f77_werror_flag" |
13955 | || test ! -s conftest.err' |
13956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13957 | (eval $ac_try) 2>&5 |
13958 | ac_status=$? |
13959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13960 | (exit $ac_status); }; } && |
13961 | { ac_try='test -s conftest$ac_exeext' |
13962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13963 | (eval $ac_try) 2>&5 |
13964 | ac_status=$? |
13965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13966 | (exit $ac_status); }; }; then |
13967 | |
13968 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
13969 | }'` |
13970 | # Check for a 64-bit object if we didn't find anything. |
13971 | 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; } |
13972 | }'`; fi |
13973 | else |
13974 | echo "$as_me: failed program was:" >&5 |
13975 | sed 's/^/| /' conftest.$ac_ext >&5 |
13976 | |
13977 | fi |
13978 | rm -f conftest.err conftest.$ac_objext \ |
13979 | conftest$ac_exeext conftest.$ac_ext |
13980 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
13981 | |
13982 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
13983 | # Warning - without using the other run time loading flags, |
13984 | # -berok will link without error, but may produce a broken library. |
13985 | no_undefined_flag_F77=' ${wl}-bernotok' |
13986 | allow_undefined_flag_F77=' ${wl}-berok' |
13987 | # Exported symbols can be pulled into shared objects from archives |
13988 | whole_archive_flag_spec_F77='$convenience' |
13989 | archive_cmds_need_lc_F77=yes |
13990 | # This is similar to how AIX traditionally builds its shared libraries. |
13991 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
13992 | fi |
13993 | fi |
13994 | ;; |
13995 | |
13996 | amigaos*) |
13997 | archive_cmds_F77='$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)' |
13998 | hardcode_libdir_flag_spec_F77='-L$libdir' |
13999 | hardcode_minus_L_F77=yes |
14000 | # see comment about different semantics on the GNU ld section |
14001 | ld_shlibs_F77=no |
14002 | ;; |
14003 | |
14004 | bsdi[45]*) |
14005 | export_dynamic_flag_spec_F77=-rdynamic |
14006 | ;; |
14007 | |
14008 | cygwin* | mingw* | pw32*) |
14009 | # When not using gcc, we currently assume that we are using |
14010 | # Microsoft Visual C++. |
14011 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
14012 | # no search path for DLLs. |
14013 | hardcode_libdir_flag_spec_F77=' ' |
14014 | allow_undefined_flag_F77=unsupported |
14015 | # Tell ltmain to make .lib files, not .a files. |
14016 | libext=lib |
14017 | # Tell ltmain to make .dll files, not .so files. |
14018 | shrext_cmds=".dll" |
14019 | # FIXME: Setting linknames here is a bad hack. |
14020 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
14021 | # The linker will automatically build a .lib file if we build a DLL. |
14022 | old_archive_From_new_cmds_F77='true' |
14023 | # FIXME: Should let the user specify the lib program. |
14024 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
14025 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
14026 | enable_shared_with_static_runtimes_F77=yes |
14027 | ;; |
14028 | |
14029 | darwin* | rhapsody*) |
14030 | case $host_os in |
14031 | rhapsody* | darwin1.[012]) |
14032 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
14033 | ;; |
14034 | *) # Darwin 1.3 on |
14035 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
14036 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14037 | else |
14038 | case ${MACOSX_DEPLOYMENT_TARGET} in |
14039 | 10.[012]) |
14040 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14041 | ;; |
14042 | 10.*) |
14043 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
14044 | ;; |
14045 | esac |
14046 | fi |
14047 | ;; |
14048 | esac |
14049 | archive_cmds_need_lc_F77=no |
14050 | hardcode_direct_F77=no |
14051 | hardcode_automatic_F77=yes |
14052 | hardcode_shlibpath_var_F77=unsupported |
14053 | whole_archive_flag_spec_F77='' |
14054 | link_all_deplibs_F77=yes |
14055 | if test "$GCC" = yes ; then |
14056 | output_verbose_link_cmd='echo' |
14057 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
14058 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14059 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14060 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
14061 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
14062 | else |
14063 | case $cc_basename in |
14064 | xlc*) |
14065 | output_verbose_link_cmd='echo' |
14066 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
14067 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14068 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14069 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
14070 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
14071 | ;; |
14072 | *) |
14073 | ld_shlibs_F77=no |
14074 | ;; |
14075 | esac |
14076 | fi |
14077 | ;; |
14078 | |
14079 | dgux*) |
14080 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14081 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14082 | hardcode_shlibpath_var_F77=no |
14083 | ;; |
14084 | |
14085 | freebsd1*) |
14086 | ld_shlibs_F77=no |
14087 | ;; |
14088 | |
14089 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
14090 | # support. Future versions do this automatically, but an explicit c++rt0.o |
14091 | # does not break anything, and helps significantly (at the cost of a little |
14092 | # extra space). |
14093 | freebsd2.2*) |
14094 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
14095 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14096 | hardcode_direct_F77=yes |
14097 | hardcode_shlibpath_var_F77=no |
14098 | ;; |
14099 | |
14100 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
14101 | freebsd2*) |
14102 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14103 | hardcode_direct_F77=yes |
14104 | hardcode_minus_L_F77=yes |
14105 | hardcode_shlibpath_var_F77=no |
14106 | ;; |
14107 | |
14108 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
14109 | freebsd* | kfreebsd*-gnu | dragonfly*) |
14110 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
14111 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14112 | hardcode_direct_F77=yes |
14113 | hardcode_shlibpath_var_F77=no |
14114 | ;; |
14115 | |
14116 | hpux9*) |
14117 | if test "$GCC" = yes; then |
14118 | archive_cmds_F77='$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' |
14119 | else |
14120 | archive_cmds_F77='$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' |
14121 | fi |
14122 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14123 | hardcode_libdir_separator_F77=: |
14124 | hardcode_direct_F77=yes |
14125 | |
14126 | # hardcode_minus_L: Not really in the search PATH, |
14127 | # but as the default location of the library. |
14128 | hardcode_minus_L_F77=yes |
14129 | export_dynamic_flag_spec_F77='${wl}-E' |
14130 | ;; |
14131 | |
14132 | hpux10*) |
14133 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14134 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14135 | else |
14136 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
14137 | fi |
14138 | if test "$with_gnu_ld" = no; then |
14139 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14140 | hardcode_libdir_separator_F77=: |
14141 | |
14142 | hardcode_direct_F77=yes |
14143 | export_dynamic_flag_spec_F77='${wl}-E' |
14144 | |
14145 | # hardcode_minus_L: Not really in the search PATH, |
14146 | # but as the default location of the library. |
14147 | hardcode_minus_L_F77=yes |
14148 | fi |
14149 | ;; |
14150 | |
14151 | hpux11*) |
14152 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14153 | case $host_cpu in |
14154 | hppa*64*) |
14155 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14156 | ;; |
14157 | ia64*) |
14158 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14159 | ;; |
14160 | *) |
14161 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14162 | ;; |
14163 | esac |
14164 | else |
14165 | case $host_cpu in |
14166 | hppa*64*) |
14167 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14168 | ;; |
14169 | ia64*) |
14170 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14171 | ;; |
14172 | *) |
14173 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14174 | ;; |
14175 | esac |
14176 | fi |
14177 | if test "$with_gnu_ld" = no; then |
14178 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14179 | hardcode_libdir_separator_F77=: |
14180 | |
14181 | case $host_cpu in |
14182 | hppa*64*|ia64*) |
14183 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
14184 | hardcode_direct_F77=no |
14185 | hardcode_shlibpath_var_F77=no |
14186 | ;; |
14187 | *) |
14188 | hardcode_direct_F77=yes |
14189 | export_dynamic_flag_spec_F77='${wl}-E' |
14190 | |
14191 | # hardcode_minus_L: Not really in the search PATH, |
14192 | # but as the default location of the library. |
14193 | hardcode_minus_L_F77=yes |
14194 | ;; |
14195 | esac |
14196 | fi |
14197 | ;; |
14198 | |
14199 | irix5* | irix6* | nonstopux*) |
14200 | if test "$GCC" = yes; then |
14201 | archive_cmds_F77='$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' |
14202 | else |
14203 | archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
14204 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
14205 | fi |
14206 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14207 | hardcode_libdir_separator_F77=: |
14208 | link_all_deplibs_F77=yes |
14209 | ;; |
14210 | |
14211 | netbsd*) |
14212 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14213 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
14214 | else |
14215 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
14216 | fi |
14217 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14218 | hardcode_direct_F77=yes |
14219 | hardcode_shlibpath_var_F77=no |
14220 | ;; |
14221 | |
14222 | newsos6) |
14223 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14224 | hardcode_direct_F77=yes |
14225 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14226 | hardcode_libdir_separator_F77=: |
14227 | hardcode_shlibpath_var_F77=no |
14228 | ;; |
14229 | |
14230 | openbsd*) |
14231 | hardcode_direct_F77=yes |
14232 | hardcode_shlibpath_var_F77=no |
14233 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
14234 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14235 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
14236 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14237 | export_dynamic_flag_spec_F77='${wl}-E' |
14238 | else |
14239 | case $host_os in |
14240 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
14241 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14242 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14243 | ;; |
14244 | *) |
14245 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14246 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14247 | ;; |
14248 | esac |
14249 | fi |
14250 | ;; |
14251 | |
14252 | os2*) |
14253 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14254 | hardcode_minus_L_F77=yes |
14255 | allow_undefined_flag_F77=unsupported |
14256 | archive_cmds_F77='$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' |
14257 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
14258 | ;; |
14259 | |
14260 | osf3*) |
14261 | if test "$GCC" = yes; then |
14262 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
14263 | archive_cmds_F77='$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' |
14264 | else |
14265 | allow_undefined_flag_F77=' -expect_unresolved \*' |
14266 | archive_cmds_F77='$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' |
14267 | fi |
14268 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14269 | hardcode_libdir_separator_F77=: |
14270 | ;; |
14271 | |
14272 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
14273 | if test "$GCC" = yes; then |
14274 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
14275 | archive_cmds_F77='$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' |
14276 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14277 | else |
14278 | allow_undefined_flag_F77=' -expect_unresolved \*' |
14279 | archive_cmds_F77='$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' |
14280 | archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
14281 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
14282 | |
14283 | # Both c and cxx compiler support -rpath directly |
14284 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
14285 | fi |
14286 | hardcode_libdir_separator_F77=: |
14287 | ;; |
14288 | |
14289 | solaris*) |
14290 | no_undefined_flag_F77=' -z text' |
14291 | if test "$GCC" = yes; then |
14292 | wlarc='${wl}' |
14293 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14294 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14295 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
14296 | else |
14297 | wlarc='' |
14298 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14299 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14300 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
14301 | fi |
14302 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14303 | hardcode_shlibpath_var_F77=no |
14304 | case $host_os in |
14305 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
14306 | *) |
14307 | # The compiler driver will combine linker options so we |
14308 | # cannot just pass the convience library names through |
14309 | # without $wl, iff we do not link with $LD. |
14310 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
14311 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
14312 | case $wlarc in |
14313 | '') |
14314 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
14315 | *) |
14316 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
14317 | esac ;; |
14318 | esac |
14319 | link_all_deplibs_F77=yes |
14320 | ;; |
14321 | |
14322 | sunos4*) |
14323 | if test "x$host_vendor" = xsequent; then |
14324 | # Use $CC to link under sequent, because it throws in some extra .o |
14325 | # files that make .init and .fini sections work. |
14326 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
14327 | else |
14328 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
14329 | fi |
14330 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14331 | hardcode_direct_F77=yes |
14332 | hardcode_minus_L_F77=yes |
14333 | hardcode_shlibpath_var_F77=no |
14334 | ;; |
14335 | |
14336 | sysv4) |
14337 | case $host_vendor in |
14338 | sni) |
14339 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14340 | hardcode_direct_F77=yes # is this really true??? |
14341 | ;; |
14342 | siemens) |
14343 | ## LD is ld it makes a PLAMLIB |
14344 | ## CC just makes a GrossModule. |
14345 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
14346 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
14347 | hardcode_direct_F77=no |
14348 | ;; |
14349 | motorola) |
14350 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14351 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
14352 | ;; |
14353 | esac |
14354 | runpath_var='LD_RUN_PATH' |
14355 | hardcode_shlibpath_var_F77=no |
14356 | ;; |
14357 | |
14358 | sysv4.3*) |
14359 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14360 | hardcode_shlibpath_var_F77=no |
14361 | export_dynamic_flag_spec_F77='-Bexport' |
14362 | ;; |
14363 | |
14364 | sysv4*MP*) |
14365 | if test -d /usr/nec; then |
14366 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14367 | hardcode_shlibpath_var_F77=no |
14368 | runpath_var=LD_RUN_PATH |
14369 | hardcode_runpath_var=yes |
14370 | ld_shlibs_F77=yes |
14371 | fi |
14372 | ;; |
14373 | |
14374 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
14375 | no_undefined_flag_F77='${wl}-z,text' |
14376 | archive_cmds_need_lc_F77=no |
14377 | hardcode_shlibpath_var_F77=no |
14378 | runpath_var='LD_RUN_PATH' |
14379 | |
14380 | if test "$GCC" = yes; then |
14381 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14382 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14383 | else |
14384 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14385 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14386 | fi |
14387 | ;; |
14388 | |
14389 | sysv5* | sco3.2v5* | sco5v6*) |
14390 | # Note: We can NOT use -z defs as we might desire, because we do not |
14391 | # link with -lc, and that would cause any symbols used from libc to |
14392 | # always be unresolved, which means just about no library would |
14393 | # ever link correctly. If we're not using GNU ld we use -z text |
14394 | # though, which does catch some bad symbols but isn't as heavy-handed |
14395 | # as -z defs. |
14396 | no_undefined_flag_F77='${wl}-z,text' |
14397 | allow_undefined_flag_F77='${wl}-z,nodefs' |
14398 | archive_cmds_need_lc_F77=no |
14399 | hardcode_shlibpath_var_F77=no |
14400 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
14401 | hardcode_libdir_separator_F77=':' |
14402 | link_all_deplibs_F77=yes |
14403 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
14404 | runpath_var='LD_RUN_PATH' |
14405 | |
14406 | if test "$GCC" = yes; then |
14407 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14408 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14409 | else |
14410 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14411 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14412 | fi |
14413 | ;; |
14414 | |
14415 | uts4*) |
14416 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14417 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14418 | hardcode_shlibpath_var_F77=no |
14419 | ;; |
14420 | |
14421 | *) |
14422 | ld_shlibs_F77=no |
14423 | ;; |
14424 | esac |
14425 | fi |
14426 | |
14427 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
14428 | echo "${ECHO_T}$ld_shlibs_F77" >&6 |
14429 | test "$ld_shlibs_F77" = no && can_build_shared=no |
14430 | |
14431 | # |
14432 | # Do we need to explicitly link libc? |
14433 | # |
14434 | case "x$archive_cmds_need_lc_F77" in |
14435 | x|xyes) |
14436 | # Assume -lc should be added |
14437 | archive_cmds_need_lc_F77=yes |
14438 | |
14439 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
14440 | case $archive_cmds_F77 in |
14441 | *'~'*) |
14442 | # FIXME: we may have to deal with multi-command sequences. |
14443 | ;; |
14444 | '$CC '*) |
14445 | # Test whether the compiler implicitly links with -lc since on some |
14446 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
14447 | # to ld, don't add -lc before -lgcc. |
14448 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
14449 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
14450 | $rm conftest* |
14451 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
14452 | |
14453 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
14454 | (eval $ac_compile) 2>&5 |
14455 | ac_status=$? |
14456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14457 | (exit $ac_status); } 2>conftest.err; then |
14458 | soname=conftest |
14459 | lib=conftest |
14460 | libobjs=conftest.$ac_objext |
14461 | deplibs= |
14462 | wl=$lt_prog_compiler_wl_F77 |
14463 | pic_flag=$lt_prog_compiler_pic_F77 |
14464 | compiler_flags=-v |
14465 | linker_flags=-v |
14466 | verstring= |
14467 | output_objdir=. |
14468 | libname=conftest |
14469 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
14470 | allow_undefined_flag_F77= |
14471 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
14472 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
14473 | ac_status=$? |
14474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14475 | (exit $ac_status); } |
14476 | then |
14477 | archive_cmds_need_lc_F77=no |
14478 | else |
14479 | archive_cmds_need_lc_F77=yes |
14480 | fi |
14481 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
14482 | else |
14483 | cat conftest.err 1>&5 |
14484 | fi |
14485 | $rm conftest* |
14486 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
14487 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
14488 | ;; |
14489 | esac |
14490 | fi |
14491 | ;; |
14492 | esac |
14493 | |
14494 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
14495 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
14496 | library_names_spec= |
14497 | libname_spec='lib$name' |
14498 | soname_spec= |
14499 | shrext_cmds=".so" |
14500 | postinstall_cmds= |
14501 | postuninstall_cmds= |
14502 | finish_cmds= |
14503 | finish_eval= |
14504 | shlibpath_var= |
14505 | shlibpath_overrides_runpath=unknown |
14506 | version_type=none |
14507 | dynamic_linker="$host_os ld.so" |
14508 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
14509 | if test "$GCC" = yes; then |
14510 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
14511 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
14512 | # if the path contains ";" then we assume it to be the separator |
14513 | # otherwise default to the standard path separator (i.e. ":") - it is |
14514 | # assumed that no part of a normal pathname contains ";" but that should |
14515 | # okay in the real world where ";" in dirpaths is itself problematic. |
14516 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
14517 | else |
14518 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
14519 | fi |
14520 | else |
14521 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
14522 | fi |
14523 | need_lib_prefix=unknown |
14524 | hardcode_into_libs=no |
14525 | |
14526 | # when you set need_version to no, make sure it does not cause -set_version |
14527 | # flags to be left without arguments |
14528 | need_version=unknown |
14529 | |
14530 | case $host_os in |
14531 | aix3*) |
14532 | version_type=linux |
14533 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
14534 | shlibpath_var=LIBPATH |
14535 | |
14536 | # AIX 3 has no versioning support, so we append a major version to the name. |
14537 | soname_spec='${libname}${release}${shared_ext}$major' |
14538 | ;; |
14539 | |
14540 | aix4* | aix5*) |
14541 | version_type=linux |
14542 | need_lib_prefix=no |
14543 | need_version=no |
14544 | hardcode_into_libs=yes |
14545 | if test "$host_cpu" = ia64; then |
14546 | # AIX 5 supports IA64 |
14547 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
14548 | shlibpath_var=LD_LIBRARY_PATH |
14549 | else |
14550 | # With GCC up to 2.95.x, collect2 would create an import file |
14551 | # for dependence libraries. The import file would start with |
14552 | # the line `#! .'. This would cause the generated library to |
14553 | # depend on `.', always an invalid library. This was fixed in |
14554 | # development snapshots of GCC prior to 3.0. |
14555 | case $host_os in |
14556 | aix4 | aix4.[01] | aix4.[01].*) |
14557 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
14558 | echo ' yes ' |
14559 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
14560 | : |
14561 | else |
14562 | can_build_shared=no |
14563 | fi |
14564 | ;; |
14565 | esac |
14566 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
14567 | # soname into executable. Probably we can add versioning support to |
14568 | # collect2, so additional links can be useful in future. |
14569 | if test "$aix_use_runtimelinking" = yes; then |
14570 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
14571 | # instead of lib<name>.a to let people know that these are not |
14572 | # typical AIX shared libraries. |
14573 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14574 | else |
14575 | # We preserve .a as extension for shared libraries through AIX4.2 |
14576 | # and later when we are not doing run time linking. |
14577 | library_names_spec='${libname}${release}.a $libname.a' |
14578 | soname_spec='${libname}${release}${shared_ext}$major' |
14579 | fi |
14580 | shlibpath_var=LIBPATH |
14581 | fi |
14582 | ;; |
14583 | |
14584 | amigaos*) |
14585 | library_names_spec='$libname.ixlibrary $libname.a' |
14586 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
14587 | 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' |
14588 | ;; |
14589 | |
14590 | beos*) |
14591 | library_names_spec='${libname}${shared_ext}' |
14592 | dynamic_linker="$host_os ld.so" |
14593 | shlibpath_var=LIBRARY_PATH |
14594 | ;; |
14595 | |
14596 | bsdi[45]*) |
14597 | version_type=linux |
14598 | need_version=no |
14599 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14600 | soname_spec='${libname}${release}${shared_ext}$major' |
14601 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
14602 | shlibpath_var=LD_LIBRARY_PATH |
14603 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
14604 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
14605 | # the default ld.so.conf also contains /usr/contrib/lib and |
14606 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
14607 | # libtool to hard-code these into programs |
14608 | ;; |
14609 | |
14610 | cygwin* | mingw* | pw32*) |
14611 | version_type=windows |
14612 | shrext_cmds=".dll" |
14613 | need_version=no |
14614 | need_lib_prefix=no |
14615 | |
14616 | case $GCC,$host_os in |
14617 | yes,cygwin* | yes,mingw* | yes,pw32*) |
14618 | library_names_spec='$libname.dll.a' |
14619 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
14620 | postinstall_cmds='base_file=`basename \${file}`~ |
14621 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
14622 | dldir=$destdir/`dirname \$dlpath`~ |
14623 | test -d \$dldir || mkdir -p \$dldir~ |
14624 | $install_prog $dir/$dlname \$dldir/$dlname~ |
14625 | chmod a+x \$dldir/$dlname' |
14626 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
14627 | dlpath=$dir/\$dldll~ |
14628 | $rm \$dlpath' |
14629 | shlibpath_overrides_runpath=yes |
14630 | |
14631 | case $host_os in |
14632 | cygwin*) |
14633 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
14634 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
14635 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
14636 | ;; |
14637 | mingw*) |
14638 | # MinGW DLLs use traditional 'lib' prefix |
14639 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
14640 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
14641 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
14642 | # It is most probably a Windows format PATH printed by |
14643 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
14644 | # path with ; separators, and with drive letters. We can handle the |
14645 | # drive letters (cygwin fileutils understands them), so leave them, |
14646 | # especially as we might pass files found there to a mingw objdump, |
14647 | # which wouldn't understand a cygwinified path. Ahh. |
14648 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
14649 | else |
14650 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
14651 | fi |
14652 | ;; |
14653 | pw32*) |
14654 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
14655 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
14656 | ;; |
14657 | esac |
14658 | ;; |
14659 | |
14660 | *) |
14661 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
14662 | ;; |
14663 | esac |
14664 | dynamic_linker='Win32 ld.exe' |
14665 | # FIXME: first we should search . and the directory the executable is in |
14666 | shlibpath_var=PATH |
14667 | ;; |
14668 | |
14669 | darwin* | rhapsody*) |
14670 | dynamic_linker="$host_os dyld" |
14671 | version_type=darwin |
14672 | need_lib_prefix=no |
14673 | need_version=no |
14674 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
14675 | soname_spec='${libname}${release}${major}$shared_ext' |
14676 | shlibpath_overrides_runpath=yes |
14677 | shlibpath_var=DYLD_LIBRARY_PATH |
14678 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
14679 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
14680 | if test "$GCC" = yes; then |
14681 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
14682 | else |
14683 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
14684 | fi |
14685 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
14686 | ;; |
14687 | |
14688 | dgux*) |
14689 | version_type=linux |
14690 | need_lib_prefix=no |
14691 | need_version=no |
14692 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
14693 | soname_spec='${libname}${release}${shared_ext}$major' |
14694 | shlibpath_var=LD_LIBRARY_PATH |
14695 | ;; |
14696 | |
14697 | freebsd1*) |
14698 | dynamic_linker=no |
14699 | ;; |
14700 | |
14701 | kfreebsd*-gnu) |
14702 | version_type=linux |
14703 | need_lib_prefix=no |
14704 | need_version=no |
14705 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
14706 | soname_spec='${libname}${release}${shared_ext}$major' |
14707 | shlibpath_var=LD_LIBRARY_PATH |
14708 | shlibpath_overrides_runpath=no |
14709 | hardcode_into_libs=yes |
14710 | dynamic_linker='GNU ld.so' |
14711 | ;; |
14712 | |
14713 | freebsd* | dragonfly*) |
14714 | # DragonFly does not have aout. When/if they implement a new |
14715 | # versioning mechanism, adjust this. |
14716 | if test -x /usr/bin/objformat; then |
14717 | objformat=`/usr/bin/objformat` |
14718 | else |
14719 | case $host_os in |
14720 | freebsd[123]*) objformat=aout ;; |
14721 | *) objformat=elf ;; |
14722 | esac |
14723 | fi |
14724 | version_type=freebsd-$objformat |
14725 | case $version_type in |
14726 | freebsd-elf*) |
14727 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
14728 | need_version=no |
14729 | need_lib_prefix=no |
14730 | ;; |
14731 | freebsd-*) |
14732 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
14733 | need_version=yes |
14734 | ;; |
14735 | esac |
14736 | shlibpath_var=LD_LIBRARY_PATH |
14737 | case $host_os in |
14738 | freebsd2*) |
14739 | shlibpath_overrides_runpath=yes |
14740 | ;; |
14741 | freebsd3.[01]* | freebsdelf3.[01]*) |
14742 | shlibpath_overrides_runpath=yes |
14743 | hardcode_into_libs=yes |
14744 | ;; |
14745 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
14746 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
14747 | shlibpath_overrides_runpath=no |
14748 | hardcode_into_libs=yes |
14749 | ;; |
14750 | freebsd*) # from 4.6 on |
14751 | shlibpath_overrides_runpath=yes |
14752 | hardcode_into_libs=yes |
14753 | ;; |
14754 | esac |
14755 | ;; |
14756 | |
14757 | gnu*) |
14758 | version_type=linux |
14759 | need_lib_prefix=no |
14760 | need_version=no |
14761 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
14762 | soname_spec='${libname}${release}${shared_ext}$major' |
14763 | shlibpath_var=LD_LIBRARY_PATH |
14764 | hardcode_into_libs=yes |
14765 | ;; |
14766 | |
14767 | hpux9* | hpux10* | hpux11*) |
14768 | # Give a soname corresponding to the major version so that dld.sl refuses to |
14769 | # link against other versions. |
14770 | version_type=sunos |
14771 | need_lib_prefix=no |
14772 | need_version=no |
14773 | case $host_cpu in |
14774 | ia64*) |
14775 | shrext_cmds='.so' |
14776 | hardcode_into_libs=yes |
14777 | dynamic_linker="$host_os dld.so" |
14778 | shlibpath_var=LD_LIBRARY_PATH |
14779 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
14780 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14781 | soname_spec='${libname}${release}${shared_ext}$major' |
14782 | if test "X$HPUX_IA64_MODE" = X32; then |
14783 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
14784 | else |
14785 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
14786 | fi |
14787 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
14788 | ;; |
14789 | hppa*64*) |
14790 | shrext_cmds='.sl' |
14791 | hardcode_into_libs=yes |
14792 | dynamic_linker="$host_os dld.sl" |
14793 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
14794 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
14795 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14796 | soname_spec='${libname}${release}${shared_ext}$major' |
14797 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
14798 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
14799 | ;; |
14800 | *) |
14801 | shrext_cmds='.sl' |
14802 | dynamic_linker="$host_os dld.sl" |
14803 | shlibpath_var=SHLIB_PATH |
14804 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
14805 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14806 | soname_spec='${libname}${release}${shared_ext}$major' |
14807 | ;; |
14808 | esac |
14809 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
14810 | postinstall_cmds='chmod 555 $lib' |
14811 | ;; |
14812 | |
14813 | interix3*) |
14814 | version_type=linux |
14815 | need_lib_prefix=no |
14816 | need_version=no |
14817 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
14818 | soname_spec='${libname}${release}${shared_ext}$major' |
14819 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
14820 | shlibpath_var=LD_LIBRARY_PATH |
14821 | shlibpath_overrides_runpath=no |
14822 | hardcode_into_libs=yes |
14823 | ;; |
14824 | |
14825 | irix5* | irix6* | nonstopux*) |
14826 | case $host_os in |
14827 | nonstopux*) version_type=nonstopux ;; |
14828 | *) |
14829 | if test "$lt_cv_prog_gnu_ld" = yes; then |
14830 | version_type=linux |
14831 | else |
14832 | version_type=irix |
14833 | fi ;; |
14834 | esac |
14835 | need_lib_prefix=no |
14836 | need_version=no |
14837 | soname_spec='${libname}${release}${shared_ext}$major' |
14838 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
14839 | case $host_os in |
14840 | irix5* | nonstopux*) |
14841 | libsuff= shlibsuff= |
14842 | ;; |
14843 | *) |
14844 | case $LD in # libtool.m4 will add one of these switches to LD |
14845 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
14846 | libsuff= shlibsuff= libmagic=32-bit;; |
14847 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
14848 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
14849 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
14850 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
14851 | *) libsuff= shlibsuff= libmagic=never-match;; |
14852 | esac |
14853 | ;; |
14854 | esac |
14855 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
14856 | shlibpath_overrides_runpath=no |
14857 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
14858 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
14859 | hardcode_into_libs=yes |
14860 | ;; |
14861 | |
14862 | # No shared lib support for Linux oldld, aout, or coff. |
14863 | linux*oldld* | linux*aout* | linux*coff*) |
14864 | dynamic_linker=no |
14865 | ;; |
14866 | |
14867 | # This must be Linux ELF. |
14868 | linux*) |
14869 | version_type=linux |
14870 | need_lib_prefix=no |
14871 | need_version=no |
14872 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14873 | soname_spec='${libname}${release}${shared_ext}$major' |
14874 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
14875 | shlibpath_var=LD_LIBRARY_PATH |
14876 | shlibpath_overrides_runpath=no |
14877 | # This implies no fast_install, which is unacceptable. |
14878 | # Some rework will be needed to allow for fast_install |
14879 | # before this can be enabled. |
14880 | hardcode_into_libs=yes |
14881 | |
14882 | # find out which ABI we are using |
14883 | libsuff= |
14884 | case "$host_cpu" in |
14885 | x86_64*|s390x*|powerpc64*) |
14886 | echo '#line 14886 "configure"' > conftest.$ac_ext |
14887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
14888 | (eval $ac_compile) 2>&5 |
14889 | ac_status=$? |
14890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14891 | (exit $ac_status); }; then |
14892 | case `/usr/bin/file conftest.$ac_objext` in |
14893 | *64-bit*) |
14894 | libsuff=64 |
14895 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
14896 | ;; |
14897 | esac |
14898 | fi |
14899 | rm -rf conftest* |
14900 | ;; |
14901 | esac |
14902 | |
14903 | # Append ld.so.conf contents to the search path |
14904 | if test -f /etc/ld.so.conf; then |
14905 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
14906 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
14907 | fi |
14908 | |
14909 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
14910 | # powerpc, because MkLinux only supported shared libraries with the |
14911 | # GNU dynamic linker. Since this was broken with cross compilers, |
14912 | # most powerpc-linux boxes support dynamic linking these days and |
14913 | # people can always --disable-shared, the test was removed, and we |
14914 | # assume the GNU/Linux dynamic linker is in use. |
14915 | dynamic_linker='GNU/Linux ld.so' |
14916 | ;; |
14917 | |
14918 | knetbsd*-gnu) |
14919 | version_type=linux |
14920 | need_lib_prefix=no |
14921 | need_version=no |
14922 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
14923 | soname_spec='${libname}${release}${shared_ext}$major' |
14924 | shlibpath_var=LD_LIBRARY_PATH |
14925 | shlibpath_overrides_runpath=no |
14926 | hardcode_into_libs=yes |
14927 | dynamic_linker='GNU ld.so' |
14928 | ;; |
14929 | |
14930 | netbsd*) |
14931 | version_type=sunos |
14932 | need_lib_prefix=no |
14933 | need_version=no |
14934 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14935 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
14936 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
14937 | dynamic_linker='NetBSD (a.out) ld.so' |
14938 | else |
14939 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
14940 | soname_spec='${libname}${release}${shared_ext}$major' |
14941 | dynamic_linker='NetBSD ld.elf_so' |
14942 | fi |
14943 | shlibpath_var=LD_LIBRARY_PATH |
14944 | shlibpath_overrides_runpath=yes |
14945 | hardcode_into_libs=yes |
14946 | ;; |
14947 | |
14948 | newsos6) |
14949 | version_type=linux |
14950 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14951 | shlibpath_var=LD_LIBRARY_PATH |
14952 | shlibpath_overrides_runpath=yes |
14953 | ;; |
14954 | |
14955 | nto-qnx*) |
14956 | version_type=linux |
14957 | need_lib_prefix=no |
14958 | need_version=no |
14959 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14960 | soname_spec='${libname}${release}${shared_ext}$major' |
14961 | shlibpath_var=LD_LIBRARY_PATH |
14962 | shlibpath_overrides_runpath=yes |
14963 | ;; |
14964 | |
14965 | openbsd*) |
14966 | version_type=sunos |
14967 | sys_lib_dlsearch_path_spec="/usr/lib" |
14968 | need_lib_prefix=no |
14969 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
14970 | case $host_os in |
14971 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
14972 | *) need_version=no ;; |
14973 | esac |
14974 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
14975 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
14976 | shlibpath_var=LD_LIBRARY_PATH |
14977 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
14978 | case $host_os in |
14979 | openbsd2.[89] | openbsd2.[89].*) |
14980 | shlibpath_overrides_runpath=no |
14981 | ;; |
14982 | *) |
14983 | shlibpath_overrides_runpath=yes |
14984 | ;; |
14985 | esac |
14986 | else |
14987 | shlibpath_overrides_runpath=yes |
14988 | fi |
14989 | ;; |
14990 | |
14991 | os2*) |
14992 | libname_spec='$name' |
14993 | shrext_cmds=".dll" |
14994 | need_lib_prefix=no |
14995 | library_names_spec='$libname${shared_ext} $libname.a' |
14996 | dynamic_linker='OS/2 ld.exe' |
14997 | shlibpath_var=LIBPATH |
14998 | ;; |
14999 | |
15000 | osf3* | osf4* | osf5*) |
15001 | version_type=osf |
15002 | need_lib_prefix=no |
15003 | need_version=no |
15004 | soname_spec='${libname}${release}${shared_ext}$major' |
15005 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15006 | shlibpath_var=LD_LIBRARY_PATH |
15007 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
15008 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
15009 | ;; |
15010 | |
15011 | solaris*) |
15012 | version_type=linux |
15013 | need_lib_prefix=no |
15014 | need_version=no |
15015 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15016 | soname_spec='${libname}${release}${shared_ext}$major' |
15017 | shlibpath_var=LD_LIBRARY_PATH |
15018 | shlibpath_overrides_runpath=yes |
15019 | hardcode_into_libs=yes |
15020 | # ldd complains unless libraries are executable |
15021 | postinstall_cmds='chmod +x $lib' |
15022 | ;; |
15023 | |
15024 | sunos4*) |
15025 | version_type=sunos |
15026 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15027 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
15028 | shlibpath_var=LD_LIBRARY_PATH |
15029 | shlibpath_overrides_runpath=yes |
15030 | if test "$with_gnu_ld" = yes; then |
15031 | need_lib_prefix=no |
15032 | fi |
15033 | need_version=yes |
15034 | ;; |
15035 | |
15036 | sysv4 | sysv4.3*) |
15037 | version_type=linux |
15038 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15039 | soname_spec='${libname}${release}${shared_ext}$major' |
15040 | shlibpath_var=LD_LIBRARY_PATH |
15041 | case $host_vendor in |
15042 | sni) |
15043 | shlibpath_overrides_runpath=no |
15044 | need_lib_prefix=no |
15045 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
15046 | runpath_var=LD_RUN_PATH |
15047 | ;; |
15048 | siemens) |
15049 | need_lib_prefix=no |
15050 | ;; |
15051 | motorola) |
15052 | need_lib_prefix=no |
15053 | need_version=no |
15054 | shlibpath_overrides_runpath=no |
15055 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
15056 | ;; |
15057 | esac |
15058 | ;; |
15059 | |
15060 | sysv4*MP*) |
15061 | if test -d /usr/nec ;then |
15062 | version_type=linux |
15063 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
15064 | soname_spec='$libname${shared_ext}.$major' |
15065 | shlibpath_var=LD_LIBRARY_PATH |
15066 | fi |
15067 | ;; |
15068 | |
15069 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
15070 | version_type=freebsd-elf |
15071 | need_lib_prefix=no |
15072 | need_version=no |
15073 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15074 | soname_spec='${libname}${release}${shared_ext}$major' |
15075 | shlibpath_var=LD_LIBRARY_PATH |
15076 | hardcode_into_libs=yes |
15077 | if test "$with_gnu_ld" = yes; then |
15078 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
15079 | shlibpath_overrides_runpath=no |
15080 | else |
15081 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
15082 | shlibpath_overrides_runpath=yes |
15083 | case $host_os in |
15084 | sco3.2v5*) |
15085 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
15086 | ;; |
15087 | esac |
15088 | fi |
15089 | sys_lib_dlsearch_path_spec='/usr/lib' |
15090 | ;; |
15091 | |
15092 | uts4*) |
15093 | version_type=linux |
15094 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15095 | soname_spec='${libname}${release}${shared_ext}$major' |
15096 | shlibpath_var=LD_LIBRARY_PATH |
15097 | ;; |
15098 | |
15099 | *) |
15100 | dynamic_linker=no |
15101 | ;; |
15102 | esac |
15103 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
15104 | echo "${ECHO_T}$dynamic_linker" >&6 |
15105 | test "$dynamic_linker" = no && can_build_shared=no |
15106 | |
15107 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
15108 | if test "$GCC" = yes; then |
15109 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
15110 | fi |
15111 | |
15112 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
15113 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
15114 | hardcode_action_F77= |
15115 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
15116 | test -n "$runpath_var_F77" || \ |
15117 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
15118 | |
15119 | # We can hardcode non-existant directories. |
15120 | if test "$hardcode_direct_F77" != no && |
15121 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
15122 | # have to relink, otherwise we might link with an installed library |
15123 | # when we should be linking with a yet-to-be-installed one |
15124 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
15125 | test "$hardcode_minus_L_F77" != no; then |
15126 | # Linking always hardcodes the temporary library directory. |
15127 | hardcode_action_F77=relink |
15128 | else |
15129 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
15130 | hardcode_action_F77=immediate |
15131 | fi |
15132 | else |
15133 | # We cannot hardcode anything, or else we can only hardcode existing |
15134 | # directories. |
15135 | hardcode_action_F77=unsupported |
15136 | fi |
15137 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
15138 | echo "${ECHO_T}$hardcode_action_F77" >&6 |
15139 | |
15140 | if test "$hardcode_action_F77" = relink; then |
15141 | # Fast installation is not supported |
15142 | enable_fast_install=no |
15143 | elif test "$shlibpath_overrides_runpath" = yes || |
15144 | test "$enable_shared" = no; then |
15145 | # Fast installation is not necessary |
15146 | enable_fast_install=needless |
15147 | fi |
15148 | |
15149 | |
15150 | # The else clause should only fire when bootstrapping the |
15151 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
15152 | # with your package, and you will get complaints that there are |
15153 | # no rules to generate ltmain.sh. |
15154 | if test -f "$ltmain"; then |
15155 | # See if we are running on zsh, and set the options which allow our commands through |
15156 | # without removal of \ escapes. |
15157 | if test -n "${ZSH_VERSION+set}" ; then |
15158 | setopt NO_GLOB_SUBST |
15159 | fi |
15160 | # Now quote all the things that may contain metacharacters while being |
15161 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
15162 | # variables and quote the copies for generation of the libtool script. |
15163 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
15164 | SED SHELL STRIP \ |
15165 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
15166 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
15167 | deplibs_check_method reload_flag reload_cmds need_locks \ |
15168 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
15169 | lt_cv_sys_global_symbol_to_c_name_address \ |
15170 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
15171 | old_postinstall_cmds old_postuninstall_cmds \ |
15172 | compiler_F77 \ |
15173 | CC_F77 \ |
15174 | LD_F77 \ |
15175 | lt_prog_compiler_wl_F77 \ |
15176 | lt_prog_compiler_pic_F77 \ |
15177 | lt_prog_compiler_static_F77 \ |
15178 | lt_prog_compiler_no_builtin_flag_F77 \ |
15179 | export_dynamic_flag_spec_F77 \ |
15180 | thread_safe_flag_spec_F77 \ |
15181 | whole_archive_flag_spec_F77 \ |
15182 | enable_shared_with_static_runtimes_F77 \ |
15183 | old_archive_cmds_F77 \ |
15184 | old_archive_from_new_cmds_F77 \ |
15185 | predep_objects_F77 \ |
15186 | postdep_objects_F77 \ |
15187 | predeps_F77 \ |
15188 | postdeps_F77 \ |
15189 | compiler_lib_search_path_F77 \ |
15190 | archive_cmds_F77 \ |
15191 | archive_expsym_cmds_F77 \ |
15192 | postinstall_cmds_F77 \ |
15193 | postuninstall_cmds_F77 \ |
15194 | old_archive_from_expsyms_cmds_F77 \ |
15195 | allow_undefined_flag_F77 \ |
15196 | no_undefined_flag_F77 \ |
15197 | export_symbols_cmds_F77 \ |
15198 | hardcode_libdir_flag_spec_F77 \ |
15199 | hardcode_libdir_flag_spec_ld_F77 \ |
15200 | hardcode_libdir_separator_F77 \ |
15201 | hardcode_automatic_F77 \ |
15202 | module_cmds_F77 \ |
15203 | module_expsym_cmds_F77 \ |
15204 | lt_cv_prog_compiler_c_o_F77 \ |
15205 | exclude_expsyms_F77 \ |
15206 | include_expsyms_F77; do |
15207 | |
15208 | case $var in |
15209 | old_archive_cmds_F77 | \ |
15210 | old_archive_from_new_cmds_F77 | \ |
15211 | archive_cmds_F77 | \ |
15212 | archive_expsym_cmds_F77 | \ |
15213 | module_cmds_F77 | \ |
15214 | module_expsym_cmds_F77 | \ |
15215 | old_archive_from_expsyms_cmds_F77 | \ |
15216 | export_symbols_cmds_F77 | \ |
15217 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
15218 | postinstall_cmds | postuninstall_cmds | \ |
15219 | old_postinstall_cmds | old_postuninstall_cmds | \ |
15220 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
15221 | # Double-quote double-evaled strings. |
15222 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
15223 | ;; |
15224 | *) |
15225 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
15226 | ;; |
15227 | esac |
15228 | done |
15229 | |
15230 | case $lt_echo in |
15231 | *'\$0 --fallback-echo"') |
15232 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
15233 | ;; |
15234 | esac |
15235 | |
15236 | cfgfile="$ofile" |
15237 | |
15238 | cat <<__EOF__ >> "$cfgfile" |
15239 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
15240 | |
15241 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
15242 | |
15243 | # Shell to use when invoking shell scripts. |
15244 | SHELL=$lt_SHELL |
15245 | |
15246 | # Whether or not to build shared libraries. |
15247 | build_libtool_libs=$enable_shared |
15248 | |
15249 | # Whether or not to build static libraries. |
15250 | build_old_libs=$enable_static |
15251 | |
15252 | # Whether or not to add -lc for building shared libraries. |
15253 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
15254 | |
15255 | # Whether or not to disallow shared libs when runtime libs are static |
15256 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
15257 | |
15258 | # Whether or not to optimize for fast installation. |
15259 | fast_install=$enable_fast_install |
15260 | |
15261 | # The host system. |
15262 | host_alias=$host_alias |
15263 | host=$host |
15264 | host_os=$host_os |
15265 | |
15266 | # The build system. |
15267 | build_alias=$build_alias |
15268 | build=$build |
15269 | build_os=$build_os |
15270 | |
15271 | # An echo program that does not interpret backslashes. |
15272 | echo=$lt_echo |
15273 | |
15274 | # The archiver. |
15275 | AR=$lt_AR |
15276 | AR_FLAGS=$lt_AR_FLAGS |
15277 | |
15278 | # A C compiler. |
15279 | LTCC=$lt_LTCC |
15280 | |
15281 | # LTCC compiler flags. |
15282 | LTCFLAGS=$lt_LTCFLAGS |
15283 | |
15284 | # A language-specific compiler. |
15285 | CC=$lt_compiler_F77 |
15286 | |
15287 | # Is the compiler the GNU C compiler? |
15288 | with_gcc=$GCC_F77 |
15289 | |
15290 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
15291 | gcc_ver=\`gcc -dumpversion\` |
15292 | |
15293 | # An ERE matcher. |
15294 | EGREP=$lt_EGREP |
15295 | |
15296 | # The linker used to build libraries. |
15297 | LD=$lt_LD_F77 |
15298 | |
15299 | # Whether we need hard or soft links. |
15300 | LN_S=$lt_LN_S |
15301 | |
15302 | # A BSD-compatible nm program. |
15303 | NM=$lt_NM |
15304 | |
15305 | # A symbol stripping program |
15306 | STRIP=$lt_STRIP |
15307 | |
15308 | # Used to examine libraries when file_magic_cmd begins "file" |
15309 | MAGIC_CMD=$MAGIC_CMD |
15310 | |
15311 | # Used on cygwin: DLL creation program. |
15312 | DLLTOOL="$DLLTOOL" |
15313 | |
15314 | # Used on cygwin: object dumper. |
15315 | OBJDUMP="$OBJDUMP" |
15316 | |
15317 | # Used on cygwin: assembler. |
15318 | AS="$AS" |
15319 | |
15320 | # The name of the directory that contains temporary libtool files. |
15321 | objdir=$objdir |
15322 | |
15323 | # How to create reloadable object files. |
15324 | reload_flag=$lt_reload_flag |
15325 | reload_cmds=$lt_reload_cmds |
15326 | |
15327 | # How to pass a linker flag through the compiler. |
15328 | wl=$lt_lt_prog_compiler_wl_F77 |
15329 | |
15330 | # Object file suffix (normally "o"). |
15331 | objext="$ac_objext" |
15332 | |
15333 | # Old archive suffix (normally "a"). |
15334 | libext="$libext" |
15335 | |
15336 | # Shared library suffix (normally ".so"). |
15337 | shrext_cmds='$shrext_cmds' |
15338 | |
15339 | # Executable file suffix (normally ""). |
15340 | exeext="$exeext" |
15341 | |
15342 | # Additional compiler flags for building library objects. |
15343 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
15344 | pic_mode=$pic_mode |
15345 | |
15346 | # What is the maximum length of a command? |
15347 | max_cmd_len=$lt_cv_sys_max_cmd_len |
15348 | |
15349 | # Does compiler simultaneously support -c and -o options? |
15350 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
15351 | |
15352 | # Must we lock files when doing compilation? |
15353 | need_locks=$lt_need_locks |
15354 | |
15355 | # Do we need the lib prefix for modules? |
15356 | need_lib_prefix=$need_lib_prefix |
15357 | |
15358 | # Do we need a version for libraries? |
15359 | need_version=$need_version |
15360 | |
15361 | # Whether dlopen is supported. |
15362 | dlopen_support=$enable_dlopen |
15363 | |
15364 | # Whether dlopen of programs is supported. |
15365 | dlopen_self=$enable_dlopen_self |
15366 | |
15367 | # Whether dlopen of statically linked programs is supported. |
15368 | dlopen_self_static=$enable_dlopen_self_static |
15369 | |
15370 | # Compiler flag to prevent dynamic linking. |
15371 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
15372 | |
15373 | # Compiler flag to turn off builtin functions. |
15374 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
15375 | |
15376 | # Compiler flag to allow reflexive dlopens. |
15377 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
15378 | |
15379 | # Compiler flag to generate shared objects directly from archives. |
15380 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
15381 | |
15382 | # Compiler flag to generate thread-safe objects. |
15383 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
15384 | |
15385 | # Library versioning type. |
15386 | version_type=$version_type |
15387 | |
15388 | # Format of library name prefix. |
15389 | libname_spec=$lt_libname_spec |
15390 | |
15391 | # List of archive names. First name is the real one, the rest are links. |
15392 | # The last name is the one that the linker finds with -lNAME. |
15393 | library_names_spec=$lt_library_names_spec |
15394 | |
15395 | # The coded name of the library, if different from the real name. |
15396 | soname_spec=$lt_soname_spec |
15397 | |
15398 | # Commands used to build and install an old-style archive. |
15399 | RANLIB=$lt_RANLIB |
15400 | old_archive_cmds=$lt_old_archive_cmds_F77 |
15401 | old_postinstall_cmds=$lt_old_postinstall_cmds |
15402 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
15403 | |
15404 | # Create an old-style archive from a shared archive. |
15405 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
15406 | |
15407 | # Create a temporary old-style archive to link instead of a shared archive. |
15408 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
15409 | |
15410 | # Commands used to build and install a shared archive. |
15411 | archive_cmds=$lt_archive_cmds_F77 |
15412 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
15413 | postinstall_cmds=$lt_postinstall_cmds |
15414 | postuninstall_cmds=$lt_postuninstall_cmds |
15415 | |
15416 | # Commands used to build a loadable module (assumed same as above if empty) |
15417 | module_cmds=$lt_module_cmds_F77 |
15418 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
15419 | |
15420 | # Commands to strip libraries. |
15421 | old_striplib=$lt_old_striplib |
15422 | striplib=$lt_striplib |
15423 | |
15424 | # Dependencies to place before the objects being linked to create a |
15425 | # shared library. |
15426 | predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
15427 | |
15428 | # Dependencies to place after the objects being linked to create a |
15429 | # shared library. |
15430 | postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
15431 | |
15432 | # Dependencies to place before the objects being linked to create a |
15433 | # shared library. |
15434 | predeps=$lt_predeps_F77 |
15435 | |
15436 | # Dependencies to place after the objects being linked to create a |
15437 | # shared library. |
15438 | postdeps=$lt_postdeps_F77 |
15439 | |
15440 | # The library search path used internally by the compiler when linking |
15441 | # a shared library. |
15442 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
15443 | |
15444 | # Method to check whether dependent libraries are shared objects. |
15445 | deplibs_check_method=$lt_deplibs_check_method |
15446 | |
15447 | # Command to use when deplibs_check_method == file_magic. |
15448 | file_magic_cmd=$lt_file_magic_cmd |
15449 | |
15450 | # Flag that allows shared libraries with undefined symbols to be built. |
15451 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
15452 | |
15453 | # Flag that forces no undefined symbols. |
15454 | no_undefined_flag=$lt_no_undefined_flag_F77 |
15455 | |
15456 | # Commands used to finish a libtool library installation in a directory. |
15457 | finish_cmds=$lt_finish_cmds |
15458 | |
15459 | # Same as above, but a single script fragment to be evaled but not shown. |
15460 | finish_eval=$lt_finish_eval |
15461 | |
15462 | # Take the output of nm and produce a listing of raw symbols and C names. |
15463 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
15464 | |
15465 | # Transform the output of nm in a proper C declaration |
15466 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
15467 | |
15468 | # Transform the output of nm in a C name address pair |
15469 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
15470 | |
15471 | # This is the shared library runtime path variable. |
15472 | runpath_var=$runpath_var |
15473 | |
15474 | # This is the shared library path variable. |
15475 | shlibpath_var=$shlibpath_var |
15476 | |
15477 | # Is shlibpath searched before the hard-coded library search path? |
15478 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
15479 | |
15480 | # How to hardcode a shared library path into an executable. |
15481 | hardcode_action=$hardcode_action_F77 |
15482 | |
15483 | # Whether we should hardcode library paths into libraries. |
15484 | hardcode_into_libs=$hardcode_into_libs |
15485 | |
15486 | # Flag to hardcode \$libdir into a binary during linking. |
15487 | # This must work even if \$libdir does not exist. |
15488 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
15489 | |
15490 | # If ld is used when linking, flag to hardcode \$libdir into |
15491 | # a binary during linking. This must work even if \$libdir does |
15492 | # not exist. |
15493 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
15494 | |
15495 | # Whether we need a single -rpath flag with a separated argument. |
15496 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
15497 | |
15498 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
15499 | # resulting binary. |
15500 | hardcode_direct=$hardcode_direct_F77 |
15501 | |
15502 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
15503 | # resulting binary. |
15504 | hardcode_minus_L=$hardcode_minus_L_F77 |
15505 | |
15506 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
15507 | # the resulting binary. |
15508 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
15509 | |
15510 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
15511 | # and all subsequent libraries and executables linked against it. |
15512 | hardcode_automatic=$hardcode_automatic_F77 |
15513 | |
15514 | # Variables whose values should be saved in libtool wrapper scripts and |
15515 | # restored at relink time. |
15516 | variables_saved_for_relink="$variables_saved_for_relink" |
15517 | |
15518 | # Whether libtool must link a program against all its dependency libraries. |
15519 | link_all_deplibs=$link_all_deplibs_F77 |
15520 | |
15521 | # Compile-time system search path for libraries |
15522 | sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
15523 | |
15524 | # Run-time system search path for libraries |
15525 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
15526 | |
15527 | # Fix the shell variable \$srcfile for the compiler. |
15528 | fix_srcfile_path="$fix_srcfile_path_F77" |
15529 | |
15530 | # Set to yes if exported symbols are required. |
15531 | always_export_symbols=$always_export_symbols_F77 |
15532 | |
15533 | # The commands to list exported symbols. |
15534 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
15535 | |
15536 | # The commands to extract the exported symbol list from a shared archive. |
15537 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
15538 | |
15539 | # Symbols that should not be listed in the preloaded symbols. |
15540 | exclude_expsyms=$lt_exclude_expsyms_F77 |
15541 | |
15542 | # Symbols that must always be exported. |
15543 | include_expsyms=$lt_include_expsyms_F77 |
15544 | |
15545 | # ### END LIBTOOL TAG CONFIG: $tagname |
15546 | |
15547 | __EOF__ |
15548 | |
15549 | |
15550 | else |
15551 | # If there is no Makefile yet, we rely on a make rule to execute |
15552 | # `config.status --recheck' to rerun these tests and create the |
15553 | # libtool script then. |
15554 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
15555 | if test -f "$ltmain_in"; then |
15556 | test -f Makefile && make "$ltmain" |
15557 | fi |
15558 | fi |
15559 | |
15560 | |
15561 | ac_ext=c |
15562 | ac_cpp='$CPP $CPPFLAGS' |
15563 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
15564 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
15565 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
15566 | |
15567 | CC="$lt_save_CC" |
15568 | |
15569 | else |
15570 | tagname="" |
15571 | fi |
15572 | ;; |
15573 | |
15574 | GCJ) |
15575 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
15576 | |
15577 | |
15578 | |
15579 | # Source file extension for Java test sources. |
15580 | ac_ext=java |
15581 | |
15582 | # Object file extension for compiled Java test sources. |
15583 | objext=o |
15584 | objext_GCJ=$objext |
15585 | |
15586 | # Code to be used in simple compile tests |
15587 | lt_simple_compile_test_code="class foo {}\n" |
15588 | |
15589 | # Code to be used in simple link tests |
15590 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
15591 | |
15592 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
15593 | |
15594 | # If no C compiler was specified, use CC. |
15595 | LTCC=${LTCC-"$CC"} |
15596 | |
15597 | # If no C compiler flags were specified, use CFLAGS. |
15598 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
15599 | |
15600 | # Allow CC to be a program name with arguments. |
15601 | compiler=$CC |
15602 | |
15603 | |
15604 | # save warnings/boilerplate of simple test code |
15605 | ac_outfile=conftest.$ac_objext |
15606 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
15607 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
15608 | _lt_compiler_boilerplate=`cat conftest.err` |
15609 | $rm conftest* |
15610 | |
15611 | ac_outfile=conftest.$ac_objext |
15612 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
15613 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
15614 | _lt_linker_boilerplate=`cat conftest.err` |
15615 | $rm conftest* |
15616 | |
15617 | |
15618 | # Allow CC to be a program name with arguments. |
15619 | lt_save_CC="$CC" |
15620 | CC=${GCJ-"gcj"} |
15621 | compiler=$CC |
15622 | compiler_GCJ=$CC |
15623 | for cc_temp in $compiler""; do |
15624 | case $cc_temp in |
15625 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
15626 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
15627 | \-*) ;; |
15628 | *) break;; |
15629 | esac |
15630 | done |
15631 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
15632 | |
15633 | |
15634 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
15635 | archive_cmds_need_lc_GCJ=no |
15636 | |
15637 | old_archive_cmds_GCJ=$old_archive_cmds |
15638 | |
15639 | |
15640 | lt_prog_compiler_no_builtin_flag_GCJ= |
15641 | |
15642 | if test "$GCC" = yes; then |
15643 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
15644 | |
15645 | |
15646 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
15647 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
15648 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
15649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15650 | else |
15651 | lt_cv_prog_compiler_rtti_exceptions=no |
15652 | ac_outfile=conftest.$ac_objext |
15653 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
15654 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
15655 | # Insert the option either (1) after the last *FLAGS variable, or |
15656 | # (2) before a word containing "conftest.", or (3) at the end. |
15657 | # Note that $ac_compile itself does not contain backslashes and begins |
15658 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
15659 | # The option is referenced via a variable to avoid confusing sed. |
15660 | lt_compile=`echo "$ac_compile" | $SED \ |
15661 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
15662 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
15663 | -e 's:$: $lt_compiler_flag:'` |
15664 | (eval echo "\"\$as_me:15664: $lt_compile\"" >&5) |
15665 | (eval "$lt_compile" 2>conftest.err) |
15666 | ac_status=$? |
15667 | cat conftest.err >&5 |
15668 | echo "$as_me:15668: \$? = $ac_status" >&5 |
15669 | if (exit $ac_status) && test -s "$ac_outfile"; then |
15670 | # The compiler can only warn and ignore the option if not recognized |
15671 | # So say no if there are warnings other than the usual output. |
15672 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
15673 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
15674 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
15675 | lt_cv_prog_compiler_rtti_exceptions=yes |
15676 | fi |
15677 | fi |
15678 | $rm conftest* |
15679 | |
15680 | fi |
15681 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
15682 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
15683 | |
15684 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
15685 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
15686 | else |
15687 | : |
15688 | fi |
15689 | |
15690 | fi |
15691 | |
15692 | lt_prog_compiler_wl_GCJ= |
15693 | lt_prog_compiler_pic_GCJ= |
15694 | lt_prog_compiler_static_GCJ= |
15695 | |
15696 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
15697 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
15698 | |
15699 | if test "$GCC" = yes; then |
15700 | lt_prog_compiler_wl_GCJ='-Wl,' |
15701 | lt_prog_compiler_static_GCJ='-static' |
15702 | |
15703 | case $host_os in |
15704 | aix*) |
15705 | # All AIX code is PIC. |
15706 | if test "$host_cpu" = ia64; then |
15707 | # AIX 5 now supports IA64 processor |
15708 | lt_prog_compiler_static_GCJ='-Bstatic' |
15709 | fi |
15710 | ;; |
15711 | |
15712 | amigaos*) |
15713 | # FIXME: we need at least 68020 code to build shared libraries, but |
15714 | # adding the `-m68020' flag to GCC prevents building anything better, |
15715 | # like `-m68040'. |
15716 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
15717 | ;; |
15718 | |
15719 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
15720 | # PIC is the default for these OSes. |
15721 | ;; |
15722 | |
15723 | mingw* | pw32* | os2*) |
15724 | # This hack is so that the source file can tell whether it is being |
15725 | # built for inclusion in a dll (and should export symbols for example). |
15726 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
15727 | ;; |
15728 | |
15729 | darwin* | rhapsody*) |
15730 | # PIC is the default on this platform |
15731 | # Common symbols not allowed in MH_DYLIB files |
15732 | lt_prog_compiler_pic_GCJ='-fno-common' |
15733 | ;; |
15734 | |
15735 | interix3*) |
15736 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
15737 | # Instead, we relocate shared libraries at runtime. |
15738 | ;; |
15739 | |
15740 | msdosdjgpp*) |
15741 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
15742 | # on systems that don't support them. |
15743 | lt_prog_compiler_can_build_shared_GCJ=no |
15744 | enable_shared=no |
15745 | ;; |
15746 | |
15747 | sysv4*MP*) |
15748 | if test -d /usr/nec; then |
15749 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
15750 | fi |
15751 | ;; |
15752 | |
15753 | hpux*) |
15754 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
15755 | # not for PA HP-UX. |
15756 | case $host_cpu in |
15757 | hppa*64*|ia64*) |
15758 | # +Z the default |
15759 | ;; |
15760 | *) |
15761 | lt_prog_compiler_pic_GCJ='-fPIC' |
15762 | ;; |
15763 | esac |
15764 | ;; |
15765 | |
15766 | *) |
15767 | lt_prog_compiler_pic_GCJ='-fPIC' |
15768 | ;; |
15769 | esac |
15770 | else |
15771 | # PORTME Check for flag to pass linker flags through the system compiler. |
15772 | case $host_os in |
15773 | aix*) |
15774 | lt_prog_compiler_wl_GCJ='-Wl,' |
15775 | if test "$host_cpu" = ia64; then |
15776 | # AIX 5 now supports IA64 processor |
15777 | lt_prog_compiler_static_GCJ='-Bstatic' |
15778 | else |
15779 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
15780 | fi |
15781 | ;; |
15782 | darwin*) |
15783 | # PIC is the default on this platform |
15784 | # Common symbols not allowed in MH_DYLIB files |
15785 | case $cc_basename in |
15786 | xlc*) |
15787 | lt_prog_compiler_pic_GCJ='-qnocommon' |
15788 | lt_prog_compiler_wl_GCJ='-Wl,' |
15789 | ;; |
15790 | esac |
15791 | ;; |
15792 | |
15793 | 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_GCJ='-DDLL_EXPORT' |
15797 | ;; |
15798 | |
15799 | hpux9* | hpux10* | hpux11*) |
15800 | lt_prog_compiler_wl_GCJ='-Wl,' |
15801 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
15802 | # not for PA HP-UX. |
15803 | case $host_cpu in |
15804 | hppa*64*|ia64*) |
15805 | # +Z the default |
15806 | ;; |
15807 | *) |
15808 | lt_prog_compiler_pic_GCJ='+Z' |
15809 | ;; |
15810 | esac |
15811 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
15812 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
15813 | ;; |
15814 | |
15815 | irix5* | irix6* | nonstopux*) |
15816 | lt_prog_compiler_wl_GCJ='-Wl,' |
15817 | # PIC (with -KPIC) is the default. |
15818 | lt_prog_compiler_static_GCJ='-non_shared' |
15819 | ;; |
15820 | |
15821 | newsos6) |
15822 | lt_prog_compiler_pic_GCJ='-KPIC' |
15823 | lt_prog_compiler_static_GCJ='-Bstatic' |
15824 | ;; |
15825 | |
15826 | linux*) |
15827 | case $cc_basename in |
15828 | icc* | ecc*) |
15829 | lt_prog_compiler_wl_GCJ='-Wl,' |
15830 | lt_prog_compiler_pic_GCJ='-KPIC' |
15831 | lt_prog_compiler_static_GCJ='-static' |
15832 | ;; |
15833 | pgcc* | pgf77* | pgf90* | pgf95*) |
15834 | # Portland Group compilers (*not* the Pentium gcc compiler, |
15835 | # which looks to be a dead project) |
15836 | lt_prog_compiler_wl_GCJ='-Wl,' |
15837 | lt_prog_compiler_pic_GCJ='-fpic' |
15838 | lt_prog_compiler_static_GCJ='-Bstatic' |
15839 | ;; |
15840 | ccc*) |
15841 | lt_prog_compiler_wl_GCJ='-Wl,' |
15842 | # All Alpha code is PIC. |
15843 | lt_prog_compiler_static_GCJ='-non_shared' |
15844 | ;; |
15845 | esac |
15846 | ;; |
15847 | |
15848 | osf3* | osf4* | osf5*) |
15849 | lt_prog_compiler_wl_GCJ='-Wl,' |
15850 | # All OSF/1 code is PIC. |
15851 | lt_prog_compiler_static_GCJ='-non_shared' |
15852 | ;; |
15853 | |
15854 | solaris*) |
15855 | lt_prog_compiler_pic_GCJ='-KPIC' |
15856 | lt_prog_compiler_static_GCJ='-Bstatic' |
15857 | case $cc_basename in |
15858 | f77* | f90* | f95*) |
15859 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
15860 | *) |
15861 | lt_prog_compiler_wl_GCJ='-Wl,';; |
15862 | esac |
15863 | ;; |
15864 | |
15865 | sunos4*) |
15866 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
15867 | lt_prog_compiler_pic_GCJ='-PIC' |
15868 | lt_prog_compiler_static_GCJ='-Bstatic' |
15869 | ;; |
15870 | |
15871 | sysv4 | sysv4.2uw2* | sysv4.3*) |
15872 | lt_prog_compiler_wl_GCJ='-Wl,' |
15873 | lt_prog_compiler_pic_GCJ='-KPIC' |
15874 | lt_prog_compiler_static_GCJ='-Bstatic' |
15875 | ;; |
15876 | |
15877 | sysv4*MP*) |
15878 | if test -d /usr/nec ;then |
15879 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
15880 | lt_prog_compiler_static_GCJ='-Bstatic' |
15881 | fi |
15882 | ;; |
15883 | |
15884 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
15885 | lt_prog_compiler_wl_GCJ='-Wl,' |
15886 | lt_prog_compiler_pic_GCJ='-KPIC' |
15887 | lt_prog_compiler_static_GCJ='-Bstatic' |
15888 | ;; |
15889 | |
15890 | unicos*) |
15891 | lt_prog_compiler_wl_GCJ='-Wl,' |
15892 | lt_prog_compiler_can_build_shared_GCJ=no |
15893 | ;; |
15894 | |
15895 | uts4*) |
15896 | lt_prog_compiler_pic_GCJ='-pic' |
15897 | lt_prog_compiler_static_GCJ='-Bstatic' |
15898 | ;; |
15899 | |
15900 | *) |
15901 | lt_prog_compiler_can_build_shared_GCJ=no |
15902 | ;; |
15903 | esac |
15904 | fi |
15905 | |
15906 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
15907 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
15908 | |
15909 | # |
15910 | # Check to make sure the PIC flag actually works. |
15911 | # |
15912 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
15913 | |
15914 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
15915 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
15916 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
15917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15918 | else |
15919 | lt_prog_compiler_pic_works_GCJ=no |
15920 | ac_outfile=conftest.$ac_objext |
15921 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
15922 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
15923 | # Insert the option either (1) after the last *FLAGS variable, or |
15924 | # (2) before a word containing "conftest.", or (3) at the end. |
15925 | # Note that $ac_compile itself does not contain backslashes and begins |
15926 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
15927 | # The option is referenced via a variable to avoid confusing sed. |
15928 | lt_compile=`echo "$ac_compile" | $SED \ |
15929 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
15930 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
15931 | -e 's:$: $lt_compiler_flag:'` |
15932 | (eval echo "\"\$as_me:15932: $lt_compile\"" >&5) |
15933 | (eval "$lt_compile" 2>conftest.err) |
15934 | ac_status=$? |
15935 | cat conftest.err >&5 |
15936 | echo "$as_me:15936: \$? = $ac_status" >&5 |
15937 | if (exit $ac_status) && test -s "$ac_outfile"; then |
15938 | # The compiler can only warn and ignore the option if not recognized |
15939 | # So say no if there are warnings other than the usual output. |
15940 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
15941 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
15942 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
15943 | lt_prog_compiler_pic_works_GCJ=yes |
15944 | fi |
15945 | fi |
15946 | $rm conftest* |
15947 | |
15948 | fi |
15949 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
15950 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
15951 | |
15952 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
15953 | case $lt_prog_compiler_pic_GCJ in |
15954 | "" | " "*) ;; |
15955 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
15956 | esac |
15957 | else |
15958 | lt_prog_compiler_pic_GCJ= |
15959 | lt_prog_compiler_can_build_shared_GCJ=no |
15960 | fi |
15961 | |
15962 | fi |
15963 | case $host_os in |
15964 | # For platforms which do not support PIC, -DPIC is meaningless: |
15965 | *djgpp*) |
15966 | lt_prog_compiler_pic_GCJ= |
15967 | ;; |
15968 | *) |
15969 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
15970 | ;; |
15971 | esac |
15972 | |
15973 | # |
15974 | # Check to make sure the static flag actually works. |
15975 | # |
15976 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
15977 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
15978 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
15979 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
15980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15981 | else |
15982 | lt_prog_compiler_static_works_GCJ=no |
15983 | save_LDFLAGS="$LDFLAGS" |
15984 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
15985 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
15986 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
15987 | # The linker can only warn and ignore the option if not recognized |
15988 | # So say no if there are warnings |
15989 | if test -s conftest.err; then |
15990 | # Append any errors to the config.log. |
15991 | cat conftest.err 1>&5 |
15992 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
15993 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
15994 | if diff conftest.exp conftest.er2 >/dev/null; then |
15995 | lt_prog_compiler_static_works_GCJ=yes |
15996 | fi |
15997 | else |
15998 | lt_prog_compiler_static_works_GCJ=yes |
15999 | fi |
16000 | fi |
16001 | $rm conftest* |
16002 | LDFLAGS="$save_LDFLAGS" |
16003 | |
16004 | fi |
16005 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
16006 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 |
16007 | |
16008 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
16009 | : |
16010 | else |
16011 | lt_prog_compiler_static_GCJ= |
16012 | fi |
16013 | |
16014 | |
16015 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
16016 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
16017 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
16018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16019 | else |
16020 | lt_cv_prog_compiler_c_o_GCJ=no |
16021 | $rm -r conftest 2>/dev/null |
16022 | mkdir conftest |
16023 | cd conftest |
16024 | mkdir out |
16025 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16026 | |
16027 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
16028 | # Insert the option either (1) after the last *FLAGS variable, or |
16029 | # (2) before a word containing "conftest.", or (3) at the end. |
16030 | # Note that $ac_compile itself does not contain backslashes and begins |
16031 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16032 | lt_compile=`echo "$ac_compile" | $SED \ |
16033 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16034 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16035 | -e 's:$: $lt_compiler_flag:'` |
16036 | (eval echo "\"\$as_me:16036: $lt_compile\"" >&5) |
16037 | (eval "$lt_compile" 2>out/conftest.err) |
16038 | ac_status=$? |
16039 | cat out/conftest.err >&5 |
16040 | echo "$as_me:16040: \$? = $ac_status" >&5 |
16041 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16042 | then |
16043 | # The compiler can only warn and ignore the option if not recognized |
16044 | # So say no if there are warnings |
16045 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
16046 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
16047 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
16048 | lt_cv_prog_compiler_c_o_GCJ=yes |
16049 | fi |
16050 | fi |
16051 | chmod u+w . 2>&5 |
16052 | $rm conftest* |
16053 | # SGI C++ compiler will create directory out/ii_files/ for |
16054 | # template instantiation |
16055 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
16056 | $rm out/* && rmdir out |
16057 | cd .. |
16058 | rmdir conftest |
16059 | $rm conftest* |
16060 | |
16061 | fi |
16062 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
16063 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
16064 | |
16065 | |
16066 | hard_links="nottested" |
16067 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
16068 | # do not overwrite the value of need_locks provided by the user |
16069 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
16070 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
16071 | hard_links=yes |
16072 | $rm conftest* |
16073 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16074 | touch conftest.a |
16075 | ln conftest.a conftest.b 2>&5 || hard_links=no |
16076 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16077 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
16078 | echo "${ECHO_T}$hard_links" >&6 |
16079 | if test "$hard_links" = no; then |
16080 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
16081 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
16082 | need_locks=warn |
16083 | fi |
16084 | else |
16085 | need_locks=no |
16086 | fi |
16087 | |
16088 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
16089 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
16090 | |
16091 | runpath_var= |
16092 | allow_undefined_flag_GCJ= |
16093 | enable_shared_with_static_runtimes_GCJ=no |
16094 | archive_cmds_GCJ= |
16095 | archive_expsym_cmds_GCJ= |
16096 | old_archive_From_new_cmds_GCJ= |
16097 | old_archive_from_expsyms_cmds_GCJ= |
16098 | export_dynamic_flag_spec_GCJ= |
16099 | whole_archive_flag_spec_GCJ= |
16100 | thread_safe_flag_spec_GCJ= |
16101 | hardcode_libdir_flag_spec_GCJ= |
16102 | hardcode_libdir_flag_spec_ld_GCJ= |
16103 | hardcode_libdir_separator_GCJ= |
16104 | hardcode_direct_GCJ=no |
16105 | hardcode_minus_L_GCJ=no |
16106 | hardcode_shlibpath_var_GCJ=unsupported |
16107 | link_all_deplibs_GCJ=unknown |
16108 | hardcode_automatic_GCJ=no |
16109 | module_cmds_GCJ= |
16110 | module_expsym_cmds_GCJ= |
16111 | always_export_symbols_GCJ=no |
16112 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
16113 | # include_expsyms should be a list of space-separated symbols to be *always* |
16114 | # included in the symbol list |
16115 | include_expsyms_GCJ= |
16116 | # exclude_expsyms can be an extended regexp of symbols to exclude |
16117 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
16118 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
16119 | # as well as any symbol that contains `d'. |
16120 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
16121 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
16122 | # platforms (ab)use it in PIC code, but their linkers get confused if |
16123 | # the symbol is explicitly referenced. Since portable code cannot |
16124 | # rely on this symbol name, it's probably fine to never include it in |
16125 | # preloaded symbol tables. |
16126 | extract_expsyms_cmds= |
16127 | # Just being paranoid about ensuring that cc_basename is set. |
16128 | for cc_temp in $compiler""; do |
16129 | case $cc_temp in |
16130 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16131 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16132 | \-*) ;; |
16133 | *) break;; |
16134 | esac |
16135 | done |
16136 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16137 | |
16138 | case $host_os in |
16139 | cygwin* | mingw* | pw32*) |
16140 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
16141 | # When not using gcc, we currently assume that we are using |
16142 | # Microsoft Visual C++. |
16143 | if test "$GCC" != yes; then |
16144 | with_gnu_ld=no |
16145 | fi |
16146 | ;; |
16147 | interix*) |
16148 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
16149 | with_gnu_ld=yes |
16150 | ;; |
16151 | openbsd*) |
16152 | with_gnu_ld=no |
16153 | ;; |
16154 | esac |
16155 | |
16156 | ld_shlibs_GCJ=yes |
16157 | if test "$with_gnu_ld" = yes; then |
16158 | # If archive_cmds runs LD, not CC, wlarc should be empty |
16159 | wlarc='${wl}' |
16160 | |
16161 | # Set some defaults for GNU ld with shared library support. These |
16162 | # are reset later if shared libraries are not supported. Putting them |
16163 | # here allows them to be overridden if necessary. |
16164 | runpath_var=LD_RUN_PATH |
16165 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
16166 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
16167 | # ancient GNU ld didn't support --whole-archive et. al. |
16168 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
16169 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
16170 | else |
16171 | whole_archive_flag_spec_GCJ= |
16172 | fi |
16173 | supports_anon_versioning=no |
16174 | case `$LD -v 2>/dev/null` in |
16175 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
16176 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
16177 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
16178 | *\ 2.11.*) ;; # other 2.11 versions |
16179 | *) supports_anon_versioning=yes ;; |
16180 | esac |
16181 | |
16182 | # See if GNU ld supports shared libraries. |
16183 | case $host_os in |
16184 | aix3* | aix4* | aix5*) |
16185 | # On AIX/PPC, the GNU linker is very broken |
16186 | if test "$host_cpu" != ia64; then |
16187 | ld_shlibs_GCJ=no |
16188 | cat <<EOF 1>&2 |
16189 | |
16190 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
16191 | *** to be unable to reliably create shared libraries on AIX. |
16192 | *** Therefore, libtool is disabling shared libraries support. If you |
16193 | *** really care for shared libraries, you may want to modify your PATH |
16194 | *** so that a non-GNU linker is found, and then restart. |
16195 | |
16196 | EOF |
16197 | fi |
16198 | ;; |
16199 | |
16200 | amigaos*) |
16201 | 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)' |
16202 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16203 | hardcode_minus_L_GCJ=yes |
16204 | |
16205 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
16206 | # that the semantics of dynamic libraries on AmigaOS, at least up |
16207 | # to version 4, is to share data among multiple programs linked |
16208 | # with the same dynamic library. Since this doesn't match the |
16209 | # behavior of shared libraries on other platforms, we can't use |
16210 | # them. |
16211 | ld_shlibs_GCJ=no |
16212 | ;; |
16213 | |
16214 | beos*) |
16215 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16216 | allow_undefined_flag_GCJ=unsupported |
16217 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
16218 | # support --undefined. This deserves some investigation. FIXME |
16219 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16220 | else |
16221 | ld_shlibs_GCJ=no |
16222 | fi |
16223 | ;; |
16224 | |
16225 | cygwin* | mingw* | pw32*) |
16226 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
16227 | # as there is no search path for DLLs. |
16228 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16229 | allow_undefined_flag_GCJ=unsupported |
16230 | always_export_symbols_GCJ=no |
16231 | enable_shared_with_static_runtimes_GCJ=yes |
16232 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
16233 | |
16234 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
16235 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16236 | # If the export-symbols file already is a .def file (1st line |
16237 | # is EXPORTS), use it as is; otherwise, prepend... |
16238 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
16239 | cp $export_symbols $output_objdir/$soname.def; |
16240 | else |
16241 | echo EXPORTS > $output_objdir/$soname.def; |
16242 | cat $export_symbols >> $output_objdir/$soname.def; |
16243 | fi~ |
16244 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16245 | else |
16246 | ld_shlibs_GCJ=no |
16247 | fi |
16248 | ;; |
16249 | |
16250 | interix3*) |
16251 | hardcode_direct_GCJ=no |
16252 | hardcode_shlibpath_var_GCJ=no |
16253 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
16254 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16255 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
16256 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
16257 | # default) and relocated if they conflict, which is a slow very memory |
16258 | # consuming and fragmenting process. To avoid this, we pick a random, |
16259 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
16260 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
16261 | archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
16262 | archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
16263 | ;; |
16264 | |
16265 | linux*) |
16266 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16267 | tmp_addflag= |
16268 | case $cc_basename,$host_cpu in |
16269 | pgcc*) # Portland Group C compiler |
16270 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
16271 | tmp_addflag=' $pic_flag' |
16272 | ;; |
16273 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
16274 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
16275 | tmp_addflag=' $pic_flag -Mnomain' ;; |
16276 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
16277 | tmp_addflag=' -i_dynamic' ;; |
16278 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
16279 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
16280 | ifc* | ifort*) # Intel Fortran compiler |
16281 | tmp_addflag=' -nofor_main' ;; |
16282 | esac |
16283 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16284 | |
16285 | if test $supports_anon_versioning = yes; then |
16286 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
16287 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
16288 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
16289 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
16290 | fi |
16291 | else |
16292 | ld_shlibs_GCJ=no |
16293 | fi |
16294 | ;; |
16295 | |
16296 | netbsd*) |
16297 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
16298 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
16299 | wlarc= |
16300 | else |
16301 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16302 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16303 | fi |
16304 | ;; |
16305 | |
16306 | solaris*) |
16307 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
16308 | ld_shlibs_GCJ=no |
16309 | cat <<EOF 1>&2 |
16310 | |
16311 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
16312 | *** create shared libraries on Solaris systems. Therefore, libtool |
16313 | *** is disabling shared libraries support. We urge you to upgrade GNU |
16314 | *** binutils to release 2.9.1 or newer. Another option is to modify |
16315 | *** your PATH or compiler configuration so that the native linker is |
16316 | *** used, and then restart. |
16317 | |
16318 | EOF |
16319 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16320 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16321 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16322 | else |
16323 | ld_shlibs_GCJ=no |
16324 | fi |
16325 | ;; |
16326 | |
16327 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
16328 | case `$LD -v 2>&1` in |
16329 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
16330 | ld_shlibs_GCJ=no |
16331 | cat <<_LT_EOF 1>&2 |
16332 | |
16333 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
16334 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
16335 | *** is disabling shared libraries support. We urge you to upgrade GNU |
16336 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
16337 | *** your PATH or compiler configuration so that the native linker is |
16338 | *** used, and then restart. |
16339 | |
16340 | _LT_EOF |
16341 | ;; |
16342 | *) |
16343 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16344 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
16345 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
16346 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
16347 | else |
16348 | ld_shlibs_GCJ=no |
16349 | fi |
16350 | ;; |
16351 | esac |
16352 | ;; |
16353 | |
16354 | sunos4*) |
16355 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16356 | wlarc= |
16357 | hardcode_direct_GCJ=yes |
16358 | hardcode_shlibpath_var_GCJ=no |
16359 | ;; |
16360 | |
16361 | *) |
16362 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16363 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16364 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16365 | else |
16366 | ld_shlibs_GCJ=no |
16367 | fi |
16368 | ;; |
16369 | esac |
16370 | |
16371 | if test "$ld_shlibs_GCJ" = no; then |
16372 | runpath_var= |
16373 | hardcode_libdir_flag_spec_GCJ= |
16374 | export_dynamic_flag_spec_GCJ= |
16375 | whole_archive_flag_spec_GCJ= |
16376 | fi |
16377 | else |
16378 | # PORTME fill in a description of your system's linker (not GNU ld) |
16379 | case $host_os in |
16380 | aix3*) |
16381 | allow_undefined_flag_GCJ=unsupported |
16382 | always_export_symbols_GCJ=yes |
16383 | 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' |
16384 | # Note: this linker hardcodes the directories in LIBPATH if there |
16385 | # are no directories specified by -L. |
16386 | hardcode_minus_L_GCJ=yes |
16387 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
16388 | # Neither direct hardcoding nor static linking is supported with a |
16389 | # broken collect2. |
16390 | hardcode_direct_GCJ=unsupported |
16391 | fi |
16392 | ;; |
16393 | |
16394 | aix4* | aix5*) |
16395 | if test "$host_cpu" = ia64; then |
16396 | # On IA64, the linker does run time linking by default, so we don't |
16397 | # have to do anything special. |
16398 | aix_use_runtimelinking=no |
16399 | exp_sym_flag='-Bexport' |
16400 | no_entry_flag="" |
16401 | else |
16402 | # If we're using GNU nm, then we don't want the "-C" option. |
16403 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
16404 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
16405 | 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' |
16406 | else |
16407 | 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' |
16408 | fi |
16409 | aix_use_runtimelinking=no |
16410 | |
16411 | # Test if we are trying to use run time linking or normal |
16412 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
16413 | # need to do runtime linking. |
16414 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
16415 | for ld_flag in $LDFLAGS; do |
16416 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
16417 | aix_use_runtimelinking=yes |
16418 | break |
16419 | fi |
16420 | done |
16421 | ;; |
16422 | esac |
16423 | |
16424 | exp_sym_flag='-bexport' |
16425 | no_entry_flag='-bnoentry' |
16426 | fi |
16427 | |
16428 | # When large executables or shared objects are built, AIX ld can |
16429 | # have problems creating the table of contents. If linking a library |
16430 | # or program results in "error TOC overflow" add -mminimal-toc to |
16431 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
16432 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
16433 | |
16434 | archive_cmds_GCJ='' |
16435 | hardcode_direct_GCJ=yes |
16436 | hardcode_libdir_separator_GCJ=':' |
16437 | link_all_deplibs_GCJ=yes |
16438 | |
16439 | if test "$GCC" = yes; then |
16440 | case $host_os in aix4.[012]|aix4.[012].*) |
16441 | # We only want to do this on AIX 4.2 and lower, the check |
16442 | # below for broken collect2 doesn't work under 4.3+ |
16443 | collect2name=`${CC} -print-prog-name=collect2` |
16444 | if test -f "$collect2name" && \ |
16445 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
16446 | then |
16447 | # We have reworked collect2 |
16448 | hardcode_direct_GCJ=yes |
16449 | else |
16450 | # We have old collect2 |
16451 | hardcode_direct_GCJ=unsupported |
16452 | # It fails to find uninstalled libraries when the uninstalled |
16453 | # path is not listed in the libpath. Setting hardcode_minus_L |
16454 | # to unsupported forces relinking |
16455 | hardcode_minus_L_GCJ=yes |
16456 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16457 | hardcode_libdir_separator_GCJ= |
16458 | fi |
16459 | ;; |
16460 | esac |
16461 | shared_flag='-shared' |
16462 | if test "$aix_use_runtimelinking" = yes; then |
16463 | shared_flag="$shared_flag "'${wl}-G' |
16464 | fi |
16465 | else |
16466 | # not using gcc |
16467 | if test "$host_cpu" = ia64; then |
16468 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
16469 | # chokes on -Wl,-G. The following line is correct: |
16470 | shared_flag='-G' |
16471 | else |
16472 | if test "$aix_use_runtimelinking" = yes; then |
16473 | shared_flag='${wl}-G' |
16474 | else |
16475 | shared_flag='${wl}-bM:SRE' |
16476 | fi |
16477 | fi |
16478 | fi |
16479 | |
16480 | # It seems that -bexpall does not export symbols beginning with |
16481 | # underscore (_), so it is better to generate a list of symbols to export. |
16482 | always_export_symbols_GCJ=yes |
16483 | if test "$aix_use_runtimelinking" = yes; then |
16484 | # Warning - without using the other runtime loading flags (-brtl), |
16485 | # -berok will link without error, but may produce a broken library. |
16486 | allow_undefined_flag_GCJ='-berok' |
16487 | # Determine the default libpath from the value encoded in an empty executable. |
16488 | cat >conftest.$ac_ext <<_ACEOF |
16489 | /* confdefs.h. */ |
16490 | _ACEOF |
16491 | cat confdefs.h >>conftest.$ac_ext |
16492 | cat >>conftest.$ac_ext <<_ACEOF |
16493 | /* end confdefs.h. */ |
16494 | |
16495 | int |
16496 | main () |
16497 | { |
16498 | |
16499 | ; |
16500 | return 0; |
16501 | } |
16502 | _ACEOF |
16503 | rm -f conftest.$ac_objext conftest$ac_exeext |
16504 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16505 | (eval $ac_link) 2>conftest.er1 |
16506 | ac_status=$? |
16507 | grep -v '^ *+' conftest.er1 >conftest.err |
16508 | rm -f conftest.er1 |
16509 | cat conftest.err >&5 |
16510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16511 | (exit $ac_status); } && |
16512 | { ac_try='test -z "$ac_c_werror_flag" |
16513 | || test ! -s conftest.err' |
16514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16515 | (eval $ac_try) 2>&5 |
16516 | ac_status=$? |
16517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16518 | (exit $ac_status); }; } && |
16519 | { ac_try='test -s conftest$ac_exeext' |
16520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16521 | (eval $ac_try) 2>&5 |
16522 | ac_status=$? |
16523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16524 | (exit $ac_status); }; }; then |
16525 | |
16526 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
16527 | }'` |
16528 | # Check for a 64-bit object if we didn't find anything. |
16529 | 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; } |
16530 | }'`; fi |
16531 | else |
16532 | echo "$as_me: failed program was:" >&5 |
16533 | sed 's/^/| /' conftest.$ac_ext >&5 |
16534 | |
16535 | fi |
16536 | rm -f conftest.err conftest.$ac_objext \ |
16537 | conftest$ac_exeext conftest.$ac_ext |
16538 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
16539 | |
16540 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
16541 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $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" |
16542 | else |
16543 | if test "$host_cpu" = ia64; then |
16544 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
16545 | allow_undefined_flag_GCJ="-z nodefs" |
16546 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
16547 | else |
16548 | # Determine the default libpath from the value encoded in an empty executable. |
16549 | cat >conftest.$ac_ext <<_ACEOF |
16550 | /* confdefs.h. */ |
16551 | _ACEOF |
16552 | cat confdefs.h >>conftest.$ac_ext |
16553 | cat >>conftest.$ac_ext <<_ACEOF |
16554 | /* end confdefs.h. */ |
16555 | |
16556 | int |
16557 | main () |
16558 | { |
16559 | |
16560 | ; |
16561 | return 0; |
16562 | } |
16563 | _ACEOF |
16564 | rm -f conftest.$ac_objext conftest$ac_exeext |
16565 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16566 | (eval $ac_link) 2>conftest.er1 |
16567 | ac_status=$? |
16568 | grep -v '^ *+' conftest.er1 >conftest.err |
16569 | rm -f conftest.er1 |
16570 | cat conftest.err >&5 |
16571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16572 | (exit $ac_status); } && |
16573 | { ac_try='test -z "$ac_c_werror_flag" |
16574 | || test ! -s conftest.err' |
16575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16576 | (eval $ac_try) 2>&5 |
16577 | ac_status=$? |
16578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16579 | (exit $ac_status); }; } && |
16580 | { ac_try='test -s conftest$ac_exeext' |
16581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16582 | (eval $ac_try) 2>&5 |
16583 | ac_status=$? |
16584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16585 | (exit $ac_status); }; }; then |
16586 | |
16587 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
16588 | }'` |
16589 | # Check for a 64-bit object if we didn't find anything. |
16590 | 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; } |
16591 | }'`; fi |
16592 | else |
16593 | echo "$as_me: failed program was:" >&5 |
16594 | sed 's/^/| /' conftest.$ac_ext >&5 |
16595 | |
16596 | fi |
16597 | rm -f conftest.err conftest.$ac_objext \ |
16598 | conftest$ac_exeext conftest.$ac_ext |
16599 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
16600 | |
16601 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
16602 | # Warning - without using the other run time loading flags, |
16603 | # -berok will link without error, but may produce a broken library. |
16604 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
16605 | allow_undefined_flag_GCJ=' ${wl}-berok' |
16606 | # Exported symbols can be pulled into shared objects from archives |
16607 | whole_archive_flag_spec_GCJ='$convenience' |
16608 | archive_cmds_need_lc_GCJ=yes |
16609 | # This is similar to how AIX traditionally builds its shared libraries. |
16610 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
16611 | fi |
16612 | fi |
16613 | ;; |
16614 | |
16615 | amigaos*) |
16616 | 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)' |
16617 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16618 | hardcode_minus_L_GCJ=yes |
16619 | # see comment about different semantics on the GNU ld section |
16620 | ld_shlibs_GCJ=no |
16621 | ;; |
16622 | |
16623 | bsdi[45]*) |
16624 | export_dynamic_flag_spec_GCJ=-rdynamic |
16625 | ;; |
16626 | |
16627 | cygwin* | mingw* | pw32*) |
16628 | # When not using gcc, we currently assume that we are using |
16629 | # Microsoft Visual C++. |
16630 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
16631 | # no search path for DLLs. |
16632 | hardcode_libdir_flag_spec_GCJ=' ' |
16633 | allow_undefined_flag_GCJ=unsupported |
16634 | # Tell ltmain to make .lib files, not .a files. |
16635 | libext=lib |
16636 | # Tell ltmain to make .dll files, not .so files. |
16637 | shrext_cmds=".dll" |
16638 | # FIXME: Setting linknames here is a bad hack. |
16639 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
16640 | # The linker will automatically build a .lib file if we build a DLL. |
16641 | old_archive_From_new_cmds_GCJ='true' |
16642 | # FIXME: Should let the user specify the lib program. |
16643 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
16644 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
16645 | enable_shared_with_static_runtimes_GCJ=yes |
16646 | ;; |
16647 | |
16648 | darwin* | rhapsody*) |
16649 | case $host_os in |
16650 | rhapsody* | darwin1.[012]) |
16651 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
16652 | ;; |
16653 | *) # Darwin 1.3 on |
16654 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
16655 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
16656 | else |
16657 | case ${MACOSX_DEPLOYMENT_TARGET} in |
16658 | 10.[012]) |
16659 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
16660 | ;; |
16661 | 10.*) |
16662 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
16663 | ;; |
16664 | esac |
16665 | fi |
16666 | ;; |
16667 | esac |
16668 | archive_cmds_need_lc_GCJ=no |
16669 | hardcode_direct_GCJ=no |
16670 | hardcode_automatic_GCJ=yes |
16671 | hardcode_shlibpath_var_GCJ=unsupported |
16672 | whole_archive_flag_spec_GCJ='' |
16673 | link_all_deplibs_GCJ=yes |
16674 | if test "$GCC" = yes ; then |
16675 | output_verbose_link_cmd='echo' |
16676 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
16677 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
16678 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
16679 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
16680 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
16681 | else |
16682 | case $cc_basename in |
16683 | xlc*) |
16684 | output_verbose_link_cmd='echo' |
16685 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
16686 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
16687 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
16688 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
16689 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
16690 | ;; |
16691 | *) |
16692 | ld_shlibs_GCJ=no |
16693 | ;; |
16694 | esac |
16695 | fi |
16696 | ;; |
16697 | |
16698 | dgux*) |
16699 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16700 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16701 | hardcode_shlibpath_var_GCJ=no |
16702 | ;; |
16703 | |
16704 | freebsd1*) |
16705 | ld_shlibs_GCJ=no |
16706 | ;; |
16707 | |
16708 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
16709 | # support. Future versions do this automatically, but an explicit c++rt0.o |
16710 | # does not break anything, and helps significantly (at the cost of a little |
16711 | # extra space). |
16712 | freebsd2.2*) |
16713 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
16714 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16715 | hardcode_direct_GCJ=yes |
16716 | hardcode_shlibpath_var_GCJ=no |
16717 | ;; |
16718 | |
16719 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
16720 | freebsd2*) |
16721 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16722 | hardcode_direct_GCJ=yes |
16723 | hardcode_minus_L_GCJ=yes |
16724 | hardcode_shlibpath_var_GCJ=no |
16725 | ;; |
16726 | |
16727 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
16728 | freebsd* | kfreebsd*-gnu | dragonfly*) |
16729 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
16730 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16731 | hardcode_direct_GCJ=yes |
16732 | hardcode_shlibpath_var_GCJ=no |
16733 | ;; |
16734 | |
16735 | hpux9*) |
16736 | if test "$GCC" = yes; then |
16737 | 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' |
16738 | else |
16739 | 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' |
16740 | fi |
16741 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
16742 | hardcode_libdir_separator_GCJ=: |
16743 | hardcode_direct_GCJ=yes |
16744 | |
16745 | # hardcode_minus_L: Not really in the search PATH, |
16746 | # but as the default location of the library. |
16747 | hardcode_minus_L_GCJ=yes |
16748 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16749 | ;; |
16750 | |
16751 | hpux10*) |
16752 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
16753 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
16754 | else |
16755 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
16756 | fi |
16757 | if test "$with_gnu_ld" = no; then |
16758 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
16759 | hardcode_libdir_separator_GCJ=: |
16760 | |
16761 | hardcode_direct_GCJ=yes |
16762 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16763 | |
16764 | # hardcode_minus_L: Not really in the search PATH, |
16765 | # but as the default location of the library. |
16766 | hardcode_minus_L_GCJ=yes |
16767 | fi |
16768 | ;; |
16769 | |
16770 | hpux11*) |
16771 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
16772 | case $host_cpu in |
16773 | hppa*64*) |
16774 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16775 | ;; |
16776 | ia64*) |
16777 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
16778 | ;; |
16779 | *) |
16780 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
16781 | ;; |
16782 | esac |
16783 | else |
16784 | case $host_cpu in |
16785 | hppa*64*) |
16786 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16787 | ;; |
16788 | ia64*) |
16789 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
16790 | ;; |
16791 | *) |
16792 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
16793 | ;; |
16794 | esac |
16795 | fi |
16796 | if test "$with_gnu_ld" = no; then |
16797 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
16798 | hardcode_libdir_separator_GCJ=: |
16799 | |
16800 | case $host_cpu in |
16801 | hppa*64*|ia64*) |
16802 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
16803 | hardcode_direct_GCJ=no |
16804 | hardcode_shlibpath_var_GCJ=no |
16805 | ;; |
16806 | *) |
16807 | hardcode_direct_GCJ=yes |
16808 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16809 | |
16810 | # hardcode_minus_L: Not really in the search PATH, |
16811 | # but as the default location of the library. |
16812 | hardcode_minus_L_GCJ=yes |
16813 | ;; |
16814 | esac |
16815 | fi |
16816 | ;; |
16817 | |
16818 | irix5* | irix6* | nonstopux*) |
16819 | if test "$GCC" = yes; then |
16820 | 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' |
16821 | else |
16822 | 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' |
16823 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
16824 | fi |
16825 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16826 | hardcode_libdir_separator_GCJ=: |
16827 | link_all_deplibs_GCJ=yes |
16828 | ;; |
16829 | |
16830 | netbsd*) |
16831 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
16832 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
16833 | else |
16834 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
16835 | fi |
16836 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16837 | hardcode_direct_GCJ=yes |
16838 | hardcode_shlibpath_var_GCJ=no |
16839 | ;; |
16840 | |
16841 | newsos6) |
16842 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16843 | hardcode_direct_GCJ=yes |
16844 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16845 | hardcode_libdir_separator_GCJ=: |
16846 | hardcode_shlibpath_var_GCJ=no |
16847 | ;; |
16848 | |
16849 | openbsd*) |
16850 | hardcode_direct_GCJ=yes |
16851 | hardcode_shlibpath_var_GCJ=no |
16852 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
16853 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
16854 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
16855 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
16856 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16857 | else |
16858 | case $host_os in |
16859 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
16860 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16861 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16862 | ;; |
16863 | *) |
16864 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
16865 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
16866 | ;; |
16867 | esac |
16868 | fi |
16869 | ;; |
16870 | |
16871 | os2*) |
16872 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16873 | hardcode_minus_L_GCJ=yes |
16874 | allow_undefined_flag_GCJ=unsupported |
16875 | 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' |
16876 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
16877 | ;; |
16878 | |
16879 | osf3*) |
16880 | if test "$GCC" = yes; then |
16881 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
16882 | 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' |
16883 | else |
16884 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
16885 | 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' |
16886 | fi |
16887 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16888 | hardcode_libdir_separator_GCJ=: |
16889 | ;; |
16890 | |
16891 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
16892 | if test "$GCC" = yes; then |
16893 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
16894 | 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' |
16895 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16896 | else |
16897 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
16898 | 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' |
16899 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
16900 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
16901 | |
16902 | # Both c and cxx compiler support -rpath directly |
16903 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
16904 | fi |
16905 | hardcode_libdir_separator_GCJ=: |
16906 | ;; |
16907 | |
16908 | solaris*) |
16909 | no_undefined_flag_GCJ=' -z text' |
16910 | if test "$GCC" = yes; then |
16911 | wlarc='${wl}' |
16912 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16913 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
16914 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
16915 | else |
16916 | wlarc='' |
16917 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16918 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
16919 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
16920 | fi |
16921 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16922 | hardcode_shlibpath_var_GCJ=no |
16923 | case $host_os in |
16924 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
16925 | *) |
16926 | # The compiler driver will combine linker options so we |
16927 | # cannot just pass the convience library names through |
16928 | # without $wl, iff we do not link with $LD. |
16929 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
16930 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
16931 | case $wlarc in |
16932 | '') |
16933 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
16934 | *) |
16935 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
16936 | esac ;; |
16937 | esac |
16938 | link_all_deplibs_GCJ=yes |
16939 | ;; |
16940 | |
16941 | sunos4*) |
16942 | if test "x$host_vendor" = xsequent; then |
16943 | # Use $CC to link under sequent, because it throws in some extra .o |
16944 | # files that make .init and .fini sections work. |
16945 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
16946 | else |
16947 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
16948 | fi |
16949 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16950 | hardcode_direct_GCJ=yes |
16951 | hardcode_minus_L_GCJ=yes |
16952 | hardcode_shlibpath_var_GCJ=no |
16953 | ;; |
16954 | |
16955 | sysv4) |
16956 | case $host_vendor in |
16957 | sni) |
16958 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16959 | hardcode_direct_GCJ=yes # is this really true??? |
16960 | ;; |
16961 | siemens) |
16962 | ## LD is ld it makes a PLAMLIB |
16963 | ## CC just makes a GrossModule. |
16964 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
16965 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
16966 | hardcode_direct_GCJ=no |
16967 | ;; |
16968 | motorola) |
16969 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16970 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
16971 | ;; |
16972 | esac |
16973 | runpath_var='LD_RUN_PATH' |
16974 | hardcode_shlibpath_var_GCJ=no |
16975 | ;; |
16976 | |
16977 | sysv4.3*) |
16978 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16979 | hardcode_shlibpath_var_GCJ=no |
16980 | export_dynamic_flag_spec_GCJ='-Bexport' |
16981 | ;; |
16982 | |
16983 | sysv4*MP*) |
16984 | if test -d /usr/nec; then |
16985 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16986 | hardcode_shlibpath_var_GCJ=no |
16987 | runpath_var=LD_RUN_PATH |
16988 | hardcode_runpath_var=yes |
16989 | ld_shlibs_GCJ=yes |
16990 | fi |
16991 | ;; |
16992 | |
16993 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
16994 | no_undefined_flag_GCJ='${wl}-z,text' |
16995 | archive_cmds_need_lc_GCJ=no |
16996 | hardcode_shlibpath_var_GCJ=no |
16997 | runpath_var='LD_RUN_PATH' |
16998 | |
16999 | if test "$GCC" = yes; then |
17000 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17001 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17002 | else |
17003 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17004 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17005 | fi |
17006 | ;; |
17007 | |
17008 | sysv5* | sco3.2v5* | sco5v6*) |
17009 | # Note: We can NOT use -z defs as we might desire, because we do not |
17010 | # link with -lc, and that would cause any symbols used from libc to |
17011 | # always be unresolved, which means just about no library would |
17012 | # ever link correctly. If we're not using GNU ld we use -z text |
17013 | # though, which does catch some bad symbols but isn't as heavy-handed |
17014 | # as -z defs. |
17015 | no_undefined_flag_GCJ='${wl}-z,text' |
17016 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
17017 | archive_cmds_need_lc_GCJ=no |
17018 | hardcode_shlibpath_var_GCJ=no |
17019 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
17020 | hardcode_libdir_separator_GCJ=':' |
17021 | link_all_deplibs_GCJ=yes |
17022 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
17023 | runpath_var='LD_RUN_PATH' |
17024 | |
17025 | if test "$GCC" = yes; then |
17026 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17027 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17028 | else |
17029 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17030 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17031 | fi |
17032 | ;; |
17033 | |
17034 | uts4*) |
17035 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17036 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17037 | hardcode_shlibpath_var_GCJ=no |
17038 | ;; |
17039 | |
17040 | *) |
17041 | ld_shlibs_GCJ=no |
17042 | ;; |
17043 | esac |
17044 | fi |
17045 | |
17046 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
17047 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
17048 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
17049 | |
17050 | # |
17051 | # Do we need to explicitly link libc? |
17052 | # |
17053 | case "x$archive_cmds_need_lc_GCJ" in |
17054 | x|xyes) |
17055 | # Assume -lc should be added |
17056 | archive_cmds_need_lc_GCJ=yes |
17057 | |
17058 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
17059 | case $archive_cmds_GCJ in |
17060 | *'~'*) |
17061 | # FIXME: we may have to deal with multi-command sequences. |
17062 | ;; |
17063 | '$CC '*) |
17064 | # Test whether the compiler implicitly links with -lc since on some |
17065 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
17066 | # to ld, don't add -lc before -lgcc. |
17067 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
17068 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
17069 | $rm conftest* |
17070 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
17071 | |
17072 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17073 | (eval $ac_compile) 2>&5 |
17074 | ac_status=$? |
17075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17076 | (exit $ac_status); } 2>conftest.err; then |
17077 | soname=conftest |
17078 | lib=conftest |
17079 | libobjs=conftest.$ac_objext |
17080 | deplibs= |
17081 | wl=$lt_prog_compiler_wl_GCJ |
17082 | pic_flag=$lt_prog_compiler_pic_GCJ |
17083 | compiler_flags=-v |
17084 | linker_flags=-v |
17085 | verstring= |
17086 | output_objdir=. |
17087 | libname=conftest |
17088 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
17089 | allow_undefined_flag_GCJ= |
17090 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
17091 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
17092 | ac_status=$? |
17093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17094 | (exit $ac_status); } |
17095 | then |
17096 | archive_cmds_need_lc_GCJ=no |
17097 | else |
17098 | archive_cmds_need_lc_GCJ=yes |
17099 | fi |
17100 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
17101 | else |
17102 | cat conftest.err 1>&5 |
17103 | fi |
17104 | $rm conftest* |
17105 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
17106 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
17107 | ;; |
17108 | esac |
17109 | fi |
17110 | ;; |
17111 | esac |
17112 | |
17113 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
17114 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
17115 | library_names_spec= |
17116 | libname_spec='lib$name' |
17117 | soname_spec= |
17118 | shrext_cmds=".so" |
17119 | postinstall_cmds= |
17120 | postuninstall_cmds= |
17121 | finish_cmds= |
17122 | finish_eval= |
17123 | shlibpath_var= |
17124 | shlibpath_overrides_runpath=unknown |
17125 | version_type=none |
17126 | dynamic_linker="$host_os ld.so" |
17127 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
17128 | if test "$GCC" = yes; then |
17129 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17130 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
17131 | # if the path contains ";" then we assume it to be the separator |
17132 | # otherwise default to the standard path separator (i.e. ":") - it is |
17133 | # assumed that no part of a normal pathname contains ";" but that should |
17134 | # okay in the real world where ";" in dirpaths is itself problematic. |
17135 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17136 | else |
17137 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17138 | fi |
17139 | else |
17140 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
17141 | fi |
17142 | need_lib_prefix=unknown |
17143 | hardcode_into_libs=no |
17144 | |
17145 | # when you set need_version to no, make sure it does not cause -set_version |
17146 | # flags to be left without arguments |
17147 | need_version=unknown |
17148 | |
17149 | case $host_os in |
17150 | aix3*) |
17151 | version_type=linux |
17152 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
17153 | shlibpath_var=LIBPATH |
17154 | |
17155 | # AIX 3 has no versioning support, so we append a major version to the name. |
17156 | soname_spec='${libname}${release}${shared_ext}$major' |
17157 | ;; |
17158 | |
17159 | aix4* | aix5*) |
17160 | version_type=linux |
17161 | need_lib_prefix=no |
17162 | need_version=no |
17163 | hardcode_into_libs=yes |
17164 | if test "$host_cpu" = ia64; then |
17165 | # AIX 5 supports IA64 |
17166 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
17167 | shlibpath_var=LD_LIBRARY_PATH |
17168 | else |
17169 | # With GCC up to 2.95.x, collect2 would create an import file |
17170 | # for dependence libraries. The import file would start with |
17171 | # the line `#! .'. This would cause the generated library to |
17172 | # depend on `.', always an invalid library. This was fixed in |
17173 | # development snapshots of GCC prior to 3.0. |
17174 | case $host_os in |
17175 | aix4 | aix4.[01] | aix4.[01].*) |
17176 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
17177 | echo ' yes ' |
17178 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
17179 | : |
17180 | else |
17181 | can_build_shared=no |
17182 | fi |
17183 | ;; |
17184 | esac |
17185 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
17186 | # soname into executable. Probably we can add versioning support to |
17187 | # collect2, so additional links can be useful in future. |
17188 | if test "$aix_use_runtimelinking" = yes; then |
17189 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
17190 | # instead of lib<name>.a to let people know that these are not |
17191 | # typical AIX shared libraries. |
17192 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17193 | else |
17194 | # We preserve .a as extension for shared libraries through AIX4.2 |
17195 | # and later when we are not doing run time linking. |
17196 | library_names_spec='${libname}${release}.a $libname.a' |
17197 | soname_spec='${libname}${release}${shared_ext}$major' |
17198 | fi |
17199 | shlibpath_var=LIBPATH |
17200 | fi |
17201 | ;; |
17202 | |
17203 | amigaos*) |
17204 | library_names_spec='$libname.ixlibrary $libname.a' |
17205 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
17206 | 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' |
17207 | ;; |
17208 | |
17209 | beos*) |
17210 | library_names_spec='${libname}${shared_ext}' |
17211 | dynamic_linker="$host_os ld.so" |
17212 | shlibpath_var=LIBRARY_PATH |
17213 | ;; |
17214 | |
17215 | bsdi[45]*) |
17216 | version_type=linux |
17217 | need_version=no |
17218 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17219 | soname_spec='${libname}${release}${shared_ext}$major' |
17220 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
17221 | shlibpath_var=LD_LIBRARY_PATH |
17222 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
17223 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
17224 | # the default ld.so.conf also contains /usr/contrib/lib and |
17225 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
17226 | # libtool to hard-code these into programs |
17227 | ;; |
17228 | |
17229 | cygwin* | mingw* | pw32*) |
17230 | version_type=windows |
17231 | shrext_cmds=".dll" |
17232 | need_version=no |
17233 | need_lib_prefix=no |
17234 | |
17235 | case $GCC,$host_os in |
17236 | yes,cygwin* | yes,mingw* | yes,pw32*) |
17237 | library_names_spec='$libname.dll.a' |
17238 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
17239 | postinstall_cmds='base_file=`basename \${file}`~ |
17240 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
17241 | dldir=$destdir/`dirname \$dlpath`~ |
17242 | test -d \$dldir || mkdir -p \$dldir~ |
17243 | $install_prog $dir/$dlname \$dldir/$dlname~ |
17244 | chmod a+x \$dldir/$dlname' |
17245 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
17246 | dlpath=$dir/\$dldll~ |
17247 | $rm \$dlpath' |
17248 | shlibpath_overrides_runpath=yes |
17249 | |
17250 | case $host_os in |
17251 | cygwin*) |
17252 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
17253 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17254 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
17255 | ;; |
17256 | mingw*) |
17257 | # MinGW DLLs use traditional 'lib' prefix |
17258 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17259 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17260 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
17261 | # It is most probably a Windows format PATH printed by |
17262 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
17263 | # path with ; separators, and with drive letters. We can handle the |
17264 | # drive letters (cygwin fileutils understands them), so leave them, |
17265 | # especially as we might pass files found there to a mingw objdump, |
17266 | # which wouldn't understand a cygwinified path. Ahh. |
17267 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17268 | else |
17269 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17270 | fi |
17271 | ;; |
17272 | pw32*) |
17273 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
17274 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17275 | ;; |
17276 | esac |
17277 | ;; |
17278 | |
17279 | *) |
17280 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
17281 | ;; |
17282 | esac |
17283 | dynamic_linker='Win32 ld.exe' |
17284 | # FIXME: first we should search . and the directory the executable is in |
17285 | shlibpath_var=PATH |
17286 | ;; |
17287 | |
17288 | darwin* | rhapsody*) |
17289 | dynamic_linker="$host_os dyld" |
17290 | version_type=darwin |
17291 | need_lib_prefix=no |
17292 | need_version=no |
17293 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
17294 | soname_spec='${libname}${release}${major}$shared_ext' |
17295 | shlibpath_overrides_runpath=yes |
17296 | shlibpath_var=DYLD_LIBRARY_PATH |
17297 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
17298 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
17299 | if test "$GCC" = yes; then |
17300 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
17301 | else |
17302 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
17303 | fi |
17304 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
17305 | ;; |
17306 | |
17307 | dgux*) |
17308 | version_type=linux |
17309 | need_lib_prefix=no |
17310 | need_version=no |
17311 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
17312 | soname_spec='${libname}${release}${shared_ext}$major' |
17313 | shlibpath_var=LD_LIBRARY_PATH |
17314 | ;; |
17315 | |
17316 | freebsd1*) |
17317 | dynamic_linker=no |
17318 | ;; |
17319 | |
17320 | kfreebsd*-gnu) |
17321 | version_type=linux |
17322 | need_lib_prefix=no |
17323 | need_version=no |
17324 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17325 | soname_spec='${libname}${release}${shared_ext}$major' |
17326 | shlibpath_var=LD_LIBRARY_PATH |
17327 | shlibpath_overrides_runpath=no |
17328 | hardcode_into_libs=yes |
17329 | dynamic_linker='GNU ld.so' |
17330 | ;; |
17331 | |
17332 | freebsd* | dragonfly*) |
17333 | # DragonFly does not have aout. When/if they implement a new |
17334 | # versioning mechanism, adjust this. |
17335 | if test -x /usr/bin/objformat; then |
17336 | objformat=`/usr/bin/objformat` |
17337 | else |
17338 | case $host_os in |
17339 | freebsd[123]*) objformat=aout ;; |
17340 | *) objformat=elf ;; |
17341 | esac |
17342 | fi |
17343 | version_type=freebsd-$objformat |
17344 | case $version_type in |
17345 | freebsd-elf*) |
17346 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
17347 | need_version=no |
17348 | need_lib_prefix=no |
17349 | ;; |
17350 | freebsd-*) |
17351 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
17352 | need_version=yes |
17353 | ;; |
17354 | esac |
17355 | shlibpath_var=LD_LIBRARY_PATH |
17356 | case $host_os in |
17357 | freebsd2*) |
17358 | shlibpath_overrides_runpath=yes |
17359 | ;; |
17360 | freebsd3.[01]* | freebsdelf3.[01]*) |
17361 | shlibpath_overrides_runpath=yes |
17362 | hardcode_into_libs=yes |
17363 | ;; |
17364 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
17365 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
17366 | shlibpath_overrides_runpath=no |
17367 | hardcode_into_libs=yes |
17368 | ;; |
17369 | freebsd*) # from 4.6 on |
17370 | shlibpath_overrides_runpath=yes |
17371 | hardcode_into_libs=yes |
17372 | ;; |
17373 | esac |
17374 | ;; |
17375 | |
17376 | gnu*) |
17377 | version_type=linux |
17378 | need_lib_prefix=no |
17379 | need_version=no |
17380 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
17381 | soname_spec='${libname}${release}${shared_ext}$major' |
17382 | shlibpath_var=LD_LIBRARY_PATH |
17383 | hardcode_into_libs=yes |
17384 | ;; |
17385 | |
17386 | hpux9* | hpux10* | hpux11*) |
17387 | # Give a soname corresponding to the major version so that dld.sl refuses to |
17388 | # link against other versions. |
17389 | version_type=sunos |
17390 | need_lib_prefix=no |
17391 | need_version=no |
17392 | case $host_cpu in |
17393 | ia64*) |
17394 | shrext_cmds='.so' |
17395 | hardcode_into_libs=yes |
17396 | dynamic_linker="$host_os dld.so" |
17397 | shlibpath_var=LD_LIBRARY_PATH |
17398 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
17399 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17400 | soname_spec='${libname}${release}${shared_ext}$major' |
17401 | if test "X$HPUX_IA64_MODE" = X32; then |
17402 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
17403 | else |
17404 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
17405 | fi |
17406 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
17407 | ;; |
17408 | hppa*64*) |
17409 | shrext_cmds='.sl' |
17410 | hardcode_into_libs=yes |
17411 | dynamic_linker="$host_os dld.sl" |
17412 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
17413 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
17414 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17415 | soname_spec='${libname}${release}${shared_ext}$major' |
17416 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
17417 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
17418 | ;; |
17419 | *) |
17420 | shrext_cmds='.sl' |
17421 | dynamic_linker="$host_os dld.sl" |
17422 | shlibpath_var=SHLIB_PATH |
17423 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
17424 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17425 | soname_spec='${libname}${release}${shared_ext}$major' |
17426 | ;; |
17427 | esac |
17428 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
17429 | postinstall_cmds='chmod 555 $lib' |
17430 | ;; |
17431 | |
17432 | interix3*) |
17433 | version_type=linux |
17434 | need_lib_prefix=no |
17435 | need_version=no |
17436 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17437 | soname_spec='${libname}${release}${shared_ext}$major' |
17438 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
17439 | shlibpath_var=LD_LIBRARY_PATH |
17440 | shlibpath_overrides_runpath=no |
17441 | hardcode_into_libs=yes |
17442 | ;; |
17443 | |
17444 | irix5* | irix6* | nonstopux*) |
17445 | case $host_os in |
17446 | nonstopux*) version_type=nonstopux ;; |
17447 | *) |
17448 | if test "$lt_cv_prog_gnu_ld" = yes; then |
17449 | version_type=linux |
17450 | else |
17451 | version_type=irix |
17452 | fi ;; |
17453 | esac |
17454 | need_lib_prefix=no |
17455 | need_version=no |
17456 | soname_spec='${libname}${release}${shared_ext}$major' |
17457 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
17458 | case $host_os in |
17459 | irix5* | nonstopux*) |
17460 | libsuff= shlibsuff= |
17461 | ;; |
17462 | *) |
17463 | case $LD in # libtool.m4 will add one of these switches to LD |
17464 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
17465 | libsuff= shlibsuff= libmagic=32-bit;; |
17466 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
17467 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
17468 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
17469 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
17470 | *) libsuff= shlibsuff= libmagic=never-match;; |
17471 | esac |
17472 | ;; |
17473 | esac |
17474 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
17475 | shlibpath_overrides_runpath=no |
17476 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
17477 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
17478 | hardcode_into_libs=yes |
17479 | ;; |
17480 | |
17481 | # No shared lib support for Linux oldld, aout, or coff. |
17482 | linux*oldld* | linux*aout* | linux*coff*) |
17483 | dynamic_linker=no |
17484 | ;; |
17485 | |
17486 | # This must be Linux ELF. |
17487 | linux*) |
17488 | version_type=linux |
17489 | need_lib_prefix=no |
17490 | need_version=no |
17491 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17492 | soname_spec='${libname}${release}${shared_ext}$major' |
17493 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
17494 | shlibpath_var=LD_LIBRARY_PATH |
17495 | shlibpath_overrides_runpath=no |
17496 | # This implies no fast_install, which is unacceptable. |
17497 | # Some rework will be needed to allow for fast_install |
17498 | # before this can be enabled. |
17499 | hardcode_into_libs=yes |
17500 | |
17501 | # find out which ABI we are using |
17502 | libsuff= |
17503 | case "$host_cpu" in |
17504 | x86_64*|s390x*|powerpc64*) |
17505 | echo '#line 17505 "configure"' > conftest.$ac_ext |
17506 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17507 | (eval $ac_compile) 2>&5 |
17508 | ac_status=$? |
17509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17510 | (exit $ac_status); }; then |
17511 | case `/usr/bin/file conftest.$ac_objext` in |
17512 | *64-bit*) |
17513 | libsuff=64 |
17514 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
17515 | ;; |
17516 | esac |
17517 | fi |
17518 | rm -rf conftest* |
17519 | ;; |
17520 | esac |
17521 | |
17522 | # Append ld.so.conf contents to the search path |
17523 | if test -f /etc/ld.so.conf; then |
17524 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
17525 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
17526 | fi |
17527 | |
17528 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
17529 | # powerpc, because MkLinux only supported shared libraries with the |
17530 | # GNU dynamic linker. Since this was broken with cross compilers, |
17531 | # most powerpc-linux boxes support dynamic linking these days and |
17532 | # people can always --disable-shared, the test was removed, and we |
17533 | # assume the GNU/Linux dynamic linker is in use. |
17534 | dynamic_linker='GNU/Linux ld.so' |
17535 | ;; |
17536 | |
17537 | knetbsd*-gnu) |
17538 | version_type=linux |
17539 | need_lib_prefix=no |
17540 | need_version=no |
17541 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17542 | soname_spec='${libname}${release}${shared_ext}$major' |
17543 | shlibpath_var=LD_LIBRARY_PATH |
17544 | shlibpath_overrides_runpath=no |
17545 | hardcode_into_libs=yes |
17546 | dynamic_linker='GNU ld.so' |
17547 | ;; |
17548 | |
17549 | netbsd*) |
17550 | version_type=sunos |
17551 | need_lib_prefix=no |
17552 | need_version=no |
17553 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17554 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17555 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
17556 | dynamic_linker='NetBSD (a.out) ld.so' |
17557 | else |
17558 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17559 | soname_spec='${libname}${release}${shared_ext}$major' |
17560 | dynamic_linker='NetBSD ld.elf_so' |
17561 | fi |
17562 | shlibpath_var=LD_LIBRARY_PATH |
17563 | shlibpath_overrides_runpath=yes |
17564 | hardcode_into_libs=yes |
17565 | ;; |
17566 | |
17567 | newsos6) |
17568 | version_type=linux |
17569 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17570 | shlibpath_var=LD_LIBRARY_PATH |
17571 | shlibpath_overrides_runpath=yes |
17572 | ;; |
17573 | |
17574 | nto-qnx*) |
17575 | version_type=linux |
17576 | need_lib_prefix=no |
17577 | need_version=no |
17578 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17579 | soname_spec='${libname}${release}${shared_ext}$major' |
17580 | shlibpath_var=LD_LIBRARY_PATH |
17581 | shlibpath_overrides_runpath=yes |
17582 | ;; |
17583 | |
17584 | openbsd*) |
17585 | version_type=sunos |
17586 | sys_lib_dlsearch_path_spec="/usr/lib" |
17587 | need_lib_prefix=no |
17588 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
17589 | case $host_os in |
17590 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
17591 | *) need_version=no ;; |
17592 | esac |
17593 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17594 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
17595 | shlibpath_var=LD_LIBRARY_PATH |
17596 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
17597 | case $host_os in |
17598 | openbsd2.[89] | openbsd2.[89].*) |
17599 | shlibpath_overrides_runpath=no |
17600 | ;; |
17601 | *) |
17602 | shlibpath_overrides_runpath=yes |
17603 | ;; |
17604 | esac |
17605 | else |
17606 | shlibpath_overrides_runpath=yes |
17607 | fi |
17608 | ;; |
17609 | |
17610 | os2*) |
17611 | libname_spec='$name' |
17612 | shrext_cmds=".dll" |
17613 | need_lib_prefix=no |
17614 | library_names_spec='$libname${shared_ext} $libname.a' |
17615 | dynamic_linker='OS/2 ld.exe' |
17616 | shlibpath_var=LIBPATH |
17617 | ;; |
17618 | |
17619 | osf3* | osf4* | osf5*) |
17620 | version_type=osf |
17621 | need_lib_prefix=no |
17622 | need_version=no |
17623 | soname_spec='${libname}${release}${shared_ext}$major' |
17624 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17625 | shlibpath_var=LD_LIBRARY_PATH |
17626 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
17627 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
17628 | ;; |
17629 | |
17630 | solaris*) |
17631 | version_type=linux |
17632 | need_lib_prefix=no |
17633 | need_version=no |
17634 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17635 | soname_spec='${libname}${release}${shared_ext}$major' |
17636 | shlibpath_var=LD_LIBRARY_PATH |
17637 | shlibpath_overrides_runpath=yes |
17638 | hardcode_into_libs=yes |
17639 | # ldd complains unless libraries are executable |
17640 | postinstall_cmds='chmod +x $lib' |
17641 | ;; |
17642 | |
17643 | sunos4*) |
17644 | version_type=sunos |
17645 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17646 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
17647 | shlibpath_var=LD_LIBRARY_PATH |
17648 | shlibpath_overrides_runpath=yes |
17649 | if test "$with_gnu_ld" = yes; then |
17650 | need_lib_prefix=no |
17651 | fi |
17652 | need_version=yes |
17653 | ;; |
17654 | |
17655 | sysv4 | sysv4.3*) |
17656 | version_type=linux |
17657 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17658 | soname_spec='${libname}${release}${shared_ext}$major' |
17659 | shlibpath_var=LD_LIBRARY_PATH |
17660 | case $host_vendor in |
17661 | sni) |
17662 | shlibpath_overrides_runpath=no |
17663 | need_lib_prefix=no |
17664 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
17665 | runpath_var=LD_RUN_PATH |
17666 | ;; |
17667 | siemens) |
17668 | need_lib_prefix=no |
17669 | ;; |
17670 | motorola) |
17671 | need_lib_prefix=no |
17672 | need_version=no |
17673 | shlibpath_overrides_runpath=no |
17674 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
17675 | ;; |
17676 | esac |
17677 | ;; |
17678 | |
17679 | sysv4*MP*) |
17680 | if test -d /usr/nec ;then |
17681 | version_type=linux |
17682 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
17683 | soname_spec='$libname${shared_ext}.$major' |
17684 | shlibpath_var=LD_LIBRARY_PATH |
17685 | fi |
17686 | ;; |
17687 | |
17688 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
17689 | version_type=freebsd-elf |
17690 | need_lib_prefix=no |
17691 | need_version=no |
17692 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
17693 | soname_spec='${libname}${release}${shared_ext}$major' |
17694 | shlibpath_var=LD_LIBRARY_PATH |
17695 | hardcode_into_libs=yes |
17696 | if test "$with_gnu_ld" = yes; then |
17697 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
17698 | shlibpath_overrides_runpath=no |
17699 | else |
17700 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
17701 | shlibpath_overrides_runpath=yes |
17702 | case $host_os in |
17703 | sco3.2v5*) |
17704 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
17705 | ;; |
17706 | esac |
17707 | fi |
17708 | sys_lib_dlsearch_path_spec='/usr/lib' |
17709 | ;; |
17710 | |
17711 | uts4*) |
17712 | version_type=linux |
17713 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17714 | soname_spec='${libname}${release}${shared_ext}$major' |
17715 | shlibpath_var=LD_LIBRARY_PATH |
17716 | ;; |
17717 | |
17718 | *) |
17719 | dynamic_linker=no |
17720 | ;; |
17721 | esac |
17722 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
17723 | echo "${ECHO_T}$dynamic_linker" >&6 |
17724 | test "$dynamic_linker" = no && can_build_shared=no |
17725 | |
17726 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
17727 | if test "$GCC" = yes; then |
17728 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
17729 | fi |
17730 | |
17731 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
17732 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
17733 | hardcode_action_GCJ= |
17734 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
17735 | test -n "$runpath_var_GCJ" || \ |
17736 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
17737 | |
17738 | # We can hardcode non-existant directories. |
17739 | if test "$hardcode_direct_GCJ" != no && |
17740 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
17741 | # have to relink, otherwise we might link with an installed library |
17742 | # when we should be linking with a yet-to-be-installed one |
17743 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
17744 | test "$hardcode_minus_L_GCJ" != no; then |
17745 | # Linking always hardcodes the temporary library directory. |
17746 | hardcode_action_GCJ=relink |
17747 | else |
17748 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
17749 | hardcode_action_GCJ=immediate |
17750 | fi |
17751 | else |
17752 | # We cannot hardcode anything, or else we can only hardcode existing |
17753 | # directories. |
17754 | hardcode_action_GCJ=unsupported |
17755 | fi |
17756 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
17757 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
17758 | |
17759 | if test "$hardcode_action_GCJ" = relink; then |
17760 | # Fast installation is not supported |
17761 | enable_fast_install=no |
17762 | elif test "$shlibpath_overrides_runpath" = yes || |
17763 | test "$enable_shared" = no; then |
17764 | # Fast installation is not necessary |
17765 | enable_fast_install=needless |
17766 | fi |
17767 | |
17768 | |
17769 | # The else clause should only fire when bootstrapping the |
17770 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
17771 | # with your package, and you will get complaints that there are |
17772 | # no rules to generate ltmain.sh. |
17773 | if test -f "$ltmain"; then |
17774 | # See if we are running on zsh, and set the options which allow our commands through |
17775 | # without removal of \ escapes. |
17776 | if test -n "${ZSH_VERSION+set}" ; then |
17777 | setopt NO_GLOB_SUBST |
17778 | fi |
17779 | # Now quote all the things that may contain metacharacters while being |
17780 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
17781 | # variables and quote the copies for generation of the libtool script. |
17782 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
17783 | SED SHELL STRIP \ |
17784 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
17785 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
17786 | deplibs_check_method reload_flag reload_cmds need_locks \ |
17787 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
17788 | lt_cv_sys_global_symbol_to_c_name_address \ |
17789 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
17790 | old_postinstall_cmds old_postuninstall_cmds \ |
17791 | compiler_GCJ \ |
17792 | CC_GCJ \ |
17793 | LD_GCJ \ |
17794 | lt_prog_compiler_wl_GCJ \ |
17795 | lt_prog_compiler_pic_GCJ \ |
17796 | lt_prog_compiler_static_GCJ \ |
17797 | lt_prog_compiler_no_builtin_flag_GCJ \ |
17798 | export_dynamic_flag_spec_GCJ \ |
17799 | thread_safe_flag_spec_GCJ \ |
17800 | whole_archive_flag_spec_GCJ \ |
17801 | enable_shared_with_static_runtimes_GCJ \ |
17802 | old_archive_cmds_GCJ \ |
17803 | old_archive_from_new_cmds_GCJ \ |
17804 | predep_objects_GCJ \ |
17805 | postdep_objects_GCJ \ |
17806 | predeps_GCJ \ |
17807 | postdeps_GCJ \ |
17808 | compiler_lib_search_path_GCJ \ |
17809 | archive_cmds_GCJ \ |
17810 | archive_expsym_cmds_GCJ \ |
17811 | postinstall_cmds_GCJ \ |
17812 | postuninstall_cmds_GCJ \ |
17813 | old_archive_from_expsyms_cmds_GCJ \ |
17814 | allow_undefined_flag_GCJ \ |
17815 | no_undefined_flag_GCJ \ |
17816 | export_symbols_cmds_GCJ \ |
17817 | hardcode_libdir_flag_spec_GCJ \ |
17818 | hardcode_libdir_flag_spec_ld_GCJ \ |
17819 | hardcode_libdir_separator_GCJ \ |
17820 | hardcode_automatic_GCJ \ |
17821 | module_cmds_GCJ \ |
17822 | module_expsym_cmds_GCJ \ |
17823 | lt_cv_prog_compiler_c_o_GCJ \ |
17824 | exclude_expsyms_GCJ \ |
17825 | include_expsyms_GCJ; do |
17826 | |
17827 | case $var in |
17828 | old_archive_cmds_GCJ | \ |
17829 | old_archive_from_new_cmds_GCJ | \ |
17830 | archive_cmds_GCJ | \ |
17831 | archive_expsym_cmds_GCJ | \ |
17832 | module_cmds_GCJ | \ |
17833 | module_expsym_cmds_GCJ | \ |
17834 | old_archive_from_expsyms_cmds_GCJ | \ |
17835 | export_symbols_cmds_GCJ | \ |
17836 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
17837 | postinstall_cmds | postuninstall_cmds | \ |
17838 | old_postinstall_cmds | old_postuninstall_cmds | \ |
17839 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
17840 | # Double-quote double-evaled strings. |
17841 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
17842 | ;; |
17843 | *) |
17844 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
17845 | ;; |
17846 | esac |
17847 | done |
17848 | |
17849 | case $lt_echo in |
17850 | *'\$0 --fallback-echo"') |
17851 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
17852 | ;; |
17853 | esac |
17854 | |
17855 | cfgfile="$ofile" |
17856 | |
17857 | cat <<__EOF__ >> "$cfgfile" |
17858 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
17859 | |
17860 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
17861 | |
17862 | # Shell to use when invoking shell scripts. |
17863 | SHELL=$lt_SHELL |
17864 | |
17865 | # Whether or not to build shared libraries. |
17866 | build_libtool_libs=$enable_shared |
17867 | |
17868 | # Whether or not to build static libraries. |
17869 | build_old_libs=$enable_static |
17870 | |
17871 | # Whether or not to add -lc for building shared libraries. |
17872 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
17873 | |
17874 | # Whether or not to disallow shared libs when runtime libs are static |
17875 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
17876 | |
17877 | # Whether or not to optimize for fast installation. |
17878 | fast_install=$enable_fast_install |
17879 | |
17880 | # The host system. |
17881 | host_alias=$host_alias |
17882 | host=$host |
17883 | host_os=$host_os |
17884 | |
17885 | # The build system. |
17886 | build_alias=$build_alias |
17887 | build=$build |
17888 | build_os=$build_os |
17889 | |
17890 | # An echo program that does not interpret backslashes. |
17891 | echo=$lt_echo |
17892 | |
17893 | # The archiver. |
17894 | AR=$lt_AR |
17895 | AR_FLAGS=$lt_AR_FLAGS |
17896 | |
17897 | # A C compiler. |
17898 | LTCC=$lt_LTCC |
17899 | |
17900 | # LTCC compiler flags. |
17901 | LTCFLAGS=$lt_LTCFLAGS |
17902 | |
17903 | # A language-specific compiler. |
17904 | CC=$lt_compiler_GCJ |
17905 | |
17906 | # Is the compiler the GNU C compiler? |
17907 | with_gcc=$GCC_GCJ |
17908 | |
17909 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
17910 | gcc_ver=\`gcc -dumpversion\` |
17911 | |
17912 | # An ERE matcher. |
17913 | EGREP=$lt_EGREP |
17914 | |
17915 | # The linker used to build libraries. |
17916 | LD=$lt_LD_GCJ |
17917 | |
17918 | # Whether we need hard or soft links. |
17919 | LN_S=$lt_LN_S |
17920 | |
17921 | # A BSD-compatible nm program. |
17922 | NM=$lt_NM |
17923 | |
17924 | # A symbol stripping program |
17925 | STRIP=$lt_STRIP |
17926 | |
17927 | # Used to examine libraries when file_magic_cmd begins "file" |
17928 | MAGIC_CMD=$MAGIC_CMD |
17929 | |
17930 | # Used on cygwin: DLL creation program. |
17931 | DLLTOOL="$DLLTOOL" |
17932 | |
17933 | # Used on cygwin: object dumper. |
17934 | OBJDUMP="$OBJDUMP" |
17935 | |
17936 | # Used on cygwin: assembler. |
17937 | AS="$AS" |
17938 | |
17939 | # The name of the directory that contains temporary libtool files. |
17940 | objdir=$objdir |
17941 | |
17942 | # How to create reloadable object files. |
17943 | reload_flag=$lt_reload_flag |
17944 | reload_cmds=$lt_reload_cmds |
17945 | |
17946 | # How to pass a linker flag through the compiler. |
17947 | wl=$lt_lt_prog_compiler_wl_GCJ |
17948 | |
17949 | # Object file suffix (normally "o"). |
17950 | objext="$ac_objext" |
17951 | |
17952 | # Old archive suffix (normally "a"). |
17953 | libext="$libext" |
17954 | |
17955 | # Shared library suffix (normally ".so"). |
17956 | shrext_cmds='$shrext_cmds' |
17957 | |
17958 | # Executable file suffix (normally ""). |
17959 | exeext="$exeext" |
17960 | |
17961 | # Additional compiler flags for building library objects. |
17962 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
17963 | pic_mode=$pic_mode |
17964 | |
17965 | # What is the maximum length of a command? |
17966 | max_cmd_len=$lt_cv_sys_max_cmd_len |
17967 | |
17968 | # Does compiler simultaneously support -c and -o options? |
17969 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
17970 | |
17971 | # Must we lock files when doing compilation? |
17972 | need_locks=$lt_need_locks |
17973 | |
17974 | # Do we need the lib prefix for modules? |
17975 | need_lib_prefix=$need_lib_prefix |
17976 | |
17977 | # Do we need a version for libraries? |
17978 | need_version=$need_version |
17979 | |
17980 | # Whether dlopen is supported. |
17981 | dlopen_support=$enable_dlopen |
17982 | |
17983 | # Whether dlopen of programs is supported. |
17984 | dlopen_self=$enable_dlopen_self |
17985 | |
17986 | # Whether dlopen of statically linked programs is supported. |
17987 | dlopen_self_static=$enable_dlopen_self_static |
17988 | |
17989 | # Compiler flag to prevent dynamic linking. |
17990 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
17991 | |
17992 | # Compiler flag to turn off builtin functions. |
17993 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
17994 | |
17995 | # Compiler flag to allow reflexive dlopens. |
17996 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
17997 | |
17998 | # Compiler flag to generate shared objects directly from archives. |
17999 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
18000 | |
18001 | # Compiler flag to generate thread-safe objects. |
18002 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
18003 | |
18004 | # Library versioning type. |
18005 | version_type=$version_type |
18006 | |
18007 | # Format of library name prefix. |
18008 | libname_spec=$lt_libname_spec |
18009 | |
18010 | # List of archive names. First name is the real one, the rest are links. |
18011 | # The last name is the one that the linker finds with -lNAME. |
18012 | library_names_spec=$lt_library_names_spec |
18013 | |
18014 | # The coded name of the library, if different from the real name. |
18015 | soname_spec=$lt_soname_spec |
18016 | |
18017 | # Commands used to build and install an old-style archive. |
18018 | RANLIB=$lt_RANLIB |
18019 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
18020 | old_postinstall_cmds=$lt_old_postinstall_cmds |
18021 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
18022 | |
18023 | # Create an old-style archive from a shared archive. |
18024 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
18025 | |
18026 | # Create a temporary old-style archive to link instead of a shared archive. |
18027 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
18028 | |
18029 | # Commands used to build and install a shared archive. |
18030 | archive_cmds=$lt_archive_cmds_GCJ |
18031 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
18032 | postinstall_cmds=$lt_postinstall_cmds |
18033 | postuninstall_cmds=$lt_postuninstall_cmds |
18034 | |
18035 | # Commands used to build a loadable module (assumed same as above if empty) |
18036 | module_cmds=$lt_module_cmds_GCJ |
18037 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
18038 | |
18039 | # Commands to strip libraries. |
18040 | old_striplib=$lt_old_striplib |
18041 | striplib=$lt_striplib |
18042 | |
18043 | # Dependencies to place before the objects being linked to create a |
18044 | # shared library. |
18045 | predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18046 | |
18047 | # Dependencies to place after the objects being linked to create a |
18048 | # shared library. |
18049 | postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18050 | |
18051 | # Dependencies to place before the objects being linked to create a |
18052 | # shared library. |
18053 | predeps=$lt_predeps_GCJ |
18054 | |
18055 | # Dependencies to place after the objects being linked to create a |
18056 | # shared library. |
18057 | postdeps=$lt_postdeps_GCJ |
18058 | |
18059 | # The library search path used internally by the compiler when linking |
18060 | # a shared library. |
18061 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18062 | |
18063 | # Method to check whether dependent libraries are shared objects. |
18064 | deplibs_check_method=$lt_deplibs_check_method |
18065 | |
18066 | # Command to use when deplibs_check_method == file_magic. |
18067 | file_magic_cmd=$lt_file_magic_cmd |
18068 | |
18069 | # Flag that allows shared libraries with undefined symbols to be built. |
18070 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
18071 | |
18072 | # Flag that forces no undefined symbols. |
18073 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
18074 | |
18075 | # Commands used to finish a libtool library installation in a directory. |
18076 | finish_cmds=$lt_finish_cmds |
18077 | |
18078 | # Same as above, but a single script fragment to be evaled but not shown. |
18079 | finish_eval=$lt_finish_eval |
18080 | |
18081 | # Take the output of nm and produce a listing of raw symbols and C names. |
18082 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
18083 | |
18084 | # Transform the output of nm in a proper C declaration |
18085 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
18086 | |
18087 | # Transform the output of nm in a C name address pair |
18088 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
18089 | |
18090 | # This is the shared library runtime path variable. |
18091 | runpath_var=$runpath_var |
18092 | |
18093 | # This is the shared library path variable. |
18094 | shlibpath_var=$shlibpath_var |
18095 | |
18096 | # Is shlibpath searched before the hard-coded library search path? |
18097 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
18098 | |
18099 | # How to hardcode a shared library path into an executable. |
18100 | hardcode_action=$hardcode_action_GCJ |
18101 | |
18102 | # Whether we should hardcode library paths into libraries. |
18103 | hardcode_into_libs=$hardcode_into_libs |
18104 | |
18105 | # Flag to hardcode \$libdir into a binary during linking. |
18106 | # This must work even if \$libdir does not exist. |
18107 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
18108 | |
18109 | # If ld is used when linking, flag to hardcode \$libdir into |
18110 | # a binary during linking. This must work even if \$libdir does |
18111 | # not exist. |
18112 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
18113 | |
18114 | # Whether we need a single -rpath flag with a separated argument. |
18115 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
18116 | |
18117 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
18118 | # resulting binary. |
18119 | hardcode_direct=$hardcode_direct_GCJ |
18120 | |
18121 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
18122 | # resulting binary. |
18123 | hardcode_minus_L=$hardcode_minus_L_GCJ |
18124 | |
18125 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
18126 | # the resulting binary. |
18127 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
18128 | |
18129 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
18130 | # and all subsequent libraries and executables linked against it. |
18131 | hardcode_automatic=$hardcode_automatic_GCJ |
18132 | |
18133 | # Variables whose values should be saved in libtool wrapper scripts and |
18134 | # restored at relink time. |
18135 | variables_saved_for_relink="$variables_saved_for_relink" |
18136 | |
18137 | # Whether libtool must link a program against all its dependency libraries. |
18138 | link_all_deplibs=$link_all_deplibs_GCJ |
18139 | |
18140 | # Compile-time system search path for libraries |
18141 | sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18142 | |
18143 | # Run-time system search path for libraries |
18144 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
18145 | |
18146 | # Fix the shell variable \$srcfile for the compiler. |
18147 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
18148 | |
18149 | # Set to yes if exported symbols are required. |
18150 | always_export_symbols=$always_export_symbols_GCJ |
18151 | |
18152 | # The commands to list exported symbols. |
18153 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
18154 | |
18155 | # The commands to extract the exported symbol list from a shared archive. |
18156 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
18157 | |
18158 | # Symbols that should not be listed in the preloaded symbols. |
18159 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
18160 | |
18161 | # Symbols that must always be exported. |
18162 | include_expsyms=$lt_include_expsyms_GCJ |
18163 | |
18164 | # ### END LIBTOOL TAG CONFIG: $tagname |
18165 | |
18166 | __EOF__ |
18167 | |
18168 | |
18169 | else |
18170 | # If there is no Makefile yet, we rely on a make rule to execute |
18171 | # `config.status --recheck' to rerun these tests and create the |
18172 | # libtool script then. |
18173 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
18174 | if test -f "$ltmain_in"; then |
18175 | test -f Makefile && make "$ltmain" |
18176 | fi |
18177 | fi |
18178 | |
18179 | |
18180 | ac_ext=c |
18181 | ac_cpp='$CPP $CPPFLAGS' |
18182 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18183 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
18184 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
18185 | |
18186 | CC="$lt_save_CC" |
18187 | |
18188 | else |
18189 | tagname="" |
18190 | fi |
18191 | ;; |
18192 | |
18193 | RC) |
18194 | |
18195 | |
18196 | |
18197 | # Source file extension for RC test sources. |
18198 | ac_ext=rc |
18199 | |
18200 | # Object file extension for compiled RC test sources. |
18201 | objext=o |
18202 | objext_RC=$objext |
18203 | |
18204 | # Code to be used in simple compile tests |
18205 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
18206 | |
18207 | # Code to be used in simple link tests |
18208 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
18209 | |
18210 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
18211 | |
18212 | # If no C compiler was specified, use CC. |
18213 | LTCC=${LTCC-"$CC"} |
18214 | |
18215 | # If no C compiler flags were specified, use CFLAGS. |
18216 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
18217 | |
18218 | # Allow CC to be a program name with arguments. |
18219 | compiler=$CC |
18220 | |
18221 | |
18222 | # save warnings/boilerplate of simple test code |
18223 | ac_outfile=conftest.$ac_objext |
18224 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
18225 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
18226 | _lt_compiler_boilerplate=`cat conftest.err` |
18227 | $rm conftest* |
18228 | |
18229 | ac_outfile=conftest.$ac_objext |
18230 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
18231 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
18232 | _lt_linker_boilerplate=`cat conftest.err` |
18233 | $rm conftest* |
18234 | |
18235 | |
18236 | # Allow CC to be a program name with arguments. |
18237 | lt_save_CC="$CC" |
18238 | CC=${RC-"windres"} |
18239 | compiler=$CC |
18240 | compiler_RC=$CC |
18241 | for cc_temp in $compiler""; do |
18242 | case $cc_temp in |
18243 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
18244 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
18245 | \-*) ;; |
18246 | *) break;; |
18247 | esac |
18248 | done |
18249 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
18250 | |
18251 | lt_cv_prog_compiler_c_o_RC=yes |
18252 | |
18253 | # The else clause should only fire when bootstrapping the |
18254 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18255 | # with your package, and you will get complaints that there are |
18256 | # no rules to generate ltmain.sh. |
18257 | if test -f "$ltmain"; then |
18258 | # See if we are running on zsh, and set the options which allow our commands through |
18259 | # without removal of \ escapes. |
18260 | if test -n "${ZSH_VERSION+set}" ; then |
18261 | setopt NO_GLOB_SUBST |
18262 | fi |
18263 | # Now quote all the things that may contain metacharacters while being |
18264 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
18265 | # variables and quote the copies for generation of the libtool script. |
18266 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
18267 | SED SHELL STRIP \ |
18268 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18269 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18270 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18271 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18272 | lt_cv_sys_global_symbol_to_c_name_address \ |
18273 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18274 | old_postinstall_cmds old_postuninstall_cmds \ |
18275 | compiler_RC \ |
18276 | CC_RC \ |
18277 | LD_RC \ |
18278 | lt_prog_compiler_wl_RC \ |
18279 | lt_prog_compiler_pic_RC \ |
18280 | lt_prog_compiler_static_RC \ |
18281 | lt_prog_compiler_no_builtin_flag_RC \ |
18282 | export_dynamic_flag_spec_RC \ |
18283 | thread_safe_flag_spec_RC \ |
18284 | whole_archive_flag_spec_RC \ |
18285 | enable_shared_with_static_runtimes_RC \ |
18286 | old_archive_cmds_RC \ |
18287 | old_archive_from_new_cmds_RC \ |
18288 | predep_objects_RC \ |
18289 | postdep_objects_RC \ |
18290 | predeps_RC \ |
18291 | postdeps_RC \ |
18292 | compiler_lib_search_path_RC \ |
18293 | archive_cmds_RC \ |
18294 | archive_expsym_cmds_RC \ |
18295 | postinstall_cmds_RC \ |
18296 | postuninstall_cmds_RC \ |
18297 | old_archive_from_expsyms_cmds_RC \ |
18298 | allow_undefined_flag_RC \ |
18299 | no_undefined_flag_RC \ |
18300 | export_symbols_cmds_RC \ |
18301 | hardcode_libdir_flag_spec_RC \ |
18302 | hardcode_libdir_flag_spec_ld_RC \ |
18303 | hardcode_libdir_separator_RC \ |
18304 | hardcode_automatic_RC \ |
18305 | module_cmds_RC \ |
18306 | module_expsym_cmds_RC \ |
18307 | lt_cv_prog_compiler_c_o_RC \ |
18308 | exclude_expsyms_RC \ |
18309 | include_expsyms_RC; do |
18310 | |
18311 | case $var in |
18312 | old_archive_cmds_RC | \ |
18313 | old_archive_from_new_cmds_RC | \ |
18314 | archive_cmds_RC | \ |
18315 | archive_expsym_cmds_RC | \ |
18316 | module_cmds_RC | \ |
18317 | module_expsym_cmds_RC | \ |
18318 | old_archive_from_expsyms_cmds_RC | \ |
18319 | export_symbols_cmds_RC | \ |
18320 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
18321 | postinstall_cmds | postuninstall_cmds | \ |
18322 | old_postinstall_cmds | old_postuninstall_cmds | \ |
18323 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
18324 | # Double-quote double-evaled strings. |
18325 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
18326 | ;; |
18327 | *) |
18328 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
18329 | ;; |
18330 | esac |
18331 | done |
18332 | |
18333 | case $lt_echo in |
18334 | *'\$0 --fallback-echo"') |
18335 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
18336 | ;; |
18337 | esac |
18338 | |
18339 | cfgfile="$ofile" |
18340 | |
18341 | cat <<__EOF__ >> "$cfgfile" |
18342 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
18343 | |
18344 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18345 | |
18346 | # Shell to use when invoking shell scripts. |
18347 | SHELL=$lt_SHELL |
18348 | |
18349 | # Whether or not to build shared libraries. |
18350 | build_libtool_libs=$enable_shared |
18351 | |
18352 | # Whether or not to build static libraries. |
18353 | build_old_libs=$enable_static |
18354 | |
18355 | # Whether or not to add -lc for building shared libraries. |
18356 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
18357 | |
18358 | # Whether or not to disallow shared libs when runtime libs are static |
18359 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
18360 | |
18361 | # Whether or not to optimize for fast installation. |
18362 | fast_install=$enable_fast_install |
18363 | |
18364 | # The host system. |
18365 | host_alias=$host_alias |
18366 | host=$host |
18367 | host_os=$host_os |
18368 | |
18369 | # The build system. |
18370 | build_alias=$build_alias |
18371 | build=$build |
18372 | build_os=$build_os |
18373 | |
18374 | # An echo program that does not interpret backslashes. |
18375 | echo=$lt_echo |
18376 | |
18377 | # The archiver. |
18378 | AR=$lt_AR |
18379 | AR_FLAGS=$lt_AR_FLAGS |
18380 | |
18381 | # A C compiler. |
18382 | LTCC=$lt_LTCC |
18383 | |
18384 | # LTCC compiler flags. |
18385 | LTCFLAGS=$lt_LTCFLAGS |
18386 | |
18387 | # A language-specific compiler. |
18388 | CC=$lt_compiler_RC |
18389 | |
18390 | # Is the compiler the GNU C compiler? |
18391 | with_gcc=$GCC_RC |
18392 | |
18393 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
18394 | gcc_ver=\`gcc -dumpversion\` |
18395 | |
18396 | # An ERE matcher. |
18397 | EGREP=$lt_EGREP |
18398 | |
18399 | # The linker used to build libraries. |
18400 | LD=$lt_LD_RC |
18401 | |
18402 | # Whether we need hard or soft links. |
18403 | LN_S=$lt_LN_S |
18404 | |
18405 | # A BSD-compatible nm program. |
18406 | NM=$lt_NM |
18407 | |
18408 | # A symbol stripping program |
18409 | STRIP=$lt_STRIP |
18410 | |
18411 | # Used to examine libraries when file_magic_cmd begins "file" |
18412 | MAGIC_CMD=$MAGIC_CMD |
18413 | |
18414 | # Used on cygwin: DLL creation program. |
18415 | DLLTOOL="$DLLTOOL" |
18416 | |
18417 | # Used on cygwin: object dumper. |
18418 | OBJDUMP="$OBJDUMP" |
18419 | |
18420 | # Used on cygwin: assembler. |
18421 | AS="$AS" |
18422 | |
18423 | # The name of the directory that contains temporary libtool files. |
18424 | objdir=$objdir |
18425 | |
18426 | # How to create reloadable object files. |
18427 | reload_flag=$lt_reload_flag |
18428 | reload_cmds=$lt_reload_cmds |
18429 | |
18430 | # How to pass a linker flag through the compiler. |
18431 | wl=$lt_lt_prog_compiler_wl_RC |
18432 | |
18433 | # Object file suffix (normally "o"). |
18434 | objext="$ac_objext" |
18435 | |
18436 | # Old archive suffix (normally "a"). |
18437 | libext="$libext" |
18438 | |
18439 | # Shared library suffix (normally ".so"). |
18440 | shrext_cmds='$shrext_cmds' |
18441 | |
18442 | # Executable file suffix (normally ""). |
18443 | exeext="$exeext" |
18444 | |
18445 | # Additional compiler flags for building library objects. |
18446 | pic_flag=$lt_lt_prog_compiler_pic_RC |
18447 | pic_mode=$pic_mode |
18448 | |
18449 | # What is the maximum length of a command? |
18450 | max_cmd_len=$lt_cv_sys_max_cmd_len |
18451 | |
18452 | # Does compiler simultaneously support -c and -o options? |
18453 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
18454 | |
18455 | # Must we lock files when doing compilation? |
18456 | need_locks=$lt_need_locks |
18457 | |
18458 | # Do we need the lib prefix for modules? |
18459 | need_lib_prefix=$need_lib_prefix |
18460 | |
18461 | # Do we need a version for libraries? |
18462 | need_version=$need_version |
18463 | |
18464 | # Whether dlopen is supported. |
18465 | dlopen_support=$enable_dlopen |
18466 | |
18467 | # Whether dlopen of programs is supported. |
18468 | dlopen_self=$enable_dlopen_self |
18469 | |
18470 | # Whether dlopen of statically linked programs is supported. |
18471 | dlopen_self_static=$enable_dlopen_self_static |
18472 | |
18473 | # Compiler flag to prevent dynamic linking. |
18474 | link_static_flag=$lt_lt_prog_compiler_static_RC |
18475 | |
18476 | # Compiler flag to turn off builtin functions. |
18477 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
18478 | |
18479 | # Compiler flag to allow reflexive dlopens. |
18480 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
18481 | |
18482 | # Compiler flag to generate shared objects directly from archives. |
18483 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
18484 | |
18485 | # Compiler flag to generate thread-safe objects. |
18486 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
18487 | |
18488 | # Library versioning type. |
18489 | version_type=$version_type |
18490 | |
18491 | # Format of library name prefix. |
18492 | libname_spec=$lt_libname_spec |
18493 | |
18494 | # List of archive names. First name is the real one, the rest are links. |
18495 | # The last name is the one that the linker finds with -lNAME. |
18496 | library_names_spec=$lt_library_names_spec |
18497 | |
18498 | # The coded name of the library, if different from the real name. |
18499 | soname_spec=$lt_soname_spec |
18500 | |
18501 | # Commands used to build and install an old-style archive. |
18502 | RANLIB=$lt_RANLIB |
18503 | old_archive_cmds=$lt_old_archive_cmds_RC |
18504 | old_postinstall_cmds=$lt_old_postinstall_cmds |
18505 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
18506 | |
18507 | # Create an old-style archive from a shared archive. |
18508 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
18509 | |
18510 | # Create a temporary old-style archive to link instead of a shared archive. |
18511 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
18512 | |
18513 | # Commands used to build and install a shared archive. |
18514 | archive_cmds=$lt_archive_cmds_RC |
18515 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
18516 | postinstall_cmds=$lt_postinstall_cmds |
18517 | postuninstall_cmds=$lt_postuninstall_cmds |
18518 | |
18519 | # Commands used to build a loadable module (assumed same as above if empty) |
18520 | module_cmds=$lt_module_cmds_RC |
18521 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
18522 | |
18523 | # Commands to strip libraries. |
18524 | old_striplib=$lt_old_striplib |
18525 | striplib=$lt_striplib |
18526 | |
18527 | # Dependencies to place before the objects being linked to create a |
18528 | # shared library. |
18529 | predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18530 | |
18531 | # Dependencies to place after the objects being linked to create a |
18532 | # shared library. |
18533 | postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18534 | |
18535 | # Dependencies to place before the objects being linked to create a |
18536 | # shared library. |
18537 | predeps=$lt_predeps_RC |
18538 | |
18539 | # Dependencies to place after the objects being linked to create a |
18540 | # shared library. |
18541 | postdeps=$lt_postdeps_RC |
18542 | |
18543 | # The library search path used internally by the compiler when linking |
18544 | # a shared library. |
18545 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18546 | |
18547 | # Method to check whether dependent libraries are shared objects. |
18548 | deplibs_check_method=$lt_deplibs_check_method |
18549 | |
18550 | # Command to use when deplibs_check_method == file_magic. |
18551 | file_magic_cmd=$lt_file_magic_cmd |
18552 | |
18553 | # Flag that allows shared libraries with undefined symbols to be built. |
18554 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
18555 | |
18556 | # Flag that forces no undefined symbols. |
18557 | no_undefined_flag=$lt_no_undefined_flag_RC |
18558 | |
18559 | # Commands used to finish a libtool library installation in a directory. |
18560 | finish_cmds=$lt_finish_cmds |
18561 | |
18562 | # Same as above, but a single script fragment to be evaled but not shown. |
18563 | finish_eval=$lt_finish_eval |
18564 | |
18565 | # Take the output of nm and produce a listing of raw symbols and C names. |
18566 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
18567 | |
18568 | # Transform the output of nm in a proper C declaration |
18569 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
18570 | |
18571 | # Transform the output of nm in a C name address pair |
18572 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
18573 | |
18574 | # This is the shared library runtime path variable. |
18575 | runpath_var=$runpath_var |
18576 | |
18577 | # This is the shared library path variable. |
18578 | shlibpath_var=$shlibpath_var |
18579 | |
18580 | # Is shlibpath searched before the hard-coded library search path? |
18581 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
18582 | |
18583 | # How to hardcode a shared library path into an executable. |
18584 | hardcode_action=$hardcode_action_RC |
18585 | |
18586 | # Whether we should hardcode library paths into libraries. |
18587 | hardcode_into_libs=$hardcode_into_libs |
18588 | |
18589 | # Flag to hardcode \$libdir into a binary during linking. |
18590 | # This must work even if \$libdir does not exist. |
18591 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
18592 | |
18593 | # If ld is used when linking, flag to hardcode \$libdir into |
18594 | # a binary during linking. This must work even if \$libdir does |
18595 | # not exist. |
18596 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
18597 | |
18598 | # Whether we need a single -rpath flag with a separated argument. |
18599 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
18600 | |
18601 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
18602 | # resulting binary. |
18603 | hardcode_direct=$hardcode_direct_RC |
18604 | |
18605 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
18606 | # resulting binary. |
18607 | hardcode_minus_L=$hardcode_minus_L_RC |
18608 | |
18609 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
18610 | # the resulting binary. |
18611 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
18612 | |
18613 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
18614 | # and all subsequent libraries and executables linked against it. |
18615 | hardcode_automatic=$hardcode_automatic_RC |
18616 | |
18617 | # Variables whose values should be saved in libtool wrapper scripts and |
18618 | # restored at relink time. |
18619 | variables_saved_for_relink="$variables_saved_for_relink" |
18620 | |
18621 | # Whether libtool must link a program against all its dependency libraries. |
18622 | link_all_deplibs=$link_all_deplibs_RC |
18623 | |
18624 | # Compile-time system search path for libraries |
18625 | sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18626 | |
18627 | # Run-time system search path for libraries |
18628 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
18629 | |
18630 | # Fix the shell variable \$srcfile for the compiler. |
18631 | fix_srcfile_path="$fix_srcfile_path_RC" |
18632 | |
18633 | # Set to yes if exported symbols are required. |
18634 | always_export_symbols=$always_export_symbols_RC |
18635 | |
18636 | # The commands to list exported symbols. |
18637 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
18638 | |
18639 | # The commands to extract the exported symbol list from a shared archive. |
18640 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
18641 | |
18642 | # Symbols that should not be listed in the preloaded symbols. |
18643 | exclude_expsyms=$lt_exclude_expsyms_RC |
18644 | |
18645 | # Symbols that must always be exported. |
18646 | include_expsyms=$lt_include_expsyms_RC |
18647 | |
18648 | # ### END LIBTOOL TAG CONFIG: $tagname |
18649 | |
18650 | __EOF__ |
18651 | |
18652 | |
18653 | else |
18654 | # If there is no Makefile yet, we rely on a make rule to execute |
18655 | # `config.status --recheck' to rerun these tests and create the |
18656 | # libtool script then. |
18657 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
18658 | if test -f "$ltmain_in"; then |
18659 | test -f Makefile && make "$ltmain" |
18660 | fi |
18661 | fi |
18662 | |
18663 | |
18664 | ac_ext=c |
18665 | ac_cpp='$CPP $CPPFLAGS' |
18666 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18667 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
18668 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
18669 | |
18670 | CC="$lt_save_CC" |
18671 | |
18672 | ;; |
18673 | |
18674 | *) |
18675 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
18676 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
18677 | { (exit 1); exit 1; }; } |
18678 | ;; |
18679 | esac |
18680 | |
18681 | # Append the new tag name to the list of available tags. |
18682 | if test -n "$tagname" ; then |
18683 | available_tags="$available_tags $tagname" |
18684 | fi |
18685 | fi |
18686 | done |
18687 | IFS="$lt_save_ifs" |
18688 | |
18689 | # Now substitute the updated list of available tags. |
18690 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
18691 | mv "${ofile}T" "$ofile" |
18692 | chmod +x "$ofile" |
18693 | else |
18694 | rm -f "${ofile}T" |
18695 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
18696 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
18697 | { (exit 1); exit 1; }; } |
18698 | fi |
18699 | fi |
18700 | |
18701 | |
18702 | |
18703 | # This can be used to rebuild libtool when needed |
18704 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
18705 | |
18706 | # Always use our own libtool. |
18707 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
18708 | |
18709 | # Prevent multiple expansion |
18710 | |
18711 | |
18712 | |
18713 | |
18714 | |
18715 | |
18716 | |
18717 | |
18718 | |
18719 | |
18720 | |
18721 | |
18722 | |
18723 | |
18724 | |
18725 | |
18726 | |
18727 | |
18728 | |
18729 | |
18730 | |
18731 | if test "$GCC" = "yes" |
18732 | then |
18733 | CFLAGS="$CFLAGS -Wall" |
18734 | fi |
18735 | |
18736 | |
18737 | |
18738 | |
18739 | for ac_header in unistd.h |
18740 | do |
18741 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
18742 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18743 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
18744 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18745 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18747 | fi |
18748 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
18749 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
18750 | else |
18751 | # Is the header compilable? |
18752 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
18753 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
18754 | cat >conftest.$ac_ext <<_ACEOF |
18755 | /* confdefs.h. */ |
18756 | _ACEOF |
18757 | cat confdefs.h >>conftest.$ac_ext |
18758 | cat >>conftest.$ac_ext <<_ACEOF |
18759 | /* end confdefs.h. */ |
18760 | $ac_includes_default |
18761 | #include <$ac_header> |
18762 | _ACEOF |
18763 | rm -f conftest.$ac_objext |
18764 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18765 | (eval $ac_compile) 2>conftest.er1 |
18766 | ac_status=$? |
18767 | grep -v '^ *+' conftest.er1 >conftest.err |
18768 | rm -f conftest.er1 |
18769 | cat conftest.err >&5 |
18770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18771 | (exit $ac_status); } && |
18772 | { ac_try='test -z "$ac_c_werror_flag" |
18773 | || test ! -s conftest.err' |
18774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18775 | (eval $ac_try) 2>&5 |
18776 | ac_status=$? |
18777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18778 | (exit $ac_status); }; } && |
18779 | { ac_try='test -s conftest.$ac_objext' |
18780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18781 | (eval $ac_try) 2>&5 |
18782 | ac_status=$? |
18783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18784 | (exit $ac_status); }; }; then |
18785 | ac_header_compiler=yes |
18786 | else |
18787 | echo "$as_me: failed program was:" >&5 |
18788 | sed 's/^/| /' conftest.$ac_ext >&5 |
18789 | |
18790 | ac_header_compiler=no |
18791 | fi |
18792 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
18793 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18794 | echo "${ECHO_T}$ac_header_compiler" >&6 |
18795 | |
18796 | # Is the header present? |
18797 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
18798 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
18799 | cat >conftest.$ac_ext <<_ACEOF |
18800 | /* confdefs.h. */ |
18801 | _ACEOF |
18802 | cat confdefs.h >>conftest.$ac_ext |
18803 | cat >>conftest.$ac_ext <<_ACEOF |
18804 | /* end confdefs.h. */ |
18805 | #include <$ac_header> |
18806 | _ACEOF |
18807 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
18808 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18809 | ac_status=$? |
18810 | grep -v '^ *+' conftest.er1 >conftest.err |
18811 | rm -f conftest.er1 |
18812 | cat conftest.err >&5 |
18813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18814 | (exit $ac_status); } >/dev/null; then |
18815 | if test -s conftest.err; then |
18816 | ac_cpp_err=$ac_c_preproc_warn_flag |
18817 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
18818 | else |
18819 | ac_cpp_err= |
18820 | fi |
18821 | else |
18822 | ac_cpp_err=yes |
18823 | fi |
18824 | if test -z "$ac_cpp_err"; then |
18825 | ac_header_preproc=yes |
18826 | else |
18827 | echo "$as_me: failed program was:" >&5 |
18828 | sed 's/^/| /' conftest.$ac_ext >&5 |
18829 | |
18830 | ac_header_preproc=no |
18831 | fi |
18832 | rm -f conftest.err conftest.$ac_ext |
18833 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18834 | echo "${ECHO_T}$ac_header_preproc" >&6 |
18835 | |
18836 | # So? What about this header? |
18837 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18838 | yes:no: ) |
18839 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18840 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
18841 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18842 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
18843 | ac_header_preproc=yes |
18844 | ;; |
18845 | no:yes:* ) |
18846 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18847 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
18848 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18849 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
18850 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
18851 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
18852 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
18853 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
18854 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
18855 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
18856 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18857 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
18858 | ( |
18859 | cat <<\_ASBOX |
18860 | ## -------------------------------------------------- ## |
18861 | ## Report this to courier-users@lists.sourceforge.net ## |
18862 | ## -------------------------------------------------- ## |
18863 | _ASBOX |
18864 | ) | |
18865 | sed "s/^/$as_me: WARNING: /" >&2 |
18866 | ;; |
18867 | esac |
18868 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
18869 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18870 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18872 | else |
18873 | eval "$as_ac_Header=\$ac_header_preproc" |
18874 | fi |
18875 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
18876 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
18877 | |
18878 | fi |
18879 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
18880 | cat >>confdefs.h <<_ACEOF |
18881 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
18882 | _ACEOF |
18883 | |
18884 | fi |
18885 | |
18886 | done |
18887 | |
18888 | |
18889 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
18890 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
18891 | if test "${ac_cv_type_uid_t+set}" = set; then |
18892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18893 | else |
18894 | cat >conftest.$ac_ext <<_ACEOF |
18895 | /* confdefs.h. */ |
18896 | _ACEOF |
18897 | cat confdefs.h >>conftest.$ac_ext |
18898 | cat >>conftest.$ac_ext <<_ACEOF |
18899 | /* end confdefs.h. */ |
18900 | #include <sys/types.h> |
18901 | |
18902 | _ACEOF |
18903 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
18904 | $EGREP "uid_t" >/dev/null 2>&1; then |
18905 | ac_cv_type_uid_t=yes |
18906 | else |
18907 | ac_cv_type_uid_t=no |
18908 | fi |
18909 | rm -f conftest* |
18910 | |
18911 | fi |
18912 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
18913 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
18914 | if test $ac_cv_type_uid_t = no; then |
18915 | |
18916 | cat >>confdefs.h <<\_ACEOF |
18917 | #define uid_t int |
18918 | _ACEOF |
18919 | |
18920 | |
18921 | cat >>confdefs.h <<\_ACEOF |
18922 | #define gid_t int |
18923 | _ACEOF |
18924 | |
18925 | fi |
18926 | |
18927 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
18928 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
18929 | if test "${ac_cv_type_pid_t+set}" = set; then |
18930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18931 | else |
18932 | cat >conftest.$ac_ext <<_ACEOF |
18933 | /* confdefs.h. */ |
18934 | _ACEOF |
18935 | cat confdefs.h >>conftest.$ac_ext |
18936 | cat >>conftest.$ac_ext <<_ACEOF |
18937 | /* end confdefs.h. */ |
18938 | $ac_includes_default |
18939 | int |
18940 | main () |
18941 | { |
18942 | if ((pid_t *) 0) |
18943 | return 0; |
18944 | if (sizeof (pid_t)) |
18945 | return 0; |
18946 | ; |
18947 | return 0; |
18948 | } |
18949 | _ACEOF |
18950 | rm -f conftest.$ac_objext |
18951 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18952 | (eval $ac_compile) 2>conftest.er1 |
18953 | ac_status=$? |
18954 | grep -v '^ *+' conftest.er1 >conftest.err |
18955 | rm -f conftest.er1 |
18956 | cat conftest.err >&5 |
18957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18958 | (exit $ac_status); } && |
18959 | { ac_try='test -z "$ac_c_werror_flag" |
18960 | || test ! -s conftest.err' |
18961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18962 | (eval $ac_try) 2>&5 |
18963 | ac_status=$? |
18964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18965 | (exit $ac_status); }; } && |
18966 | { ac_try='test -s conftest.$ac_objext' |
18967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18968 | (eval $ac_try) 2>&5 |
18969 | ac_status=$? |
18970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18971 | (exit $ac_status); }; }; then |
18972 | ac_cv_type_pid_t=yes |
18973 | else |
18974 | echo "$as_me: failed program was:" >&5 |
18975 | sed 's/^/| /' conftest.$ac_ext >&5 |
18976 | |
18977 | ac_cv_type_pid_t=no |
18978 | fi |
18979 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
18980 | fi |
18981 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
18982 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
18983 | if test $ac_cv_type_pid_t = yes; then |
18984 | : |
18985 | else |
18986 | |
18987 | cat >>confdefs.h <<_ACEOF |
18988 | #define pid_t int |
18989 | _ACEOF |
18990 | |
18991 | fi |
18992 | |
18993 | |
18994 | |
18995 | |
18996 | |
18997 | for ac_func in setgroups initgroups |
18998 | do |
18999 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
19000 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19001 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
19002 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
19003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19004 | else |
19005 | cat >conftest.$ac_ext <<_ACEOF |
19006 | /* confdefs.h. */ |
19007 | _ACEOF |
19008 | cat confdefs.h >>conftest.$ac_ext |
19009 | cat >>conftest.$ac_ext <<_ACEOF |
19010 | /* end confdefs.h. */ |
19011 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19012 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
19013 | #define $ac_func innocuous_$ac_func |
19014 | |
19015 | /* System header to define __stub macros and hopefully few prototypes, |
19016 | which can conflict with char $ac_func (); below. |
19017 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
19018 | <limits.h> exists even on freestanding compilers. */ |
19019 | |
19020 | #ifdef __STDC__ |
19021 | # include <limits.h> |
19022 | #else |
19023 | # include <assert.h> |
19024 | #endif |
19025 | |
19026 | #undef $ac_func |
19027 | |
19028 | /* Override any gcc2 internal prototype to avoid an error. */ |
19029 | #ifdef __cplusplus |
19030 | extern "C" |
19031 | { |
19032 | #endif |
19033 | /* We use char because int might match the return type of a gcc2 |
19034 | builtin and then its argument prototype would still apply. */ |
19035 | char $ac_func (); |
19036 | /* The GNU C library defines this for functions which it implements |
19037 | to always fail with ENOSYS. Some functions are actually named |
19038 | something starting with __ and the normal name is an alias. */ |
19039 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
19040 | choke me |
19041 | #else |
19042 | char (*f) () = $ac_func; |
19043 | #endif |
19044 | #ifdef __cplusplus |
19045 | } |
19046 | #endif |
19047 | |
19048 | int |
19049 | main () |
19050 | { |
19051 | return f != $ac_func; |
19052 | ; |
19053 | return 0; |
19054 | } |
19055 | _ACEOF |
19056 | rm -f conftest.$ac_objext conftest$ac_exeext |
19057 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19058 | (eval $ac_link) 2>conftest.er1 |
19059 | ac_status=$? |
19060 | grep -v '^ *+' conftest.er1 >conftest.err |
19061 | rm -f conftest.er1 |
19062 | cat conftest.err >&5 |
19063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19064 | (exit $ac_status); } && |
19065 | { ac_try='test -z "$ac_c_werror_flag" |
19066 | || test ! -s conftest.err' |
19067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19068 | (eval $ac_try) 2>&5 |
19069 | ac_status=$? |
19070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19071 | (exit $ac_status); }; } && |
19072 | { ac_try='test -s conftest$ac_exeext' |
19073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19074 | (eval $ac_try) 2>&5 |
19075 | ac_status=$? |
19076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19077 | (exit $ac_status); }; }; then |
19078 | eval "$as_ac_var=yes" |
19079 | else |
19080 | echo "$as_me: failed program was:" >&5 |
19081 | sed 's/^/| /' conftest.$ac_ext >&5 |
19082 | |
19083 | eval "$as_ac_var=no" |
19084 | fi |
19085 | rm -f conftest.err conftest.$ac_objext \ |
19086 | conftest$ac_exeext conftest.$ac_ext |
19087 | fi |
19088 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
19089 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
19090 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
19091 | cat >>confdefs.h <<_ACEOF |
19092 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
19093 | _ACEOF |
19094 | |
19095 | fi |
19096 | done |
19097 | |
19098 | ac_config_files="$ac_config_files Makefile" |
19099 | cat >confcache <<\_ACEOF |
19100 | # This file is a shell script that caches the results of configure |
19101 | # tests run on this system so they can be shared between configure |
19102 | # scripts and configure runs, see configure's option --config-cache. |
19103 | # It is not useful on other systems. If it contains results you don't |
19104 | # want to keep, you may remove or edit it. |
19105 | # |
19106 | # config.status only pays attention to the cache file if you give it |
19107 | # the --recheck option to rerun configure. |
19108 | # |
19109 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
19110 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
19111 | # following values. |
19112 | |
19113 | _ACEOF |
19114 | |
19115 | # The following way of writing the cache mishandles newlines in values, |
19116 | # but we know of no workaround that is simple, portable, and efficient. |
19117 | # So, don't put newlines in cache variables' values. |
19118 | # Ultrix sh set writes to stderr and can't be redirected directly, |
19119 | # and sets the high bit in the cache file unless we assign to the vars. |
19120 | { |
19121 | (set) 2>&1 | |
19122 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
19123 | *ac_space=\ *) |
19124 | # `set' does not quote correctly, so add quotes (double-quote |
19125 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
19126 | sed -n \ |
19127 | "s/'/'\\\\''/g; |
19128 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
19129 | ;; |
19130 | *) |
19131 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
19132 | sed -n \ |
19133 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
19134 | ;; |
19135 | esac; |
19136 | } | |
19137 | sed ' |
19138 | t clear |
19139 | : clear |
19140 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
19141 | t end |
19142 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
19143 | : end' >>confcache |
19144 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
19145 | if test -w $cache_file; then |
19146 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
19147 | cat confcache >$cache_file |
19148 | else |
19149 | echo "not updating unwritable cache $cache_file" |
19150 | fi |
19151 | fi |
19152 | rm -f confcache |
19153 | |
19154 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
19155 | # Let make expand exec_prefix. |
19156 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
19157 | |
19158 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
19159 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
19160 | # trailing colons and then remove the whole line if VPATH becomes empty |
19161 | # (actually we leave an empty line to preserve line numbers). |
19162 | if test "x$srcdir" = x.; then |
19163 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
19164 | s/:*\$(srcdir):*/:/; |
19165 | s/:*\${srcdir}:*/:/; |
19166 | s/:*@srcdir@:*/:/; |
19167 | s/^\([^=]*=[ ]*\):*/\1/; |
19168 | s/:*$//; |
19169 | s/^[^=]*=[ ]*$//; |
19170 | }' |
19171 | fi |
19172 | |
19173 | DEFS=-DHAVE_CONFIG_H |
19174 | |
19175 | ac_libobjs= |
19176 | ac_ltlibobjs= |
19177 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
19178 | # 1. Remove the extension, and $U if already installed. |
19179 | ac_i=`echo "$ac_i" | |
19180 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
19181 | # 2. Add them. |
19182 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
19183 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
19184 | done |
19185 | LIBOBJS=$ac_libobjs |
19186 | |
19187 | LTLIBOBJS=$ac_ltlibobjs |
19188 | |
19189 | |
19190 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
19191 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
19192 | Usually this means the macro was only invoked conditionally." >&5 |
19193 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
19194 | Usually this means the macro was only invoked conditionally." >&2;} |
19195 | { (exit 1); exit 1; }; } |
19196 | fi |
19197 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
19198 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
19199 | Usually this means the macro was only invoked conditionally." >&5 |
19200 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
19201 | Usually this means the macro was only invoked conditionally." >&2;} |
19202 | { (exit 1); exit 1; }; } |
19203 | fi |
19204 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
19205 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
19206 | Usually this means the macro was only invoked conditionally." >&5 |
19207 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
19208 | Usually this means the macro was only invoked conditionally." >&2;} |
19209 | { (exit 1); exit 1; }; } |
19210 | fi |
19211 | |
19212 | : ${CONFIG_STATUS=./config.status} |
19213 | ac_clean_files_save=$ac_clean_files |
19214 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
19215 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
19216 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
19217 | cat >$CONFIG_STATUS <<_ACEOF |
19218 | #! $SHELL |
19219 | # Generated by $as_me. |
19220 | # Run this file to recreate the current configuration. |
19221 | # Compiler output produced by configure, useful for debugging |
19222 | # configure, is in config.log if it exists. |
19223 | |
19224 | debug=false |
19225 | ac_cs_recheck=false |
19226 | ac_cs_silent=false |
19227 | SHELL=\${CONFIG_SHELL-$SHELL} |
19228 | _ACEOF |
19229 | |
19230 | cat >>$CONFIG_STATUS <<\_ACEOF |
19231 | ## --------------------- ## |
19232 | ## M4sh Initialization. ## |
19233 | ## --------------------- ## |
19234 | |
19235 | # Be Bourne compatible |
19236 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
19237 | emulate sh |
19238 | NULLCMD=: |
19239 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
19240 | # is contrary to our usage. Disable this feature. |
19241 | alias -g '${1+"$@"}'='"$@"' |
19242 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
19243 | set -o posix |
19244 | fi |
19245 | DUALCASE=1; export DUALCASE # for MKS sh |
19246 | |
19247 | # Support unset when possible. |
19248 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
19249 | as_unset=unset |
19250 | else |
19251 | as_unset=false |
19252 | fi |
19253 | |
19254 | |
19255 | # Work around bugs in pre-3.0 UWIN ksh. |
19256 | $as_unset ENV MAIL MAILPATH |
19257 | PS1='$ ' |
19258 | PS2='> ' |
19259 | PS4='+ ' |
19260 | |
19261 | # NLS nuisances. |
19262 | for as_var in \ |
19263 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
19264 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
19265 | LC_TELEPHONE LC_TIME |
19266 | do |
19267 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
19268 | eval $as_var=C; export $as_var |
19269 | else |
19270 | $as_unset $as_var |
19271 | fi |
19272 | done |
19273 | |
19274 | # Required to use basename. |
19275 | if expr a : '\(a\)' >/dev/null 2>&1; then |
19276 | as_expr=expr |
19277 | else |
19278 | as_expr=false |
19279 | fi |
19280 | |
19281 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
19282 | as_basename=basename |
19283 | else |
19284 | as_basename=false |
19285 | fi |
19286 | |
19287 | |
19288 | # Name of the executable. |
19289 | as_me=`$as_basename "$0" || |
19290 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
19291 | X"$0" : 'X\(//\)$' \| \ |
19292 | X"$0" : 'X\(/\)$' \| \ |
19293 | . : '\(.\)' 2>/dev/null || |
19294 | echo X/"$0" | |
19295 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
19296 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
19297 | /^X\/\(\/\).*/{ s//\1/; q; } |
19298 | s/.*/./; q'` |
19299 | |
19300 | |
19301 | # PATH needs CR, and LINENO needs CR and PATH. |
19302 | # Avoid depending upon Character Ranges. |
19303 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
19304 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
19305 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
19306 | as_cr_digits='0123456789' |
19307 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
19308 | |
19309 | # The user is always right. |
19310 | if test "${PATH_SEPARATOR+set}" != set; then |
19311 | echo "#! /bin/sh" >conf$$.sh |
19312 | echo "exit 0" >>conf$$.sh |
19313 | chmod +x conf$$.sh |
19314 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
19315 | PATH_SEPARATOR=';' |
19316 | else |
19317 | PATH_SEPARATOR=: |
19318 | fi |
19319 | rm -f conf$$.sh |
19320 | fi |
19321 | |
19322 | |
19323 | as_lineno_1=$LINENO |
19324 | as_lineno_2=$LINENO |
19325 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
19326 | test "x$as_lineno_1" != "x$as_lineno_2" && |
19327 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
19328 | # Find who we are. Look in the path if we contain no path at all |
19329 | # relative or not. |
19330 | case $0 in |
19331 | *[\\/]* ) as_myself=$0 ;; |
19332 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19333 | for as_dir in $PATH |
19334 | do |
19335 | IFS=$as_save_IFS |
19336 | test -z "$as_dir" && as_dir=. |
19337 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
19338 | done |
19339 | |
19340 | ;; |
19341 | esac |
19342 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
19343 | # in which case we are not to be found in the path. |
19344 | if test "x$as_myself" = x; then |
19345 | as_myself=$0 |
19346 | fi |
19347 | if test ! -f "$as_myself"; then |
19348 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
19349 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
19350 | { (exit 1); exit 1; }; } |
19351 | fi |
19352 | case $CONFIG_SHELL in |
19353 | '') |
19354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19355 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
19356 | do |
19357 | IFS=$as_save_IFS |
19358 | test -z "$as_dir" && as_dir=. |
19359 | for as_base in sh bash ksh sh5; do |
19360 | case $as_dir in |
19361 | /*) |
19362 | if ("$as_dir/$as_base" -c ' |
19363 | as_lineno_1=$LINENO |
19364 | as_lineno_2=$LINENO |
19365 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
19366 | test "x$as_lineno_1" != "x$as_lineno_2" && |
19367 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
19368 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
19369 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
19370 | CONFIG_SHELL=$as_dir/$as_base |
19371 | export CONFIG_SHELL |
19372 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
19373 | fi;; |
19374 | esac |
19375 | done |
19376 | done |
19377 | ;; |
19378 | esac |
19379 | |
19380 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
19381 | # uniformly replaced by the line number. The first 'sed' inserts a |
19382 | # line-number line before each line; the second 'sed' does the real |
19383 | # work. The second script uses 'N' to pair each line-number line |
19384 | # with the numbered line, and appends trailing '-' during |
19385 | # substitution so that $LINENO is not a special case at line end. |
19386 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
19387 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
19388 | sed '=' <$as_myself | |
19389 | sed ' |
19390 | N |
19391 | s,$,-, |
19392 | : loop |
19393 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
19394 | t loop |
19395 | s,-$,, |
19396 | s,^['$as_cr_digits']*\n,, |
19397 | ' >$as_me.lineno && |
19398 | chmod +x $as_me.lineno || |
19399 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
19400 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
19401 | { (exit 1); exit 1; }; } |
19402 | |
19403 | # Don't try to exec as it changes $[0], causing all sort of problems |
19404 | # (the dirname of $[0] is not the place where we might find the |
19405 | # original and so on. Autoconf is especially sensible to this). |
19406 | . ./$as_me.lineno |
19407 | # Exit status is that of the last command. |
19408 | exit |
19409 | } |
19410 | |
19411 | |
19412 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
19413 | *c*,-n*) ECHO_N= ECHO_C=' |
19414 | ' ECHO_T=' ' ;; |
19415 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
19416 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
19417 | esac |
19418 | |
19419 | if expr a : '\(a\)' >/dev/null 2>&1; then |
19420 | as_expr=expr |
19421 | else |
19422 | as_expr=false |
19423 | fi |
19424 | |
19425 | rm -f conf$$ conf$$.exe conf$$.file |
19426 | echo >conf$$.file |
19427 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
19428 | # We could just check for DJGPP; but this test a) works b) is more generic |
19429 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
19430 | if test -f conf$$.exe; then |
19431 | # Don't use ln at all; we don't have any links |
19432 | as_ln_s='cp -p' |
19433 | else |
19434 | as_ln_s='ln -s' |
19435 | fi |
19436 | elif ln conf$$.file conf$$ 2>/dev/null; then |
19437 | as_ln_s=ln |
19438 | else |
19439 | as_ln_s='cp -p' |
19440 | fi |
19441 | rm -f conf$$ conf$$.exe conf$$.file |
19442 | |
19443 | if mkdir -p . 2>/dev/null; then |
19444 | as_mkdir_p=: |
19445 | else |
19446 | test -d ./-p && rmdir ./-p |
19447 | as_mkdir_p=false |
19448 | fi |
19449 | |
19450 | as_executable_p="test -f" |
19451 | |
19452 | # Sed expression to map a string onto a valid CPP name. |
19453 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
19454 | |
19455 | # Sed expression to map a string onto a valid variable name. |
19456 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
19457 | |
19458 | |
19459 | # IFS |
19460 | # We need space, tab and new line, in precisely that order. |
19461 | as_nl=' |
19462 | ' |
19463 | IFS=" $as_nl" |
19464 | |
19465 | # CDPATH. |
19466 | $as_unset CDPATH |
19467 | |
19468 | exec 6>&1 |
19469 | |
19470 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
19471 | # report actual input values of CONFIG_FILES etc. instead of their |
19472 | # values after options handling. Logging --version etc. is OK. |
19473 | exec 5>>config.log |
19474 | { |
19475 | echo |
19476 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
19477 | ## Running $as_me. ## |
19478 | _ASBOX |
19479 | } >&5 |
19480 | cat >&5 <<_CSEOF |
19481 | |
19482 | This file was extended by numlib $as_me 0.10, which was |
19483 | generated by GNU Autoconf 2.59. Invocation command line was |
19484 | |
19485 | CONFIG_FILES = $CONFIG_FILES |
19486 | CONFIG_HEADERS = $CONFIG_HEADERS |
19487 | CONFIG_LINKS = $CONFIG_LINKS |
19488 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
19489 | $ $0 $@ |
19490 | |
19491 | _CSEOF |
19492 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
19493 | echo >&5 |
19494 | _ACEOF |
19495 | |
19496 | # Files that config.status was made for. |
19497 | if test -n "$ac_config_files"; then |
19498 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
19499 | fi |
19500 | |
19501 | if test -n "$ac_config_headers"; then |
19502 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
19503 | fi |
19504 | |
19505 | if test -n "$ac_config_links"; then |
19506 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
19507 | fi |
19508 | |
19509 | if test -n "$ac_config_commands"; then |
19510 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
19511 | fi |
19512 | |
19513 | cat >>$CONFIG_STATUS <<\_ACEOF |
19514 | |
19515 | ac_cs_usage="\ |
19516 | \`$as_me' instantiates files from templates according to the |
19517 | current configuration. |
19518 | |
19519 | Usage: $0 [OPTIONS] [FILE]... |
19520 | |
19521 | -h, --help print this help, then exit |
19522 | -V, --version print version number, then exit |
19523 | -q, --quiet do not print progress messages |
19524 | -d, --debug don't remove temporary files |
19525 | --recheck update $as_me by reconfiguring in the same conditions |
19526 | --file=FILE[:TEMPLATE] |
19527 | instantiate the configuration file FILE |
19528 | --header=FILE[:TEMPLATE] |
19529 | instantiate the configuration header FILE |
19530 | |
19531 | Configuration files: |
19532 | $config_files |
19533 | |
19534 | Configuration headers: |
19535 | $config_headers |
19536 | |
19537 | Configuration commands: |
19538 | $config_commands |
19539 | |
19540 | Report bugs to <bug-autoconf@gnu.org>." |
19541 | _ACEOF |
19542 | |
19543 | cat >>$CONFIG_STATUS <<_ACEOF |
19544 | ac_cs_version="\\ |
19545 | numlib config.status 0.10 |
19546 | configured by $0, generated by GNU Autoconf 2.59, |
19547 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
19548 | |
19549 | Copyright (C) 2003 Free Software Foundation, Inc. |
19550 | This config.status script is free software; the Free Software Foundation |
19551 | gives unlimited permission to copy, distribute and modify it." |
19552 | srcdir=$srcdir |
19553 | INSTALL="$INSTALL" |
19554 | _ACEOF |
19555 | |
19556 | cat >>$CONFIG_STATUS <<\_ACEOF |
19557 | # If no file are specified by the user, then we need to provide default |
19558 | # value. By we need to know if files were specified by the user. |
19559 | ac_need_defaults=: |
19560 | while test $# != 0 |
19561 | do |
19562 | case $1 in |
19563 | --*=*) |
19564 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
19565 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
19566 | ac_shift=: |
19567 | ;; |
19568 | -*) |
19569 | ac_option=$1 |
19570 | ac_optarg=$2 |
19571 | ac_shift=shift |
19572 | ;; |
19573 | *) # This is not an option, so the user has probably given explicit |
19574 | # arguments. |
19575 | ac_option=$1 |
19576 | ac_need_defaults=false;; |
19577 | esac |
19578 | |
19579 | case $ac_option in |
19580 | # Handling of the options. |
19581 | _ACEOF |
19582 | cat >>$CONFIG_STATUS <<\_ACEOF |
19583 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
19584 | ac_cs_recheck=: ;; |
19585 | --version | --vers* | -V ) |
19586 | echo "$ac_cs_version"; exit 0 ;; |
19587 | --he | --h) |
19588 | # Conflict between --help and --header |
19589 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
19590 | Try \`$0 --help' for more information." >&5 |
19591 | echo "$as_me: error: ambiguous option: $1 |
19592 | Try \`$0 --help' for more information." >&2;} |
19593 | { (exit 1); exit 1; }; };; |
19594 | --help | --hel | -h ) |
19595 | echo "$ac_cs_usage"; exit 0 ;; |
19596 | --debug | --d* | -d ) |
19597 | debug=: ;; |
19598 | --file | --fil | --fi | --f ) |
19599 | $ac_shift |
19600 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
19601 | ac_need_defaults=false;; |
19602 | --header | --heade | --head | --hea ) |
19603 | $ac_shift |
19604 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
19605 | ac_need_defaults=false;; |
19606 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
19607 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
19608 | ac_cs_silent=: ;; |
19609 | |
19610 | # This is an error. |
19611 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
19612 | Try \`$0 --help' for more information." >&5 |
19613 | echo "$as_me: error: unrecognized option: $1 |
19614 | Try \`$0 --help' for more information." >&2;} |
19615 | { (exit 1); exit 1; }; } ;; |
19616 | |
19617 | *) ac_config_targets="$ac_config_targets $1" ;; |
19618 | |
19619 | esac |
19620 | shift |
19621 | done |
19622 | |
19623 | ac_configure_extra_args= |
19624 | |
19625 | if $ac_cs_silent; then |
19626 | exec 6>/dev/null |
19627 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
19628 | fi |
19629 | |
19630 | _ACEOF |
19631 | cat >>$CONFIG_STATUS <<_ACEOF |
19632 | if \$ac_cs_recheck; then |
19633 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
19634 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
19635 | fi |
19636 | |
19637 | _ACEOF |
19638 | |
19639 | cat >>$CONFIG_STATUS <<_ACEOF |
19640 | # |
19641 | # INIT-COMMANDS section. |
19642 | # |
19643 | |
19644 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
19645 | |
19646 | _ACEOF |
19647 | |
19648 | |
19649 | |
19650 | cat >>$CONFIG_STATUS <<\_ACEOF |
19651 | for ac_config_target in $ac_config_targets |
19652 | do |
19653 | case "$ac_config_target" in |
19654 | # Handling of arguments. |
19655 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
19656 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
19657 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
19658 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
19659 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
19660 | { (exit 1); exit 1; }; };; |
19661 | esac |
19662 | done |
19663 | |
19664 | # If the user did not use the arguments to specify the items to instantiate, |
19665 | # then the envvar interface is used. Set only those that are not. |
19666 | # We use the long form for the default assignment because of an extremely |
19667 | # bizarre bug on SunOS 4.1.3. |
19668 | if $ac_need_defaults; then |
19669 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
19670 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
19671 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
19672 | fi |
19673 | |
19674 | # Have a temporary directory for convenience. Make it in the build tree |
19675 | # simply because there is no reason to put it here, and in addition, |
19676 | # creating and moving files from /tmp can sometimes cause problems. |
19677 | # Create a temporary directory, and hook for its removal unless debugging. |
19678 | $debug || |
19679 | { |
19680 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
19681 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
19682 | } |
19683 | |
19684 | # Create a (secure) tmp directory for tmp files. |
19685 | |
19686 | { |
19687 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
19688 | test -n "$tmp" && test -d "$tmp" |
19689 | } || |
19690 | { |
19691 | tmp=./confstat$$-$RANDOM |
19692 | (umask 077 && mkdir $tmp) |
19693 | } || |
19694 | { |
19695 | echo "$me: cannot create a temporary directory in ." >&2 |
19696 | { (exit 1); exit 1; } |
19697 | } |
19698 | |
19699 | _ACEOF |
19700 | |
19701 | cat >>$CONFIG_STATUS <<_ACEOF |
19702 | |
19703 | # |
19704 | # CONFIG_FILES section. |
19705 | # |
19706 | |
19707 | # No need to generate the scripts if there are no CONFIG_FILES. |
19708 | # This happens for instance when ./config.status config.h |
19709 | if test -n "\$CONFIG_FILES"; then |
19710 | # Protect against being on the right side of a sed subst in config.status. |
19711 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
19712 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
19713 | s,@SHELL@,$SHELL,;t t |
19714 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
19715 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
19716 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
19717 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
19718 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
19719 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
19720 | s,@exec_prefix@,$exec_prefix,;t t |
19721 | s,@prefix@,$prefix,;t t |
19722 | s,@program_transform_name@,$program_transform_name,;t t |
19723 | s,@bindir@,$bindir,;t t |
19724 | s,@sbindir@,$sbindir,;t t |
19725 | s,@libexecdir@,$libexecdir,;t t |
19726 | s,@datadir@,$datadir,;t t |
19727 | s,@sysconfdir@,$sysconfdir,;t t |
19728 | s,@sharedstatedir@,$sharedstatedir,;t t |
19729 | s,@localstatedir@,$localstatedir,;t t |
19730 | s,@libdir@,$libdir,;t t |
19731 | s,@includedir@,$includedir,;t t |
19732 | s,@oldincludedir@,$oldincludedir,;t t |
19733 | s,@infodir@,$infodir,;t t |
19734 | s,@mandir@,$mandir,;t t |
19735 | s,@build_alias@,$build_alias,;t t |
19736 | s,@host_alias@,$host_alias,;t t |
19737 | s,@target_alias@,$target_alias,;t t |
19738 | s,@DEFS@,$DEFS,;t t |
19739 | s,@ECHO_C@,$ECHO_C,;t t |
19740 | s,@ECHO_N@,$ECHO_N,;t t |
19741 | s,@ECHO_T@,$ECHO_T,;t t |
19742 | s,@LIBS@,$LIBS,;t t |
19743 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
19744 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
19745 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
19746 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
19747 | s,@PACKAGE@,$PACKAGE,;t t |
19748 | s,@VERSION@,$VERSION,;t t |
19749 | s,@ACLOCAL@,$ACLOCAL,;t t |
19750 | s,@AUTOCONF@,$AUTOCONF,;t t |
19751 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
19752 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
19753 | s,@MAKEINFO@,$MAKEINFO,;t t |
19754 | s,@install_sh@,$install_sh,;t t |
19755 | s,@STRIP@,$STRIP,;t t |
19756 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
19757 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
19758 | s,@mkdir_p@,$mkdir_p,;t t |
19759 | s,@AWK@,$AWK,;t t |
19760 | s,@SET_MAKE@,$SET_MAKE,;t t |
19761 | s,@am__leading_dot@,$am__leading_dot,;t t |
19762 | s,@AMTAR@,$AMTAR,;t t |
19763 | s,@am__tar@,$am__tar,;t t |
19764 | s,@am__untar@,$am__untar,;t t |
19765 | s,@CC@,$CC,;t t |
19766 | s,@CFLAGS@,$CFLAGS,;t t |
19767 | s,@LDFLAGS@,$LDFLAGS,;t t |
19768 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
19769 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
19770 | s,@EXEEXT@,$EXEEXT,;t t |
19771 | s,@OBJEXT@,$OBJEXT,;t t |
19772 | s,@DEPDIR@,$DEPDIR,;t t |
19773 | s,@am__include@,$am__include,;t t |
19774 | s,@am__quote@,$am__quote,;t t |
19775 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
19776 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
19777 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
19778 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
19779 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
19780 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
19781 | s,@LN_S@,$LN_S,;t t |
19782 | s,@build@,$build,;t t |
19783 | s,@build_cpu@,$build_cpu,;t t |
19784 | s,@build_vendor@,$build_vendor,;t t |
19785 | s,@build_os@,$build_os,;t t |
19786 | s,@host@,$host,;t t |
19787 | s,@host_cpu@,$host_cpu,;t t |
19788 | s,@host_vendor@,$host_vendor,;t t |
19789 | s,@host_os@,$host_os,;t t |
19790 | s,@SED@,$SED,;t t |
19791 | s,@EGREP@,$EGREP,;t t |
19792 | s,@ECHO@,$ECHO,;t t |
19793 | s,@AR@,$AR,;t t |
19794 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
19795 | s,@RANLIB@,$RANLIB,;t t |
19796 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
19797 | s,@CPP@,$CPP,;t t |
19798 | s,@CXX@,$CXX,;t t |
19799 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
19800 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
19801 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
19802 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
19803 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
19804 | s,@CXXCPP@,$CXXCPP,;t t |
19805 | s,@F77@,$F77,;t t |
19806 | s,@FFLAGS@,$FFLAGS,;t t |
19807 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
19808 | s,@LIBTOOL@,$LIBTOOL,;t t |
19809 | s,@LIBOBJS@,$LIBOBJS,;t t |
19810 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
19811 | CEOF |
19812 | |
19813 | _ACEOF |
19814 | |
19815 | cat >>$CONFIG_STATUS <<\_ACEOF |
19816 | # Split the substitutions into bite-sized pieces for seds with |
19817 | # small command number limits, like on Digital OSF/1 and HP-UX. |
19818 | ac_max_sed_lines=48 |
19819 | ac_sed_frag=1 # Number of current file. |
19820 | ac_beg=1 # First line for current file. |
19821 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
19822 | ac_more_lines=: |
19823 | ac_sed_cmds= |
19824 | while $ac_more_lines; do |
19825 | if test $ac_beg -gt 1; then |
19826 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
19827 | else |
19828 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
19829 | fi |
19830 | if test ! -s $tmp/subs.frag; then |
19831 | ac_more_lines=false |
19832 | else |
19833 | # The purpose of the label and of the branching condition is to |
19834 | # speed up the sed processing (if there are no `@' at all, there |
19835 | # is no need to browse any of the substitutions). |
19836 | # These are the two extra sed commands mentioned above. |
19837 | (echo ':t |
19838 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
19839 | if test -z "$ac_sed_cmds"; then |
19840 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
19841 | else |
19842 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
19843 | fi |
19844 | ac_sed_frag=`expr $ac_sed_frag + 1` |
19845 | ac_beg=$ac_end |
19846 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
19847 | fi |
19848 | done |
19849 | if test -z "$ac_sed_cmds"; then |
19850 | ac_sed_cmds=cat |
19851 | fi |
19852 | fi # test -n "$CONFIG_FILES" |
19853 | |
19854 | _ACEOF |
19855 | cat >>$CONFIG_STATUS <<\_ACEOF |
19856 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
19857 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
19858 | case $ac_file in |
19859 | - | *:- | *:-:* ) # input from stdin |
19860 | cat >$tmp/stdin |
19861 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
19862 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
19863 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
19864 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
19865 | * ) ac_file_in=$ac_file.in ;; |
19866 | esac |
19867 | |
19868 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
19869 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
19870 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19871 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
19872 | X"$ac_file" : 'X\(//\)$' \| \ |
19873 | X"$ac_file" : 'X\(/\)' \| \ |
19874 | . : '\(.\)' 2>/dev/null || |
19875 | echo X"$ac_file" | |
19876 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
19877 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
19878 | /^X\(\/\/\)$/{ s//\1/; q; } |
19879 | /^X\(\/\).*/{ s//\1/; q; } |
19880 | s/.*/./; q'` |
19881 | { if $as_mkdir_p; then |
19882 | mkdir -p "$ac_dir" |
19883 | else |
19884 | as_dir="$ac_dir" |
19885 | as_dirs= |
19886 | while test ! -d "$as_dir"; do |
19887 | as_dirs="$as_dir $as_dirs" |
19888 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
19889 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19890 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
19891 | X"$as_dir" : 'X\(//\)$' \| \ |
19892 | X"$as_dir" : 'X\(/\)' \| \ |
19893 | . : '\(.\)' 2>/dev/null || |
19894 | echo X"$as_dir" | |
19895 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
19896 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
19897 | /^X\(\/\/\)$/{ s//\1/; q; } |
19898 | /^X\(\/\).*/{ s//\1/; q; } |
19899 | s/.*/./; q'` |
19900 | done |
19901 | test ! -n "$as_dirs" || mkdir $as_dirs |
19902 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
19903 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
19904 | { (exit 1); exit 1; }; }; } |
19905 | |
19906 | ac_builddir=. |
19907 | |
19908 | if test "$ac_dir" != .; then |
19909 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
19910 | # A "../" for each directory in $ac_dir_suffix. |
19911 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
19912 | else |
19913 | ac_dir_suffix= ac_top_builddir= |
19914 | fi |
19915 | |
19916 | case $srcdir in |
19917 | .) # No --srcdir option. We are building in place. |
19918 | ac_srcdir=. |
19919 | if test -z "$ac_top_builddir"; then |
19920 | ac_top_srcdir=. |
19921 | else |
19922 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
19923 | fi ;; |
19924 | [\\/]* | ?:[\\/]* ) # Absolute path. |
19925 | ac_srcdir=$srcdir$ac_dir_suffix; |
19926 | ac_top_srcdir=$srcdir ;; |
19927 | *) # Relative path. |
19928 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
19929 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
19930 | esac |
19931 | |
19932 | # Do not use `cd foo && pwd` to compute absolute paths, because |
19933 | # the directories may not exist. |
19934 | case `pwd` in |
19935 | .) ac_abs_builddir="$ac_dir";; |
19936 | *) |
19937 | case "$ac_dir" in |
19938 | .) ac_abs_builddir=`pwd`;; |
19939 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
19940 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
19941 | esac;; |
19942 | esac |
19943 | case $ac_abs_builddir in |
19944 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
19945 | *) |
19946 | case ${ac_top_builddir}. in |
19947 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
19948 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
19949 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
19950 | esac;; |
19951 | esac |
19952 | case $ac_abs_builddir in |
19953 | .) ac_abs_srcdir=$ac_srcdir;; |
19954 | *) |
19955 | case $ac_srcdir in |
19956 | .) ac_abs_srcdir=$ac_abs_builddir;; |
19957 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
19958 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
19959 | esac;; |
19960 | esac |
19961 | case $ac_abs_builddir in |
19962 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
19963 | *) |
19964 | case $ac_top_srcdir in |
19965 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
19966 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
19967 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
19968 | esac;; |
19969 | esac |
19970 | |
19971 | |
19972 | case $INSTALL in |
19973 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
19974 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
19975 | esac |
19976 | |
19977 | if test x"$ac_file" != x-; then |
19978 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
19979 | echo "$as_me: creating $ac_file" >&6;} |
19980 | rm -f "$ac_file" |
19981 | fi |
19982 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
19983 | # use $as_me), people would be surprised to read: |
19984 | # /* config.h. Generated by config.status. */ |
19985 | if test x"$ac_file" = x-; then |
19986 | configure_input= |
19987 | else |
19988 | configure_input="$ac_file. " |
19989 | fi |
19990 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
19991 | sed 's,.*/,,'` by configure." |
19992 | |
19993 | # First look for the input files in the build tree, otherwise in the |
19994 | # src tree. |
19995 | ac_file_inputs=`IFS=: |
19996 | for f in $ac_file_in; do |
19997 | case $f in |
19998 | -) echo $tmp/stdin ;; |
19999 | [\\/$]*) |
20000 | # Absolute (can't be DOS-style, as IFS=:) |
20001 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
20002 | echo "$as_me: error: cannot find input file: $f" >&2;} |
20003 | { (exit 1); exit 1; }; } |
20004 | echo "$f";; |
20005 | *) # Relative |
20006 | if test -f "$f"; then |
20007 | # Build tree |
20008 | echo "$f" |
20009 | elif test -f "$srcdir/$f"; then |
20010 | # Source tree |
20011 | echo "$srcdir/$f" |
20012 | else |
20013 | # /dev/null tree |
20014 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
20015 | echo "$as_me: error: cannot find input file: $f" >&2;} |
20016 | { (exit 1); exit 1; }; } |
20017 | fi;; |
20018 | esac |
20019 | done` || { (exit 1); exit 1; } |
20020 | _ACEOF |
20021 | cat >>$CONFIG_STATUS <<_ACEOF |
20022 | sed "$ac_vpsub |
20023 | $extrasub |
20024 | _ACEOF |
20025 | cat >>$CONFIG_STATUS <<\_ACEOF |
20026 | :t |
20027 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
20028 | s,@configure_input@,$configure_input,;t t |
20029 | s,@srcdir@,$ac_srcdir,;t t |
20030 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
20031 | s,@top_srcdir@,$ac_top_srcdir,;t t |
20032 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
20033 | s,@builddir@,$ac_builddir,;t t |
20034 | s,@abs_builddir@,$ac_abs_builddir,;t t |
20035 | s,@top_builddir@,$ac_top_builddir,;t t |
20036 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
20037 | s,@INSTALL@,$ac_INSTALL,;t t |
20038 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
20039 | rm -f $tmp/stdin |
20040 | if test x"$ac_file" != x-; then |
20041 | mv $tmp/out $ac_file |
20042 | else |
20043 | cat $tmp/out |
20044 | rm -f $tmp/out |
20045 | fi |
20046 | |
20047 | done |
20048 | _ACEOF |
20049 | cat >>$CONFIG_STATUS <<\_ACEOF |
20050 | |
20051 | # |
20052 | # CONFIG_HEADER section. |
20053 | # |
20054 | |
20055 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
20056 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
20057 | # |
20058 | # ac_d sets the value in "#define NAME VALUE" lines. |
20059 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
20060 | ac_dB='[ ].*$,\1#\2' |
20061 | ac_dC=' ' |
20062 | ac_dD=',;t' |
20063 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
20064 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
20065 | ac_uB='$,\1#\2define\3' |
20066 | ac_uC=' ' |
20067 | ac_uD=',;t' |
20068 | |
20069 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
20070 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
20071 | case $ac_file in |
20072 | - | *:- | *:-:* ) # input from stdin |
20073 | cat >$tmp/stdin |
20074 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
20075 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
20076 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
20077 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
20078 | * ) ac_file_in=$ac_file.in ;; |
20079 | esac |
20080 | |
20081 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
20082 | echo "$as_me: creating $ac_file" >&6;} |
20083 | |
20084 | # First look for the input files in the build tree, otherwise in the |
20085 | # src tree. |
20086 | ac_file_inputs=`IFS=: |
20087 | for f in $ac_file_in; do |
20088 | case $f in |
20089 | -) echo $tmp/stdin ;; |
20090 | [\\/$]*) |
20091 | # Absolute (can't be DOS-style, as IFS=:) |
20092 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
20093 | echo "$as_me: error: cannot find input file: $f" >&2;} |
20094 | { (exit 1); exit 1; }; } |
20095 | # Do quote $f, to prevent DOS paths from being IFS'd. |
20096 | echo "$f";; |
20097 | *) # Relative |
20098 | if test -f "$f"; then |
20099 | # Build tree |
20100 | echo "$f" |
20101 | elif test -f "$srcdir/$f"; then |
20102 | # Source tree |
20103 | echo "$srcdir/$f" |
20104 | else |
20105 | # /dev/null tree |
20106 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
20107 | echo "$as_me: error: cannot find input file: $f" >&2;} |
20108 | { (exit 1); exit 1; }; } |
20109 | fi;; |
20110 | esac |
20111 | done` || { (exit 1); exit 1; } |
20112 | # Remove the trailing spaces. |
20113 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
20114 | |
20115 | _ACEOF |
20116 | |
20117 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
20118 | # `conftest.undefs', that substitutes the proper values into |
20119 | # config.h.in to produce config.h. The first handles `#define' |
20120 | # templates, and the second `#undef' templates. |
20121 | # And first: Protect against being on the right side of a sed subst in |
20122 | # config.status. Protect against being in an unquoted here document |
20123 | # in config.status. |
20124 | rm -f conftest.defines conftest.undefs |
20125 | # Using a here document instead of a string reduces the quoting nightmare. |
20126 | # Putting comments in sed scripts is not portable. |
20127 | # |
20128 | # `end' is used to avoid that the second main sed command (meant for |
20129 | # 0-ary CPP macros) applies to n-ary macro definitions. |
20130 | # See the Autoconf documentation for `clear'. |
20131 | cat >confdef2sed.sed <<\_ACEOF |
20132 | s/[\\&,]/\\&/g |
20133 | s,[\\$`],\\&,g |
20134 | t clear |
20135 | : clear |
20136 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
20137 | t end |
20138 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
20139 | : end |
20140 | _ACEOF |
20141 | # If some macros were called several times there might be several times |
20142 | # the same #defines, which is useless. Nevertheless, we may not want to |
20143 | # sort them, since we want the *last* AC-DEFINE to be honored. |
20144 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
20145 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
20146 | rm -f confdef2sed.sed |
20147 | |
20148 | # This sed command replaces #undef with comments. This is necessary, for |
20149 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
20150 | # on some systems where configure will not decide to define it. |
20151 | cat >>conftest.undefs <<\_ACEOF |
20152 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
20153 | _ACEOF |
20154 | |
20155 | # Break up conftest.defines because some shells have a limit on the size |
20156 | # of here documents, and old seds have small limits too (100 cmds). |
20157 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
20158 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
20159 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
20160 | echo ' :' >>$CONFIG_STATUS |
20161 | rm -f conftest.tail |
20162 | while grep . conftest.defines >/dev/null |
20163 | do |
20164 | # Write a limited-size here document to $tmp/defines.sed. |
20165 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
20166 | # Speed up: don't consider the non `#define' lines. |
20167 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
20168 | # Work around the forget-to-reset-the-flag bug. |
20169 | echo 't clr' >>$CONFIG_STATUS |
20170 | echo ': clr' >>$CONFIG_STATUS |
20171 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
20172 | echo 'CEOF |
20173 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
20174 | rm -f $tmp/in |
20175 | mv $tmp/out $tmp/in |
20176 | ' >>$CONFIG_STATUS |
20177 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
20178 | rm -f conftest.defines |
20179 | mv conftest.tail conftest.defines |
20180 | done |
20181 | rm -f conftest.defines |
20182 | echo ' fi # grep' >>$CONFIG_STATUS |
20183 | echo >>$CONFIG_STATUS |
20184 | |
20185 | # Break up conftest.undefs because some shells have a limit on the size |
20186 | # of here documents, and old seds have small limits too (100 cmds). |
20187 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
20188 | rm -f conftest.tail |
20189 | while grep . conftest.undefs >/dev/null |
20190 | do |
20191 | # Write a limited-size here document to $tmp/undefs.sed. |
20192 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
20193 | # Speed up: don't consider the non `#undef' |
20194 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
20195 | # Work around the forget-to-reset-the-flag bug. |
20196 | echo 't clr' >>$CONFIG_STATUS |
20197 | echo ': clr' >>$CONFIG_STATUS |
20198 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
20199 | echo 'CEOF |
20200 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
20201 | rm -f $tmp/in |
20202 | mv $tmp/out $tmp/in |
20203 | ' >>$CONFIG_STATUS |
20204 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
20205 | rm -f conftest.undefs |
20206 | mv conftest.tail conftest.undefs |
20207 | done |
20208 | rm -f conftest.undefs |
20209 | |
20210 | cat >>$CONFIG_STATUS <<\_ACEOF |
20211 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
20212 | # use $as_me), people would be surprised to read: |
20213 | # /* config.h. Generated by config.status. */ |
20214 | if test x"$ac_file" = x-; then |
20215 | echo "/* Generated by configure. */" >$tmp/config.h |
20216 | else |
20217 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
20218 | fi |
20219 | cat $tmp/in >>$tmp/config.h |
20220 | rm -f $tmp/in |
20221 | if test x"$ac_file" != x-; then |
20222 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
20223 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
20224 | echo "$as_me: $ac_file is unchanged" >&6;} |
20225 | else |
20226 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
20227 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20228 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
20229 | X"$ac_file" : 'X\(//\)$' \| \ |
20230 | X"$ac_file" : 'X\(/\)' \| \ |
20231 | . : '\(.\)' 2>/dev/null || |
20232 | echo X"$ac_file" | |
20233 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20234 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20235 | /^X\(\/\/\)$/{ s//\1/; q; } |
20236 | /^X\(\/\).*/{ s//\1/; q; } |
20237 | s/.*/./; q'` |
20238 | { if $as_mkdir_p; then |
20239 | mkdir -p "$ac_dir" |
20240 | else |
20241 | as_dir="$ac_dir" |
20242 | as_dirs= |
20243 | while test ! -d "$as_dir"; do |
20244 | as_dirs="$as_dir $as_dirs" |
20245 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
20246 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20247 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
20248 | X"$as_dir" : 'X\(//\)$' \| \ |
20249 | X"$as_dir" : 'X\(/\)' \| \ |
20250 | . : '\(.\)' 2>/dev/null || |
20251 | echo X"$as_dir" | |
20252 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20253 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20254 | /^X\(\/\/\)$/{ s//\1/; q; } |
20255 | /^X\(\/\).*/{ s//\1/; q; } |
20256 | s/.*/./; q'` |
20257 | done |
20258 | test ! -n "$as_dirs" || mkdir $as_dirs |
20259 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
20260 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
20261 | { (exit 1); exit 1; }; }; } |
20262 | |
20263 | rm -f $ac_file |
20264 | mv $tmp/config.h $ac_file |
20265 | fi |
20266 | else |
20267 | cat $tmp/config.h |
20268 | rm -f $tmp/config.h |
20269 | fi |
20270 | # Compute $ac_file's index in $config_headers. |
20271 | _am_stamp_count=1 |
20272 | for _am_header in $config_headers :; do |
20273 | case $_am_header in |
20274 | $ac_file | $ac_file:* ) |
20275 | break ;; |
20276 | * ) |
20277 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
20278 | esac |
20279 | done |
20280 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
20281 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20282 | X$ac_file : 'X\(//\)[^/]' \| \ |
20283 | X$ac_file : 'X\(//\)$' \| \ |
20284 | X$ac_file : 'X\(/\)' \| \ |
20285 | . : '\(.\)' 2>/dev/null || |
20286 | echo X$ac_file | |
20287 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20288 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20289 | /^X\(\/\/\)$/{ s//\1/; q; } |
20290 | /^X\(\/\).*/{ s//\1/; q; } |
20291 | s/.*/./; q'`/stamp-h$_am_stamp_count |
20292 | done |
20293 | _ACEOF |
20294 | cat >>$CONFIG_STATUS <<\_ACEOF |
20295 | |
20296 | # |
20297 | # CONFIG_COMMANDS section. |
20298 | # |
20299 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
20300 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
20301 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
20302 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
20303 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20304 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
20305 | X"$ac_dest" : 'X\(//\)$' \| \ |
20306 | X"$ac_dest" : 'X\(/\)' \| \ |
20307 | . : '\(.\)' 2>/dev/null || |
20308 | echo X"$ac_dest" | |
20309 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20310 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20311 | /^X\(\/\/\)$/{ s//\1/; q; } |
20312 | /^X\(\/\).*/{ s//\1/; q; } |
20313 | s/.*/./; q'` |
20314 | { if $as_mkdir_p; then |
20315 | mkdir -p "$ac_dir" |
20316 | else |
20317 | as_dir="$ac_dir" |
20318 | as_dirs= |
20319 | while test ! -d "$as_dir"; do |
20320 | as_dirs="$as_dir $as_dirs" |
20321 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
20322 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20323 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
20324 | X"$as_dir" : 'X\(//\)$' \| \ |
20325 | X"$as_dir" : 'X\(/\)' \| \ |
20326 | . : '\(.\)' 2>/dev/null || |
20327 | echo X"$as_dir" | |
20328 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20329 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20330 | /^X\(\/\/\)$/{ s//\1/; q; } |
20331 | /^X\(\/\).*/{ s//\1/; q; } |
20332 | s/.*/./; q'` |
20333 | done |
20334 | test ! -n "$as_dirs" || mkdir $as_dirs |
20335 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
20336 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
20337 | { (exit 1); exit 1; }; }; } |
20338 | |
20339 | ac_builddir=. |
20340 | |
20341 | if test "$ac_dir" != .; then |
20342 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
20343 | # A "../" for each directory in $ac_dir_suffix. |
20344 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
20345 | else |
20346 | ac_dir_suffix= ac_top_builddir= |
20347 | fi |
20348 | |
20349 | case $srcdir in |
20350 | .) # No --srcdir option. We are building in place. |
20351 | ac_srcdir=. |
20352 | if test -z "$ac_top_builddir"; then |
20353 | ac_top_srcdir=. |
20354 | else |
20355 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
20356 | fi ;; |
20357 | [\\/]* | ?:[\\/]* ) # Absolute path. |
20358 | ac_srcdir=$srcdir$ac_dir_suffix; |
20359 | ac_top_srcdir=$srcdir ;; |
20360 | *) # Relative path. |
20361 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
20362 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
20363 | esac |
20364 | |
20365 | # Do not use `cd foo && pwd` to compute absolute paths, because |
20366 | # the directories may not exist. |
20367 | case `pwd` in |
20368 | .) ac_abs_builddir="$ac_dir";; |
20369 | *) |
20370 | case "$ac_dir" in |
20371 | .) ac_abs_builddir=`pwd`;; |
20372 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
20373 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
20374 | esac;; |
20375 | esac |
20376 | case $ac_abs_builddir in |
20377 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
20378 | *) |
20379 | case ${ac_top_builddir}. in |
20380 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
20381 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
20382 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
20383 | esac;; |
20384 | esac |
20385 | case $ac_abs_builddir in |
20386 | .) ac_abs_srcdir=$ac_srcdir;; |
20387 | *) |
20388 | case $ac_srcdir in |
20389 | .) ac_abs_srcdir=$ac_abs_builddir;; |
20390 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
20391 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
20392 | esac;; |
20393 | esac |
20394 | case $ac_abs_builddir in |
20395 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
20396 | *) |
20397 | case $ac_top_srcdir in |
20398 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
20399 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
20400 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
20401 | esac;; |
20402 | esac |
20403 | |
20404 | |
20405 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
20406 | echo "$as_me: executing $ac_dest commands" >&6;} |
20407 | case $ac_dest in |
20408 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
20409 | # Strip MF so we end up with the name of the file. |
20410 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
20411 | # Check whether this is an Automake generated Makefile or not. |
20412 | # We used to match only the files named `Makefile.in', but |
20413 | # some people rename them; so instead we look at the file content. |
20414 | # Grep'ing the first line is not enough: some people post-process |
20415 | # each Makefile.in and add a new line on top of each file to say so. |
20416 | # So let's grep whole file. |
20417 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
20418 | dirpart=`(dirname "$mf") 2>/dev/null || |
20419 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20420 | X"$mf" : 'X\(//\)[^/]' \| \ |
20421 | X"$mf" : 'X\(//\)$' \| \ |
20422 | X"$mf" : 'X\(/\)' \| \ |
20423 | . : '\(.\)' 2>/dev/null || |
20424 | echo X"$mf" | |
20425 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20426 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20427 | /^X\(\/\/\)$/{ s//\1/; q; } |
20428 | /^X\(\/\).*/{ s//\1/; q; } |
20429 | s/.*/./; q'` |
20430 | else |
20431 | continue |
20432 | fi |
20433 | # Extract the definition of DEPDIR, am__include, and am__quote |
20434 | # from the Makefile without running `make'. |
20435 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
20436 | test -z "$DEPDIR" && continue |
20437 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
20438 | test -z "am__include" && continue |
20439 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
20440 | # When using ansi2knr, U may be empty or an underscore; expand it |
20441 | U=`sed -n 's/^U = //p' < "$mf"` |
20442 | # Find all dependency output files, they are included files with |
20443 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
20444 | # simplest approach to changing $(DEPDIR) to its actual value in the |
20445 | # expansion. |
20446 | for file in `sed -n " |
20447 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
20448 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
20449 | # Make sure the directory exists. |
20450 | test -f "$dirpart/$file" && continue |
20451 | fdir=`(dirname "$file") 2>/dev/null || |
20452 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20453 | X"$file" : 'X\(//\)[^/]' \| \ |
20454 | X"$file" : 'X\(//\)$' \| \ |
20455 | X"$file" : 'X\(/\)' \| \ |
20456 | . : '\(.\)' 2>/dev/null || |
20457 | echo X"$file" | |
20458 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20459 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20460 | /^X\(\/\/\)$/{ s//\1/; q; } |
20461 | /^X\(\/\).*/{ s//\1/; q; } |
20462 | s/.*/./; q'` |
20463 | { if $as_mkdir_p; then |
20464 | mkdir -p $dirpart/$fdir |
20465 | else |
20466 | as_dir=$dirpart/$fdir |
20467 | as_dirs= |
20468 | while test ! -d "$as_dir"; do |
20469 | as_dirs="$as_dir $as_dirs" |
20470 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
20471 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20472 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
20473 | X"$as_dir" : 'X\(//\)$' \| \ |
20474 | X"$as_dir" : 'X\(/\)' \| \ |
20475 | . : '\(.\)' 2>/dev/null || |
20476 | echo X"$as_dir" | |
20477 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20478 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20479 | /^X\(\/\/\)$/{ s//\1/; q; } |
20480 | /^X\(\/\).*/{ s//\1/; q; } |
20481 | s/.*/./; q'` |
20482 | done |
20483 | test ! -n "$as_dirs" || mkdir $as_dirs |
20484 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
20485 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
20486 | { (exit 1); exit 1; }; }; } |
20487 | |
20488 | # echo "creating $dirpart/$file" |
20489 | echo '# dummy' > "$dirpart/$file" |
20490 | done |
20491 | done |
20492 | ;; |
20493 | esac |
20494 | done |
20495 | _ACEOF |
20496 | |
20497 | cat >>$CONFIG_STATUS <<\_ACEOF |
20498 | |
20499 | { (exit 0); exit 0; } |
20500 | _ACEOF |
20501 | chmod +x $CONFIG_STATUS |
20502 | ac_clean_files=$ac_clean_files_save |
20503 | |
20504 | |
20505 | # configure is writing to config.log, and then calls config.status. |
20506 | # config.status does its own redirection, appending to config.log. |
20507 | # Unfortunately, on DOS this fails, as config.log is still kept open |
20508 | # by configure, so config.status won't be able to write to it; its |
20509 | # output is simply discarded. So we exec the FD to /dev/null, |
20510 | # effectively closing config.log, so it can be properly (re)opened and |
20511 | # appended to by config.status. When coming back to configure, we |
20512 | # need to make the FD available again. |
20513 | if test "$no_create" != yes; then |
20514 | ac_cs_success=: |
20515 | ac_config_status_args= |
20516 | test "$silent" = yes && |
20517 | ac_config_status_args="$ac_config_status_args --quiet" |
20518 | exec 5>/dev/null |
20519 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
20520 | exec 5>>config.log |
20521 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
20522 | # would make configure fail if this is the last instruction. |
20523 | $ac_cs_success || { (exit 1); exit 1; } |
20524 | fi |
20525 | |