d9898ee8 |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
3 | # Generated by GNU Autoconf 2.59 for courierlogger 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='courierlogger' |
425 | PACKAGE_TARNAME='courierlogger' |
426 | PACKAGE_VERSION='0.10' |
427 | PACKAGE_STRING='courierlogger 0.10' |
428 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' |
429 | |
430 | ac_unique_file="logger.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 HAVE_SGML_TRUE HAVE_SGML_FALSE 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 courierlogger 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 courierlogger 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 | --with-syslog=XXX syslog facility [MAIL] |
1049 | |
1050 | Some influential environment variables: |
1051 | CC C compiler command |
1052 | CFLAGS C compiler flags |
1053 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1054 | nonstandard directory <lib dir> |
1055 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
1056 | headers in a nonstandard directory <include dir> |
1057 | CPP C preprocessor |
1058 | CXX C++ compiler command |
1059 | CXXFLAGS C++ compiler flags |
1060 | CXXCPP C++ preprocessor |
1061 | F77 Fortran 77 compiler command |
1062 | FFLAGS Fortran 77 compiler flags |
1063 | |
1064 | Use these variables to override the choices made by `configure' or to help |
1065 | it to find libraries and programs with nonstandard names/locations. |
1066 | |
1067 | Report bugs to <courier-users@lists.sourceforge.net>. |
1068 | _ACEOF |
1069 | fi |
1070 | |
1071 | if test "$ac_init_help" = "recursive"; then |
1072 | # If there are subdirs, report their specific --help. |
1073 | ac_popdir=`pwd` |
1074 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1075 | test -d $ac_dir || continue |
1076 | ac_builddir=. |
1077 | |
1078 | if test "$ac_dir" != .; then |
1079 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
1080 | # A "../" for each directory in $ac_dir_suffix. |
1081 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
1082 | else |
1083 | ac_dir_suffix= ac_top_builddir= |
1084 | fi |
1085 | |
1086 | case $srcdir in |
1087 | .) # No --srcdir option. We are building in place. |
1088 | ac_srcdir=. |
1089 | if test -z "$ac_top_builddir"; then |
1090 | ac_top_srcdir=. |
1091 | else |
1092 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
1093 | fi ;; |
1094 | [\\/]* | ?:[\\/]* ) # Absolute path. |
1095 | ac_srcdir=$srcdir$ac_dir_suffix; |
1096 | ac_top_srcdir=$srcdir ;; |
1097 | *) # Relative path. |
1098 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
1099 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
1100 | esac |
1101 | |
1102 | # Do not use `cd foo && pwd` to compute absolute paths, because |
1103 | # the directories may not exist. |
1104 | case `pwd` in |
1105 | .) ac_abs_builddir="$ac_dir";; |
1106 | *) |
1107 | case "$ac_dir" in |
1108 | .) ac_abs_builddir=`pwd`;; |
1109 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
1110 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
1111 | esac;; |
1112 | esac |
1113 | case $ac_abs_builddir in |
1114 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
1115 | *) |
1116 | case ${ac_top_builddir}. in |
1117 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
1118 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
1119 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
1120 | esac;; |
1121 | esac |
1122 | case $ac_abs_builddir in |
1123 | .) ac_abs_srcdir=$ac_srcdir;; |
1124 | *) |
1125 | case $ac_srcdir in |
1126 | .) ac_abs_srcdir=$ac_abs_builddir;; |
1127 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
1128 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
1129 | esac;; |
1130 | esac |
1131 | case $ac_abs_builddir in |
1132 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
1133 | *) |
1134 | case $ac_top_srcdir in |
1135 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
1136 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
1137 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
1138 | esac;; |
1139 | esac |
1140 | |
1141 | cd $ac_dir |
1142 | # Check for guested configure; otherwise get Cygnus style configure. |
1143 | if test -f $ac_srcdir/configure.gnu; then |
1144 | echo |
1145 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
1146 | elif test -f $ac_srcdir/configure; then |
1147 | echo |
1148 | $SHELL $ac_srcdir/configure --help=recursive |
1149 | elif test -f $ac_srcdir/configure.ac || |
1150 | test -f $ac_srcdir/configure.in; then |
1151 | echo |
1152 | $ac_configure --help |
1153 | else |
1154 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1155 | fi |
1156 | cd $ac_popdir |
1157 | done |
1158 | fi |
1159 | |
1160 | test -n "$ac_init_help" && exit 0 |
1161 | if $ac_init_version; then |
1162 | cat <<\_ACEOF |
1163 | courierlogger configure 0.10 |
1164 | generated by GNU Autoconf 2.59 |
1165 | |
1166 | Copyright (C) 2003 Free Software Foundation, Inc. |
1167 | This configure script is free software; the Free Software Foundation |
1168 | gives unlimited permission to copy, distribute and modify it. |
1169 | _ACEOF |
1170 | exit 0 |
1171 | fi |
1172 | exec 5>config.log |
1173 | cat >&5 <<_ACEOF |
1174 | This file contains any messages produced by compilers while |
1175 | running configure, to aid debugging if configure makes a mistake. |
1176 | |
1177 | It was created by courierlogger $as_me 0.10, which was |
1178 | generated by GNU Autoconf 2.59. Invocation command line was |
1179 | |
1180 | $ $0 $@ |
1181 | |
1182 | _ACEOF |
1183 | { |
1184 | cat <<_ASUNAME |
1185 | ## --------- ## |
1186 | ## Platform. ## |
1187 | ## --------- ## |
1188 | |
1189 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1190 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1191 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1192 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1193 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1194 | |
1195 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1196 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1197 | |
1198 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1199 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1200 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1201 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
1202 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1203 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1204 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1205 | |
1206 | _ASUNAME |
1207 | |
1208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1209 | for as_dir in $PATH |
1210 | do |
1211 | IFS=$as_save_IFS |
1212 | test -z "$as_dir" && as_dir=. |
1213 | echo "PATH: $as_dir" |
1214 | done |
1215 | |
1216 | } >&5 |
1217 | |
1218 | cat >&5 <<_ACEOF |
1219 | |
1220 | |
1221 | ## ----------- ## |
1222 | ## Core tests. ## |
1223 | ## ----------- ## |
1224 | |
1225 | _ACEOF |
1226 | |
1227 | |
1228 | # Keep a trace of the command line. |
1229 | # Strip out --no-create and --no-recursion so they do not pile up. |
1230 | # Strip out --silent because we don't want to record it for future runs. |
1231 | # Also quote any args containing shell meta-characters. |
1232 | # Make two passes to allow for proper duplicate-argument suppression. |
1233 | ac_configure_args= |
1234 | ac_configure_args0= |
1235 | ac_configure_args1= |
1236 | ac_sep= |
1237 | ac_must_keep_next=false |
1238 | for ac_pass in 1 2 |
1239 | do |
1240 | for ac_arg |
1241 | do |
1242 | case $ac_arg in |
1243 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1244 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1245 | | -silent | --silent | --silen | --sile | --sil) |
1246 | continue ;; |
1247 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1248 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1249 | esac |
1250 | case $ac_pass in |
1251 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1252 | 2) |
1253 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1254 | if test $ac_must_keep_next = true; then |
1255 | ac_must_keep_next=false # Got value, back to normal. |
1256 | else |
1257 | case $ac_arg in |
1258 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
1259 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1260 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1261 | | -with-* | --with-* | -without-* | --without-* | --x) |
1262 | case "$ac_configure_args0 " in |
1263 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1264 | esac |
1265 | ;; |
1266 | -* ) ac_must_keep_next=true ;; |
1267 | esac |
1268 | fi |
1269 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1270 | # Get rid of the leading space. |
1271 | ac_sep=" " |
1272 | ;; |
1273 | esac |
1274 | done |
1275 | done |
1276 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1277 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1278 | |
1279 | # When interrupted or exit'd, cleanup temporary files, and complete |
1280 | # config.log. We remove comments because anyway the quotes in there |
1281 | # would cause problems or look ugly. |
1282 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1283 | # such as our DU 5.0 friend, will then `close' the trap. |
1284 | trap 'exit_status=$? |
1285 | # Save into config.log some information that might help in debugging. |
1286 | { |
1287 | echo |
1288 | |
1289 | cat <<\_ASBOX |
1290 | ## ---------------- ## |
1291 | ## Cache variables. ## |
1292 | ## ---------------- ## |
1293 | _ASBOX |
1294 | echo |
1295 | # The following way of writing the cache mishandles newlines in values, |
1296 | { |
1297 | (set) 2>&1 | |
1298 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1299 | *ac_space=\ *) |
1300 | sed -n \ |
1301 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1302 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
1303 | ;; |
1304 | *) |
1305 | sed -n \ |
1306 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
1307 | ;; |
1308 | esac; |
1309 | } |
1310 | echo |
1311 | |
1312 | cat <<\_ASBOX |
1313 | ## ----------------- ## |
1314 | ## Output variables. ## |
1315 | ## ----------------- ## |
1316 | _ASBOX |
1317 | echo |
1318 | for ac_var in $ac_subst_vars |
1319 | do |
1320 | eval ac_val=$`echo $ac_var` |
1321 | echo "$ac_var='"'"'$ac_val'"'"'" |
1322 | done | sort |
1323 | echo |
1324 | |
1325 | if test -n "$ac_subst_files"; then |
1326 | cat <<\_ASBOX |
1327 | ## ------------- ## |
1328 | ## Output files. ## |
1329 | ## ------------- ## |
1330 | _ASBOX |
1331 | echo |
1332 | for ac_var in $ac_subst_files |
1333 | do |
1334 | eval ac_val=$`echo $ac_var` |
1335 | echo "$ac_var='"'"'$ac_val'"'"'" |
1336 | done | sort |
1337 | echo |
1338 | fi |
1339 | |
1340 | if test -s confdefs.h; then |
1341 | cat <<\_ASBOX |
1342 | ## ----------- ## |
1343 | ## confdefs.h. ## |
1344 | ## ----------- ## |
1345 | _ASBOX |
1346 | echo |
1347 | sed "/^$/d" confdefs.h | sort |
1348 | echo |
1349 | fi |
1350 | test "$ac_signal" != 0 && |
1351 | echo "$as_me: caught signal $ac_signal" |
1352 | echo "$as_me: exit $exit_status" |
1353 | } >&5 |
1354 | rm -f core *.core && |
1355 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1356 | exit $exit_status |
1357 | ' 0 |
1358 | for ac_signal in 1 2 13 15; do |
1359 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1360 | done |
1361 | ac_signal=0 |
1362 | |
1363 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
1364 | rm -rf conftest* confdefs.h |
1365 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
1366 | echo >confdefs.h |
1367 | |
1368 | # Predefined preprocessor variables. |
1369 | |
1370 | cat >>confdefs.h <<_ACEOF |
1371 | #define PACKAGE_NAME "$PACKAGE_NAME" |
1372 | _ACEOF |
1373 | |
1374 | |
1375 | cat >>confdefs.h <<_ACEOF |
1376 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1377 | _ACEOF |
1378 | |
1379 | |
1380 | cat >>confdefs.h <<_ACEOF |
1381 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
1382 | _ACEOF |
1383 | |
1384 | |
1385 | cat >>confdefs.h <<_ACEOF |
1386 | #define PACKAGE_STRING "$PACKAGE_STRING" |
1387 | _ACEOF |
1388 | |
1389 | |
1390 | cat >>confdefs.h <<_ACEOF |
1391 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1392 | _ACEOF |
1393 | |
1394 | |
1395 | # Let the site file select an alternate cache file if it wants to. |
1396 | # Prefer explicitly selected file to automatically selected ones. |
1397 | if test -z "$CONFIG_SITE"; then |
1398 | if test "x$prefix" != xNONE; then |
1399 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
1400 | else |
1401 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
1402 | fi |
1403 | fi |
1404 | for ac_site_file in $CONFIG_SITE; do |
1405 | if test -r "$ac_site_file"; then |
1406 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1407 | echo "$as_me: loading site script $ac_site_file" >&6;} |
1408 | sed 's/^/| /' "$ac_site_file" >&5 |
1409 | . "$ac_site_file" |
1410 | fi |
1411 | done |
1412 | |
1413 | if test -r "$cache_file"; then |
1414 | # Some versions of bash will fail to source /dev/null (special |
1415 | # files actually), so we avoid doing that. |
1416 | if test -f "$cache_file"; then |
1417 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1418 | echo "$as_me: loading cache $cache_file" >&6;} |
1419 | case $cache_file in |
1420 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
1421 | *) . ./$cache_file;; |
1422 | esac |
1423 | fi |
1424 | else |
1425 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1426 | echo "$as_me: creating cache $cache_file" >&6;} |
1427 | >$cache_file |
1428 | fi |
1429 | |
1430 | # Check that the precious variables saved in the cache have kept the same |
1431 | # value. |
1432 | ac_cache_corrupted=false |
1433 | for ac_var in `(set) 2>&1 | |
1434 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
1435 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1436 | eval ac_new_set=\$ac_env_${ac_var}_set |
1437 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1438 | eval ac_new_val="\$ac_env_${ac_var}_value" |
1439 | case $ac_old_set,$ac_new_set in |
1440 | set,) |
1441 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1442 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1443 | ac_cache_corrupted=: ;; |
1444 | ,set) |
1445 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1446 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1447 | ac_cache_corrupted=: ;; |
1448 | ,);; |
1449 | *) |
1450 | if test "x$ac_old_val" != "x$ac_new_val"; then |
1451 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1452 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1453 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1454 | echo "$as_me: former value: $ac_old_val" >&2;} |
1455 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1456 | echo "$as_me: current value: $ac_new_val" >&2;} |
1457 | ac_cache_corrupted=: |
1458 | fi;; |
1459 | esac |
1460 | # Pass precious variables to config.status. |
1461 | if test "$ac_new_set" = set; then |
1462 | case $ac_new_val in |
1463 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1464 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1465 | *) ac_arg=$ac_var=$ac_new_val ;; |
1466 | esac |
1467 | case " $ac_configure_args " in |
1468 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1469 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1470 | esac |
1471 | fi |
1472 | done |
1473 | if $ac_cache_corrupted; then |
1474 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1475 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1476 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1477 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1478 | { (exit 1); exit 1; }; } |
1479 | fi |
1480 | |
1481 | ac_ext=c |
1482 | ac_cpp='$CPP $CPPFLAGS' |
1483 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1484 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1485 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
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 | |
1514 | >confdefs.h # Kill PACKAGE_ macros. |
1515 | LPATH="$PATH:/usr/local/bin" |
1516 | |
1517 | am__api_version="1.9" |
1518 | ac_aux_dir= |
1519 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1520 | if test -f $ac_dir/install-sh; then |
1521 | ac_aux_dir=$ac_dir |
1522 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1523 | break |
1524 | elif test -f $ac_dir/install.sh; then |
1525 | ac_aux_dir=$ac_dir |
1526 | ac_install_sh="$ac_aux_dir/install.sh -c" |
1527 | break |
1528 | elif test -f $ac_dir/shtool; then |
1529 | ac_aux_dir=$ac_dir |
1530 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1531 | break |
1532 | fi |
1533 | done |
1534 | if test -z "$ac_aux_dir"; then |
1535 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1536 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1537 | { (exit 1); exit 1; }; } |
1538 | fi |
1539 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1540 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1541 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1542 | |
1543 | # Find a good install program. We prefer a C program (faster), |
1544 | # so one script is as good as another. But avoid the broken or |
1545 | # incompatible versions: |
1546 | # SysV /etc/install, /usr/sbin/install |
1547 | # SunOS /usr/etc/install |
1548 | # IRIX /sbin/install |
1549 | # AIX /bin/install |
1550 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
1551 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1552 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
1553 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
1554 | # OS/2's system install, which has a completely different semantic |
1555 | # ./install, which can be erroneously created by make from ./install.sh. |
1556 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1557 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
1558 | if test -z "$INSTALL"; then |
1559 | if test "${ac_cv_path_install+set}" = set; then |
1560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1561 | else |
1562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1563 | for as_dir in $PATH |
1564 | do |
1565 | IFS=$as_save_IFS |
1566 | test -z "$as_dir" && as_dir=. |
1567 | # Account for people who put trailing slashes in PATH elements. |
1568 | case $as_dir/ in |
1569 | ./ | .// | /cC/* | \ |
1570 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
1571 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
1572 | /usr/ucb/* ) ;; |
1573 | *) |
1574 | # OSF1 and SCO ODT 3.0 have their own names for install. |
1575 | # Don't use installbsd from OSF since it installs stuff as root |
1576 | # by default. |
1577 | for ac_prog in ginstall scoinst install; do |
1578 | for ac_exec_ext in '' $ac_executable_extensions; do |
1579 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
1580 | if test $ac_prog = install && |
1581 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
1582 | # AIX install. It has an incompatible calling convention. |
1583 | : |
1584 | elif test $ac_prog = install && |
1585 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
1586 | # program-specific install script used by HP pwplus--don't use. |
1587 | : |
1588 | else |
1589 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
1590 | break 3 |
1591 | fi |
1592 | fi |
1593 | done |
1594 | done |
1595 | ;; |
1596 | esac |
1597 | done |
1598 | |
1599 | |
1600 | fi |
1601 | if test "${ac_cv_path_install+set}" = set; then |
1602 | INSTALL=$ac_cv_path_install |
1603 | else |
1604 | # As a last resort, use the slow shell script. We don't cache a |
1605 | # path for INSTALL within a source directory, because that will |
1606 | # break other packages using the cache if that directory is |
1607 | # removed, or if the path is relative. |
1608 | INSTALL=$ac_install_sh |
1609 | fi |
1610 | fi |
1611 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
1612 | echo "${ECHO_T}$INSTALL" >&6 |
1613 | |
1614 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
1615 | # It thinks the first close brace ends the variable substitution. |
1616 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
1617 | |
1618 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
1619 | |
1620 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
1621 | |
1622 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
1623 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
1624 | # Just in case |
1625 | sleep 1 |
1626 | echo timestamp > conftest.file |
1627 | # Do `set' in a subshell so we don't clobber the current shell's |
1628 | # arguments. Must try -L first in case configure is actually a |
1629 | # symlink; some systems play weird games with the mod time of symlinks |
1630 | # (eg FreeBSD returns the mod time of the symlink's containing |
1631 | # directory). |
1632 | if ( |
1633 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
1634 | if test "$*" = "X"; then |
1635 | # -L didn't work. |
1636 | set X `ls -t $srcdir/configure conftest.file` |
1637 | fi |
1638 | rm -f conftest.file |
1639 | if test "$*" != "X $srcdir/configure conftest.file" \ |
1640 | && test "$*" != "X conftest.file $srcdir/configure"; then |
1641 | |
1642 | # If neither matched, then we have a broken ls. This can happen |
1643 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
1644 | # broken ls alias from the environment. This has actually |
1645 | # happened. Such a system could not be considered "sane". |
1646 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
1647 | alias in your environment" >&5 |
1648 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
1649 | alias in your environment" >&2;} |
1650 | { (exit 1); exit 1; }; } |
1651 | fi |
1652 | |
1653 | test "$2" = conftest.file |
1654 | ) |
1655 | then |
1656 | # Ok. |
1657 | : |
1658 | else |
1659 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
1660 | Check your system clock" >&5 |
1661 | echo "$as_me: error: newly created file is older than distributed files! |
1662 | Check your system clock" >&2;} |
1663 | { (exit 1); exit 1; }; } |
1664 | fi |
1665 | echo "$as_me:$LINENO: result: yes" >&5 |
1666 | echo "${ECHO_T}yes" >&6 |
1667 | test "$program_prefix" != NONE && |
1668 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
1669 | # Use a double $ so make ignores it. |
1670 | test "$program_suffix" != NONE && |
1671 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
1672 | # Double any \ or $. echo might interpret backslashes. |
1673 | # By default was `s,x,x', remove it if useless. |
1674 | cat <<\_ACEOF >conftest.sed |
1675 | s/[\\$]/&&/g;s/;s,x,x,$// |
1676 | _ACEOF |
1677 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
1678 | rm conftest.sed |
1679 | |
1680 | # expand $ac_aux_dir to an absolute path |
1681 | am_aux_dir=`cd $ac_aux_dir && pwd` |
1682 | |
1683 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
1684 | # Use eval to expand $SHELL |
1685 | if eval "$MISSING --run true"; then |
1686 | am_missing_run="$MISSING --run " |
1687 | else |
1688 | am_missing_run= |
1689 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
1690 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
1691 | fi |
1692 | |
1693 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
1694 | # We used to keeping the `.' as first argument, in order to |
1695 | # allow $(mkdir_p) to be used without argument. As in |
1696 | # $(mkdir_p) $(somedir) |
1697 | # where $(somedir) is conditionally defined. However this is wrong |
1698 | # for two reasons: |
1699 | # 1. if the package is installed by a user who cannot write `.' |
1700 | # make install will fail, |
1701 | # 2. the above comment should most certainly read |
1702 | # $(mkdir_p) $(DESTDIR)$(somedir) |
1703 | # so it does not work when $(somedir) is undefined and |
1704 | # $(DESTDIR) is not. |
1705 | # To support the latter case, we have to write |
1706 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
1707 | # so the `.' trick is pointless. |
1708 | mkdir_p='mkdir -p --' |
1709 | else |
1710 | # On NextStep and OpenStep, the `mkdir' command does not |
1711 | # recognize any option. It will interpret all options as |
1712 | # directories to create, and then abort because `.' already |
1713 | # exists. |
1714 | for d in ./-p ./--version; |
1715 | do |
1716 | test -d $d && rmdir $d |
1717 | done |
1718 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
1719 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
1720 | mkdir_p='$(mkinstalldirs)' |
1721 | else |
1722 | mkdir_p='$(install_sh) -d' |
1723 | fi |
1724 | fi |
1725 | |
1726 | for ac_prog in gawk mawk nawk awk |
1727 | do |
1728 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1729 | set dummy $ac_prog; ac_word=$2 |
1730 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1731 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1732 | if test "${ac_cv_prog_AWK+set}" = set; then |
1733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1734 | else |
1735 | if test -n "$AWK"; then |
1736 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
1737 | else |
1738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1739 | for as_dir in $PATH |
1740 | do |
1741 | IFS=$as_save_IFS |
1742 | test -z "$as_dir" && as_dir=. |
1743 | for ac_exec_ext in '' $ac_executable_extensions; do |
1744 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1745 | ac_cv_prog_AWK="$ac_prog" |
1746 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1747 | break 2 |
1748 | fi |
1749 | done |
1750 | done |
1751 | |
1752 | fi |
1753 | fi |
1754 | AWK=$ac_cv_prog_AWK |
1755 | if test -n "$AWK"; then |
1756 | echo "$as_me:$LINENO: result: $AWK" >&5 |
1757 | echo "${ECHO_T}$AWK" >&6 |
1758 | else |
1759 | echo "$as_me:$LINENO: result: no" >&5 |
1760 | echo "${ECHO_T}no" >&6 |
1761 | fi |
1762 | |
1763 | test -n "$AWK" && break |
1764 | done |
1765 | |
1766 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1767 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
1768 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
1769 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
1770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1771 | else |
1772 | cat >conftest.make <<\_ACEOF |
1773 | all: |
1774 | @echo 'ac_maketemp="$(MAKE)"' |
1775 | _ACEOF |
1776 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
1777 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
1778 | if test -n "$ac_maketemp"; then |
1779 | eval ac_cv_prog_make_${ac_make}_set=yes |
1780 | else |
1781 | eval ac_cv_prog_make_${ac_make}_set=no |
1782 | fi |
1783 | rm -f conftest.make |
1784 | fi |
1785 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
1786 | echo "$as_me:$LINENO: result: yes" >&5 |
1787 | echo "${ECHO_T}yes" >&6 |
1788 | SET_MAKE= |
1789 | else |
1790 | echo "$as_me:$LINENO: result: no" >&5 |
1791 | echo "${ECHO_T}no" >&6 |
1792 | SET_MAKE="MAKE=${MAKE-make}" |
1793 | fi |
1794 | |
1795 | rm -rf .tst 2>/dev/null |
1796 | mkdir .tst 2>/dev/null |
1797 | if test -d .tst; then |
1798 | am__leading_dot=. |
1799 | else |
1800 | am__leading_dot=_ |
1801 | fi |
1802 | rmdir .tst 2>/dev/null |
1803 | |
1804 | # test to see if srcdir already configured |
1805 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
1806 | test -f $srcdir/config.status; then |
1807 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
1808 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
1809 | { (exit 1); exit 1; }; } |
1810 | fi |
1811 | |
1812 | # test whether we have cygpath |
1813 | if test -z "$CYGPATH_W"; then |
1814 | if (cygpath --version) >/dev/null 2>/dev/null; then |
1815 | CYGPATH_W='cygpath -w' |
1816 | else |
1817 | CYGPATH_W=echo |
1818 | fi |
1819 | fi |
1820 | |
1821 | |
1822 | # Define the identity of the package. |
1823 | PACKAGE='courierlogger' |
1824 | VERSION='0.10' |
1825 | |
1826 | |
1827 | # Some tools Automake needs. |
1828 | |
1829 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
1830 | |
1831 | |
1832 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
1833 | |
1834 | |
1835 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
1836 | |
1837 | |
1838 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
1839 | |
1840 | |
1841 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
1842 | |
1843 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
1844 | |
1845 | # Installed binaries are usually stripped using `strip' when the user |
1846 | # run `make install-strip'. However `strip' might not be the right |
1847 | # tool to use in cross-compilation environments, therefore Automake |
1848 | # will honor the `STRIP' environment variable to overrule this program. |
1849 | if test "$cross_compiling" != no; then |
1850 | if test -n "$ac_tool_prefix"; then |
1851 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
1852 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
1853 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1854 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1855 | if test "${ac_cv_prog_STRIP+set}" = set; then |
1856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1857 | else |
1858 | if test -n "$STRIP"; then |
1859 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
1860 | else |
1861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1862 | for as_dir in $PATH |
1863 | do |
1864 | IFS=$as_save_IFS |
1865 | test -z "$as_dir" && as_dir=. |
1866 | for ac_exec_ext in '' $ac_executable_extensions; do |
1867 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1868 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
1869 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1870 | break 2 |
1871 | fi |
1872 | done |
1873 | done |
1874 | |
1875 | fi |
1876 | fi |
1877 | STRIP=$ac_cv_prog_STRIP |
1878 | if test -n "$STRIP"; then |
1879 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
1880 | echo "${ECHO_T}$STRIP" >&6 |
1881 | else |
1882 | echo "$as_me:$LINENO: result: no" >&5 |
1883 | echo "${ECHO_T}no" >&6 |
1884 | fi |
1885 | |
1886 | fi |
1887 | if test -z "$ac_cv_prog_STRIP"; then |
1888 | ac_ct_STRIP=$STRIP |
1889 | # Extract the first word of "strip", so it can be a program name with args. |
1890 | set dummy strip; ac_word=$2 |
1891 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1892 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1893 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
1894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1895 | else |
1896 | if test -n "$ac_ct_STRIP"; then |
1897 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
1898 | else |
1899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1900 | for as_dir in $PATH |
1901 | do |
1902 | IFS=$as_save_IFS |
1903 | test -z "$as_dir" && as_dir=. |
1904 | for ac_exec_ext in '' $ac_executable_extensions; do |
1905 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1906 | ac_cv_prog_ac_ct_STRIP="strip" |
1907 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1908 | break 2 |
1909 | fi |
1910 | done |
1911 | done |
1912 | |
1913 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
1914 | fi |
1915 | fi |
1916 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
1917 | if test -n "$ac_ct_STRIP"; then |
1918 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
1919 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
1920 | else |
1921 | echo "$as_me:$LINENO: result: no" >&5 |
1922 | echo "${ECHO_T}no" >&6 |
1923 | fi |
1924 | |
1925 | STRIP=$ac_ct_STRIP |
1926 | else |
1927 | STRIP="$ac_cv_prog_STRIP" |
1928 | fi |
1929 | |
1930 | fi |
1931 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
1932 | |
1933 | # We need awk for the "check" target. The system "awk" is bad on |
1934 | # some platforms. |
1935 | # Always define AMTAR for backward compatibility. |
1936 | |
1937 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
1938 | |
1939 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
1940 | |
1941 | |
1942 | |
1943 | |
1944 | |
1945 | ac_config_headers="$ac_config_headers config.h" |
1946 | |
1947 | |
1948 | ac_ext=c |
1949 | ac_cpp='$CPP $CPPFLAGS' |
1950 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1951 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1952 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1953 | if test -n "$ac_tool_prefix"; then |
1954 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
1955 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
1956 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1957 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1958 | if test "${ac_cv_prog_CC+set}" = set; then |
1959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1960 | else |
1961 | if test -n "$CC"; then |
1962 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1963 | else |
1964 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1965 | for as_dir in $PATH |
1966 | do |
1967 | IFS=$as_save_IFS |
1968 | test -z "$as_dir" && as_dir=. |
1969 | for ac_exec_ext in '' $ac_executable_extensions; do |
1970 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1971 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1972 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1973 | break 2 |
1974 | fi |
1975 | done |
1976 | done |
1977 | |
1978 | fi |
1979 | fi |
1980 | CC=$ac_cv_prog_CC |
1981 | if test -n "$CC"; then |
1982 | echo "$as_me:$LINENO: result: $CC" >&5 |
1983 | echo "${ECHO_T}$CC" >&6 |
1984 | else |
1985 | echo "$as_me:$LINENO: result: no" >&5 |
1986 | echo "${ECHO_T}no" >&6 |
1987 | fi |
1988 | |
1989 | fi |
1990 | if test -z "$ac_cv_prog_CC"; then |
1991 | ac_ct_CC=$CC |
1992 | # Extract the first word of "gcc", so it can be a program name with args. |
1993 | set dummy gcc; ac_word=$2 |
1994 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1995 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1996 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1998 | else |
1999 | if test -n "$ac_ct_CC"; then |
2000 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2001 | else |
2002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2003 | for as_dir in $PATH |
2004 | do |
2005 | IFS=$as_save_IFS |
2006 | test -z "$as_dir" && as_dir=. |
2007 | for ac_exec_ext in '' $ac_executable_extensions; do |
2008 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2009 | ac_cv_prog_ac_ct_CC="gcc" |
2010 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2011 | break 2 |
2012 | fi |
2013 | done |
2014 | done |
2015 | |
2016 | fi |
2017 | fi |
2018 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2019 | if test -n "$ac_ct_CC"; then |
2020 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2021 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2022 | else |
2023 | echo "$as_me:$LINENO: result: no" >&5 |
2024 | echo "${ECHO_T}no" >&6 |
2025 | fi |
2026 | |
2027 | CC=$ac_ct_CC |
2028 | else |
2029 | CC="$ac_cv_prog_CC" |
2030 | fi |
2031 | |
2032 | if test -z "$CC"; then |
2033 | if test -n "$ac_tool_prefix"; then |
2034 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
2035 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2036 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2037 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2038 | if test "${ac_cv_prog_CC+set}" = set; then |
2039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2040 | else |
2041 | if test -n "$CC"; then |
2042 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2043 | else |
2044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2045 | for as_dir in $PATH |
2046 | do |
2047 | IFS=$as_save_IFS |
2048 | test -z "$as_dir" && as_dir=. |
2049 | for ac_exec_ext in '' $ac_executable_extensions; do |
2050 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2051 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2052 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2053 | break 2 |
2054 | fi |
2055 | done |
2056 | done |
2057 | |
2058 | fi |
2059 | fi |
2060 | CC=$ac_cv_prog_CC |
2061 | if test -n "$CC"; then |
2062 | echo "$as_me:$LINENO: result: $CC" >&5 |
2063 | echo "${ECHO_T}$CC" >&6 |
2064 | else |
2065 | echo "$as_me:$LINENO: result: no" >&5 |
2066 | echo "${ECHO_T}no" >&6 |
2067 | fi |
2068 | |
2069 | fi |
2070 | if test -z "$ac_cv_prog_CC"; then |
2071 | ac_ct_CC=$CC |
2072 | # Extract the first word of "cc", so it can be a program name with args. |
2073 | set dummy cc; ac_word=$2 |
2074 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2075 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2076 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2078 | else |
2079 | if test -n "$ac_ct_CC"; then |
2080 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2081 | else |
2082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2083 | for as_dir in $PATH |
2084 | do |
2085 | IFS=$as_save_IFS |
2086 | test -z "$as_dir" && as_dir=. |
2087 | for ac_exec_ext in '' $ac_executable_extensions; do |
2088 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2089 | ac_cv_prog_ac_ct_CC="cc" |
2090 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2091 | break 2 |
2092 | fi |
2093 | done |
2094 | done |
2095 | |
2096 | fi |
2097 | fi |
2098 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2099 | if test -n "$ac_ct_CC"; then |
2100 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2101 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2102 | else |
2103 | echo "$as_me:$LINENO: result: no" >&5 |
2104 | echo "${ECHO_T}no" >&6 |
2105 | fi |
2106 | |
2107 | CC=$ac_ct_CC |
2108 | else |
2109 | CC="$ac_cv_prog_CC" |
2110 | fi |
2111 | |
2112 | fi |
2113 | if test -z "$CC"; then |
2114 | # Extract the first word of "cc", so it can be a program name with args. |
2115 | set dummy cc; ac_word=$2 |
2116 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2117 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2118 | if test "${ac_cv_prog_CC+set}" = set; then |
2119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2120 | else |
2121 | if test -n "$CC"; then |
2122 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2123 | else |
2124 | ac_prog_rejected=no |
2125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2126 | for as_dir in $PATH |
2127 | do |
2128 | IFS=$as_save_IFS |
2129 | test -z "$as_dir" && as_dir=. |
2130 | for ac_exec_ext in '' $ac_executable_extensions; do |
2131 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2132 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2133 | ac_prog_rejected=yes |
2134 | continue |
2135 | fi |
2136 | ac_cv_prog_CC="cc" |
2137 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2138 | break 2 |
2139 | fi |
2140 | done |
2141 | done |
2142 | |
2143 | if test $ac_prog_rejected = yes; then |
2144 | # We found a bogon in the path, so make sure we never use it. |
2145 | set dummy $ac_cv_prog_CC |
2146 | shift |
2147 | if test $# != 0; then |
2148 | # We chose a different compiler from the bogus one. |
2149 | # However, it has the same basename, so the bogon will be chosen |
2150 | # first if we set CC to just the basename; use the full file name. |
2151 | shift |
2152 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
2153 | fi |
2154 | fi |
2155 | fi |
2156 | fi |
2157 | CC=$ac_cv_prog_CC |
2158 | if test -n "$CC"; then |
2159 | echo "$as_me:$LINENO: result: $CC" >&5 |
2160 | echo "${ECHO_T}$CC" >&6 |
2161 | else |
2162 | echo "$as_me:$LINENO: result: no" >&5 |
2163 | echo "${ECHO_T}no" >&6 |
2164 | fi |
2165 | |
2166 | fi |
2167 | if test -z "$CC"; then |
2168 | if test -n "$ac_tool_prefix"; then |
2169 | for ac_prog in cl |
2170 | do |
2171 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2172 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2173 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2174 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2175 | if test "${ac_cv_prog_CC+set}" = set; then |
2176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2177 | else |
2178 | if test -n "$CC"; then |
2179 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2180 | else |
2181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2182 | for as_dir in $PATH |
2183 | do |
2184 | IFS=$as_save_IFS |
2185 | test -z "$as_dir" && as_dir=. |
2186 | for ac_exec_ext in '' $ac_executable_extensions; do |
2187 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2188 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2189 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2190 | break 2 |
2191 | fi |
2192 | done |
2193 | done |
2194 | |
2195 | fi |
2196 | fi |
2197 | CC=$ac_cv_prog_CC |
2198 | if test -n "$CC"; then |
2199 | echo "$as_me:$LINENO: result: $CC" >&5 |
2200 | echo "${ECHO_T}$CC" >&6 |
2201 | else |
2202 | echo "$as_me:$LINENO: result: no" >&5 |
2203 | echo "${ECHO_T}no" >&6 |
2204 | fi |
2205 | |
2206 | test -n "$CC" && break |
2207 | done |
2208 | fi |
2209 | if test -z "$CC"; then |
2210 | ac_ct_CC=$CC |
2211 | for ac_prog in cl |
2212 | do |
2213 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2214 | set dummy $ac_prog; ac_word=$2 |
2215 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2216 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2217 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2219 | else |
2220 | if test -n "$ac_ct_CC"; then |
2221 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2222 | else |
2223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2224 | for as_dir in $PATH |
2225 | do |
2226 | IFS=$as_save_IFS |
2227 | test -z "$as_dir" && as_dir=. |
2228 | for ac_exec_ext in '' $ac_executable_extensions; do |
2229 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2230 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2231 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2232 | break 2 |
2233 | fi |
2234 | done |
2235 | done |
2236 | |
2237 | fi |
2238 | fi |
2239 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2240 | if test -n "$ac_ct_CC"; then |
2241 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2242 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2243 | else |
2244 | echo "$as_me:$LINENO: result: no" >&5 |
2245 | echo "${ECHO_T}no" >&6 |
2246 | fi |
2247 | |
2248 | test -n "$ac_ct_CC" && break |
2249 | done |
2250 | |
2251 | CC=$ac_ct_CC |
2252 | fi |
2253 | |
2254 | fi |
2255 | |
2256 | |
2257 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2258 | See \`config.log' for more details." >&5 |
2259 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
2260 | See \`config.log' for more details." >&2;} |
2261 | { (exit 1); exit 1; }; } |
2262 | |
2263 | # Provide some information about the compiler. |
2264 | echo "$as_me:$LINENO:" \ |
2265 | "checking for C compiler version" >&5 |
2266 | ac_compiler=`set X $ac_compile; echo $2` |
2267 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
2268 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
2269 | ac_status=$? |
2270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2271 | (exit $ac_status); } |
2272 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
2273 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
2274 | ac_status=$? |
2275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2276 | (exit $ac_status); } |
2277 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
2278 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
2279 | ac_status=$? |
2280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2281 | (exit $ac_status); } |
2282 | |
2283 | cat >conftest.$ac_ext <<_ACEOF |
2284 | /* confdefs.h. */ |
2285 | _ACEOF |
2286 | cat confdefs.h >>conftest.$ac_ext |
2287 | cat >>conftest.$ac_ext <<_ACEOF |
2288 | /* end confdefs.h. */ |
2289 | |
2290 | int |
2291 | main () |
2292 | { |
2293 | |
2294 | ; |
2295 | return 0; |
2296 | } |
2297 | _ACEOF |
2298 | ac_clean_files_save=$ac_clean_files |
2299 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2300 | # Try to create an executable without -o first, disregard a.out. |
2301 | # It will help us diagnose broken compilers, and finding out an intuition |
2302 | # of exeext. |
2303 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2304 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
2305 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2306 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
2307 | (eval $ac_link_default) 2>&5 |
2308 | ac_status=$? |
2309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2310 | (exit $ac_status); }; then |
2311 | # Find the output, starting from the most likely. This scheme is |
2312 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
2313 | # resort. |
2314 | |
2315 | # Be careful to initialize this variable, since it used to be cached. |
2316 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
2317 | ac_cv_exeext= |
2318 | # b.out is created by i960 compilers. |
2319 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
2320 | do |
2321 | test -f "$ac_file" || continue |
2322 | case $ac_file in |
2323 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
2324 | ;; |
2325 | conftest.$ac_ext ) |
2326 | # This is the source file. |
2327 | ;; |
2328 | [ab].out ) |
2329 | # We found the default executable, but exeext='' is most |
2330 | # certainly right. |
2331 | break;; |
2332 | *.* ) |
2333 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2334 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
2335 | # but it would be cool to find out if it's true. Does anybody |
2336 | # maintain Libtool? --akim. |
2337 | export ac_cv_exeext |
2338 | break;; |
2339 | * ) |
2340 | break;; |
2341 | esac |
2342 | done |
2343 | else |
2344 | echo "$as_me: failed program was:" >&5 |
2345 | sed 's/^/| /' conftest.$ac_ext >&5 |
2346 | |
2347 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2348 | See \`config.log' for more details." >&5 |
2349 | echo "$as_me: error: C compiler cannot create executables |
2350 | See \`config.log' for more details." >&2;} |
2351 | { (exit 77); exit 77; }; } |
2352 | fi |
2353 | |
2354 | ac_exeext=$ac_cv_exeext |
2355 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
2356 | echo "${ECHO_T}$ac_file" >&6 |
2357 | |
2358 | # Check the compiler produces executables we can run. If not, either |
2359 | # the compiler is broken, or we cross compile. |
2360 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2361 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
2362 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2363 | # If not cross compiling, check that we can run a simple program. |
2364 | if test "$cross_compiling" != yes; then |
2365 | if { ac_try='./$ac_file' |
2366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2367 | (eval $ac_try) 2>&5 |
2368 | ac_status=$? |
2369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2370 | (exit $ac_status); }; }; then |
2371 | cross_compiling=no |
2372 | else |
2373 | if test "$cross_compiling" = maybe; then |
2374 | cross_compiling=yes |
2375 | else |
2376 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
2377 | If you meant to cross compile, use \`--host'. |
2378 | See \`config.log' for more details." >&5 |
2379 | echo "$as_me: error: cannot run C compiled programs. |
2380 | If you meant to cross compile, use \`--host'. |
2381 | See \`config.log' for more details." >&2;} |
2382 | { (exit 1); exit 1; }; } |
2383 | fi |
2384 | fi |
2385 | fi |
2386 | echo "$as_me:$LINENO: result: yes" >&5 |
2387 | echo "${ECHO_T}yes" >&6 |
2388 | |
2389 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2390 | ac_clean_files=$ac_clean_files_save |
2391 | # Check the compiler produces executables we can run. If not, either |
2392 | # the compiler is broken, or we cross compile. |
2393 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2394 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
2395 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2396 | echo "${ECHO_T}$cross_compiling" >&6 |
2397 | |
2398 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2399 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
2400 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2401 | (eval $ac_link) 2>&5 |
2402 | ac_status=$? |
2403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2404 | (exit $ac_status); }; then |
2405 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2406 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2407 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
2408 | # `rm'. |
2409 | for ac_file in conftest.exe conftest conftest.*; do |
2410 | test -f "$ac_file" || continue |
2411 | case $ac_file in |
2412 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
2413 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2414 | export ac_cv_exeext |
2415 | break;; |
2416 | * ) break;; |
2417 | esac |
2418 | done |
2419 | else |
2420 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2421 | See \`config.log' for more details." >&5 |
2422 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2423 | See \`config.log' for more details." >&2;} |
2424 | { (exit 1); exit 1; }; } |
2425 | fi |
2426 | |
2427 | rm -f conftest$ac_cv_exeext |
2428 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2429 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
2430 | |
2431 | rm -f conftest.$ac_ext |
2432 | EXEEXT=$ac_cv_exeext |
2433 | ac_exeext=$EXEEXT |
2434 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2435 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
2436 | if test "${ac_cv_objext+set}" = set; then |
2437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2438 | else |
2439 | cat >conftest.$ac_ext <<_ACEOF |
2440 | /* confdefs.h. */ |
2441 | _ACEOF |
2442 | cat confdefs.h >>conftest.$ac_ext |
2443 | cat >>conftest.$ac_ext <<_ACEOF |
2444 | /* end confdefs.h. */ |
2445 | |
2446 | int |
2447 | main () |
2448 | { |
2449 | |
2450 | ; |
2451 | return 0; |
2452 | } |
2453 | _ACEOF |
2454 | rm -f conftest.o conftest.obj |
2455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2456 | (eval $ac_compile) 2>&5 |
2457 | ac_status=$? |
2458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2459 | (exit $ac_status); }; then |
2460 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
2461 | case $ac_file in |
2462 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
2463 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2464 | break;; |
2465 | esac |
2466 | done |
2467 | else |
2468 | echo "$as_me: failed program was:" >&5 |
2469 | sed 's/^/| /' conftest.$ac_ext >&5 |
2470 | |
2471 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2472 | See \`config.log' for more details." >&5 |
2473 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
2474 | See \`config.log' for more details." >&2;} |
2475 | { (exit 1); exit 1; }; } |
2476 | fi |
2477 | |
2478 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2479 | fi |
2480 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2481 | echo "${ECHO_T}$ac_cv_objext" >&6 |
2482 | OBJEXT=$ac_cv_objext |
2483 | ac_objext=$OBJEXT |
2484 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2485 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
2486 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2488 | else |
2489 | cat >conftest.$ac_ext <<_ACEOF |
2490 | /* confdefs.h. */ |
2491 | _ACEOF |
2492 | cat confdefs.h >>conftest.$ac_ext |
2493 | cat >>conftest.$ac_ext <<_ACEOF |
2494 | /* end confdefs.h. */ |
2495 | |
2496 | int |
2497 | main () |
2498 | { |
2499 | #ifndef __GNUC__ |
2500 | choke me |
2501 | #endif |
2502 | |
2503 | ; |
2504 | return 0; |
2505 | } |
2506 | _ACEOF |
2507 | rm -f conftest.$ac_objext |
2508 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2509 | (eval $ac_compile) 2>conftest.er1 |
2510 | ac_status=$? |
2511 | grep -v '^ *+' conftest.er1 >conftest.err |
2512 | rm -f conftest.er1 |
2513 | cat conftest.err >&5 |
2514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2515 | (exit $ac_status); } && |
2516 | { ac_try='test -z "$ac_c_werror_flag" |
2517 | || test ! -s conftest.err' |
2518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2519 | (eval $ac_try) 2>&5 |
2520 | ac_status=$? |
2521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2522 | (exit $ac_status); }; } && |
2523 | { ac_try='test -s conftest.$ac_objext' |
2524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2525 | (eval $ac_try) 2>&5 |
2526 | ac_status=$? |
2527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2528 | (exit $ac_status); }; }; then |
2529 | ac_compiler_gnu=yes |
2530 | else |
2531 | echo "$as_me: failed program was:" >&5 |
2532 | sed 's/^/| /' conftest.$ac_ext >&5 |
2533 | |
2534 | ac_compiler_gnu=no |
2535 | fi |
2536 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2537 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2538 | |
2539 | fi |
2540 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2541 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
2542 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2543 | ac_test_CFLAGS=${CFLAGS+set} |
2544 | ac_save_CFLAGS=$CFLAGS |
2545 | CFLAGS="-g" |
2546 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2547 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
2548 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2550 | else |
2551 | cat >conftest.$ac_ext <<_ACEOF |
2552 | /* confdefs.h. */ |
2553 | _ACEOF |
2554 | cat confdefs.h >>conftest.$ac_ext |
2555 | cat >>conftest.$ac_ext <<_ACEOF |
2556 | /* end confdefs.h. */ |
2557 | |
2558 | int |
2559 | main () |
2560 | { |
2561 | |
2562 | ; |
2563 | return 0; |
2564 | } |
2565 | _ACEOF |
2566 | rm -f conftest.$ac_objext |
2567 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2568 | (eval $ac_compile) 2>conftest.er1 |
2569 | ac_status=$? |
2570 | grep -v '^ *+' conftest.er1 >conftest.err |
2571 | rm -f conftest.er1 |
2572 | cat conftest.err >&5 |
2573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2574 | (exit $ac_status); } && |
2575 | { ac_try='test -z "$ac_c_werror_flag" |
2576 | || test ! -s conftest.err' |
2577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2578 | (eval $ac_try) 2>&5 |
2579 | ac_status=$? |
2580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2581 | (exit $ac_status); }; } && |
2582 | { ac_try='test -s conftest.$ac_objext' |
2583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2584 | (eval $ac_try) 2>&5 |
2585 | ac_status=$? |
2586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2587 | (exit $ac_status); }; }; then |
2588 | ac_cv_prog_cc_g=yes |
2589 | else |
2590 | echo "$as_me: failed program was:" >&5 |
2591 | sed 's/^/| /' conftest.$ac_ext >&5 |
2592 | |
2593 | ac_cv_prog_cc_g=no |
2594 | fi |
2595 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2596 | fi |
2597 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2598 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
2599 | if test "$ac_test_CFLAGS" = set; then |
2600 | CFLAGS=$ac_save_CFLAGS |
2601 | elif test $ac_cv_prog_cc_g = yes; then |
2602 | if test "$GCC" = yes; then |
2603 | CFLAGS="-g -O2" |
2604 | else |
2605 | CFLAGS="-g" |
2606 | fi |
2607 | else |
2608 | if test "$GCC" = yes; then |
2609 | CFLAGS="-O2" |
2610 | else |
2611 | CFLAGS= |
2612 | fi |
2613 | fi |
2614 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2615 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
2616 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
2617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2618 | else |
2619 | ac_cv_prog_cc_stdc=no |
2620 | ac_save_CC=$CC |
2621 | cat >conftest.$ac_ext <<_ACEOF |
2622 | /* confdefs.h. */ |
2623 | _ACEOF |
2624 | cat confdefs.h >>conftest.$ac_ext |
2625 | cat >>conftest.$ac_ext <<_ACEOF |
2626 | /* end confdefs.h. */ |
2627 | #include <stdarg.h> |
2628 | #include <stdio.h> |
2629 | #include <sys/types.h> |
2630 | #include <sys/stat.h> |
2631 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2632 | struct buf { int x; }; |
2633 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
2634 | static char *e (p, i) |
2635 | char **p; |
2636 | int i; |
2637 | { |
2638 | return p[i]; |
2639 | } |
2640 | static char *f (char * (*g) (char **, int), char **p, ...) |
2641 | { |
2642 | char *s; |
2643 | va_list v; |
2644 | va_start (v,p); |
2645 | s = g (p, va_arg (v,int)); |
2646 | va_end (v); |
2647 | return s; |
2648 | } |
2649 | |
2650 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2651 | function prototypes and stuff, but not '\xHH' hex character constants. |
2652 | These don't provoke an error unfortunately, instead are silently treated |
2653 | as 'x'. The following induces an error, until -std1 is added to get |
2654 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2655 | array size at least. It's necessary to write '\x00'==0 to get something |
2656 | that's true only with -std1. */ |
2657 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2658 | |
2659 | int test (int i, double x); |
2660 | struct s1 {int (*f) (int a);}; |
2661 | struct s2 {int (*f) (double a);}; |
2662 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
2663 | int argc; |
2664 | char **argv; |
2665 | int |
2666 | main () |
2667 | { |
2668 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2669 | ; |
2670 | return 0; |
2671 | } |
2672 | _ACEOF |
2673 | # Don't try gcc -ansi; that turns off useful extensions and |
2674 | # breaks some systems' header files. |
2675 | # AIX -qlanglvl=ansi |
2676 | # Ultrix and OSF/1 -std1 |
2677 | # HP-UX 10.20 and later -Ae |
2678 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
2679 | # SVR4 -Xc -D__EXTENSIONS__ |
2680 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2681 | do |
2682 | CC="$ac_save_CC $ac_arg" |
2683 | rm -f conftest.$ac_objext |
2684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2685 | (eval $ac_compile) 2>conftest.er1 |
2686 | ac_status=$? |
2687 | grep -v '^ *+' conftest.er1 >conftest.err |
2688 | rm -f conftest.er1 |
2689 | cat conftest.err >&5 |
2690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2691 | (exit $ac_status); } && |
2692 | { ac_try='test -z "$ac_c_werror_flag" |
2693 | || test ! -s conftest.err' |
2694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2695 | (eval $ac_try) 2>&5 |
2696 | ac_status=$? |
2697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2698 | (exit $ac_status); }; } && |
2699 | { ac_try='test -s conftest.$ac_objext' |
2700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2701 | (eval $ac_try) 2>&5 |
2702 | ac_status=$? |
2703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2704 | (exit $ac_status); }; }; then |
2705 | ac_cv_prog_cc_stdc=$ac_arg |
2706 | break |
2707 | else |
2708 | echo "$as_me: failed program was:" >&5 |
2709 | sed 's/^/| /' conftest.$ac_ext >&5 |
2710 | |
2711 | fi |
2712 | rm -f conftest.err conftest.$ac_objext |
2713 | done |
2714 | rm -f conftest.$ac_ext conftest.$ac_objext |
2715 | CC=$ac_save_CC |
2716 | |
2717 | fi |
2718 | |
2719 | case "x$ac_cv_prog_cc_stdc" in |
2720 | x|xno) |
2721 | echo "$as_me:$LINENO: result: none needed" >&5 |
2722 | echo "${ECHO_T}none needed" >&6 ;; |
2723 | *) |
2724 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2725 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
2726 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
2727 | esac |
2728 | |
2729 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2730 | # in C++ we need to declare it. In case someone uses the same compiler |
2731 | # for both compiling C and C++ we need to have the C++ compiler decide |
2732 | # the declaration of exit, since it's the most demanding environment. |
2733 | cat >conftest.$ac_ext <<_ACEOF |
2734 | #ifndef __cplusplus |
2735 | choke me |
2736 | #endif |
2737 | _ACEOF |
2738 | rm -f conftest.$ac_objext |
2739 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2740 | (eval $ac_compile) 2>conftest.er1 |
2741 | ac_status=$? |
2742 | grep -v '^ *+' conftest.er1 >conftest.err |
2743 | rm -f conftest.er1 |
2744 | cat conftest.err >&5 |
2745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2746 | (exit $ac_status); } && |
2747 | { ac_try='test -z "$ac_c_werror_flag" |
2748 | || test ! -s conftest.err' |
2749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2750 | (eval $ac_try) 2>&5 |
2751 | ac_status=$? |
2752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2753 | (exit $ac_status); }; } && |
2754 | { ac_try='test -s conftest.$ac_objext' |
2755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2756 | (eval $ac_try) 2>&5 |
2757 | ac_status=$? |
2758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2759 | (exit $ac_status); }; }; then |
2760 | for ac_declaration in \ |
2761 | '' \ |
2762 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2763 | 'extern "C" void std::exit (int); using std::exit;' \ |
2764 | 'extern "C" void exit (int) throw ();' \ |
2765 | 'extern "C" void exit (int);' \ |
2766 | 'void exit (int);' |
2767 | do |
2768 | cat >conftest.$ac_ext <<_ACEOF |
2769 | /* confdefs.h. */ |
2770 | _ACEOF |
2771 | cat confdefs.h >>conftest.$ac_ext |
2772 | cat >>conftest.$ac_ext <<_ACEOF |
2773 | /* end confdefs.h. */ |
2774 | $ac_declaration |
2775 | #include <stdlib.h> |
2776 | int |
2777 | main () |
2778 | { |
2779 | exit (42); |
2780 | ; |
2781 | return 0; |
2782 | } |
2783 | _ACEOF |
2784 | rm -f conftest.$ac_objext |
2785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2786 | (eval $ac_compile) 2>conftest.er1 |
2787 | ac_status=$? |
2788 | grep -v '^ *+' conftest.er1 >conftest.err |
2789 | rm -f conftest.er1 |
2790 | cat conftest.err >&5 |
2791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2792 | (exit $ac_status); } && |
2793 | { ac_try='test -z "$ac_c_werror_flag" |
2794 | || test ! -s conftest.err' |
2795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2796 | (eval $ac_try) 2>&5 |
2797 | ac_status=$? |
2798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2799 | (exit $ac_status); }; } && |
2800 | { ac_try='test -s conftest.$ac_objext' |
2801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2802 | (eval $ac_try) 2>&5 |
2803 | ac_status=$? |
2804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2805 | (exit $ac_status); }; }; then |
2806 | : |
2807 | else |
2808 | echo "$as_me: failed program was:" >&5 |
2809 | sed 's/^/| /' conftest.$ac_ext >&5 |
2810 | |
2811 | continue |
2812 | fi |
2813 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2814 | cat >conftest.$ac_ext <<_ACEOF |
2815 | /* confdefs.h. */ |
2816 | _ACEOF |
2817 | cat confdefs.h >>conftest.$ac_ext |
2818 | cat >>conftest.$ac_ext <<_ACEOF |
2819 | /* end confdefs.h. */ |
2820 | $ac_declaration |
2821 | int |
2822 | main () |
2823 | { |
2824 | exit (42); |
2825 | ; |
2826 | return 0; |
2827 | } |
2828 | _ACEOF |
2829 | rm -f conftest.$ac_objext |
2830 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2831 | (eval $ac_compile) 2>conftest.er1 |
2832 | ac_status=$? |
2833 | grep -v '^ *+' conftest.er1 >conftest.err |
2834 | rm -f conftest.er1 |
2835 | cat conftest.err >&5 |
2836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2837 | (exit $ac_status); } && |
2838 | { ac_try='test -z "$ac_c_werror_flag" |
2839 | || test ! -s conftest.err' |
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); }; } && |
2845 | { ac_try='test -s conftest.$ac_objext' |
2846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2847 | (eval $ac_try) 2>&5 |
2848 | ac_status=$? |
2849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2850 | (exit $ac_status); }; }; then |
2851 | break |
2852 | else |
2853 | echo "$as_me: failed program was:" >&5 |
2854 | sed 's/^/| /' conftest.$ac_ext >&5 |
2855 | |
2856 | fi |
2857 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2858 | done |
2859 | rm -f conftest* |
2860 | if test -n "$ac_declaration"; then |
2861 | echo '#ifdef __cplusplus' >>confdefs.h |
2862 | echo $ac_declaration >>confdefs.h |
2863 | echo '#endif' >>confdefs.h |
2864 | fi |
2865 | |
2866 | else |
2867 | echo "$as_me: failed program was:" >&5 |
2868 | sed 's/^/| /' conftest.$ac_ext >&5 |
2869 | |
2870 | fi |
2871 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2872 | ac_ext=c |
2873 | ac_cpp='$CPP $CPPFLAGS' |
2874 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2875 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2876 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2877 | DEPDIR="${am__leading_dot}deps" |
2878 | |
2879 | ac_config_commands="$ac_config_commands depfiles" |
2880 | |
2881 | |
2882 | am_make=${MAKE-make} |
2883 | cat > confinc << 'END' |
2884 | am__doit: |
2885 | @echo done |
2886 | .PHONY: am__doit |
2887 | END |
2888 | # If we don't find an include directive, just comment out the code. |
2889 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
2890 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
2891 | am__include="#" |
2892 | am__quote= |
2893 | _am_result=none |
2894 | # First try GNU make style include. |
2895 | echo "include confinc" > confmf |
2896 | # We grep out `Entering directory' and `Leaving directory' |
2897 | # messages which can occur if `w' ends up in MAKEFLAGS. |
2898 | # In particular we don't look at `^make:' because GNU make might |
2899 | # be invoked under some other name (usually "gmake"), in which |
2900 | # case it prints its new name instead of `make'. |
2901 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
2902 | am__include=include |
2903 | am__quote= |
2904 | _am_result=GNU |
2905 | fi |
2906 | # Now try BSD make style include. |
2907 | if test "$am__include" = "#"; then |
2908 | echo '.include "confinc"' > confmf |
2909 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
2910 | am__include=.include |
2911 | am__quote="\"" |
2912 | _am_result=BSD |
2913 | fi |
2914 | fi |
2915 | |
2916 | |
2917 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
2918 | echo "${ECHO_T}$_am_result" >&6 |
2919 | rm -f confinc confmf |
2920 | |
2921 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
2922 | if test "${enable_dependency_tracking+set}" = set; then |
2923 | enableval="$enable_dependency_tracking" |
2924 | |
2925 | fi; |
2926 | if test "x$enable_dependency_tracking" != xno; then |
2927 | am_depcomp="$ac_aux_dir/depcomp" |
2928 | AMDEPBACKSLASH='\' |
2929 | fi |
2930 | |
2931 | |
2932 | if test "x$enable_dependency_tracking" != xno; then |
2933 | AMDEP_TRUE= |
2934 | AMDEP_FALSE='#' |
2935 | else |
2936 | AMDEP_TRUE='#' |
2937 | AMDEP_FALSE= |
2938 | fi |
2939 | |
2940 | |
2941 | |
2942 | |
2943 | depcc="$CC" am_compiler_list= |
2944 | |
2945 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
2946 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
2947 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
2948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2949 | else |
2950 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
2951 | # We make a subdir and do the tests there. Otherwise we can end up |
2952 | # making bogus files that we don't know about and never remove. For |
2953 | # instance it was reported that on HP-UX the gcc test will end up |
2954 | # making a dummy file named `D' -- because `-MD' means `put the output |
2955 | # in D'. |
2956 | mkdir conftest.dir |
2957 | # Copy depcomp to subdir because otherwise we won't find it if we're |
2958 | # using a relative directory. |
2959 | cp "$am_depcomp" conftest.dir |
2960 | cd conftest.dir |
2961 | # We will build objects and dependencies in a subdirectory because |
2962 | # it helps to detect inapplicable dependency modes. For instance |
2963 | # both Tru64's cc and ICC support -MD to output dependencies as a |
2964 | # side effect of compilation, but ICC will put the dependencies in |
2965 | # the current directory while Tru64 will put them in the object |
2966 | # directory. |
2967 | mkdir sub |
2968 | |
2969 | am_cv_CC_dependencies_compiler_type=none |
2970 | if test "$am_compiler_list" = ""; then |
2971 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
2972 | fi |
2973 | for depmode in $am_compiler_list; do |
2974 | # Setup a source with many dependencies, because some compilers |
2975 | # like to wrap large dependency lists on column 80 (with \), and |
2976 | # we should not choose a depcomp mode which is confused by this. |
2977 | # |
2978 | # We need to recreate these files for each test, as the compiler may |
2979 | # overwrite some of them when testing with obscure command lines. |
2980 | # This happens at least with the AIX C compiler. |
2981 | : > sub/conftest.c |
2982 | for i in 1 2 3 4 5 6; do |
2983 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
2984 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
2985 | # Solaris 8's {/usr,}/bin/sh. |
2986 | touch sub/conftst$i.h |
2987 | done |
2988 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
2989 | |
2990 | case $depmode in |
2991 | nosideeffect) |
2992 | # after this tag, mechanisms are not by side-effect, so they'll |
2993 | # only be used when explicitly requested |
2994 | if test "x$enable_dependency_tracking" = xyes; then |
2995 | continue |
2996 | else |
2997 | break |
2998 | fi |
2999 | ;; |
3000 | none) break ;; |
3001 | esac |
3002 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3003 | # mode. It turns out that the SunPro C++ compiler does not properly |
3004 | # handle `-M -o', and we need to detect this. |
3005 | if depmode=$depmode \ |
3006 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
3007 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
3008 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
3009 | >/dev/null 2>conftest.err && |
3010 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3011 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
3012 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3013 | # icc doesn't choke on unknown options, it will just issue warnings |
3014 | # or remarks (even with -Werror). So we grep stderr for any message |
3015 | # that says an option was ignored or not supported. |
3016 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
3017 | # icc: Command line warning: ignoring option '-M'; no argument required |
3018 | # The diagnosis changed in icc 8.0: |
3019 | # icc: Command line remark: option '-MP' not supported |
3020 | if (grep 'ignoring option' conftest.err || |
3021 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
3022 | am_cv_CC_dependencies_compiler_type=$depmode |
3023 | break |
3024 | fi |
3025 | fi |
3026 | done |
3027 | |
3028 | cd .. |
3029 | rm -rf conftest.dir |
3030 | else |
3031 | am_cv_CC_dependencies_compiler_type=none |
3032 | fi |
3033 | |
3034 | fi |
3035 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3036 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
3037 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3038 | |
3039 | |
3040 | |
3041 | if |
3042 | test "x$enable_dependency_tracking" != xno \ |
3043 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
3044 | am__fastdepCC_TRUE= |
3045 | am__fastdepCC_FALSE='#' |
3046 | else |
3047 | am__fastdepCC_TRUE='#' |
3048 | am__fastdepCC_FALSE= |
3049 | fi |
3050 | |
3051 | |
3052 | # Find a good install program. We prefer a C program (faster), |
3053 | # so one script is as good as another. But avoid the broken or |
3054 | # incompatible versions: |
3055 | # SysV /etc/install, /usr/sbin/install |
3056 | # SunOS /usr/etc/install |
3057 | # IRIX /sbin/install |
3058 | # AIX /bin/install |
3059 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
3060 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3061 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3062 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
3063 | # OS/2's system install, which has a completely different semantic |
3064 | # ./install, which can be erroneously created by make from ./install.sh. |
3065 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3066 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
3067 | if test -z "$INSTALL"; then |
3068 | if test "${ac_cv_path_install+set}" = set; then |
3069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3070 | else |
3071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3072 | for as_dir in $PATH |
3073 | do |
3074 | IFS=$as_save_IFS |
3075 | test -z "$as_dir" && as_dir=. |
3076 | # Account for people who put trailing slashes in PATH elements. |
3077 | case $as_dir/ in |
3078 | ./ | .// | /cC/* | \ |
3079 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
3080 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
3081 | /usr/ucb/* ) ;; |
3082 | *) |
3083 | # OSF1 and SCO ODT 3.0 have their own names for install. |
3084 | # Don't use installbsd from OSF since it installs stuff as root |
3085 | # by default. |
3086 | for ac_prog in ginstall scoinst install; do |
3087 | for ac_exec_ext in '' $ac_executable_extensions; do |
3088 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
3089 | if test $ac_prog = install && |
3090 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3091 | # AIX install. It has an incompatible calling convention. |
3092 | : |
3093 | elif test $ac_prog = install && |
3094 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3095 | # program-specific install script used by HP pwplus--don't use. |
3096 | : |
3097 | else |
3098 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
3099 | break 3 |
3100 | fi |
3101 | fi |
3102 | done |
3103 | done |
3104 | ;; |
3105 | esac |
3106 | done |
3107 | |
3108 | |
3109 | fi |
3110 | if test "${ac_cv_path_install+set}" = set; then |
3111 | INSTALL=$ac_cv_path_install |
3112 | else |
3113 | # As a last resort, use the slow shell script. We don't cache a |
3114 | # path for INSTALL within a source directory, because that will |
3115 | # break other packages using the cache if that directory is |
3116 | # removed, or if the path is relative. |
3117 | INSTALL=$ac_install_sh |
3118 | fi |
3119 | fi |
3120 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3121 | echo "${ECHO_T}$INSTALL" >&6 |
3122 | |
3123 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3124 | # It thinks the first close brace ends the variable substitution. |
3125 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
3126 | |
3127 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3128 | |
3129 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3130 | |
3131 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3132 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
3133 | LN_S=$as_ln_s |
3134 | if test "$LN_S" = "ln -s"; then |
3135 | echo "$as_me:$LINENO: result: yes" >&5 |
3136 | echo "${ECHO_T}yes" >&6 |
3137 | else |
3138 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3139 | echo "${ECHO_T}no, using $LN_S" >&6 |
3140 | fi |
3141 | |
3142 | # Check whether --enable-shared or --disable-shared was given. |
3143 | if test "${enable_shared+set}" = set; then |
3144 | enableval="$enable_shared" |
3145 | p=${PACKAGE-default} |
3146 | case $enableval in |
3147 | yes) enable_shared=yes ;; |
3148 | no) enable_shared=no ;; |
3149 | *) |
3150 | enable_shared=no |
3151 | # Look at the argument we got. We use all the common list separators. |
3152 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3153 | for pkg in $enableval; do |
3154 | IFS="$lt_save_ifs" |
3155 | if test "X$pkg" = "X$p"; then |
3156 | enable_shared=yes |
3157 | fi |
3158 | done |
3159 | IFS="$lt_save_ifs" |
3160 | ;; |
3161 | esac |
3162 | else |
3163 | enable_shared=yes |
3164 | fi; |
3165 | |
3166 | # Check whether --enable-static or --disable-static was given. |
3167 | if test "${enable_static+set}" = set; then |
3168 | enableval="$enable_static" |
3169 | p=${PACKAGE-default} |
3170 | case $enableval in |
3171 | yes) enable_static=yes ;; |
3172 | no) enable_static=no ;; |
3173 | *) |
3174 | enable_static=no |
3175 | # Look at the argument we got. We use all the common list separators. |
3176 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3177 | for pkg in $enableval; do |
3178 | IFS="$lt_save_ifs" |
3179 | if test "X$pkg" = "X$p"; then |
3180 | enable_static=yes |
3181 | fi |
3182 | done |
3183 | IFS="$lt_save_ifs" |
3184 | ;; |
3185 | esac |
3186 | else |
3187 | enable_static=yes |
3188 | fi; |
3189 | |
3190 | # Check whether --enable-fast-install or --disable-fast-install was given. |
3191 | if test "${enable_fast_install+set}" = set; then |
3192 | enableval="$enable_fast_install" |
3193 | p=${PACKAGE-default} |
3194 | case $enableval in |
3195 | yes) enable_fast_install=yes ;; |
3196 | no) enable_fast_install=no ;; |
3197 | *) |
3198 | enable_fast_install=no |
3199 | # Look at the argument we got. We use all the common list separators. |
3200 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3201 | for pkg in $enableval; do |
3202 | IFS="$lt_save_ifs" |
3203 | if test "X$pkg" = "X$p"; then |
3204 | enable_fast_install=yes |
3205 | fi |
3206 | done |
3207 | IFS="$lt_save_ifs" |
3208 | ;; |
3209 | esac |
3210 | else |
3211 | enable_fast_install=yes |
3212 | fi; |
3213 | |
3214 | # Make sure we can run config.sub. |
3215 | $ac_config_sub sun4 >/dev/null 2>&1 || |
3216 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
3217 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
3218 | { (exit 1); exit 1; }; } |
3219 | |
3220 | echo "$as_me:$LINENO: checking build system type" >&5 |
3221 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
3222 | if test "${ac_cv_build+set}" = set; then |
3223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3224 | else |
3225 | ac_cv_build_alias=$build_alias |
3226 | test -z "$ac_cv_build_alias" && |
3227 | ac_cv_build_alias=`$ac_config_guess` |
3228 | test -z "$ac_cv_build_alias" && |
3229 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
3230 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
3231 | { (exit 1); exit 1; }; } |
3232 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
3233 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
3234 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
3235 | { (exit 1); exit 1; }; } |
3236 | |
3237 | fi |
3238 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
3239 | echo "${ECHO_T}$ac_cv_build" >&6 |
3240 | build=$ac_cv_build |
3241 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
3242 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
3243 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
3244 | |
3245 | |
3246 | echo "$as_me:$LINENO: checking host system type" >&5 |
3247 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
3248 | if test "${ac_cv_host+set}" = set; then |
3249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3250 | else |
3251 | ac_cv_host_alias=$host_alias |
3252 | test -z "$ac_cv_host_alias" && |
3253 | ac_cv_host_alias=$ac_cv_build_alias |
3254 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
3255 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
3256 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
3257 | { (exit 1); exit 1; }; } |
3258 | |
3259 | fi |
3260 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
3261 | echo "${ECHO_T}$ac_cv_host" >&6 |
3262 | host=$ac_cv_host |
3263 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
3264 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
3265 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
3266 | |
3267 | |
3268 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
3269 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
3270 | if test "${lt_cv_path_SED+set}" = set; then |
3271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3272 | else |
3273 | # Loop through the user's path and test for sed and gsed. |
3274 | # Then use that list of sed's as ones to test for truncation. |
3275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3276 | for as_dir in $PATH |
3277 | do |
3278 | IFS=$as_save_IFS |
3279 | test -z "$as_dir" && as_dir=. |
3280 | for lt_ac_prog in sed gsed; do |
3281 | for ac_exec_ext in '' $ac_executable_extensions; do |
3282 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
3283 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
3284 | fi |
3285 | done |
3286 | done |
3287 | done |
3288 | IFS=$as_save_IFS |
3289 | lt_ac_max=0 |
3290 | lt_ac_count=0 |
3291 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
3292 | # along with /bin/sed that truncates output. |
3293 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
3294 | test ! -f $lt_ac_sed && continue |
3295 | cat /dev/null > conftest.in |
3296 | lt_ac_count=0 |
3297 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
3298 | # Check for GNU sed and select it if it is found. |
3299 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
3300 | lt_cv_path_SED=$lt_ac_sed |
3301 | break |
3302 | fi |
3303 | while true; do |
3304 | cat conftest.in conftest.in >conftest.tmp |
3305 | mv conftest.tmp conftest.in |
3306 | cp conftest.in conftest.nl |
3307 | echo >>conftest.nl |
3308 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
3309 | cmp -s conftest.out conftest.nl || break |
3310 | # 10000 chars as input seems more than enough |
3311 | test $lt_ac_count -gt 10 && break |
3312 | lt_ac_count=`expr $lt_ac_count + 1` |
3313 | if test $lt_ac_count -gt $lt_ac_max; then |
3314 | lt_ac_max=$lt_ac_count |
3315 | lt_cv_path_SED=$lt_ac_sed |
3316 | fi |
3317 | done |
3318 | done |
3319 | |
3320 | fi |
3321 | |
3322 | SED=$lt_cv_path_SED |
3323 | |
3324 | echo "$as_me:$LINENO: result: $SED" >&5 |
3325 | echo "${ECHO_T}$SED" >&6 |
3326 | |
3327 | echo "$as_me:$LINENO: checking for egrep" >&5 |
3328 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
3329 | if test "${ac_cv_prog_egrep+set}" = set; then |
3330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3331 | else |
3332 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
3333 | then ac_cv_prog_egrep='grep -E' |
3334 | else ac_cv_prog_egrep='egrep' |
3335 | fi |
3336 | fi |
3337 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
3338 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
3339 | EGREP=$ac_cv_prog_egrep |
3340 | |
3341 | |
3342 | |
3343 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3344 | if test "${with_gnu_ld+set}" = set; then |
3345 | withval="$with_gnu_ld" |
3346 | test "$withval" = no || with_gnu_ld=yes |
3347 | else |
3348 | with_gnu_ld=no |
3349 | fi; |
3350 | ac_prog=ld |
3351 | if test "$GCC" = yes; then |
3352 | # Check if gcc -print-prog-name=ld gives a path. |
3353 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
3354 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
3355 | case $host in |
3356 | *-*-mingw*) |
3357 | # gcc leaves a trailing carriage return which upsets mingw |
3358 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
3359 | *) |
3360 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
3361 | esac |
3362 | case $ac_prog in |
3363 | # Accept absolute paths. |
3364 | [\\/]* | ?:[\\/]*) |
3365 | re_direlt='/[^/][^/]*/\.\./' |
3366 | # Canonicalize the pathname of ld |
3367 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
3368 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
3369 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
3370 | done |
3371 | test -z "$LD" && LD="$ac_prog" |
3372 | ;; |
3373 | "") |
3374 | # If it fails, then pretend we aren't using GCC. |
3375 | ac_prog=ld |
3376 | ;; |
3377 | *) |
3378 | # If it is relative, then search for the first ld in PATH. |
3379 | with_gnu_ld=unknown |
3380 | ;; |
3381 | esac |
3382 | elif test "$with_gnu_ld" = yes; then |
3383 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3384 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
3385 | else |
3386 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
3387 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
3388 | fi |
3389 | if test "${lt_cv_path_LD+set}" = set; then |
3390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3391 | else |
3392 | if test -z "$LD"; then |
3393 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3394 | for ac_dir in $PATH; do |
3395 | IFS="$lt_save_ifs" |
3396 | test -z "$ac_dir" && ac_dir=. |
3397 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
3398 | lt_cv_path_LD="$ac_dir/$ac_prog" |
3399 | # Check to see if the program is GNU ld. I'd rather use --version, |
3400 | # but apparently some variants of GNU ld only accept -v. |
3401 | # Break only if it was the GNU/non-GNU ld that we prefer. |
3402 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
3403 | *GNU* | *'with BFD'*) |
3404 | test "$with_gnu_ld" != no && break |
3405 | ;; |
3406 | *) |
3407 | test "$with_gnu_ld" != yes && break |
3408 | ;; |
3409 | esac |
3410 | fi |
3411 | done |
3412 | IFS="$lt_save_ifs" |
3413 | else |
3414 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
3415 | fi |
3416 | fi |
3417 | |
3418 | LD="$lt_cv_path_LD" |
3419 | if test -n "$LD"; then |
3420 | echo "$as_me:$LINENO: result: $LD" >&5 |
3421 | echo "${ECHO_T}$LD" >&6 |
3422 | else |
3423 | echo "$as_me:$LINENO: result: no" >&5 |
3424 | echo "${ECHO_T}no" >&6 |
3425 | fi |
3426 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
3427 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
3428 | { (exit 1); exit 1; }; } |
3429 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
3430 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
3431 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
3432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3433 | else |
3434 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
3435 | case `$LD -v 2>&1 </dev/null` in |
3436 | *GNU* | *'with BFD'*) |
3437 | lt_cv_prog_gnu_ld=yes |
3438 | ;; |
3439 | *) |
3440 | lt_cv_prog_gnu_ld=no |
3441 | ;; |
3442 | esac |
3443 | fi |
3444 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
3445 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
3446 | with_gnu_ld=$lt_cv_prog_gnu_ld |
3447 | |
3448 | |
3449 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
3450 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
3451 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
3452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3453 | else |
3454 | lt_cv_ld_reload_flag='-r' |
3455 | fi |
3456 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
3457 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
3458 | reload_flag=$lt_cv_ld_reload_flag |
3459 | case $reload_flag in |
3460 | "" | " "*) ;; |
3461 | *) reload_flag=" $reload_flag" ;; |
3462 | esac |
3463 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3464 | case $host_os in |
3465 | darwin*) |
3466 | if test "$GCC" = yes; then |
3467 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
3468 | else |
3469 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3470 | fi |
3471 | ;; |
3472 | esac |
3473 | |
3474 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
3475 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
3476 | if test "${lt_cv_path_NM+set}" = set; then |
3477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3478 | else |
3479 | if test -n "$NM"; then |
3480 | # Let the user override the test. |
3481 | lt_cv_path_NM="$NM" |
3482 | else |
3483 | lt_nm_to_check="${ac_tool_prefix}nm" |
3484 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
3485 | lt_nm_to_check="$lt_nm_to_check nm" |
3486 | fi |
3487 | for lt_tmp_nm in $lt_nm_to_check; do |
3488 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3489 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
3490 | IFS="$lt_save_ifs" |
3491 | test -z "$ac_dir" && ac_dir=. |
3492 | tmp_nm="$ac_dir/$lt_tmp_nm" |
3493 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
3494 | # Check to see if the nm accepts a BSD-compat flag. |
3495 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
3496 | # nm: unknown option "B" ignored |
3497 | # Tru64's nm complains that /dev/null is an invalid object file |
3498 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
3499 | */dev/null* | *'Invalid file or object type'*) |
3500 | lt_cv_path_NM="$tmp_nm -B" |
3501 | break |
3502 | ;; |
3503 | *) |
3504 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
3505 | */dev/null*) |
3506 | lt_cv_path_NM="$tmp_nm -p" |
3507 | break |
3508 | ;; |
3509 | *) |
3510 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
3511 | continue # so that we can try to find one that supports BSD flags |
3512 | ;; |
3513 | esac |
3514 | ;; |
3515 | esac |
3516 | fi |
3517 | done |
3518 | IFS="$lt_save_ifs" |
3519 | done |
3520 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
3521 | fi |
3522 | fi |
3523 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
3524 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
3525 | NM="$lt_cv_path_NM" |
3526 | |
3527 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
3528 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
3529 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
3530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3531 | else |
3532 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
3533 | lt_cv_file_magic_test_file= |
3534 | lt_cv_deplibs_check_method='unknown' |
3535 | # Need to set the preceding variable on all platforms that support |
3536 | # interlibrary dependencies. |
3537 | # 'none' -- dependencies not supported. |
3538 | # `unknown' -- same as none, but documents that we really don't know. |
3539 | # 'pass_all' -- all dependencies passed with no checks. |
3540 | # 'test_compile' -- check by making test program. |
3541 | # 'file_magic [[regex]]' -- check by looking for files in library path |
3542 | # which responds to the $file_magic_cmd with a given extended regex. |
3543 | # If you have `file' or equivalent on your system and you're not sure |
3544 | # whether `pass_all' will *always* work, you probably want this one. |
3545 | |
3546 | case $host_os in |
3547 | aix4* | aix5*) |
3548 | lt_cv_deplibs_check_method=pass_all |
3549 | ;; |
3550 | |
3551 | beos*) |
3552 | lt_cv_deplibs_check_method=pass_all |
3553 | ;; |
3554 | |
3555 | bsdi[45]*) |
3556 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
3557 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
3558 | lt_cv_file_magic_test_file=/shlib/libc.so |
3559 | ;; |
3560 | |
3561 | cygwin*) |
3562 | # func_win32_libid is a shell function defined in ltmain.sh |
3563 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
3564 | lt_cv_file_magic_cmd='func_win32_libid' |
3565 | ;; |
3566 | |
3567 | mingw* | pw32*) |
3568 | # Base MSYS/MinGW do not provide the 'file' command needed by |
3569 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
3570 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
3571 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
3572 | ;; |
3573 | |
3574 | darwin* | rhapsody*) |
3575 | lt_cv_deplibs_check_method=pass_all |
3576 | ;; |
3577 | |
3578 | freebsd* | kfreebsd*-gnu | dragonfly*) |
3579 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3580 | case $host_cpu in |
3581 | i*86 ) |
3582 | # Not sure whether the presence of OpenBSD here was a mistake. |
3583 | # Let's accept both of them until this is cleared up. |
3584 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
3585 | lt_cv_file_magic_cmd=/usr/bin/file |
3586 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3587 | ;; |
3588 | esac |
3589 | else |
3590 | lt_cv_deplibs_check_method=pass_all |
3591 | fi |
3592 | ;; |
3593 | |
3594 | gnu*) |
3595 | lt_cv_deplibs_check_method=pass_all |
3596 | ;; |
3597 | |
3598 | hpux10.20* | hpux11*) |
3599 | lt_cv_file_magic_cmd=/usr/bin/file |
3600 | case $host_cpu in |
3601 | ia64*) |
3602 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
3603 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
3604 | ;; |
3605 | hppa*64*) |
3606 | 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]' |
3607 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
3608 | ;; |
3609 | *) |
3610 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
3611 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
3612 | ;; |
3613 | esac |
3614 | ;; |
3615 | |
3616 | interix3*) |
3617 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
3618 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
3619 | ;; |
3620 | |
3621 | irix5* | irix6* | nonstopux*) |
3622 | case $LD in |
3623 | *-32|*"-32 ") libmagic=32-bit;; |
3624 | *-n32|*"-n32 ") libmagic=N32;; |
3625 | *-64|*"-64 ") libmagic=64-bit;; |
3626 | *) libmagic=never-match;; |
3627 | esac |
3628 | lt_cv_deplibs_check_method=pass_all |
3629 | ;; |
3630 | |
3631 | # This must be Linux ELF. |
3632 | linux*) |
3633 | lt_cv_deplibs_check_method=pass_all |
3634 | ;; |
3635 | |
3636 | netbsd*) |
3637 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3638 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
3639 | else |
3640 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
3641 | fi |
3642 | ;; |
3643 | |
3644 | newos6*) |
3645 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
3646 | lt_cv_file_magic_cmd=/usr/bin/file |
3647 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
3648 | ;; |
3649 | |
3650 | nto-qnx*) |
3651 | lt_cv_deplibs_check_method=unknown |
3652 | ;; |
3653 | |
3654 | openbsd*) |
3655 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
3656 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
3657 | else |
3658 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
3659 | fi |
3660 | ;; |
3661 | |
3662 | osf3* | osf4* | osf5*) |
3663 | lt_cv_deplibs_check_method=pass_all |
3664 | ;; |
3665 | |
3666 | solaris*) |
3667 | lt_cv_deplibs_check_method=pass_all |
3668 | ;; |
3669 | |
3670 | sysv4 | sysv4.3*) |
3671 | case $host_vendor in |
3672 | motorola) |
3673 | 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]' |
3674 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
3675 | ;; |
3676 | ncr) |
3677 | lt_cv_deplibs_check_method=pass_all |
3678 | ;; |
3679 | sequent) |
3680 | lt_cv_file_magic_cmd='/bin/file' |
3681 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
3682 | ;; |
3683 | sni) |
3684 | lt_cv_file_magic_cmd='/bin/file' |
3685 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
3686 | lt_cv_file_magic_test_file=/lib/libc.so |
3687 | ;; |
3688 | siemens) |
3689 | lt_cv_deplibs_check_method=pass_all |
3690 | ;; |
3691 | pc) |
3692 | lt_cv_deplibs_check_method=pass_all |
3693 | ;; |
3694 | esac |
3695 | ;; |
3696 | |
3697 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
3698 | lt_cv_deplibs_check_method=pass_all |
3699 | ;; |
3700 | esac |
3701 | |
3702 | fi |
3703 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
3704 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
3705 | file_magic_cmd=$lt_cv_file_magic_cmd |
3706 | deplibs_check_method=$lt_cv_deplibs_check_method |
3707 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
3708 | |
3709 | |
3710 | |
3711 | |
3712 | # If no C compiler was specified, use CC. |
3713 | LTCC=${LTCC-"$CC"} |
3714 | |
3715 | # If no C compiler flags were specified, use CFLAGS. |
3716 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
3717 | |
3718 | # Allow CC to be a program name with arguments. |
3719 | compiler=$CC |
3720 | |
3721 | |
3722 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
3723 | if test "${enable_libtool_lock+set}" = set; then |
3724 | enableval="$enable_libtool_lock" |
3725 | |
3726 | fi; |
3727 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
3728 | |
3729 | # Some flags need to be propagated to the compiler or linker for good |
3730 | # libtool support. |
3731 | case $host in |
3732 | ia64-*-hpux*) |
3733 | # Find out which ABI we are using. |
3734 | echo 'int i;' > conftest.$ac_ext |
3735 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3736 | (eval $ac_compile) 2>&5 |
3737 | ac_status=$? |
3738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3739 | (exit $ac_status); }; then |
3740 | case `/usr/bin/file conftest.$ac_objext` in |
3741 | *ELF-32*) |
3742 | HPUX_IA64_MODE="32" |
3743 | ;; |
3744 | *ELF-64*) |
3745 | HPUX_IA64_MODE="64" |
3746 | ;; |
3747 | esac |
3748 | fi |
3749 | rm -rf conftest* |
3750 | ;; |
3751 | *-*-irix6*) |
3752 | # Find out which ABI we are using. |
3753 | echo '#line 3753 "configure"' > conftest.$ac_ext |
3754 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3755 | (eval $ac_compile) 2>&5 |
3756 | ac_status=$? |
3757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3758 | (exit $ac_status); }; then |
3759 | if test "$lt_cv_prog_gnu_ld" = yes; then |
3760 | case `/usr/bin/file conftest.$ac_objext` in |
3761 | *32-bit*) |
3762 | LD="${LD-ld} -melf32bsmip" |
3763 | ;; |
3764 | *N32*) |
3765 | LD="${LD-ld} -melf32bmipn32" |
3766 | ;; |
3767 | *64-bit*) |
3768 | LD="${LD-ld} -melf64bmip" |
3769 | ;; |
3770 | esac |
3771 | else |
3772 | case `/usr/bin/file conftest.$ac_objext` in |
3773 | *32-bit*) |
3774 | LD="${LD-ld} -32" |
3775 | ;; |
3776 | *N32*) |
3777 | LD="${LD-ld} -n32" |
3778 | ;; |
3779 | *64-bit*) |
3780 | LD="${LD-ld} -64" |
3781 | ;; |
3782 | esac |
3783 | fi |
3784 | fi |
3785 | rm -rf conftest* |
3786 | ;; |
3787 | |
3788 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
3789 | # Find out which ABI we are using. |
3790 | echo 'int i;' > conftest.$ac_ext |
3791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3792 | (eval $ac_compile) 2>&5 |
3793 | ac_status=$? |
3794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3795 | (exit $ac_status); }; then |
3796 | case `/usr/bin/file conftest.o` in |
3797 | *32-bit*) |
3798 | case $host in |
3799 | x86_64-*linux*) |
3800 | LD="${LD-ld} -m elf_i386" |
3801 | ;; |
3802 | ppc64-*linux*|powerpc64-*linux*) |
3803 | LD="${LD-ld} -m elf32ppclinux" |
3804 | ;; |
3805 | s390x-*linux*) |
3806 | LD="${LD-ld} -m elf_s390" |
3807 | ;; |
3808 | sparc64-*linux*) |
3809 | LD="${LD-ld} -m elf32_sparc" |
3810 | ;; |
3811 | esac |
3812 | ;; |
3813 | *64-bit*) |
3814 | case $host in |
3815 | x86_64-*linux*) |
3816 | LD="${LD-ld} -m elf_x86_64" |
3817 | ;; |
3818 | ppc*-*linux*|powerpc*-*linux*) |
3819 | LD="${LD-ld} -m elf64ppc" |
3820 | ;; |
3821 | s390*-*linux*) |
3822 | LD="${LD-ld} -m elf64_s390" |
3823 | ;; |
3824 | sparc*-*linux*) |
3825 | LD="${LD-ld} -m elf64_sparc" |
3826 | ;; |
3827 | esac |
3828 | ;; |
3829 | esac |
3830 | fi |
3831 | rm -rf conftest* |
3832 | ;; |
3833 | |
3834 | *-*-sco3.2v5*) |
3835 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
3836 | SAVE_CFLAGS="$CFLAGS" |
3837 | CFLAGS="$CFLAGS -belf" |
3838 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
3839 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
3840 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
3841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3842 | else |
3843 | ac_ext=c |
3844 | ac_cpp='$CPP $CPPFLAGS' |
3845 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3846 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3847 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3848 | |
3849 | cat >conftest.$ac_ext <<_ACEOF |
3850 | /* confdefs.h. */ |
3851 | _ACEOF |
3852 | cat confdefs.h >>conftest.$ac_ext |
3853 | cat >>conftest.$ac_ext <<_ACEOF |
3854 | /* end confdefs.h. */ |
3855 | |
3856 | int |
3857 | main () |
3858 | { |
3859 | |
3860 | ; |
3861 | return 0; |
3862 | } |
3863 | _ACEOF |
3864 | rm -f conftest.$ac_objext conftest$ac_exeext |
3865 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3866 | (eval $ac_link) 2>conftest.er1 |
3867 | ac_status=$? |
3868 | grep -v '^ *+' conftest.er1 >conftest.err |
3869 | rm -f conftest.er1 |
3870 | cat conftest.err >&5 |
3871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3872 | (exit $ac_status); } && |
3873 | { ac_try='test -z "$ac_c_werror_flag" |
3874 | || test ! -s conftest.err' |
3875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3876 | (eval $ac_try) 2>&5 |
3877 | ac_status=$? |
3878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3879 | (exit $ac_status); }; } && |
3880 | { ac_try='test -s conftest$ac_exeext' |
3881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3882 | (eval $ac_try) 2>&5 |
3883 | ac_status=$? |
3884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3885 | (exit $ac_status); }; }; then |
3886 | lt_cv_cc_needs_belf=yes |
3887 | else |
3888 | echo "$as_me: failed program was:" >&5 |
3889 | sed 's/^/| /' conftest.$ac_ext >&5 |
3890 | |
3891 | lt_cv_cc_needs_belf=no |
3892 | fi |
3893 | rm -f conftest.err conftest.$ac_objext \ |
3894 | conftest$ac_exeext conftest.$ac_ext |
3895 | ac_ext=c |
3896 | ac_cpp='$CPP $CPPFLAGS' |
3897 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3898 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3899 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3900 | |
3901 | fi |
3902 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
3903 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
3904 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
3905 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
3906 | CFLAGS="$SAVE_CFLAGS" |
3907 | fi |
3908 | ;; |
3909 | sparc*-*solaris*) |
3910 | # Find out which ABI we are using. |
3911 | echo 'int i;' > conftest.$ac_ext |
3912 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3913 | (eval $ac_compile) 2>&5 |
3914 | ac_status=$? |
3915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3916 | (exit $ac_status); }; then |
3917 | case `/usr/bin/file conftest.o` in |
3918 | *64-bit*) |
3919 | case $lt_cv_prog_gnu_ld in |
3920 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
3921 | *) LD="${LD-ld} -64" ;; |
3922 | esac |
3923 | ;; |
3924 | esac |
3925 | fi |
3926 | rm -rf conftest* |
3927 | ;; |
3928 | |
3929 | |
3930 | esac |
3931 | |
3932 | need_locks="$enable_libtool_lock" |
3933 | |
3934 | |
3935 | ac_ext=c |
3936 | ac_cpp='$CPP $CPPFLAGS' |
3937 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3938 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3939 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3940 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3941 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
3942 | # On Suns, sometimes $CPP names a directory. |
3943 | if test -n "$CPP" && test -d "$CPP"; then |
3944 | CPP= |
3945 | fi |
3946 | if test -z "$CPP"; then |
3947 | if test "${ac_cv_prog_CPP+set}" = set; then |
3948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3949 | else |
3950 | # Double quotes because CPP needs to be expanded |
3951 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
3952 | do |
3953 | ac_preproc_ok=false |
3954 | for ac_c_preproc_warn_flag in '' yes |
3955 | do |
3956 | # Use a header file that comes with gcc, so configuring glibc |
3957 | # with a fresh cross-compiler works. |
3958 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3959 | # <limits.h> exists even on freestanding compilers. |
3960 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3961 | # not just through cpp. "Syntax error" is here to catch this case. |
3962 | cat >conftest.$ac_ext <<_ACEOF |
3963 | /* confdefs.h. */ |
3964 | _ACEOF |
3965 | cat confdefs.h >>conftest.$ac_ext |
3966 | cat >>conftest.$ac_ext <<_ACEOF |
3967 | /* end confdefs.h. */ |
3968 | #ifdef __STDC__ |
3969 | # include <limits.h> |
3970 | #else |
3971 | # include <assert.h> |
3972 | #endif |
3973 | Syntax error |
3974 | _ACEOF |
3975 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3976 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3977 | ac_status=$? |
3978 | grep -v '^ *+' conftest.er1 >conftest.err |
3979 | rm -f conftest.er1 |
3980 | cat conftest.err >&5 |
3981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3982 | (exit $ac_status); } >/dev/null; then |
3983 | if test -s conftest.err; then |
3984 | ac_cpp_err=$ac_c_preproc_warn_flag |
3985 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3986 | else |
3987 | ac_cpp_err= |
3988 | fi |
3989 | else |
3990 | ac_cpp_err=yes |
3991 | fi |
3992 | if test -z "$ac_cpp_err"; then |
3993 | : |
3994 | else |
3995 | echo "$as_me: failed program was:" >&5 |
3996 | sed 's/^/| /' conftest.$ac_ext >&5 |
3997 | |
3998 | # Broken: fails on valid input. |
3999 | continue |
4000 | fi |
4001 | rm -f conftest.err conftest.$ac_ext |
4002 | |
4003 | # OK, works on sane cases. Now check whether non-existent headers |
4004 | # can be detected and how. |
4005 | cat >conftest.$ac_ext <<_ACEOF |
4006 | /* confdefs.h. */ |
4007 | _ACEOF |
4008 | cat confdefs.h >>conftest.$ac_ext |
4009 | cat >>conftest.$ac_ext <<_ACEOF |
4010 | /* end confdefs.h. */ |
4011 | #include <ac_nonexistent.h> |
4012 | _ACEOF |
4013 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4014 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4015 | ac_status=$? |
4016 | grep -v '^ *+' conftest.er1 >conftest.err |
4017 | rm -f conftest.er1 |
4018 | cat conftest.err >&5 |
4019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4020 | (exit $ac_status); } >/dev/null; then |
4021 | if test -s conftest.err; then |
4022 | ac_cpp_err=$ac_c_preproc_warn_flag |
4023 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4024 | else |
4025 | ac_cpp_err= |
4026 | fi |
4027 | else |
4028 | ac_cpp_err=yes |
4029 | fi |
4030 | if test -z "$ac_cpp_err"; then |
4031 | # Broken: success on invalid input. |
4032 | continue |
4033 | else |
4034 | echo "$as_me: failed program was:" >&5 |
4035 | sed 's/^/| /' conftest.$ac_ext >&5 |
4036 | |
4037 | # Passes both tests. |
4038 | ac_preproc_ok=: |
4039 | break |
4040 | fi |
4041 | rm -f conftest.err conftest.$ac_ext |
4042 | |
4043 | done |
4044 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4045 | rm -f conftest.err conftest.$ac_ext |
4046 | if $ac_preproc_ok; then |
4047 | break |
4048 | fi |
4049 | |
4050 | done |
4051 | ac_cv_prog_CPP=$CPP |
4052 | |
4053 | fi |
4054 | CPP=$ac_cv_prog_CPP |
4055 | else |
4056 | ac_cv_prog_CPP=$CPP |
4057 | fi |
4058 | echo "$as_me:$LINENO: result: $CPP" >&5 |
4059 | echo "${ECHO_T}$CPP" >&6 |
4060 | ac_preproc_ok=false |
4061 | for ac_c_preproc_warn_flag in '' yes |
4062 | do |
4063 | # Use a header file that comes with gcc, so configuring glibc |
4064 | # with a fresh cross-compiler works. |
4065 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4066 | # <limits.h> exists even on freestanding compilers. |
4067 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4068 | # not just through cpp. "Syntax error" is here to catch this case. |
4069 | cat >conftest.$ac_ext <<_ACEOF |
4070 | /* confdefs.h. */ |
4071 | _ACEOF |
4072 | cat confdefs.h >>conftest.$ac_ext |
4073 | cat >>conftest.$ac_ext <<_ACEOF |
4074 | /* end confdefs.h. */ |
4075 | #ifdef __STDC__ |
4076 | # include <limits.h> |
4077 | #else |
4078 | # include <assert.h> |
4079 | #endif |
4080 | Syntax error |
4081 | _ACEOF |
4082 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4083 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4084 | ac_status=$? |
4085 | grep -v '^ *+' conftest.er1 >conftest.err |
4086 | rm -f conftest.er1 |
4087 | cat conftest.err >&5 |
4088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4089 | (exit $ac_status); } >/dev/null; then |
4090 | if test -s conftest.err; then |
4091 | ac_cpp_err=$ac_c_preproc_warn_flag |
4092 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4093 | else |
4094 | ac_cpp_err= |
4095 | fi |
4096 | else |
4097 | ac_cpp_err=yes |
4098 | fi |
4099 | if test -z "$ac_cpp_err"; then |
4100 | : |
4101 | else |
4102 | echo "$as_me: failed program was:" >&5 |
4103 | sed 's/^/| /' conftest.$ac_ext >&5 |
4104 | |
4105 | # Broken: fails on valid input. |
4106 | continue |
4107 | fi |
4108 | rm -f conftest.err conftest.$ac_ext |
4109 | |
4110 | # OK, works on sane cases. Now check whether non-existent headers |
4111 | # can be detected and how. |
4112 | cat >conftest.$ac_ext <<_ACEOF |
4113 | /* confdefs.h. */ |
4114 | _ACEOF |
4115 | cat confdefs.h >>conftest.$ac_ext |
4116 | cat >>conftest.$ac_ext <<_ACEOF |
4117 | /* end confdefs.h. */ |
4118 | #include <ac_nonexistent.h> |
4119 | _ACEOF |
4120 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4121 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4122 | ac_status=$? |
4123 | grep -v '^ *+' conftest.er1 >conftest.err |
4124 | rm -f conftest.er1 |
4125 | cat conftest.err >&5 |
4126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4127 | (exit $ac_status); } >/dev/null; then |
4128 | if test -s conftest.err; then |
4129 | ac_cpp_err=$ac_c_preproc_warn_flag |
4130 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4131 | else |
4132 | ac_cpp_err= |
4133 | fi |
4134 | else |
4135 | ac_cpp_err=yes |
4136 | fi |
4137 | if test -z "$ac_cpp_err"; then |
4138 | # Broken: success on invalid input. |
4139 | continue |
4140 | else |
4141 | echo "$as_me: failed program was:" >&5 |
4142 | sed 's/^/| /' conftest.$ac_ext >&5 |
4143 | |
4144 | # Passes both tests. |
4145 | ac_preproc_ok=: |
4146 | break |
4147 | fi |
4148 | rm -f conftest.err conftest.$ac_ext |
4149 | |
4150 | done |
4151 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4152 | rm -f conftest.err conftest.$ac_ext |
4153 | if $ac_preproc_ok; then |
4154 | : |
4155 | else |
4156 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
4157 | See \`config.log' for more details." >&5 |
4158 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
4159 | See \`config.log' for more details." >&2;} |
4160 | { (exit 1); exit 1; }; } |
4161 | fi |
4162 | |
4163 | ac_ext=c |
4164 | ac_cpp='$CPP $CPPFLAGS' |
4165 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4166 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4167 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4168 | |
4169 | |
4170 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4171 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
4172 | if test "${ac_cv_header_stdc+set}" = set; then |
4173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4174 | else |
4175 | cat >conftest.$ac_ext <<_ACEOF |
4176 | /* confdefs.h. */ |
4177 | _ACEOF |
4178 | cat confdefs.h >>conftest.$ac_ext |
4179 | cat >>conftest.$ac_ext <<_ACEOF |
4180 | /* end confdefs.h. */ |
4181 | #include <stdlib.h> |
4182 | #include <stdarg.h> |
4183 | #include <string.h> |
4184 | #include <float.h> |
4185 | |
4186 | int |
4187 | main () |
4188 | { |
4189 | |
4190 | ; |
4191 | return 0; |
4192 | } |
4193 | _ACEOF |
4194 | rm -f conftest.$ac_objext |
4195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4196 | (eval $ac_compile) 2>conftest.er1 |
4197 | ac_status=$? |
4198 | grep -v '^ *+' conftest.er1 >conftest.err |
4199 | rm -f conftest.er1 |
4200 | cat conftest.err >&5 |
4201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4202 | (exit $ac_status); } && |
4203 | { ac_try='test -z "$ac_c_werror_flag" |
4204 | || test ! -s conftest.err' |
4205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4206 | (eval $ac_try) 2>&5 |
4207 | ac_status=$? |
4208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4209 | (exit $ac_status); }; } && |
4210 | { ac_try='test -s conftest.$ac_objext' |
4211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4212 | (eval $ac_try) 2>&5 |
4213 | ac_status=$? |
4214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4215 | (exit $ac_status); }; }; then |
4216 | ac_cv_header_stdc=yes |
4217 | else |
4218 | echo "$as_me: failed program was:" >&5 |
4219 | sed 's/^/| /' conftest.$ac_ext >&5 |
4220 | |
4221 | ac_cv_header_stdc=no |
4222 | fi |
4223 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4224 | |
4225 | if test $ac_cv_header_stdc = yes; then |
4226 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
4227 | cat >conftest.$ac_ext <<_ACEOF |
4228 | /* confdefs.h. */ |
4229 | _ACEOF |
4230 | cat confdefs.h >>conftest.$ac_ext |
4231 | cat >>conftest.$ac_ext <<_ACEOF |
4232 | /* end confdefs.h. */ |
4233 | #include <string.h> |
4234 | |
4235 | _ACEOF |
4236 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4237 | $EGREP "memchr" >/dev/null 2>&1; then |
4238 | : |
4239 | else |
4240 | ac_cv_header_stdc=no |
4241 | fi |
4242 | rm -f conftest* |
4243 | |
4244 | fi |
4245 | |
4246 | if test $ac_cv_header_stdc = yes; then |
4247 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
4248 | cat >conftest.$ac_ext <<_ACEOF |
4249 | /* confdefs.h. */ |
4250 | _ACEOF |
4251 | cat confdefs.h >>conftest.$ac_ext |
4252 | cat >>conftest.$ac_ext <<_ACEOF |
4253 | /* end confdefs.h. */ |
4254 | #include <stdlib.h> |
4255 | |
4256 | _ACEOF |
4257 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4258 | $EGREP "free" >/dev/null 2>&1; then |
4259 | : |
4260 | else |
4261 | ac_cv_header_stdc=no |
4262 | fi |
4263 | rm -f conftest* |
4264 | |
4265 | fi |
4266 | |
4267 | if test $ac_cv_header_stdc = yes; then |
4268 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
4269 | if test "$cross_compiling" = yes; then |
4270 | : |
4271 | else |
4272 | cat >conftest.$ac_ext <<_ACEOF |
4273 | /* confdefs.h. */ |
4274 | _ACEOF |
4275 | cat confdefs.h >>conftest.$ac_ext |
4276 | cat >>conftest.$ac_ext <<_ACEOF |
4277 | /* end confdefs.h. */ |
4278 | #include <ctype.h> |
4279 | #if ((' ' & 0x0FF) == 0x020) |
4280 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
4281 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
4282 | #else |
4283 | # define ISLOWER(c) \ |
4284 | (('a' <= (c) && (c) <= 'i') \ |
4285 | || ('j' <= (c) && (c) <= 'r') \ |
4286 | || ('s' <= (c) && (c) <= 'z')) |
4287 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4288 | #endif |
4289 | |
4290 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4291 | int |
4292 | main () |
4293 | { |
4294 | int i; |
4295 | for (i = 0; i < 256; i++) |
4296 | if (XOR (islower (i), ISLOWER (i)) |
4297 | || toupper (i) != TOUPPER (i)) |
4298 | exit(2); |
4299 | exit (0); |
4300 | } |
4301 | _ACEOF |
4302 | rm -f conftest$ac_exeext |
4303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4304 | (eval $ac_link) 2>&5 |
4305 | ac_status=$? |
4306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4307 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4309 | (eval $ac_try) 2>&5 |
4310 | ac_status=$? |
4311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4312 | (exit $ac_status); }; }; then |
4313 | : |
4314 | else |
4315 | echo "$as_me: program exited with status $ac_status" >&5 |
4316 | echo "$as_me: failed program was:" >&5 |
4317 | sed 's/^/| /' conftest.$ac_ext >&5 |
4318 | |
4319 | ( exit $ac_status ) |
4320 | ac_cv_header_stdc=no |
4321 | fi |
4322 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4323 | fi |
4324 | fi |
4325 | fi |
4326 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4327 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
4328 | if test $ac_cv_header_stdc = yes; then |
4329 | |
4330 | cat >>confdefs.h <<\_ACEOF |
4331 | #define STDC_HEADERS 1 |
4332 | _ACEOF |
4333 | |
4334 | fi |
4335 | |
4336 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4337 | |
4338 | |
4339 | |
4340 | |
4341 | |
4342 | |
4343 | |
4344 | |
4345 | |
4346 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4347 | inttypes.h stdint.h unistd.h |
4348 | do |
4349 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4350 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4351 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4352 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4354 | else |
4355 | cat >conftest.$ac_ext <<_ACEOF |
4356 | /* confdefs.h. */ |
4357 | _ACEOF |
4358 | cat confdefs.h >>conftest.$ac_ext |
4359 | cat >>conftest.$ac_ext <<_ACEOF |
4360 | /* end confdefs.h. */ |
4361 | $ac_includes_default |
4362 | |
4363 | #include <$ac_header> |
4364 | _ACEOF |
4365 | rm -f conftest.$ac_objext |
4366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4367 | (eval $ac_compile) 2>conftest.er1 |
4368 | ac_status=$? |
4369 | grep -v '^ *+' conftest.er1 >conftest.err |
4370 | rm -f conftest.er1 |
4371 | cat conftest.err >&5 |
4372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4373 | (exit $ac_status); } && |
4374 | { ac_try='test -z "$ac_c_werror_flag" |
4375 | || test ! -s conftest.err' |
4376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4377 | (eval $ac_try) 2>&5 |
4378 | ac_status=$? |
4379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4380 | (exit $ac_status); }; } && |
4381 | { ac_try='test -s conftest.$ac_objext' |
4382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4383 | (eval $ac_try) 2>&5 |
4384 | ac_status=$? |
4385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4386 | (exit $ac_status); }; }; then |
4387 | eval "$as_ac_Header=yes" |
4388 | else |
4389 | echo "$as_me: failed program was:" >&5 |
4390 | sed 's/^/| /' conftest.$ac_ext >&5 |
4391 | |
4392 | eval "$as_ac_Header=no" |
4393 | fi |
4394 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4395 | fi |
4396 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4397 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4398 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4399 | cat >>confdefs.h <<_ACEOF |
4400 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4401 | _ACEOF |
4402 | |
4403 | fi |
4404 | |
4405 | done |
4406 | |
4407 | |
4408 | |
4409 | for ac_header in dlfcn.h |
4410 | do |
4411 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4412 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4413 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4414 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4415 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4417 | fi |
4418 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4419 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4420 | else |
4421 | # Is the header compilable? |
4422 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4423 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
4424 | cat >conftest.$ac_ext <<_ACEOF |
4425 | /* confdefs.h. */ |
4426 | _ACEOF |
4427 | cat confdefs.h >>conftest.$ac_ext |
4428 | cat >>conftest.$ac_ext <<_ACEOF |
4429 | /* end confdefs.h. */ |
4430 | $ac_includes_default |
4431 | #include <$ac_header> |
4432 | _ACEOF |
4433 | rm -f conftest.$ac_objext |
4434 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4435 | (eval $ac_compile) 2>conftest.er1 |
4436 | ac_status=$? |
4437 | grep -v '^ *+' conftest.er1 >conftest.err |
4438 | rm -f conftest.er1 |
4439 | cat conftest.err >&5 |
4440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4441 | (exit $ac_status); } && |
4442 | { ac_try='test -z "$ac_c_werror_flag" |
4443 | || test ! -s conftest.err' |
4444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4445 | (eval $ac_try) 2>&5 |
4446 | ac_status=$? |
4447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4448 | (exit $ac_status); }; } && |
4449 | { ac_try='test -s conftest.$ac_objext' |
4450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4451 | (eval $ac_try) 2>&5 |
4452 | ac_status=$? |
4453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4454 | (exit $ac_status); }; }; then |
4455 | ac_header_compiler=yes |
4456 | else |
4457 | echo "$as_me: failed program was:" >&5 |
4458 | sed 's/^/| /' conftest.$ac_ext >&5 |
4459 | |
4460 | ac_header_compiler=no |
4461 | fi |
4462 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4463 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4464 | echo "${ECHO_T}$ac_header_compiler" >&6 |
4465 | |
4466 | # Is the header present? |
4467 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4468 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
4469 | cat >conftest.$ac_ext <<_ACEOF |
4470 | /* confdefs.h. */ |
4471 | _ACEOF |
4472 | cat confdefs.h >>conftest.$ac_ext |
4473 | cat >>conftest.$ac_ext <<_ACEOF |
4474 | /* end confdefs.h. */ |
4475 | #include <$ac_header> |
4476 | _ACEOF |
4477 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4478 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4479 | ac_status=$? |
4480 | grep -v '^ *+' conftest.er1 >conftest.err |
4481 | rm -f conftest.er1 |
4482 | cat conftest.err >&5 |
4483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4484 | (exit $ac_status); } >/dev/null; then |
4485 | if test -s conftest.err; then |
4486 | ac_cpp_err=$ac_c_preproc_warn_flag |
4487 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4488 | else |
4489 | ac_cpp_err= |
4490 | fi |
4491 | else |
4492 | ac_cpp_err=yes |
4493 | fi |
4494 | if test -z "$ac_cpp_err"; then |
4495 | ac_header_preproc=yes |
4496 | else |
4497 | echo "$as_me: failed program was:" >&5 |
4498 | sed 's/^/| /' conftest.$ac_ext >&5 |
4499 | |
4500 | ac_header_preproc=no |
4501 | fi |
4502 | rm -f conftest.err conftest.$ac_ext |
4503 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4504 | echo "${ECHO_T}$ac_header_preproc" >&6 |
4505 | |
4506 | # So? What about this header? |
4507 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4508 | yes:no: ) |
4509 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4510 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
4511 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4512 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
4513 | ac_header_preproc=yes |
4514 | ;; |
4515 | no:yes:* ) |
4516 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4517 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
4518 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4519 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
4520 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
4521 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
4522 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
4523 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
4524 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4525 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
4526 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4527 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
4528 | ( |
4529 | cat <<\_ASBOX |
4530 | ## -------------------------------------------------- ## |
4531 | ## Report this to courier-users@lists.sourceforge.net ## |
4532 | ## -------------------------------------------------- ## |
4533 | _ASBOX |
4534 | ) | |
4535 | sed "s/^/$as_me: WARNING: /" >&2 |
4536 | ;; |
4537 | esac |
4538 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4539 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4540 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4542 | else |
4543 | eval "$as_ac_Header=\$ac_header_preproc" |
4544 | fi |
4545 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4546 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4547 | |
4548 | fi |
4549 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4550 | cat >>confdefs.h <<_ACEOF |
4551 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4552 | _ACEOF |
4553 | |
4554 | fi |
4555 | |
4556 | done |
4557 | |
4558 | ac_ext=cc |
4559 | ac_cpp='$CXXCPP $CPPFLAGS' |
4560 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4561 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4562 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4563 | if test -n "$ac_tool_prefix"; then |
4564 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
4565 | do |
4566 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
4567 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
4568 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4569 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4570 | if test "${ac_cv_prog_CXX+set}" = set; then |
4571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4572 | else |
4573 | if test -n "$CXX"; then |
4574 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
4575 | else |
4576 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4577 | for as_dir in $PATH |
4578 | do |
4579 | IFS=$as_save_IFS |
4580 | test -z "$as_dir" && as_dir=. |
4581 | for ac_exec_ext in '' $ac_executable_extensions; do |
4582 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4583 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
4584 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4585 | break 2 |
4586 | fi |
4587 | done |
4588 | done |
4589 | |
4590 | fi |
4591 | fi |
4592 | CXX=$ac_cv_prog_CXX |
4593 | if test -n "$CXX"; then |
4594 | echo "$as_me:$LINENO: result: $CXX" >&5 |
4595 | echo "${ECHO_T}$CXX" >&6 |
4596 | else |
4597 | echo "$as_me:$LINENO: result: no" >&5 |
4598 | echo "${ECHO_T}no" >&6 |
4599 | fi |
4600 | |
4601 | test -n "$CXX" && break |
4602 | done |
4603 | fi |
4604 | if test -z "$CXX"; then |
4605 | ac_ct_CXX=$CXX |
4606 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
4607 | do |
4608 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
4609 | set dummy $ac_prog; ac_word=$2 |
4610 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4611 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4612 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
4613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4614 | else |
4615 | if test -n "$ac_ct_CXX"; then |
4616 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
4617 | else |
4618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4619 | for as_dir in $PATH |
4620 | do |
4621 | IFS=$as_save_IFS |
4622 | test -z "$as_dir" && as_dir=. |
4623 | for ac_exec_ext in '' $ac_executable_extensions; do |
4624 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4625 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
4626 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4627 | break 2 |
4628 | fi |
4629 | done |
4630 | done |
4631 | |
4632 | fi |
4633 | fi |
4634 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4635 | if test -n "$ac_ct_CXX"; then |
4636 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
4637 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
4638 | else |
4639 | echo "$as_me:$LINENO: result: no" >&5 |
4640 | echo "${ECHO_T}no" >&6 |
4641 | fi |
4642 | |
4643 | test -n "$ac_ct_CXX" && break |
4644 | done |
4645 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
4646 | |
4647 | CXX=$ac_ct_CXX |
4648 | fi |
4649 | |
4650 | |
4651 | # Provide some information about the compiler. |
4652 | echo "$as_me:$LINENO:" \ |
4653 | "checking for C++ compiler version" >&5 |
4654 | ac_compiler=`set X $ac_compile; echo $2` |
4655 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
4656 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
4657 | ac_status=$? |
4658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4659 | (exit $ac_status); } |
4660 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
4661 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
4662 | ac_status=$? |
4663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4664 | (exit $ac_status); } |
4665 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
4666 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
4667 | ac_status=$? |
4668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4669 | (exit $ac_status); } |
4670 | |
4671 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
4672 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
4673 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
4674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4675 | else |
4676 | cat >conftest.$ac_ext <<_ACEOF |
4677 | /* confdefs.h. */ |
4678 | _ACEOF |
4679 | cat confdefs.h >>conftest.$ac_ext |
4680 | cat >>conftest.$ac_ext <<_ACEOF |
4681 | /* end confdefs.h. */ |
4682 | |
4683 | int |
4684 | main () |
4685 | { |
4686 | #ifndef __GNUC__ |
4687 | choke me |
4688 | #endif |
4689 | |
4690 | ; |
4691 | return 0; |
4692 | } |
4693 | _ACEOF |
4694 | rm -f conftest.$ac_objext |
4695 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4696 | (eval $ac_compile) 2>conftest.er1 |
4697 | ac_status=$? |
4698 | grep -v '^ *+' conftest.er1 >conftest.err |
4699 | rm -f conftest.er1 |
4700 | cat conftest.err >&5 |
4701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4702 | (exit $ac_status); } && |
4703 | { ac_try='test -z "$ac_cxx_werror_flag" |
4704 | || test ! -s conftest.err' |
4705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4706 | (eval $ac_try) 2>&5 |
4707 | ac_status=$? |
4708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4709 | (exit $ac_status); }; } && |
4710 | { ac_try='test -s conftest.$ac_objext' |
4711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4712 | (eval $ac_try) 2>&5 |
4713 | ac_status=$? |
4714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4715 | (exit $ac_status); }; }; then |
4716 | ac_compiler_gnu=yes |
4717 | else |
4718 | echo "$as_me: failed program was:" >&5 |
4719 | sed 's/^/| /' conftest.$ac_ext >&5 |
4720 | |
4721 | ac_compiler_gnu=no |
4722 | fi |
4723 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4724 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4725 | |
4726 | fi |
4727 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
4728 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
4729 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
4730 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4731 | ac_save_CXXFLAGS=$CXXFLAGS |
4732 | CXXFLAGS="-g" |
4733 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
4734 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
4735 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
4736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4737 | else |
4738 | cat >conftest.$ac_ext <<_ACEOF |
4739 | /* confdefs.h. */ |
4740 | _ACEOF |
4741 | cat confdefs.h >>conftest.$ac_ext |
4742 | cat >>conftest.$ac_ext <<_ACEOF |
4743 | /* end confdefs.h. */ |
4744 | |
4745 | int |
4746 | main () |
4747 | { |
4748 | |
4749 | ; |
4750 | return 0; |
4751 | } |
4752 | _ACEOF |
4753 | rm -f conftest.$ac_objext |
4754 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4755 | (eval $ac_compile) 2>conftest.er1 |
4756 | ac_status=$? |
4757 | grep -v '^ *+' conftest.er1 >conftest.err |
4758 | rm -f conftest.er1 |
4759 | cat conftest.err >&5 |
4760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4761 | (exit $ac_status); } && |
4762 | { ac_try='test -z "$ac_cxx_werror_flag" |
4763 | || test ! -s conftest.err' |
4764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4765 | (eval $ac_try) 2>&5 |
4766 | ac_status=$? |
4767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4768 | (exit $ac_status); }; } && |
4769 | { ac_try='test -s conftest.$ac_objext' |
4770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4771 | (eval $ac_try) 2>&5 |
4772 | ac_status=$? |
4773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4774 | (exit $ac_status); }; }; then |
4775 | ac_cv_prog_cxx_g=yes |
4776 | else |
4777 | echo "$as_me: failed program was:" >&5 |
4778 | sed 's/^/| /' conftest.$ac_ext >&5 |
4779 | |
4780 | ac_cv_prog_cxx_g=no |
4781 | fi |
4782 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4783 | fi |
4784 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
4785 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
4786 | if test "$ac_test_CXXFLAGS" = set; then |
4787 | CXXFLAGS=$ac_save_CXXFLAGS |
4788 | elif test $ac_cv_prog_cxx_g = yes; then |
4789 | if test "$GXX" = yes; then |
4790 | CXXFLAGS="-g -O2" |
4791 | else |
4792 | CXXFLAGS="-g" |
4793 | fi |
4794 | else |
4795 | if test "$GXX" = yes; then |
4796 | CXXFLAGS="-O2" |
4797 | else |
4798 | CXXFLAGS= |
4799 | fi |
4800 | fi |
4801 | for ac_declaration in \ |
4802 | '' \ |
4803 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
4804 | 'extern "C" void std::exit (int); using std::exit;' \ |
4805 | 'extern "C" void exit (int) throw ();' \ |
4806 | 'extern "C" void exit (int);' \ |
4807 | 'void exit (int);' |
4808 | do |
4809 | cat >conftest.$ac_ext <<_ACEOF |
4810 | /* confdefs.h. */ |
4811 | _ACEOF |
4812 | cat confdefs.h >>conftest.$ac_ext |
4813 | cat >>conftest.$ac_ext <<_ACEOF |
4814 | /* end confdefs.h. */ |
4815 | $ac_declaration |
4816 | #include <stdlib.h> |
4817 | int |
4818 | main () |
4819 | { |
4820 | exit (42); |
4821 | ; |
4822 | return 0; |
4823 | } |
4824 | _ACEOF |
4825 | rm -f conftest.$ac_objext |
4826 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4827 | (eval $ac_compile) 2>conftest.er1 |
4828 | ac_status=$? |
4829 | grep -v '^ *+' conftest.er1 >conftest.err |
4830 | rm -f conftest.er1 |
4831 | cat conftest.err >&5 |
4832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4833 | (exit $ac_status); } && |
4834 | { ac_try='test -z "$ac_cxx_werror_flag" |
4835 | || test ! -s conftest.err' |
4836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4837 | (eval $ac_try) 2>&5 |
4838 | ac_status=$? |
4839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4840 | (exit $ac_status); }; } && |
4841 | { ac_try='test -s conftest.$ac_objext' |
4842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4843 | (eval $ac_try) 2>&5 |
4844 | ac_status=$? |
4845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4846 | (exit $ac_status); }; }; then |
4847 | : |
4848 | else |
4849 | echo "$as_me: failed program was:" >&5 |
4850 | sed 's/^/| /' conftest.$ac_ext >&5 |
4851 | |
4852 | continue |
4853 | fi |
4854 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4855 | cat >conftest.$ac_ext <<_ACEOF |
4856 | /* confdefs.h. */ |
4857 | _ACEOF |
4858 | cat confdefs.h >>conftest.$ac_ext |
4859 | cat >>conftest.$ac_ext <<_ACEOF |
4860 | /* end confdefs.h. */ |
4861 | $ac_declaration |
4862 | int |
4863 | main () |
4864 | { |
4865 | exit (42); |
4866 | ; |
4867 | return 0; |
4868 | } |
4869 | _ACEOF |
4870 | rm -f conftest.$ac_objext |
4871 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4872 | (eval $ac_compile) 2>conftest.er1 |
4873 | ac_status=$? |
4874 | grep -v '^ *+' conftest.er1 >conftest.err |
4875 | rm -f conftest.er1 |
4876 | cat conftest.err >&5 |
4877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4878 | (exit $ac_status); } && |
4879 | { ac_try='test -z "$ac_cxx_werror_flag" |
4880 | || test ! -s conftest.err' |
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); }; } && |
4886 | { ac_try='test -s conftest.$ac_objext' |
4887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4888 | (eval $ac_try) 2>&5 |
4889 | ac_status=$? |
4890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4891 | (exit $ac_status); }; }; then |
4892 | break |
4893 | else |
4894 | echo "$as_me: failed program was:" >&5 |
4895 | sed 's/^/| /' conftest.$ac_ext >&5 |
4896 | |
4897 | fi |
4898 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4899 | done |
4900 | rm -f conftest* |
4901 | if test -n "$ac_declaration"; then |
4902 | echo '#ifdef __cplusplus' >>confdefs.h |
4903 | echo $ac_declaration >>confdefs.h |
4904 | echo '#endif' >>confdefs.h |
4905 | fi |
4906 | |
4907 | ac_ext=cc |
4908 | ac_cpp='$CXXCPP $CPPFLAGS' |
4909 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4910 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4911 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4912 | |
4913 | depcc="$CXX" am_compiler_list= |
4914 | |
4915 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
4916 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
4917 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
4918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4919 | else |
4920 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4921 | # We make a subdir and do the tests there. Otherwise we can end up |
4922 | # making bogus files that we don't know about and never remove. For |
4923 | # instance it was reported that on HP-UX the gcc test will end up |
4924 | # making a dummy file named `D' -- because `-MD' means `put the output |
4925 | # in D'. |
4926 | mkdir conftest.dir |
4927 | # Copy depcomp to subdir because otherwise we won't find it if we're |
4928 | # using a relative directory. |
4929 | cp "$am_depcomp" conftest.dir |
4930 | cd conftest.dir |
4931 | # We will build objects and dependencies in a subdirectory because |
4932 | # it helps to detect inapplicable dependency modes. For instance |
4933 | # both Tru64's cc and ICC support -MD to output dependencies as a |
4934 | # side effect of compilation, but ICC will put the dependencies in |
4935 | # the current directory while Tru64 will put them in the object |
4936 | # directory. |
4937 | mkdir sub |
4938 | |
4939 | am_cv_CXX_dependencies_compiler_type=none |
4940 | if test "$am_compiler_list" = ""; then |
4941 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
4942 | fi |
4943 | for depmode in $am_compiler_list; do |
4944 | # Setup a source with many dependencies, because some compilers |
4945 | # like to wrap large dependency lists on column 80 (with \), and |
4946 | # we should not choose a depcomp mode which is confused by this. |
4947 | # |
4948 | # We need to recreate these files for each test, as the compiler may |
4949 | # overwrite some of them when testing with obscure command lines. |
4950 | # This happens at least with the AIX C compiler. |
4951 | : > sub/conftest.c |
4952 | for i in 1 2 3 4 5 6; do |
4953 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
4954 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
4955 | # Solaris 8's {/usr,}/bin/sh. |
4956 | touch sub/conftst$i.h |
4957 | done |
4958 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
4959 | |
4960 | case $depmode in |
4961 | nosideeffect) |
4962 | # after this tag, mechanisms are not by side-effect, so they'll |
4963 | # only be used when explicitly requested |
4964 | if test "x$enable_dependency_tracking" = xyes; then |
4965 | continue |
4966 | else |
4967 | break |
4968 | fi |
4969 | ;; |
4970 | none) break ;; |
4971 | esac |
4972 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4973 | # mode. It turns out that the SunPro C++ compiler does not properly |
4974 | # handle `-M -o', and we need to detect this. |
4975 | if depmode=$depmode \ |
4976 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
4977 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
4978 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
4979 | >/dev/null 2>conftest.err && |
4980 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
4981 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
4982 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4983 | # icc doesn't choke on unknown options, it will just issue warnings |
4984 | # or remarks (even with -Werror). So we grep stderr for any message |
4985 | # that says an option was ignored or not supported. |
4986 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
4987 | # icc: Command line warning: ignoring option '-M'; no argument required |
4988 | # The diagnosis changed in icc 8.0: |
4989 | # icc: Command line remark: option '-MP' not supported |
4990 | if (grep 'ignoring option' conftest.err || |
4991 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
4992 | am_cv_CXX_dependencies_compiler_type=$depmode |
4993 | break |
4994 | fi |
4995 | fi |
4996 | done |
4997 | |
4998 | cd .. |
4999 | rm -rf conftest.dir |
5000 | else |
5001 | am_cv_CXX_dependencies_compiler_type=none |
5002 | fi |
5003 | |
5004 | fi |
5005 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
5006 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
5007 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
5008 | |
5009 | |
5010 | |
5011 | if |
5012 | test "x$enable_dependency_tracking" != xno \ |
5013 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
5014 | am__fastdepCXX_TRUE= |
5015 | am__fastdepCXX_FALSE='#' |
5016 | else |
5017 | am__fastdepCXX_TRUE='#' |
5018 | am__fastdepCXX_FALSE= |
5019 | fi |
5020 | |
5021 | |
5022 | |
5023 | |
5024 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
5025 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
5026 | (test "X$CXX" != "Xg++"))) ; then |
5027 | ac_ext=cc |
5028 | ac_cpp='$CXXCPP $CPPFLAGS' |
5029 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5030 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5031 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5032 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
5033 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
5034 | if test -z "$CXXCPP"; then |
5035 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
5036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5037 | else |
5038 | # Double quotes because CXXCPP needs to be expanded |
5039 | for CXXCPP in "$CXX -E" "/lib/cpp" |
5040 | do |
5041 | ac_preproc_ok=false |
5042 | for ac_cxx_preproc_warn_flag in '' yes |
5043 | do |
5044 | # Use a header file that comes with gcc, so configuring glibc |
5045 | # with a fresh cross-compiler works. |
5046 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5047 | # <limits.h> exists even on freestanding compilers. |
5048 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5049 | # not just through cpp. "Syntax error" is here to catch this case. |
5050 | cat >conftest.$ac_ext <<_ACEOF |
5051 | /* confdefs.h. */ |
5052 | _ACEOF |
5053 | cat confdefs.h >>conftest.$ac_ext |
5054 | cat >>conftest.$ac_ext <<_ACEOF |
5055 | /* end confdefs.h. */ |
5056 | #ifdef __STDC__ |
5057 | # include <limits.h> |
5058 | #else |
5059 | # include <assert.h> |
5060 | #endif |
5061 | Syntax error |
5062 | _ACEOF |
5063 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5064 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5065 | ac_status=$? |
5066 | grep -v '^ *+' conftest.er1 >conftest.err |
5067 | rm -f conftest.er1 |
5068 | cat conftest.err >&5 |
5069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5070 | (exit $ac_status); } >/dev/null; then |
5071 | if test -s conftest.err; then |
5072 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5073 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5074 | else |
5075 | ac_cpp_err= |
5076 | fi |
5077 | else |
5078 | ac_cpp_err=yes |
5079 | fi |
5080 | if test -z "$ac_cpp_err"; then |
5081 | : |
5082 | else |
5083 | echo "$as_me: failed program was:" >&5 |
5084 | sed 's/^/| /' conftest.$ac_ext >&5 |
5085 | |
5086 | # Broken: fails on valid input. |
5087 | continue |
5088 | fi |
5089 | rm -f conftest.err conftest.$ac_ext |
5090 | |
5091 | # OK, works on sane cases. Now check whether non-existent headers |
5092 | # can be detected and how. |
5093 | cat >conftest.$ac_ext <<_ACEOF |
5094 | /* confdefs.h. */ |
5095 | _ACEOF |
5096 | cat confdefs.h >>conftest.$ac_ext |
5097 | cat >>conftest.$ac_ext <<_ACEOF |
5098 | /* end confdefs.h. */ |
5099 | #include <ac_nonexistent.h> |
5100 | _ACEOF |
5101 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5102 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5103 | ac_status=$? |
5104 | grep -v '^ *+' conftest.er1 >conftest.err |
5105 | rm -f conftest.er1 |
5106 | cat conftest.err >&5 |
5107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5108 | (exit $ac_status); } >/dev/null; then |
5109 | if test -s conftest.err; then |
5110 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5111 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5112 | else |
5113 | ac_cpp_err= |
5114 | fi |
5115 | else |
5116 | ac_cpp_err=yes |
5117 | fi |
5118 | if test -z "$ac_cpp_err"; then |
5119 | # Broken: success on invalid input. |
5120 | continue |
5121 | else |
5122 | echo "$as_me: failed program was:" >&5 |
5123 | sed 's/^/| /' conftest.$ac_ext >&5 |
5124 | |
5125 | # Passes both tests. |
5126 | ac_preproc_ok=: |
5127 | break |
5128 | fi |
5129 | rm -f conftest.err conftest.$ac_ext |
5130 | |
5131 | done |
5132 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5133 | rm -f conftest.err conftest.$ac_ext |
5134 | if $ac_preproc_ok; then |
5135 | break |
5136 | fi |
5137 | |
5138 | done |
5139 | ac_cv_prog_CXXCPP=$CXXCPP |
5140 | |
5141 | fi |
5142 | CXXCPP=$ac_cv_prog_CXXCPP |
5143 | else |
5144 | ac_cv_prog_CXXCPP=$CXXCPP |
5145 | fi |
5146 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
5147 | echo "${ECHO_T}$CXXCPP" >&6 |
5148 | ac_preproc_ok=false |
5149 | for ac_cxx_preproc_warn_flag in '' yes |
5150 | do |
5151 | # Use a header file that comes with gcc, so configuring glibc |
5152 | # with a fresh cross-compiler works. |
5153 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5154 | # <limits.h> exists even on freestanding compilers. |
5155 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5156 | # not just through cpp. "Syntax error" is here to catch this case. |
5157 | cat >conftest.$ac_ext <<_ACEOF |
5158 | /* confdefs.h. */ |
5159 | _ACEOF |
5160 | cat confdefs.h >>conftest.$ac_ext |
5161 | cat >>conftest.$ac_ext <<_ACEOF |
5162 | /* end confdefs.h. */ |
5163 | #ifdef __STDC__ |
5164 | # include <limits.h> |
5165 | #else |
5166 | # include <assert.h> |
5167 | #endif |
5168 | Syntax error |
5169 | _ACEOF |
5170 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5171 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5172 | ac_status=$? |
5173 | grep -v '^ *+' conftest.er1 >conftest.err |
5174 | rm -f conftest.er1 |
5175 | cat conftest.err >&5 |
5176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5177 | (exit $ac_status); } >/dev/null; then |
5178 | if test -s conftest.err; then |
5179 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5180 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5181 | else |
5182 | ac_cpp_err= |
5183 | fi |
5184 | else |
5185 | ac_cpp_err=yes |
5186 | fi |
5187 | if test -z "$ac_cpp_err"; then |
5188 | : |
5189 | else |
5190 | echo "$as_me: failed program was:" >&5 |
5191 | sed 's/^/| /' conftest.$ac_ext >&5 |
5192 | |
5193 | # Broken: fails on valid input. |
5194 | continue |
5195 | fi |
5196 | rm -f conftest.err conftest.$ac_ext |
5197 | |
5198 | # OK, works on sane cases. Now check whether non-existent headers |
5199 | # can be detected and how. |
5200 | cat >conftest.$ac_ext <<_ACEOF |
5201 | /* confdefs.h. */ |
5202 | _ACEOF |
5203 | cat confdefs.h >>conftest.$ac_ext |
5204 | cat >>conftest.$ac_ext <<_ACEOF |
5205 | /* end confdefs.h. */ |
5206 | #include <ac_nonexistent.h> |
5207 | _ACEOF |
5208 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5209 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5210 | ac_status=$? |
5211 | grep -v '^ *+' conftest.er1 >conftest.err |
5212 | rm -f conftest.er1 |
5213 | cat conftest.err >&5 |
5214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5215 | (exit $ac_status); } >/dev/null; then |
5216 | if test -s conftest.err; then |
5217 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5218 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5219 | else |
5220 | ac_cpp_err= |
5221 | fi |
5222 | else |
5223 | ac_cpp_err=yes |
5224 | fi |
5225 | if test -z "$ac_cpp_err"; then |
5226 | # Broken: success on invalid input. |
5227 | continue |
5228 | else |
5229 | echo "$as_me: failed program was:" >&5 |
5230 | sed 's/^/| /' conftest.$ac_ext >&5 |
5231 | |
5232 | # Passes both tests. |
5233 | ac_preproc_ok=: |
5234 | break |
5235 | fi |
5236 | rm -f conftest.err conftest.$ac_ext |
5237 | |
5238 | done |
5239 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5240 | rm -f conftest.err conftest.$ac_ext |
5241 | if $ac_preproc_ok; then |
5242 | : |
5243 | else |
5244 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5245 | See \`config.log' for more details." >&5 |
5246 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5247 | See \`config.log' for more details." >&2;} |
5248 | { (exit 1); exit 1; }; } |
5249 | fi |
5250 | |
5251 | ac_ext=cc |
5252 | ac_cpp='$CXXCPP $CPPFLAGS' |
5253 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5254 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5255 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5256 | |
5257 | fi |
5258 | |
5259 | |
5260 | ac_ext=f |
5261 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
5262 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5263 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
5264 | if test -n "$ac_tool_prefix"; then |
5265 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
5266 | do |
5267 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5268 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
5269 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5270 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5271 | if test "${ac_cv_prog_F77+set}" = set; then |
5272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5273 | else |
5274 | if test -n "$F77"; then |
5275 | ac_cv_prog_F77="$F77" # Let the user override the test. |
5276 | else |
5277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5278 | for as_dir in $PATH |
5279 | do |
5280 | IFS=$as_save_IFS |
5281 | test -z "$as_dir" && as_dir=. |
5282 | for ac_exec_ext in '' $ac_executable_extensions; do |
5283 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5284 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
5285 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5286 | break 2 |
5287 | fi |
5288 | done |
5289 | done |
5290 | |
5291 | fi |
5292 | fi |
5293 | F77=$ac_cv_prog_F77 |
5294 | if test -n "$F77"; then |
5295 | echo "$as_me:$LINENO: result: $F77" >&5 |
5296 | echo "${ECHO_T}$F77" >&6 |
5297 | else |
5298 | echo "$as_me:$LINENO: result: no" >&5 |
5299 | echo "${ECHO_T}no" >&6 |
5300 | fi |
5301 | |
5302 | test -n "$F77" && break |
5303 | done |
5304 | fi |
5305 | if test -z "$F77"; then |
5306 | ac_ct_F77=$F77 |
5307 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
5308 | do |
5309 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5310 | set dummy $ac_prog; ac_word=$2 |
5311 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5312 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5313 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
5314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5315 | else |
5316 | if test -n "$ac_ct_F77"; then |
5317 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
5318 | else |
5319 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5320 | for as_dir in $PATH |
5321 | do |
5322 | IFS=$as_save_IFS |
5323 | test -z "$as_dir" && as_dir=. |
5324 | for ac_exec_ext in '' $ac_executable_extensions; do |
5325 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5326 | ac_cv_prog_ac_ct_F77="$ac_prog" |
5327 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5328 | break 2 |
5329 | fi |
5330 | done |
5331 | done |
5332 | |
5333 | fi |
5334 | fi |
5335 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
5336 | if test -n "$ac_ct_F77"; then |
5337 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
5338 | echo "${ECHO_T}$ac_ct_F77" >&6 |
5339 | else |
5340 | echo "$as_me:$LINENO: result: no" >&5 |
5341 | echo "${ECHO_T}no" >&6 |
5342 | fi |
5343 | |
5344 | test -n "$ac_ct_F77" && break |
5345 | done |
5346 | |
5347 | F77=$ac_ct_F77 |
5348 | fi |
5349 | |
5350 | |
5351 | # Provide some information about the compiler. |
5352 | echo "$as_me:5352:" \ |
5353 | "checking for Fortran 77 compiler version" >&5 |
5354 | ac_compiler=`set X $ac_compile; echo $2` |
5355 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
5356 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
5357 | ac_status=$? |
5358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5359 | (exit $ac_status); } |
5360 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
5361 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
5362 | ac_status=$? |
5363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5364 | (exit $ac_status); } |
5365 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
5366 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
5367 | ac_status=$? |
5368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5369 | (exit $ac_status); } |
5370 | rm -f a.out |
5371 | |
5372 | # If we don't use `.F' as extension, the preprocessor is not run on the |
5373 | # input file. (Note that this only needs to work for GNU compilers.) |
5374 | ac_save_ext=$ac_ext |
5375 | ac_ext=F |
5376 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
5377 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
5378 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
5379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5380 | else |
5381 | cat >conftest.$ac_ext <<_ACEOF |
5382 | program main |
5383 | #ifndef __GNUC__ |
5384 | choke me |
5385 | #endif |
5386 | |
5387 | end |
5388 | _ACEOF |
5389 | rm -f conftest.$ac_objext |
5390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5391 | (eval $ac_compile) 2>conftest.er1 |
5392 | ac_status=$? |
5393 | grep -v '^ *+' conftest.er1 >conftest.err |
5394 | rm -f conftest.er1 |
5395 | cat conftest.err >&5 |
5396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5397 | (exit $ac_status); } && |
5398 | { ac_try='test -z "$ac_f77_werror_flag" |
5399 | || test ! -s conftest.err' |
5400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5401 | (eval $ac_try) 2>&5 |
5402 | ac_status=$? |
5403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5404 | (exit $ac_status); }; } && |
5405 | { ac_try='test -s conftest.$ac_objext' |
5406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5407 | (eval $ac_try) 2>&5 |
5408 | ac_status=$? |
5409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5410 | (exit $ac_status); }; }; then |
5411 | ac_compiler_gnu=yes |
5412 | else |
5413 | echo "$as_me: failed program was:" >&5 |
5414 | sed 's/^/| /' conftest.$ac_ext >&5 |
5415 | |
5416 | ac_compiler_gnu=no |
5417 | fi |
5418 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5419 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
5420 | |
5421 | fi |
5422 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
5423 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
5424 | ac_ext=$ac_save_ext |
5425 | ac_test_FFLAGS=${FFLAGS+set} |
5426 | ac_save_FFLAGS=$FFLAGS |
5427 | FFLAGS= |
5428 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
5429 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
5430 | if test "${ac_cv_prog_f77_g+set}" = set; then |
5431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5432 | else |
5433 | FFLAGS=-g |
5434 | cat >conftest.$ac_ext <<_ACEOF |
5435 | program main |
5436 | |
5437 | end |
5438 | _ACEOF |
5439 | rm -f conftest.$ac_objext |
5440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5441 | (eval $ac_compile) 2>conftest.er1 |
5442 | ac_status=$? |
5443 | grep -v '^ *+' conftest.er1 >conftest.err |
5444 | rm -f conftest.er1 |
5445 | cat conftest.err >&5 |
5446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5447 | (exit $ac_status); } && |
5448 | { ac_try='test -z "$ac_f77_werror_flag" |
5449 | || test ! -s conftest.err' |
5450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5451 | (eval $ac_try) 2>&5 |
5452 | ac_status=$? |
5453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5454 | (exit $ac_status); }; } && |
5455 | { ac_try='test -s conftest.$ac_objext' |
5456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5457 | (eval $ac_try) 2>&5 |
5458 | ac_status=$? |
5459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5460 | (exit $ac_status); }; }; then |
5461 | ac_cv_prog_f77_g=yes |
5462 | else |
5463 | echo "$as_me: failed program was:" >&5 |
5464 | sed 's/^/| /' conftest.$ac_ext >&5 |
5465 | |
5466 | ac_cv_prog_f77_g=no |
5467 | fi |
5468 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5469 | |
5470 | fi |
5471 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
5472 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
5473 | if test "$ac_test_FFLAGS" = set; then |
5474 | FFLAGS=$ac_save_FFLAGS |
5475 | elif test $ac_cv_prog_f77_g = yes; then |
5476 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
5477 | FFLAGS="-g -O2" |
5478 | else |
5479 | FFLAGS="-g" |
5480 | fi |
5481 | else |
5482 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
5483 | FFLAGS="-O2" |
5484 | else |
5485 | FFLAGS= |
5486 | fi |
5487 | fi |
5488 | |
5489 | G77=`test $ac_compiler_gnu = yes && echo yes` |
5490 | ac_ext=c |
5491 | ac_cpp='$CPP $CPPFLAGS' |
5492 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5493 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5494 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5495 | |
5496 | |
5497 | |
5498 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
5499 | |
5500 | # find the maximum length of command line arguments |
5501 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
5502 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
5503 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
5504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5505 | else |
5506 | i=0 |
5507 | teststring="ABCD" |
5508 | |
5509 | case $build_os in |
5510 | msdosdjgpp*) |
5511 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
5512 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
5513 | # during glob expansion). Even if it were fixed, the result of this |
5514 | # check would be larger than it should be. |
5515 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
5516 | ;; |
5517 | |
5518 | gnu*) |
5519 | # Under GNU Hurd, this test is not required because there is |
5520 | # no limit to the length of command line arguments. |
5521 | # Libtool will interpret -1 as no limit whatsoever |
5522 | lt_cv_sys_max_cmd_len=-1; |
5523 | ;; |
5524 | |
5525 | cygwin* | mingw*) |
5526 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5527 | # about 5 minutes as the teststring grows exponentially. |
5528 | # Worse, since 9x/ME are not pre-emptively multitasking, |
5529 | # you end up with a "frozen" computer, even though with patience |
5530 | # the test eventually succeeds (with a max line length of 256k). |
5531 | # Instead, let's just punt: use the minimum linelength reported by |
5532 | # all of the supported platforms: 8192 (on NT/2K/XP). |
5533 | lt_cv_sys_max_cmd_len=8192; |
5534 | ;; |
5535 | |
5536 | amigaos*) |
5537 | # On AmigaOS with pdksh, this test takes hours, literally. |
5538 | # So we just punt and use a minimum line length of 8192. |
5539 | lt_cv_sys_max_cmd_len=8192; |
5540 | ;; |
5541 | |
5542 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
5543 | # This has been around since 386BSD, at least. Likely further. |
5544 | if test -x /sbin/sysctl; then |
5545 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
5546 | elif test -x /usr/sbin/sysctl; then |
5547 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
5548 | else |
5549 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
5550 | fi |
5551 | # And add a safety zone |
5552 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5553 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
5554 | ;; |
5555 | |
5556 | interix*) |
5557 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
5558 | lt_cv_sys_max_cmd_len=196608 |
5559 | ;; |
5560 | |
5561 | osf*) |
5562 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
5563 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
5564 | # nice to cause kernel panics so lets avoid the loop below. |
5565 | # First set a reasonable default. |
5566 | lt_cv_sys_max_cmd_len=16384 |
5567 | # |
5568 | if test -x /sbin/sysconfig; then |
5569 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
5570 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
5571 | esac |
5572 | fi |
5573 | ;; |
5574 | sco3.2v5*) |
5575 | lt_cv_sys_max_cmd_len=102400 |
5576 | ;; |
5577 | sysv5* | sco5v6* | sysv4.2uw2*) |
5578 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
5579 | if test -n "$kargmax"; then |
5580 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
5581 | else |
5582 | lt_cv_sys_max_cmd_len=32768 |
5583 | fi |
5584 | ;; |
5585 | *) |
5586 | # If test is not a shell built-in, we'll probably end up computing a |
5587 | # maximum length that is only half of the actual maximum length, but |
5588 | # we can't tell. |
5589 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
5590 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
5591 | = "XX$teststring") >/dev/null 2>&1 && |
5592 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
5593 | lt_cv_sys_max_cmd_len=$new_result && |
5594 | test $i != 17 # 1/2 MB should be enough |
5595 | do |
5596 | i=`expr $i + 1` |
5597 | teststring=$teststring$teststring |
5598 | done |
5599 | teststring= |
5600 | # Add a significant safety factor because C++ compilers can tack on massive |
5601 | # amounts of additional arguments before passing them to the linker. |
5602 | # It appears as though 1/2 is a usable value. |
5603 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
5604 | ;; |
5605 | esac |
5606 | |
5607 | fi |
5608 | |
5609 | if test -n $lt_cv_sys_max_cmd_len ; then |
5610 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
5611 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
5612 | else |
5613 | echo "$as_me:$LINENO: result: none" >&5 |
5614 | echo "${ECHO_T}none" >&6 |
5615 | fi |
5616 | |
5617 | |
5618 | |
5619 | |
5620 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
5621 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
5622 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
5623 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
5624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5625 | else |
5626 | |
5627 | # These are sane defaults that work on at least a few old systems. |
5628 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
5629 | |
5630 | # Character class describing NM global symbol codes. |
5631 | symcode='[BCDEGRST]' |
5632 | |
5633 | # Regexp to match symbols that can be accessed directly from C. |
5634 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
5635 | |
5636 | # Transform an extracted symbol line into a proper C declaration |
5637 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
5638 | |
5639 | # Transform an extracted symbol line into symbol name and symbol address |
5640 | 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'" |
5641 | |
5642 | # Define system-specific variables. |
5643 | case $host_os in |
5644 | aix*) |
5645 | symcode='[BCDT]' |
5646 | ;; |
5647 | cygwin* | mingw* | pw32*) |
5648 | symcode='[ABCDGISTW]' |
5649 | ;; |
5650 | hpux*) # Its linker distinguishes data from code symbols |
5651 | if test "$host_cpu" = ia64; then |
5652 | symcode='[ABCDEGRST]' |
5653 | fi |
5654 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
5655 | 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'" |
5656 | ;; |
5657 | linux*) |
5658 | if test "$host_cpu" = ia64; then |
5659 | symcode='[ABCDGIRSTW]' |
5660 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
5661 | 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'" |
5662 | fi |
5663 | ;; |
5664 | irix* | nonstopux*) |
5665 | symcode='[BCDEGRST]' |
5666 | ;; |
5667 | osf*) |
5668 | symcode='[BCDEGQRST]' |
5669 | ;; |
5670 | solaris*) |
5671 | symcode='[BDRT]' |
5672 | ;; |
5673 | sco3.2v5*) |
5674 | symcode='[DT]' |
5675 | ;; |
5676 | sysv4.2uw2*) |
5677 | symcode='[DT]' |
5678 | ;; |
5679 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
5680 | symcode='[ABDT]' |
5681 | ;; |
5682 | sysv4) |
5683 | symcode='[DFNSTU]' |
5684 | ;; |
5685 | esac |
5686 | |
5687 | # Handle CRLF in mingw tool chain |
5688 | opt_cr= |
5689 | case $build_os in |
5690 | mingw*) |
5691 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
5692 | ;; |
5693 | esac |
5694 | |
5695 | # If we're using GNU nm, then use its standard symbol codes. |
5696 | case `$NM -V 2>&1` in |
5697 | *GNU* | *'with BFD'*) |
5698 | symcode='[ABCDGIRSTW]' ;; |
5699 | esac |
5700 | |
5701 | # Try without a prefix undercore, then with it. |
5702 | for ac_symprfx in "" "_"; do |
5703 | |
5704 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
5705 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
5706 | |
5707 | # Write the raw and C identifiers. |
5708 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
5709 | |
5710 | # Check to see that the pipe works correctly. |
5711 | pipe_works=no |
5712 | |
5713 | rm -f conftest* |
5714 | cat > conftest.$ac_ext <<EOF |
5715 | #ifdef __cplusplus |
5716 | extern "C" { |
5717 | #endif |
5718 | char nm_test_var; |
5719 | void nm_test_func(){} |
5720 | #ifdef __cplusplus |
5721 | } |
5722 | #endif |
5723 | int main(){nm_test_var='a';nm_test_func();return(0);} |
5724 | EOF |
5725 | |
5726 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5727 | (eval $ac_compile) 2>&5 |
5728 | ac_status=$? |
5729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5730 | (exit $ac_status); }; then |
5731 | # Now try to grab the symbols. |
5732 | nlist=conftest.nm |
5733 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
5734 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
5735 | ac_status=$? |
5736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5737 | (exit $ac_status); } && test -s "$nlist"; then |
5738 | # Try sorting and uniquifying the output. |
5739 | if sort "$nlist" | uniq > "$nlist"T; then |
5740 | mv -f "$nlist"T "$nlist" |
5741 | else |
5742 | rm -f "$nlist"T |
5743 | fi |
5744 | |
5745 | # Make sure that we snagged all the symbols we need. |
5746 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
5747 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
5748 | cat <<EOF > conftest.$ac_ext |
5749 | #ifdef __cplusplus |
5750 | extern "C" { |
5751 | #endif |
5752 | |
5753 | EOF |
5754 | # Now generate the symbol file. |
5755 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
5756 | |
5757 | cat <<EOF >> conftest.$ac_ext |
5758 | #if defined (__STDC__) && __STDC__ |
5759 | # define lt_ptr_t void * |
5760 | #else |
5761 | # define lt_ptr_t char * |
5762 | # define const |
5763 | #endif |
5764 | |
5765 | /* The mapping between symbol names and symbols. */ |
5766 | const struct { |
5767 | const char *name; |
5768 | lt_ptr_t address; |
5769 | } |
5770 | lt_preloaded_symbols[] = |
5771 | { |
5772 | EOF |
5773 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
5774 | cat <<\EOF >> conftest.$ac_ext |
5775 | {0, (lt_ptr_t) 0} |
5776 | }; |
5777 | |
5778 | #ifdef __cplusplus |
5779 | } |
5780 | #endif |
5781 | EOF |
5782 | # Now try linking the two files. |
5783 | mv conftest.$ac_objext conftstm.$ac_objext |
5784 | lt_save_LIBS="$LIBS" |
5785 | lt_save_CFLAGS="$CFLAGS" |
5786 | LIBS="conftstm.$ac_objext" |
5787 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
5788 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5789 | (eval $ac_link) 2>&5 |
5790 | ac_status=$? |
5791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5792 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
5793 | pipe_works=yes |
5794 | fi |
5795 | LIBS="$lt_save_LIBS" |
5796 | CFLAGS="$lt_save_CFLAGS" |
5797 | else |
5798 | echo "cannot find nm_test_func in $nlist" >&5 |
5799 | fi |
5800 | else |
5801 | echo "cannot find nm_test_var in $nlist" >&5 |
5802 | fi |
5803 | else |
5804 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
5805 | fi |
5806 | else |
5807 | echo "$progname: failed program was:" >&5 |
5808 | cat conftest.$ac_ext >&5 |
5809 | fi |
5810 | rm -f conftest* conftst* |
5811 | |
5812 | # Do not use the global_symbol_pipe unless it works. |
5813 | if test "$pipe_works" = yes; then |
5814 | break |
5815 | else |
5816 | lt_cv_sys_global_symbol_pipe= |
5817 | fi |
5818 | done |
5819 | |
5820 | fi |
5821 | |
5822 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
5823 | lt_cv_sys_global_symbol_to_cdecl= |
5824 | fi |
5825 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
5826 | echo "$as_me:$LINENO: result: failed" >&5 |
5827 | echo "${ECHO_T}failed" >&6 |
5828 | else |
5829 | echo "$as_me:$LINENO: result: ok" >&5 |
5830 | echo "${ECHO_T}ok" >&6 |
5831 | fi |
5832 | |
5833 | echo "$as_me:$LINENO: checking for objdir" >&5 |
5834 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
5835 | if test "${lt_cv_objdir+set}" = set; then |
5836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5837 | else |
5838 | rm -f .libs 2>/dev/null |
5839 | mkdir .libs 2>/dev/null |
5840 | if test -d .libs; then |
5841 | lt_cv_objdir=.libs |
5842 | else |
5843 | # MS-DOS does not allow filenames that begin with a dot. |
5844 | lt_cv_objdir=_libs |
5845 | fi |
5846 | rmdir .libs 2>/dev/null |
5847 | fi |
5848 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
5849 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
5850 | objdir=$lt_cv_objdir |
5851 | |
5852 | |
5853 | |
5854 | |
5855 | |
5856 | case $host_os in |
5857 | aix3*) |
5858 | # AIX sometimes has problems with the GCC collect2 program. For some |
5859 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
5860 | # vanish in a puff of smoke. |
5861 | if test "X${COLLECT_NAMES+set}" != Xset; then |
5862 | COLLECT_NAMES= |
5863 | export COLLECT_NAMES |
5864 | fi |
5865 | ;; |
5866 | esac |
5867 | |
5868 | # Sed substitution that helps us do robust quoting. It backslashifies |
5869 | # metacharacters that are still active within double-quoted strings. |
5870 | Xsed='sed -e 1s/^X//' |
5871 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
5872 | |
5873 | # Same as above, but do not quote variable references. |
5874 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
5875 | |
5876 | # Sed substitution to delay expansion of an escaped shell variable in a |
5877 | # double_quote_subst'ed string. |
5878 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
5879 | |
5880 | # Sed substitution to avoid accidental globbing in evaled expressions |
5881 | no_glob_subst='s/\*/\\\*/g' |
5882 | |
5883 | # Constants: |
5884 | rm="rm -f" |
5885 | |
5886 | # Global variables: |
5887 | default_ofile=libtool |
5888 | can_build_shared=yes |
5889 | |
5890 | # All known linkers require a `.a' archive for static linking (except MSVC, |
5891 | # which needs '.lib'). |
5892 | libext=a |
5893 | ltmain="$ac_aux_dir/ltmain.sh" |
5894 | ofile="$default_ofile" |
5895 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
5896 | |
5897 | if test -n "$ac_tool_prefix"; then |
5898 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
5899 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
5900 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5901 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5902 | if test "${ac_cv_prog_AR+set}" = set; then |
5903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5904 | else |
5905 | if test -n "$AR"; then |
5906 | ac_cv_prog_AR="$AR" # Let the user override the test. |
5907 | else |
5908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5909 | for as_dir in $PATH |
5910 | do |
5911 | IFS=$as_save_IFS |
5912 | test -z "$as_dir" && as_dir=. |
5913 | for ac_exec_ext in '' $ac_executable_extensions; do |
5914 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5915 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5916 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5917 | break 2 |
5918 | fi |
5919 | done |
5920 | done |
5921 | |
5922 | fi |
5923 | fi |
5924 | AR=$ac_cv_prog_AR |
5925 | if test -n "$AR"; then |
5926 | echo "$as_me:$LINENO: result: $AR" >&5 |
5927 | echo "${ECHO_T}$AR" >&6 |
5928 | else |
5929 | echo "$as_me:$LINENO: result: no" >&5 |
5930 | echo "${ECHO_T}no" >&6 |
5931 | fi |
5932 | |
5933 | fi |
5934 | if test -z "$ac_cv_prog_AR"; then |
5935 | ac_ct_AR=$AR |
5936 | # Extract the first word of "ar", so it can be a program name with args. |
5937 | set dummy ar; ac_word=$2 |
5938 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5939 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5940 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
5941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5942 | else |
5943 | if test -n "$ac_ct_AR"; then |
5944 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
5945 | else |
5946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5947 | for as_dir in $PATH |
5948 | do |
5949 | IFS=$as_save_IFS |
5950 | test -z "$as_dir" && as_dir=. |
5951 | for ac_exec_ext in '' $ac_executable_extensions; do |
5952 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5953 | ac_cv_prog_ac_ct_AR="ar" |
5954 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5955 | break 2 |
5956 | fi |
5957 | done |
5958 | done |
5959 | |
5960 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
5961 | fi |
5962 | fi |
5963 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5964 | if test -n "$ac_ct_AR"; then |
5965 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
5966 | echo "${ECHO_T}$ac_ct_AR" >&6 |
5967 | else |
5968 | echo "$as_me:$LINENO: result: no" >&5 |
5969 | echo "${ECHO_T}no" >&6 |
5970 | fi |
5971 | |
5972 | AR=$ac_ct_AR |
5973 | else |
5974 | AR="$ac_cv_prog_AR" |
5975 | fi |
5976 | |
5977 | if test -n "$ac_tool_prefix"; then |
5978 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
5979 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
5980 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5981 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5982 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
5983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5984 | else |
5985 | if test -n "$RANLIB"; then |
5986 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
5987 | else |
5988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5989 | for as_dir in $PATH |
5990 | do |
5991 | IFS=$as_save_IFS |
5992 | test -z "$as_dir" && as_dir=. |
5993 | for ac_exec_ext in '' $ac_executable_extensions; do |
5994 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5995 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5996 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5997 | break 2 |
5998 | fi |
5999 | done |
6000 | done |
6001 | |
6002 | fi |
6003 | fi |
6004 | RANLIB=$ac_cv_prog_RANLIB |
6005 | if test -n "$RANLIB"; then |
6006 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6007 | echo "${ECHO_T}$RANLIB" >&6 |
6008 | else |
6009 | echo "$as_me:$LINENO: result: no" >&5 |
6010 | echo "${ECHO_T}no" >&6 |
6011 | fi |
6012 | |
6013 | fi |
6014 | if test -z "$ac_cv_prog_RANLIB"; then |
6015 | ac_ct_RANLIB=$RANLIB |
6016 | # Extract the first word of "ranlib", so it can be a program name with args. |
6017 | set dummy ranlib; ac_word=$2 |
6018 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6019 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6020 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
6021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6022 | else |
6023 | if test -n "$ac_ct_RANLIB"; then |
6024 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
6025 | else |
6026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6027 | for as_dir in $PATH |
6028 | do |
6029 | IFS=$as_save_IFS |
6030 | test -z "$as_dir" && as_dir=. |
6031 | for ac_exec_ext in '' $ac_executable_extensions; do |
6032 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6033 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6034 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6035 | break 2 |
6036 | fi |
6037 | done |
6038 | done |
6039 | |
6040 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
6041 | fi |
6042 | fi |
6043 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6044 | if test -n "$ac_ct_RANLIB"; then |
6045 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
6046 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
6047 | else |
6048 | echo "$as_me:$LINENO: result: no" >&5 |
6049 | echo "${ECHO_T}no" >&6 |
6050 | fi |
6051 | |
6052 | RANLIB=$ac_ct_RANLIB |
6053 | else |
6054 | RANLIB="$ac_cv_prog_RANLIB" |
6055 | fi |
6056 | |
6057 | if test -n "$ac_tool_prefix"; then |
6058 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6059 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
6060 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6061 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6062 | if test "${ac_cv_prog_STRIP+set}" = set; then |
6063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6064 | else |
6065 | if test -n "$STRIP"; then |
6066 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
6067 | else |
6068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6069 | for as_dir in $PATH |
6070 | do |
6071 | IFS=$as_save_IFS |
6072 | test -z "$as_dir" && as_dir=. |
6073 | for ac_exec_ext in '' $ac_executable_extensions; do |
6074 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6075 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6076 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6077 | break 2 |
6078 | fi |
6079 | done |
6080 | done |
6081 | |
6082 | fi |
6083 | fi |
6084 | STRIP=$ac_cv_prog_STRIP |
6085 | if test -n "$STRIP"; then |
6086 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
6087 | echo "${ECHO_T}$STRIP" >&6 |
6088 | else |
6089 | echo "$as_me:$LINENO: result: no" >&5 |
6090 | echo "${ECHO_T}no" >&6 |
6091 | fi |
6092 | |
6093 | fi |
6094 | if test -z "$ac_cv_prog_STRIP"; then |
6095 | ac_ct_STRIP=$STRIP |
6096 | # Extract the first word of "strip", so it can be a program name with args. |
6097 | set dummy strip; ac_word=$2 |
6098 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6099 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6100 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
6101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6102 | else |
6103 | if test -n "$ac_ct_STRIP"; then |
6104 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
6105 | else |
6106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6107 | for as_dir in $PATH |
6108 | do |
6109 | IFS=$as_save_IFS |
6110 | test -z "$as_dir" && as_dir=. |
6111 | for ac_exec_ext in '' $ac_executable_extensions; do |
6112 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6113 | ac_cv_prog_ac_ct_STRIP="strip" |
6114 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6115 | break 2 |
6116 | fi |
6117 | done |
6118 | done |
6119 | |
6120 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
6121 | fi |
6122 | fi |
6123 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6124 | if test -n "$ac_ct_STRIP"; then |
6125 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
6126 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
6127 | else |
6128 | echo "$as_me:$LINENO: result: no" >&5 |
6129 | echo "${ECHO_T}no" >&6 |
6130 | fi |
6131 | |
6132 | STRIP=$ac_ct_STRIP |
6133 | else |
6134 | STRIP="$ac_cv_prog_STRIP" |
6135 | fi |
6136 | |
6137 | |
6138 | old_CC="$CC" |
6139 | old_CFLAGS="$CFLAGS" |
6140 | |
6141 | # Set sane defaults for various variables |
6142 | test -z "$AR" && AR=ar |
6143 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
6144 | test -z "$AS" && AS=as |
6145 | test -z "$CC" && CC=cc |
6146 | test -z "$LTCC" && LTCC=$CC |
6147 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
6148 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
6149 | test -z "$LD" && LD=ld |
6150 | test -z "$LN_S" && LN_S="ln -s" |
6151 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
6152 | test -z "$NM" && NM=nm |
6153 | test -z "$SED" && SED=sed |
6154 | test -z "$OBJDUMP" && OBJDUMP=objdump |
6155 | test -z "$RANLIB" && RANLIB=: |
6156 | test -z "$STRIP" && STRIP=: |
6157 | test -z "$ac_objext" && ac_objext=o |
6158 | |
6159 | # Determine commands to create old-style static archives. |
6160 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
6161 | old_postinstall_cmds='chmod 644 $oldlib' |
6162 | old_postuninstall_cmds= |
6163 | |
6164 | if test -n "$RANLIB"; then |
6165 | case $host_os in |
6166 | openbsd*) |
6167 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
6168 | ;; |
6169 | *) |
6170 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
6171 | ;; |
6172 | esac |
6173 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
6174 | fi |
6175 | |
6176 | for cc_temp in $compiler""; do |
6177 | case $cc_temp in |
6178 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
6179 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
6180 | \-*) ;; |
6181 | *) break;; |
6182 | esac |
6183 | done |
6184 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
6185 | |
6186 | |
6187 | # Only perform the check for file, if the check method requires it |
6188 | case $deplibs_check_method in |
6189 | file_magic*) |
6190 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
6191 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
6192 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
6193 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
6194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6195 | else |
6196 | case $MAGIC_CMD in |
6197 | [\\/*] | ?:[\\/]*) |
6198 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6199 | ;; |
6200 | *) |
6201 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
6202 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6203 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
6204 | for ac_dir in $ac_dummy; do |
6205 | IFS="$lt_save_ifs" |
6206 | test -z "$ac_dir" && ac_dir=. |
6207 | if test -f $ac_dir/${ac_tool_prefix}file; then |
6208 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
6209 | if test -n "$file_magic_test_file"; then |
6210 | case $deplibs_check_method in |
6211 | "file_magic "*) |
6212 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
6213 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6214 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6215 | $EGREP "$file_magic_regex" > /dev/null; then |
6216 | : |
6217 | else |
6218 | cat <<EOF 1>&2 |
6219 | |
6220 | *** Warning: the command libtool uses to detect shared libraries, |
6221 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
6222 | *** The result is that libtool may fail to recognize shared libraries |
6223 | *** as such. This will affect the creation of libtool libraries that |
6224 | *** depend on shared libraries, but programs linked with such libtool |
6225 | *** libraries will work regardless of this problem. Nevertheless, you |
6226 | *** may want to report the problem to your system manager and/or to |
6227 | *** bug-libtool@gnu.org |
6228 | |
6229 | EOF |
6230 | fi ;; |
6231 | esac |
6232 | fi |
6233 | break |
6234 | fi |
6235 | done |
6236 | IFS="$lt_save_ifs" |
6237 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
6238 | ;; |
6239 | esac |
6240 | fi |
6241 | |
6242 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6243 | if test -n "$MAGIC_CMD"; then |
6244 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
6245 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
6246 | else |
6247 | echo "$as_me:$LINENO: result: no" >&5 |
6248 | echo "${ECHO_T}no" >&6 |
6249 | fi |
6250 | |
6251 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
6252 | if test -n "$ac_tool_prefix"; then |
6253 | echo "$as_me:$LINENO: checking for file" >&5 |
6254 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
6255 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
6256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6257 | else |
6258 | case $MAGIC_CMD in |
6259 | [\\/*] | ?:[\\/]*) |
6260 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6261 | ;; |
6262 | *) |
6263 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
6264 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6265 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
6266 | for ac_dir in $ac_dummy; do |
6267 | IFS="$lt_save_ifs" |
6268 | test -z "$ac_dir" && ac_dir=. |
6269 | if test -f $ac_dir/file; then |
6270 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
6271 | if test -n "$file_magic_test_file"; then |
6272 | case $deplibs_check_method in |
6273 | "file_magic "*) |
6274 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
6275 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6276 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6277 | $EGREP "$file_magic_regex" > /dev/null; then |
6278 | : |
6279 | else |
6280 | cat <<EOF 1>&2 |
6281 | |
6282 | *** Warning: the command libtool uses to detect shared libraries, |
6283 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
6284 | *** The result is that libtool may fail to recognize shared libraries |
6285 | *** as such. This will affect the creation of libtool libraries that |
6286 | *** depend on shared libraries, but programs linked with such libtool |
6287 | *** libraries will work regardless of this problem. Nevertheless, you |
6288 | *** may want to report the problem to your system manager and/or to |
6289 | *** bug-libtool@gnu.org |
6290 | |
6291 | EOF |
6292 | fi ;; |
6293 | esac |
6294 | fi |
6295 | break |
6296 | fi |
6297 | done |
6298 | IFS="$lt_save_ifs" |
6299 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
6300 | ;; |
6301 | esac |
6302 | fi |
6303 | |
6304 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6305 | if test -n "$MAGIC_CMD"; then |
6306 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
6307 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
6308 | else |
6309 | echo "$as_me:$LINENO: result: no" >&5 |
6310 | echo "${ECHO_T}no" >&6 |
6311 | fi |
6312 | |
6313 | else |
6314 | MAGIC_CMD=: |
6315 | fi |
6316 | fi |
6317 | |
6318 | fi |
6319 | ;; |
6320 | esac |
6321 | |
6322 | enable_dlopen=no |
6323 | enable_win32_dll=no |
6324 | |
6325 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
6326 | if test "${enable_libtool_lock+set}" = set; then |
6327 | enableval="$enable_libtool_lock" |
6328 | |
6329 | fi; |
6330 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6331 | |
6332 | |
6333 | # Check whether --with-pic or --without-pic was given. |
6334 | if test "${with_pic+set}" = set; then |
6335 | withval="$with_pic" |
6336 | pic_mode="$withval" |
6337 | else |
6338 | pic_mode=default |
6339 | fi; |
6340 | test -z "$pic_mode" && pic_mode=default |
6341 | |
6342 | # Use C for the default configuration in the libtool script |
6343 | tagname= |
6344 | lt_save_CC="$CC" |
6345 | ac_ext=c |
6346 | ac_cpp='$CPP $CPPFLAGS' |
6347 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6348 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6349 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6350 | |
6351 | |
6352 | # Source file extension for C test sources. |
6353 | ac_ext=c |
6354 | |
6355 | # Object file extension for compiled C test sources. |
6356 | objext=o |
6357 | objext=$objext |
6358 | |
6359 | # Code to be used in simple compile tests |
6360 | lt_simple_compile_test_code="int some_variable = 0;\n" |
6361 | |
6362 | # Code to be used in simple link tests |
6363 | lt_simple_link_test_code='int main(){return(0);}\n' |
6364 | |
6365 | |
6366 | # If no C compiler was specified, use CC. |
6367 | LTCC=${LTCC-"$CC"} |
6368 | |
6369 | # If no C compiler flags were specified, use CFLAGS. |
6370 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
6371 | |
6372 | # Allow CC to be a program name with arguments. |
6373 | compiler=$CC |
6374 | |
6375 | |
6376 | # save warnings/boilerplate of simple test code |
6377 | ac_outfile=conftest.$ac_objext |
6378 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
6379 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
6380 | _lt_compiler_boilerplate=`cat conftest.err` |
6381 | $rm conftest* |
6382 | |
6383 | ac_outfile=conftest.$ac_objext |
6384 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
6385 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
6386 | _lt_linker_boilerplate=`cat conftest.err` |
6387 | $rm conftest* |
6388 | |
6389 | |
6390 | |
6391 | lt_prog_compiler_no_builtin_flag= |
6392 | |
6393 | if test "$GCC" = yes; then |
6394 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
6395 | |
6396 | |
6397 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
6398 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
6399 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
6400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6401 | else |
6402 | lt_cv_prog_compiler_rtti_exceptions=no |
6403 | ac_outfile=conftest.$ac_objext |
6404 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6405 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
6406 | # Insert the option either (1) after the last *FLAGS variable, or |
6407 | # (2) before a word containing "conftest.", or (3) at the end. |
6408 | # Note that $ac_compile itself does not contain backslashes and begins |
6409 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
6410 | # The option is referenced via a variable to avoid confusing sed. |
6411 | lt_compile=`echo "$ac_compile" | $SED \ |
6412 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
6413 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6414 | -e 's:$: $lt_compiler_flag:'` |
6415 | (eval echo "\"\$as_me:6415: $lt_compile\"" >&5) |
6416 | (eval "$lt_compile" 2>conftest.err) |
6417 | ac_status=$? |
6418 | cat conftest.err >&5 |
6419 | echo "$as_me:6419: \$? = $ac_status" >&5 |
6420 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6421 | # The compiler can only warn and ignore the option if not recognized |
6422 | # So say no if there are warnings other than the usual output. |
6423 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
6424 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
6425 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
6426 | lt_cv_prog_compiler_rtti_exceptions=yes |
6427 | fi |
6428 | fi |
6429 | $rm conftest* |
6430 | |
6431 | fi |
6432 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
6433 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
6434 | |
6435 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
6436 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
6437 | else |
6438 | : |
6439 | fi |
6440 | |
6441 | fi |
6442 | |
6443 | lt_prog_compiler_wl= |
6444 | lt_prog_compiler_pic= |
6445 | lt_prog_compiler_static= |
6446 | |
6447 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
6448 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
6449 | |
6450 | if test "$GCC" = yes; then |
6451 | lt_prog_compiler_wl='-Wl,' |
6452 | lt_prog_compiler_static='-static' |
6453 | |
6454 | case $host_os in |
6455 | aix*) |
6456 | # All AIX code is PIC. |
6457 | if test "$host_cpu" = ia64; then |
6458 | # AIX 5 now supports IA64 processor |
6459 | lt_prog_compiler_static='-Bstatic' |
6460 | fi |
6461 | ;; |
6462 | |
6463 | amigaos*) |
6464 | # FIXME: we need at least 68020 code to build shared libraries, but |
6465 | # adding the `-m68020' flag to GCC prevents building anything better, |
6466 | # like `-m68040'. |
6467 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
6468 | ;; |
6469 | |
6470 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
6471 | # PIC is the default for these OSes. |
6472 | ;; |
6473 | |
6474 | mingw* | pw32* | os2*) |
6475 | # This hack is so that the source file can tell whether it is being |
6476 | # built for inclusion in a dll (and should export symbols for example). |
6477 | lt_prog_compiler_pic='-DDLL_EXPORT' |
6478 | ;; |
6479 | |
6480 | darwin* | rhapsody*) |
6481 | # PIC is the default on this platform |
6482 | # Common symbols not allowed in MH_DYLIB files |
6483 | lt_prog_compiler_pic='-fno-common' |
6484 | ;; |
6485 | |
6486 | interix3*) |
6487 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
6488 | # Instead, we relocate shared libraries at runtime. |
6489 | ;; |
6490 | |
6491 | msdosdjgpp*) |
6492 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
6493 | # on systems that don't support them. |
6494 | lt_prog_compiler_can_build_shared=no |
6495 | enable_shared=no |
6496 | ;; |
6497 | |
6498 | sysv4*MP*) |
6499 | if test -d /usr/nec; then |
6500 | lt_prog_compiler_pic=-Kconform_pic |
6501 | fi |
6502 | ;; |
6503 | |
6504 | hpux*) |
6505 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
6506 | # not for PA HP-UX. |
6507 | case $host_cpu in |
6508 | hppa*64*|ia64*) |
6509 | # +Z the default |
6510 | ;; |
6511 | *) |
6512 | lt_prog_compiler_pic='-fPIC' |
6513 | ;; |
6514 | esac |
6515 | ;; |
6516 | |
6517 | *) |
6518 | lt_prog_compiler_pic='-fPIC' |
6519 | ;; |
6520 | esac |
6521 | else |
6522 | # PORTME Check for flag to pass linker flags through the system compiler. |
6523 | case $host_os in |
6524 | aix*) |
6525 | lt_prog_compiler_wl='-Wl,' |
6526 | if test "$host_cpu" = ia64; then |
6527 | # AIX 5 now supports IA64 processor |
6528 | lt_prog_compiler_static='-Bstatic' |
6529 | else |
6530 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
6531 | fi |
6532 | ;; |
6533 | darwin*) |
6534 | # PIC is the default on this platform |
6535 | # Common symbols not allowed in MH_DYLIB files |
6536 | case $cc_basename in |
6537 | xlc*) |
6538 | lt_prog_compiler_pic='-qnocommon' |
6539 | lt_prog_compiler_wl='-Wl,' |
6540 | ;; |
6541 | esac |
6542 | ;; |
6543 | |
6544 | mingw* | pw32* | os2*) |
6545 | # This hack is so that the source file can tell whether it is being |
6546 | # built for inclusion in a dll (and should export symbols for example). |
6547 | lt_prog_compiler_pic='-DDLL_EXPORT' |
6548 | ;; |
6549 | |
6550 | hpux9* | hpux10* | hpux11*) |
6551 | lt_prog_compiler_wl='-Wl,' |
6552 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
6553 | # not for PA HP-UX. |
6554 | case $host_cpu in |
6555 | hppa*64*|ia64*) |
6556 | # +Z the default |
6557 | ;; |
6558 | *) |
6559 | lt_prog_compiler_pic='+Z' |
6560 | ;; |
6561 | esac |
6562 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
6563 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
6564 | ;; |
6565 | |
6566 | irix5* | irix6* | nonstopux*) |
6567 | lt_prog_compiler_wl='-Wl,' |
6568 | # PIC (with -KPIC) is the default. |
6569 | lt_prog_compiler_static='-non_shared' |
6570 | ;; |
6571 | |
6572 | newsos6) |
6573 | lt_prog_compiler_pic='-KPIC' |
6574 | lt_prog_compiler_static='-Bstatic' |
6575 | ;; |
6576 | |
6577 | linux*) |
6578 | case $cc_basename in |
6579 | icc* | ecc*) |
6580 | lt_prog_compiler_wl='-Wl,' |
6581 | lt_prog_compiler_pic='-KPIC' |
6582 | lt_prog_compiler_static='-static' |
6583 | ;; |
6584 | pgcc* | pgf77* | pgf90* | pgf95*) |
6585 | # Portland Group compilers (*not* the Pentium gcc compiler, |
6586 | # which looks to be a dead project) |
6587 | lt_prog_compiler_wl='-Wl,' |
6588 | lt_prog_compiler_pic='-fpic' |
6589 | lt_prog_compiler_static='-Bstatic' |
6590 | ;; |
6591 | ccc*) |
6592 | lt_prog_compiler_wl='-Wl,' |
6593 | # All Alpha code is PIC. |
6594 | lt_prog_compiler_static='-non_shared' |
6595 | ;; |
6596 | esac |
6597 | ;; |
6598 | |
6599 | osf3* | osf4* | osf5*) |
6600 | lt_prog_compiler_wl='-Wl,' |
6601 | # All OSF/1 code is PIC. |
6602 | lt_prog_compiler_static='-non_shared' |
6603 | ;; |
6604 | |
6605 | solaris*) |
6606 | lt_prog_compiler_pic='-KPIC' |
6607 | lt_prog_compiler_static='-Bstatic' |
6608 | case $cc_basename in |
6609 | f77* | f90* | f95*) |
6610 | lt_prog_compiler_wl='-Qoption ld ';; |
6611 | *) |
6612 | lt_prog_compiler_wl='-Wl,';; |
6613 | esac |
6614 | ;; |
6615 | |
6616 | sunos4*) |
6617 | lt_prog_compiler_wl='-Qoption ld ' |
6618 | lt_prog_compiler_pic='-PIC' |
6619 | lt_prog_compiler_static='-Bstatic' |
6620 | ;; |
6621 | |
6622 | sysv4 | sysv4.2uw2* | sysv4.3*) |
6623 | lt_prog_compiler_wl='-Wl,' |
6624 | lt_prog_compiler_pic='-KPIC' |
6625 | lt_prog_compiler_static='-Bstatic' |
6626 | ;; |
6627 | |
6628 | sysv4*MP*) |
6629 | if test -d /usr/nec ;then |
6630 | lt_prog_compiler_pic='-Kconform_pic' |
6631 | lt_prog_compiler_static='-Bstatic' |
6632 | fi |
6633 | ;; |
6634 | |
6635 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
6636 | lt_prog_compiler_wl='-Wl,' |
6637 | lt_prog_compiler_pic='-KPIC' |
6638 | lt_prog_compiler_static='-Bstatic' |
6639 | ;; |
6640 | |
6641 | unicos*) |
6642 | lt_prog_compiler_wl='-Wl,' |
6643 | lt_prog_compiler_can_build_shared=no |
6644 | ;; |
6645 | |
6646 | uts4*) |
6647 | lt_prog_compiler_pic='-pic' |
6648 | lt_prog_compiler_static='-Bstatic' |
6649 | ;; |
6650 | |
6651 | *) |
6652 | lt_prog_compiler_can_build_shared=no |
6653 | ;; |
6654 | esac |
6655 | fi |
6656 | |
6657 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
6658 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
6659 | |
6660 | # |
6661 | # Check to make sure the PIC flag actually works. |
6662 | # |
6663 | if test -n "$lt_prog_compiler_pic"; then |
6664 | |
6665 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
6666 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
6667 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
6668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6669 | else |
6670 | lt_prog_compiler_pic_works=no |
6671 | ac_outfile=conftest.$ac_objext |
6672 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6673 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
6674 | # Insert the option either (1) after the last *FLAGS variable, or |
6675 | # (2) before a word containing "conftest.", or (3) at the end. |
6676 | # Note that $ac_compile itself does not contain backslashes and begins |
6677 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
6678 | # The option is referenced via a variable to avoid confusing sed. |
6679 | lt_compile=`echo "$ac_compile" | $SED \ |
6680 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
6681 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6682 | -e 's:$: $lt_compiler_flag:'` |
6683 | (eval echo "\"\$as_me:6683: $lt_compile\"" >&5) |
6684 | (eval "$lt_compile" 2>conftest.err) |
6685 | ac_status=$? |
6686 | cat conftest.err >&5 |
6687 | echo "$as_me:6687: \$? = $ac_status" >&5 |
6688 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6689 | # The compiler can only warn and ignore the option if not recognized |
6690 | # So say no if there are warnings other than the usual output. |
6691 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
6692 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
6693 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
6694 | lt_prog_compiler_pic_works=yes |
6695 | fi |
6696 | fi |
6697 | $rm conftest* |
6698 | |
6699 | fi |
6700 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
6701 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
6702 | |
6703 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
6704 | case $lt_prog_compiler_pic in |
6705 | "" | " "*) ;; |
6706 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
6707 | esac |
6708 | else |
6709 | lt_prog_compiler_pic= |
6710 | lt_prog_compiler_can_build_shared=no |
6711 | fi |
6712 | |
6713 | fi |
6714 | case $host_os in |
6715 | # For platforms which do not support PIC, -DPIC is meaningless: |
6716 | *djgpp*) |
6717 | lt_prog_compiler_pic= |
6718 | ;; |
6719 | *) |
6720 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
6721 | ;; |
6722 | esac |
6723 | |
6724 | # |
6725 | # Check to make sure the static flag actually works. |
6726 | # |
6727 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
6728 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
6729 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
6730 | if test "${lt_prog_compiler_static_works+set}" = set; then |
6731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6732 | else |
6733 | lt_prog_compiler_static_works=no |
6734 | save_LDFLAGS="$LDFLAGS" |
6735 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
6736 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
6737 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
6738 | # The linker can only warn and ignore the option if not recognized |
6739 | # So say no if there are warnings |
6740 | if test -s conftest.err; then |
6741 | # Append any errors to the config.log. |
6742 | cat conftest.err 1>&5 |
6743 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
6744 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
6745 | if diff conftest.exp conftest.er2 >/dev/null; then |
6746 | lt_prog_compiler_static_works=yes |
6747 | fi |
6748 | else |
6749 | lt_prog_compiler_static_works=yes |
6750 | fi |
6751 | fi |
6752 | $rm conftest* |
6753 | LDFLAGS="$save_LDFLAGS" |
6754 | |
6755 | fi |
6756 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
6757 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
6758 | |
6759 | if test x"$lt_prog_compiler_static_works" = xyes; then |
6760 | : |
6761 | else |
6762 | lt_prog_compiler_static= |
6763 | fi |
6764 | |
6765 | |
6766 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
6767 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
6768 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
6769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6770 | else |
6771 | lt_cv_prog_compiler_c_o=no |
6772 | $rm -r conftest 2>/dev/null |
6773 | mkdir conftest |
6774 | cd conftest |
6775 | mkdir out |
6776 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6777 | |
6778 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
6779 | # Insert the option either (1) after the last *FLAGS variable, or |
6780 | # (2) before a word containing "conftest.", or (3) at the end. |
6781 | # Note that $ac_compile itself does not contain backslashes and begins |
6782 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
6783 | lt_compile=`echo "$ac_compile" | $SED \ |
6784 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
6785 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6786 | -e 's:$: $lt_compiler_flag:'` |
6787 | (eval echo "\"\$as_me:6787: $lt_compile\"" >&5) |
6788 | (eval "$lt_compile" 2>out/conftest.err) |
6789 | ac_status=$? |
6790 | cat out/conftest.err >&5 |
6791 | echo "$as_me:6791: \$? = $ac_status" >&5 |
6792 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
6793 | then |
6794 | # The compiler can only warn and ignore the option if not recognized |
6795 | # So say no if there are warnings |
6796 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
6797 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
6798 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
6799 | lt_cv_prog_compiler_c_o=yes |
6800 | fi |
6801 | fi |
6802 | chmod u+w . 2>&5 |
6803 | $rm conftest* |
6804 | # SGI C++ compiler will create directory out/ii_files/ for |
6805 | # template instantiation |
6806 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
6807 | $rm out/* && rmdir out |
6808 | cd .. |
6809 | rmdir conftest |
6810 | $rm conftest* |
6811 | |
6812 | fi |
6813 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
6814 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
6815 | |
6816 | |
6817 | hard_links="nottested" |
6818 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
6819 | # do not overwrite the value of need_locks provided by the user |
6820 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
6821 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
6822 | hard_links=yes |
6823 | $rm conftest* |
6824 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
6825 | touch conftest.a |
6826 | ln conftest.a conftest.b 2>&5 || hard_links=no |
6827 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
6828 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
6829 | echo "${ECHO_T}$hard_links" >&6 |
6830 | if test "$hard_links" = no; then |
6831 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
6832 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
6833 | need_locks=warn |
6834 | fi |
6835 | else |
6836 | need_locks=no |
6837 | fi |
6838 | |
6839 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
6840 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
6841 | |
6842 | runpath_var= |
6843 | allow_undefined_flag= |
6844 | enable_shared_with_static_runtimes=no |
6845 | archive_cmds= |
6846 | archive_expsym_cmds= |
6847 | old_archive_From_new_cmds= |
6848 | old_archive_from_expsyms_cmds= |
6849 | export_dynamic_flag_spec= |
6850 | whole_archive_flag_spec= |
6851 | thread_safe_flag_spec= |
6852 | hardcode_libdir_flag_spec= |
6853 | hardcode_libdir_flag_spec_ld= |
6854 | hardcode_libdir_separator= |
6855 | hardcode_direct=no |
6856 | hardcode_minus_L=no |
6857 | hardcode_shlibpath_var=unsupported |
6858 | link_all_deplibs=unknown |
6859 | hardcode_automatic=no |
6860 | module_cmds= |
6861 | module_expsym_cmds= |
6862 | always_export_symbols=no |
6863 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
6864 | # include_expsyms should be a list of space-separated symbols to be *always* |
6865 | # included in the symbol list |
6866 | include_expsyms= |
6867 | # exclude_expsyms can be an extended regexp of symbols to exclude |
6868 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
6869 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
6870 | # as well as any symbol that contains `d'. |
6871 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
6872 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
6873 | # platforms (ab)use it in PIC code, but their linkers get confused if |
6874 | # the symbol is explicitly referenced. Since portable code cannot |
6875 | # rely on this symbol name, it's probably fine to never include it in |
6876 | # preloaded symbol tables. |
6877 | extract_expsyms_cmds= |
6878 | # Just being paranoid about ensuring that cc_basename is set. |
6879 | for cc_temp in $compiler""; do |
6880 | case $cc_temp in |
6881 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
6882 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
6883 | \-*) ;; |
6884 | *) break;; |
6885 | esac |
6886 | done |
6887 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
6888 | |
6889 | case $host_os in |
6890 | cygwin* | mingw* | pw32*) |
6891 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
6892 | # When not using gcc, we currently assume that we are using |
6893 | # Microsoft Visual C++. |
6894 | if test "$GCC" != yes; then |
6895 | with_gnu_ld=no |
6896 | fi |
6897 | ;; |
6898 | interix*) |
6899 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
6900 | with_gnu_ld=yes |
6901 | ;; |
6902 | openbsd*) |
6903 | with_gnu_ld=no |
6904 | ;; |
6905 | esac |
6906 | |
6907 | ld_shlibs=yes |
6908 | if test "$with_gnu_ld" = yes; then |
6909 | # If archive_cmds runs LD, not CC, wlarc should be empty |
6910 | wlarc='${wl}' |
6911 | |
6912 | # Set some defaults for GNU ld with shared library support. These |
6913 | # are reset later if shared libraries are not supported. Putting them |
6914 | # here allows them to be overridden if necessary. |
6915 | runpath_var=LD_RUN_PATH |
6916 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
6917 | export_dynamic_flag_spec='${wl}--export-dynamic' |
6918 | # ancient GNU ld didn't support --whole-archive et. al. |
6919 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
6920 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
6921 | else |
6922 | whole_archive_flag_spec= |
6923 | fi |
6924 | supports_anon_versioning=no |
6925 | case `$LD -v 2>/dev/null` in |
6926 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
6927 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
6928 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
6929 | *\ 2.11.*) ;; # other 2.11 versions |
6930 | *) supports_anon_versioning=yes ;; |
6931 | esac |
6932 | |
6933 | # See if GNU ld supports shared libraries. |
6934 | case $host_os in |
6935 | aix3* | aix4* | aix5*) |
6936 | # On AIX/PPC, the GNU linker is very broken |
6937 | if test "$host_cpu" != ia64; then |
6938 | ld_shlibs=no |
6939 | cat <<EOF 1>&2 |
6940 | |
6941 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
6942 | *** to be unable to reliably create shared libraries on AIX. |
6943 | *** Therefore, libtool is disabling shared libraries support. If you |
6944 | *** really care for shared libraries, you may want to modify your PATH |
6945 | *** so that a non-GNU linker is found, and then restart. |
6946 | |
6947 | EOF |
6948 | fi |
6949 | ;; |
6950 | |
6951 | amigaos*) |
6952 | 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)' |
6953 | hardcode_libdir_flag_spec='-L$libdir' |
6954 | hardcode_minus_L=yes |
6955 | |
6956 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
6957 | # that the semantics of dynamic libraries on AmigaOS, at least up |
6958 | # to version 4, is to share data among multiple programs linked |
6959 | # with the same dynamic library. Since this doesn't match the |
6960 | # behavior of shared libraries on other platforms, we can't use |
6961 | # them. |
6962 | ld_shlibs=no |
6963 | ;; |
6964 | |
6965 | beos*) |
6966 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
6967 | allow_undefined_flag=unsupported |
6968 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
6969 | # support --undefined. This deserves some investigation. FIXME |
6970 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
6971 | else |
6972 | ld_shlibs=no |
6973 | fi |
6974 | ;; |
6975 | |
6976 | cygwin* | mingw* | pw32*) |
6977 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
6978 | # as there is no search path for DLLs. |
6979 | hardcode_libdir_flag_spec='-L$libdir' |
6980 | allow_undefined_flag=unsupported |
6981 | always_export_symbols=no |
6982 | enable_shared_with_static_runtimes=yes |
6983 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
6984 | |
6985 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
6986 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
6987 | # If the export-symbols file already is a .def file (1st line |
6988 | # is EXPORTS), use it as is; otherwise, prepend... |
6989 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
6990 | cp $export_symbols $output_objdir/$soname.def; |
6991 | else |
6992 | echo EXPORTS > $output_objdir/$soname.def; |
6993 | cat $export_symbols >> $output_objdir/$soname.def; |
6994 | fi~ |
6995 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
6996 | else |
6997 | ld_shlibs=no |
6998 | fi |
6999 | ;; |
7000 | |
7001 | interix3*) |
7002 | hardcode_direct=no |
7003 | hardcode_shlibpath_var=no |
7004 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7005 | export_dynamic_flag_spec='${wl}-E' |
7006 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
7007 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
7008 | # default) and relocated if they conflict, which is a slow very memory |
7009 | # consuming and fragmenting process. To avoid this, we pick a random, |
7010 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
7011 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
7012 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
7013 | 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' |
7014 | ;; |
7015 | |
7016 | linux*) |
7017 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7018 | tmp_addflag= |
7019 | case $cc_basename,$host_cpu in |
7020 | pgcc*) # Portland Group C compiler |
7021 | 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' |
7022 | tmp_addflag=' $pic_flag' |
7023 | ;; |
7024 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
7025 | 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' |
7026 | tmp_addflag=' $pic_flag -Mnomain' ;; |
7027 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
7028 | tmp_addflag=' -i_dynamic' ;; |
7029 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
7030 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
7031 | ifc* | ifort*) # Intel Fortran compiler |
7032 | tmp_addflag=' -nofor_main' ;; |
7033 | esac |
7034 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7035 | |
7036 | if test $supports_anon_versioning = yes; then |
7037 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
7038 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
7039 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
7040 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
7041 | fi |
7042 | else |
7043 | ld_shlibs=no |
7044 | fi |
7045 | ;; |
7046 | |
7047 | netbsd*) |
7048 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7049 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
7050 | wlarc= |
7051 | else |
7052 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7053 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7054 | fi |
7055 | ;; |
7056 | |
7057 | solaris*) |
7058 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
7059 | ld_shlibs=no |
7060 | cat <<EOF 1>&2 |
7061 | |
7062 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
7063 | *** create shared libraries on Solaris systems. Therefore, libtool |
7064 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7065 | *** binutils to release 2.9.1 or newer. Another option is to modify |
7066 | *** your PATH or compiler configuration so that the native linker is |
7067 | *** used, and then restart. |
7068 | |
7069 | EOF |
7070 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7071 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7072 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7073 | else |
7074 | ld_shlibs=no |
7075 | fi |
7076 | ;; |
7077 | |
7078 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
7079 | case `$LD -v 2>&1` in |
7080 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
7081 | ld_shlibs=no |
7082 | cat <<_LT_EOF 1>&2 |
7083 | |
7084 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
7085 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
7086 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7087 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
7088 | *** your PATH or compiler configuration so that the native linker is |
7089 | *** used, and then restart. |
7090 | |
7091 | _LT_EOF |
7092 | ;; |
7093 | *) |
7094 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7095 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
7096 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
7097 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
7098 | else |
7099 | ld_shlibs=no |
7100 | fi |
7101 | ;; |
7102 | esac |
7103 | ;; |
7104 | |
7105 | sunos4*) |
7106 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7107 | wlarc= |
7108 | hardcode_direct=yes |
7109 | hardcode_shlibpath_var=no |
7110 | ;; |
7111 | |
7112 | *) |
7113 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7114 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7115 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7116 | else |
7117 | ld_shlibs=no |
7118 | fi |
7119 | ;; |
7120 | esac |
7121 | |
7122 | if test "$ld_shlibs" = no; then |
7123 | runpath_var= |
7124 | hardcode_libdir_flag_spec= |
7125 | export_dynamic_flag_spec= |
7126 | whole_archive_flag_spec= |
7127 | fi |
7128 | else |
7129 | # PORTME fill in a description of your system's linker (not GNU ld) |
7130 | case $host_os in |
7131 | aix3*) |
7132 | allow_undefined_flag=unsupported |
7133 | always_export_symbols=yes |
7134 | 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' |
7135 | # Note: this linker hardcodes the directories in LIBPATH if there |
7136 | # are no directories specified by -L. |
7137 | hardcode_minus_L=yes |
7138 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
7139 | # Neither direct hardcoding nor static linking is supported with a |
7140 | # broken collect2. |
7141 | hardcode_direct=unsupported |
7142 | fi |
7143 | ;; |
7144 | |
7145 | aix4* | aix5*) |
7146 | if test "$host_cpu" = ia64; then |
7147 | # On IA64, the linker does run time linking by default, so we don't |
7148 | # have to do anything special. |
7149 | aix_use_runtimelinking=no |
7150 | exp_sym_flag='-Bexport' |
7151 | no_entry_flag="" |
7152 | else |
7153 | # If we're using GNU nm, then we don't want the "-C" option. |
7154 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
7155 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
7156 | 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' |
7157 | else |
7158 | 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' |
7159 | fi |
7160 | aix_use_runtimelinking=no |
7161 | |
7162 | # Test if we are trying to use run time linking or normal |
7163 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
7164 | # need to do runtime linking. |
7165 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
7166 | for ld_flag in $LDFLAGS; do |
7167 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
7168 | aix_use_runtimelinking=yes |
7169 | break |
7170 | fi |
7171 | done |
7172 | ;; |
7173 | esac |
7174 | |
7175 | exp_sym_flag='-bexport' |
7176 | no_entry_flag='-bnoentry' |
7177 | fi |
7178 | |
7179 | # When large executables or shared objects are built, AIX ld can |
7180 | # have problems creating the table of contents. If linking a library |
7181 | # or program results in "error TOC overflow" add -mminimal-toc to |
7182 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
7183 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
7184 | |
7185 | archive_cmds='' |
7186 | hardcode_direct=yes |
7187 | hardcode_libdir_separator=':' |
7188 | link_all_deplibs=yes |
7189 | |
7190 | if test "$GCC" = yes; then |
7191 | case $host_os in aix4.[012]|aix4.[012].*) |
7192 | # We only want to do this on AIX 4.2 and lower, the check |
7193 | # below for broken collect2 doesn't work under 4.3+ |
7194 | collect2name=`${CC} -print-prog-name=collect2` |
7195 | if test -f "$collect2name" && \ |
7196 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
7197 | then |
7198 | # We have reworked collect2 |
7199 | hardcode_direct=yes |
7200 | else |
7201 | # We have old collect2 |
7202 | hardcode_direct=unsupported |
7203 | # It fails to find uninstalled libraries when the uninstalled |
7204 | # path is not listed in the libpath. Setting hardcode_minus_L |
7205 | # to unsupported forces relinking |
7206 | hardcode_minus_L=yes |
7207 | hardcode_libdir_flag_spec='-L$libdir' |
7208 | hardcode_libdir_separator= |
7209 | fi |
7210 | ;; |
7211 | esac |
7212 | shared_flag='-shared' |
7213 | if test "$aix_use_runtimelinking" = yes; then |
7214 | shared_flag="$shared_flag "'${wl}-G' |
7215 | fi |
7216 | else |
7217 | # not using gcc |
7218 | if test "$host_cpu" = ia64; then |
7219 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
7220 | # chokes on -Wl,-G. The following line is correct: |
7221 | shared_flag='-G' |
7222 | else |
7223 | if test "$aix_use_runtimelinking" = yes; then |
7224 | shared_flag='${wl}-G' |
7225 | else |
7226 | shared_flag='${wl}-bM:SRE' |
7227 | fi |
7228 | fi |
7229 | fi |
7230 | |
7231 | # It seems that -bexpall does not export symbols beginning with |
7232 | # underscore (_), so it is better to generate a list of symbols to export. |
7233 | always_export_symbols=yes |
7234 | if test "$aix_use_runtimelinking" = yes; then |
7235 | # Warning - without using the other runtime loading flags (-brtl), |
7236 | # -berok will link without error, but may produce a broken library. |
7237 | allow_undefined_flag='-berok' |
7238 | # Determine the default libpath from the value encoded in an empty executable. |
7239 | cat >conftest.$ac_ext <<_ACEOF |
7240 | /* confdefs.h. */ |
7241 | _ACEOF |
7242 | cat confdefs.h >>conftest.$ac_ext |
7243 | cat >>conftest.$ac_ext <<_ACEOF |
7244 | /* end confdefs.h. */ |
7245 | |
7246 | int |
7247 | main () |
7248 | { |
7249 | |
7250 | ; |
7251 | return 0; |
7252 | } |
7253 | _ACEOF |
7254 | rm -f conftest.$ac_objext conftest$ac_exeext |
7255 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7256 | (eval $ac_link) 2>conftest.er1 |
7257 | ac_status=$? |
7258 | grep -v '^ *+' conftest.er1 >conftest.err |
7259 | rm -f conftest.er1 |
7260 | cat conftest.err >&5 |
7261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7262 | (exit $ac_status); } && |
7263 | { ac_try='test -z "$ac_c_werror_flag" |
7264 | || test ! -s conftest.err' |
7265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7266 | (eval $ac_try) 2>&5 |
7267 | ac_status=$? |
7268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7269 | (exit $ac_status); }; } && |
7270 | { ac_try='test -s conftest$ac_exeext' |
7271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7272 | (eval $ac_try) 2>&5 |
7273 | ac_status=$? |
7274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7275 | (exit $ac_status); }; }; then |
7276 | |
7277 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
7278 | }'` |
7279 | # Check for a 64-bit object if we didn't find anything. |
7280 | 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; } |
7281 | }'`; fi |
7282 | else |
7283 | echo "$as_me: failed program was:" >&5 |
7284 | sed 's/^/| /' conftest.$ac_ext >&5 |
7285 | |
7286 | fi |
7287 | rm -f conftest.err conftest.$ac_objext \ |
7288 | conftest$ac_exeext conftest.$ac_ext |
7289 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
7290 | |
7291 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
7292 | 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" |
7293 | else |
7294 | if test "$host_cpu" = ia64; then |
7295 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
7296 | allow_undefined_flag="-z nodefs" |
7297 | 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" |
7298 | else |
7299 | # Determine the default libpath from the value encoded in an empty executable. |
7300 | cat >conftest.$ac_ext <<_ACEOF |
7301 | /* confdefs.h. */ |
7302 | _ACEOF |
7303 | cat confdefs.h >>conftest.$ac_ext |
7304 | cat >>conftest.$ac_ext <<_ACEOF |
7305 | /* end confdefs.h. */ |
7306 | |
7307 | int |
7308 | main () |
7309 | { |
7310 | |
7311 | ; |
7312 | return 0; |
7313 | } |
7314 | _ACEOF |
7315 | rm -f conftest.$ac_objext conftest$ac_exeext |
7316 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7317 | (eval $ac_link) 2>conftest.er1 |
7318 | ac_status=$? |
7319 | grep -v '^ *+' conftest.er1 >conftest.err |
7320 | rm -f conftest.er1 |
7321 | cat conftest.err >&5 |
7322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7323 | (exit $ac_status); } && |
7324 | { ac_try='test -z "$ac_c_werror_flag" |
7325 | || test ! -s conftest.err' |
7326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7327 | (eval $ac_try) 2>&5 |
7328 | ac_status=$? |
7329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7330 | (exit $ac_status); }; } && |
7331 | { ac_try='test -s conftest$ac_exeext' |
7332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7333 | (eval $ac_try) 2>&5 |
7334 | ac_status=$? |
7335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7336 | (exit $ac_status); }; }; then |
7337 | |
7338 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
7339 | }'` |
7340 | # Check for a 64-bit object if we didn't find anything. |
7341 | 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; } |
7342 | }'`; fi |
7343 | else |
7344 | echo "$as_me: failed program was:" >&5 |
7345 | sed 's/^/| /' conftest.$ac_ext >&5 |
7346 | |
7347 | fi |
7348 | rm -f conftest.err conftest.$ac_objext \ |
7349 | conftest$ac_exeext conftest.$ac_ext |
7350 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
7351 | |
7352 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
7353 | # Warning - without using the other run time loading flags, |
7354 | # -berok will link without error, but may produce a broken library. |
7355 | no_undefined_flag=' ${wl}-bernotok' |
7356 | allow_undefined_flag=' ${wl}-berok' |
7357 | # Exported symbols can be pulled into shared objects from archives |
7358 | whole_archive_flag_spec='$convenience' |
7359 | archive_cmds_need_lc=yes |
7360 | # This is similar to how AIX traditionally builds its shared libraries. |
7361 | 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' |
7362 | fi |
7363 | fi |
7364 | ;; |
7365 | |
7366 | amigaos*) |
7367 | 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)' |
7368 | hardcode_libdir_flag_spec='-L$libdir' |
7369 | hardcode_minus_L=yes |
7370 | # see comment about different semantics on the GNU ld section |
7371 | ld_shlibs=no |
7372 | ;; |
7373 | |
7374 | bsdi[45]*) |
7375 | export_dynamic_flag_spec=-rdynamic |
7376 | ;; |
7377 | |
7378 | cygwin* | mingw* | pw32*) |
7379 | # When not using gcc, we currently assume that we are using |
7380 | # Microsoft Visual C++. |
7381 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
7382 | # no search path for DLLs. |
7383 | hardcode_libdir_flag_spec=' ' |
7384 | allow_undefined_flag=unsupported |
7385 | # Tell ltmain to make .lib files, not .a files. |
7386 | libext=lib |
7387 | # Tell ltmain to make .dll files, not .so files. |
7388 | shrext_cmds=".dll" |
7389 | # FIXME: Setting linknames here is a bad hack. |
7390 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
7391 | # The linker will automatically build a .lib file if we build a DLL. |
7392 | old_archive_From_new_cmds='true' |
7393 | # FIXME: Should let the user specify the lib program. |
7394 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
7395 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
7396 | enable_shared_with_static_runtimes=yes |
7397 | ;; |
7398 | |
7399 | darwin* | rhapsody*) |
7400 | case $host_os in |
7401 | rhapsody* | darwin1.[012]) |
7402 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
7403 | ;; |
7404 | *) # Darwin 1.3 on |
7405 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
7406 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
7407 | else |
7408 | case ${MACOSX_DEPLOYMENT_TARGET} in |
7409 | 10.[012]) |
7410 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
7411 | ;; |
7412 | 10.*) |
7413 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
7414 | ;; |
7415 | esac |
7416 | fi |
7417 | ;; |
7418 | esac |
7419 | archive_cmds_need_lc=no |
7420 | hardcode_direct=no |
7421 | hardcode_automatic=yes |
7422 | hardcode_shlibpath_var=unsupported |
7423 | whole_archive_flag_spec='' |
7424 | link_all_deplibs=yes |
7425 | if test "$GCC" = yes ; then |
7426 | output_verbose_link_cmd='echo' |
7427 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
7428 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
7429 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
7430 | 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}' |
7431 | 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}' |
7432 | else |
7433 | case $cc_basename in |
7434 | xlc*) |
7435 | output_verbose_link_cmd='echo' |
7436 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
7437 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
7438 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
7439 | 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}' |
7440 | 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}' |
7441 | ;; |
7442 | *) |
7443 | ld_shlibs=no |
7444 | ;; |
7445 | esac |
7446 | fi |
7447 | ;; |
7448 | |
7449 | dgux*) |
7450 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7451 | hardcode_libdir_flag_spec='-L$libdir' |
7452 | hardcode_shlibpath_var=no |
7453 | ;; |
7454 | |
7455 | freebsd1*) |
7456 | ld_shlibs=no |
7457 | ;; |
7458 | |
7459 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
7460 | # support. Future versions do this automatically, but an explicit c++rt0.o |
7461 | # does not break anything, and helps significantly (at the cost of a little |
7462 | # extra space). |
7463 | freebsd2.2*) |
7464 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
7465 | hardcode_libdir_flag_spec='-R$libdir' |
7466 | hardcode_direct=yes |
7467 | hardcode_shlibpath_var=no |
7468 | ;; |
7469 | |
7470 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
7471 | freebsd2*) |
7472 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7473 | hardcode_direct=yes |
7474 | hardcode_minus_L=yes |
7475 | hardcode_shlibpath_var=no |
7476 | ;; |
7477 | |
7478 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
7479 | freebsd* | kfreebsd*-gnu | dragonfly*) |
7480 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
7481 | hardcode_libdir_flag_spec='-R$libdir' |
7482 | hardcode_direct=yes |
7483 | hardcode_shlibpath_var=no |
7484 | ;; |
7485 | |
7486 | hpux9*) |
7487 | if test "$GCC" = yes; then |
7488 | 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' |
7489 | else |
7490 | 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' |
7491 | fi |
7492 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7493 | hardcode_libdir_separator=: |
7494 | hardcode_direct=yes |
7495 | |
7496 | # hardcode_minus_L: Not really in the search PATH, |
7497 | # but as the default location of the library. |
7498 | hardcode_minus_L=yes |
7499 | export_dynamic_flag_spec='${wl}-E' |
7500 | ;; |
7501 | |
7502 | hpux10*) |
7503 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
7504 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
7505 | else |
7506 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
7507 | fi |
7508 | if test "$with_gnu_ld" = no; then |
7509 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7510 | hardcode_libdir_separator=: |
7511 | |
7512 | hardcode_direct=yes |
7513 | export_dynamic_flag_spec='${wl}-E' |
7514 | |
7515 | # hardcode_minus_L: Not really in the search PATH, |
7516 | # but as the default location of the library. |
7517 | hardcode_minus_L=yes |
7518 | fi |
7519 | ;; |
7520 | |
7521 | hpux11*) |
7522 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
7523 | case $host_cpu in |
7524 | hppa*64*) |
7525 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7526 | ;; |
7527 | ia64*) |
7528 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
7529 | ;; |
7530 | *) |
7531 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
7532 | ;; |
7533 | esac |
7534 | else |
7535 | case $host_cpu in |
7536 | hppa*64*) |
7537 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7538 | ;; |
7539 | ia64*) |
7540 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
7541 | ;; |
7542 | *) |
7543 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
7544 | ;; |
7545 | esac |
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 | case $host_cpu in |
7552 | hppa*64*|ia64*) |
7553 | hardcode_libdir_flag_spec_ld='+b $libdir' |
7554 | hardcode_direct=no |
7555 | hardcode_shlibpath_var=no |
7556 | ;; |
7557 | *) |
7558 | hardcode_direct=yes |
7559 | export_dynamic_flag_spec='${wl}-E' |
7560 | |
7561 | # hardcode_minus_L: Not really in the search PATH, |
7562 | # but as the default location of the library. |
7563 | hardcode_minus_L=yes |
7564 | ;; |
7565 | esac |
7566 | fi |
7567 | ;; |
7568 | |
7569 | irix5* | irix6* | nonstopux*) |
7570 | if test "$GCC" = yes; then |
7571 | 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' |
7572 | else |
7573 | 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' |
7574 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
7575 | fi |
7576 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7577 | hardcode_libdir_separator=: |
7578 | link_all_deplibs=yes |
7579 | ;; |
7580 | |
7581 | netbsd*) |
7582 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7583 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
7584 | else |
7585 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
7586 | fi |
7587 | hardcode_libdir_flag_spec='-R$libdir' |
7588 | hardcode_direct=yes |
7589 | hardcode_shlibpath_var=no |
7590 | ;; |
7591 | |
7592 | newsos6) |
7593 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7594 | hardcode_direct=yes |
7595 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7596 | hardcode_libdir_separator=: |
7597 | hardcode_shlibpath_var=no |
7598 | ;; |
7599 | |
7600 | openbsd*) |
7601 | hardcode_direct=yes |
7602 | hardcode_shlibpath_var=no |
7603 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
7604 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
7605 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
7606 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7607 | export_dynamic_flag_spec='${wl}-E' |
7608 | else |
7609 | case $host_os in |
7610 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
7611 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7612 | hardcode_libdir_flag_spec='-R$libdir' |
7613 | ;; |
7614 | *) |
7615 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
7616 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7617 | ;; |
7618 | esac |
7619 | fi |
7620 | ;; |
7621 | |
7622 | os2*) |
7623 | hardcode_libdir_flag_spec='-L$libdir' |
7624 | hardcode_minus_L=yes |
7625 | allow_undefined_flag=unsupported |
7626 | 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' |
7627 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
7628 | ;; |
7629 | |
7630 | osf3*) |
7631 | if test "$GCC" = yes; then |
7632 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
7633 | 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' |
7634 | else |
7635 | allow_undefined_flag=' -expect_unresolved \*' |
7636 | 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' |
7637 | fi |
7638 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7639 | hardcode_libdir_separator=: |
7640 | ;; |
7641 | |
7642 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
7643 | if test "$GCC" = yes; then |
7644 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
7645 | 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' |
7646 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7647 | else |
7648 | allow_undefined_flag=' -expect_unresolved \*' |
7649 | 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' |
7650 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
7651 | $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' |
7652 | |
7653 | # Both c and cxx compiler support -rpath directly |
7654 | hardcode_libdir_flag_spec='-rpath $libdir' |
7655 | fi |
7656 | hardcode_libdir_separator=: |
7657 | ;; |
7658 | |
7659 | solaris*) |
7660 | no_undefined_flag=' -z text' |
7661 | if test "$GCC" = yes; then |
7662 | wlarc='${wl}' |
7663 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7664 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
7665 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
7666 | else |
7667 | wlarc='' |
7668 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7669 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
7670 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
7671 | fi |
7672 | hardcode_libdir_flag_spec='-R$libdir' |
7673 | hardcode_shlibpath_var=no |
7674 | case $host_os in |
7675 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
7676 | *) |
7677 | # The compiler driver will combine linker options so we |
7678 | # cannot just pass the convience library names through |
7679 | # without $wl, iff we do not link with $LD. |
7680 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
7681 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
7682 | case $wlarc in |
7683 | '') |
7684 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
7685 | *) |
7686 | 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' ;; |
7687 | esac ;; |
7688 | esac |
7689 | link_all_deplibs=yes |
7690 | ;; |
7691 | |
7692 | sunos4*) |
7693 | if test "x$host_vendor" = xsequent; then |
7694 | # Use $CC to link under sequent, because it throws in some extra .o |
7695 | # files that make .init and .fini sections work. |
7696 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
7697 | else |
7698 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
7699 | fi |
7700 | hardcode_libdir_flag_spec='-L$libdir' |
7701 | hardcode_direct=yes |
7702 | hardcode_minus_L=yes |
7703 | hardcode_shlibpath_var=no |
7704 | ;; |
7705 | |
7706 | sysv4) |
7707 | case $host_vendor in |
7708 | sni) |
7709 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7710 | hardcode_direct=yes # is this really true??? |
7711 | ;; |
7712 | siemens) |
7713 | ## LD is ld it makes a PLAMLIB |
7714 | ## CC just makes a GrossModule. |
7715 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
7716 | reload_cmds='$CC -r -o $output$reload_objs' |
7717 | hardcode_direct=no |
7718 | ;; |
7719 | motorola) |
7720 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7721 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
7722 | ;; |
7723 | esac |
7724 | runpath_var='LD_RUN_PATH' |
7725 | hardcode_shlibpath_var=no |
7726 | ;; |
7727 | |
7728 | sysv4.3*) |
7729 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7730 | hardcode_shlibpath_var=no |
7731 | export_dynamic_flag_spec='-Bexport' |
7732 | ;; |
7733 | |
7734 | sysv4*MP*) |
7735 | if test -d /usr/nec; then |
7736 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7737 | hardcode_shlibpath_var=no |
7738 | runpath_var=LD_RUN_PATH |
7739 | hardcode_runpath_var=yes |
7740 | ld_shlibs=yes |
7741 | fi |
7742 | ;; |
7743 | |
7744 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
7745 | no_undefined_flag='${wl}-z,text' |
7746 | archive_cmds_need_lc=no |
7747 | hardcode_shlibpath_var=no |
7748 | runpath_var='LD_RUN_PATH' |
7749 | |
7750 | if test "$GCC" = yes; then |
7751 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7752 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7753 | else |
7754 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7755 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7756 | fi |
7757 | ;; |
7758 | |
7759 | sysv5* | sco3.2v5* | sco5v6*) |
7760 | # Note: We can NOT use -z defs as we might desire, because we do not |
7761 | # link with -lc, and that would cause any symbols used from libc to |
7762 | # always be unresolved, which means just about no library would |
7763 | # ever link correctly. If we're not using GNU ld we use -z text |
7764 | # though, which does catch some bad symbols but isn't as heavy-handed |
7765 | # as -z defs. |
7766 | no_undefined_flag='${wl}-z,text' |
7767 | allow_undefined_flag='${wl}-z,nodefs' |
7768 | archive_cmds_need_lc=no |
7769 | hardcode_shlibpath_var=no |
7770 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
7771 | hardcode_libdir_separator=':' |
7772 | link_all_deplibs=yes |
7773 | export_dynamic_flag_spec='${wl}-Bexport' |
7774 | runpath_var='LD_RUN_PATH' |
7775 | |
7776 | if test "$GCC" = yes; then |
7777 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7778 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7779 | else |
7780 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7781 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7782 | fi |
7783 | ;; |
7784 | |
7785 | uts4*) |
7786 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7787 | hardcode_libdir_flag_spec='-L$libdir' |
7788 | hardcode_shlibpath_var=no |
7789 | ;; |
7790 | |
7791 | *) |
7792 | ld_shlibs=no |
7793 | ;; |
7794 | esac |
7795 | fi |
7796 | |
7797 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
7798 | echo "${ECHO_T}$ld_shlibs" >&6 |
7799 | test "$ld_shlibs" = no && can_build_shared=no |
7800 | |
7801 | # |
7802 | # Do we need to explicitly link libc? |
7803 | # |
7804 | case "x$archive_cmds_need_lc" in |
7805 | x|xyes) |
7806 | # Assume -lc should be added |
7807 | archive_cmds_need_lc=yes |
7808 | |
7809 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
7810 | case $archive_cmds in |
7811 | *'~'*) |
7812 | # FIXME: we may have to deal with multi-command sequences. |
7813 | ;; |
7814 | '$CC '*) |
7815 | # Test whether the compiler implicitly links with -lc since on some |
7816 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
7817 | # to ld, don't add -lc before -lgcc. |
7818 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
7819 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
7820 | $rm conftest* |
7821 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7822 | |
7823 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7824 | (eval $ac_compile) 2>&5 |
7825 | ac_status=$? |
7826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7827 | (exit $ac_status); } 2>conftest.err; then |
7828 | soname=conftest |
7829 | lib=conftest |
7830 | libobjs=conftest.$ac_objext |
7831 | deplibs= |
7832 | wl=$lt_prog_compiler_wl |
7833 | pic_flag=$lt_prog_compiler_pic |
7834 | compiler_flags=-v |
7835 | linker_flags=-v |
7836 | verstring= |
7837 | output_objdir=. |
7838 | libname=conftest |
7839 | lt_save_allow_undefined_flag=$allow_undefined_flag |
7840 | allow_undefined_flag= |
7841 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
7842 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
7843 | ac_status=$? |
7844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7845 | (exit $ac_status); } |
7846 | then |
7847 | archive_cmds_need_lc=no |
7848 | else |
7849 | archive_cmds_need_lc=yes |
7850 | fi |
7851 | allow_undefined_flag=$lt_save_allow_undefined_flag |
7852 | else |
7853 | cat conftest.err 1>&5 |
7854 | fi |
7855 | $rm conftest* |
7856 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
7857 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
7858 | ;; |
7859 | esac |
7860 | fi |
7861 | ;; |
7862 | esac |
7863 | |
7864 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
7865 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
7866 | library_names_spec= |
7867 | libname_spec='lib$name' |
7868 | soname_spec= |
7869 | shrext_cmds=".so" |
7870 | postinstall_cmds= |
7871 | postuninstall_cmds= |
7872 | finish_cmds= |
7873 | finish_eval= |
7874 | shlibpath_var= |
7875 | shlibpath_overrides_runpath=unknown |
7876 | version_type=none |
7877 | dynamic_linker="$host_os ld.so" |
7878 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
7879 | if test "$GCC" = yes; then |
7880 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
7881 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
7882 | # if the path contains ";" then we assume it to be the separator |
7883 | # otherwise default to the standard path separator (i.e. ":") - it is |
7884 | # assumed that no part of a normal pathname contains ";" but that should |
7885 | # okay in the real world where ";" in dirpaths is itself problematic. |
7886 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
7887 | else |
7888 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
7889 | fi |
7890 | else |
7891 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
7892 | fi |
7893 | need_lib_prefix=unknown |
7894 | hardcode_into_libs=no |
7895 | |
7896 | # when you set need_version to no, make sure it does not cause -set_version |
7897 | # flags to be left without arguments |
7898 | need_version=unknown |
7899 | |
7900 | case $host_os in |
7901 | aix3*) |
7902 | version_type=linux |
7903 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
7904 | shlibpath_var=LIBPATH |
7905 | |
7906 | # AIX 3 has no versioning support, so we append a major version to the name. |
7907 | soname_spec='${libname}${release}${shared_ext}$major' |
7908 | ;; |
7909 | |
7910 | aix4* | aix5*) |
7911 | version_type=linux |
7912 | need_lib_prefix=no |
7913 | need_version=no |
7914 | hardcode_into_libs=yes |
7915 | if test "$host_cpu" = ia64; then |
7916 | # AIX 5 supports IA64 |
7917 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
7918 | shlibpath_var=LD_LIBRARY_PATH |
7919 | else |
7920 | # With GCC up to 2.95.x, collect2 would create an import file |
7921 | # for dependence libraries. The import file would start with |
7922 | # the line `#! .'. This would cause the generated library to |
7923 | # depend on `.', always an invalid library. This was fixed in |
7924 | # development snapshots of GCC prior to 3.0. |
7925 | case $host_os in |
7926 | aix4 | aix4.[01] | aix4.[01].*) |
7927 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
7928 | echo ' yes ' |
7929 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
7930 | : |
7931 | else |
7932 | can_build_shared=no |
7933 | fi |
7934 | ;; |
7935 | esac |
7936 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
7937 | # soname into executable. Probably we can add versioning support to |
7938 | # collect2, so additional links can be useful in future. |
7939 | if test "$aix_use_runtimelinking" = yes; then |
7940 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
7941 | # instead of lib<name>.a to let people know that these are not |
7942 | # typical AIX shared libraries. |
7943 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
7944 | else |
7945 | # We preserve .a as extension for shared libraries through AIX4.2 |
7946 | # and later when we are not doing run time linking. |
7947 | library_names_spec='${libname}${release}.a $libname.a' |
7948 | soname_spec='${libname}${release}${shared_ext}$major' |
7949 | fi |
7950 | shlibpath_var=LIBPATH |
7951 | fi |
7952 | ;; |
7953 | |
7954 | amigaos*) |
7955 | library_names_spec='$libname.ixlibrary $libname.a' |
7956 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
7957 | 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' |
7958 | ;; |
7959 | |
7960 | beos*) |
7961 | library_names_spec='${libname}${shared_ext}' |
7962 | dynamic_linker="$host_os ld.so" |
7963 | shlibpath_var=LIBRARY_PATH |
7964 | ;; |
7965 | |
7966 | bsdi[45]*) |
7967 | version_type=linux |
7968 | need_version=no |
7969 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
7970 | soname_spec='${libname}${release}${shared_ext}$major' |
7971 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
7972 | shlibpath_var=LD_LIBRARY_PATH |
7973 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
7974 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
7975 | # the default ld.so.conf also contains /usr/contrib/lib and |
7976 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
7977 | # libtool to hard-code these into programs |
7978 | ;; |
7979 | |
7980 | cygwin* | mingw* | pw32*) |
7981 | version_type=windows |
7982 | shrext_cmds=".dll" |
7983 | need_version=no |
7984 | need_lib_prefix=no |
7985 | |
7986 | case $GCC,$host_os in |
7987 | yes,cygwin* | yes,mingw* | yes,pw32*) |
7988 | library_names_spec='$libname.dll.a' |
7989 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
7990 | postinstall_cmds='base_file=`basename \${file}`~ |
7991 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
7992 | dldir=$destdir/`dirname \$dlpath`~ |
7993 | test -d \$dldir || mkdir -p \$dldir~ |
7994 | $install_prog $dir/$dlname \$dldir/$dlname~ |
7995 | chmod a+x \$dldir/$dlname' |
7996 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
7997 | dlpath=$dir/\$dldll~ |
7998 | $rm \$dlpath' |
7999 | shlibpath_overrides_runpath=yes |
8000 | |
8001 | case $host_os in |
8002 | cygwin*) |
8003 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
8004 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8005 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
8006 | ;; |
8007 | mingw*) |
8008 | # MinGW DLLs use traditional 'lib' prefix |
8009 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8010 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8011 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
8012 | # It is most probably a Windows format PATH printed by |
8013 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
8014 | # path with ; separators, and with drive letters. We can handle the |
8015 | # drive letters (cygwin fileutils understands them), so leave them, |
8016 | # especially as we might pass files found there to a mingw objdump, |
8017 | # which wouldn't understand a cygwinified path. Ahh. |
8018 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
8019 | else |
8020 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8021 | fi |
8022 | ;; |
8023 | pw32*) |
8024 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
8025 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8026 | ;; |
8027 | esac |
8028 | ;; |
8029 | |
8030 | *) |
8031 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
8032 | ;; |
8033 | esac |
8034 | dynamic_linker='Win32 ld.exe' |
8035 | # FIXME: first we should search . and the directory the executable is in |
8036 | shlibpath_var=PATH |
8037 | ;; |
8038 | |
8039 | darwin* | rhapsody*) |
8040 | dynamic_linker="$host_os dyld" |
8041 | version_type=darwin |
8042 | need_lib_prefix=no |
8043 | need_version=no |
8044 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
8045 | soname_spec='${libname}${release}${major}$shared_ext' |
8046 | shlibpath_overrides_runpath=yes |
8047 | shlibpath_var=DYLD_LIBRARY_PATH |
8048 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
8049 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
8050 | if test "$GCC" = yes; then |
8051 | 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"` |
8052 | else |
8053 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
8054 | fi |
8055 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
8056 | ;; |
8057 | |
8058 | dgux*) |
8059 | version_type=linux |
8060 | need_lib_prefix=no |
8061 | need_version=no |
8062 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
8063 | soname_spec='${libname}${release}${shared_ext}$major' |
8064 | shlibpath_var=LD_LIBRARY_PATH |
8065 | ;; |
8066 | |
8067 | freebsd1*) |
8068 | dynamic_linker=no |
8069 | ;; |
8070 | |
8071 | kfreebsd*-gnu) |
8072 | version_type=linux |
8073 | need_lib_prefix=no |
8074 | need_version=no |
8075 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8076 | soname_spec='${libname}${release}${shared_ext}$major' |
8077 | shlibpath_var=LD_LIBRARY_PATH |
8078 | shlibpath_overrides_runpath=no |
8079 | hardcode_into_libs=yes |
8080 | dynamic_linker='GNU ld.so' |
8081 | ;; |
8082 | |
8083 | freebsd* | dragonfly*) |
8084 | # DragonFly does not have aout. When/if they implement a new |
8085 | # versioning mechanism, adjust this. |
8086 | if test -x /usr/bin/objformat; then |
8087 | objformat=`/usr/bin/objformat` |
8088 | else |
8089 | case $host_os in |
8090 | freebsd[123]*) objformat=aout ;; |
8091 | *) objformat=elf ;; |
8092 | esac |
8093 | fi |
8094 | version_type=freebsd-$objformat |
8095 | case $version_type in |
8096 | freebsd-elf*) |
8097 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
8098 | need_version=no |
8099 | need_lib_prefix=no |
8100 | ;; |
8101 | freebsd-*) |
8102 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
8103 | need_version=yes |
8104 | ;; |
8105 | esac |
8106 | shlibpath_var=LD_LIBRARY_PATH |
8107 | case $host_os in |
8108 | freebsd2*) |
8109 | shlibpath_overrides_runpath=yes |
8110 | ;; |
8111 | freebsd3.[01]* | freebsdelf3.[01]*) |
8112 | shlibpath_overrides_runpath=yes |
8113 | hardcode_into_libs=yes |
8114 | ;; |
8115 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
8116 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
8117 | shlibpath_overrides_runpath=no |
8118 | hardcode_into_libs=yes |
8119 | ;; |
8120 | freebsd*) # from 4.6 on |
8121 | shlibpath_overrides_runpath=yes |
8122 | hardcode_into_libs=yes |
8123 | ;; |
8124 | esac |
8125 | ;; |
8126 | |
8127 | gnu*) |
8128 | version_type=linux |
8129 | need_lib_prefix=no |
8130 | need_version=no |
8131 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
8132 | soname_spec='${libname}${release}${shared_ext}$major' |
8133 | shlibpath_var=LD_LIBRARY_PATH |
8134 | hardcode_into_libs=yes |
8135 | ;; |
8136 | |
8137 | hpux9* | hpux10* | hpux11*) |
8138 | # Give a soname corresponding to the major version so that dld.sl refuses to |
8139 | # link against other versions. |
8140 | version_type=sunos |
8141 | need_lib_prefix=no |
8142 | need_version=no |
8143 | case $host_cpu in |
8144 | ia64*) |
8145 | shrext_cmds='.so' |
8146 | hardcode_into_libs=yes |
8147 | dynamic_linker="$host_os dld.so" |
8148 | shlibpath_var=LD_LIBRARY_PATH |
8149 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8150 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8151 | soname_spec='${libname}${release}${shared_ext}$major' |
8152 | if test "X$HPUX_IA64_MODE" = X32; then |
8153 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
8154 | else |
8155 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
8156 | fi |
8157 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8158 | ;; |
8159 | hppa*64*) |
8160 | shrext_cmds='.sl' |
8161 | hardcode_into_libs=yes |
8162 | dynamic_linker="$host_os dld.sl" |
8163 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
8164 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8165 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8166 | soname_spec='${libname}${release}${shared_ext}$major' |
8167 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
8168 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8169 | ;; |
8170 | *) |
8171 | shrext_cmds='.sl' |
8172 | dynamic_linker="$host_os dld.sl" |
8173 | shlibpath_var=SHLIB_PATH |
8174 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
8175 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8176 | soname_spec='${libname}${release}${shared_ext}$major' |
8177 | ;; |
8178 | esac |
8179 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
8180 | postinstall_cmds='chmod 555 $lib' |
8181 | ;; |
8182 | |
8183 | interix3*) |
8184 | version_type=linux |
8185 | need_lib_prefix=no |
8186 | need_version=no |
8187 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8188 | soname_spec='${libname}${release}${shared_ext}$major' |
8189 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
8190 | shlibpath_var=LD_LIBRARY_PATH |
8191 | shlibpath_overrides_runpath=no |
8192 | hardcode_into_libs=yes |
8193 | ;; |
8194 | |
8195 | irix5* | irix6* | nonstopux*) |
8196 | case $host_os in |
8197 | nonstopux*) version_type=nonstopux ;; |
8198 | *) |
8199 | if test "$lt_cv_prog_gnu_ld" = yes; then |
8200 | version_type=linux |
8201 | else |
8202 | version_type=irix |
8203 | fi ;; |
8204 | esac |
8205 | need_lib_prefix=no |
8206 | need_version=no |
8207 | soname_spec='${libname}${release}${shared_ext}$major' |
8208 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
8209 | case $host_os in |
8210 | irix5* | nonstopux*) |
8211 | libsuff= shlibsuff= |
8212 | ;; |
8213 | *) |
8214 | case $LD in # libtool.m4 will add one of these switches to LD |
8215 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
8216 | libsuff= shlibsuff= libmagic=32-bit;; |
8217 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
8218 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
8219 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
8220 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
8221 | *) libsuff= shlibsuff= libmagic=never-match;; |
8222 | esac |
8223 | ;; |
8224 | esac |
8225 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
8226 | shlibpath_overrides_runpath=no |
8227 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
8228 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
8229 | hardcode_into_libs=yes |
8230 | ;; |
8231 | |
8232 | # No shared lib support for Linux oldld, aout, or coff. |
8233 | linux*oldld* | linux*aout* | linux*coff*) |
8234 | dynamic_linker=no |
8235 | ;; |
8236 | |
8237 | # This must be Linux ELF. |
8238 | linux*) |
8239 | version_type=linux |
8240 | need_lib_prefix=no |
8241 | need_version=no |
8242 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8243 | soname_spec='${libname}${release}${shared_ext}$major' |
8244 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
8245 | shlibpath_var=LD_LIBRARY_PATH |
8246 | shlibpath_overrides_runpath=no |
8247 | # This implies no fast_install, which is unacceptable. |
8248 | # Some rework will be needed to allow for fast_install |
8249 | # before this can be enabled. |
8250 | hardcode_into_libs=yes |
8251 | |
8252 | # find out which ABI we are using |
8253 | libsuff= |
8254 | case "$host_cpu" in |
8255 | x86_64*|s390x*|powerpc64*) |
8256 | echo '#line 8256 "configure"' > conftest.$ac_ext |
8257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8258 | (eval $ac_compile) 2>&5 |
8259 | ac_status=$? |
8260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8261 | (exit $ac_status); }; then |
8262 | case `/usr/bin/file conftest.$ac_objext` in |
8263 | *64-bit*) |
8264 | libsuff=64 |
8265 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
8266 | ;; |
8267 | esac |
8268 | fi |
8269 | rm -rf conftest* |
8270 | ;; |
8271 | esac |
8272 | |
8273 | # Append ld.so.conf contents to the search path |
8274 | if test -f /etc/ld.so.conf; then |
8275 | 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' ' '` |
8276 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
8277 | fi |
8278 | |
8279 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
8280 | # powerpc, because MkLinux only supported shared libraries with the |
8281 | # GNU dynamic linker. Since this was broken with cross compilers, |
8282 | # most powerpc-linux boxes support dynamic linking these days and |
8283 | # people can always --disable-shared, the test was removed, and we |
8284 | # assume the GNU/Linux dynamic linker is in use. |
8285 | dynamic_linker='GNU/Linux ld.so' |
8286 | ;; |
8287 | |
8288 | knetbsd*-gnu) |
8289 | version_type=linux |
8290 | need_lib_prefix=no |
8291 | need_version=no |
8292 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8293 | soname_spec='${libname}${release}${shared_ext}$major' |
8294 | shlibpath_var=LD_LIBRARY_PATH |
8295 | shlibpath_overrides_runpath=no |
8296 | hardcode_into_libs=yes |
8297 | dynamic_linker='GNU ld.so' |
8298 | ;; |
8299 | |
8300 | netbsd*) |
8301 | version_type=sunos |
8302 | need_lib_prefix=no |
8303 | need_version=no |
8304 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8305 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8306 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
8307 | dynamic_linker='NetBSD (a.out) ld.so' |
8308 | else |
8309 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8310 | soname_spec='${libname}${release}${shared_ext}$major' |
8311 | dynamic_linker='NetBSD ld.elf_so' |
8312 | fi |
8313 | shlibpath_var=LD_LIBRARY_PATH |
8314 | shlibpath_overrides_runpath=yes |
8315 | hardcode_into_libs=yes |
8316 | ;; |
8317 | |
8318 | newsos6) |
8319 | version_type=linux |
8320 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8321 | shlibpath_var=LD_LIBRARY_PATH |
8322 | shlibpath_overrides_runpath=yes |
8323 | ;; |
8324 | |
8325 | nto-qnx*) |
8326 | version_type=linux |
8327 | need_lib_prefix=no |
8328 | need_version=no |
8329 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8330 | soname_spec='${libname}${release}${shared_ext}$major' |
8331 | shlibpath_var=LD_LIBRARY_PATH |
8332 | shlibpath_overrides_runpath=yes |
8333 | ;; |
8334 | |
8335 | openbsd*) |
8336 | version_type=sunos |
8337 | sys_lib_dlsearch_path_spec="/usr/lib" |
8338 | need_lib_prefix=no |
8339 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
8340 | case $host_os in |
8341 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
8342 | *) need_version=no ;; |
8343 | esac |
8344 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8345 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
8346 | shlibpath_var=LD_LIBRARY_PATH |
8347 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
8348 | case $host_os in |
8349 | openbsd2.[89] | openbsd2.[89].*) |
8350 | shlibpath_overrides_runpath=no |
8351 | ;; |
8352 | *) |
8353 | shlibpath_overrides_runpath=yes |
8354 | ;; |
8355 | esac |
8356 | else |
8357 | shlibpath_overrides_runpath=yes |
8358 | fi |
8359 | ;; |
8360 | |
8361 | os2*) |
8362 | libname_spec='$name' |
8363 | shrext_cmds=".dll" |
8364 | need_lib_prefix=no |
8365 | library_names_spec='$libname${shared_ext} $libname.a' |
8366 | dynamic_linker='OS/2 ld.exe' |
8367 | shlibpath_var=LIBPATH |
8368 | ;; |
8369 | |
8370 | osf3* | osf4* | osf5*) |
8371 | version_type=osf |
8372 | need_lib_prefix=no |
8373 | need_version=no |
8374 | soname_spec='${libname}${release}${shared_ext}$major' |
8375 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8376 | shlibpath_var=LD_LIBRARY_PATH |
8377 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
8378 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
8379 | ;; |
8380 | |
8381 | solaris*) |
8382 | version_type=linux |
8383 | need_lib_prefix=no |
8384 | need_version=no |
8385 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8386 | soname_spec='${libname}${release}${shared_ext}$major' |
8387 | shlibpath_var=LD_LIBRARY_PATH |
8388 | shlibpath_overrides_runpath=yes |
8389 | hardcode_into_libs=yes |
8390 | # ldd complains unless libraries are executable |
8391 | postinstall_cmds='chmod +x $lib' |
8392 | ;; |
8393 | |
8394 | sunos4*) |
8395 | version_type=sunos |
8396 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8397 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
8398 | shlibpath_var=LD_LIBRARY_PATH |
8399 | shlibpath_overrides_runpath=yes |
8400 | if test "$with_gnu_ld" = yes; then |
8401 | need_lib_prefix=no |
8402 | fi |
8403 | need_version=yes |
8404 | ;; |
8405 | |
8406 | sysv4 | sysv4.3*) |
8407 | version_type=linux |
8408 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8409 | soname_spec='${libname}${release}${shared_ext}$major' |
8410 | shlibpath_var=LD_LIBRARY_PATH |
8411 | case $host_vendor in |
8412 | sni) |
8413 | shlibpath_overrides_runpath=no |
8414 | need_lib_prefix=no |
8415 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
8416 | runpath_var=LD_RUN_PATH |
8417 | ;; |
8418 | siemens) |
8419 | need_lib_prefix=no |
8420 | ;; |
8421 | motorola) |
8422 | need_lib_prefix=no |
8423 | need_version=no |
8424 | shlibpath_overrides_runpath=no |
8425 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
8426 | ;; |
8427 | esac |
8428 | ;; |
8429 | |
8430 | sysv4*MP*) |
8431 | if test -d /usr/nec ;then |
8432 | version_type=linux |
8433 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
8434 | soname_spec='$libname${shared_ext}.$major' |
8435 | shlibpath_var=LD_LIBRARY_PATH |
8436 | fi |
8437 | ;; |
8438 | |
8439 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
8440 | version_type=freebsd-elf |
8441 | need_lib_prefix=no |
8442 | need_version=no |
8443 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
8444 | soname_spec='${libname}${release}${shared_ext}$major' |
8445 | shlibpath_var=LD_LIBRARY_PATH |
8446 | hardcode_into_libs=yes |
8447 | if test "$with_gnu_ld" = yes; then |
8448 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
8449 | shlibpath_overrides_runpath=no |
8450 | else |
8451 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
8452 | shlibpath_overrides_runpath=yes |
8453 | case $host_os in |
8454 | sco3.2v5*) |
8455 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
8456 | ;; |
8457 | esac |
8458 | fi |
8459 | sys_lib_dlsearch_path_spec='/usr/lib' |
8460 | ;; |
8461 | |
8462 | uts4*) |
8463 | version_type=linux |
8464 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8465 | soname_spec='${libname}${release}${shared_ext}$major' |
8466 | shlibpath_var=LD_LIBRARY_PATH |
8467 | ;; |
8468 | |
8469 | *) |
8470 | dynamic_linker=no |
8471 | ;; |
8472 | esac |
8473 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
8474 | echo "${ECHO_T}$dynamic_linker" >&6 |
8475 | test "$dynamic_linker" = no && can_build_shared=no |
8476 | |
8477 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
8478 | if test "$GCC" = yes; then |
8479 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
8480 | fi |
8481 | |
8482 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
8483 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
8484 | hardcode_action= |
8485 | if test -n "$hardcode_libdir_flag_spec" || \ |
8486 | test -n "$runpath_var" || \ |
8487 | test "X$hardcode_automatic" = "Xyes" ; then |
8488 | |
8489 | # We can hardcode non-existant directories. |
8490 | if test "$hardcode_direct" != no && |
8491 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
8492 | # have to relink, otherwise we might link with an installed library |
8493 | # when we should be linking with a yet-to-be-installed one |
8494 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
8495 | test "$hardcode_minus_L" != no; then |
8496 | # Linking always hardcodes the temporary library directory. |
8497 | hardcode_action=relink |
8498 | else |
8499 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
8500 | hardcode_action=immediate |
8501 | fi |
8502 | else |
8503 | # We cannot hardcode anything, or else we can only hardcode existing |
8504 | # directories. |
8505 | hardcode_action=unsupported |
8506 | fi |
8507 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
8508 | echo "${ECHO_T}$hardcode_action" >&6 |
8509 | |
8510 | if test "$hardcode_action" = relink; then |
8511 | # Fast installation is not supported |
8512 | enable_fast_install=no |
8513 | elif test "$shlibpath_overrides_runpath" = yes || |
8514 | test "$enable_shared" = no; then |
8515 | # Fast installation is not necessary |
8516 | enable_fast_install=needless |
8517 | fi |
8518 | |
8519 | striplib= |
8520 | old_striplib= |
8521 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
8522 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
8523 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
8524 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
8525 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
8526 | echo "$as_me:$LINENO: result: yes" >&5 |
8527 | echo "${ECHO_T}yes" >&6 |
8528 | else |
8529 | # FIXME - insert some real tests, host_os isn't really good enough |
8530 | case $host_os in |
8531 | darwin*) |
8532 | if test -n "$STRIP" ; then |
8533 | striplib="$STRIP -x" |
8534 | echo "$as_me:$LINENO: result: yes" >&5 |
8535 | echo "${ECHO_T}yes" >&6 |
8536 | else |
8537 | echo "$as_me:$LINENO: result: no" >&5 |
8538 | echo "${ECHO_T}no" >&6 |
8539 | fi |
8540 | ;; |
8541 | *) |
8542 | echo "$as_me:$LINENO: result: no" >&5 |
8543 | echo "${ECHO_T}no" >&6 |
8544 | ;; |
8545 | esac |
8546 | fi |
8547 | |
8548 | if test "x$enable_dlopen" != xyes; then |
8549 | enable_dlopen=unknown |
8550 | enable_dlopen_self=unknown |
8551 | enable_dlopen_self_static=unknown |
8552 | else |
8553 | lt_cv_dlopen=no |
8554 | lt_cv_dlopen_libs= |
8555 | |
8556 | case $host_os in |
8557 | beos*) |
8558 | lt_cv_dlopen="load_add_on" |
8559 | lt_cv_dlopen_libs= |
8560 | lt_cv_dlopen_self=yes |
8561 | ;; |
8562 | |
8563 | mingw* | pw32*) |
8564 | lt_cv_dlopen="LoadLibrary" |
8565 | lt_cv_dlopen_libs= |
8566 | ;; |
8567 | |
8568 | cygwin*) |
8569 | lt_cv_dlopen="dlopen" |
8570 | lt_cv_dlopen_libs= |
8571 | ;; |
8572 | |
8573 | darwin*) |
8574 | # if libdl is installed we need to link against it |
8575 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
8576 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
8577 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
8578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8579 | else |
8580 | ac_check_lib_save_LIBS=$LIBS |
8581 | LIBS="-ldl $LIBS" |
8582 | cat >conftest.$ac_ext <<_ACEOF |
8583 | /* confdefs.h. */ |
8584 | _ACEOF |
8585 | cat confdefs.h >>conftest.$ac_ext |
8586 | cat >>conftest.$ac_ext <<_ACEOF |
8587 | /* end confdefs.h. */ |
8588 | |
8589 | /* Override any gcc2 internal prototype to avoid an error. */ |
8590 | #ifdef __cplusplus |
8591 | extern "C" |
8592 | #endif |
8593 | /* We use char because int might match the return type of a gcc2 |
8594 | builtin and then its argument prototype would still apply. */ |
8595 | char dlopen (); |
8596 | int |
8597 | main () |
8598 | { |
8599 | dlopen (); |
8600 | ; |
8601 | return 0; |
8602 | } |
8603 | _ACEOF |
8604 | rm -f conftest.$ac_objext conftest$ac_exeext |
8605 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8606 | (eval $ac_link) 2>conftest.er1 |
8607 | ac_status=$? |
8608 | grep -v '^ *+' conftest.er1 >conftest.err |
8609 | rm -f conftest.er1 |
8610 | cat conftest.err >&5 |
8611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8612 | (exit $ac_status); } && |
8613 | { ac_try='test -z "$ac_c_werror_flag" |
8614 | || test ! -s conftest.err' |
8615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8616 | (eval $ac_try) 2>&5 |
8617 | ac_status=$? |
8618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8619 | (exit $ac_status); }; } && |
8620 | { ac_try='test -s conftest$ac_exeext' |
8621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8622 | (eval $ac_try) 2>&5 |
8623 | ac_status=$? |
8624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8625 | (exit $ac_status); }; }; then |
8626 | ac_cv_lib_dl_dlopen=yes |
8627 | else |
8628 | echo "$as_me: failed program was:" >&5 |
8629 | sed 's/^/| /' conftest.$ac_ext >&5 |
8630 | |
8631 | ac_cv_lib_dl_dlopen=no |
8632 | fi |
8633 | rm -f conftest.err conftest.$ac_objext \ |
8634 | conftest$ac_exeext conftest.$ac_ext |
8635 | LIBS=$ac_check_lib_save_LIBS |
8636 | fi |
8637 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
8638 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
8639 | if test $ac_cv_lib_dl_dlopen = yes; then |
8640 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
8641 | else |
8642 | |
8643 | lt_cv_dlopen="dyld" |
8644 | lt_cv_dlopen_libs= |
8645 | lt_cv_dlopen_self=yes |
8646 | |
8647 | fi |
8648 | |
8649 | ;; |
8650 | |
8651 | *) |
8652 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
8653 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
8654 | if test "${ac_cv_func_shl_load+set}" = set; then |
8655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8656 | else |
8657 | cat >conftest.$ac_ext <<_ACEOF |
8658 | /* confdefs.h. */ |
8659 | _ACEOF |
8660 | cat confdefs.h >>conftest.$ac_ext |
8661 | cat >>conftest.$ac_ext <<_ACEOF |
8662 | /* end confdefs.h. */ |
8663 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
8664 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8665 | #define shl_load innocuous_shl_load |
8666 | |
8667 | /* System header to define __stub macros and hopefully few prototypes, |
8668 | which can conflict with char shl_load (); below. |
8669 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8670 | <limits.h> exists even on freestanding compilers. */ |
8671 | |
8672 | #ifdef __STDC__ |
8673 | # include <limits.h> |
8674 | #else |
8675 | # include <assert.h> |
8676 | #endif |
8677 | |
8678 | #undef shl_load |
8679 | |
8680 | /* Override any gcc2 internal prototype to avoid an error. */ |
8681 | #ifdef __cplusplus |
8682 | extern "C" |
8683 | { |
8684 | #endif |
8685 | /* We use char because int might match the return type of a gcc2 |
8686 | builtin and then its argument prototype would still apply. */ |
8687 | char shl_load (); |
8688 | /* The GNU C library defines this for functions which it implements |
8689 | to always fail with ENOSYS. Some functions are actually named |
8690 | something starting with __ and the normal name is an alias. */ |
8691 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
8692 | choke me |
8693 | #else |
8694 | char (*f) () = shl_load; |
8695 | #endif |
8696 | #ifdef __cplusplus |
8697 | } |
8698 | #endif |
8699 | |
8700 | int |
8701 | main () |
8702 | { |
8703 | return f != shl_load; |
8704 | ; |
8705 | return 0; |
8706 | } |
8707 | _ACEOF |
8708 | rm -f conftest.$ac_objext conftest$ac_exeext |
8709 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8710 | (eval $ac_link) 2>conftest.er1 |
8711 | ac_status=$? |
8712 | grep -v '^ *+' conftest.er1 >conftest.err |
8713 | rm -f conftest.er1 |
8714 | cat conftest.err >&5 |
8715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8716 | (exit $ac_status); } && |
8717 | { ac_try='test -z "$ac_c_werror_flag" |
8718 | || test ! -s conftest.err' |
8719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8720 | (eval $ac_try) 2>&5 |
8721 | ac_status=$? |
8722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8723 | (exit $ac_status); }; } && |
8724 | { ac_try='test -s conftest$ac_exeext' |
8725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8726 | (eval $ac_try) 2>&5 |
8727 | ac_status=$? |
8728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8729 | (exit $ac_status); }; }; then |
8730 | ac_cv_func_shl_load=yes |
8731 | else |
8732 | echo "$as_me: failed program was:" >&5 |
8733 | sed 's/^/| /' conftest.$ac_ext >&5 |
8734 | |
8735 | ac_cv_func_shl_load=no |
8736 | fi |
8737 | rm -f conftest.err conftest.$ac_objext \ |
8738 | conftest$ac_exeext conftest.$ac_ext |
8739 | fi |
8740 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
8741 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
8742 | if test $ac_cv_func_shl_load = yes; then |
8743 | lt_cv_dlopen="shl_load" |
8744 | else |
8745 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
8746 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
8747 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
8748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8749 | else |
8750 | ac_check_lib_save_LIBS=$LIBS |
8751 | LIBS="-ldld $LIBS" |
8752 | cat >conftest.$ac_ext <<_ACEOF |
8753 | /* confdefs.h. */ |
8754 | _ACEOF |
8755 | cat confdefs.h >>conftest.$ac_ext |
8756 | cat >>conftest.$ac_ext <<_ACEOF |
8757 | /* end confdefs.h. */ |
8758 | |
8759 | /* Override any gcc2 internal prototype to avoid an error. */ |
8760 | #ifdef __cplusplus |
8761 | extern "C" |
8762 | #endif |
8763 | /* We use char because int might match the return type of a gcc2 |
8764 | builtin and then its argument prototype would still apply. */ |
8765 | char shl_load (); |
8766 | int |
8767 | main () |
8768 | { |
8769 | shl_load (); |
8770 | ; |
8771 | return 0; |
8772 | } |
8773 | _ACEOF |
8774 | rm -f conftest.$ac_objext conftest$ac_exeext |
8775 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8776 | (eval $ac_link) 2>conftest.er1 |
8777 | ac_status=$? |
8778 | grep -v '^ *+' conftest.er1 >conftest.err |
8779 | rm -f conftest.er1 |
8780 | cat conftest.err >&5 |
8781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8782 | (exit $ac_status); } && |
8783 | { ac_try='test -z "$ac_c_werror_flag" |
8784 | || test ! -s conftest.err' |
8785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8786 | (eval $ac_try) 2>&5 |
8787 | ac_status=$? |
8788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8789 | (exit $ac_status); }; } && |
8790 | { ac_try='test -s conftest$ac_exeext' |
8791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8792 | (eval $ac_try) 2>&5 |
8793 | ac_status=$? |
8794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8795 | (exit $ac_status); }; }; then |
8796 | ac_cv_lib_dld_shl_load=yes |
8797 | else |
8798 | echo "$as_me: failed program was:" >&5 |
8799 | sed 's/^/| /' conftest.$ac_ext >&5 |
8800 | |
8801 | ac_cv_lib_dld_shl_load=no |
8802 | fi |
8803 | rm -f conftest.err conftest.$ac_objext \ |
8804 | conftest$ac_exeext conftest.$ac_ext |
8805 | LIBS=$ac_check_lib_save_LIBS |
8806 | fi |
8807 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
8808 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
8809 | if test $ac_cv_lib_dld_shl_load = yes; then |
8810 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
8811 | else |
8812 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
8813 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
8814 | if test "${ac_cv_func_dlopen+set}" = set; then |
8815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8816 | else |
8817 | cat >conftest.$ac_ext <<_ACEOF |
8818 | /* confdefs.h. */ |
8819 | _ACEOF |
8820 | cat confdefs.h >>conftest.$ac_ext |
8821 | cat >>conftest.$ac_ext <<_ACEOF |
8822 | /* end confdefs.h. */ |
8823 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
8824 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8825 | #define dlopen innocuous_dlopen |
8826 | |
8827 | /* System header to define __stub macros and hopefully few prototypes, |
8828 | which can conflict with char dlopen (); below. |
8829 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8830 | <limits.h> exists even on freestanding compilers. */ |
8831 | |
8832 | #ifdef __STDC__ |
8833 | # include <limits.h> |
8834 | #else |
8835 | # include <assert.h> |
8836 | #endif |
8837 | |
8838 | #undef dlopen |
8839 | |
8840 | /* Override any gcc2 internal prototype to avoid an error. */ |
8841 | #ifdef __cplusplus |
8842 | extern "C" |
8843 | { |
8844 | #endif |
8845 | /* We use char because int might match the return type of a gcc2 |
8846 | builtin and then its argument prototype would still apply. */ |
8847 | char dlopen (); |
8848 | /* The GNU C library defines this for functions which it implements |
8849 | to always fail with ENOSYS. Some functions are actually named |
8850 | something starting with __ and the normal name is an alias. */ |
8851 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
8852 | choke me |
8853 | #else |
8854 | char (*f) () = dlopen; |
8855 | #endif |
8856 | #ifdef __cplusplus |
8857 | } |
8858 | #endif |
8859 | |
8860 | int |
8861 | main () |
8862 | { |
8863 | return f != dlopen; |
8864 | ; |
8865 | return 0; |
8866 | } |
8867 | _ACEOF |
8868 | rm -f conftest.$ac_objext conftest$ac_exeext |
8869 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8870 | (eval $ac_link) 2>conftest.er1 |
8871 | ac_status=$? |
8872 | grep -v '^ *+' conftest.er1 >conftest.err |
8873 | rm -f conftest.er1 |
8874 | cat conftest.err >&5 |
8875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8876 | (exit $ac_status); } && |
8877 | { ac_try='test -z "$ac_c_werror_flag" |
8878 | || test ! -s conftest.err' |
8879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8880 | (eval $ac_try) 2>&5 |
8881 | ac_status=$? |
8882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8883 | (exit $ac_status); }; } && |
8884 | { ac_try='test -s conftest$ac_exeext' |
8885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8886 | (eval $ac_try) 2>&5 |
8887 | ac_status=$? |
8888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8889 | (exit $ac_status); }; }; then |
8890 | ac_cv_func_dlopen=yes |
8891 | else |
8892 | echo "$as_me: failed program was:" >&5 |
8893 | sed 's/^/| /' conftest.$ac_ext >&5 |
8894 | |
8895 | ac_cv_func_dlopen=no |
8896 | fi |
8897 | rm -f conftest.err conftest.$ac_objext \ |
8898 | conftest$ac_exeext conftest.$ac_ext |
8899 | fi |
8900 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
8901 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
8902 | if test $ac_cv_func_dlopen = yes; then |
8903 | lt_cv_dlopen="dlopen" |
8904 | else |
8905 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
8906 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
8907 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
8908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8909 | else |
8910 | ac_check_lib_save_LIBS=$LIBS |
8911 | LIBS="-ldl $LIBS" |
8912 | cat >conftest.$ac_ext <<_ACEOF |
8913 | /* confdefs.h. */ |
8914 | _ACEOF |
8915 | cat confdefs.h >>conftest.$ac_ext |
8916 | cat >>conftest.$ac_ext <<_ACEOF |
8917 | /* end confdefs.h. */ |
8918 | |
8919 | /* Override any gcc2 internal prototype to avoid an error. */ |
8920 | #ifdef __cplusplus |
8921 | extern "C" |
8922 | #endif |
8923 | /* We use char because int might match the return type of a gcc2 |
8924 | builtin and then its argument prototype would still apply. */ |
8925 | char dlopen (); |
8926 | int |
8927 | main () |
8928 | { |
8929 | dlopen (); |
8930 | ; |
8931 | return 0; |
8932 | } |
8933 | _ACEOF |
8934 | rm -f conftest.$ac_objext conftest$ac_exeext |
8935 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8936 | (eval $ac_link) 2>conftest.er1 |
8937 | ac_status=$? |
8938 | grep -v '^ *+' conftest.er1 >conftest.err |
8939 | rm -f conftest.er1 |
8940 | cat conftest.err >&5 |
8941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8942 | (exit $ac_status); } && |
8943 | { ac_try='test -z "$ac_c_werror_flag" |
8944 | || test ! -s conftest.err' |
8945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8946 | (eval $ac_try) 2>&5 |
8947 | ac_status=$? |
8948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8949 | (exit $ac_status); }; } && |
8950 | { ac_try='test -s conftest$ac_exeext' |
8951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8952 | (eval $ac_try) 2>&5 |
8953 | ac_status=$? |
8954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8955 | (exit $ac_status); }; }; then |
8956 | ac_cv_lib_dl_dlopen=yes |
8957 | else |
8958 | echo "$as_me: failed program was:" >&5 |
8959 | sed 's/^/| /' conftest.$ac_ext >&5 |
8960 | |
8961 | ac_cv_lib_dl_dlopen=no |
8962 | fi |
8963 | rm -f conftest.err conftest.$ac_objext \ |
8964 | conftest$ac_exeext conftest.$ac_ext |
8965 | LIBS=$ac_check_lib_save_LIBS |
8966 | fi |
8967 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
8968 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
8969 | if test $ac_cv_lib_dl_dlopen = yes; then |
8970 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
8971 | else |
8972 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
8973 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
8974 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
8975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8976 | else |
8977 | ac_check_lib_save_LIBS=$LIBS |
8978 | LIBS="-lsvld $LIBS" |
8979 | cat >conftest.$ac_ext <<_ACEOF |
8980 | /* confdefs.h. */ |
8981 | _ACEOF |
8982 | cat confdefs.h >>conftest.$ac_ext |
8983 | cat >>conftest.$ac_ext <<_ACEOF |
8984 | /* end confdefs.h. */ |
8985 | |
8986 | /* Override any gcc2 internal prototype to avoid an error. */ |
8987 | #ifdef __cplusplus |
8988 | extern "C" |
8989 | #endif |
8990 | /* We use char because int might match the return type of a gcc2 |
8991 | builtin and then its argument prototype would still apply. */ |
8992 | char dlopen (); |
8993 | int |
8994 | main () |
8995 | { |
8996 | dlopen (); |
8997 | ; |
8998 | return 0; |
8999 | } |
9000 | _ACEOF |
9001 | rm -f conftest.$ac_objext conftest$ac_exeext |
9002 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9003 | (eval $ac_link) 2>conftest.er1 |
9004 | ac_status=$? |
9005 | grep -v '^ *+' conftest.er1 >conftest.err |
9006 | rm -f conftest.er1 |
9007 | cat conftest.err >&5 |
9008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9009 | (exit $ac_status); } && |
9010 | { ac_try='test -z "$ac_c_werror_flag" |
9011 | || test ! -s conftest.err' |
9012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9013 | (eval $ac_try) 2>&5 |
9014 | ac_status=$? |
9015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9016 | (exit $ac_status); }; } && |
9017 | { ac_try='test -s conftest$ac_exeext' |
9018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9019 | (eval $ac_try) 2>&5 |
9020 | ac_status=$? |
9021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9022 | (exit $ac_status); }; }; then |
9023 | ac_cv_lib_svld_dlopen=yes |
9024 | else |
9025 | echo "$as_me: failed program was:" >&5 |
9026 | sed 's/^/| /' conftest.$ac_ext >&5 |
9027 | |
9028 | ac_cv_lib_svld_dlopen=no |
9029 | fi |
9030 | rm -f conftest.err conftest.$ac_objext \ |
9031 | conftest$ac_exeext conftest.$ac_ext |
9032 | LIBS=$ac_check_lib_save_LIBS |
9033 | fi |
9034 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
9035 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
9036 | if test $ac_cv_lib_svld_dlopen = yes; then |
9037 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
9038 | else |
9039 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
9040 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
9041 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
9042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9043 | else |
9044 | ac_check_lib_save_LIBS=$LIBS |
9045 | LIBS="-ldld $LIBS" |
9046 | cat >conftest.$ac_ext <<_ACEOF |
9047 | /* confdefs.h. */ |
9048 | _ACEOF |
9049 | cat confdefs.h >>conftest.$ac_ext |
9050 | cat >>conftest.$ac_ext <<_ACEOF |
9051 | /* end confdefs.h. */ |
9052 | |
9053 | /* Override any gcc2 internal prototype to avoid an error. */ |
9054 | #ifdef __cplusplus |
9055 | extern "C" |
9056 | #endif |
9057 | /* We use char because int might match the return type of a gcc2 |
9058 | builtin and then its argument prototype would still apply. */ |
9059 | char dld_link (); |
9060 | int |
9061 | main () |
9062 | { |
9063 | dld_link (); |
9064 | ; |
9065 | return 0; |
9066 | } |
9067 | _ACEOF |
9068 | rm -f conftest.$ac_objext conftest$ac_exeext |
9069 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9070 | (eval $ac_link) 2>conftest.er1 |
9071 | ac_status=$? |
9072 | grep -v '^ *+' conftest.er1 >conftest.err |
9073 | rm -f conftest.er1 |
9074 | cat conftest.err >&5 |
9075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9076 | (exit $ac_status); } && |
9077 | { ac_try='test -z "$ac_c_werror_flag" |
9078 | || test ! -s conftest.err' |
9079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9080 | (eval $ac_try) 2>&5 |
9081 | ac_status=$? |
9082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9083 | (exit $ac_status); }; } && |
9084 | { ac_try='test -s conftest$ac_exeext' |
9085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9086 | (eval $ac_try) 2>&5 |
9087 | ac_status=$? |
9088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9089 | (exit $ac_status); }; }; then |
9090 | ac_cv_lib_dld_dld_link=yes |
9091 | else |
9092 | echo "$as_me: failed program was:" >&5 |
9093 | sed 's/^/| /' conftest.$ac_ext >&5 |
9094 | |
9095 | ac_cv_lib_dld_dld_link=no |
9096 | fi |
9097 | rm -f conftest.err conftest.$ac_objext \ |
9098 | conftest$ac_exeext conftest.$ac_ext |
9099 | LIBS=$ac_check_lib_save_LIBS |
9100 | fi |
9101 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
9102 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
9103 | if test $ac_cv_lib_dld_dld_link = yes; then |
9104 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
9105 | fi |
9106 | |
9107 | |
9108 | fi |
9109 | |
9110 | |
9111 | fi |
9112 | |
9113 | |
9114 | fi |
9115 | |
9116 | |
9117 | fi |
9118 | |
9119 | |
9120 | fi |
9121 | |
9122 | ;; |
9123 | esac |
9124 | |
9125 | if test "x$lt_cv_dlopen" != xno; then |
9126 | enable_dlopen=yes |
9127 | else |
9128 | enable_dlopen=no |
9129 | fi |
9130 | |
9131 | case $lt_cv_dlopen in |
9132 | dlopen) |
9133 | save_CPPFLAGS="$CPPFLAGS" |
9134 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
9135 | |
9136 | save_LDFLAGS="$LDFLAGS" |
9137 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
9138 | |
9139 | save_LIBS="$LIBS" |
9140 | LIBS="$lt_cv_dlopen_libs $LIBS" |
9141 | |
9142 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
9143 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
9144 | if test "${lt_cv_dlopen_self+set}" = set; then |
9145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9146 | else |
9147 | if test "$cross_compiling" = yes; then : |
9148 | lt_cv_dlopen_self=cross |
9149 | else |
9150 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9151 | lt_status=$lt_dlunknown |
9152 | cat > conftest.$ac_ext <<EOF |
9153 | #line 9153 "configure" |
9154 | #include "confdefs.h" |
9155 | |
9156 | #if HAVE_DLFCN_H |
9157 | #include <dlfcn.h> |
9158 | #endif |
9159 | |
9160 | #include <stdio.h> |
9161 | |
9162 | #ifdef RTLD_GLOBAL |
9163 | # define LT_DLGLOBAL RTLD_GLOBAL |
9164 | #else |
9165 | # ifdef DL_GLOBAL |
9166 | # define LT_DLGLOBAL DL_GLOBAL |
9167 | # else |
9168 | # define LT_DLGLOBAL 0 |
9169 | # endif |
9170 | #endif |
9171 | |
9172 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9173 | find out it does not work in some platform. */ |
9174 | #ifndef LT_DLLAZY_OR_NOW |
9175 | # ifdef RTLD_LAZY |
9176 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
9177 | # else |
9178 | # ifdef DL_LAZY |
9179 | # define LT_DLLAZY_OR_NOW DL_LAZY |
9180 | # else |
9181 | # ifdef RTLD_NOW |
9182 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
9183 | # else |
9184 | # ifdef DL_NOW |
9185 | # define LT_DLLAZY_OR_NOW DL_NOW |
9186 | # else |
9187 | # define LT_DLLAZY_OR_NOW 0 |
9188 | # endif |
9189 | # endif |
9190 | # endif |
9191 | # endif |
9192 | #endif |
9193 | |
9194 | #ifdef __cplusplus |
9195 | extern "C" void exit (int); |
9196 | #endif |
9197 | |
9198 | void fnord() { int i=42;} |
9199 | int main () |
9200 | { |
9201 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
9202 | int status = $lt_dlunknown; |
9203 | |
9204 | if (self) |
9205 | { |
9206 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9207 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9208 | /* dlclose (self); */ |
9209 | } |
9210 | else |
9211 | puts (dlerror ()); |
9212 | |
9213 | exit (status); |
9214 | } |
9215 | EOF |
9216 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9217 | (eval $ac_link) 2>&5 |
9218 | ac_status=$? |
9219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9220 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9221 | (./conftest; exit; ) >&5 2>/dev/null |
9222 | lt_status=$? |
9223 | case x$lt_status in |
9224 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
9225 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
9226 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
9227 | esac |
9228 | else : |
9229 | # compilation failed |
9230 | lt_cv_dlopen_self=no |
9231 | fi |
9232 | fi |
9233 | rm -fr conftest* |
9234 | |
9235 | |
9236 | fi |
9237 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
9238 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
9239 | |
9240 | if test "x$lt_cv_dlopen_self" = xyes; then |
9241 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
9242 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
9243 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
9244 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
9245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9246 | else |
9247 | if test "$cross_compiling" = yes; then : |
9248 | lt_cv_dlopen_self_static=cross |
9249 | else |
9250 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9251 | lt_status=$lt_dlunknown |
9252 | cat > conftest.$ac_ext <<EOF |
9253 | #line 9253 "configure" |
9254 | #include "confdefs.h" |
9255 | |
9256 | #if HAVE_DLFCN_H |
9257 | #include <dlfcn.h> |
9258 | #endif |
9259 | |
9260 | #include <stdio.h> |
9261 | |
9262 | #ifdef RTLD_GLOBAL |
9263 | # define LT_DLGLOBAL RTLD_GLOBAL |
9264 | #else |
9265 | # ifdef DL_GLOBAL |
9266 | # define LT_DLGLOBAL DL_GLOBAL |
9267 | # else |
9268 | # define LT_DLGLOBAL 0 |
9269 | # endif |
9270 | #endif |
9271 | |
9272 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9273 | find out it does not work in some platform. */ |
9274 | #ifndef LT_DLLAZY_OR_NOW |
9275 | # ifdef RTLD_LAZY |
9276 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
9277 | # else |
9278 | # ifdef DL_LAZY |
9279 | # define LT_DLLAZY_OR_NOW DL_LAZY |
9280 | # else |
9281 | # ifdef RTLD_NOW |
9282 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
9283 | # else |
9284 | # ifdef DL_NOW |
9285 | # define LT_DLLAZY_OR_NOW DL_NOW |
9286 | # else |
9287 | # define LT_DLLAZY_OR_NOW 0 |
9288 | # endif |
9289 | # endif |
9290 | # endif |
9291 | # endif |
9292 | #endif |
9293 | |
9294 | #ifdef __cplusplus |
9295 | extern "C" void exit (int); |
9296 | #endif |
9297 | |
9298 | void fnord() { int i=42;} |
9299 | int main () |
9300 | { |
9301 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
9302 | int status = $lt_dlunknown; |
9303 | |
9304 | if (self) |
9305 | { |
9306 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9307 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9308 | /* dlclose (self); */ |
9309 | } |
9310 | else |
9311 | puts (dlerror ()); |
9312 | |
9313 | exit (status); |
9314 | } |
9315 | EOF |
9316 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9317 | (eval $ac_link) 2>&5 |
9318 | ac_status=$? |
9319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9320 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9321 | (./conftest; exit; ) >&5 2>/dev/null |
9322 | lt_status=$? |
9323 | case x$lt_status in |
9324 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
9325 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
9326 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
9327 | esac |
9328 | else : |
9329 | # compilation failed |
9330 | lt_cv_dlopen_self_static=no |
9331 | fi |
9332 | fi |
9333 | rm -fr conftest* |
9334 | |
9335 | |
9336 | fi |
9337 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
9338 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
9339 | fi |
9340 | |
9341 | CPPFLAGS="$save_CPPFLAGS" |
9342 | LDFLAGS="$save_LDFLAGS" |
9343 | LIBS="$save_LIBS" |
9344 | ;; |
9345 | esac |
9346 | |
9347 | case $lt_cv_dlopen_self in |
9348 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
9349 | *) enable_dlopen_self=unknown ;; |
9350 | esac |
9351 | |
9352 | case $lt_cv_dlopen_self_static in |
9353 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
9354 | *) enable_dlopen_self_static=unknown ;; |
9355 | esac |
9356 | fi |
9357 | |
9358 | |
9359 | # Report which library types will actually be built |
9360 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
9361 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
9362 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
9363 | echo "${ECHO_T}$can_build_shared" >&6 |
9364 | |
9365 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
9366 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
9367 | test "$can_build_shared" = "no" && enable_shared=no |
9368 | |
9369 | # On AIX, shared libraries and static libraries use the same namespace, and |
9370 | # are all built from PIC. |
9371 | case $host_os in |
9372 | aix3*) |
9373 | test "$enable_shared" = yes && enable_static=no |
9374 | if test -n "$RANLIB"; then |
9375 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
9376 | postinstall_cmds='$RANLIB $lib' |
9377 | fi |
9378 | ;; |
9379 | |
9380 | aix4* | aix5*) |
9381 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
9382 | test "$enable_shared" = yes && enable_static=no |
9383 | fi |
9384 | ;; |
9385 | esac |
9386 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
9387 | echo "${ECHO_T}$enable_shared" >&6 |
9388 | |
9389 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
9390 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
9391 | # Make sure either enable_shared or enable_static is yes. |
9392 | test "$enable_shared" = yes || enable_static=yes |
9393 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
9394 | echo "${ECHO_T}$enable_static" >&6 |
9395 | |
9396 | # The else clause should only fire when bootstrapping the |
9397 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
9398 | # with your package, and you will get complaints that there are |
9399 | # no rules to generate ltmain.sh. |
9400 | if test -f "$ltmain"; then |
9401 | # See if we are running on zsh, and set the options which allow our commands through |
9402 | # without removal of \ escapes. |
9403 | if test -n "${ZSH_VERSION+set}" ; then |
9404 | setopt NO_GLOB_SUBST |
9405 | fi |
9406 | # Now quote all the things that may contain metacharacters while being |
9407 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
9408 | # variables and quote the copies for generation of the libtool script. |
9409 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
9410 | SED SHELL STRIP \ |
9411 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
9412 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
9413 | deplibs_check_method reload_flag reload_cmds need_locks \ |
9414 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
9415 | lt_cv_sys_global_symbol_to_c_name_address \ |
9416 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
9417 | old_postinstall_cmds old_postuninstall_cmds \ |
9418 | compiler \ |
9419 | CC \ |
9420 | LD \ |
9421 | lt_prog_compiler_wl \ |
9422 | lt_prog_compiler_pic \ |
9423 | lt_prog_compiler_static \ |
9424 | lt_prog_compiler_no_builtin_flag \ |
9425 | export_dynamic_flag_spec \ |
9426 | thread_safe_flag_spec \ |
9427 | whole_archive_flag_spec \ |
9428 | enable_shared_with_static_runtimes \ |
9429 | old_archive_cmds \ |
9430 | old_archive_from_new_cmds \ |
9431 | predep_objects \ |
9432 | postdep_objects \ |
9433 | predeps \ |
9434 | postdeps \ |
9435 | compiler_lib_search_path \ |
9436 | archive_cmds \ |
9437 | archive_expsym_cmds \ |
9438 | postinstall_cmds \ |
9439 | postuninstall_cmds \ |
9440 | old_archive_from_expsyms_cmds \ |
9441 | allow_undefined_flag \ |
9442 | no_undefined_flag \ |
9443 | export_symbols_cmds \ |
9444 | hardcode_libdir_flag_spec \ |
9445 | hardcode_libdir_flag_spec_ld \ |
9446 | hardcode_libdir_separator \ |
9447 | hardcode_automatic \ |
9448 | module_cmds \ |
9449 | module_expsym_cmds \ |
9450 | lt_cv_prog_compiler_c_o \ |
9451 | exclude_expsyms \ |
9452 | include_expsyms; do |
9453 | |
9454 | case $var in |
9455 | old_archive_cmds | \ |
9456 | old_archive_from_new_cmds | \ |
9457 | archive_cmds | \ |
9458 | archive_expsym_cmds | \ |
9459 | module_cmds | \ |
9460 | module_expsym_cmds | \ |
9461 | old_archive_from_expsyms_cmds | \ |
9462 | export_symbols_cmds | \ |
9463 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
9464 | postinstall_cmds | postuninstall_cmds | \ |
9465 | old_postinstall_cmds | old_postuninstall_cmds | \ |
9466 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
9467 | # Double-quote double-evaled strings. |
9468 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
9469 | ;; |
9470 | *) |
9471 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
9472 | ;; |
9473 | esac |
9474 | done |
9475 | |
9476 | case $lt_echo in |
9477 | *'\$0 --fallback-echo"') |
9478 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
9479 | ;; |
9480 | esac |
9481 | |
9482 | cfgfile="${ofile}T" |
9483 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
9484 | $rm -f "$cfgfile" |
9485 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
9486 | echo "$as_me: creating $ofile" >&6;} |
9487 | |
9488 | cat <<__EOF__ >> "$cfgfile" |
9489 | #! $SHELL |
9490 | |
9491 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
9492 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
9493 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
9494 | # |
9495 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
9496 | # Free Software Foundation, Inc. |
9497 | # |
9498 | # This file is part of GNU Libtool: |
9499 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
9500 | # |
9501 | # This program is free software; you can redistribute it and/or modify |
9502 | # it under the terms of the GNU General Public License as published by |
9503 | # the Free Software Foundation; either version 2 of the License, or |
9504 | # (at your option) any later version. |
9505 | # |
9506 | # This program is distributed in the hope that it will be useful, but |
9507 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
9508 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
9509 | # General Public License for more details. |
9510 | # |
9511 | # You should have received a copy of the GNU General Public License |
9512 | # along with this program; if not, write to the Free Software |
9513 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
9514 | # |
9515 | # As a special exception to the GNU General Public License, if you |
9516 | # distribute this file as part of a program that contains a |
9517 | # configuration script generated by Autoconf, you may include it under |
9518 | # the same distribution terms that you use for the rest of that program. |
9519 | |
9520 | # A sed program that does not truncate output. |
9521 | SED=$lt_SED |
9522 | |
9523 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
9524 | Xsed="$SED -e 1s/^X//" |
9525 | |
9526 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
9527 | # if CDPATH is set. |
9528 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
9529 | |
9530 | # The names of the tagged configurations supported by this script. |
9531 | available_tags= |
9532 | |
9533 | # ### BEGIN LIBTOOL CONFIG |
9534 | |
9535 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
9536 | |
9537 | # Shell to use when invoking shell scripts. |
9538 | SHELL=$lt_SHELL |
9539 | |
9540 | # Whether or not to build shared libraries. |
9541 | build_libtool_libs=$enable_shared |
9542 | |
9543 | # Whether or not to build static libraries. |
9544 | build_old_libs=$enable_static |
9545 | |
9546 | # Whether or not to add -lc for building shared libraries. |
9547 | build_libtool_need_lc=$archive_cmds_need_lc |
9548 | |
9549 | # Whether or not to disallow shared libs when runtime libs are static |
9550 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
9551 | |
9552 | # Whether or not to optimize for fast installation. |
9553 | fast_install=$enable_fast_install |
9554 | |
9555 | # The host system. |
9556 | host_alias=$host_alias |
9557 | host=$host |
9558 | host_os=$host_os |
9559 | |
9560 | # The build system. |
9561 | build_alias=$build_alias |
9562 | build=$build |
9563 | build_os=$build_os |
9564 | |
9565 | # An echo program that does not interpret backslashes. |
9566 | echo=$lt_echo |
9567 | |
9568 | # The archiver. |
9569 | AR=$lt_AR |
9570 | AR_FLAGS=$lt_AR_FLAGS |
9571 | |
9572 | # A C compiler. |
9573 | LTCC=$lt_LTCC |
9574 | |
9575 | # LTCC compiler flags. |
9576 | LTCFLAGS=$lt_LTCFLAGS |
9577 | |
9578 | # A language-specific compiler. |
9579 | CC=$lt_compiler |
9580 | |
9581 | # Is the compiler the GNU C compiler? |
9582 | with_gcc=$GCC |
9583 | |
9584 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
9585 | gcc_ver=\`gcc -dumpversion\` |
9586 | |
9587 | # An ERE matcher. |
9588 | EGREP=$lt_EGREP |
9589 | |
9590 | # The linker used to build libraries. |
9591 | LD=$lt_LD |
9592 | |
9593 | # Whether we need hard or soft links. |
9594 | LN_S=$lt_LN_S |
9595 | |
9596 | # A BSD-compatible nm program. |
9597 | NM=$lt_NM |
9598 | |
9599 | # A symbol stripping program |
9600 | STRIP=$lt_STRIP |
9601 | |
9602 | # Used to examine libraries when file_magic_cmd begins "file" |
9603 | MAGIC_CMD=$MAGIC_CMD |
9604 | |
9605 | # Used on cygwin: DLL creation program. |
9606 | DLLTOOL="$DLLTOOL" |
9607 | |
9608 | # Used on cygwin: object dumper. |
9609 | OBJDUMP="$OBJDUMP" |
9610 | |
9611 | # Used on cygwin: assembler. |
9612 | AS="$AS" |
9613 | |
9614 | # The name of the directory that contains temporary libtool files. |
9615 | objdir=$objdir |
9616 | |
9617 | # How to create reloadable object files. |
9618 | reload_flag=$lt_reload_flag |
9619 | reload_cmds=$lt_reload_cmds |
9620 | |
9621 | # How to pass a linker flag through the compiler. |
9622 | wl=$lt_lt_prog_compiler_wl |
9623 | |
9624 | # Object file suffix (normally "o"). |
9625 | objext="$ac_objext" |
9626 | |
9627 | # Old archive suffix (normally "a"). |
9628 | libext="$libext" |
9629 | |
9630 | # Shared library suffix (normally ".so"). |
9631 | shrext_cmds='$shrext_cmds' |
9632 | |
9633 | # Executable file suffix (normally ""). |
9634 | exeext="$exeext" |
9635 | |
9636 | # Additional compiler flags for building library objects. |
9637 | pic_flag=$lt_lt_prog_compiler_pic |
9638 | pic_mode=$pic_mode |
9639 | |
9640 | # What is the maximum length of a command? |
9641 | max_cmd_len=$lt_cv_sys_max_cmd_len |
9642 | |
9643 | # Does compiler simultaneously support -c and -o options? |
9644 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
9645 | |
9646 | # Must we lock files when doing compilation? |
9647 | need_locks=$lt_need_locks |
9648 | |
9649 | # Do we need the lib prefix for modules? |
9650 | need_lib_prefix=$need_lib_prefix |
9651 | |
9652 | # Do we need a version for libraries? |
9653 | need_version=$need_version |
9654 | |
9655 | # Whether dlopen is supported. |
9656 | dlopen_support=$enable_dlopen |
9657 | |
9658 | # Whether dlopen of programs is supported. |
9659 | dlopen_self=$enable_dlopen_self |
9660 | |
9661 | # Whether dlopen of statically linked programs is supported. |
9662 | dlopen_self_static=$enable_dlopen_self_static |
9663 | |
9664 | # Compiler flag to prevent dynamic linking. |
9665 | link_static_flag=$lt_lt_prog_compiler_static |
9666 | |
9667 | # Compiler flag to turn off builtin functions. |
9668 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
9669 | |
9670 | # Compiler flag to allow reflexive dlopens. |
9671 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
9672 | |
9673 | # Compiler flag to generate shared objects directly from archives. |
9674 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
9675 | |
9676 | # Compiler flag to generate thread-safe objects. |
9677 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
9678 | |
9679 | # Library versioning type. |
9680 | version_type=$version_type |
9681 | |
9682 | # Format of library name prefix. |
9683 | libname_spec=$lt_libname_spec |
9684 | |
9685 | # List of archive names. First name is the real one, the rest are links. |
9686 | # The last name is the one that the linker finds with -lNAME. |
9687 | library_names_spec=$lt_library_names_spec |
9688 | |
9689 | # The coded name of the library, if different from the real name. |
9690 | soname_spec=$lt_soname_spec |
9691 | |
9692 | # Commands used to build and install an old-style archive. |
9693 | RANLIB=$lt_RANLIB |
9694 | old_archive_cmds=$lt_old_archive_cmds |
9695 | old_postinstall_cmds=$lt_old_postinstall_cmds |
9696 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
9697 | |
9698 | # Create an old-style archive from a shared archive. |
9699 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
9700 | |
9701 | # Create a temporary old-style archive to link instead of a shared archive. |
9702 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
9703 | |
9704 | # Commands used to build and install a shared archive. |
9705 | archive_cmds=$lt_archive_cmds |
9706 | archive_expsym_cmds=$lt_archive_expsym_cmds |
9707 | postinstall_cmds=$lt_postinstall_cmds |
9708 | postuninstall_cmds=$lt_postuninstall_cmds |
9709 | |
9710 | # Commands used to build a loadable module (assumed same as above if empty) |
9711 | module_cmds=$lt_module_cmds |
9712 | module_expsym_cmds=$lt_module_expsym_cmds |
9713 | |
9714 | # Commands to strip libraries. |
9715 | old_striplib=$lt_old_striplib |
9716 | striplib=$lt_striplib |
9717 | |
9718 | # Dependencies to place before the objects being linked to create a |
9719 | # shared library. |
9720 | predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
9721 | |
9722 | # Dependencies to place after the objects being linked to create a |
9723 | # shared library. |
9724 | postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
9725 | |
9726 | # Dependencies to place before the objects being linked to create a |
9727 | # shared library. |
9728 | predeps=$lt_predeps |
9729 | |
9730 | # Dependencies to place after the objects being linked to create a |
9731 | # shared library. |
9732 | postdeps=$lt_postdeps |
9733 | |
9734 | # The library search path used internally by the compiler when linking |
9735 | # a shared library. |
9736 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
9737 | |
9738 | # Method to check whether dependent libraries are shared objects. |
9739 | deplibs_check_method=$lt_deplibs_check_method |
9740 | |
9741 | # Command to use when deplibs_check_method == file_magic. |
9742 | file_magic_cmd=$lt_file_magic_cmd |
9743 | |
9744 | # Flag that allows shared libraries with undefined symbols to be built. |
9745 | allow_undefined_flag=$lt_allow_undefined_flag |
9746 | |
9747 | # Flag that forces no undefined symbols. |
9748 | no_undefined_flag=$lt_no_undefined_flag |
9749 | |
9750 | # Commands used to finish a libtool library installation in a directory. |
9751 | finish_cmds=$lt_finish_cmds |
9752 | |
9753 | # Same as above, but a single script fragment to be evaled but not shown. |
9754 | finish_eval=$lt_finish_eval |
9755 | |
9756 | # Take the output of nm and produce a listing of raw symbols and C names. |
9757 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
9758 | |
9759 | # Transform the output of nm in a proper C declaration |
9760 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
9761 | |
9762 | # Transform the output of nm in a C name address pair |
9763 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
9764 | |
9765 | # This is the shared library runtime path variable. |
9766 | runpath_var=$runpath_var |
9767 | |
9768 | # This is the shared library path variable. |
9769 | shlibpath_var=$shlibpath_var |
9770 | |
9771 | # Is shlibpath searched before the hard-coded library search path? |
9772 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
9773 | |
9774 | # How to hardcode a shared library path into an executable. |
9775 | hardcode_action=$hardcode_action |
9776 | |
9777 | # Whether we should hardcode library paths into libraries. |
9778 | hardcode_into_libs=$hardcode_into_libs |
9779 | |
9780 | # Flag to hardcode \$libdir into a binary during linking. |
9781 | # This must work even if \$libdir does not exist. |
9782 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
9783 | |
9784 | # If ld is used when linking, flag to hardcode \$libdir into |
9785 | # a binary during linking. This must work even if \$libdir does |
9786 | # not exist. |
9787 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
9788 | |
9789 | # Whether we need a single -rpath flag with a separated argument. |
9790 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
9791 | |
9792 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
9793 | # resulting binary. |
9794 | hardcode_direct=$hardcode_direct |
9795 | |
9796 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
9797 | # resulting binary. |
9798 | hardcode_minus_L=$hardcode_minus_L |
9799 | |
9800 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
9801 | # the resulting binary. |
9802 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
9803 | |
9804 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
9805 | # and all subsequent libraries and executables linked against it. |
9806 | hardcode_automatic=$hardcode_automatic |
9807 | |
9808 | # Variables whose values should be saved in libtool wrapper scripts and |
9809 | # restored at relink time. |
9810 | variables_saved_for_relink="$variables_saved_for_relink" |
9811 | |
9812 | # Whether libtool must link a program against all its dependency libraries. |
9813 | link_all_deplibs=$link_all_deplibs |
9814 | |
9815 | # Compile-time system search path for libraries |
9816 | 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"\` |
9817 | |
9818 | # Run-time system search path for libraries |
9819 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
9820 | |
9821 | # Fix the shell variable \$srcfile for the compiler. |
9822 | fix_srcfile_path="$fix_srcfile_path" |
9823 | |
9824 | # Set to yes if exported symbols are required. |
9825 | always_export_symbols=$always_export_symbols |
9826 | |
9827 | # The commands to list exported symbols. |
9828 | export_symbols_cmds=$lt_export_symbols_cmds |
9829 | |
9830 | # The commands to extract the exported symbol list from a shared archive. |
9831 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
9832 | |
9833 | # Symbols that should not be listed in the preloaded symbols. |
9834 | exclude_expsyms=$lt_exclude_expsyms |
9835 | |
9836 | # Symbols that must always be exported. |
9837 | include_expsyms=$lt_include_expsyms |
9838 | |
9839 | # ### END LIBTOOL CONFIG |
9840 | |
9841 | __EOF__ |
9842 | |
9843 | |
9844 | case $host_os in |
9845 | aix3*) |
9846 | cat <<\EOF >> "$cfgfile" |
9847 | |
9848 | # AIX sometimes has problems with the GCC collect2 program. For some |
9849 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
9850 | # vanish in a puff of smoke. |
9851 | if test "X${COLLECT_NAMES+set}" != Xset; then |
9852 | COLLECT_NAMES= |
9853 | export COLLECT_NAMES |
9854 | fi |
9855 | EOF |
9856 | ;; |
9857 | esac |
9858 | |
9859 | # We use sed instead of cat because bash on DJGPP gets confused if |
9860 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
9861 | # text mode, it properly converts lines to CR/LF. This bash problem |
9862 | # is reportedly fixed, but why not run on old versions too? |
9863 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
9864 | |
9865 | mv -f "$cfgfile" "$ofile" || \ |
9866 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
9867 | chmod +x "$ofile" |
9868 | |
9869 | else |
9870 | # If there is no Makefile yet, we rely on a make rule to execute |
9871 | # `config.status --recheck' to rerun these tests and create the |
9872 | # libtool script then. |
9873 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
9874 | if test -f "$ltmain_in"; then |
9875 | test -f Makefile && make "$ltmain" |
9876 | fi |
9877 | fi |
9878 | |
9879 | |
9880 | ac_ext=c |
9881 | ac_cpp='$CPP $CPPFLAGS' |
9882 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9883 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9884 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
9885 | |
9886 | CC="$lt_save_CC" |
9887 | |
9888 | |
9889 | # Check whether --with-tags or --without-tags was given. |
9890 | if test "${with_tags+set}" = set; then |
9891 | withval="$with_tags" |
9892 | tagnames="$withval" |
9893 | fi; |
9894 | |
9895 | if test -f "$ltmain" && test -n "$tagnames"; then |
9896 | if test ! -f "${ofile}"; then |
9897 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
9898 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
9899 | fi |
9900 | |
9901 | if test -z "$LTCC"; then |
9902 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
9903 | if test -z "$LTCC"; then |
9904 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
9905 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
9906 | else |
9907 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
9908 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
9909 | fi |
9910 | fi |
9911 | if test -z "$LTCFLAGS"; then |
9912 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
9913 | fi |
9914 | |
9915 | # Extract list of available tagged configurations in $ofile. |
9916 | # Note that this assumes the entire list is on one line. |
9917 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
9918 | |
9919 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
9920 | for tagname in $tagnames; do |
9921 | IFS="$lt_save_ifs" |
9922 | # Check whether tagname contains only valid characters |
9923 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
9924 | "") ;; |
9925 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
9926 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
9927 | { (exit 1); exit 1; }; } |
9928 | ;; |
9929 | esac |
9930 | |
9931 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
9932 | then |
9933 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
9934 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
9935 | { (exit 1); exit 1; }; } |
9936 | fi |
9937 | |
9938 | # Update the list of available tags. |
9939 | if test -n "$tagname"; then |
9940 | echo appending configuration tag \"$tagname\" to $ofile |
9941 | |
9942 | case $tagname in |
9943 | CXX) |
9944 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
9945 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
9946 | (test "X$CXX" != "Xg++"))) ; then |
9947 | ac_ext=cc |
9948 | ac_cpp='$CXXCPP $CPPFLAGS' |
9949 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9950 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9951 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
9952 | |
9953 | |
9954 | |
9955 | |
9956 | archive_cmds_need_lc_CXX=no |
9957 | allow_undefined_flag_CXX= |
9958 | always_export_symbols_CXX=no |
9959 | archive_expsym_cmds_CXX= |
9960 | export_dynamic_flag_spec_CXX= |
9961 | hardcode_direct_CXX=no |
9962 | hardcode_libdir_flag_spec_CXX= |
9963 | hardcode_libdir_flag_spec_ld_CXX= |
9964 | hardcode_libdir_separator_CXX= |
9965 | hardcode_minus_L_CXX=no |
9966 | hardcode_shlibpath_var_CXX=unsupported |
9967 | hardcode_automatic_CXX=no |
9968 | module_cmds_CXX= |
9969 | module_expsym_cmds_CXX= |
9970 | link_all_deplibs_CXX=unknown |
9971 | old_archive_cmds_CXX=$old_archive_cmds |
9972 | no_undefined_flag_CXX= |
9973 | whole_archive_flag_spec_CXX= |
9974 | enable_shared_with_static_runtimes_CXX=no |
9975 | |
9976 | # Dependencies to place before and after the object being linked: |
9977 | predep_objects_CXX= |
9978 | postdep_objects_CXX= |
9979 | predeps_CXX= |
9980 | postdeps_CXX= |
9981 | compiler_lib_search_path_CXX= |
9982 | |
9983 | # Source file extension for C++ test sources. |
9984 | ac_ext=cpp |
9985 | |
9986 | # Object file extension for compiled C++ test sources. |
9987 | objext=o |
9988 | objext_CXX=$objext |
9989 | |
9990 | # Code to be used in simple compile tests |
9991 | lt_simple_compile_test_code="int some_variable = 0;\n" |
9992 | |
9993 | # Code to be used in simple link tests |
9994 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
9995 | |
9996 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
9997 | |
9998 | # If no C compiler was specified, use CC. |
9999 | LTCC=${LTCC-"$CC"} |
10000 | |
10001 | # If no C compiler flags were specified, use CFLAGS. |
10002 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
10003 | |
10004 | # Allow CC to be a program name with arguments. |
10005 | compiler=$CC |
10006 | |
10007 | |
10008 | # save warnings/boilerplate of simple test code |
10009 | ac_outfile=conftest.$ac_objext |
10010 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
10011 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10012 | _lt_compiler_boilerplate=`cat conftest.err` |
10013 | $rm conftest* |
10014 | |
10015 | ac_outfile=conftest.$ac_objext |
10016 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
10017 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10018 | _lt_linker_boilerplate=`cat conftest.err` |
10019 | $rm conftest* |
10020 | |
10021 | |
10022 | # Allow CC to be a program name with arguments. |
10023 | lt_save_CC=$CC |
10024 | lt_save_LD=$LD |
10025 | lt_save_GCC=$GCC |
10026 | GCC=$GXX |
10027 | lt_save_with_gnu_ld=$with_gnu_ld |
10028 | lt_save_path_LD=$lt_cv_path_LD |
10029 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
10030 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
10031 | else |
10032 | $as_unset lt_cv_prog_gnu_ld |
10033 | fi |
10034 | if test -n "${lt_cv_path_LDCXX+set}"; then |
10035 | lt_cv_path_LD=$lt_cv_path_LDCXX |
10036 | else |
10037 | $as_unset lt_cv_path_LD |
10038 | fi |
10039 | test -z "${LDCXX+set}" || LD=$LDCXX |
10040 | CC=${CXX-"c++"} |
10041 | compiler=$CC |
10042 | compiler_CXX=$CC |
10043 | for cc_temp in $compiler""; do |
10044 | case $cc_temp in |
10045 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
10046 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
10047 | \-*) ;; |
10048 | *) break;; |
10049 | esac |
10050 | done |
10051 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
10052 | |
10053 | |
10054 | # We don't want -fno-exception wen compiling C++ code, so set the |
10055 | # no_builtin_flag separately |
10056 | if test "$GXX" = yes; then |
10057 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
10058 | else |
10059 | lt_prog_compiler_no_builtin_flag_CXX= |
10060 | fi |
10061 | |
10062 | if test "$GXX" = yes; then |
10063 | # Set up default GNU C++ configuration |
10064 | |
10065 | |
10066 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
10067 | if test "${with_gnu_ld+set}" = set; then |
10068 | withval="$with_gnu_ld" |
10069 | test "$withval" = no || with_gnu_ld=yes |
10070 | else |
10071 | with_gnu_ld=no |
10072 | fi; |
10073 | ac_prog=ld |
10074 | if test "$GCC" = yes; then |
10075 | # Check if gcc -print-prog-name=ld gives a path. |
10076 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
10077 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
10078 | case $host in |
10079 | *-*-mingw*) |
10080 | # gcc leaves a trailing carriage return which upsets mingw |
10081 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
10082 | *) |
10083 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
10084 | esac |
10085 | case $ac_prog in |
10086 | # Accept absolute paths. |
10087 | [\\/]* | ?:[\\/]*) |
10088 | re_direlt='/[^/][^/]*/\.\./' |
10089 | # Canonicalize the pathname of ld |
10090 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
10091 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
10092 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
10093 | done |
10094 | test -z "$LD" && LD="$ac_prog" |
10095 | ;; |
10096 | "") |
10097 | # If it fails, then pretend we aren't using GCC. |
10098 | ac_prog=ld |
10099 | ;; |
10100 | *) |
10101 | # If it is relative, then search for the first ld in PATH. |
10102 | with_gnu_ld=unknown |
10103 | ;; |
10104 | esac |
10105 | elif test "$with_gnu_ld" = yes; then |
10106 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
10107 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
10108 | else |
10109 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
10110 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
10111 | fi |
10112 | if test "${lt_cv_path_LD+set}" = set; then |
10113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10114 | else |
10115 | if test -z "$LD"; then |
10116 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
10117 | for ac_dir in $PATH; do |
10118 | IFS="$lt_save_ifs" |
10119 | test -z "$ac_dir" && ac_dir=. |
10120 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
10121 | lt_cv_path_LD="$ac_dir/$ac_prog" |
10122 | # Check to see if the program is GNU ld. I'd rather use --version, |
10123 | # but apparently some variants of GNU ld only accept -v. |
10124 | # Break only if it was the GNU/non-GNU ld that we prefer. |
10125 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
10126 | *GNU* | *'with BFD'*) |
10127 | test "$with_gnu_ld" != no && break |
10128 | ;; |
10129 | *) |
10130 | test "$with_gnu_ld" != yes && break |
10131 | ;; |
10132 | esac |
10133 | fi |
10134 | done |
10135 | IFS="$lt_save_ifs" |
10136 | else |
10137 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
10138 | fi |
10139 | fi |
10140 | |
10141 | LD="$lt_cv_path_LD" |
10142 | if test -n "$LD"; then |
10143 | echo "$as_me:$LINENO: result: $LD" >&5 |
10144 | echo "${ECHO_T}$LD" >&6 |
10145 | else |
10146 | echo "$as_me:$LINENO: result: no" >&5 |
10147 | echo "${ECHO_T}no" >&6 |
10148 | fi |
10149 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
10150 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
10151 | { (exit 1); exit 1; }; } |
10152 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
10153 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
10154 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
10155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10156 | else |
10157 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
10158 | case `$LD -v 2>&1 </dev/null` in |
10159 | *GNU* | *'with BFD'*) |
10160 | lt_cv_prog_gnu_ld=yes |
10161 | ;; |
10162 | *) |
10163 | lt_cv_prog_gnu_ld=no |
10164 | ;; |
10165 | esac |
10166 | fi |
10167 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
10168 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
10169 | with_gnu_ld=$lt_cv_prog_gnu_ld |
10170 | |
10171 | |
10172 | |
10173 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
10174 | # archiving commands below assume that GNU ld is being used. |
10175 | if test "$with_gnu_ld" = yes; then |
10176 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10177 | 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' |
10178 | |
10179 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
10180 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10181 | |
10182 | # If archive_cmds runs LD, not CC, wlarc should be empty |
10183 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
10184 | # investigate it a little bit more. (MM) |
10185 | wlarc='${wl}' |
10186 | |
10187 | # ancient GNU ld didn't support --whole-archive et. al. |
10188 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
10189 | grep 'no-whole-archive' > /dev/null; then |
10190 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
10191 | else |
10192 | whole_archive_flag_spec_CXX= |
10193 | fi |
10194 | else |
10195 | with_gnu_ld=no |
10196 | wlarc= |
10197 | |
10198 | # A generic and very simple default shared library creation |
10199 | # command for GNU C++ for the case where it uses the native |
10200 | # linker, instead of GNU ld. If possible, this setting should |
10201 | # overridden to take advantage of the native linker features on |
10202 | # the platform it is being used on. |
10203 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
10204 | fi |
10205 | |
10206 | # Commands to make compiler produce verbose output that lists |
10207 | # what "hidden" libraries, object files and flags are used when |
10208 | # linking a shared library. |
10209 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
10210 | |
10211 | else |
10212 | GXX=no |
10213 | with_gnu_ld=no |
10214 | wlarc= |
10215 | fi |
10216 | |
10217 | # PORTME: fill in a description of your system's C++ link characteristics |
10218 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
10219 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
10220 | ld_shlibs_CXX=yes |
10221 | case $host_os in |
10222 | aix3*) |
10223 | # FIXME: insert proper C++ library support |
10224 | ld_shlibs_CXX=no |
10225 | ;; |
10226 | aix4* | aix5*) |
10227 | if test "$host_cpu" = ia64; then |
10228 | # On IA64, the linker does run time linking by default, so we don't |
10229 | # have to do anything special. |
10230 | aix_use_runtimelinking=no |
10231 | exp_sym_flag='-Bexport' |
10232 | no_entry_flag="" |
10233 | else |
10234 | aix_use_runtimelinking=no |
10235 | |
10236 | # Test if we are trying to use run time linking or normal |
10237 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
10238 | # need to do runtime linking. |
10239 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
10240 | for ld_flag in $LDFLAGS; do |
10241 | case $ld_flag in |
10242 | *-brtl*) |
10243 | aix_use_runtimelinking=yes |
10244 | break |
10245 | ;; |
10246 | esac |
10247 | done |
10248 | ;; |
10249 | esac |
10250 | |
10251 | exp_sym_flag='-bexport' |
10252 | no_entry_flag='-bnoentry' |
10253 | fi |
10254 | |
10255 | # When large executables or shared objects are built, AIX ld can |
10256 | # have problems creating the table of contents. If linking a library |
10257 | # or program results in "error TOC overflow" add -mminimal-toc to |
10258 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
10259 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
10260 | |
10261 | archive_cmds_CXX='' |
10262 | hardcode_direct_CXX=yes |
10263 | hardcode_libdir_separator_CXX=':' |
10264 | link_all_deplibs_CXX=yes |
10265 | |
10266 | if test "$GXX" = yes; then |
10267 | case $host_os in aix4.[012]|aix4.[012].*) |
10268 | # We only want to do this on AIX 4.2 and lower, the check |
10269 | # below for broken collect2 doesn't work under 4.3+ |
10270 | collect2name=`${CC} -print-prog-name=collect2` |
10271 | if test -f "$collect2name" && \ |
10272 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
10273 | then |
10274 | # We have reworked collect2 |
10275 | hardcode_direct_CXX=yes |
10276 | else |
10277 | # We have old collect2 |
10278 | hardcode_direct_CXX=unsupported |
10279 | # It fails to find uninstalled libraries when the uninstalled |
10280 | # path is not listed in the libpath. Setting hardcode_minus_L |
10281 | # to unsupported forces relinking |
10282 | hardcode_minus_L_CXX=yes |
10283 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
10284 | hardcode_libdir_separator_CXX= |
10285 | fi |
10286 | ;; |
10287 | esac |
10288 | shared_flag='-shared' |
10289 | if test "$aix_use_runtimelinking" = yes; then |
10290 | shared_flag="$shared_flag "'${wl}-G' |
10291 | fi |
10292 | else |
10293 | # not using gcc |
10294 | if test "$host_cpu" = ia64; then |
10295 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
10296 | # chokes on -Wl,-G. The following line is correct: |
10297 | shared_flag='-G' |
10298 | else |
10299 | if test "$aix_use_runtimelinking" = yes; then |
10300 | shared_flag='${wl}-G' |
10301 | else |
10302 | shared_flag='${wl}-bM:SRE' |
10303 | fi |
10304 | fi |
10305 | fi |
10306 | |
10307 | # It seems that -bexpall does not export symbols beginning with |
10308 | # underscore (_), so it is better to generate a list of symbols to export. |
10309 | always_export_symbols_CXX=yes |
10310 | if test "$aix_use_runtimelinking" = yes; then |
10311 | # Warning - without using the other runtime loading flags (-brtl), |
10312 | # -berok will link without error, but may produce a broken library. |
10313 | allow_undefined_flag_CXX='-berok' |
10314 | # Determine the default libpath from the value encoded in an empty executable. |
10315 | cat >conftest.$ac_ext <<_ACEOF |
10316 | /* confdefs.h. */ |
10317 | _ACEOF |
10318 | cat confdefs.h >>conftest.$ac_ext |
10319 | cat >>conftest.$ac_ext <<_ACEOF |
10320 | /* end confdefs.h. */ |
10321 | |
10322 | int |
10323 | main () |
10324 | { |
10325 | |
10326 | ; |
10327 | return 0; |
10328 | } |
10329 | _ACEOF |
10330 | rm -f conftest.$ac_objext conftest$ac_exeext |
10331 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10332 | (eval $ac_link) 2>conftest.er1 |
10333 | ac_status=$? |
10334 | grep -v '^ *+' conftest.er1 >conftest.err |
10335 | rm -f conftest.er1 |
10336 | cat conftest.err >&5 |
10337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10338 | (exit $ac_status); } && |
10339 | { ac_try='test -z "$ac_cxx_werror_flag" |
10340 | || test ! -s conftest.err' |
10341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10342 | (eval $ac_try) 2>&5 |
10343 | ac_status=$? |
10344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10345 | (exit $ac_status); }; } && |
10346 | { ac_try='test -s conftest$ac_exeext' |
10347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10348 | (eval $ac_try) 2>&5 |
10349 | ac_status=$? |
10350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10351 | (exit $ac_status); }; }; then |
10352 | |
10353 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
10354 | }'` |
10355 | # Check for a 64-bit object if we didn't find anything. |
10356 | 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; } |
10357 | }'`; fi |
10358 | else |
10359 | echo "$as_me: failed program was:" >&5 |
10360 | sed 's/^/| /' conftest.$ac_ext >&5 |
10361 | |
10362 | fi |
10363 | rm -f conftest.err conftest.$ac_objext \ |
10364 | conftest$ac_exeext conftest.$ac_ext |
10365 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10366 | |
10367 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
10368 | |
10369 | 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" |
10370 | else |
10371 | if test "$host_cpu" = ia64; then |
10372 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
10373 | allow_undefined_flag_CXX="-z nodefs" |
10374 | 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" |
10375 | else |
10376 | # Determine the default libpath from the value encoded in an empty executable. |
10377 | cat >conftest.$ac_ext <<_ACEOF |
10378 | /* confdefs.h. */ |
10379 | _ACEOF |
10380 | cat confdefs.h >>conftest.$ac_ext |
10381 | cat >>conftest.$ac_ext <<_ACEOF |
10382 | /* end confdefs.h. */ |
10383 | |
10384 | int |
10385 | main () |
10386 | { |
10387 | |
10388 | ; |
10389 | return 0; |
10390 | } |
10391 | _ACEOF |
10392 | rm -f conftest.$ac_objext conftest$ac_exeext |
10393 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10394 | (eval $ac_link) 2>conftest.er1 |
10395 | ac_status=$? |
10396 | grep -v '^ *+' conftest.er1 >conftest.err |
10397 | rm -f conftest.er1 |
10398 | cat conftest.err >&5 |
10399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10400 | (exit $ac_status); } && |
10401 | { ac_try='test -z "$ac_cxx_werror_flag" |
10402 | || test ! -s conftest.err' |
10403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10404 | (eval $ac_try) 2>&5 |
10405 | ac_status=$? |
10406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10407 | (exit $ac_status); }; } && |
10408 | { ac_try='test -s conftest$ac_exeext' |
10409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10410 | (eval $ac_try) 2>&5 |
10411 | ac_status=$? |
10412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10413 | (exit $ac_status); }; }; then |
10414 | |
10415 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
10416 | }'` |
10417 | # Check for a 64-bit object if we didn't find anything. |
10418 | 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; } |
10419 | }'`; fi |
10420 | else |
10421 | echo "$as_me: failed program was:" >&5 |
10422 | sed 's/^/| /' conftest.$ac_ext >&5 |
10423 | |
10424 | fi |
10425 | rm -f conftest.err conftest.$ac_objext \ |
10426 | conftest$ac_exeext conftest.$ac_ext |
10427 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10428 | |
10429 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
10430 | # Warning - without using the other run time loading flags, |
10431 | # -berok will link without error, but may produce a broken library. |
10432 | no_undefined_flag_CXX=' ${wl}-bernotok' |
10433 | allow_undefined_flag_CXX=' ${wl}-berok' |
10434 | # Exported symbols can be pulled into shared objects from archives |
10435 | whole_archive_flag_spec_CXX='$convenience' |
10436 | archive_cmds_need_lc_CXX=yes |
10437 | # This is similar to how AIX traditionally builds its shared libraries. |
10438 | 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' |
10439 | fi |
10440 | fi |
10441 | ;; |
10442 | |
10443 | beos*) |
10444 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
10445 | allow_undefined_flag_CXX=unsupported |
10446 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
10447 | # support --undefined. This deserves some investigation. FIXME |
10448 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10449 | else |
10450 | ld_shlibs_CXX=no |
10451 | fi |
10452 | ;; |
10453 | |
10454 | chorus*) |
10455 | case $cc_basename in |
10456 | *) |
10457 | # FIXME: insert proper C++ library support |
10458 | ld_shlibs_CXX=no |
10459 | ;; |
10460 | esac |
10461 | ;; |
10462 | |
10463 | cygwin* | mingw* | pw32*) |
10464 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
10465 | # as there is no search path for DLLs. |
10466 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
10467 | allow_undefined_flag_CXX=unsupported |
10468 | always_export_symbols_CXX=no |
10469 | enable_shared_with_static_runtimes_CXX=yes |
10470 | |
10471 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
10472 | 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' |
10473 | # If the export-symbols file already is a .def file (1st line |
10474 | # is EXPORTS), use it as is; otherwise, prepend... |
10475 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
10476 | cp $export_symbols $output_objdir/$soname.def; |
10477 | else |
10478 | echo EXPORTS > $output_objdir/$soname.def; |
10479 | cat $export_symbols >> $output_objdir/$soname.def; |
10480 | fi~ |
10481 | $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' |
10482 | else |
10483 | ld_shlibs_CXX=no |
10484 | fi |
10485 | ;; |
10486 | darwin* | rhapsody*) |
10487 | case $host_os in |
10488 | rhapsody* | darwin1.[012]) |
10489 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
10490 | ;; |
10491 | *) # Darwin 1.3 on |
10492 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
10493 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
10494 | else |
10495 | case ${MACOSX_DEPLOYMENT_TARGET} in |
10496 | 10.[012]) |
10497 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
10498 | ;; |
10499 | 10.*) |
10500 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
10501 | ;; |
10502 | esac |
10503 | fi |
10504 | ;; |
10505 | esac |
10506 | archive_cmds_need_lc_CXX=no |
10507 | hardcode_direct_CXX=no |
10508 | hardcode_automatic_CXX=yes |
10509 | hardcode_shlibpath_var_CXX=unsupported |
10510 | whole_archive_flag_spec_CXX='' |
10511 | link_all_deplibs_CXX=yes |
10512 | |
10513 | if test "$GXX" = yes ; then |
10514 | lt_int_apple_cc_single_mod=no |
10515 | output_verbose_link_cmd='echo' |
10516 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
10517 | lt_int_apple_cc_single_mod=yes |
10518 | fi |
10519 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
10520 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
10521 | else |
10522 | 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' |
10523 | fi |
10524 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
10525 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
10526 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
10527 | 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}' |
10528 | else |
10529 | 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}' |
10530 | fi |
10531 | 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}' |
10532 | else |
10533 | case $cc_basename in |
10534 | xlc*) |
10535 | output_verbose_link_cmd='echo' |
10536 | 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' |
10537 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
10538 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
10539 | 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}' |
10540 | 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}' |
10541 | ;; |
10542 | *) |
10543 | ld_shlibs_CXX=no |
10544 | ;; |
10545 | esac |
10546 | fi |
10547 | ;; |
10548 | |
10549 | dgux*) |
10550 | case $cc_basename in |
10551 | ec++*) |
10552 | # FIXME: insert proper C++ library support |
10553 | ld_shlibs_CXX=no |
10554 | ;; |
10555 | ghcx*) |
10556 | # Green Hills C++ Compiler |
10557 | # FIXME: insert proper C++ library support |
10558 | ld_shlibs_CXX=no |
10559 | ;; |
10560 | *) |
10561 | # FIXME: insert proper C++ library support |
10562 | ld_shlibs_CXX=no |
10563 | ;; |
10564 | esac |
10565 | ;; |
10566 | freebsd[12]*) |
10567 | # C++ shared libraries reported to be fairly broken before switch to ELF |
10568 | ld_shlibs_CXX=no |
10569 | ;; |
10570 | freebsd-elf*) |
10571 | archive_cmds_need_lc_CXX=no |
10572 | ;; |
10573 | freebsd* | kfreebsd*-gnu | dragonfly*) |
10574 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
10575 | # conventions |
10576 | ld_shlibs_CXX=yes |
10577 | ;; |
10578 | gnu*) |
10579 | ;; |
10580 | hpux9*) |
10581 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
10582 | hardcode_libdir_separator_CXX=: |
10583 | export_dynamic_flag_spec_CXX='${wl}-E' |
10584 | hardcode_direct_CXX=yes |
10585 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
10586 | # but as the default |
10587 | # location of the library. |
10588 | |
10589 | case $cc_basename in |
10590 | CC*) |
10591 | # FIXME: insert proper C++ library support |
10592 | ld_shlibs_CXX=no |
10593 | ;; |
10594 | aCC*) |
10595 | 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' |
10596 | # Commands to make compiler produce verbose output that lists |
10597 | # what "hidden" libraries, object files and flags are used when |
10598 | # linking a shared library. |
10599 | # |
10600 | # There doesn't appear to be a way to prevent this compiler from |
10601 | # explicitly linking system object files so we need to strip them |
10602 | # from the output so that they don't get included in the library |
10603 | # dependencies. |
10604 | 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' |
10605 | ;; |
10606 | *) |
10607 | if test "$GXX" = yes; then |
10608 | 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' |
10609 | else |
10610 | # FIXME: insert proper C++ library support |
10611 | ld_shlibs_CXX=no |
10612 | fi |
10613 | ;; |
10614 | esac |
10615 | ;; |
10616 | hpux10*|hpux11*) |
10617 | if test $with_gnu_ld = no; then |
10618 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
10619 | hardcode_libdir_separator_CXX=: |
10620 | |
10621 | case $host_cpu in |
10622 | hppa*64*|ia64*) |
10623 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
10624 | ;; |
10625 | *) |
10626 | export_dynamic_flag_spec_CXX='${wl}-E' |
10627 | ;; |
10628 | esac |
10629 | fi |
10630 | case $host_cpu in |
10631 | hppa*64*|ia64*) |
10632 | hardcode_direct_CXX=no |
10633 | hardcode_shlibpath_var_CXX=no |
10634 | ;; |
10635 | *) |
10636 | hardcode_direct_CXX=yes |
10637 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
10638 | # but as the default |
10639 | # location of the library. |
10640 | ;; |
10641 | esac |
10642 | |
10643 | case $cc_basename in |
10644 | CC*) |
10645 | # FIXME: insert proper C++ library support |
10646 | ld_shlibs_CXX=no |
10647 | ;; |
10648 | aCC*) |
10649 | case $host_cpu in |
10650 | hppa*64*) |
10651 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10652 | ;; |
10653 | ia64*) |
10654 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10655 | ;; |
10656 | *) |
10657 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10658 | ;; |
10659 | esac |
10660 | # Commands to make compiler produce verbose output that lists |
10661 | # what "hidden" libraries, object files and flags are used when |
10662 | # linking a shared library. |
10663 | # |
10664 | # There doesn't appear to be a way to prevent this compiler from |
10665 | # explicitly linking system object files so we need to strip them |
10666 | # from the output so that they don't get included in the library |
10667 | # dependencies. |
10668 | 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' |
10669 | ;; |
10670 | *) |
10671 | if test "$GXX" = yes; then |
10672 | if test $with_gnu_ld = no; then |
10673 | case $host_cpu in |
10674 | hppa*64*) |
10675 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10676 | ;; |
10677 | ia64*) |
10678 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10679 | ;; |
10680 | *) |
10681 | 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' |
10682 | ;; |
10683 | esac |
10684 | fi |
10685 | else |
10686 | # FIXME: insert proper C++ library support |
10687 | ld_shlibs_CXX=no |
10688 | fi |
10689 | ;; |
10690 | esac |
10691 | ;; |
10692 | interix3*) |
10693 | hardcode_direct_CXX=no |
10694 | hardcode_shlibpath_var_CXX=no |
10695 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10696 | export_dynamic_flag_spec_CXX='${wl}-E' |
10697 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
10698 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
10699 | # default) and relocated if they conflict, which is a slow very memory |
10700 | # consuming and fragmenting process. To avoid this, we pick a random, |
10701 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
10702 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
10703 | 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' |
10704 | 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' |
10705 | ;; |
10706 | irix5* | irix6*) |
10707 | case $cc_basename in |
10708 | CC*) |
10709 | # SGI C++ |
10710 | 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' |
10711 | |
10712 | # Archives containing C++ object files must be created using |
10713 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
10714 | # necessary to make sure instantiated templates are included |
10715 | # in the archive. |
10716 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
10717 | ;; |
10718 | *) |
10719 | if test "$GXX" = yes; then |
10720 | if test "$with_gnu_ld" = no; then |
10721 | 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' |
10722 | else |
10723 | 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' |
10724 | fi |
10725 | fi |
10726 | link_all_deplibs_CXX=yes |
10727 | ;; |
10728 | esac |
10729 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
10730 | hardcode_libdir_separator_CXX=: |
10731 | ;; |
10732 | linux*) |
10733 | case $cc_basename in |
10734 | KCC*) |
10735 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
10736 | |
10737 | # KCC will only create a shared library if the output file |
10738 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
10739 | # to its proper name (with version) after linking. |
10740 | 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' |
10741 | 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' |
10742 | # Commands to make compiler produce verbose output that lists |
10743 | # what "hidden" libraries, object files and flags are used when |
10744 | # linking a shared library. |
10745 | # |
10746 | # There doesn't appear to be a way to prevent this compiler from |
10747 | # explicitly linking system object files so we need to strip them |
10748 | # from the output so that they don't get included in the library |
10749 | # dependencies. |
10750 | 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' |
10751 | |
10752 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
10753 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10754 | |
10755 | # Archives containing C++ object files must be created using |
10756 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
10757 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
10758 | ;; |
10759 | icpc*) |
10760 | # Intel C++ |
10761 | with_gnu_ld=yes |
10762 | # version 8.0 and above of icpc choke on multiply defined symbols |
10763 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
10764 | # earlier do not add the objects themselves. |
10765 | case `$CC -V 2>&1` in |
10766 | *"Version 7."*) |
10767 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10768 | 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' |
10769 | ;; |
10770 | *) # Version 8.0 or newer |
10771 | tmp_idyn= |
10772 | case $host_cpu in |
10773 | ia64*) tmp_idyn=' -i_dynamic';; |
10774 | esac |
10775 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10776 | 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' |
10777 | ;; |
10778 | esac |
10779 | archive_cmds_need_lc_CXX=no |
10780 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10781 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10782 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
10783 | ;; |
10784 | pgCC*) |
10785 | # Portland Group C++ compiler |
10786 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
10787 | 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' |
10788 | |
10789 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
10790 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10791 | 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' |
10792 | ;; |
10793 | cxx*) |
10794 | # Compaq C++ |
10795 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10796 | 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' |
10797 | |
10798 | runpath_var=LD_RUN_PATH |
10799 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
10800 | hardcode_libdir_separator_CXX=: |
10801 | |
10802 | # Commands to make compiler produce verbose output that lists |
10803 | # what "hidden" libraries, object files and flags are used when |
10804 | # linking a shared library. |
10805 | # |
10806 | # There doesn't appear to be a way to prevent this compiler from |
10807 | # explicitly linking system object files so we need to strip them |
10808 | # from the output so that they don't get included in the library |
10809 | # dependencies. |
10810 | 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' |
10811 | ;; |
10812 | esac |
10813 | ;; |
10814 | lynxos*) |
10815 | # FIXME: insert proper C++ library support |
10816 | ld_shlibs_CXX=no |
10817 | ;; |
10818 | m88k*) |
10819 | # FIXME: insert proper C++ library support |
10820 | ld_shlibs_CXX=no |
10821 | ;; |
10822 | mvs*) |
10823 | case $cc_basename in |
10824 | cxx*) |
10825 | # FIXME: insert proper C++ library support |
10826 | ld_shlibs_CXX=no |
10827 | ;; |
10828 | *) |
10829 | # FIXME: insert proper C++ library support |
10830 | ld_shlibs_CXX=no |
10831 | ;; |
10832 | esac |
10833 | ;; |
10834 | netbsd*) |
10835 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
10836 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
10837 | wlarc= |
10838 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
10839 | hardcode_direct_CXX=yes |
10840 | hardcode_shlibpath_var_CXX=no |
10841 | fi |
10842 | # Workaround some broken pre-1.5 toolchains |
10843 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
10844 | ;; |
10845 | openbsd2*) |
10846 | # C++ shared libraries are fairly broken |
10847 | ld_shlibs_CXX=no |
10848 | ;; |
10849 | openbsd*) |
10850 | hardcode_direct_CXX=yes |
10851 | hardcode_shlibpath_var_CXX=no |
10852 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
10853 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10854 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
10855 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
10856 | export_dynamic_flag_spec_CXX='${wl}-E' |
10857 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
10858 | fi |
10859 | output_verbose_link_cmd='echo' |
10860 | ;; |
10861 | osf3*) |
10862 | case $cc_basename in |
10863 | KCC*) |
10864 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
10865 | |
10866 | # KCC will only create a shared library if the output file |
10867 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
10868 | # to its proper name (with version) after linking. |
10869 | 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' |
10870 | |
10871 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10872 | hardcode_libdir_separator_CXX=: |
10873 | |
10874 | # Archives containing C++ object files must be created using |
10875 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
10876 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
10877 | |
10878 | ;; |
10879 | RCC*) |
10880 | # Rational C++ 2.4.1 |
10881 | # FIXME: insert proper C++ library support |
10882 | ld_shlibs_CXX=no |
10883 | ;; |
10884 | cxx*) |
10885 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
10886 | 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' |
10887 | |
10888 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
10889 | hardcode_libdir_separator_CXX=: |
10890 | |
10891 | # Commands to make compiler produce verbose output that lists |
10892 | # what "hidden" libraries, object files and flags are used when |
10893 | # linking a shared library. |
10894 | # |
10895 | # There doesn't appear to be a way to prevent this compiler from |
10896 | # explicitly linking system object files so we need to strip them |
10897 | # from the output so that they don't get included in the library |
10898 | # dependencies. |
10899 | 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' |
10900 | ;; |
10901 | *) |
10902 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
10903 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
10904 | 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' |
10905 | |
10906 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
10907 | hardcode_libdir_separator_CXX=: |
10908 | |
10909 | # Commands to make compiler produce verbose output that lists |
10910 | # what "hidden" libraries, object files and flags are used when |
10911 | # linking a shared library. |
10912 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
10913 | |
10914 | else |
10915 | # FIXME: insert proper C++ library support |
10916 | ld_shlibs_CXX=no |
10917 | fi |
10918 | ;; |
10919 | esac |
10920 | ;; |
10921 | osf4* | osf5*) |
10922 | case $cc_basename in |
10923 | KCC*) |
10924 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
10925 | |
10926 | # KCC will only create a shared library if the output file |
10927 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
10928 | # to its proper name (with version) after linking. |
10929 | 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' |
10930 | |
10931 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10932 | hardcode_libdir_separator_CXX=: |
10933 | |
10934 | # Archives containing C++ object files must be created using |
10935 | # the KAI C++ compiler. |
10936 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
10937 | ;; |
10938 | RCC*) |
10939 | # Rational C++ 2.4.1 |
10940 | # FIXME: insert proper C++ library support |
10941 | ld_shlibs_CXX=no |
10942 | ;; |
10943 | cxx*) |
10944 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
10945 | 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' |
10946 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
10947 | echo "-hidden">> $lib.exp~ |
10948 | $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~ |
10949 | $rm $lib.exp' |
10950 | |
10951 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
10952 | hardcode_libdir_separator_CXX=: |
10953 | |
10954 | # Commands to make compiler produce verbose output that lists |
10955 | # what "hidden" libraries, object files and flags are used when |
10956 | # linking a shared library. |
10957 | # |
10958 | # There doesn't appear to be a way to prevent this compiler from |
10959 | # explicitly linking system object files so we need to strip them |
10960 | # from the output so that they don't get included in the library |
10961 | # dependencies. |
10962 | 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' |
10963 | ;; |
10964 | *) |
10965 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
10966 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
10967 | 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' |
10968 | |
10969 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
10970 | hardcode_libdir_separator_CXX=: |
10971 | |
10972 | # Commands to make compiler produce verbose output that lists |
10973 | # what "hidden" libraries, object files and flags are used when |
10974 | # linking a shared library. |
10975 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
10976 | |
10977 | else |
10978 | # FIXME: insert proper C++ library support |
10979 | ld_shlibs_CXX=no |
10980 | fi |
10981 | ;; |
10982 | esac |
10983 | ;; |
10984 | psos*) |
10985 | # FIXME: insert proper C++ library support |
10986 | ld_shlibs_CXX=no |
10987 | ;; |
10988 | sunos4*) |
10989 | case $cc_basename in |
10990 | CC*) |
10991 | # Sun C++ 4.x |
10992 | # FIXME: insert proper C++ library support |
10993 | ld_shlibs_CXX=no |
10994 | ;; |
10995 | lcc*) |
10996 | # Lucid |
10997 | # FIXME: insert proper C++ library support |
10998 | ld_shlibs_CXX=no |
10999 | ;; |
11000 | *) |
11001 | # FIXME: insert proper C++ library support |
11002 | ld_shlibs_CXX=no |
11003 | ;; |
11004 | esac |
11005 | ;; |
11006 | solaris*) |
11007 | case $cc_basename in |
11008 | CC*) |
11009 | # Sun C++ 4.2, 5.x and Centerline C++ |
11010 | archive_cmds_need_lc_CXX=yes |
11011 | no_undefined_flag_CXX=' -zdefs' |
11012 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11013 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11014 | $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' |
11015 | |
11016 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11017 | hardcode_shlibpath_var_CXX=no |
11018 | case $host_os in |
11019 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
11020 | *) |
11021 | # The C++ compiler is used as linker so we must use $wl |
11022 | # flag to pass the commands to the underlying system |
11023 | # linker. We must also pass each convience library through |
11024 | # to the system linker between allextract/defaultextract. |
11025 | # The C++ compiler will combine linker options so we |
11026 | # cannot just pass the convience library names through |
11027 | # without $wl. |
11028 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
11029 | 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' |
11030 | ;; |
11031 | esac |
11032 | link_all_deplibs_CXX=yes |
11033 | |
11034 | output_verbose_link_cmd='echo' |
11035 | |
11036 | # Archives containing C++ object files must be created using |
11037 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
11038 | # necessary to make sure instantiated templates are included |
11039 | # in the archive. |
11040 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
11041 | ;; |
11042 | gcx*) |
11043 | # Green Hills C++ Compiler |
11044 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11045 | |
11046 | # The C++ compiler must be used to create the archive. |
11047 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
11048 | ;; |
11049 | *) |
11050 | # GNU C++ compiler with Solaris linker |
11051 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11052 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
11053 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
11054 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11055 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11056 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11057 | |
11058 | # Commands to make compiler produce verbose output that lists |
11059 | # what "hidden" libraries, object files and flags are used when |
11060 | # linking a shared library. |
11061 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11062 | else |
11063 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
11064 | # platform. |
11065 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11066 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11067 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11068 | |
11069 | # Commands to make compiler produce verbose output that lists |
11070 | # what "hidden" libraries, object files and flags are used when |
11071 | # linking a shared library. |
11072 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11073 | fi |
11074 | |
11075 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
11076 | fi |
11077 | ;; |
11078 | esac |
11079 | ;; |
11080 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
11081 | no_undefined_flag_CXX='${wl}-z,text' |
11082 | archive_cmds_need_lc_CXX=no |
11083 | hardcode_shlibpath_var_CXX=no |
11084 | runpath_var='LD_RUN_PATH' |
11085 | |
11086 | case $cc_basename in |
11087 | CC*) |
11088 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11089 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11090 | ;; |
11091 | *) |
11092 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11093 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11094 | ;; |
11095 | esac |
11096 | ;; |
11097 | sysv5* | sco3.2v5* | sco5v6*) |
11098 | # Note: We can NOT use -z defs as we might desire, because we do not |
11099 | # link with -lc, and that would cause any symbols used from libc to |
11100 | # always be unresolved, which means just about no library would |
11101 | # ever link correctly. If we're not using GNU ld we use -z text |
11102 | # though, which does catch some bad symbols but isn't as heavy-handed |
11103 | # as -z defs. |
11104 | # For security reasons, it is highly recommended that you always |
11105 | # use absolute paths for naming shared libraries, and exclude the |
11106 | # DT_RUNPATH tag from executables and libraries. But doing so |
11107 | # requires that you compile everything twice, which is a pain. |
11108 | # So that behaviour is only enabled if SCOABSPATH is set to a |
11109 | # non-empty value in the environment. Most likely only useful for |
11110 | # creating official distributions of packages. |
11111 | # This is a hack until libtool officially supports absolute path |
11112 | # names for shared libraries. |
11113 | no_undefined_flag_CXX='${wl}-z,text' |
11114 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
11115 | archive_cmds_need_lc_CXX=no |
11116 | hardcode_shlibpath_var_CXX=no |
11117 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
11118 | hardcode_libdir_separator_CXX=':' |
11119 | link_all_deplibs_CXX=yes |
11120 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
11121 | runpath_var='LD_RUN_PATH' |
11122 | |
11123 | case $cc_basename in |
11124 | CC*) |
11125 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11126 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11127 | ;; |
11128 | *) |
11129 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11130 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11131 | ;; |
11132 | esac |
11133 | ;; |
11134 | tandem*) |
11135 | case $cc_basename in |
11136 | NCC*) |
11137 | # NonStop-UX NCC 3.20 |
11138 | # FIXME: insert proper C++ library support |
11139 | ld_shlibs_CXX=no |
11140 | ;; |
11141 | *) |
11142 | # FIXME: insert proper C++ library support |
11143 | ld_shlibs_CXX=no |
11144 | ;; |
11145 | esac |
11146 | ;; |
11147 | vxworks*) |
11148 | # FIXME: insert proper C++ library support |
11149 | ld_shlibs_CXX=no |
11150 | ;; |
11151 | *) |
11152 | # FIXME: insert proper C++ library support |
11153 | ld_shlibs_CXX=no |
11154 | ;; |
11155 | esac |
11156 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
11157 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
11158 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
11159 | |
11160 | GCC_CXX="$GXX" |
11161 | LD_CXX="$LD" |
11162 | |
11163 | |
11164 | cat > conftest.$ac_ext <<EOF |
11165 | class Foo |
11166 | { |
11167 | public: |
11168 | Foo (void) { a = 0; } |
11169 | private: |
11170 | int a; |
11171 | }; |
11172 | EOF |
11173 | |
11174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11175 | (eval $ac_compile) 2>&5 |
11176 | ac_status=$? |
11177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11178 | (exit $ac_status); }; then |
11179 | # Parse the compiler output and extract the necessary |
11180 | # objects, libraries and library flags. |
11181 | |
11182 | # Sentinel used to keep track of whether or not we are before |
11183 | # the conftest object file. |
11184 | pre_test_object_deps_done=no |
11185 | |
11186 | # The `*' in the case matches for architectures that use `case' in |
11187 | # $output_verbose_cmd can trigger glob expansion during the loop |
11188 | # eval without this substitution. |
11189 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
11190 | |
11191 | for p in `eval $output_verbose_link_cmd`; do |
11192 | case $p in |
11193 | |
11194 | -L* | -R* | -l*) |
11195 | # Some compilers place space between "-{L,R}" and the path. |
11196 | # Remove the space. |
11197 | if test $p = "-L" \ |
11198 | || test $p = "-R"; then |
11199 | prev=$p |
11200 | continue |
11201 | else |
11202 | prev= |
11203 | fi |
11204 | |
11205 | if test "$pre_test_object_deps_done" = no; then |
11206 | case $p in |
11207 | -L* | -R*) |
11208 | # Internal compiler library paths should come after those |
11209 | # provided the user. The postdeps already come after the |
11210 | # user supplied libs so there is no need to process them. |
11211 | if test -z "$compiler_lib_search_path_CXX"; then |
11212 | compiler_lib_search_path_CXX="${prev}${p}" |
11213 | else |
11214 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
11215 | fi |
11216 | ;; |
11217 | # The "-l" case would never come before the object being |
11218 | # linked, so don't bother handling this case. |
11219 | esac |
11220 | else |
11221 | if test -z "$postdeps_CXX"; then |
11222 | postdeps_CXX="${prev}${p}" |
11223 | else |
11224 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
11225 | fi |
11226 | fi |
11227 | ;; |
11228 | |
11229 | *.$objext) |
11230 | # This assumes that the test object file only shows up |
11231 | # once in the compiler output. |
11232 | if test "$p" = "conftest.$objext"; then |
11233 | pre_test_object_deps_done=yes |
11234 | continue |
11235 | fi |
11236 | |
11237 | if test "$pre_test_object_deps_done" = no; then |
11238 | if test -z "$predep_objects_CXX"; then |
11239 | predep_objects_CXX="$p" |
11240 | else |
11241 | predep_objects_CXX="$predep_objects_CXX $p" |
11242 | fi |
11243 | else |
11244 | if test -z "$postdep_objects_CXX"; then |
11245 | postdep_objects_CXX="$p" |
11246 | else |
11247 | postdep_objects_CXX="$postdep_objects_CXX $p" |
11248 | fi |
11249 | fi |
11250 | ;; |
11251 | |
11252 | *) ;; # Ignore the rest. |
11253 | |
11254 | esac |
11255 | done |
11256 | |
11257 | # Clean up. |
11258 | rm -f a.out a.exe |
11259 | else |
11260 | echo "libtool.m4: error: problem compiling CXX test program" |
11261 | fi |
11262 | |
11263 | $rm -f confest.$objext |
11264 | |
11265 | # PORTME: override above test on systems where it is broken |
11266 | case $host_os in |
11267 | interix3*) |
11268 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
11269 | # hack all around it, let's just trust "g++" to DTRT. |
11270 | predep_objects_CXX= |
11271 | postdep_objects_CXX= |
11272 | postdeps_CXX= |
11273 | ;; |
11274 | |
11275 | solaris*) |
11276 | case $cc_basename in |
11277 | CC*) |
11278 | # Adding this requires a known-good setup of shared libraries for |
11279 | # Sun compiler versions before 5.6, else PIC objects from an old |
11280 | # archive will be linked into the output, leading to subtle bugs. |
11281 | postdeps_CXX='-lCstd -lCrun' |
11282 | ;; |
11283 | esac |
11284 | ;; |
11285 | esac |
11286 | |
11287 | |
11288 | case " $postdeps_CXX " in |
11289 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
11290 | esac |
11291 | |
11292 | lt_prog_compiler_wl_CXX= |
11293 | lt_prog_compiler_pic_CXX= |
11294 | lt_prog_compiler_static_CXX= |
11295 | |
11296 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
11297 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
11298 | |
11299 | # C++ specific cases for pic, static, wl, etc. |
11300 | if test "$GXX" = yes; then |
11301 | lt_prog_compiler_wl_CXX='-Wl,' |
11302 | lt_prog_compiler_static_CXX='-static' |
11303 | |
11304 | case $host_os in |
11305 | aix*) |
11306 | # All AIX code is PIC. |
11307 | if test "$host_cpu" = ia64; then |
11308 | # AIX 5 now supports IA64 processor |
11309 | lt_prog_compiler_static_CXX='-Bstatic' |
11310 | fi |
11311 | ;; |
11312 | amigaos*) |
11313 | # FIXME: we need at least 68020 code to build shared libraries, but |
11314 | # adding the `-m68020' flag to GCC prevents building anything better, |
11315 | # like `-m68040'. |
11316 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
11317 | ;; |
11318 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
11319 | # PIC is the default for these OSes. |
11320 | ;; |
11321 | mingw* | os2* | pw32*) |
11322 | # This hack is so that the source file can tell whether it is being |
11323 | # built for inclusion in a dll (and should export symbols for example). |
11324 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
11325 | ;; |
11326 | darwin* | rhapsody*) |
11327 | # PIC is the default on this platform |
11328 | # Common symbols not allowed in MH_DYLIB files |
11329 | lt_prog_compiler_pic_CXX='-fno-common' |
11330 | ;; |
11331 | *djgpp*) |
11332 | # DJGPP does not support shared libraries at all |
11333 | lt_prog_compiler_pic_CXX= |
11334 | ;; |
11335 | interix3*) |
11336 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
11337 | # Instead, we relocate shared libraries at runtime. |
11338 | ;; |
11339 | sysv4*MP*) |
11340 | if test -d /usr/nec; then |
11341 | lt_prog_compiler_pic_CXX=-Kconform_pic |
11342 | fi |
11343 | ;; |
11344 | hpux*) |
11345 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
11346 | # not for PA HP-UX. |
11347 | case $host_cpu in |
11348 | hppa*64*|ia64*) |
11349 | ;; |
11350 | *) |
11351 | lt_prog_compiler_pic_CXX='-fPIC' |
11352 | ;; |
11353 | esac |
11354 | ;; |
11355 | *) |
11356 | lt_prog_compiler_pic_CXX='-fPIC' |
11357 | ;; |
11358 | esac |
11359 | else |
11360 | case $host_os in |
11361 | aix4* | aix5*) |
11362 | # All AIX code is PIC. |
11363 | if test "$host_cpu" = ia64; then |
11364 | # AIX 5 now supports IA64 processor |
11365 | lt_prog_compiler_static_CXX='-Bstatic' |
11366 | else |
11367 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
11368 | fi |
11369 | ;; |
11370 | chorus*) |
11371 | case $cc_basename in |
11372 | cxch68*) |
11373 | # Green Hills C++ Compiler |
11374 | # _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" |
11375 | ;; |
11376 | esac |
11377 | ;; |
11378 | darwin*) |
11379 | # PIC is the default on this platform |
11380 | # Common symbols not allowed in MH_DYLIB files |
11381 | case $cc_basename in |
11382 | xlc*) |
11383 | lt_prog_compiler_pic_CXX='-qnocommon' |
11384 | lt_prog_compiler_wl_CXX='-Wl,' |
11385 | ;; |
11386 | esac |
11387 | ;; |
11388 | dgux*) |
11389 | case $cc_basename in |
11390 | ec++*) |
11391 | lt_prog_compiler_pic_CXX='-KPIC' |
11392 | ;; |
11393 | ghcx*) |
11394 | # Green Hills C++ Compiler |
11395 | lt_prog_compiler_pic_CXX='-pic' |
11396 | ;; |
11397 | *) |
11398 | ;; |
11399 | esac |
11400 | ;; |
11401 | freebsd* | kfreebsd*-gnu | dragonfly*) |
11402 | # FreeBSD uses GNU C++ |
11403 | ;; |
11404 | hpux9* | hpux10* | hpux11*) |
11405 | case $cc_basename in |
11406 | CC*) |
11407 | lt_prog_compiler_wl_CXX='-Wl,' |
11408 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
11409 | if test "$host_cpu" != ia64; then |
11410 | lt_prog_compiler_pic_CXX='+Z' |
11411 | fi |
11412 | ;; |
11413 | aCC*) |
11414 | lt_prog_compiler_wl_CXX='-Wl,' |
11415 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
11416 | case $host_cpu in |
11417 | hppa*64*|ia64*) |
11418 | # +Z the default |
11419 | ;; |
11420 | *) |
11421 | lt_prog_compiler_pic_CXX='+Z' |
11422 | ;; |
11423 | esac |
11424 | ;; |
11425 | *) |
11426 | ;; |
11427 | esac |
11428 | ;; |
11429 | interix*) |
11430 | # This is c89, which is MS Visual C++ (no shared libs) |
11431 | # Anyone wants to do a port? |
11432 | ;; |
11433 | irix5* | irix6* | nonstopux*) |
11434 | case $cc_basename in |
11435 | CC*) |
11436 | lt_prog_compiler_wl_CXX='-Wl,' |
11437 | lt_prog_compiler_static_CXX='-non_shared' |
11438 | # CC pic flag -KPIC is the default. |
11439 | ;; |
11440 | *) |
11441 | ;; |
11442 | esac |
11443 | ;; |
11444 | linux*) |
11445 | case $cc_basename in |
11446 | KCC*) |
11447 | # KAI C++ Compiler |
11448 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
11449 | lt_prog_compiler_pic_CXX='-fPIC' |
11450 | ;; |
11451 | icpc* | ecpc*) |
11452 | # Intel C++ |
11453 | lt_prog_compiler_wl_CXX='-Wl,' |
11454 | lt_prog_compiler_pic_CXX='-KPIC' |
11455 | lt_prog_compiler_static_CXX='-static' |
11456 | ;; |
11457 | pgCC*) |
11458 | # Portland Group C++ compiler. |
11459 | lt_prog_compiler_wl_CXX='-Wl,' |
11460 | lt_prog_compiler_pic_CXX='-fpic' |
11461 | lt_prog_compiler_static_CXX='-Bstatic' |
11462 | ;; |
11463 | cxx*) |
11464 | # Compaq C++ |
11465 | # Make sure the PIC flag is empty. It appears that all Alpha |
11466 | # Linux and Compaq Tru64 Unix objects are PIC. |
11467 | lt_prog_compiler_pic_CXX= |
11468 | lt_prog_compiler_static_CXX='-non_shared' |
11469 | ;; |
11470 | *) |
11471 | ;; |
11472 | esac |
11473 | ;; |
11474 | lynxos*) |
11475 | ;; |
11476 | m88k*) |
11477 | ;; |
11478 | mvs*) |
11479 | case $cc_basename in |
11480 | cxx*) |
11481 | lt_prog_compiler_pic_CXX='-W c,exportall' |
11482 | ;; |
11483 | *) |
11484 | ;; |
11485 | esac |
11486 | ;; |
11487 | netbsd*) |
11488 | ;; |
11489 | osf3* | osf4* | osf5*) |
11490 | case $cc_basename in |
11491 | KCC*) |
11492 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
11493 | ;; |
11494 | RCC*) |
11495 | # Rational C++ 2.4.1 |
11496 | lt_prog_compiler_pic_CXX='-pic' |
11497 | ;; |
11498 | cxx*) |
11499 | # Digital/Compaq C++ |
11500 | lt_prog_compiler_wl_CXX='-Wl,' |
11501 | # Make sure the PIC flag is empty. It appears that all Alpha |
11502 | # Linux and Compaq Tru64 Unix objects are PIC. |
11503 | lt_prog_compiler_pic_CXX= |
11504 | lt_prog_compiler_static_CXX='-non_shared' |
11505 | ;; |
11506 | *) |
11507 | ;; |
11508 | esac |
11509 | ;; |
11510 | psos*) |
11511 | ;; |
11512 | solaris*) |
11513 | case $cc_basename in |
11514 | CC*) |
11515 | # Sun C++ 4.2, 5.x and Centerline C++ |
11516 | lt_prog_compiler_pic_CXX='-KPIC' |
11517 | lt_prog_compiler_static_CXX='-Bstatic' |
11518 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
11519 | ;; |
11520 | gcx*) |
11521 | # Green Hills C++ Compiler |
11522 | lt_prog_compiler_pic_CXX='-PIC' |
11523 | ;; |
11524 | *) |
11525 | ;; |
11526 | esac |
11527 | ;; |
11528 | sunos4*) |
11529 | case $cc_basename in |
11530 | CC*) |
11531 | # Sun C++ 4.x |
11532 | lt_prog_compiler_pic_CXX='-pic' |
11533 | lt_prog_compiler_static_CXX='-Bstatic' |
11534 | ;; |
11535 | lcc*) |
11536 | # Lucid |
11537 | lt_prog_compiler_pic_CXX='-pic' |
11538 | ;; |
11539 | *) |
11540 | ;; |
11541 | esac |
11542 | ;; |
11543 | tandem*) |
11544 | case $cc_basename in |
11545 | NCC*) |
11546 | # NonStop-UX NCC 3.20 |
11547 | lt_prog_compiler_pic_CXX='-KPIC' |
11548 | ;; |
11549 | *) |
11550 | ;; |
11551 | esac |
11552 | ;; |
11553 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
11554 | case $cc_basename in |
11555 | CC*) |
11556 | lt_prog_compiler_wl_CXX='-Wl,' |
11557 | lt_prog_compiler_pic_CXX='-KPIC' |
11558 | lt_prog_compiler_static_CXX='-Bstatic' |
11559 | ;; |
11560 | esac |
11561 | ;; |
11562 | vxworks*) |
11563 | ;; |
11564 | *) |
11565 | lt_prog_compiler_can_build_shared_CXX=no |
11566 | ;; |
11567 | esac |
11568 | fi |
11569 | |
11570 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
11571 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
11572 | |
11573 | # |
11574 | # Check to make sure the PIC flag actually works. |
11575 | # |
11576 | if test -n "$lt_prog_compiler_pic_CXX"; then |
11577 | |
11578 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
11579 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
11580 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
11581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11582 | else |
11583 | lt_prog_compiler_pic_works_CXX=no |
11584 | ac_outfile=conftest.$ac_objext |
11585 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
11586 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
11587 | # Insert the option either (1) after the last *FLAGS variable, or |
11588 | # (2) before a word containing "conftest.", or (3) at the end. |
11589 | # Note that $ac_compile itself does not contain backslashes and begins |
11590 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
11591 | # The option is referenced via a variable to avoid confusing sed. |
11592 | lt_compile=`echo "$ac_compile" | $SED \ |
11593 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
11594 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
11595 | -e 's:$: $lt_compiler_flag:'` |
11596 | (eval echo "\"\$as_me:11596: $lt_compile\"" >&5) |
11597 | (eval "$lt_compile" 2>conftest.err) |
11598 | ac_status=$? |
11599 | cat conftest.err >&5 |
11600 | echo "$as_me:11600: \$? = $ac_status" >&5 |
11601 | if (exit $ac_status) && test -s "$ac_outfile"; then |
11602 | # The compiler can only warn and ignore the option if not recognized |
11603 | # So say no if there are warnings other than the usual output. |
11604 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
11605 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
11606 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
11607 | lt_prog_compiler_pic_works_CXX=yes |
11608 | fi |
11609 | fi |
11610 | $rm conftest* |
11611 | |
11612 | fi |
11613 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
11614 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
11615 | |
11616 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
11617 | case $lt_prog_compiler_pic_CXX in |
11618 | "" | " "*) ;; |
11619 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
11620 | esac |
11621 | else |
11622 | lt_prog_compiler_pic_CXX= |
11623 | lt_prog_compiler_can_build_shared_CXX=no |
11624 | fi |
11625 | |
11626 | fi |
11627 | case $host_os in |
11628 | # For platforms which do not support PIC, -DPIC is meaningless: |
11629 | *djgpp*) |
11630 | lt_prog_compiler_pic_CXX= |
11631 | ;; |
11632 | *) |
11633 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
11634 | ;; |
11635 | esac |
11636 | |
11637 | # |
11638 | # Check to make sure the static flag actually works. |
11639 | # |
11640 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
11641 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
11642 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
11643 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
11644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11645 | else |
11646 | lt_prog_compiler_static_works_CXX=no |
11647 | save_LDFLAGS="$LDFLAGS" |
11648 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
11649 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
11650 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
11651 | # The linker can only warn and ignore the option if not recognized |
11652 | # So say no if there are warnings |
11653 | if test -s conftest.err; then |
11654 | # Append any errors to the config.log. |
11655 | cat conftest.err 1>&5 |
11656 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
11657 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
11658 | if diff conftest.exp conftest.er2 >/dev/null; then |
11659 | lt_prog_compiler_static_works_CXX=yes |
11660 | fi |
11661 | else |
11662 | lt_prog_compiler_static_works_CXX=yes |
11663 | fi |
11664 | fi |
11665 | $rm conftest* |
11666 | LDFLAGS="$save_LDFLAGS" |
11667 | |
11668 | fi |
11669 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
11670 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 |
11671 | |
11672 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
11673 | : |
11674 | else |
11675 | lt_prog_compiler_static_CXX= |
11676 | fi |
11677 | |
11678 | |
11679 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
11680 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
11681 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
11682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11683 | else |
11684 | lt_cv_prog_compiler_c_o_CXX=no |
11685 | $rm -r conftest 2>/dev/null |
11686 | mkdir conftest |
11687 | cd conftest |
11688 | mkdir out |
11689 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
11690 | |
11691 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
11692 | # Insert the option either (1) after the last *FLAGS variable, or |
11693 | # (2) before a word containing "conftest.", or (3) at the end. |
11694 | # Note that $ac_compile itself does not contain backslashes and begins |
11695 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
11696 | lt_compile=`echo "$ac_compile" | $SED \ |
11697 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
11698 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
11699 | -e 's:$: $lt_compiler_flag:'` |
11700 | (eval echo "\"\$as_me:11700: $lt_compile\"" >&5) |
11701 | (eval "$lt_compile" 2>out/conftest.err) |
11702 | ac_status=$? |
11703 | cat out/conftest.err >&5 |
11704 | echo "$as_me:11704: \$? = $ac_status" >&5 |
11705 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
11706 | then |
11707 | # The compiler can only warn and ignore the option if not recognized |
11708 | # So say no if there are warnings |
11709 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
11710 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
11711 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
11712 | lt_cv_prog_compiler_c_o_CXX=yes |
11713 | fi |
11714 | fi |
11715 | chmod u+w . 2>&5 |
11716 | $rm conftest* |
11717 | # SGI C++ compiler will create directory out/ii_files/ for |
11718 | # template instantiation |
11719 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
11720 | $rm out/* && rmdir out |
11721 | cd .. |
11722 | rmdir conftest |
11723 | $rm conftest* |
11724 | |
11725 | fi |
11726 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
11727 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
11728 | |
11729 | |
11730 | hard_links="nottested" |
11731 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
11732 | # do not overwrite the value of need_locks provided by the user |
11733 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
11734 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
11735 | hard_links=yes |
11736 | $rm conftest* |
11737 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
11738 | touch conftest.a |
11739 | ln conftest.a conftest.b 2>&5 || hard_links=no |
11740 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
11741 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
11742 | echo "${ECHO_T}$hard_links" >&6 |
11743 | if test "$hard_links" = no; then |
11744 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
11745 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
11746 | need_locks=warn |
11747 | fi |
11748 | else |
11749 | need_locks=no |
11750 | fi |
11751 | |
11752 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
11753 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
11754 | |
11755 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
11756 | case $host_os in |
11757 | aix4* | aix5*) |
11758 | # If we're using GNU nm, then we don't want the "-C" option. |
11759 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
11760 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
11761 | 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' |
11762 | else |
11763 | 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' |
11764 | fi |
11765 | ;; |
11766 | pw32*) |
11767 | export_symbols_cmds_CXX="$ltdll_cmds" |
11768 | ;; |
11769 | cygwin* | mingw*) |
11770 | 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' |
11771 | ;; |
11772 | *) |
11773 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
11774 | ;; |
11775 | esac |
11776 | |
11777 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
11778 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
11779 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
11780 | |
11781 | # |
11782 | # Do we need to explicitly link libc? |
11783 | # |
11784 | case "x$archive_cmds_need_lc_CXX" in |
11785 | x|xyes) |
11786 | # Assume -lc should be added |
11787 | archive_cmds_need_lc_CXX=yes |
11788 | |
11789 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
11790 | case $archive_cmds_CXX in |
11791 | *'~'*) |
11792 | # FIXME: we may have to deal with multi-command sequences. |
11793 | ;; |
11794 | '$CC '*) |
11795 | # Test whether the compiler implicitly links with -lc since on some |
11796 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
11797 | # to ld, don't add -lc before -lgcc. |
11798 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
11799 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
11800 | $rm conftest* |
11801 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
11802 | |
11803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11804 | (eval $ac_compile) 2>&5 |
11805 | ac_status=$? |
11806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11807 | (exit $ac_status); } 2>conftest.err; then |
11808 | soname=conftest |
11809 | lib=conftest |
11810 | libobjs=conftest.$ac_objext |
11811 | deplibs= |
11812 | wl=$lt_prog_compiler_wl_CXX |
11813 | pic_flag=$lt_prog_compiler_pic_CXX |
11814 | compiler_flags=-v |
11815 | linker_flags=-v |
11816 | verstring= |
11817 | output_objdir=. |
11818 | libname=conftest |
11819 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
11820 | allow_undefined_flag_CXX= |
11821 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
11822 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
11823 | ac_status=$? |
11824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11825 | (exit $ac_status); } |
11826 | then |
11827 | archive_cmds_need_lc_CXX=no |
11828 | else |
11829 | archive_cmds_need_lc_CXX=yes |
11830 | fi |
11831 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
11832 | else |
11833 | cat conftest.err 1>&5 |
11834 | fi |
11835 | $rm conftest* |
11836 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
11837 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
11838 | ;; |
11839 | esac |
11840 | fi |
11841 | ;; |
11842 | esac |
11843 | |
11844 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
11845 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
11846 | library_names_spec= |
11847 | libname_spec='lib$name' |
11848 | soname_spec= |
11849 | shrext_cmds=".so" |
11850 | postinstall_cmds= |
11851 | postuninstall_cmds= |
11852 | finish_cmds= |
11853 | finish_eval= |
11854 | shlibpath_var= |
11855 | shlibpath_overrides_runpath=unknown |
11856 | version_type=none |
11857 | dynamic_linker="$host_os ld.so" |
11858 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
11859 | if test "$GCC" = yes; then |
11860 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
11861 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
11862 | # if the path contains ";" then we assume it to be the separator |
11863 | # otherwise default to the standard path separator (i.e. ":") - it is |
11864 | # assumed that no part of a normal pathname contains ";" but that should |
11865 | # okay in the real world where ";" in dirpaths is itself problematic. |
11866 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
11867 | else |
11868 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
11869 | fi |
11870 | else |
11871 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
11872 | fi |
11873 | need_lib_prefix=unknown |
11874 | hardcode_into_libs=no |
11875 | |
11876 | # when you set need_version to no, make sure it does not cause -set_version |
11877 | # flags to be left without arguments |
11878 | need_version=unknown |
11879 | |
11880 | case $host_os in |
11881 | aix3*) |
11882 | version_type=linux |
11883 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
11884 | shlibpath_var=LIBPATH |
11885 | |
11886 | # AIX 3 has no versioning support, so we append a major version to the name. |
11887 | soname_spec='${libname}${release}${shared_ext}$major' |
11888 | ;; |
11889 | |
11890 | aix4* | aix5*) |
11891 | version_type=linux |
11892 | need_lib_prefix=no |
11893 | need_version=no |
11894 | hardcode_into_libs=yes |
11895 | if test "$host_cpu" = ia64; then |
11896 | # AIX 5 supports IA64 |
11897 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
11898 | shlibpath_var=LD_LIBRARY_PATH |
11899 | else |
11900 | # With GCC up to 2.95.x, collect2 would create an import file |
11901 | # for dependence libraries. The import file would start with |
11902 | # the line `#! .'. This would cause the generated library to |
11903 | # depend on `.', always an invalid library. This was fixed in |
11904 | # development snapshots of GCC prior to 3.0. |
11905 | case $host_os in |
11906 | aix4 | aix4.[01] | aix4.[01].*) |
11907 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
11908 | echo ' yes ' |
11909 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
11910 | : |
11911 | else |
11912 | can_build_shared=no |
11913 | fi |
11914 | ;; |
11915 | esac |
11916 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
11917 | # soname into executable. Probably we can add versioning support to |
11918 | # collect2, so additional links can be useful in future. |
11919 | if test "$aix_use_runtimelinking" = yes; then |
11920 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
11921 | # instead of lib<name>.a to let people know that these are not |
11922 | # typical AIX shared libraries. |
11923 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11924 | else |
11925 | # We preserve .a as extension for shared libraries through AIX4.2 |
11926 | # and later when we are not doing run time linking. |
11927 | library_names_spec='${libname}${release}.a $libname.a' |
11928 | soname_spec='${libname}${release}${shared_ext}$major' |
11929 | fi |
11930 | shlibpath_var=LIBPATH |
11931 | fi |
11932 | ;; |
11933 | |
11934 | amigaos*) |
11935 | library_names_spec='$libname.ixlibrary $libname.a' |
11936 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
11937 | 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' |
11938 | ;; |
11939 | |
11940 | beos*) |
11941 | library_names_spec='${libname}${shared_ext}' |
11942 | dynamic_linker="$host_os ld.so" |
11943 | shlibpath_var=LIBRARY_PATH |
11944 | ;; |
11945 | |
11946 | bsdi[45]*) |
11947 | version_type=linux |
11948 | need_version=no |
11949 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11950 | soname_spec='${libname}${release}${shared_ext}$major' |
11951 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
11952 | shlibpath_var=LD_LIBRARY_PATH |
11953 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
11954 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
11955 | # the default ld.so.conf also contains /usr/contrib/lib and |
11956 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
11957 | # libtool to hard-code these into programs |
11958 | ;; |
11959 | |
11960 | cygwin* | mingw* | pw32*) |
11961 | version_type=windows |
11962 | shrext_cmds=".dll" |
11963 | need_version=no |
11964 | need_lib_prefix=no |
11965 | |
11966 | case $GCC,$host_os in |
11967 | yes,cygwin* | yes,mingw* | yes,pw32*) |
11968 | library_names_spec='$libname.dll.a' |
11969 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
11970 | postinstall_cmds='base_file=`basename \${file}`~ |
11971 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
11972 | dldir=$destdir/`dirname \$dlpath`~ |
11973 | test -d \$dldir || mkdir -p \$dldir~ |
11974 | $install_prog $dir/$dlname \$dldir/$dlname~ |
11975 | chmod a+x \$dldir/$dlname' |
11976 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
11977 | dlpath=$dir/\$dldll~ |
11978 | $rm \$dlpath' |
11979 | shlibpath_overrides_runpath=yes |
11980 | |
11981 | case $host_os in |
11982 | cygwin*) |
11983 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
11984 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
11985 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
11986 | ;; |
11987 | mingw*) |
11988 | # MinGW DLLs use traditional 'lib' prefix |
11989 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
11990 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
11991 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
11992 | # It is most probably a Windows format PATH printed by |
11993 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
11994 | # path with ; separators, and with drive letters. We can handle the |
11995 | # drive letters (cygwin fileutils understands them), so leave them, |
11996 | # especially as we might pass files found there to a mingw objdump, |
11997 | # which wouldn't understand a cygwinified path. Ahh. |
11998 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
11999 | else |
12000 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12001 | fi |
12002 | ;; |
12003 | pw32*) |
12004 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
12005 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12006 | ;; |
12007 | esac |
12008 | ;; |
12009 | |
12010 | *) |
12011 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
12012 | ;; |
12013 | esac |
12014 | dynamic_linker='Win32 ld.exe' |
12015 | # FIXME: first we should search . and the directory the executable is in |
12016 | shlibpath_var=PATH |
12017 | ;; |
12018 | |
12019 | darwin* | rhapsody*) |
12020 | dynamic_linker="$host_os dyld" |
12021 | version_type=darwin |
12022 | need_lib_prefix=no |
12023 | need_version=no |
12024 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
12025 | soname_spec='${libname}${release}${major}$shared_ext' |
12026 | shlibpath_overrides_runpath=yes |
12027 | shlibpath_var=DYLD_LIBRARY_PATH |
12028 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
12029 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
12030 | if test "$GCC" = yes; then |
12031 | 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"` |
12032 | else |
12033 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
12034 | fi |
12035 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
12036 | ;; |
12037 | |
12038 | dgux*) |
12039 | version_type=linux |
12040 | need_lib_prefix=no |
12041 | need_version=no |
12042 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
12043 | soname_spec='${libname}${release}${shared_ext}$major' |
12044 | shlibpath_var=LD_LIBRARY_PATH |
12045 | ;; |
12046 | |
12047 | freebsd1*) |
12048 | dynamic_linker=no |
12049 | ;; |
12050 | |
12051 | kfreebsd*-gnu) |
12052 | version_type=linux |
12053 | need_lib_prefix=no |
12054 | need_version=no |
12055 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12056 | soname_spec='${libname}${release}${shared_ext}$major' |
12057 | shlibpath_var=LD_LIBRARY_PATH |
12058 | shlibpath_overrides_runpath=no |
12059 | hardcode_into_libs=yes |
12060 | dynamic_linker='GNU ld.so' |
12061 | ;; |
12062 | |
12063 | freebsd* | dragonfly*) |
12064 | # DragonFly does not have aout. When/if they implement a new |
12065 | # versioning mechanism, adjust this. |
12066 | if test -x /usr/bin/objformat; then |
12067 | objformat=`/usr/bin/objformat` |
12068 | else |
12069 | case $host_os in |
12070 | freebsd[123]*) objformat=aout ;; |
12071 | *) objformat=elf ;; |
12072 | esac |
12073 | fi |
12074 | version_type=freebsd-$objformat |
12075 | case $version_type in |
12076 | freebsd-elf*) |
12077 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
12078 | need_version=no |
12079 | need_lib_prefix=no |
12080 | ;; |
12081 | freebsd-*) |
12082 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
12083 | need_version=yes |
12084 | ;; |
12085 | esac |
12086 | shlibpath_var=LD_LIBRARY_PATH |
12087 | case $host_os in |
12088 | freebsd2*) |
12089 | shlibpath_overrides_runpath=yes |
12090 | ;; |
12091 | freebsd3.[01]* | freebsdelf3.[01]*) |
12092 | shlibpath_overrides_runpath=yes |
12093 | hardcode_into_libs=yes |
12094 | ;; |
12095 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
12096 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
12097 | shlibpath_overrides_runpath=no |
12098 | hardcode_into_libs=yes |
12099 | ;; |
12100 | freebsd*) # from 4.6 on |
12101 | shlibpath_overrides_runpath=yes |
12102 | hardcode_into_libs=yes |
12103 | ;; |
12104 | esac |
12105 | ;; |
12106 | |
12107 | gnu*) |
12108 | version_type=linux |
12109 | need_lib_prefix=no |
12110 | need_version=no |
12111 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
12112 | soname_spec='${libname}${release}${shared_ext}$major' |
12113 | shlibpath_var=LD_LIBRARY_PATH |
12114 | hardcode_into_libs=yes |
12115 | ;; |
12116 | |
12117 | hpux9* | hpux10* | hpux11*) |
12118 | # Give a soname corresponding to the major version so that dld.sl refuses to |
12119 | # link against other versions. |
12120 | version_type=sunos |
12121 | need_lib_prefix=no |
12122 | need_version=no |
12123 | case $host_cpu in |
12124 | ia64*) |
12125 | shrext_cmds='.so' |
12126 | hardcode_into_libs=yes |
12127 | dynamic_linker="$host_os dld.so" |
12128 | shlibpath_var=LD_LIBRARY_PATH |
12129 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12130 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12131 | soname_spec='${libname}${release}${shared_ext}$major' |
12132 | if test "X$HPUX_IA64_MODE" = X32; then |
12133 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
12134 | else |
12135 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
12136 | fi |
12137 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12138 | ;; |
12139 | hppa*64*) |
12140 | shrext_cmds='.sl' |
12141 | hardcode_into_libs=yes |
12142 | dynamic_linker="$host_os dld.sl" |
12143 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
12144 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12145 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12146 | soname_spec='${libname}${release}${shared_ext}$major' |
12147 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
12148 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12149 | ;; |
12150 | *) |
12151 | shrext_cmds='.sl' |
12152 | dynamic_linker="$host_os dld.sl" |
12153 | shlibpath_var=SHLIB_PATH |
12154 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
12155 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12156 | soname_spec='${libname}${release}${shared_ext}$major' |
12157 | ;; |
12158 | esac |
12159 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
12160 | postinstall_cmds='chmod 555 $lib' |
12161 | ;; |
12162 | |
12163 | interix3*) |
12164 | version_type=linux |
12165 | need_lib_prefix=no |
12166 | need_version=no |
12167 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12168 | soname_spec='${libname}${release}${shared_ext}$major' |
12169 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
12170 | shlibpath_var=LD_LIBRARY_PATH |
12171 | shlibpath_overrides_runpath=no |
12172 | hardcode_into_libs=yes |
12173 | ;; |
12174 | |
12175 | irix5* | irix6* | nonstopux*) |
12176 | case $host_os in |
12177 | nonstopux*) version_type=nonstopux ;; |
12178 | *) |
12179 | if test "$lt_cv_prog_gnu_ld" = yes; then |
12180 | version_type=linux |
12181 | else |
12182 | version_type=irix |
12183 | fi ;; |
12184 | esac |
12185 | need_lib_prefix=no |
12186 | need_version=no |
12187 | soname_spec='${libname}${release}${shared_ext}$major' |
12188 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
12189 | case $host_os in |
12190 | irix5* | nonstopux*) |
12191 | libsuff= shlibsuff= |
12192 | ;; |
12193 | *) |
12194 | case $LD in # libtool.m4 will add one of these switches to LD |
12195 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
12196 | libsuff= shlibsuff= libmagic=32-bit;; |
12197 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
12198 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
12199 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
12200 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
12201 | *) libsuff= shlibsuff= libmagic=never-match;; |
12202 | esac |
12203 | ;; |
12204 | esac |
12205 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
12206 | shlibpath_overrides_runpath=no |
12207 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
12208 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
12209 | hardcode_into_libs=yes |
12210 | ;; |
12211 | |
12212 | # No shared lib support for Linux oldld, aout, or coff. |
12213 | linux*oldld* | linux*aout* | linux*coff*) |
12214 | dynamic_linker=no |
12215 | ;; |
12216 | |
12217 | # This must be Linux ELF. |
12218 | linux*) |
12219 | version_type=linux |
12220 | need_lib_prefix=no |
12221 | need_version=no |
12222 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12223 | soname_spec='${libname}${release}${shared_ext}$major' |
12224 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
12225 | shlibpath_var=LD_LIBRARY_PATH |
12226 | shlibpath_overrides_runpath=no |
12227 | # This implies no fast_install, which is unacceptable. |
12228 | # Some rework will be needed to allow for fast_install |
12229 | # before this can be enabled. |
12230 | hardcode_into_libs=yes |
12231 | |
12232 | # find out which ABI we are using |
12233 | libsuff= |
12234 | case "$host_cpu" in |
12235 | x86_64*|s390x*|powerpc64*) |
12236 | echo '#line 12236 "configure"' > conftest.$ac_ext |
12237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12238 | (eval $ac_compile) 2>&5 |
12239 | ac_status=$? |
12240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12241 | (exit $ac_status); }; then |
12242 | case `/usr/bin/file conftest.$ac_objext` in |
12243 | *64-bit*) |
12244 | libsuff=64 |
12245 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
12246 | ;; |
12247 | esac |
12248 | fi |
12249 | rm -rf conftest* |
12250 | ;; |
12251 | esac |
12252 | |
12253 | # Append ld.so.conf contents to the search path |
12254 | if test -f /etc/ld.so.conf; then |
12255 | 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' ' '` |
12256 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
12257 | fi |
12258 | |
12259 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
12260 | # powerpc, because MkLinux only supported shared libraries with the |
12261 | # GNU dynamic linker. Since this was broken with cross compilers, |
12262 | # most powerpc-linux boxes support dynamic linking these days and |
12263 | # people can always --disable-shared, the test was removed, and we |
12264 | # assume the GNU/Linux dynamic linker is in use. |
12265 | dynamic_linker='GNU/Linux ld.so' |
12266 | ;; |
12267 | |
12268 | knetbsd*-gnu) |
12269 | version_type=linux |
12270 | need_lib_prefix=no |
12271 | need_version=no |
12272 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12273 | soname_spec='${libname}${release}${shared_ext}$major' |
12274 | shlibpath_var=LD_LIBRARY_PATH |
12275 | shlibpath_overrides_runpath=no |
12276 | hardcode_into_libs=yes |
12277 | dynamic_linker='GNU ld.so' |
12278 | ;; |
12279 | |
12280 | netbsd*) |
12281 | version_type=sunos |
12282 | need_lib_prefix=no |
12283 | need_version=no |
12284 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
12285 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12286 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
12287 | dynamic_linker='NetBSD (a.out) ld.so' |
12288 | else |
12289 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12290 | soname_spec='${libname}${release}${shared_ext}$major' |
12291 | dynamic_linker='NetBSD ld.elf_so' |
12292 | fi |
12293 | shlibpath_var=LD_LIBRARY_PATH |
12294 | shlibpath_overrides_runpath=yes |
12295 | hardcode_into_libs=yes |
12296 | ;; |
12297 | |
12298 | newsos6) |
12299 | version_type=linux |
12300 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12301 | shlibpath_var=LD_LIBRARY_PATH |
12302 | shlibpath_overrides_runpath=yes |
12303 | ;; |
12304 | |
12305 | nto-qnx*) |
12306 | version_type=linux |
12307 | need_lib_prefix=no |
12308 | need_version=no |
12309 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12310 | soname_spec='${libname}${release}${shared_ext}$major' |
12311 | shlibpath_var=LD_LIBRARY_PATH |
12312 | shlibpath_overrides_runpath=yes |
12313 | ;; |
12314 | |
12315 | openbsd*) |
12316 | version_type=sunos |
12317 | sys_lib_dlsearch_path_spec="/usr/lib" |
12318 | need_lib_prefix=no |
12319 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
12320 | case $host_os in |
12321 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
12322 | *) need_version=no ;; |
12323 | esac |
12324 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12325 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
12326 | shlibpath_var=LD_LIBRARY_PATH |
12327 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
12328 | case $host_os in |
12329 | openbsd2.[89] | openbsd2.[89].*) |
12330 | shlibpath_overrides_runpath=no |
12331 | ;; |
12332 | *) |
12333 | shlibpath_overrides_runpath=yes |
12334 | ;; |
12335 | esac |
12336 | else |
12337 | shlibpath_overrides_runpath=yes |
12338 | fi |
12339 | ;; |
12340 | |
12341 | os2*) |
12342 | libname_spec='$name' |
12343 | shrext_cmds=".dll" |
12344 | need_lib_prefix=no |
12345 | library_names_spec='$libname${shared_ext} $libname.a' |
12346 | dynamic_linker='OS/2 ld.exe' |
12347 | shlibpath_var=LIBPATH |
12348 | ;; |
12349 | |
12350 | osf3* | osf4* | osf5*) |
12351 | version_type=osf |
12352 | need_lib_prefix=no |
12353 | need_version=no |
12354 | soname_spec='${libname}${release}${shared_ext}$major' |
12355 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12356 | shlibpath_var=LD_LIBRARY_PATH |
12357 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
12358 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
12359 | ;; |
12360 | |
12361 | solaris*) |
12362 | version_type=linux |
12363 | need_lib_prefix=no |
12364 | need_version=no |
12365 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12366 | soname_spec='${libname}${release}${shared_ext}$major' |
12367 | shlibpath_var=LD_LIBRARY_PATH |
12368 | shlibpath_overrides_runpath=yes |
12369 | hardcode_into_libs=yes |
12370 | # ldd complains unless libraries are executable |
12371 | postinstall_cmds='chmod +x $lib' |
12372 | ;; |
12373 | |
12374 | sunos4*) |
12375 | version_type=sunos |
12376 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12377 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
12378 | shlibpath_var=LD_LIBRARY_PATH |
12379 | shlibpath_overrides_runpath=yes |
12380 | if test "$with_gnu_ld" = yes; then |
12381 | need_lib_prefix=no |
12382 | fi |
12383 | need_version=yes |
12384 | ;; |
12385 | |
12386 | sysv4 | sysv4.3*) |
12387 | version_type=linux |
12388 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12389 | soname_spec='${libname}${release}${shared_ext}$major' |
12390 | shlibpath_var=LD_LIBRARY_PATH |
12391 | case $host_vendor in |
12392 | sni) |
12393 | shlibpath_overrides_runpath=no |
12394 | need_lib_prefix=no |
12395 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
12396 | runpath_var=LD_RUN_PATH |
12397 | ;; |
12398 | siemens) |
12399 | need_lib_prefix=no |
12400 | ;; |
12401 | motorola) |
12402 | need_lib_prefix=no |
12403 | need_version=no |
12404 | shlibpath_overrides_runpath=no |
12405 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
12406 | ;; |
12407 | esac |
12408 | ;; |
12409 | |
12410 | sysv4*MP*) |
12411 | if test -d /usr/nec ;then |
12412 | version_type=linux |
12413 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
12414 | soname_spec='$libname${shared_ext}.$major' |
12415 | shlibpath_var=LD_LIBRARY_PATH |
12416 | fi |
12417 | ;; |
12418 | |
12419 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
12420 | version_type=freebsd-elf |
12421 | need_lib_prefix=no |
12422 | need_version=no |
12423 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
12424 | soname_spec='${libname}${release}${shared_ext}$major' |
12425 | shlibpath_var=LD_LIBRARY_PATH |
12426 | hardcode_into_libs=yes |
12427 | if test "$with_gnu_ld" = yes; then |
12428 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
12429 | shlibpath_overrides_runpath=no |
12430 | else |
12431 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
12432 | shlibpath_overrides_runpath=yes |
12433 | case $host_os in |
12434 | sco3.2v5*) |
12435 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
12436 | ;; |
12437 | esac |
12438 | fi |
12439 | sys_lib_dlsearch_path_spec='/usr/lib' |
12440 | ;; |
12441 | |
12442 | uts4*) |
12443 | version_type=linux |
12444 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12445 | soname_spec='${libname}${release}${shared_ext}$major' |
12446 | shlibpath_var=LD_LIBRARY_PATH |
12447 | ;; |
12448 | |
12449 | *) |
12450 | dynamic_linker=no |
12451 | ;; |
12452 | esac |
12453 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
12454 | echo "${ECHO_T}$dynamic_linker" >&6 |
12455 | test "$dynamic_linker" = no && can_build_shared=no |
12456 | |
12457 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
12458 | if test "$GCC" = yes; then |
12459 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
12460 | fi |
12461 | |
12462 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
12463 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
12464 | hardcode_action_CXX= |
12465 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
12466 | test -n "$runpath_var_CXX" || \ |
12467 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
12468 | |
12469 | # We can hardcode non-existant directories. |
12470 | if test "$hardcode_direct_CXX" != no && |
12471 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
12472 | # have to relink, otherwise we might link with an installed library |
12473 | # when we should be linking with a yet-to-be-installed one |
12474 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
12475 | test "$hardcode_minus_L_CXX" != no; then |
12476 | # Linking always hardcodes the temporary library directory. |
12477 | hardcode_action_CXX=relink |
12478 | else |
12479 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
12480 | hardcode_action_CXX=immediate |
12481 | fi |
12482 | else |
12483 | # We cannot hardcode anything, or else we can only hardcode existing |
12484 | # directories. |
12485 | hardcode_action_CXX=unsupported |
12486 | fi |
12487 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
12488 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
12489 | |
12490 | if test "$hardcode_action_CXX" = relink; then |
12491 | # Fast installation is not supported |
12492 | enable_fast_install=no |
12493 | elif test "$shlibpath_overrides_runpath" = yes || |
12494 | test "$enable_shared" = no; then |
12495 | # Fast installation is not necessary |
12496 | enable_fast_install=needless |
12497 | fi |
12498 | |
12499 | |
12500 | # The else clause should only fire when bootstrapping the |
12501 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
12502 | # with your package, and you will get complaints that there are |
12503 | # no rules to generate ltmain.sh. |
12504 | if test -f "$ltmain"; then |
12505 | # See if we are running on zsh, and set the options which allow our commands through |
12506 | # without removal of \ escapes. |
12507 | if test -n "${ZSH_VERSION+set}" ; then |
12508 | setopt NO_GLOB_SUBST |
12509 | fi |
12510 | # Now quote all the things that may contain metacharacters while being |
12511 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
12512 | # variables and quote the copies for generation of the libtool script. |
12513 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
12514 | SED SHELL STRIP \ |
12515 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
12516 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
12517 | deplibs_check_method reload_flag reload_cmds need_locks \ |
12518 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
12519 | lt_cv_sys_global_symbol_to_c_name_address \ |
12520 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
12521 | old_postinstall_cmds old_postuninstall_cmds \ |
12522 | compiler_CXX \ |
12523 | CC_CXX \ |
12524 | LD_CXX \ |
12525 | lt_prog_compiler_wl_CXX \ |
12526 | lt_prog_compiler_pic_CXX \ |
12527 | lt_prog_compiler_static_CXX \ |
12528 | lt_prog_compiler_no_builtin_flag_CXX \ |
12529 | export_dynamic_flag_spec_CXX \ |
12530 | thread_safe_flag_spec_CXX \ |
12531 | whole_archive_flag_spec_CXX \ |
12532 | enable_shared_with_static_runtimes_CXX \ |
12533 | old_archive_cmds_CXX \ |
12534 | old_archive_from_new_cmds_CXX \ |
12535 | predep_objects_CXX \ |
12536 | postdep_objects_CXX \ |
12537 | predeps_CXX \ |
12538 | postdeps_CXX \ |
12539 | compiler_lib_search_path_CXX \ |
12540 | archive_cmds_CXX \ |
12541 | archive_expsym_cmds_CXX \ |
12542 | postinstall_cmds_CXX \ |
12543 | postuninstall_cmds_CXX \ |
12544 | old_archive_from_expsyms_cmds_CXX \ |
12545 | allow_undefined_flag_CXX \ |
12546 | no_undefined_flag_CXX \ |
12547 | export_symbols_cmds_CXX \ |
12548 | hardcode_libdir_flag_spec_CXX \ |
12549 | hardcode_libdir_flag_spec_ld_CXX \ |
12550 | hardcode_libdir_separator_CXX \ |
12551 | hardcode_automatic_CXX \ |
12552 | module_cmds_CXX \ |
12553 | module_expsym_cmds_CXX \ |
12554 | lt_cv_prog_compiler_c_o_CXX \ |
12555 | exclude_expsyms_CXX \ |
12556 | include_expsyms_CXX; do |
12557 | |
12558 | case $var in |
12559 | old_archive_cmds_CXX | \ |
12560 | old_archive_from_new_cmds_CXX | \ |
12561 | archive_cmds_CXX | \ |
12562 | archive_expsym_cmds_CXX | \ |
12563 | module_cmds_CXX | \ |
12564 | module_expsym_cmds_CXX | \ |
12565 | old_archive_from_expsyms_cmds_CXX | \ |
12566 | export_symbols_cmds_CXX | \ |
12567 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
12568 | postinstall_cmds | postuninstall_cmds | \ |
12569 | old_postinstall_cmds | old_postuninstall_cmds | \ |
12570 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
12571 | # Double-quote double-evaled strings. |
12572 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
12573 | ;; |
12574 | *) |
12575 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
12576 | ;; |
12577 | esac |
12578 | done |
12579 | |
12580 | case $lt_echo in |
12581 | *'\$0 --fallback-echo"') |
12582 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
12583 | ;; |
12584 | esac |
12585 | |
12586 | cfgfile="$ofile" |
12587 | |
12588 | cat <<__EOF__ >> "$cfgfile" |
12589 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
12590 | |
12591 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
12592 | |
12593 | # Shell to use when invoking shell scripts. |
12594 | SHELL=$lt_SHELL |
12595 | |
12596 | # Whether or not to build shared libraries. |
12597 | build_libtool_libs=$enable_shared |
12598 | |
12599 | # Whether or not to build static libraries. |
12600 | build_old_libs=$enable_static |
12601 | |
12602 | # Whether or not to add -lc for building shared libraries. |
12603 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
12604 | |
12605 | # Whether or not to disallow shared libs when runtime libs are static |
12606 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
12607 | |
12608 | # Whether or not to optimize for fast installation. |
12609 | fast_install=$enable_fast_install |
12610 | |
12611 | # The host system. |
12612 | host_alias=$host_alias |
12613 | host=$host |
12614 | host_os=$host_os |
12615 | |
12616 | # The build system. |
12617 | build_alias=$build_alias |
12618 | build=$build |
12619 | build_os=$build_os |
12620 | |
12621 | # An echo program that does not interpret backslashes. |
12622 | echo=$lt_echo |
12623 | |
12624 | # The archiver. |
12625 | AR=$lt_AR |
12626 | AR_FLAGS=$lt_AR_FLAGS |
12627 | |
12628 | # A C compiler. |
12629 | LTCC=$lt_LTCC |
12630 | |
12631 | # LTCC compiler flags. |
12632 | LTCFLAGS=$lt_LTCFLAGS |
12633 | |
12634 | # A language-specific compiler. |
12635 | CC=$lt_compiler_CXX |
12636 | |
12637 | # Is the compiler the GNU C compiler? |
12638 | with_gcc=$GCC_CXX |
12639 | |
12640 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
12641 | gcc_ver=\`gcc -dumpversion\` |
12642 | |
12643 | # An ERE matcher. |
12644 | EGREP=$lt_EGREP |
12645 | |
12646 | # The linker used to build libraries. |
12647 | LD=$lt_LD_CXX |
12648 | |
12649 | # Whether we need hard or soft links. |
12650 | LN_S=$lt_LN_S |
12651 | |
12652 | # A BSD-compatible nm program. |
12653 | NM=$lt_NM |
12654 | |
12655 | # A symbol stripping program |
12656 | STRIP=$lt_STRIP |
12657 | |
12658 | # Used to examine libraries when file_magic_cmd begins "file" |
12659 | MAGIC_CMD=$MAGIC_CMD |
12660 | |
12661 | # Used on cygwin: DLL creation program. |
12662 | DLLTOOL="$DLLTOOL" |
12663 | |
12664 | # Used on cygwin: object dumper. |
12665 | OBJDUMP="$OBJDUMP" |
12666 | |
12667 | # Used on cygwin: assembler. |
12668 | AS="$AS" |
12669 | |
12670 | # The name of the directory that contains temporary libtool files. |
12671 | objdir=$objdir |
12672 | |
12673 | # How to create reloadable object files. |
12674 | reload_flag=$lt_reload_flag |
12675 | reload_cmds=$lt_reload_cmds |
12676 | |
12677 | # How to pass a linker flag through the compiler. |
12678 | wl=$lt_lt_prog_compiler_wl_CXX |
12679 | |
12680 | # Object file suffix (normally "o"). |
12681 | objext="$ac_objext" |
12682 | |
12683 | # Old archive suffix (normally "a"). |
12684 | libext="$libext" |
12685 | |
12686 | # Shared library suffix (normally ".so"). |
12687 | shrext_cmds='$shrext_cmds' |
12688 | |
12689 | # Executable file suffix (normally ""). |
12690 | exeext="$exeext" |
12691 | |
12692 | # Additional compiler flags for building library objects. |
12693 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
12694 | pic_mode=$pic_mode |
12695 | |
12696 | # What is the maximum length of a command? |
12697 | max_cmd_len=$lt_cv_sys_max_cmd_len |
12698 | |
12699 | # Does compiler simultaneously support -c and -o options? |
12700 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
12701 | |
12702 | # Must we lock files when doing compilation? |
12703 | need_locks=$lt_need_locks |
12704 | |
12705 | # Do we need the lib prefix for modules? |
12706 | need_lib_prefix=$need_lib_prefix |
12707 | |
12708 | # Do we need a version for libraries? |
12709 | need_version=$need_version |
12710 | |
12711 | # Whether dlopen is supported. |
12712 | dlopen_support=$enable_dlopen |
12713 | |
12714 | # Whether dlopen of programs is supported. |
12715 | dlopen_self=$enable_dlopen_self |
12716 | |
12717 | # Whether dlopen of statically linked programs is supported. |
12718 | dlopen_self_static=$enable_dlopen_self_static |
12719 | |
12720 | # Compiler flag to prevent dynamic linking. |
12721 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
12722 | |
12723 | # Compiler flag to turn off builtin functions. |
12724 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
12725 | |
12726 | # Compiler flag to allow reflexive dlopens. |
12727 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
12728 | |
12729 | # Compiler flag to generate shared objects directly from archives. |
12730 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
12731 | |
12732 | # Compiler flag to generate thread-safe objects. |
12733 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
12734 | |
12735 | # Library versioning type. |
12736 | version_type=$version_type |
12737 | |
12738 | # Format of library name prefix. |
12739 | libname_spec=$lt_libname_spec |
12740 | |
12741 | # List of archive names. First name is the real one, the rest are links. |
12742 | # The last name is the one that the linker finds with -lNAME. |
12743 | library_names_spec=$lt_library_names_spec |
12744 | |
12745 | # The coded name of the library, if different from the real name. |
12746 | soname_spec=$lt_soname_spec |
12747 | |
12748 | # Commands used to build and install an old-style archive. |
12749 | RANLIB=$lt_RANLIB |
12750 | old_archive_cmds=$lt_old_archive_cmds_CXX |
12751 | old_postinstall_cmds=$lt_old_postinstall_cmds |
12752 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
12753 | |
12754 | # Create an old-style archive from a shared archive. |
12755 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
12756 | |
12757 | # Create a temporary old-style archive to link instead of a shared archive. |
12758 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
12759 | |
12760 | # Commands used to build and install a shared archive. |
12761 | archive_cmds=$lt_archive_cmds_CXX |
12762 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
12763 | postinstall_cmds=$lt_postinstall_cmds |
12764 | postuninstall_cmds=$lt_postuninstall_cmds |
12765 | |
12766 | # Commands used to build a loadable module (assumed same as above if empty) |
12767 | module_cmds=$lt_module_cmds_CXX |
12768 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
12769 | |
12770 | # Commands to strip libraries. |
12771 | old_striplib=$lt_old_striplib |
12772 | striplib=$lt_striplib |
12773 | |
12774 | # Dependencies to place before the objects being linked to create a |
12775 | # shared library. |
12776 | predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
12777 | |
12778 | # Dependencies to place after the objects being linked to create a |
12779 | # shared library. |
12780 | postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
12781 | |
12782 | # Dependencies to place before the objects being linked to create a |
12783 | # shared library. |
12784 | predeps=$lt_predeps_CXX |
12785 | |
12786 | # Dependencies to place after the objects being linked to create a |
12787 | # shared library. |
12788 | postdeps=$lt_postdeps_CXX |
12789 | |
12790 | # The library search path used internally by the compiler when linking |
12791 | # a shared library. |
12792 | 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"\` |
12793 | |
12794 | # Method to check whether dependent libraries are shared objects. |
12795 | deplibs_check_method=$lt_deplibs_check_method |
12796 | |
12797 | # Command to use when deplibs_check_method == file_magic. |
12798 | file_magic_cmd=$lt_file_magic_cmd |
12799 | |
12800 | # Flag that allows shared libraries with undefined symbols to be built. |
12801 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
12802 | |
12803 | # Flag that forces no undefined symbols. |
12804 | no_undefined_flag=$lt_no_undefined_flag_CXX |
12805 | |
12806 | # Commands used to finish a libtool library installation in a directory. |
12807 | finish_cmds=$lt_finish_cmds |
12808 | |
12809 | # Same as above, but a single script fragment to be evaled but not shown. |
12810 | finish_eval=$lt_finish_eval |
12811 | |
12812 | # Take the output of nm and produce a listing of raw symbols and C names. |
12813 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
12814 | |
12815 | # Transform the output of nm in a proper C declaration |
12816 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
12817 | |
12818 | # Transform the output of nm in a C name address pair |
12819 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
12820 | |
12821 | # This is the shared library runtime path variable. |
12822 | runpath_var=$runpath_var |
12823 | |
12824 | # This is the shared library path variable. |
12825 | shlibpath_var=$shlibpath_var |
12826 | |
12827 | # Is shlibpath searched before the hard-coded library search path? |
12828 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
12829 | |
12830 | # How to hardcode a shared library path into an executable. |
12831 | hardcode_action=$hardcode_action_CXX |
12832 | |
12833 | # Whether we should hardcode library paths into libraries. |
12834 | hardcode_into_libs=$hardcode_into_libs |
12835 | |
12836 | # Flag to hardcode \$libdir into a binary during linking. |
12837 | # This must work even if \$libdir does not exist. |
12838 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
12839 | |
12840 | # If ld is used when linking, flag to hardcode \$libdir into |
12841 | # a binary during linking. This must work even if \$libdir does |
12842 | # not exist. |
12843 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
12844 | |
12845 | # Whether we need a single -rpath flag with a separated argument. |
12846 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
12847 | |
12848 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
12849 | # resulting binary. |
12850 | hardcode_direct=$hardcode_direct_CXX |
12851 | |
12852 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
12853 | # resulting binary. |
12854 | hardcode_minus_L=$hardcode_minus_L_CXX |
12855 | |
12856 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
12857 | # the resulting binary. |
12858 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
12859 | |
12860 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
12861 | # and all subsequent libraries and executables linked against it. |
12862 | hardcode_automatic=$hardcode_automatic_CXX |
12863 | |
12864 | # Variables whose values should be saved in libtool wrapper scripts and |
12865 | # restored at relink time. |
12866 | variables_saved_for_relink="$variables_saved_for_relink" |
12867 | |
12868 | # Whether libtool must link a program against all its dependency libraries. |
12869 | link_all_deplibs=$link_all_deplibs_CXX |
12870 | |
12871 | # Compile-time system search path for libraries |
12872 | 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"\` |
12873 | |
12874 | # Run-time system search path for libraries |
12875 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
12876 | |
12877 | # Fix the shell variable \$srcfile for the compiler. |
12878 | fix_srcfile_path="$fix_srcfile_path_CXX" |
12879 | |
12880 | # Set to yes if exported symbols are required. |
12881 | always_export_symbols=$always_export_symbols_CXX |
12882 | |
12883 | # The commands to list exported symbols. |
12884 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
12885 | |
12886 | # The commands to extract the exported symbol list from a shared archive. |
12887 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
12888 | |
12889 | # Symbols that should not be listed in the preloaded symbols. |
12890 | exclude_expsyms=$lt_exclude_expsyms_CXX |
12891 | |
12892 | # Symbols that must always be exported. |
12893 | include_expsyms=$lt_include_expsyms_CXX |
12894 | |
12895 | # ### END LIBTOOL TAG CONFIG: $tagname |
12896 | |
12897 | __EOF__ |
12898 | |
12899 | |
12900 | else |
12901 | # If there is no Makefile yet, we rely on a make rule to execute |
12902 | # `config.status --recheck' to rerun these tests and create the |
12903 | # libtool script then. |
12904 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
12905 | if test -f "$ltmain_in"; then |
12906 | test -f Makefile && make "$ltmain" |
12907 | fi |
12908 | fi |
12909 | |
12910 | |
12911 | ac_ext=c |
12912 | ac_cpp='$CPP $CPPFLAGS' |
12913 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
12914 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12915 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
12916 | |
12917 | CC=$lt_save_CC |
12918 | LDCXX=$LD |
12919 | LD=$lt_save_LD |
12920 | GCC=$lt_save_GCC |
12921 | with_gnu_ldcxx=$with_gnu_ld |
12922 | with_gnu_ld=$lt_save_with_gnu_ld |
12923 | lt_cv_path_LDCXX=$lt_cv_path_LD |
12924 | lt_cv_path_LD=$lt_save_path_LD |
12925 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
12926 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
12927 | |
12928 | else |
12929 | tagname="" |
12930 | fi |
12931 | ;; |
12932 | |
12933 | F77) |
12934 | if test -n "$F77" && test "X$F77" != "Xno"; then |
12935 | |
12936 | ac_ext=f |
12937 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
12938 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12939 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
12940 | |
12941 | |
12942 | archive_cmds_need_lc_F77=no |
12943 | allow_undefined_flag_F77= |
12944 | always_export_symbols_F77=no |
12945 | archive_expsym_cmds_F77= |
12946 | export_dynamic_flag_spec_F77= |
12947 | hardcode_direct_F77=no |
12948 | hardcode_libdir_flag_spec_F77= |
12949 | hardcode_libdir_flag_spec_ld_F77= |
12950 | hardcode_libdir_separator_F77= |
12951 | hardcode_minus_L_F77=no |
12952 | hardcode_automatic_F77=no |
12953 | module_cmds_F77= |
12954 | module_expsym_cmds_F77= |
12955 | link_all_deplibs_F77=unknown |
12956 | old_archive_cmds_F77=$old_archive_cmds |
12957 | no_undefined_flag_F77= |
12958 | whole_archive_flag_spec_F77= |
12959 | enable_shared_with_static_runtimes_F77=no |
12960 | |
12961 | # Source file extension for f77 test sources. |
12962 | ac_ext=f |
12963 | |
12964 | # Object file extension for compiled f77 test sources. |
12965 | objext=o |
12966 | objext_F77=$objext |
12967 | |
12968 | # Code to be used in simple compile tests |
12969 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
12970 | |
12971 | # Code to be used in simple link tests |
12972 | lt_simple_link_test_code=" program t\n end\n" |
12973 | |
12974 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
12975 | |
12976 | # If no C compiler was specified, use CC. |
12977 | LTCC=${LTCC-"$CC"} |
12978 | |
12979 | # If no C compiler flags were specified, use CFLAGS. |
12980 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
12981 | |
12982 | # Allow CC to be a program name with arguments. |
12983 | compiler=$CC |
12984 | |
12985 | |
12986 | # save warnings/boilerplate of simple test code |
12987 | ac_outfile=conftest.$ac_objext |
12988 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
12989 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
12990 | _lt_compiler_boilerplate=`cat conftest.err` |
12991 | $rm conftest* |
12992 | |
12993 | ac_outfile=conftest.$ac_objext |
12994 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
12995 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
12996 | _lt_linker_boilerplate=`cat conftest.err` |
12997 | $rm conftest* |
12998 | |
12999 | |
13000 | # Allow CC to be a program name with arguments. |
13001 | lt_save_CC="$CC" |
13002 | CC=${F77-"f77"} |
13003 | compiler=$CC |
13004 | compiler_F77=$CC |
13005 | for cc_temp in $compiler""; do |
13006 | case $cc_temp in |
13007 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
13008 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
13009 | \-*) ;; |
13010 | *) break;; |
13011 | esac |
13012 | done |
13013 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
13014 | |
13015 | |
13016 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
13017 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
13018 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
13019 | echo "${ECHO_T}$can_build_shared" >&6 |
13020 | |
13021 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
13022 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
13023 | test "$can_build_shared" = "no" && enable_shared=no |
13024 | |
13025 | # On AIX, shared libraries and static libraries use the same namespace, and |
13026 | # are all built from PIC. |
13027 | case $host_os in |
13028 | aix3*) |
13029 | test "$enable_shared" = yes && enable_static=no |
13030 | if test -n "$RANLIB"; then |
13031 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
13032 | postinstall_cmds='$RANLIB $lib' |
13033 | fi |
13034 | ;; |
13035 | aix4* | aix5*) |
13036 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13037 | test "$enable_shared" = yes && enable_static=no |
13038 | fi |
13039 | ;; |
13040 | esac |
13041 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
13042 | echo "${ECHO_T}$enable_shared" >&6 |
13043 | |
13044 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
13045 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
13046 | # Make sure either enable_shared or enable_static is yes. |
13047 | test "$enable_shared" = yes || enable_static=yes |
13048 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
13049 | echo "${ECHO_T}$enable_static" >&6 |
13050 | |
13051 | GCC_F77="$G77" |
13052 | LD_F77="$LD" |
13053 | |
13054 | lt_prog_compiler_wl_F77= |
13055 | lt_prog_compiler_pic_F77= |
13056 | lt_prog_compiler_static_F77= |
13057 | |
13058 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
13059 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
13060 | |
13061 | if test "$GCC" = yes; then |
13062 | lt_prog_compiler_wl_F77='-Wl,' |
13063 | lt_prog_compiler_static_F77='-static' |
13064 | |
13065 | case $host_os in |
13066 | aix*) |
13067 | # All AIX code is PIC. |
13068 | if test "$host_cpu" = ia64; then |
13069 | # AIX 5 now supports IA64 processor |
13070 | lt_prog_compiler_static_F77='-Bstatic' |
13071 | fi |
13072 | ;; |
13073 | |
13074 | amigaos*) |
13075 | # FIXME: we need at least 68020 code to build shared libraries, but |
13076 | # adding the `-m68020' flag to GCC prevents building anything better, |
13077 | # like `-m68040'. |
13078 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
13079 | ;; |
13080 | |
13081 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
13082 | # PIC is the default for these OSes. |
13083 | ;; |
13084 | |
13085 | mingw* | pw32* | os2*) |
13086 | # This hack is so that the source file can tell whether it is being |
13087 | # built for inclusion in a dll (and should export symbols for example). |
13088 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13089 | ;; |
13090 | |
13091 | darwin* | rhapsody*) |
13092 | # PIC is the default on this platform |
13093 | # Common symbols not allowed in MH_DYLIB files |
13094 | lt_prog_compiler_pic_F77='-fno-common' |
13095 | ;; |
13096 | |
13097 | interix3*) |
13098 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
13099 | # Instead, we relocate shared libraries at runtime. |
13100 | ;; |
13101 | |
13102 | msdosdjgpp*) |
13103 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
13104 | # on systems that don't support them. |
13105 | lt_prog_compiler_can_build_shared_F77=no |
13106 | enable_shared=no |
13107 | ;; |
13108 | |
13109 | sysv4*MP*) |
13110 | if test -d /usr/nec; then |
13111 | lt_prog_compiler_pic_F77=-Kconform_pic |
13112 | fi |
13113 | ;; |
13114 | |
13115 | hpux*) |
13116 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13117 | # not for PA HP-UX. |
13118 | case $host_cpu in |
13119 | hppa*64*|ia64*) |
13120 | # +Z the default |
13121 | ;; |
13122 | *) |
13123 | lt_prog_compiler_pic_F77='-fPIC' |
13124 | ;; |
13125 | esac |
13126 | ;; |
13127 | |
13128 | *) |
13129 | lt_prog_compiler_pic_F77='-fPIC' |
13130 | ;; |
13131 | esac |
13132 | else |
13133 | # PORTME Check for flag to pass linker flags through the system compiler. |
13134 | case $host_os in |
13135 | aix*) |
13136 | lt_prog_compiler_wl_F77='-Wl,' |
13137 | if test "$host_cpu" = ia64; then |
13138 | # AIX 5 now supports IA64 processor |
13139 | lt_prog_compiler_static_F77='-Bstatic' |
13140 | else |
13141 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
13142 | fi |
13143 | ;; |
13144 | darwin*) |
13145 | # PIC is the default on this platform |
13146 | # Common symbols not allowed in MH_DYLIB files |
13147 | case $cc_basename in |
13148 | xlc*) |
13149 | lt_prog_compiler_pic_F77='-qnocommon' |
13150 | lt_prog_compiler_wl_F77='-Wl,' |
13151 | ;; |
13152 | esac |
13153 | ;; |
13154 | |
13155 | mingw* | pw32* | os2*) |
13156 | # This hack is so that the source file can tell whether it is being |
13157 | # built for inclusion in a dll (and should export symbols for example). |
13158 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13159 | ;; |
13160 | |
13161 | hpux9* | hpux10* | hpux11*) |
13162 | lt_prog_compiler_wl_F77='-Wl,' |
13163 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13164 | # not for PA HP-UX. |
13165 | case $host_cpu in |
13166 | hppa*64*|ia64*) |
13167 | # +Z the default |
13168 | ;; |
13169 | *) |
13170 | lt_prog_compiler_pic_F77='+Z' |
13171 | ;; |
13172 | esac |
13173 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
13174 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
13175 | ;; |
13176 | |
13177 | irix5* | irix6* | nonstopux*) |
13178 | lt_prog_compiler_wl_F77='-Wl,' |
13179 | # PIC (with -KPIC) is the default. |
13180 | lt_prog_compiler_static_F77='-non_shared' |
13181 | ;; |
13182 | |
13183 | newsos6) |
13184 | lt_prog_compiler_pic_F77='-KPIC' |
13185 | lt_prog_compiler_static_F77='-Bstatic' |
13186 | ;; |
13187 | |
13188 | linux*) |
13189 | case $cc_basename in |
13190 | icc* | ecc*) |
13191 | lt_prog_compiler_wl_F77='-Wl,' |
13192 | lt_prog_compiler_pic_F77='-KPIC' |
13193 | lt_prog_compiler_static_F77='-static' |
13194 | ;; |
13195 | pgcc* | pgf77* | pgf90* | pgf95*) |
13196 | # Portland Group compilers (*not* the Pentium gcc compiler, |
13197 | # which looks to be a dead project) |
13198 | lt_prog_compiler_wl_F77='-Wl,' |
13199 | lt_prog_compiler_pic_F77='-fpic' |
13200 | lt_prog_compiler_static_F77='-Bstatic' |
13201 | ;; |
13202 | ccc*) |
13203 | lt_prog_compiler_wl_F77='-Wl,' |
13204 | # All Alpha code is PIC. |
13205 | lt_prog_compiler_static_F77='-non_shared' |
13206 | ;; |
13207 | esac |
13208 | ;; |
13209 | |
13210 | osf3* | osf4* | osf5*) |
13211 | lt_prog_compiler_wl_F77='-Wl,' |
13212 | # All OSF/1 code is PIC. |
13213 | lt_prog_compiler_static_F77='-non_shared' |
13214 | ;; |
13215 | |
13216 | solaris*) |
13217 | lt_prog_compiler_pic_F77='-KPIC' |
13218 | lt_prog_compiler_static_F77='-Bstatic' |
13219 | case $cc_basename in |
13220 | f77* | f90* | f95*) |
13221 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
13222 | *) |
13223 | lt_prog_compiler_wl_F77='-Wl,';; |
13224 | esac |
13225 | ;; |
13226 | |
13227 | sunos4*) |
13228 | lt_prog_compiler_wl_F77='-Qoption ld ' |
13229 | lt_prog_compiler_pic_F77='-PIC' |
13230 | lt_prog_compiler_static_F77='-Bstatic' |
13231 | ;; |
13232 | |
13233 | sysv4 | sysv4.2uw2* | sysv4.3*) |
13234 | lt_prog_compiler_wl_F77='-Wl,' |
13235 | lt_prog_compiler_pic_F77='-KPIC' |
13236 | lt_prog_compiler_static_F77='-Bstatic' |
13237 | ;; |
13238 | |
13239 | sysv4*MP*) |
13240 | if test -d /usr/nec ;then |
13241 | lt_prog_compiler_pic_F77='-Kconform_pic' |
13242 | lt_prog_compiler_static_F77='-Bstatic' |
13243 | fi |
13244 | ;; |
13245 | |
13246 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
13247 | lt_prog_compiler_wl_F77='-Wl,' |
13248 | lt_prog_compiler_pic_F77='-KPIC' |
13249 | lt_prog_compiler_static_F77='-Bstatic' |
13250 | ;; |
13251 | |
13252 | unicos*) |
13253 | lt_prog_compiler_wl_F77='-Wl,' |
13254 | lt_prog_compiler_can_build_shared_F77=no |
13255 | ;; |
13256 | |
13257 | uts4*) |
13258 | lt_prog_compiler_pic_F77='-pic' |
13259 | lt_prog_compiler_static_F77='-Bstatic' |
13260 | ;; |
13261 | |
13262 | *) |
13263 | lt_prog_compiler_can_build_shared_F77=no |
13264 | ;; |
13265 | esac |
13266 | fi |
13267 | |
13268 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
13269 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
13270 | |
13271 | # |
13272 | # Check to make sure the PIC flag actually works. |
13273 | # |
13274 | if test -n "$lt_prog_compiler_pic_F77"; then |
13275 | |
13276 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
13277 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
13278 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
13279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13280 | else |
13281 | lt_prog_compiler_pic_works_F77=no |
13282 | ac_outfile=conftest.$ac_objext |
13283 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
13284 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
13285 | # Insert the option either (1) after the last *FLAGS variable, or |
13286 | # (2) before a word containing "conftest.", or (3) at the end. |
13287 | # Note that $ac_compile itself does not contain backslashes and begins |
13288 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
13289 | # The option is referenced via a variable to avoid confusing sed. |
13290 | lt_compile=`echo "$ac_compile" | $SED \ |
13291 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
13292 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
13293 | -e 's:$: $lt_compiler_flag:'` |
13294 | (eval echo "\"\$as_me:13294: $lt_compile\"" >&5) |
13295 | (eval "$lt_compile" 2>conftest.err) |
13296 | ac_status=$? |
13297 | cat conftest.err >&5 |
13298 | echo "$as_me:13298: \$? = $ac_status" >&5 |
13299 | if (exit $ac_status) && test -s "$ac_outfile"; then |
13300 | # The compiler can only warn and ignore the option if not recognized |
13301 | # So say no if there are warnings other than the usual output. |
13302 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
13303 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
13304 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
13305 | lt_prog_compiler_pic_works_F77=yes |
13306 | fi |
13307 | fi |
13308 | $rm conftest* |
13309 | |
13310 | fi |
13311 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
13312 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
13313 | |
13314 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
13315 | case $lt_prog_compiler_pic_F77 in |
13316 | "" | " "*) ;; |
13317 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
13318 | esac |
13319 | else |
13320 | lt_prog_compiler_pic_F77= |
13321 | lt_prog_compiler_can_build_shared_F77=no |
13322 | fi |
13323 | |
13324 | fi |
13325 | case $host_os in |
13326 | # For platforms which do not support PIC, -DPIC is meaningless: |
13327 | *djgpp*) |
13328 | lt_prog_compiler_pic_F77= |
13329 | ;; |
13330 | *) |
13331 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
13332 | ;; |
13333 | esac |
13334 | |
13335 | # |
13336 | # Check to make sure the static flag actually works. |
13337 | # |
13338 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
13339 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
13340 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
13341 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
13342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13343 | else |
13344 | lt_prog_compiler_static_works_F77=no |
13345 | save_LDFLAGS="$LDFLAGS" |
13346 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
13347 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
13348 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
13349 | # The linker can only warn and ignore the option if not recognized |
13350 | # So say no if there are warnings |
13351 | if test -s conftest.err; then |
13352 | # Append any errors to the config.log. |
13353 | cat conftest.err 1>&5 |
13354 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
13355 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
13356 | if diff conftest.exp conftest.er2 >/dev/null; then |
13357 | lt_prog_compiler_static_works_F77=yes |
13358 | fi |
13359 | else |
13360 | lt_prog_compiler_static_works_F77=yes |
13361 | fi |
13362 | fi |
13363 | $rm conftest* |
13364 | LDFLAGS="$save_LDFLAGS" |
13365 | |
13366 | fi |
13367 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
13368 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 |
13369 | |
13370 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
13371 | : |
13372 | else |
13373 | lt_prog_compiler_static_F77= |
13374 | fi |
13375 | |
13376 | |
13377 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
13378 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
13379 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
13380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13381 | else |
13382 | lt_cv_prog_compiler_c_o_F77=no |
13383 | $rm -r conftest 2>/dev/null |
13384 | mkdir conftest |
13385 | cd conftest |
13386 | mkdir out |
13387 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
13388 | |
13389 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
13390 | # Insert the option either (1) after the last *FLAGS variable, or |
13391 | # (2) before a word containing "conftest.", or (3) at the end. |
13392 | # Note that $ac_compile itself does not contain backslashes and begins |
13393 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
13394 | lt_compile=`echo "$ac_compile" | $SED \ |
13395 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
13396 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
13397 | -e 's:$: $lt_compiler_flag:'` |
13398 | (eval echo "\"\$as_me:13398: $lt_compile\"" >&5) |
13399 | (eval "$lt_compile" 2>out/conftest.err) |
13400 | ac_status=$? |
13401 | cat out/conftest.err >&5 |
13402 | echo "$as_me:13402: \$? = $ac_status" >&5 |
13403 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13404 | then |
13405 | # The compiler can only warn and ignore the option if not recognized |
13406 | # So say no if there are warnings |
13407 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
13408 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
13409 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
13410 | lt_cv_prog_compiler_c_o_F77=yes |
13411 | fi |
13412 | fi |
13413 | chmod u+w . 2>&5 |
13414 | $rm conftest* |
13415 | # SGI C++ compiler will create directory out/ii_files/ for |
13416 | # template instantiation |
13417 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
13418 | $rm out/* && rmdir out |
13419 | cd .. |
13420 | rmdir conftest |
13421 | $rm conftest* |
13422 | |
13423 | fi |
13424 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
13425 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
13426 | |
13427 | |
13428 | hard_links="nottested" |
13429 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
13430 | # do not overwrite the value of need_locks provided by the user |
13431 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
13432 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
13433 | hard_links=yes |
13434 | $rm conftest* |
13435 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
13436 | touch conftest.a |
13437 | ln conftest.a conftest.b 2>&5 || hard_links=no |
13438 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
13439 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
13440 | echo "${ECHO_T}$hard_links" >&6 |
13441 | if test "$hard_links" = no; then |
13442 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
13443 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
13444 | need_locks=warn |
13445 | fi |
13446 | else |
13447 | need_locks=no |
13448 | fi |
13449 | |
13450 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
13451 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
13452 | |
13453 | runpath_var= |
13454 | allow_undefined_flag_F77= |
13455 | enable_shared_with_static_runtimes_F77=no |
13456 | archive_cmds_F77= |
13457 | archive_expsym_cmds_F77= |
13458 | old_archive_From_new_cmds_F77= |
13459 | old_archive_from_expsyms_cmds_F77= |
13460 | export_dynamic_flag_spec_F77= |
13461 | whole_archive_flag_spec_F77= |
13462 | thread_safe_flag_spec_F77= |
13463 | hardcode_libdir_flag_spec_F77= |
13464 | hardcode_libdir_flag_spec_ld_F77= |
13465 | hardcode_libdir_separator_F77= |
13466 | hardcode_direct_F77=no |
13467 | hardcode_minus_L_F77=no |
13468 | hardcode_shlibpath_var_F77=unsupported |
13469 | link_all_deplibs_F77=unknown |
13470 | hardcode_automatic_F77=no |
13471 | module_cmds_F77= |
13472 | module_expsym_cmds_F77= |
13473 | always_export_symbols_F77=no |
13474 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
13475 | # include_expsyms should be a list of space-separated symbols to be *always* |
13476 | # included in the symbol list |
13477 | include_expsyms_F77= |
13478 | # exclude_expsyms can be an extended regexp of symbols to exclude |
13479 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
13480 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
13481 | # as well as any symbol that contains `d'. |
13482 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
13483 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
13484 | # platforms (ab)use it in PIC code, but their linkers get confused if |
13485 | # the symbol is explicitly referenced. Since portable code cannot |
13486 | # rely on this symbol name, it's probably fine to never include it in |
13487 | # preloaded symbol tables. |
13488 | extract_expsyms_cmds= |
13489 | # Just being paranoid about ensuring that cc_basename is set. |
13490 | for cc_temp in $compiler""; do |
13491 | case $cc_temp in |
13492 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
13493 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
13494 | \-*) ;; |
13495 | *) break;; |
13496 | esac |
13497 | done |
13498 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
13499 | |
13500 | case $host_os in |
13501 | cygwin* | mingw* | pw32*) |
13502 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
13503 | # When not using gcc, we currently assume that we are using |
13504 | # Microsoft Visual C++. |
13505 | if test "$GCC" != yes; then |
13506 | with_gnu_ld=no |
13507 | fi |
13508 | ;; |
13509 | interix*) |
13510 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
13511 | with_gnu_ld=yes |
13512 | ;; |
13513 | openbsd*) |
13514 | with_gnu_ld=no |
13515 | ;; |
13516 | esac |
13517 | |
13518 | ld_shlibs_F77=yes |
13519 | if test "$with_gnu_ld" = yes; then |
13520 | # If archive_cmds runs LD, not CC, wlarc should be empty |
13521 | wlarc='${wl}' |
13522 | |
13523 | # Set some defaults for GNU ld with shared library support. These |
13524 | # are reset later if shared libraries are not supported. Putting them |
13525 | # here allows them to be overridden if necessary. |
13526 | runpath_var=LD_RUN_PATH |
13527 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
13528 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
13529 | # ancient GNU ld didn't support --whole-archive et. al. |
13530 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
13531 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
13532 | else |
13533 | whole_archive_flag_spec_F77= |
13534 | fi |
13535 | supports_anon_versioning=no |
13536 | case `$LD -v 2>/dev/null` in |
13537 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
13538 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
13539 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
13540 | *\ 2.11.*) ;; # other 2.11 versions |
13541 | *) supports_anon_versioning=yes ;; |
13542 | esac |
13543 | |
13544 | # See if GNU ld supports shared libraries. |
13545 | case $host_os in |
13546 | aix3* | aix4* | aix5*) |
13547 | # On AIX/PPC, the GNU linker is very broken |
13548 | if test "$host_cpu" != ia64; then |
13549 | ld_shlibs_F77=no |
13550 | cat <<EOF 1>&2 |
13551 | |
13552 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
13553 | *** to be unable to reliably create shared libraries on AIX. |
13554 | *** Therefore, libtool is disabling shared libraries support. If you |
13555 | *** really care for shared libraries, you may want to modify your PATH |
13556 | *** so that a non-GNU linker is found, and then restart. |
13557 | |
13558 | EOF |
13559 | fi |
13560 | ;; |
13561 | |
13562 | amigaos*) |
13563 | 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)' |
13564 | hardcode_libdir_flag_spec_F77='-L$libdir' |
13565 | hardcode_minus_L_F77=yes |
13566 | |
13567 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
13568 | # that the semantics of dynamic libraries on AmigaOS, at least up |
13569 | # to version 4, is to share data among multiple programs linked |
13570 | # with the same dynamic library. Since this doesn't match the |
13571 | # behavior of shared libraries on other platforms, we can't use |
13572 | # them. |
13573 | ld_shlibs_F77=no |
13574 | ;; |
13575 | |
13576 | beos*) |
13577 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13578 | allow_undefined_flag_F77=unsupported |
13579 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
13580 | # support --undefined. This deserves some investigation. FIXME |
13581 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13582 | else |
13583 | ld_shlibs_F77=no |
13584 | fi |
13585 | ;; |
13586 | |
13587 | cygwin* | mingw* | pw32*) |
13588 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
13589 | # as there is no search path for DLLs. |
13590 | hardcode_libdir_flag_spec_F77='-L$libdir' |
13591 | allow_undefined_flag_F77=unsupported |
13592 | always_export_symbols_F77=no |
13593 | enable_shared_with_static_runtimes_F77=yes |
13594 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
13595 | |
13596 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
13597 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
13598 | # If the export-symbols file already is a .def file (1st line |
13599 | # is EXPORTS), use it as is; otherwise, prepend... |
13600 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
13601 | cp $export_symbols $output_objdir/$soname.def; |
13602 | else |
13603 | echo EXPORTS > $output_objdir/$soname.def; |
13604 | cat $export_symbols >> $output_objdir/$soname.def; |
13605 | fi~ |
13606 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
13607 | else |
13608 | ld_shlibs_F77=no |
13609 | fi |
13610 | ;; |
13611 | |
13612 | interix3*) |
13613 | hardcode_direct_F77=no |
13614 | hardcode_shlibpath_var_F77=no |
13615 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
13616 | export_dynamic_flag_spec_F77='${wl}-E' |
13617 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
13618 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
13619 | # default) and relocated if they conflict, which is a slow very memory |
13620 | # consuming and fragmenting process. To avoid this, we pick a random, |
13621 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
13622 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
13623 | 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' |
13624 | 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' |
13625 | ;; |
13626 | |
13627 | linux*) |
13628 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13629 | tmp_addflag= |
13630 | case $cc_basename,$host_cpu in |
13631 | pgcc*) # Portland Group C compiler |
13632 | 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' |
13633 | tmp_addflag=' $pic_flag' |
13634 | ;; |
13635 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
13636 | 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' |
13637 | tmp_addflag=' $pic_flag -Mnomain' ;; |
13638 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
13639 | tmp_addflag=' -i_dynamic' ;; |
13640 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
13641 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
13642 | ifc* | ifort*) # Intel Fortran compiler |
13643 | tmp_addflag=' -nofor_main' ;; |
13644 | esac |
13645 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13646 | |
13647 | if test $supports_anon_versioning = yes; then |
13648 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
13649 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
13650 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
13651 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
13652 | fi |
13653 | else |
13654 | ld_shlibs_F77=no |
13655 | fi |
13656 | ;; |
13657 | |
13658 | netbsd*) |
13659 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
13660 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
13661 | wlarc= |
13662 | else |
13663 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13664 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
13665 | fi |
13666 | ;; |
13667 | |
13668 | solaris*) |
13669 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
13670 | ld_shlibs_F77=no |
13671 | cat <<EOF 1>&2 |
13672 | |
13673 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
13674 | *** create shared libraries on Solaris systems. Therefore, libtool |
13675 | *** is disabling shared libraries support. We urge you to upgrade GNU |
13676 | *** binutils to release 2.9.1 or newer. Another option is to modify |
13677 | *** your PATH or compiler configuration so that the native linker is |
13678 | *** used, and then restart. |
13679 | |
13680 | EOF |
13681 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13682 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13683 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
13684 | else |
13685 | ld_shlibs_F77=no |
13686 | fi |
13687 | ;; |
13688 | |
13689 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
13690 | case `$LD -v 2>&1` in |
13691 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
13692 | ld_shlibs_F77=no |
13693 | cat <<_LT_EOF 1>&2 |
13694 | |
13695 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
13696 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
13697 | *** is disabling shared libraries support. We urge you to upgrade GNU |
13698 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
13699 | *** your PATH or compiler configuration so that the native linker is |
13700 | *** used, and then restart. |
13701 | |
13702 | _LT_EOF |
13703 | ;; |
13704 | *) |
13705 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13706 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
13707 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
13708 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
13709 | else |
13710 | ld_shlibs_F77=no |
13711 | fi |
13712 | ;; |
13713 | esac |
13714 | ;; |
13715 | |
13716 | sunos4*) |
13717 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
13718 | wlarc= |
13719 | hardcode_direct_F77=yes |
13720 | hardcode_shlibpath_var_F77=no |
13721 | ;; |
13722 | |
13723 | *) |
13724 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13725 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13726 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
13727 | else |
13728 | ld_shlibs_F77=no |
13729 | fi |
13730 | ;; |
13731 | esac |
13732 | |
13733 | if test "$ld_shlibs_F77" = no; then |
13734 | runpath_var= |
13735 | hardcode_libdir_flag_spec_F77= |
13736 | export_dynamic_flag_spec_F77= |
13737 | whole_archive_flag_spec_F77= |
13738 | fi |
13739 | else |
13740 | # PORTME fill in a description of your system's linker (not GNU ld) |
13741 | case $host_os in |
13742 | aix3*) |
13743 | allow_undefined_flag_F77=unsupported |
13744 | always_export_symbols_F77=yes |
13745 | 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' |
13746 | # Note: this linker hardcodes the directories in LIBPATH if there |
13747 | # are no directories specified by -L. |
13748 | hardcode_minus_L_F77=yes |
13749 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
13750 | # Neither direct hardcoding nor static linking is supported with a |
13751 | # broken collect2. |
13752 | hardcode_direct_F77=unsupported |
13753 | fi |
13754 | ;; |
13755 | |
13756 | aix4* | aix5*) |
13757 | if test "$host_cpu" = ia64; then |
13758 | # On IA64, the linker does run time linking by default, so we don't |
13759 | # have to do anything special. |
13760 | aix_use_runtimelinking=no |
13761 | exp_sym_flag='-Bexport' |
13762 | no_entry_flag="" |
13763 | else |
13764 | # If we're using GNU nm, then we don't want the "-C" option. |
13765 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
13766 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
13767 | 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' |
13768 | else |
13769 | 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' |
13770 | fi |
13771 | aix_use_runtimelinking=no |
13772 | |
13773 | # Test if we are trying to use run time linking or normal |
13774 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
13775 | # need to do runtime linking. |
13776 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
13777 | for ld_flag in $LDFLAGS; do |
13778 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
13779 | aix_use_runtimelinking=yes |
13780 | break |
13781 | fi |
13782 | done |
13783 | ;; |
13784 | esac |
13785 | |
13786 | exp_sym_flag='-bexport' |
13787 | no_entry_flag='-bnoentry' |
13788 | fi |
13789 | |
13790 | # When large executables or shared objects are built, AIX ld can |
13791 | # have problems creating the table of contents. If linking a library |
13792 | # or program results in "error TOC overflow" add -mminimal-toc to |
13793 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
13794 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
13795 | |
13796 | archive_cmds_F77='' |
13797 | hardcode_direct_F77=yes |
13798 | hardcode_libdir_separator_F77=':' |
13799 | link_all_deplibs_F77=yes |
13800 | |
13801 | if test "$GCC" = yes; then |
13802 | case $host_os in aix4.[012]|aix4.[012].*) |
13803 | # We only want to do this on AIX 4.2 and lower, the check |
13804 | # below for broken collect2 doesn't work under 4.3+ |
13805 | collect2name=`${CC} -print-prog-name=collect2` |
13806 | if test -f "$collect2name" && \ |
13807 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
13808 | then |
13809 | # We have reworked collect2 |
13810 | hardcode_direct_F77=yes |
13811 | else |
13812 | # We have old collect2 |
13813 | hardcode_direct_F77=unsupported |
13814 | # It fails to find uninstalled libraries when the uninstalled |
13815 | # path is not listed in the libpath. Setting hardcode_minus_L |
13816 | # to unsupported forces relinking |
13817 | hardcode_minus_L_F77=yes |
13818 | hardcode_libdir_flag_spec_F77='-L$libdir' |
13819 | hardcode_libdir_separator_F77= |
13820 | fi |
13821 | ;; |
13822 | esac |
13823 | shared_flag='-shared' |
13824 | if test "$aix_use_runtimelinking" = yes; then |
13825 | shared_flag="$shared_flag "'${wl}-G' |
13826 | fi |
13827 | else |
13828 | # not using gcc |
13829 | if test "$host_cpu" = ia64; then |
13830 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
13831 | # chokes on -Wl,-G. The following line is correct: |
13832 | shared_flag='-G' |
13833 | else |
13834 | if test "$aix_use_runtimelinking" = yes; then |
13835 | shared_flag='${wl}-G' |
13836 | else |
13837 | shared_flag='${wl}-bM:SRE' |
13838 | fi |
13839 | fi |
13840 | fi |
13841 | |
13842 | # It seems that -bexpall does not export symbols beginning with |
13843 | # underscore (_), so it is better to generate a list of symbols to export. |
13844 | always_export_symbols_F77=yes |
13845 | if test "$aix_use_runtimelinking" = yes; then |
13846 | # Warning - without using the other runtime loading flags (-brtl), |
13847 | # -berok will link without error, but may produce a broken library. |
13848 | allow_undefined_flag_F77='-berok' |
13849 | # Determine the default libpath from the value encoded in an empty executable. |
13850 | cat >conftest.$ac_ext <<_ACEOF |
13851 | program main |
13852 | |
13853 | end |
13854 | _ACEOF |
13855 | rm -f conftest.$ac_objext conftest$ac_exeext |
13856 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13857 | (eval $ac_link) 2>conftest.er1 |
13858 | ac_status=$? |
13859 | grep -v '^ *+' conftest.er1 >conftest.err |
13860 | rm -f conftest.er1 |
13861 | cat conftest.err >&5 |
13862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13863 | (exit $ac_status); } && |
13864 | { ac_try='test -z "$ac_f77_werror_flag" |
13865 | || test ! -s conftest.err' |
13866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13867 | (eval $ac_try) 2>&5 |
13868 | ac_status=$? |
13869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13870 | (exit $ac_status); }; } && |
13871 | { ac_try='test -s conftest$ac_exeext' |
13872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13873 | (eval $ac_try) 2>&5 |
13874 | ac_status=$? |
13875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13876 | (exit $ac_status); }; }; then |
13877 | |
13878 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
13879 | }'` |
13880 | # Check for a 64-bit object if we didn't find anything. |
13881 | 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; } |
13882 | }'`; fi |
13883 | else |
13884 | echo "$as_me: failed program was:" >&5 |
13885 | sed 's/^/| /' conftest.$ac_ext >&5 |
13886 | |
13887 | fi |
13888 | rm -f conftest.err conftest.$ac_objext \ |
13889 | conftest$ac_exeext conftest.$ac_ext |
13890 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
13891 | |
13892 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
13893 | 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" |
13894 | else |
13895 | if test "$host_cpu" = ia64; then |
13896 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
13897 | allow_undefined_flag_F77="-z nodefs" |
13898 | 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" |
13899 | else |
13900 | # Determine the default libpath from the value encoded in an empty executable. |
13901 | cat >conftest.$ac_ext <<_ACEOF |
13902 | program main |
13903 | |
13904 | end |
13905 | _ACEOF |
13906 | rm -f conftest.$ac_objext conftest$ac_exeext |
13907 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13908 | (eval $ac_link) 2>conftest.er1 |
13909 | ac_status=$? |
13910 | grep -v '^ *+' conftest.er1 >conftest.err |
13911 | rm -f conftest.er1 |
13912 | cat conftest.err >&5 |
13913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13914 | (exit $ac_status); } && |
13915 | { ac_try='test -z "$ac_f77_werror_flag" |
13916 | || test ! -s conftest.err' |
13917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13918 | (eval $ac_try) 2>&5 |
13919 | ac_status=$? |
13920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13921 | (exit $ac_status); }; } && |
13922 | { ac_try='test -s conftest$ac_exeext' |
13923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13924 | (eval $ac_try) 2>&5 |
13925 | ac_status=$? |
13926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13927 | (exit $ac_status); }; }; then |
13928 | |
13929 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
13930 | }'` |
13931 | # Check for a 64-bit object if we didn't find anything. |
13932 | 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; } |
13933 | }'`; fi |
13934 | else |
13935 | echo "$as_me: failed program was:" >&5 |
13936 | sed 's/^/| /' conftest.$ac_ext >&5 |
13937 | |
13938 | fi |
13939 | rm -f conftest.err conftest.$ac_objext \ |
13940 | conftest$ac_exeext conftest.$ac_ext |
13941 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
13942 | |
13943 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
13944 | # Warning - without using the other run time loading flags, |
13945 | # -berok will link without error, but may produce a broken library. |
13946 | no_undefined_flag_F77=' ${wl}-bernotok' |
13947 | allow_undefined_flag_F77=' ${wl}-berok' |
13948 | # Exported symbols can be pulled into shared objects from archives |
13949 | whole_archive_flag_spec_F77='$convenience' |
13950 | archive_cmds_need_lc_F77=yes |
13951 | # This is similar to how AIX traditionally builds its shared libraries. |
13952 | 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' |
13953 | fi |
13954 | fi |
13955 | ;; |
13956 | |
13957 | amigaos*) |
13958 | 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)' |
13959 | hardcode_libdir_flag_spec_F77='-L$libdir' |
13960 | hardcode_minus_L_F77=yes |
13961 | # see comment about different semantics on the GNU ld section |
13962 | ld_shlibs_F77=no |
13963 | ;; |
13964 | |
13965 | bsdi[45]*) |
13966 | export_dynamic_flag_spec_F77=-rdynamic |
13967 | ;; |
13968 | |
13969 | cygwin* | mingw* | pw32*) |
13970 | # When not using gcc, we currently assume that we are using |
13971 | # Microsoft Visual C++. |
13972 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
13973 | # no search path for DLLs. |
13974 | hardcode_libdir_flag_spec_F77=' ' |
13975 | allow_undefined_flag_F77=unsupported |
13976 | # Tell ltmain to make .lib files, not .a files. |
13977 | libext=lib |
13978 | # Tell ltmain to make .dll files, not .so files. |
13979 | shrext_cmds=".dll" |
13980 | # FIXME: Setting linknames here is a bad hack. |
13981 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
13982 | # The linker will automatically build a .lib file if we build a DLL. |
13983 | old_archive_From_new_cmds_F77='true' |
13984 | # FIXME: Should let the user specify the lib program. |
13985 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
13986 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
13987 | enable_shared_with_static_runtimes_F77=yes |
13988 | ;; |
13989 | |
13990 | darwin* | rhapsody*) |
13991 | case $host_os in |
13992 | rhapsody* | darwin1.[012]) |
13993 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
13994 | ;; |
13995 | *) # Darwin 1.3 on |
13996 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
13997 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
13998 | else |
13999 | case ${MACOSX_DEPLOYMENT_TARGET} in |
14000 | 10.[012]) |
14001 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14002 | ;; |
14003 | 10.*) |
14004 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
14005 | ;; |
14006 | esac |
14007 | fi |
14008 | ;; |
14009 | esac |
14010 | archive_cmds_need_lc_F77=no |
14011 | hardcode_direct_F77=no |
14012 | hardcode_automatic_F77=yes |
14013 | hardcode_shlibpath_var_F77=unsupported |
14014 | whole_archive_flag_spec_F77='' |
14015 | link_all_deplibs_F77=yes |
14016 | if test "$GCC" = yes ; then |
14017 | output_verbose_link_cmd='echo' |
14018 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
14019 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14020 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14021 | 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}' |
14022 | 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}' |
14023 | else |
14024 | case $cc_basename in |
14025 | xlc*) |
14026 | output_verbose_link_cmd='echo' |
14027 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
14028 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14029 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14030 | 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}' |
14031 | 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}' |
14032 | ;; |
14033 | *) |
14034 | ld_shlibs_F77=no |
14035 | ;; |
14036 | esac |
14037 | fi |
14038 | ;; |
14039 | |
14040 | dgux*) |
14041 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14042 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14043 | hardcode_shlibpath_var_F77=no |
14044 | ;; |
14045 | |
14046 | freebsd1*) |
14047 | ld_shlibs_F77=no |
14048 | ;; |
14049 | |
14050 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
14051 | # support. Future versions do this automatically, but an explicit c++rt0.o |
14052 | # does not break anything, and helps significantly (at the cost of a little |
14053 | # extra space). |
14054 | freebsd2.2*) |
14055 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
14056 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14057 | hardcode_direct_F77=yes |
14058 | hardcode_shlibpath_var_F77=no |
14059 | ;; |
14060 | |
14061 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
14062 | freebsd2*) |
14063 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14064 | hardcode_direct_F77=yes |
14065 | hardcode_minus_L_F77=yes |
14066 | hardcode_shlibpath_var_F77=no |
14067 | ;; |
14068 | |
14069 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
14070 | freebsd* | kfreebsd*-gnu | dragonfly*) |
14071 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
14072 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14073 | hardcode_direct_F77=yes |
14074 | hardcode_shlibpath_var_F77=no |
14075 | ;; |
14076 | |
14077 | hpux9*) |
14078 | if test "$GCC" = yes; then |
14079 | 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' |
14080 | else |
14081 | 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' |
14082 | fi |
14083 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14084 | hardcode_libdir_separator_F77=: |
14085 | hardcode_direct_F77=yes |
14086 | |
14087 | # hardcode_minus_L: Not really in the search PATH, |
14088 | # but as the default location of the library. |
14089 | hardcode_minus_L_F77=yes |
14090 | export_dynamic_flag_spec_F77='${wl}-E' |
14091 | ;; |
14092 | |
14093 | hpux10*) |
14094 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14095 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14096 | else |
14097 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
14098 | fi |
14099 | if test "$with_gnu_ld" = no; then |
14100 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14101 | hardcode_libdir_separator_F77=: |
14102 | |
14103 | hardcode_direct_F77=yes |
14104 | export_dynamic_flag_spec_F77='${wl}-E' |
14105 | |
14106 | # hardcode_minus_L: Not really in the search PATH, |
14107 | # but as the default location of the library. |
14108 | hardcode_minus_L_F77=yes |
14109 | fi |
14110 | ;; |
14111 | |
14112 | hpux11*) |
14113 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14114 | case $host_cpu in |
14115 | hppa*64*) |
14116 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14117 | ;; |
14118 | ia64*) |
14119 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14120 | ;; |
14121 | *) |
14122 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14123 | ;; |
14124 | esac |
14125 | else |
14126 | case $host_cpu in |
14127 | hppa*64*) |
14128 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14129 | ;; |
14130 | ia64*) |
14131 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14132 | ;; |
14133 | *) |
14134 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14135 | ;; |
14136 | esac |
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 | case $host_cpu in |
14143 | hppa*64*|ia64*) |
14144 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
14145 | hardcode_direct_F77=no |
14146 | hardcode_shlibpath_var_F77=no |
14147 | ;; |
14148 | *) |
14149 | hardcode_direct_F77=yes |
14150 | export_dynamic_flag_spec_F77='${wl}-E' |
14151 | |
14152 | # hardcode_minus_L: Not really in the search PATH, |
14153 | # but as the default location of the library. |
14154 | hardcode_minus_L_F77=yes |
14155 | ;; |
14156 | esac |
14157 | fi |
14158 | ;; |
14159 | |
14160 | irix5* | irix6* | nonstopux*) |
14161 | if test "$GCC" = yes; then |
14162 | 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' |
14163 | else |
14164 | 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' |
14165 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
14166 | fi |
14167 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14168 | hardcode_libdir_separator_F77=: |
14169 | link_all_deplibs_F77=yes |
14170 | ;; |
14171 | |
14172 | netbsd*) |
14173 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14174 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
14175 | else |
14176 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
14177 | fi |
14178 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14179 | hardcode_direct_F77=yes |
14180 | hardcode_shlibpath_var_F77=no |
14181 | ;; |
14182 | |
14183 | newsos6) |
14184 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14185 | hardcode_direct_F77=yes |
14186 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14187 | hardcode_libdir_separator_F77=: |
14188 | hardcode_shlibpath_var_F77=no |
14189 | ;; |
14190 | |
14191 | openbsd*) |
14192 | hardcode_direct_F77=yes |
14193 | hardcode_shlibpath_var_F77=no |
14194 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
14195 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14196 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
14197 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14198 | export_dynamic_flag_spec_F77='${wl}-E' |
14199 | else |
14200 | case $host_os in |
14201 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
14202 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14203 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14204 | ;; |
14205 | *) |
14206 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14207 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14208 | ;; |
14209 | esac |
14210 | fi |
14211 | ;; |
14212 | |
14213 | os2*) |
14214 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14215 | hardcode_minus_L_F77=yes |
14216 | allow_undefined_flag_F77=unsupported |
14217 | 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' |
14218 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
14219 | ;; |
14220 | |
14221 | osf3*) |
14222 | if test "$GCC" = yes; then |
14223 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
14224 | 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' |
14225 | else |
14226 | allow_undefined_flag_F77=' -expect_unresolved \*' |
14227 | 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' |
14228 | fi |
14229 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14230 | hardcode_libdir_separator_F77=: |
14231 | ;; |
14232 | |
14233 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
14234 | if test "$GCC" = yes; then |
14235 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
14236 | 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' |
14237 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14238 | else |
14239 | allow_undefined_flag_F77=' -expect_unresolved \*' |
14240 | 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' |
14241 | 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~ |
14242 | $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' |
14243 | |
14244 | # Both c and cxx compiler support -rpath directly |
14245 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
14246 | fi |
14247 | hardcode_libdir_separator_F77=: |
14248 | ;; |
14249 | |
14250 | solaris*) |
14251 | no_undefined_flag_F77=' -z text' |
14252 | if test "$GCC" = yes; then |
14253 | wlarc='${wl}' |
14254 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14255 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14256 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
14257 | else |
14258 | wlarc='' |
14259 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14260 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14261 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
14262 | fi |
14263 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14264 | hardcode_shlibpath_var_F77=no |
14265 | case $host_os in |
14266 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
14267 | *) |
14268 | # The compiler driver will combine linker options so we |
14269 | # cannot just pass the convience library names through |
14270 | # without $wl, iff we do not link with $LD. |
14271 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
14272 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
14273 | case $wlarc in |
14274 | '') |
14275 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
14276 | *) |
14277 | 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' ;; |
14278 | esac ;; |
14279 | esac |
14280 | link_all_deplibs_F77=yes |
14281 | ;; |
14282 | |
14283 | sunos4*) |
14284 | if test "x$host_vendor" = xsequent; then |
14285 | # Use $CC to link under sequent, because it throws in some extra .o |
14286 | # files that make .init and .fini sections work. |
14287 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
14288 | else |
14289 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
14290 | fi |
14291 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14292 | hardcode_direct_F77=yes |
14293 | hardcode_minus_L_F77=yes |
14294 | hardcode_shlibpath_var_F77=no |
14295 | ;; |
14296 | |
14297 | sysv4) |
14298 | case $host_vendor in |
14299 | sni) |
14300 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14301 | hardcode_direct_F77=yes # is this really true??? |
14302 | ;; |
14303 | siemens) |
14304 | ## LD is ld it makes a PLAMLIB |
14305 | ## CC just makes a GrossModule. |
14306 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
14307 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
14308 | hardcode_direct_F77=no |
14309 | ;; |
14310 | motorola) |
14311 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14312 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
14313 | ;; |
14314 | esac |
14315 | runpath_var='LD_RUN_PATH' |
14316 | hardcode_shlibpath_var_F77=no |
14317 | ;; |
14318 | |
14319 | sysv4.3*) |
14320 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14321 | hardcode_shlibpath_var_F77=no |
14322 | export_dynamic_flag_spec_F77='-Bexport' |
14323 | ;; |
14324 | |
14325 | sysv4*MP*) |
14326 | if test -d /usr/nec; then |
14327 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14328 | hardcode_shlibpath_var_F77=no |
14329 | runpath_var=LD_RUN_PATH |
14330 | hardcode_runpath_var=yes |
14331 | ld_shlibs_F77=yes |
14332 | fi |
14333 | ;; |
14334 | |
14335 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
14336 | no_undefined_flag_F77='${wl}-z,text' |
14337 | archive_cmds_need_lc_F77=no |
14338 | hardcode_shlibpath_var_F77=no |
14339 | runpath_var='LD_RUN_PATH' |
14340 | |
14341 | if test "$GCC" = yes; then |
14342 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14343 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14344 | else |
14345 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14346 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14347 | fi |
14348 | ;; |
14349 | |
14350 | sysv5* | sco3.2v5* | sco5v6*) |
14351 | # Note: We can NOT use -z defs as we might desire, because we do not |
14352 | # link with -lc, and that would cause any symbols used from libc to |
14353 | # always be unresolved, which means just about no library would |
14354 | # ever link correctly. If we're not using GNU ld we use -z text |
14355 | # though, which does catch some bad symbols but isn't as heavy-handed |
14356 | # as -z defs. |
14357 | no_undefined_flag_F77='${wl}-z,text' |
14358 | allow_undefined_flag_F77='${wl}-z,nodefs' |
14359 | archive_cmds_need_lc_F77=no |
14360 | hardcode_shlibpath_var_F77=no |
14361 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
14362 | hardcode_libdir_separator_F77=':' |
14363 | link_all_deplibs_F77=yes |
14364 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
14365 | runpath_var='LD_RUN_PATH' |
14366 | |
14367 | if test "$GCC" = yes; then |
14368 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14369 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14370 | else |
14371 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14372 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14373 | fi |
14374 | ;; |
14375 | |
14376 | uts4*) |
14377 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14378 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14379 | hardcode_shlibpath_var_F77=no |
14380 | ;; |
14381 | |
14382 | *) |
14383 | ld_shlibs_F77=no |
14384 | ;; |
14385 | esac |
14386 | fi |
14387 | |
14388 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
14389 | echo "${ECHO_T}$ld_shlibs_F77" >&6 |
14390 | test "$ld_shlibs_F77" = no && can_build_shared=no |
14391 | |
14392 | # |
14393 | # Do we need to explicitly link libc? |
14394 | # |
14395 | case "x$archive_cmds_need_lc_F77" in |
14396 | x|xyes) |
14397 | # Assume -lc should be added |
14398 | archive_cmds_need_lc_F77=yes |
14399 | |
14400 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
14401 | case $archive_cmds_F77 in |
14402 | *'~'*) |
14403 | # FIXME: we may have to deal with multi-command sequences. |
14404 | ;; |
14405 | '$CC '*) |
14406 | # Test whether the compiler implicitly links with -lc since on some |
14407 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
14408 | # to ld, don't add -lc before -lgcc. |
14409 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
14410 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
14411 | $rm conftest* |
14412 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
14413 | |
14414 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
14415 | (eval $ac_compile) 2>&5 |
14416 | ac_status=$? |
14417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14418 | (exit $ac_status); } 2>conftest.err; then |
14419 | soname=conftest |
14420 | lib=conftest |
14421 | libobjs=conftest.$ac_objext |
14422 | deplibs= |
14423 | wl=$lt_prog_compiler_wl_F77 |
14424 | pic_flag=$lt_prog_compiler_pic_F77 |
14425 | compiler_flags=-v |
14426 | linker_flags=-v |
14427 | verstring= |
14428 | output_objdir=. |
14429 | libname=conftest |
14430 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
14431 | allow_undefined_flag_F77= |
14432 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
14433 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
14434 | ac_status=$? |
14435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14436 | (exit $ac_status); } |
14437 | then |
14438 | archive_cmds_need_lc_F77=no |
14439 | else |
14440 | archive_cmds_need_lc_F77=yes |
14441 | fi |
14442 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
14443 | else |
14444 | cat conftest.err 1>&5 |
14445 | fi |
14446 | $rm conftest* |
14447 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
14448 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
14449 | ;; |
14450 | esac |
14451 | fi |
14452 | ;; |
14453 | esac |
14454 | |
14455 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
14456 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
14457 | library_names_spec= |
14458 | libname_spec='lib$name' |
14459 | soname_spec= |
14460 | shrext_cmds=".so" |
14461 | postinstall_cmds= |
14462 | postuninstall_cmds= |
14463 | finish_cmds= |
14464 | finish_eval= |
14465 | shlibpath_var= |
14466 | shlibpath_overrides_runpath=unknown |
14467 | version_type=none |
14468 | dynamic_linker="$host_os ld.so" |
14469 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
14470 | if test "$GCC" = yes; then |
14471 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
14472 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
14473 | # if the path contains ";" then we assume it to be the separator |
14474 | # otherwise default to the standard path separator (i.e. ":") - it is |
14475 | # assumed that no part of a normal pathname contains ";" but that should |
14476 | # okay in the real world where ";" in dirpaths is itself problematic. |
14477 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
14478 | else |
14479 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
14480 | fi |
14481 | else |
14482 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
14483 | fi |
14484 | need_lib_prefix=unknown |
14485 | hardcode_into_libs=no |
14486 | |
14487 | # when you set need_version to no, make sure it does not cause -set_version |
14488 | # flags to be left without arguments |
14489 | need_version=unknown |
14490 | |
14491 | case $host_os in |
14492 | aix3*) |
14493 | version_type=linux |
14494 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
14495 | shlibpath_var=LIBPATH |
14496 | |
14497 | # AIX 3 has no versioning support, so we append a major version to the name. |
14498 | soname_spec='${libname}${release}${shared_ext}$major' |
14499 | ;; |
14500 | |
14501 | aix4* | aix5*) |
14502 | version_type=linux |
14503 | need_lib_prefix=no |
14504 | need_version=no |
14505 | hardcode_into_libs=yes |
14506 | if test "$host_cpu" = ia64; then |
14507 | # AIX 5 supports IA64 |
14508 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
14509 | shlibpath_var=LD_LIBRARY_PATH |
14510 | else |
14511 | # With GCC up to 2.95.x, collect2 would create an import file |
14512 | # for dependence libraries. The import file would start with |
14513 | # the line `#! .'. This would cause the generated library to |
14514 | # depend on `.', always an invalid library. This was fixed in |
14515 | # development snapshots of GCC prior to 3.0. |
14516 | case $host_os in |
14517 | aix4 | aix4.[01] | aix4.[01].*) |
14518 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
14519 | echo ' yes ' |
14520 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
14521 | : |
14522 | else |
14523 | can_build_shared=no |
14524 | fi |
14525 | ;; |
14526 | esac |
14527 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
14528 | # soname into executable. Probably we can add versioning support to |
14529 | # collect2, so additional links can be useful in future. |
14530 | if test "$aix_use_runtimelinking" = yes; then |
14531 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
14532 | # instead of lib<name>.a to let people know that these are not |
14533 | # typical AIX shared libraries. |
14534 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14535 | else |
14536 | # We preserve .a as extension for shared libraries through AIX4.2 |
14537 | # and later when we are not doing run time linking. |
14538 | library_names_spec='${libname}${release}.a $libname.a' |
14539 | soname_spec='${libname}${release}${shared_ext}$major' |
14540 | fi |
14541 | shlibpath_var=LIBPATH |
14542 | fi |
14543 | ;; |
14544 | |
14545 | amigaos*) |
14546 | library_names_spec='$libname.ixlibrary $libname.a' |
14547 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
14548 | 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' |
14549 | ;; |
14550 | |
14551 | beos*) |
14552 | library_names_spec='${libname}${shared_ext}' |
14553 | dynamic_linker="$host_os ld.so" |
14554 | shlibpath_var=LIBRARY_PATH |
14555 | ;; |
14556 | |
14557 | bsdi[45]*) |
14558 | version_type=linux |
14559 | need_version=no |
14560 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14561 | soname_spec='${libname}${release}${shared_ext}$major' |
14562 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
14563 | shlibpath_var=LD_LIBRARY_PATH |
14564 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
14565 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
14566 | # the default ld.so.conf also contains /usr/contrib/lib and |
14567 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
14568 | # libtool to hard-code these into programs |
14569 | ;; |
14570 | |
14571 | cygwin* | mingw* | pw32*) |
14572 | version_type=windows |
14573 | shrext_cmds=".dll" |
14574 | need_version=no |
14575 | need_lib_prefix=no |
14576 | |
14577 | case $GCC,$host_os in |
14578 | yes,cygwin* | yes,mingw* | yes,pw32*) |
14579 | library_names_spec='$libname.dll.a' |
14580 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
14581 | postinstall_cmds='base_file=`basename \${file}`~ |
14582 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
14583 | dldir=$destdir/`dirname \$dlpath`~ |
14584 | test -d \$dldir || mkdir -p \$dldir~ |
14585 | $install_prog $dir/$dlname \$dldir/$dlname~ |
14586 | chmod a+x \$dldir/$dlname' |
14587 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
14588 | dlpath=$dir/\$dldll~ |
14589 | $rm \$dlpath' |
14590 | shlibpath_overrides_runpath=yes |
14591 | |
14592 | case $host_os in |
14593 | cygwin*) |
14594 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
14595 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
14596 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
14597 | ;; |
14598 | mingw*) |
14599 | # MinGW DLLs use traditional 'lib' prefix |
14600 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
14601 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
14602 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
14603 | # It is most probably a Windows format PATH printed by |
14604 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
14605 | # path with ; separators, and with drive letters. We can handle the |
14606 | # drive letters (cygwin fileutils understands them), so leave them, |
14607 | # especially as we might pass files found there to a mingw objdump, |
14608 | # which wouldn't understand a cygwinified path. Ahh. |
14609 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
14610 | else |
14611 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
14612 | fi |
14613 | ;; |
14614 | pw32*) |
14615 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
14616 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
14617 | ;; |
14618 | esac |
14619 | ;; |
14620 | |
14621 | *) |
14622 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
14623 | ;; |
14624 | esac |
14625 | dynamic_linker='Win32 ld.exe' |
14626 | # FIXME: first we should search . and the directory the executable is in |
14627 | shlibpath_var=PATH |
14628 | ;; |
14629 | |
14630 | darwin* | rhapsody*) |
14631 | dynamic_linker="$host_os dyld" |
14632 | version_type=darwin |
14633 | need_lib_prefix=no |
14634 | need_version=no |
14635 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
14636 | soname_spec='${libname}${release}${major}$shared_ext' |
14637 | shlibpath_overrides_runpath=yes |
14638 | shlibpath_var=DYLD_LIBRARY_PATH |
14639 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
14640 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
14641 | if test "$GCC" = yes; then |
14642 | 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"` |
14643 | else |
14644 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
14645 | fi |
14646 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
14647 | ;; |
14648 | |
14649 | dgux*) |
14650 | version_type=linux |
14651 | need_lib_prefix=no |
14652 | need_version=no |
14653 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
14654 | soname_spec='${libname}${release}${shared_ext}$major' |
14655 | shlibpath_var=LD_LIBRARY_PATH |
14656 | ;; |
14657 | |
14658 | freebsd1*) |
14659 | dynamic_linker=no |
14660 | ;; |
14661 | |
14662 | kfreebsd*-gnu) |
14663 | version_type=linux |
14664 | need_lib_prefix=no |
14665 | need_version=no |
14666 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
14667 | soname_spec='${libname}${release}${shared_ext}$major' |
14668 | shlibpath_var=LD_LIBRARY_PATH |
14669 | shlibpath_overrides_runpath=no |
14670 | hardcode_into_libs=yes |
14671 | dynamic_linker='GNU ld.so' |
14672 | ;; |
14673 | |
14674 | freebsd* | dragonfly*) |
14675 | # DragonFly does not have aout. When/if they implement a new |
14676 | # versioning mechanism, adjust this. |
14677 | if test -x /usr/bin/objformat; then |
14678 | objformat=`/usr/bin/objformat` |
14679 | else |
14680 | case $host_os in |
14681 | freebsd[123]*) objformat=aout ;; |
14682 | *) objformat=elf ;; |
14683 | esac |
14684 | fi |
14685 | version_type=freebsd-$objformat |
14686 | case $version_type in |
14687 | freebsd-elf*) |
14688 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
14689 | need_version=no |
14690 | need_lib_prefix=no |
14691 | ;; |
14692 | freebsd-*) |
14693 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
14694 | need_version=yes |
14695 | ;; |
14696 | esac |
14697 | shlibpath_var=LD_LIBRARY_PATH |
14698 | case $host_os in |
14699 | freebsd2*) |
14700 | shlibpath_overrides_runpath=yes |
14701 | ;; |
14702 | freebsd3.[01]* | freebsdelf3.[01]*) |
14703 | shlibpath_overrides_runpath=yes |
14704 | hardcode_into_libs=yes |
14705 | ;; |
14706 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
14707 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
14708 | shlibpath_overrides_runpath=no |
14709 | hardcode_into_libs=yes |
14710 | ;; |
14711 | freebsd*) # from 4.6 on |
14712 | shlibpath_overrides_runpath=yes |
14713 | hardcode_into_libs=yes |
14714 | ;; |
14715 | esac |
14716 | ;; |
14717 | |
14718 | gnu*) |
14719 | version_type=linux |
14720 | need_lib_prefix=no |
14721 | need_version=no |
14722 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
14723 | soname_spec='${libname}${release}${shared_ext}$major' |
14724 | shlibpath_var=LD_LIBRARY_PATH |
14725 | hardcode_into_libs=yes |
14726 | ;; |
14727 | |
14728 | hpux9* | hpux10* | hpux11*) |
14729 | # Give a soname corresponding to the major version so that dld.sl refuses to |
14730 | # link against other versions. |
14731 | version_type=sunos |
14732 | need_lib_prefix=no |
14733 | need_version=no |
14734 | case $host_cpu in |
14735 | ia64*) |
14736 | shrext_cmds='.so' |
14737 | hardcode_into_libs=yes |
14738 | dynamic_linker="$host_os dld.so" |
14739 | shlibpath_var=LD_LIBRARY_PATH |
14740 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
14741 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14742 | soname_spec='${libname}${release}${shared_ext}$major' |
14743 | if test "X$HPUX_IA64_MODE" = X32; then |
14744 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
14745 | else |
14746 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
14747 | fi |
14748 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
14749 | ;; |
14750 | hppa*64*) |
14751 | shrext_cmds='.sl' |
14752 | hardcode_into_libs=yes |
14753 | dynamic_linker="$host_os dld.sl" |
14754 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
14755 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
14756 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14757 | soname_spec='${libname}${release}${shared_ext}$major' |
14758 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
14759 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
14760 | ;; |
14761 | *) |
14762 | shrext_cmds='.sl' |
14763 | dynamic_linker="$host_os dld.sl" |
14764 | shlibpath_var=SHLIB_PATH |
14765 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
14766 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14767 | soname_spec='${libname}${release}${shared_ext}$major' |
14768 | ;; |
14769 | esac |
14770 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
14771 | postinstall_cmds='chmod 555 $lib' |
14772 | ;; |
14773 | |
14774 | interix3*) |
14775 | version_type=linux |
14776 | need_lib_prefix=no |
14777 | need_version=no |
14778 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
14779 | soname_spec='${libname}${release}${shared_ext}$major' |
14780 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
14781 | shlibpath_var=LD_LIBRARY_PATH |
14782 | shlibpath_overrides_runpath=no |
14783 | hardcode_into_libs=yes |
14784 | ;; |
14785 | |
14786 | irix5* | irix6* | nonstopux*) |
14787 | case $host_os in |
14788 | nonstopux*) version_type=nonstopux ;; |
14789 | *) |
14790 | if test "$lt_cv_prog_gnu_ld" = yes; then |
14791 | version_type=linux |
14792 | else |
14793 | version_type=irix |
14794 | fi ;; |
14795 | esac |
14796 | need_lib_prefix=no |
14797 | need_version=no |
14798 | soname_spec='${libname}${release}${shared_ext}$major' |
14799 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
14800 | case $host_os in |
14801 | irix5* | nonstopux*) |
14802 | libsuff= shlibsuff= |
14803 | ;; |
14804 | *) |
14805 | case $LD in # libtool.m4 will add one of these switches to LD |
14806 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
14807 | libsuff= shlibsuff= libmagic=32-bit;; |
14808 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
14809 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
14810 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
14811 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
14812 | *) libsuff= shlibsuff= libmagic=never-match;; |
14813 | esac |
14814 | ;; |
14815 | esac |
14816 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
14817 | shlibpath_overrides_runpath=no |
14818 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
14819 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
14820 | hardcode_into_libs=yes |
14821 | ;; |
14822 | |
14823 | # No shared lib support for Linux oldld, aout, or coff. |
14824 | linux*oldld* | linux*aout* | linux*coff*) |
14825 | dynamic_linker=no |
14826 | ;; |
14827 | |
14828 | # This must be Linux ELF. |
14829 | linux*) |
14830 | version_type=linux |
14831 | need_lib_prefix=no |
14832 | need_version=no |
14833 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14834 | soname_spec='${libname}${release}${shared_ext}$major' |
14835 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
14836 | shlibpath_var=LD_LIBRARY_PATH |
14837 | shlibpath_overrides_runpath=no |
14838 | # This implies no fast_install, which is unacceptable. |
14839 | # Some rework will be needed to allow for fast_install |
14840 | # before this can be enabled. |
14841 | hardcode_into_libs=yes |
14842 | |
14843 | # find out which ABI we are using |
14844 | libsuff= |
14845 | case "$host_cpu" in |
14846 | x86_64*|s390x*|powerpc64*) |
14847 | echo '#line 14847 "configure"' > conftest.$ac_ext |
14848 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
14849 | (eval $ac_compile) 2>&5 |
14850 | ac_status=$? |
14851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14852 | (exit $ac_status); }; then |
14853 | case `/usr/bin/file conftest.$ac_objext` in |
14854 | *64-bit*) |
14855 | libsuff=64 |
14856 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
14857 | ;; |
14858 | esac |
14859 | fi |
14860 | rm -rf conftest* |
14861 | ;; |
14862 | esac |
14863 | |
14864 | # Append ld.so.conf contents to the search path |
14865 | if test -f /etc/ld.so.conf; then |
14866 | 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' ' '` |
14867 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
14868 | fi |
14869 | |
14870 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
14871 | # powerpc, because MkLinux only supported shared libraries with the |
14872 | # GNU dynamic linker. Since this was broken with cross compilers, |
14873 | # most powerpc-linux boxes support dynamic linking these days and |
14874 | # people can always --disable-shared, the test was removed, and we |
14875 | # assume the GNU/Linux dynamic linker is in use. |
14876 | dynamic_linker='GNU/Linux ld.so' |
14877 | ;; |
14878 | |
14879 | knetbsd*-gnu) |
14880 | version_type=linux |
14881 | need_lib_prefix=no |
14882 | need_version=no |
14883 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
14884 | soname_spec='${libname}${release}${shared_ext}$major' |
14885 | shlibpath_var=LD_LIBRARY_PATH |
14886 | shlibpath_overrides_runpath=no |
14887 | hardcode_into_libs=yes |
14888 | dynamic_linker='GNU ld.so' |
14889 | ;; |
14890 | |
14891 | netbsd*) |
14892 | version_type=sunos |
14893 | need_lib_prefix=no |
14894 | need_version=no |
14895 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14896 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
14897 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
14898 | dynamic_linker='NetBSD (a.out) ld.so' |
14899 | else |
14900 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
14901 | soname_spec='${libname}${release}${shared_ext}$major' |
14902 | dynamic_linker='NetBSD ld.elf_so' |
14903 | fi |
14904 | shlibpath_var=LD_LIBRARY_PATH |
14905 | shlibpath_overrides_runpath=yes |
14906 | hardcode_into_libs=yes |
14907 | ;; |
14908 | |
14909 | newsos6) |
14910 | version_type=linux |
14911 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14912 | shlibpath_var=LD_LIBRARY_PATH |
14913 | shlibpath_overrides_runpath=yes |
14914 | ;; |
14915 | |
14916 | nto-qnx*) |
14917 | version_type=linux |
14918 | need_lib_prefix=no |
14919 | need_version=no |
14920 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14921 | soname_spec='${libname}${release}${shared_ext}$major' |
14922 | shlibpath_var=LD_LIBRARY_PATH |
14923 | shlibpath_overrides_runpath=yes |
14924 | ;; |
14925 | |
14926 | openbsd*) |
14927 | version_type=sunos |
14928 | sys_lib_dlsearch_path_spec="/usr/lib" |
14929 | need_lib_prefix=no |
14930 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
14931 | case $host_os in |
14932 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
14933 | *) need_version=no ;; |
14934 | esac |
14935 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
14936 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
14937 | shlibpath_var=LD_LIBRARY_PATH |
14938 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
14939 | case $host_os in |
14940 | openbsd2.[89] | openbsd2.[89].*) |
14941 | shlibpath_overrides_runpath=no |
14942 | ;; |
14943 | *) |
14944 | shlibpath_overrides_runpath=yes |
14945 | ;; |
14946 | esac |
14947 | else |
14948 | shlibpath_overrides_runpath=yes |
14949 | fi |
14950 | ;; |
14951 | |
14952 | os2*) |
14953 | libname_spec='$name' |
14954 | shrext_cmds=".dll" |
14955 | need_lib_prefix=no |
14956 | library_names_spec='$libname${shared_ext} $libname.a' |
14957 | dynamic_linker='OS/2 ld.exe' |
14958 | shlibpath_var=LIBPATH |
14959 | ;; |
14960 | |
14961 | osf3* | osf4* | osf5*) |
14962 | version_type=osf |
14963 | need_lib_prefix=no |
14964 | need_version=no |
14965 | soname_spec='${libname}${release}${shared_ext}$major' |
14966 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14967 | shlibpath_var=LD_LIBRARY_PATH |
14968 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
14969 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
14970 | ;; |
14971 | |
14972 | solaris*) |
14973 | version_type=linux |
14974 | need_lib_prefix=no |
14975 | need_version=no |
14976 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14977 | soname_spec='${libname}${release}${shared_ext}$major' |
14978 | shlibpath_var=LD_LIBRARY_PATH |
14979 | shlibpath_overrides_runpath=yes |
14980 | hardcode_into_libs=yes |
14981 | # ldd complains unless libraries are executable |
14982 | postinstall_cmds='chmod +x $lib' |
14983 | ;; |
14984 | |
14985 | sunos4*) |
14986 | version_type=sunos |
14987 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
14988 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
14989 | shlibpath_var=LD_LIBRARY_PATH |
14990 | shlibpath_overrides_runpath=yes |
14991 | if test "$with_gnu_ld" = yes; then |
14992 | need_lib_prefix=no |
14993 | fi |
14994 | need_version=yes |
14995 | ;; |
14996 | |
14997 | sysv4 | sysv4.3*) |
14998 | version_type=linux |
14999 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15000 | soname_spec='${libname}${release}${shared_ext}$major' |
15001 | shlibpath_var=LD_LIBRARY_PATH |
15002 | case $host_vendor in |
15003 | sni) |
15004 | shlibpath_overrides_runpath=no |
15005 | need_lib_prefix=no |
15006 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
15007 | runpath_var=LD_RUN_PATH |
15008 | ;; |
15009 | siemens) |
15010 | need_lib_prefix=no |
15011 | ;; |
15012 | motorola) |
15013 | need_lib_prefix=no |
15014 | need_version=no |
15015 | shlibpath_overrides_runpath=no |
15016 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
15017 | ;; |
15018 | esac |
15019 | ;; |
15020 | |
15021 | sysv4*MP*) |
15022 | if test -d /usr/nec ;then |
15023 | version_type=linux |
15024 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
15025 | soname_spec='$libname${shared_ext}.$major' |
15026 | shlibpath_var=LD_LIBRARY_PATH |
15027 | fi |
15028 | ;; |
15029 | |
15030 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
15031 | version_type=freebsd-elf |
15032 | need_lib_prefix=no |
15033 | need_version=no |
15034 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15035 | soname_spec='${libname}${release}${shared_ext}$major' |
15036 | shlibpath_var=LD_LIBRARY_PATH |
15037 | hardcode_into_libs=yes |
15038 | if test "$with_gnu_ld" = yes; then |
15039 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
15040 | shlibpath_overrides_runpath=no |
15041 | else |
15042 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
15043 | shlibpath_overrides_runpath=yes |
15044 | case $host_os in |
15045 | sco3.2v5*) |
15046 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
15047 | ;; |
15048 | esac |
15049 | fi |
15050 | sys_lib_dlsearch_path_spec='/usr/lib' |
15051 | ;; |
15052 | |
15053 | uts4*) |
15054 | version_type=linux |
15055 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15056 | soname_spec='${libname}${release}${shared_ext}$major' |
15057 | shlibpath_var=LD_LIBRARY_PATH |
15058 | ;; |
15059 | |
15060 | *) |
15061 | dynamic_linker=no |
15062 | ;; |
15063 | esac |
15064 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
15065 | echo "${ECHO_T}$dynamic_linker" >&6 |
15066 | test "$dynamic_linker" = no && can_build_shared=no |
15067 | |
15068 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
15069 | if test "$GCC" = yes; then |
15070 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
15071 | fi |
15072 | |
15073 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
15074 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
15075 | hardcode_action_F77= |
15076 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
15077 | test -n "$runpath_var_F77" || \ |
15078 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
15079 | |
15080 | # We can hardcode non-existant directories. |
15081 | if test "$hardcode_direct_F77" != no && |
15082 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
15083 | # have to relink, otherwise we might link with an installed library |
15084 | # when we should be linking with a yet-to-be-installed one |
15085 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
15086 | test "$hardcode_minus_L_F77" != no; then |
15087 | # Linking always hardcodes the temporary library directory. |
15088 | hardcode_action_F77=relink |
15089 | else |
15090 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
15091 | hardcode_action_F77=immediate |
15092 | fi |
15093 | else |
15094 | # We cannot hardcode anything, or else we can only hardcode existing |
15095 | # directories. |
15096 | hardcode_action_F77=unsupported |
15097 | fi |
15098 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
15099 | echo "${ECHO_T}$hardcode_action_F77" >&6 |
15100 | |
15101 | if test "$hardcode_action_F77" = relink; then |
15102 | # Fast installation is not supported |
15103 | enable_fast_install=no |
15104 | elif test "$shlibpath_overrides_runpath" = yes || |
15105 | test "$enable_shared" = no; then |
15106 | # Fast installation is not necessary |
15107 | enable_fast_install=needless |
15108 | fi |
15109 | |
15110 | |
15111 | # The else clause should only fire when bootstrapping the |
15112 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
15113 | # with your package, and you will get complaints that there are |
15114 | # no rules to generate ltmain.sh. |
15115 | if test -f "$ltmain"; then |
15116 | # See if we are running on zsh, and set the options which allow our commands through |
15117 | # without removal of \ escapes. |
15118 | if test -n "${ZSH_VERSION+set}" ; then |
15119 | setopt NO_GLOB_SUBST |
15120 | fi |
15121 | # Now quote all the things that may contain metacharacters while being |
15122 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
15123 | # variables and quote the copies for generation of the libtool script. |
15124 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
15125 | SED SHELL STRIP \ |
15126 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
15127 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
15128 | deplibs_check_method reload_flag reload_cmds need_locks \ |
15129 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
15130 | lt_cv_sys_global_symbol_to_c_name_address \ |
15131 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
15132 | old_postinstall_cmds old_postuninstall_cmds \ |
15133 | compiler_F77 \ |
15134 | CC_F77 \ |
15135 | LD_F77 \ |
15136 | lt_prog_compiler_wl_F77 \ |
15137 | lt_prog_compiler_pic_F77 \ |
15138 | lt_prog_compiler_static_F77 \ |
15139 | lt_prog_compiler_no_builtin_flag_F77 \ |
15140 | export_dynamic_flag_spec_F77 \ |
15141 | thread_safe_flag_spec_F77 \ |
15142 | whole_archive_flag_spec_F77 \ |
15143 | enable_shared_with_static_runtimes_F77 \ |
15144 | old_archive_cmds_F77 \ |
15145 | old_archive_from_new_cmds_F77 \ |
15146 | predep_objects_F77 \ |
15147 | postdep_objects_F77 \ |
15148 | predeps_F77 \ |
15149 | postdeps_F77 \ |
15150 | compiler_lib_search_path_F77 \ |
15151 | archive_cmds_F77 \ |
15152 | archive_expsym_cmds_F77 \ |
15153 | postinstall_cmds_F77 \ |
15154 | postuninstall_cmds_F77 \ |
15155 | old_archive_from_expsyms_cmds_F77 \ |
15156 | allow_undefined_flag_F77 \ |
15157 | no_undefined_flag_F77 \ |
15158 | export_symbols_cmds_F77 \ |
15159 | hardcode_libdir_flag_spec_F77 \ |
15160 | hardcode_libdir_flag_spec_ld_F77 \ |
15161 | hardcode_libdir_separator_F77 \ |
15162 | hardcode_automatic_F77 \ |
15163 | module_cmds_F77 \ |
15164 | module_expsym_cmds_F77 \ |
15165 | lt_cv_prog_compiler_c_o_F77 \ |
15166 | exclude_expsyms_F77 \ |
15167 | include_expsyms_F77; do |
15168 | |
15169 | case $var in |
15170 | old_archive_cmds_F77 | \ |
15171 | old_archive_from_new_cmds_F77 | \ |
15172 | archive_cmds_F77 | \ |
15173 | archive_expsym_cmds_F77 | \ |
15174 | module_cmds_F77 | \ |
15175 | module_expsym_cmds_F77 | \ |
15176 | old_archive_from_expsyms_cmds_F77 | \ |
15177 | export_symbols_cmds_F77 | \ |
15178 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
15179 | postinstall_cmds | postuninstall_cmds | \ |
15180 | old_postinstall_cmds | old_postuninstall_cmds | \ |
15181 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
15182 | # Double-quote double-evaled strings. |
15183 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
15184 | ;; |
15185 | *) |
15186 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
15187 | ;; |
15188 | esac |
15189 | done |
15190 | |
15191 | case $lt_echo in |
15192 | *'\$0 --fallback-echo"') |
15193 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
15194 | ;; |
15195 | esac |
15196 | |
15197 | cfgfile="$ofile" |
15198 | |
15199 | cat <<__EOF__ >> "$cfgfile" |
15200 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
15201 | |
15202 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
15203 | |
15204 | # Shell to use when invoking shell scripts. |
15205 | SHELL=$lt_SHELL |
15206 | |
15207 | # Whether or not to build shared libraries. |
15208 | build_libtool_libs=$enable_shared |
15209 | |
15210 | # Whether or not to build static libraries. |
15211 | build_old_libs=$enable_static |
15212 | |
15213 | # Whether or not to add -lc for building shared libraries. |
15214 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
15215 | |
15216 | # Whether or not to disallow shared libs when runtime libs are static |
15217 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
15218 | |
15219 | # Whether or not to optimize for fast installation. |
15220 | fast_install=$enable_fast_install |
15221 | |
15222 | # The host system. |
15223 | host_alias=$host_alias |
15224 | host=$host |
15225 | host_os=$host_os |
15226 | |
15227 | # The build system. |
15228 | build_alias=$build_alias |
15229 | build=$build |
15230 | build_os=$build_os |
15231 | |
15232 | # An echo program that does not interpret backslashes. |
15233 | echo=$lt_echo |
15234 | |
15235 | # The archiver. |
15236 | AR=$lt_AR |
15237 | AR_FLAGS=$lt_AR_FLAGS |
15238 | |
15239 | # A C compiler. |
15240 | LTCC=$lt_LTCC |
15241 | |
15242 | # LTCC compiler flags. |
15243 | LTCFLAGS=$lt_LTCFLAGS |
15244 | |
15245 | # A language-specific compiler. |
15246 | CC=$lt_compiler_F77 |
15247 | |
15248 | # Is the compiler the GNU C compiler? |
15249 | with_gcc=$GCC_F77 |
15250 | |
15251 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
15252 | gcc_ver=\`gcc -dumpversion\` |
15253 | |
15254 | # An ERE matcher. |
15255 | EGREP=$lt_EGREP |
15256 | |
15257 | # The linker used to build libraries. |
15258 | LD=$lt_LD_F77 |
15259 | |
15260 | # Whether we need hard or soft links. |
15261 | LN_S=$lt_LN_S |
15262 | |
15263 | # A BSD-compatible nm program. |
15264 | NM=$lt_NM |
15265 | |
15266 | # A symbol stripping program |
15267 | STRIP=$lt_STRIP |
15268 | |
15269 | # Used to examine libraries when file_magic_cmd begins "file" |
15270 | MAGIC_CMD=$MAGIC_CMD |
15271 | |
15272 | # Used on cygwin: DLL creation program. |
15273 | DLLTOOL="$DLLTOOL" |
15274 | |
15275 | # Used on cygwin: object dumper. |
15276 | OBJDUMP="$OBJDUMP" |
15277 | |
15278 | # Used on cygwin: assembler. |
15279 | AS="$AS" |
15280 | |
15281 | # The name of the directory that contains temporary libtool files. |
15282 | objdir=$objdir |
15283 | |
15284 | # How to create reloadable object files. |
15285 | reload_flag=$lt_reload_flag |
15286 | reload_cmds=$lt_reload_cmds |
15287 | |
15288 | # How to pass a linker flag through the compiler. |
15289 | wl=$lt_lt_prog_compiler_wl_F77 |
15290 | |
15291 | # Object file suffix (normally "o"). |
15292 | objext="$ac_objext" |
15293 | |
15294 | # Old archive suffix (normally "a"). |
15295 | libext="$libext" |
15296 | |
15297 | # Shared library suffix (normally ".so"). |
15298 | shrext_cmds='$shrext_cmds' |
15299 | |
15300 | # Executable file suffix (normally ""). |
15301 | exeext="$exeext" |
15302 | |
15303 | # Additional compiler flags for building library objects. |
15304 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
15305 | pic_mode=$pic_mode |
15306 | |
15307 | # What is the maximum length of a command? |
15308 | max_cmd_len=$lt_cv_sys_max_cmd_len |
15309 | |
15310 | # Does compiler simultaneously support -c and -o options? |
15311 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
15312 | |
15313 | # Must we lock files when doing compilation? |
15314 | need_locks=$lt_need_locks |
15315 | |
15316 | # Do we need the lib prefix for modules? |
15317 | need_lib_prefix=$need_lib_prefix |
15318 | |
15319 | # Do we need a version for libraries? |
15320 | need_version=$need_version |
15321 | |
15322 | # Whether dlopen is supported. |
15323 | dlopen_support=$enable_dlopen |
15324 | |
15325 | # Whether dlopen of programs is supported. |
15326 | dlopen_self=$enable_dlopen_self |
15327 | |
15328 | # Whether dlopen of statically linked programs is supported. |
15329 | dlopen_self_static=$enable_dlopen_self_static |
15330 | |
15331 | # Compiler flag to prevent dynamic linking. |
15332 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
15333 | |
15334 | # Compiler flag to turn off builtin functions. |
15335 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
15336 | |
15337 | # Compiler flag to allow reflexive dlopens. |
15338 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
15339 | |
15340 | # Compiler flag to generate shared objects directly from archives. |
15341 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
15342 | |
15343 | # Compiler flag to generate thread-safe objects. |
15344 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
15345 | |
15346 | # Library versioning type. |
15347 | version_type=$version_type |
15348 | |
15349 | # Format of library name prefix. |
15350 | libname_spec=$lt_libname_spec |
15351 | |
15352 | # List of archive names. First name is the real one, the rest are links. |
15353 | # The last name is the one that the linker finds with -lNAME. |
15354 | library_names_spec=$lt_library_names_spec |
15355 | |
15356 | # The coded name of the library, if different from the real name. |
15357 | soname_spec=$lt_soname_spec |
15358 | |
15359 | # Commands used to build and install an old-style archive. |
15360 | RANLIB=$lt_RANLIB |
15361 | old_archive_cmds=$lt_old_archive_cmds_F77 |
15362 | old_postinstall_cmds=$lt_old_postinstall_cmds |
15363 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
15364 | |
15365 | # Create an old-style archive from a shared archive. |
15366 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
15367 | |
15368 | # Create a temporary old-style archive to link instead of a shared archive. |
15369 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
15370 | |
15371 | # Commands used to build and install a shared archive. |
15372 | archive_cmds=$lt_archive_cmds_F77 |
15373 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
15374 | postinstall_cmds=$lt_postinstall_cmds |
15375 | postuninstall_cmds=$lt_postuninstall_cmds |
15376 | |
15377 | # Commands used to build a loadable module (assumed same as above if empty) |
15378 | module_cmds=$lt_module_cmds_F77 |
15379 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
15380 | |
15381 | # Commands to strip libraries. |
15382 | old_striplib=$lt_old_striplib |
15383 | striplib=$lt_striplib |
15384 | |
15385 | # Dependencies to place before the objects being linked to create a |
15386 | # shared library. |
15387 | predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
15388 | |
15389 | # Dependencies to place after the objects being linked to create a |
15390 | # shared library. |
15391 | postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
15392 | |
15393 | # Dependencies to place before the objects being linked to create a |
15394 | # shared library. |
15395 | predeps=$lt_predeps_F77 |
15396 | |
15397 | # Dependencies to place after the objects being linked to create a |
15398 | # shared library. |
15399 | postdeps=$lt_postdeps_F77 |
15400 | |
15401 | # The library search path used internally by the compiler when linking |
15402 | # a shared library. |
15403 | 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"\` |
15404 | |
15405 | # Method to check whether dependent libraries are shared objects. |
15406 | deplibs_check_method=$lt_deplibs_check_method |
15407 | |
15408 | # Command to use when deplibs_check_method == file_magic. |
15409 | file_magic_cmd=$lt_file_magic_cmd |
15410 | |
15411 | # Flag that allows shared libraries with undefined symbols to be built. |
15412 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
15413 | |
15414 | # Flag that forces no undefined symbols. |
15415 | no_undefined_flag=$lt_no_undefined_flag_F77 |
15416 | |
15417 | # Commands used to finish a libtool library installation in a directory. |
15418 | finish_cmds=$lt_finish_cmds |
15419 | |
15420 | # Same as above, but a single script fragment to be evaled but not shown. |
15421 | finish_eval=$lt_finish_eval |
15422 | |
15423 | # Take the output of nm and produce a listing of raw symbols and C names. |
15424 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
15425 | |
15426 | # Transform the output of nm in a proper C declaration |
15427 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
15428 | |
15429 | # Transform the output of nm in a C name address pair |
15430 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
15431 | |
15432 | # This is the shared library runtime path variable. |
15433 | runpath_var=$runpath_var |
15434 | |
15435 | # This is the shared library path variable. |
15436 | shlibpath_var=$shlibpath_var |
15437 | |
15438 | # Is shlibpath searched before the hard-coded library search path? |
15439 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
15440 | |
15441 | # How to hardcode a shared library path into an executable. |
15442 | hardcode_action=$hardcode_action_F77 |
15443 | |
15444 | # Whether we should hardcode library paths into libraries. |
15445 | hardcode_into_libs=$hardcode_into_libs |
15446 | |
15447 | # Flag to hardcode \$libdir into a binary during linking. |
15448 | # This must work even if \$libdir does not exist. |
15449 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
15450 | |
15451 | # If ld is used when linking, flag to hardcode \$libdir into |
15452 | # a binary during linking. This must work even if \$libdir does |
15453 | # not exist. |
15454 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
15455 | |
15456 | # Whether we need a single -rpath flag with a separated argument. |
15457 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
15458 | |
15459 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
15460 | # resulting binary. |
15461 | hardcode_direct=$hardcode_direct_F77 |
15462 | |
15463 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
15464 | # resulting binary. |
15465 | hardcode_minus_L=$hardcode_minus_L_F77 |
15466 | |
15467 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
15468 | # the resulting binary. |
15469 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
15470 | |
15471 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
15472 | # and all subsequent libraries and executables linked against it. |
15473 | hardcode_automatic=$hardcode_automatic_F77 |
15474 | |
15475 | # Variables whose values should be saved in libtool wrapper scripts and |
15476 | # restored at relink time. |
15477 | variables_saved_for_relink="$variables_saved_for_relink" |
15478 | |
15479 | # Whether libtool must link a program against all its dependency libraries. |
15480 | link_all_deplibs=$link_all_deplibs_F77 |
15481 | |
15482 | # Compile-time system search path for libraries |
15483 | 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"\` |
15484 | |
15485 | # Run-time system search path for libraries |
15486 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
15487 | |
15488 | # Fix the shell variable \$srcfile for the compiler. |
15489 | fix_srcfile_path="$fix_srcfile_path_F77" |
15490 | |
15491 | # Set to yes if exported symbols are required. |
15492 | always_export_symbols=$always_export_symbols_F77 |
15493 | |
15494 | # The commands to list exported symbols. |
15495 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
15496 | |
15497 | # The commands to extract the exported symbol list from a shared archive. |
15498 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
15499 | |
15500 | # Symbols that should not be listed in the preloaded symbols. |
15501 | exclude_expsyms=$lt_exclude_expsyms_F77 |
15502 | |
15503 | # Symbols that must always be exported. |
15504 | include_expsyms=$lt_include_expsyms_F77 |
15505 | |
15506 | # ### END LIBTOOL TAG CONFIG: $tagname |
15507 | |
15508 | __EOF__ |
15509 | |
15510 | |
15511 | else |
15512 | # If there is no Makefile yet, we rely on a make rule to execute |
15513 | # `config.status --recheck' to rerun these tests and create the |
15514 | # libtool script then. |
15515 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
15516 | if test -f "$ltmain_in"; then |
15517 | test -f Makefile && make "$ltmain" |
15518 | fi |
15519 | fi |
15520 | |
15521 | |
15522 | ac_ext=c |
15523 | ac_cpp='$CPP $CPPFLAGS' |
15524 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
15525 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
15526 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
15527 | |
15528 | CC="$lt_save_CC" |
15529 | |
15530 | else |
15531 | tagname="" |
15532 | fi |
15533 | ;; |
15534 | |
15535 | GCJ) |
15536 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
15537 | |
15538 | |
15539 | |
15540 | # Source file extension for Java test sources. |
15541 | ac_ext=java |
15542 | |
15543 | # Object file extension for compiled Java test sources. |
15544 | objext=o |
15545 | objext_GCJ=$objext |
15546 | |
15547 | # Code to be used in simple compile tests |
15548 | lt_simple_compile_test_code="class foo {}\n" |
15549 | |
15550 | # Code to be used in simple link tests |
15551 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
15552 | |
15553 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
15554 | |
15555 | # If no C compiler was specified, use CC. |
15556 | LTCC=${LTCC-"$CC"} |
15557 | |
15558 | # If no C compiler flags were specified, use CFLAGS. |
15559 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
15560 | |
15561 | # Allow CC to be a program name with arguments. |
15562 | compiler=$CC |
15563 | |
15564 | |
15565 | # save warnings/boilerplate of simple test code |
15566 | ac_outfile=conftest.$ac_objext |
15567 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
15568 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
15569 | _lt_compiler_boilerplate=`cat conftest.err` |
15570 | $rm conftest* |
15571 | |
15572 | ac_outfile=conftest.$ac_objext |
15573 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
15574 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
15575 | _lt_linker_boilerplate=`cat conftest.err` |
15576 | $rm conftest* |
15577 | |
15578 | |
15579 | # Allow CC to be a program name with arguments. |
15580 | lt_save_CC="$CC" |
15581 | CC=${GCJ-"gcj"} |
15582 | compiler=$CC |
15583 | compiler_GCJ=$CC |
15584 | for cc_temp in $compiler""; do |
15585 | case $cc_temp in |
15586 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
15587 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
15588 | \-*) ;; |
15589 | *) break;; |
15590 | esac |
15591 | done |
15592 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
15593 | |
15594 | |
15595 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
15596 | archive_cmds_need_lc_GCJ=no |
15597 | |
15598 | old_archive_cmds_GCJ=$old_archive_cmds |
15599 | |
15600 | |
15601 | lt_prog_compiler_no_builtin_flag_GCJ= |
15602 | |
15603 | if test "$GCC" = yes; then |
15604 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
15605 | |
15606 | |
15607 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
15608 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
15609 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
15610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15611 | else |
15612 | lt_cv_prog_compiler_rtti_exceptions=no |
15613 | ac_outfile=conftest.$ac_objext |
15614 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
15615 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
15616 | # Insert the option either (1) after the last *FLAGS variable, or |
15617 | # (2) before a word containing "conftest.", or (3) at the end. |
15618 | # Note that $ac_compile itself does not contain backslashes and begins |
15619 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
15620 | # The option is referenced via a variable to avoid confusing sed. |
15621 | lt_compile=`echo "$ac_compile" | $SED \ |
15622 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
15623 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
15624 | -e 's:$: $lt_compiler_flag:'` |
15625 | (eval echo "\"\$as_me:15625: $lt_compile\"" >&5) |
15626 | (eval "$lt_compile" 2>conftest.err) |
15627 | ac_status=$? |
15628 | cat conftest.err >&5 |
15629 | echo "$as_me:15629: \$? = $ac_status" >&5 |
15630 | if (exit $ac_status) && test -s "$ac_outfile"; then |
15631 | # The compiler can only warn and ignore the option if not recognized |
15632 | # So say no if there are warnings other than the usual output. |
15633 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
15634 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
15635 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
15636 | lt_cv_prog_compiler_rtti_exceptions=yes |
15637 | fi |
15638 | fi |
15639 | $rm conftest* |
15640 | |
15641 | fi |
15642 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
15643 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
15644 | |
15645 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
15646 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
15647 | else |
15648 | : |
15649 | fi |
15650 | |
15651 | fi |
15652 | |
15653 | lt_prog_compiler_wl_GCJ= |
15654 | lt_prog_compiler_pic_GCJ= |
15655 | lt_prog_compiler_static_GCJ= |
15656 | |
15657 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
15658 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
15659 | |
15660 | if test "$GCC" = yes; then |
15661 | lt_prog_compiler_wl_GCJ='-Wl,' |
15662 | lt_prog_compiler_static_GCJ='-static' |
15663 | |
15664 | case $host_os in |
15665 | aix*) |
15666 | # All AIX code is PIC. |
15667 | if test "$host_cpu" = ia64; then |
15668 | # AIX 5 now supports IA64 processor |
15669 | lt_prog_compiler_static_GCJ='-Bstatic' |
15670 | fi |
15671 | ;; |
15672 | |
15673 | amigaos*) |
15674 | # FIXME: we need at least 68020 code to build shared libraries, but |
15675 | # adding the `-m68020' flag to GCC prevents building anything better, |
15676 | # like `-m68040'. |
15677 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
15678 | ;; |
15679 | |
15680 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
15681 | # PIC is the default for these OSes. |
15682 | ;; |
15683 | |
15684 | mingw* | pw32* | os2*) |
15685 | # This hack is so that the source file can tell whether it is being |
15686 | # built for inclusion in a dll (and should export symbols for example). |
15687 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
15688 | ;; |
15689 | |
15690 | darwin* | rhapsody*) |
15691 | # PIC is the default on this platform |
15692 | # Common symbols not allowed in MH_DYLIB files |
15693 | lt_prog_compiler_pic_GCJ='-fno-common' |
15694 | ;; |
15695 | |
15696 | interix3*) |
15697 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
15698 | # Instead, we relocate shared libraries at runtime. |
15699 | ;; |
15700 | |
15701 | msdosdjgpp*) |
15702 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
15703 | # on systems that don't support them. |
15704 | lt_prog_compiler_can_build_shared_GCJ=no |
15705 | enable_shared=no |
15706 | ;; |
15707 | |
15708 | sysv4*MP*) |
15709 | if test -d /usr/nec; then |
15710 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
15711 | fi |
15712 | ;; |
15713 | |
15714 | hpux*) |
15715 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
15716 | # not for PA HP-UX. |
15717 | case $host_cpu in |
15718 | hppa*64*|ia64*) |
15719 | # +Z the default |
15720 | ;; |
15721 | *) |
15722 | lt_prog_compiler_pic_GCJ='-fPIC' |
15723 | ;; |
15724 | esac |
15725 | ;; |
15726 | |
15727 | *) |
15728 | lt_prog_compiler_pic_GCJ='-fPIC' |
15729 | ;; |
15730 | esac |
15731 | else |
15732 | # PORTME Check for flag to pass linker flags through the system compiler. |
15733 | case $host_os in |
15734 | aix*) |
15735 | lt_prog_compiler_wl_GCJ='-Wl,' |
15736 | if test "$host_cpu" = ia64; then |
15737 | # AIX 5 now supports IA64 processor |
15738 | lt_prog_compiler_static_GCJ='-Bstatic' |
15739 | else |
15740 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
15741 | fi |
15742 | ;; |
15743 | darwin*) |
15744 | # PIC is the default on this platform |
15745 | # Common symbols not allowed in MH_DYLIB files |
15746 | case $cc_basename in |
15747 | xlc*) |
15748 | lt_prog_compiler_pic_GCJ='-qnocommon' |
15749 | lt_prog_compiler_wl_GCJ='-Wl,' |
15750 | ;; |
15751 | esac |
15752 | ;; |
15753 | |
15754 | mingw* | pw32* | os2*) |
15755 | # This hack is so that the source file can tell whether it is being |
15756 | # built for inclusion in a dll (and should export symbols for example). |
15757 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
15758 | ;; |
15759 | |
15760 | hpux9* | hpux10* | hpux11*) |
15761 | lt_prog_compiler_wl_GCJ='-Wl,' |
15762 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
15763 | # not for PA HP-UX. |
15764 | case $host_cpu in |
15765 | hppa*64*|ia64*) |
15766 | # +Z the default |
15767 | ;; |
15768 | *) |
15769 | lt_prog_compiler_pic_GCJ='+Z' |
15770 | ;; |
15771 | esac |
15772 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
15773 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
15774 | ;; |
15775 | |
15776 | irix5* | irix6* | nonstopux*) |
15777 | lt_prog_compiler_wl_GCJ='-Wl,' |
15778 | # PIC (with -KPIC) is the default. |
15779 | lt_prog_compiler_static_GCJ='-non_shared' |
15780 | ;; |
15781 | |
15782 | newsos6) |
15783 | lt_prog_compiler_pic_GCJ='-KPIC' |
15784 | lt_prog_compiler_static_GCJ='-Bstatic' |
15785 | ;; |
15786 | |
15787 | linux*) |
15788 | case $cc_basename in |
15789 | icc* | ecc*) |
15790 | lt_prog_compiler_wl_GCJ='-Wl,' |
15791 | lt_prog_compiler_pic_GCJ='-KPIC' |
15792 | lt_prog_compiler_static_GCJ='-static' |
15793 | ;; |
15794 | pgcc* | pgf77* | pgf90* | pgf95*) |
15795 | # Portland Group compilers (*not* the Pentium gcc compiler, |
15796 | # which looks to be a dead project) |
15797 | lt_prog_compiler_wl_GCJ='-Wl,' |
15798 | lt_prog_compiler_pic_GCJ='-fpic' |
15799 | lt_prog_compiler_static_GCJ='-Bstatic' |
15800 | ;; |
15801 | ccc*) |
15802 | lt_prog_compiler_wl_GCJ='-Wl,' |
15803 | # All Alpha code is PIC. |
15804 | lt_prog_compiler_static_GCJ='-non_shared' |
15805 | ;; |
15806 | esac |
15807 | ;; |
15808 | |
15809 | osf3* | osf4* | osf5*) |
15810 | lt_prog_compiler_wl_GCJ='-Wl,' |
15811 | # All OSF/1 code is PIC. |
15812 | lt_prog_compiler_static_GCJ='-non_shared' |
15813 | ;; |
15814 | |
15815 | solaris*) |
15816 | lt_prog_compiler_pic_GCJ='-KPIC' |
15817 | lt_prog_compiler_static_GCJ='-Bstatic' |
15818 | case $cc_basename in |
15819 | f77* | f90* | f95*) |
15820 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
15821 | *) |
15822 | lt_prog_compiler_wl_GCJ='-Wl,';; |
15823 | esac |
15824 | ;; |
15825 | |
15826 | sunos4*) |
15827 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
15828 | lt_prog_compiler_pic_GCJ='-PIC' |
15829 | lt_prog_compiler_static_GCJ='-Bstatic' |
15830 | ;; |
15831 | |
15832 | sysv4 | sysv4.2uw2* | sysv4.3*) |
15833 | lt_prog_compiler_wl_GCJ='-Wl,' |
15834 | lt_prog_compiler_pic_GCJ='-KPIC' |
15835 | lt_prog_compiler_static_GCJ='-Bstatic' |
15836 | ;; |
15837 | |
15838 | sysv4*MP*) |
15839 | if test -d /usr/nec ;then |
15840 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
15841 | lt_prog_compiler_static_GCJ='-Bstatic' |
15842 | fi |
15843 | ;; |
15844 | |
15845 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
15846 | lt_prog_compiler_wl_GCJ='-Wl,' |
15847 | lt_prog_compiler_pic_GCJ='-KPIC' |
15848 | lt_prog_compiler_static_GCJ='-Bstatic' |
15849 | ;; |
15850 | |
15851 | unicos*) |
15852 | lt_prog_compiler_wl_GCJ='-Wl,' |
15853 | lt_prog_compiler_can_build_shared_GCJ=no |
15854 | ;; |
15855 | |
15856 | uts4*) |
15857 | lt_prog_compiler_pic_GCJ='-pic' |
15858 | lt_prog_compiler_static_GCJ='-Bstatic' |
15859 | ;; |
15860 | |
15861 | *) |
15862 | lt_prog_compiler_can_build_shared_GCJ=no |
15863 | ;; |
15864 | esac |
15865 | fi |
15866 | |
15867 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
15868 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
15869 | |
15870 | # |
15871 | # Check to make sure the PIC flag actually works. |
15872 | # |
15873 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
15874 | |
15875 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
15876 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
15877 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
15878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15879 | else |
15880 | lt_prog_compiler_pic_works_GCJ=no |
15881 | ac_outfile=conftest.$ac_objext |
15882 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
15883 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
15884 | # Insert the option either (1) after the last *FLAGS variable, or |
15885 | # (2) before a word containing "conftest.", or (3) at the end. |
15886 | # Note that $ac_compile itself does not contain backslashes and begins |
15887 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
15888 | # The option is referenced via a variable to avoid confusing sed. |
15889 | lt_compile=`echo "$ac_compile" | $SED \ |
15890 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
15891 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
15892 | -e 's:$: $lt_compiler_flag:'` |
15893 | (eval echo "\"\$as_me:15893: $lt_compile\"" >&5) |
15894 | (eval "$lt_compile" 2>conftest.err) |
15895 | ac_status=$? |
15896 | cat conftest.err >&5 |
15897 | echo "$as_me:15897: \$? = $ac_status" >&5 |
15898 | if (exit $ac_status) && test -s "$ac_outfile"; then |
15899 | # The compiler can only warn and ignore the option if not recognized |
15900 | # So say no if there are warnings other than the usual output. |
15901 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
15902 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
15903 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
15904 | lt_prog_compiler_pic_works_GCJ=yes |
15905 | fi |
15906 | fi |
15907 | $rm conftest* |
15908 | |
15909 | fi |
15910 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
15911 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
15912 | |
15913 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
15914 | case $lt_prog_compiler_pic_GCJ in |
15915 | "" | " "*) ;; |
15916 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
15917 | esac |
15918 | else |
15919 | lt_prog_compiler_pic_GCJ= |
15920 | lt_prog_compiler_can_build_shared_GCJ=no |
15921 | fi |
15922 | |
15923 | fi |
15924 | case $host_os in |
15925 | # For platforms which do not support PIC, -DPIC is meaningless: |
15926 | *djgpp*) |
15927 | lt_prog_compiler_pic_GCJ= |
15928 | ;; |
15929 | *) |
15930 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
15931 | ;; |
15932 | esac |
15933 | |
15934 | # |
15935 | # Check to make sure the static flag actually works. |
15936 | # |
15937 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
15938 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
15939 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
15940 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
15941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15942 | else |
15943 | lt_prog_compiler_static_works_GCJ=no |
15944 | save_LDFLAGS="$LDFLAGS" |
15945 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
15946 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
15947 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
15948 | # The linker can only warn and ignore the option if not recognized |
15949 | # So say no if there are warnings |
15950 | if test -s conftest.err; then |
15951 | # Append any errors to the config.log. |
15952 | cat conftest.err 1>&5 |
15953 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
15954 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
15955 | if diff conftest.exp conftest.er2 >/dev/null; then |
15956 | lt_prog_compiler_static_works_GCJ=yes |
15957 | fi |
15958 | else |
15959 | lt_prog_compiler_static_works_GCJ=yes |
15960 | fi |
15961 | fi |
15962 | $rm conftest* |
15963 | LDFLAGS="$save_LDFLAGS" |
15964 | |
15965 | fi |
15966 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
15967 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 |
15968 | |
15969 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
15970 | : |
15971 | else |
15972 | lt_prog_compiler_static_GCJ= |
15973 | fi |
15974 | |
15975 | |
15976 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
15977 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
15978 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
15979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15980 | else |
15981 | lt_cv_prog_compiler_c_o_GCJ=no |
15982 | $rm -r conftest 2>/dev/null |
15983 | mkdir conftest |
15984 | cd conftest |
15985 | mkdir out |
15986 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
15987 | |
15988 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
15989 | # Insert the option either (1) after the last *FLAGS variable, or |
15990 | # (2) before a word containing "conftest.", or (3) at the end. |
15991 | # Note that $ac_compile itself does not contain backslashes and begins |
15992 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
15993 | lt_compile=`echo "$ac_compile" | $SED \ |
15994 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
15995 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
15996 | -e 's:$: $lt_compiler_flag:'` |
15997 | (eval echo "\"\$as_me:15997: $lt_compile\"" >&5) |
15998 | (eval "$lt_compile" 2>out/conftest.err) |
15999 | ac_status=$? |
16000 | cat out/conftest.err >&5 |
16001 | echo "$as_me:16001: \$? = $ac_status" >&5 |
16002 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16003 | then |
16004 | # The compiler can only warn and ignore the option if not recognized |
16005 | # So say no if there are warnings |
16006 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
16007 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
16008 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
16009 | lt_cv_prog_compiler_c_o_GCJ=yes |
16010 | fi |
16011 | fi |
16012 | chmod u+w . 2>&5 |
16013 | $rm conftest* |
16014 | # SGI C++ compiler will create directory out/ii_files/ for |
16015 | # template instantiation |
16016 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
16017 | $rm out/* && rmdir out |
16018 | cd .. |
16019 | rmdir conftest |
16020 | $rm conftest* |
16021 | |
16022 | fi |
16023 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
16024 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
16025 | |
16026 | |
16027 | hard_links="nottested" |
16028 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
16029 | # do not overwrite the value of need_locks provided by the user |
16030 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
16031 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
16032 | hard_links=yes |
16033 | $rm conftest* |
16034 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16035 | touch conftest.a |
16036 | ln conftest.a conftest.b 2>&5 || hard_links=no |
16037 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16038 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
16039 | echo "${ECHO_T}$hard_links" >&6 |
16040 | if test "$hard_links" = no; then |
16041 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
16042 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
16043 | need_locks=warn |
16044 | fi |
16045 | else |
16046 | need_locks=no |
16047 | fi |
16048 | |
16049 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
16050 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
16051 | |
16052 | runpath_var= |
16053 | allow_undefined_flag_GCJ= |
16054 | enable_shared_with_static_runtimes_GCJ=no |
16055 | archive_cmds_GCJ= |
16056 | archive_expsym_cmds_GCJ= |
16057 | old_archive_From_new_cmds_GCJ= |
16058 | old_archive_from_expsyms_cmds_GCJ= |
16059 | export_dynamic_flag_spec_GCJ= |
16060 | whole_archive_flag_spec_GCJ= |
16061 | thread_safe_flag_spec_GCJ= |
16062 | hardcode_libdir_flag_spec_GCJ= |
16063 | hardcode_libdir_flag_spec_ld_GCJ= |
16064 | hardcode_libdir_separator_GCJ= |
16065 | hardcode_direct_GCJ=no |
16066 | hardcode_minus_L_GCJ=no |
16067 | hardcode_shlibpath_var_GCJ=unsupported |
16068 | link_all_deplibs_GCJ=unknown |
16069 | hardcode_automatic_GCJ=no |
16070 | module_cmds_GCJ= |
16071 | module_expsym_cmds_GCJ= |
16072 | always_export_symbols_GCJ=no |
16073 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
16074 | # include_expsyms should be a list of space-separated symbols to be *always* |
16075 | # included in the symbol list |
16076 | include_expsyms_GCJ= |
16077 | # exclude_expsyms can be an extended regexp of symbols to exclude |
16078 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
16079 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
16080 | # as well as any symbol that contains `d'. |
16081 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
16082 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
16083 | # platforms (ab)use it in PIC code, but their linkers get confused if |
16084 | # the symbol is explicitly referenced. Since portable code cannot |
16085 | # rely on this symbol name, it's probably fine to never include it in |
16086 | # preloaded symbol tables. |
16087 | extract_expsyms_cmds= |
16088 | # Just being paranoid about ensuring that cc_basename is set. |
16089 | for cc_temp in $compiler""; do |
16090 | case $cc_temp in |
16091 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16092 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16093 | \-*) ;; |
16094 | *) break;; |
16095 | esac |
16096 | done |
16097 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16098 | |
16099 | case $host_os in |
16100 | cygwin* | mingw* | pw32*) |
16101 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
16102 | # When not using gcc, we currently assume that we are using |
16103 | # Microsoft Visual C++. |
16104 | if test "$GCC" != yes; then |
16105 | with_gnu_ld=no |
16106 | fi |
16107 | ;; |
16108 | interix*) |
16109 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
16110 | with_gnu_ld=yes |
16111 | ;; |
16112 | openbsd*) |
16113 | with_gnu_ld=no |
16114 | ;; |
16115 | esac |
16116 | |
16117 | ld_shlibs_GCJ=yes |
16118 | if test "$with_gnu_ld" = yes; then |
16119 | # If archive_cmds runs LD, not CC, wlarc should be empty |
16120 | wlarc='${wl}' |
16121 | |
16122 | # Set some defaults for GNU ld with shared library support. These |
16123 | # are reset later if shared libraries are not supported. Putting them |
16124 | # here allows them to be overridden if necessary. |
16125 | runpath_var=LD_RUN_PATH |
16126 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
16127 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
16128 | # ancient GNU ld didn't support --whole-archive et. al. |
16129 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
16130 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
16131 | else |
16132 | whole_archive_flag_spec_GCJ= |
16133 | fi |
16134 | supports_anon_versioning=no |
16135 | case `$LD -v 2>/dev/null` in |
16136 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
16137 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
16138 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
16139 | *\ 2.11.*) ;; # other 2.11 versions |
16140 | *) supports_anon_versioning=yes ;; |
16141 | esac |
16142 | |
16143 | # See if GNU ld supports shared libraries. |
16144 | case $host_os in |
16145 | aix3* | aix4* | aix5*) |
16146 | # On AIX/PPC, the GNU linker is very broken |
16147 | if test "$host_cpu" != ia64; then |
16148 | ld_shlibs_GCJ=no |
16149 | cat <<EOF 1>&2 |
16150 | |
16151 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
16152 | *** to be unable to reliably create shared libraries on AIX. |
16153 | *** Therefore, libtool is disabling shared libraries support. If you |
16154 | *** really care for shared libraries, you may want to modify your PATH |
16155 | *** so that a non-GNU linker is found, and then restart. |
16156 | |
16157 | EOF |
16158 | fi |
16159 | ;; |
16160 | |
16161 | amigaos*) |
16162 | 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)' |
16163 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16164 | hardcode_minus_L_GCJ=yes |
16165 | |
16166 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
16167 | # that the semantics of dynamic libraries on AmigaOS, at least up |
16168 | # to version 4, is to share data among multiple programs linked |
16169 | # with the same dynamic library. Since this doesn't match the |
16170 | # behavior of shared libraries on other platforms, we can't use |
16171 | # them. |
16172 | ld_shlibs_GCJ=no |
16173 | ;; |
16174 | |
16175 | beos*) |
16176 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16177 | allow_undefined_flag_GCJ=unsupported |
16178 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
16179 | # support --undefined. This deserves some investigation. FIXME |
16180 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16181 | else |
16182 | ld_shlibs_GCJ=no |
16183 | fi |
16184 | ;; |
16185 | |
16186 | cygwin* | mingw* | pw32*) |
16187 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
16188 | # as there is no search path for DLLs. |
16189 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16190 | allow_undefined_flag_GCJ=unsupported |
16191 | always_export_symbols_GCJ=no |
16192 | enable_shared_with_static_runtimes_GCJ=yes |
16193 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
16194 | |
16195 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
16196 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16197 | # If the export-symbols file already is a .def file (1st line |
16198 | # is EXPORTS), use it as is; otherwise, prepend... |
16199 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
16200 | cp $export_symbols $output_objdir/$soname.def; |
16201 | else |
16202 | echo EXPORTS > $output_objdir/$soname.def; |
16203 | cat $export_symbols >> $output_objdir/$soname.def; |
16204 | fi~ |
16205 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16206 | else |
16207 | ld_shlibs_GCJ=no |
16208 | fi |
16209 | ;; |
16210 | |
16211 | interix3*) |
16212 | hardcode_direct_GCJ=no |
16213 | hardcode_shlibpath_var_GCJ=no |
16214 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
16215 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16216 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
16217 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
16218 | # default) and relocated if they conflict, which is a slow very memory |
16219 | # consuming and fragmenting process. To avoid this, we pick a random, |
16220 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
16221 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
16222 | 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' |
16223 | 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' |
16224 | ;; |
16225 | |
16226 | linux*) |
16227 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16228 | tmp_addflag= |
16229 | case $cc_basename,$host_cpu in |
16230 | pgcc*) # Portland Group C compiler |
16231 | 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' |
16232 | tmp_addflag=' $pic_flag' |
16233 | ;; |
16234 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
16235 | 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' |
16236 | tmp_addflag=' $pic_flag -Mnomain' ;; |
16237 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
16238 | tmp_addflag=' -i_dynamic' ;; |
16239 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
16240 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
16241 | ifc* | ifort*) # Intel Fortran compiler |
16242 | tmp_addflag=' -nofor_main' ;; |
16243 | esac |
16244 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16245 | |
16246 | if test $supports_anon_versioning = yes; then |
16247 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
16248 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
16249 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
16250 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
16251 | fi |
16252 | else |
16253 | ld_shlibs_GCJ=no |
16254 | fi |
16255 | ;; |
16256 | |
16257 | netbsd*) |
16258 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
16259 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
16260 | wlarc= |
16261 | else |
16262 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16263 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16264 | fi |
16265 | ;; |
16266 | |
16267 | solaris*) |
16268 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
16269 | ld_shlibs_GCJ=no |
16270 | cat <<EOF 1>&2 |
16271 | |
16272 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
16273 | *** create shared libraries on Solaris systems. Therefore, libtool |
16274 | *** is disabling shared libraries support. We urge you to upgrade GNU |
16275 | *** binutils to release 2.9.1 or newer. Another option is to modify |
16276 | *** your PATH or compiler configuration so that the native linker is |
16277 | *** used, and then restart. |
16278 | |
16279 | EOF |
16280 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16281 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16282 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16283 | else |
16284 | ld_shlibs_GCJ=no |
16285 | fi |
16286 | ;; |
16287 | |
16288 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
16289 | case `$LD -v 2>&1` in |
16290 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
16291 | ld_shlibs_GCJ=no |
16292 | cat <<_LT_EOF 1>&2 |
16293 | |
16294 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
16295 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
16296 | *** is disabling shared libraries support. We urge you to upgrade GNU |
16297 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
16298 | *** your PATH or compiler configuration so that the native linker is |
16299 | *** used, and then restart. |
16300 | |
16301 | _LT_EOF |
16302 | ;; |
16303 | *) |
16304 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16305 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
16306 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
16307 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
16308 | else |
16309 | ld_shlibs_GCJ=no |
16310 | fi |
16311 | ;; |
16312 | esac |
16313 | ;; |
16314 | |
16315 | sunos4*) |
16316 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16317 | wlarc= |
16318 | hardcode_direct_GCJ=yes |
16319 | hardcode_shlibpath_var_GCJ=no |
16320 | ;; |
16321 | |
16322 | *) |
16323 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16324 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16325 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16326 | else |
16327 | ld_shlibs_GCJ=no |
16328 | fi |
16329 | ;; |
16330 | esac |
16331 | |
16332 | if test "$ld_shlibs_GCJ" = no; then |
16333 | runpath_var= |
16334 | hardcode_libdir_flag_spec_GCJ= |
16335 | export_dynamic_flag_spec_GCJ= |
16336 | whole_archive_flag_spec_GCJ= |
16337 | fi |
16338 | else |
16339 | # PORTME fill in a description of your system's linker (not GNU ld) |
16340 | case $host_os in |
16341 | aix3*) |
16342 | allow_undefined_flag_GCJ=unsupported |
16343 | always_export_symbols_GCJ=yes |
16344 | 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' |
16345 | # Note: this linker hardcodes the directories in LIBPATH if there |
16346 | # are no directories specified by -L. |
16347 | hardcode_minus_L_GCJ=yes |
16348 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
16349 | # Neither direct hardcoding nor static linking is supported with a |
16350 | # broken collect2. |
16351 | hardcode_direct_GCJ=unsupported |
16352 | fi |
16353 | ;; |
16354 | |
16355 | aix4* | aix5*) |
16356 | if test "$host_cpu" = ia64; then |
16357 | # On IA64, the linker does run time linking by default, so we don't |
16358 | # have to do anything special. |
16359 | aix_use_runtimelinking=no |
16360 | exp_sym_flag='-Bexport' |
16361 | no_entry_flag="" |
16362 | else |
16363 | # If we're using GNU nm, then we don't want the "-C" option. |
16364 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
16365 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
16366 | 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' |
16367 | else |
16368 | 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' |
16369 | fi |
16370 | aix_use_runtimelinking=no |
16371 | |
16372 | # Test if we are trying to use run time linking or normal |
16373 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
16374 | # need to do runtime linking. |
16375 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
16376 | for ld_flag in $LDFLAGS; do |
16377 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
16378 | aix_use_runtimelinking=yes |
16379 | break |
16380 | fi |
16381 | done |
16382 | ;; |
16383 | esac |
16384 | |
16385 | exp_sym_flag='-bexport' |
16386 | no_entry_flag='-bnoentry' |
16387 | fi |
16388 | |
16389 | # When large executables or shared objects are built, AIX ld can |
16390 | # have problems creating the table of contents. If linking a library |
16391 | # or program results in "error TOC overflow" add -mminimal-toc to |
16392 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
16393 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
16394 | |
16395 | archive_cmds_GCJ='' |
16396 | hardcode_direct_GCJ=yes |
16397 | hardcode_libdir_separator_GCJ=':' |
16398 | link_all_deplibs_GCJ=yes |
16399 | |
16400 | if test "$GCC" = yes; then |
16401 | case $host_os in aix4.[012]|aix4.[012].*) |
16402 | # We only want to do this on AIX 4.2 and lower, the check |
16403 | # below for broken collect2 doesn't work under 4.3+ |
16404 | collect2name=`${CC} -print-prog-name=collect2` |
16405 | if test -f "$collect2name" && \ |
16406 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
16407 | then |
16408 | # We have reworked collect2 |
16409 | hardcode_direct_GCJ=yes |
16410 | else |
16411 | # We have old collect2 |
16412 | hardcode_direct_GCJ=unsupported |
16413 | # It fails to find uninstalled libraries when the uninstalled |
16414 | # path is not listed in the libpath. Setting hardcode_minus_L |
16415 | # to unsupported forces relinking |
16416 | hardcode_minus_L_GCJ=yes |
16417 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16418 | hardcode_libdir_separator_GCJ= |
16419 | fi |
16420 | ;; |
16421 | esac |
16422 | shared_flag='-shared' |
16423 | if test "$aix_use_runtimelinking" = yes; then |
16424 | shared_flag="$shared_flag "'${wl}-G' |
16425 | fi |
16426 | else |
16427 | # not using gcc |
16428 | if test "$host_cpu" = ia64; then |
16429 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
16430 | # chokes on -Wl,-G. The following line is correct: |
16431 | shared_flag='-G' |
16432 | else |
16433 | if test "$aix_use_runtimelinking" = yes; then |
16434 | shared_flag='${wl}-G' |
16435 | else |
16436 | shared_flag='${wl}-bM:SRE' |
16437 | fi |
16438 | fi |
16439 | fi |
16440 | |
16441 | # It seems that -bexpall does not export symbols beginning with |
16442 | # underscore (_), so it is better to generate a list of symbols to export. |
16443 | always_export_symbols_GCJ=yes |
16444 | if test "$aix_use_runtimelinking" = yes; then |
16445 | # Warning - without using the other runtime loading flags (-brtl), |
16446 | # -berok will link without error, but may produce a broken library. |
16447 | allow_undefined_flag_GCJ='-berok' |
16448 | # Determine the default libpath from the value encoded in an empty executable. |
16449 | cat >conftest.$ac_ext <<_ACEOF |
16450 | /* confdefs.h. */ |
16451 | _ACEOF |
16452 | cat confdefs.h >>conftest.$ac_ext |
16453 | cat >>conftest.$ac_ext <<_ACEOF |
16454 | /* end confdefs.h. */ |
16455 | |
16456 | int |
16457 | main () |
16458 | { |
16459 | |
16460 | ; |
16461 | return 0; |
16462 | } |
16463 | _ACEOF |
16464 | rm -f conftest.$ac_objext conftest$ac_exeext |
16465 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16466 | (eval $ac_link) 2>conftest.er1 |
16467 | ac_status=$? |
16468 | grep -v '^ *+' conftest.er1 >conftest.err |
16469 | rm -f conftest.er1 |
16470 | cat conftest.err >&5 |
16471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16472 | (exit $ac_status); } && |
16473 | { ac_try='test -z "$ac_c_werror_flag" |
16474 | || test ! -s conftest.err' |
16475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16476 | (eval $ac_try) 2>&5 |
16477 | ac_status=$? |
16478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16479 | (exit $ac_status); }; } && |
16480 | { ac_try='test -s conftest$ac_exeext' |
16481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16482 | (eval $ac_try) 2>&5 |
16483 | ac_status=$? |
16484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16485 | (exit $ac_status); }; }; then |
16486 | |
16487 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
16488 | }'` |
16489 | # Check for a 64-bit object if we didn't find anything. |
16490 | 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; } |
16491 | }'`; fi |
16492 | else |
16493 | echo "$as_me: failed program was:" >&5 |
16494 | sed 's/^/| /' conftest.$ac_ext >&5 |
16495 | |
16496 | fi |
16497 | rm -f conftest.err conftest.$ac_objext \ |
16498 | conftest$ac_exeext conftest.$ac_ext |
16499 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
16500 | |
16501 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
16502 | 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" |
16503 | else |
16504 | if test "$host_cpu" = ia64; then |
16505 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
16506 | allow_undefined_flag_GCJ="-z nodefs" |
16507 | 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" |
16508 | else |
16509 | # Determine the default libpath from the value encoded in an empty executable. |
16510 | cat >conftest.$ac_ext <<_ACEOF |
16511 | /* confdefs.h. */ |
16512 | _ACEOF |
16513 | cat confdefs.h >>conftest.$ac_ext |
16514 | cat >>conftest.$ac_ext <<_ACEOF |
16515 | /* end confdefs.h. */ |
16516 | |
16517 | int |
16518 | main () |
16519 | { |
16520 | |
16521 | ; |
16522 | return 0; |
16523 | } |
16524 | _ACEOF |
16525 | rm -f conftest.$ac_objext conftest$ac_exeext |
16526 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16527 | (eval $ac_link) 2>conftest.er1 |
16528 | ac_status=$? |
16529 | grep -v '^ *+' conftest.er1 >conftest.err |
16530 | rm -f conftest.er1 |
16531 | cat conftest.err >&5 |
16532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16533 | (exit $ac_status); } && |
16534 | { ac_try='test -z "$ac_c_werror_flag" |
16535 | || test ! -s conftest.err' |
16536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16537 | (eval $ac_try) 2>&5 |
16538 | ac_status=$? |
16539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16540 | (exit $ac_status); }; } && |
16541 | { ac_try='test -s conftest$ac_exeext' |
16542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16543 | (eval $ac_try) 2>&5 |
16544 | ac_status=$? |
16545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16546 | (exit $ac_status); }; }; then |
16547 | |
16548 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
16549 | }'` |
16550 | # Check for a 64-bit object if we didn't find anything. |
16551 | 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; } |
16552 | }'`; fi |
16553 | else |
16554 | echo "$as_me: failed program was:" >&5 |
16555 | sed 's/^/| /' conftest.$ac_ext >&5 |
16556 | |
16557 | fi |
16558 | rm -f conftest.err conftest.$ac_objext \ |
16559 | conftest$ac_exeext conftest.$ac_ext |
16560 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
16561 | |
16562 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
16563 | # Warning - without using the other run time loading flags, |
16564 | # -berok will link without error, but may produce a broken library. |
16565 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
16566 | allow_undefined_flag_GCJ=' ${wl}-berok' |
16567 | # Exported symbols can be pulled into shared objects from archives |
16568 | whole_archive_flag_spec_GCJ='$convenience' |
16569 | archive_cmds_need_lc_GCJ=yes |
16570 | # This is similar to how AIX traditionally builds its shared libraries. |
16571 | 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' |
16572 | fi |
16573 | fi |
16574 | ;; |
16575 | |
16576 | amigaos*) |
16577 | 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)' |
16578 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16579 | hardcode_minus_L_GCJ=yes |
16580 | # see comment about different semantics on the GNU ld section |
16581 | ld_shlibs_GCJ=no |
16582 | ;; |
16583 | |
16584 | bsdi[45]*) |
16585 | export_dynamic_flag_spec_GCJ=-rdynamic |
16586 | ;; |
16587 | |
16588 | cygwin* | mingw* | pw32*) |
16589 | # When not using gcc, we currently assume that we are using |
16590 | # Microsoft Visual C++. |
16591 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
16592 | # no search path for DLLs. |
16593 | hardcode_libdir_flag_spec_GCJ=' ' |
16594 | allow_undefined_flag_GCJ=unsupported |
16595 | # Tell ltmain to make .lib files, not .a files. |
16596 | libext=lib |
16597 | # Tell ltmain to make .dll files, not .so files. |
16598 | shrext_cmds=".dll" |
16599 | # FIXME: Setting linknames here is a bad hack. |
16600 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
16601 | # The linker will automatically build a .lib file if we build a DLL. |
16602 | old_archive_From_new_cmds_GCJ='true' |
16603 | # FIXME: Should let the user specify the lib program. |
16604 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
16605 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
16606 | enable_shared_with_static_runtimes_GCJ=yes |
16607 | ;; |
16608 | |
16609 | darwin* | rhapsody*) |
16610 | case $host_os in |
16611 | rhapsody* | darwin1.[012]) |
16612 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
16613 | ;; |
16614 | *) # Darwin 1.3 on |
16615 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
16616 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
16617 | else |
16618 | case ${MACOSX_DEPLOYMENT_TARGET} in |
16619 | 10.[012]) |
16620 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
16621 | ;; |
16622 | 10.*) |
16623 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
16624 | ;; |
16625 | esac |
16626 | fi |
16627 | ;; |
16628 | esac |
16629 | archive_cmds_need_lc_GCJ=no |
16630 | hardcode_direct_GCJ=no |
16631 | hardcode_automatic_GCJ=yes |
16632 | hardcode_shlibpath_var_GCJ=unsupported |
16633 | whole_archive_flag_spec_GCJ='' |
16634 | link_all_deplibs_GCJ=yes |
16635 | if test "$GCC" = yes ; then |
16636 | output_verbose_link_cmd='echo' |
16637 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
16638 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
16639 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
16640 | 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}' |
16641 | 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}' |
16642 | else |
16643 | case $cc_basename in |
16644 | xlc*) |
16645 | output_verbose_link_cmd='echo' |
16646 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
16647 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
16648 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
16649 | 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}' |
16650 | 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}' |
16651 | ;; |
16652 | *) |
16653 | ld_shlibs_GCJ=no |
16654 | ;; |
16655 | esac |
16656 | fi |
16657 | ;; |
16658 | |
16659 | dgux*) |
16660 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16661 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16662 | hardcode_shlibpath_var_GCJ=no |
16663 | ;; |
16664 | |
16665 | freebsd1*) |
16666 | ld_shlibs_GCJ=no |
16667 | ;; |
16668 | |
16669 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
16670 | # support. Future versions do this automatically, but an explicit c++rt0.o |
16671 | # does not break anything, and helps significantly (at the cost of a little |
16672 | # extra space). |
16673 | freebsd2.2*) |
16674 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
16675 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16676 | hardcode_direct_GCJ=yes |
16677 | hardcode_shlibpath_var_GCJ=no |
16678 | ;; |
16679 | |
16680 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
16681 | freebsd2*) |
16682 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16683 | hardcode_direct_GCJ=yes |
16684 | hardcode_minus_L_GCJ=yes |
16685 | hardcode_shlibpath_var_GCJ=no |
16686 | ;; |
16687 | |
16688 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
16689 | freebsd* | kfreebsd*-gnu | dragonfly*) |
16690 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
16691 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16692 | hardcode_direct_GCJ=yes |
16693 | hardcode_shlibpath_var_GCJ=no |
16694 | ;; |
16695 | |
16696 | hpux9*) |
16697 | if test "$GCC" = yes; then |
16698 | 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' |
16699 | else |
16700 | 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' |
16701 | fi |
16702 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
16703 | hardcode_libdir_separator_GCJ=: |
16704 | hardcode_direct_GCJ=yes |
16705 | |
16706 | # hardcode_minus_L: Not really in the search PATH, |
16707 | # but as the default location of the library. |
16708 | hardcode_minus_L_GCJ=yes |
16709 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16710 | ;; |
16711 | |
16712 | hpux10*) |
16713 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
16714 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
16715 | else |
16716 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
16717 | fi |
16718 | if test "$with_gnu_ld" = no; then |
16719 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
16720 | hardcode_libdir_separator_GCJ=: |
16721 | |
16722 | hardcode_direct_GCJ=yes |
16723 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16724 | |
16725 | # hardcode_minus_L: Not really in the search PATH, |
16726 | # but as the default location of the library. |
16727 | hardcode_minus_L_GCJ=yes |
16728 | fi |
16729 | ;; |
16730 | |
16731 | hpux11*) |
16732 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
16733 | case $host_cpu in |
16734 | hppa*64*) |
16735 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16736 | ;; |
16737 | ia64*) |
16738 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
16739 | ;; |
16740 | *) |
16741 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
16742 | ;; |
16743 | esac |
16744 | else |
16745 | case $host_cpu in |
16746 | hppa*64*) |
16747 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16748 | ;; |
16749 | ia64*) |
16750 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
16751 | ;; |
16752 | *) |
16753 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
16754 | ;; |
16755 | esac |
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 | case $host_cpu in |
16762 | hppa*64*|ia64*) |
16763 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
16764 | hardcode_direct_GCJ=no |
16765 | hardcode_shlibpath_var_GCJ=no |
16766 | ;; |
16767 | *) |
16768 | hardcode_direct_GCJ=yes |
16769 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16770 | |
16771 | # hardcode_minus_L: Not really in the search PATH, |
16772 | # but as the default location of the library. |
16773 | hardcode_minus_L_GCJ=yes |
16774 | ;; |
16775 | esac |
16776 | fi |
16777 | ;; |
16778 | |
16779 | irix5* | irix6* | nonstopux*) |
16780 | if test "$GCC" = yes; then |
16781 | 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' |
16782 | else |
16783 | 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' |
16784 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
16785 | fi |
16786 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16787 | hardcode_libdir_separator_GCJ=: |
16788 | link_all_deplibs_GCJ=yes |
16789 | ;; |
16790 | |
16791 | netbsd*) |
16792 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
16793 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
16794 | else |
16795 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
16796 | fi |
16797 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16798 | hardcode_direct_GCJ=yes |
16799 | hardcode_shlibpath_var_GCJ=no |
16800 | ;; |
16801 | |
16802 | newsos6) |
16803 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16804 | hardcode_direct_GCJ=yes |
16805 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16806 | hardcode_libdir_separator_GCJ=: |
16807 | hardcode_shlibpath_var_GCJ=no |
16808 | ;; |
16809 | |
16810 | openbsd*) |
16811 | hardcode_direct_GCJ=yes |
16812 | hardcode_shlibpath_var_GCJ=no |
16813 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
16814 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
16815 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
16816 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
16817 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16818 | else |
16819 | case $host_os in |
16820 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
16821 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16822 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16823 | ;; |
16824 | *) |
16825 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
16826 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
16827 | ;; |
16828 | esac |
16829 | fi |
16830 | ;; |
16831 | |
16832 | os2*) |
16833 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16834 | hardcode_minus_L_GCJ=yes |
16835 | allow_undefined_flag_GCJ=unsupported |
16836 | 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' |
16837 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
16838 | ;; |
16839 | |
16840 | osf3*) |
16841 | if test "$GCC" = yes; then |
16842 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
16843 | 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' |
16844 | else |
16845 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
16846 | 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' |
16847 | fi |
16848 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16849 | hardcode_libdir_separator_GCJ=: |
16850 | ;; |
16851 | |
16852 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
16853 | if test "$GCC" = yes; then |
16854 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
16855 | 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' |
16856 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16857 | else |
16858 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
16859 | 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' |
16860 | 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~ |
16861 | $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' |
16862 | |
16863 | # Both c and cxx compiler support -rpath directly |
16864 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
16865 | fi |
16866 | hardcode_libdir_separator_GCJ=: |
16867 | ;; |
16868 | |
16869 | solaris*) |
16870 | no_undefined_flag_GCJ=' -z text' |
16871 | if test "$GCC" = yes; then |
16872 | wlarc='${wl}' |
16873 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16874 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
16875 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
16876 | else |
16877 | wlarc='' |
16878 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16879 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
16880 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
16881 | fi |
16882 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16883 | hardcode_shlibpath_var_GCJ=no |
16884 | case $host_os in |
16885 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
16886 | *) |
16887 | # The compiler driver will combine linker options so we |
16888 | # cannot just pass the convience library names through |
16889 | # without $wl, iff we do not link with $LD. |
16890 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
16891 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
16892 | case $wlarc in |
16893 | '') |
16894 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
16895 | *) |
16896 | 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' ;; |
16897 | esac ;; |
16898 | esac |
16899 | link_all_deplibs_GCJ=yes |
16900 | ;; |
16901 | |
16902 | sunos4*) |
16903 | if test "x$host_vendor" = xsequent; then |
16904 | # Use $CC to link under sequent, because it throws in some extra .o |
16905 | # files that make .init and .fini sections work. |
16906 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
16907 | else |
16908 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
16909 | fi |
16910 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16911 | hardcode_direct_GCJ=yes |
16912 | hardcode_minus_L_GCJ=yes |
16913 | hardcode_shlibpath_var_GCJ=no |
16914 | ;; |
16915 | |
16916 | sysv4) |
16917 | case $host_vendor in |
16918 | sni) |
16919 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16920 | hardcode_direct_GCJ=yes # is this really true??? |
16921 | ;; |
16922 | siemens) |
16923 | ## LD is ld it makes a PLAMLIB |
16924 | ## CC just makes a GrossModule. |
16925 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
16926 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
16927 | hardcode_direct_GCJ=no |
16928 | ;; |
16929 | motorola) |
16930 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16931 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
16932 | ;; |
16933 | esac |
16934 | runpath_var='LD_RUN_PATH' |
16935 | hardcode_shlibpath_var_GCJ=no |
16936 | ;; |
16937 | |
16938 | sysv4.3*) |
16939 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16940 | hardcode_shlibpath_var_GCJ=no |
16941 | export_dynamic_flag_spec_GCJ='-Bexport' |
16942 | ;; |
16943 | |
16944 | sysv4*MP*) |
16945 | if test -d /usr/nec; then |
16946 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16947 | hardcode_shlibpath_var_GCJ=no |
16948 | runpath_var=LD_RUN_PATH |
16949 | hardcode_runpath_var=yes |
16950 | ld_shlibs_GCJ=yes |
16951 | fi |
16952 | ;; |
16953 | |
16954 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
16955 | no_undefined_flag_GCJ='${wl}-z,text' |
16956 | archive_cmds_need_lc_GCJ=no |
16957 | hardcode_shlibpath_var_GCJ=no |
16958 | runpath_var='LD_RUN_PATH' |
16959 | |
16960 | if test "$GCC" = yes; then |
16961 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
16962 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
16963 | else |
16964 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
16965 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
16966 | fi |
16967 | ;; |
16968 | |
16969 | sysv5* | sco3.2v5* | sco5v6*) |
16970 | # Note: We can NOT use -z defs as we might desire, because we do not |
16971 | # link with -lc, and that would cause any symbols used from libc to |
16972 | # always be unresolved, which means just about no library would |
16973 | # ever link correctly. If we're not using GNU ld we use -z text |
16974 | # though, which does catch some bad symbols but isn't as heavy-handed |
16975 | # as -z defs. |
16976 | no_undefined_flag_GCJ='${wl}-z,text' |
16977 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
16978 | archive_cmds_need_lc_GCJ=no |
16979 | hardcode_shlibpath_var_GCJ=no |
16980 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
16981 | hardcode_libdir_separator_GCJ=':' |
16982 | link_all_deplibs_GCJ=yes |
16983 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
16984 | runpath_var='LD_RUN_PATH' |
16985 | |
16986 | if test "$GCC" = yes; then |
16987 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16988 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16989 | else |
16990 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16991 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16992 | fi |
16993 | ;; |
16994 | |
16995 | uts4*) |
16996 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16997 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16998 | hardcode_shlibpath_var_GCJ=no |
16999 | ;; |
17000 | |
17001 | *) |
17002 | ld_shlibs_GCJ=no |
17003 | ;; |
17004 | esac |
17005 | fi |
17006 | |
17007 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
17008 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
17009 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
17010 | |
17011 | # |
17012 | # Do we need to explicitly link libc? |
17013 | # |
17014 | case "x$archive_cmds_need_lc_GCJ" in |
17015 | x|xyes) |
17016 | # Assume -lc should be added |
17017 | archive_cmds_need_lc_GCJ=yes |
17018 | |
17019 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
17020 | case $archive_cmds_GCJ in |
17021 | *'~'*) |
17022 | # FIXME: we may have to deal with multi-command sequences. |
17023 | ;; |
17024 | '$CC '*) |
17025 | # Test whether the compiler implicitly links with -lc since on some |
17026 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
17027 | # to ld, don't add -lc before -lgcc. |
17028 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
17029 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
17030 | $rm conftest* |
17031 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
17032 | |
17033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17034 | (eval $ac_compile) 2>&5 |
17035 | ac_status=$? |
17036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17037 | (exit $ac_status); } 2>conftest.err; then |
17038 | soname=conftest |
17039 | lib=conftest |
17040 | libobjs=conftest.$ac_objext |
17041 | deplibs= |
17042 | wl=$lt_prog_compiler_wl_GCJ |
17043 | pic_flag=$lt_prog_compiler_pic_GCJ |
17044 | compiler_flags=-v |
17045 | linker_flags=-v |
17046 | verstring= |
17047 | output_objdir=. |
17048 | libname=conftest |
17049 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
17050 | allow_undefined_flag_GCJ= |
17051 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
17052 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
17053 | ac_status=$? |
17054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17055 | (exit $ac_status); } |
17056 | then |
17057 | archive_cmds_need_lc_GCJ=no |
17058 | else |
17059 | archive_cmds_need_lc_GCJ=yes |
17060 | fi |
17061 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
17062 | else |
17063 | cat conftest.err 1>&5 |
17064 | fi |
17065 | $rm conftest* |
17066 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
17067 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
17068 | ;; |
17069 | esac |
17070 | fi |
17071 | ;; |
17072 | esac |
17073 | |
17074 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
17075 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
17076 | library_names_spec= |
17077 | libname_spec='lib$name' |
17078 | soname_spec= |
17079 | shrext_cmds=".so" |
17080 | postinstall_cmds= |
17081 | postuninstall_cmds= |
17082 | finish_cmds= |
17083 | finish_eval= |
17084 | shlibpath_var= |
17085 | shlibpath_overrides_runpath=unknown |
17086 | version_type=none |
17087 | dynamic_linker="$host_os ld.so" |
17088 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
17089 | if test "$GCC" = yes; then |
17090 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17091 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
17092 | # if the path contains ";" then we assume it to be the separator |
17093 | # otherwise default to the standard path separator (i.e. ":") - it is |
17094 | # assumed that no part of a normal pathname contains ";" but that should |
17095 | # okay in the real world where ";" in dirpaths is itself problematic. |
17096 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17097 | else |
17098 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17099 | fi |
17100 | else |
17101 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
17102 | fi |
17103 | need_lib_prefix=unknown |
17104 | hardcode_into_libs=no |
17105 | |
17106 | # when you set need_version to no, make sure it does not cause -set_version |
17107 | # flags to be left without arguments |
17108 | need_version=unknown |
17109 | |
17110 | case $host_os in |
17111 | aix3*) |
17112 | version_type=linux |
17113 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
17114 | shlibpath_var=LIBPATH |
17115 | |
17116 | # AIX 3 has no versioning support, so we append a major version to the name. |
17117 | soname_spec='${libname}${release}${shared_ext}$major' |
17118 | ;; |
17119 | |
17120 | aix4* | aix5*) |
17121 | version_type=linux |
17122 | need_lib_prefix=no |
17123 | need_version=no |
17124 | hardcode_into_libs=yes |
17125 | if test "$host_cpu" = ia64; then |
17126 | # AIX 5 supports IA64 |
17127 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
17128 | shlibpath_var=LD_LIBRARY_PATH |
17129 | else |
17130 | # With GCC up to 2.95.x, collect2 would create an import file |
17131 | # for dependence libraries. The import file would start with |
17132 | # the line `#! .'. This would cause the generated library to |
17133 | # depend on `.', always an invalid library. This was fixed in |
17134 | # development snapshots of GCC prior to 3.0. |
17135 | case $host_os in |
17136 | aix4 | aix4.[01] | aix4.[01].*) |
17137 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
17138 | echo ' yes ' |
17139 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
17140 | : |
17141 | else |
17142 | can_build_shared=no |
17143 | fi |
17144 | ;; |
17145 | esac |
17146 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
17147 | # soname into executable. Probably we can add versioning support to |
17148 | # collect2, so additional links can be useful in future. |
17149 | if test "$aix_use_runtimelinking" = yes; then |
17150 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
17151 | # instead of lib<name>.a to let people know that these are not |
17152 | # typical AIX shared libraries. |
17153 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17154 | else |
17155 | # We preserve .a as extension for shared libraries through AIX4.2 |
17156 | # and later when we are not doing run time linking. |
17157 | library_names_spec='${libname}${release}.a $libname.a' |
17158 | soname_spec='${libname}${release}${shared_ext}$major' |
17159 | fi |
17160 | shlibpath_var=LIBPATH |
17161 | fi |
17162 | ;; |
17163 | |
17164 | amigaos*) |
17165 | library_names_spec='$libname.ixlibrary $libname.a' |
17166 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
17167 | 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' |
17168 | ;; |
17169 | |
17170 | beos*) |
17171 | library_names_spec='${libname}${shared_ext}' |
17172 | dynamic_linker="$host_os ld.so" |
17173 | shlibpath_var=LIBRARY_PATH |
17174 | ;; |
17175 | |
17176 | bsdi[45]*) |
17177 | version_type=linux |
17178 | need_version=no |
17179 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17180 | soname_spec='${libname}${release}${shared_ext}$major' |
17181 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
17182 | shlibpath_var=LD_LIBRARY_PATH |
17183 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
17184 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
17185 | # the default ld.so.conf also contains /usr/contrib/lib and |
17186 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
17187 | # libtool to hard-code these into programs |
17188 | ;; |
17189 | |
17190 | cygwin* | mingw* | pw32*) |
17191 | version_type=windows |
17192 | shrext_cmds=".dll" |
17193 | need_version=no |
17194 | need_lib_prefix=no |
17195 | |
17196 | case $GCC,$host_os in |
17197 | yes,cygwin* | yes,mingw* | yes,pw32*) |
17198 | library_names_spec='$libname.dll.a' |
17199 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
17200 | postinstall_cmds='base_file=`basename \${file}`~ |
17201 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
17202 | dldir=$destdir/`dirname \$dlpath`~ |
17203 | test -d \$dldir || mkdir -p \$dldir~ |
17204 | $install_prog $dir/$dlname \$dldir/$dlname~ |
17205 | chmod a+x \$dldir/$dlname' |
17206 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
17207 | dlpath=$dir/\$dldll~ |
17208 | $rm \$dlpath' |
17209 | shlibpath_overrides_runpath=yes |
17210 | |
17211 | case $host_os in |
17212 | cygwin*) |
17213 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
17214 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17215 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
17216 | ;; |
17217 | mingw*) |
17218 | # MinGW DLLs use traditional 'lib' prefix |
17219 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17220 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17221 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
17222 | # It is most probably a Windows format PATH printed by |
17223 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
17224 | # path with ; separators, and with drive letters. We can handle the |
17225 | # drive letters (cygwin fileutils understands them), so leave them, |
17226 | # especially as we might pass files found there to a mingw objdump, |
17227 | # which wouldn't understand a cygwinified path. Ahh. |
17228 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17229 | else |
17230 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17231 | fi |
17232 | ;; |
17233 | pw32*) |
17234 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
17235 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17236 | ;; |
17237 | esac |
17238 | ;; |
17239 | |
17240 | *) |
17241 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
17242 | ;; |
17243 | esac |
17244 | dynamic_linker='Win32 ld.exe' |
17245 | # FIXME: first we should search . and the directory the executable is in |
17246 | shlibpath_var=PATH |
17247 | ;; |
17248 | |
17249 | darwin* | rhapsody*) |
17250 | dynamic_linker="$host_os dyld" |
17251 | version_type=darwin |
17252 | need_lib_prefix=no |
17253 | need_version=no |
17254 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
17255 | soname_spec='${libname}${release}${major}$shared_ext' |
17256 | shlibpath_overrides_runpath=yes |
17257 | shlibpath_var=DYLD_LIBRARY_PATH |
17258 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
17259 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
17260 | if test "$GCC" = yes; then |
17261 | 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"` |
17262 | else |
17263 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
17264 | fi |
17265 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
17266 | ;; |
17267 | |
17268 | dgux*) |
17269 | version_type=linux |
17270 | need_lib_prefix=no |
17271 | need_version=no |
17272 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
17273 | soname_spec='${libname}${release}${shared_ext}$major' |
17274 | shlibpath_var=LD_LIBRARY_PATH |
17275 | ;; |
17276 | |
17277 | freebsd1*) |
17278 | dynamic_linker=no |
17279 | ;; |
17280 | |
17281 | kfreebsd*-gnu) |
17282 | version_type=linux |
17283 | need_lib_prefix=no |
17284 | need_version=no |
17285 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17286 | soname_spec='${libname}${release}${shared_ext}$major' |
17287 | shlibpath_var=LD_LIBRARY_PATH |
17288 | shlibpath_overrides_runpath=no |
17289 | hardcode_into_libs=yes |
17290 | dynamic_linker='GNU ld.so' |
17291 | ;; |
17292 | |
17293 | freebsd* | dragonfly*) |
17294 | # DragonFly does not have aout. When/if they implement a new |
17295 | # versioning mechanism, adjust this. |
17296 | if test -x /usr/bin/objformat; then |
17297 | objformat=`/usr/bin/objformat` |
17298 | else |
17299 | case $host_os in |
17300 | freebsd[123]*) objformat=aout ;; |
17301 | *) objformat=elf ;; |
17302 | esac |
17303 | fi |
17304 | version_type=freebsd-$objformat |
17305 | case $version_type in |
17306 | freebsd-elf*) |
17307 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
17308 | need_version=no |
17309 | need_lib_prefix=no |
17310 | ;; |
17311 | freebsd-*) |
17312 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
17313 | need_version=yes |
17314 | ;; |
17315 | esac |
17316 | shlibpath_var=LD_LIBRARY_PATH |
17317 | case $host_os in |
17318 | freebsd2*) |
17319 | shlibpath_overrides_runpath=yes |
17320 | ;; |
17321 | freebsd3.[01]* | freebsdelf3.[01]*) |
17322 | shlibpath_overrides_runpath=yes |
17323 | hardcode_into_libs=yes |
17324 | ;; |
17325 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
17326 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
17327 | shlibpath_overrides_runpath=no |
17328 | hardcode_into_libs=yes |
17329 | ;; |
17330 | freebsd*) # from 4.6 on |
17331 | shlibpath_overrides_runpath=yes |
17332 | hardcode_into_libs=yes |
17333 | ;; |
17334 | esac |
17335 | ;; |
17336 | |
17337 | gnu*) |
17338 | version_type=linux |
17339 | need_lib_prefix=no |
17340 | need_version=no |
17341 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
17342 | soname_spec='${libname}${release}${shared_ext}$major' |
17343 | shlibpath_var=LD_LIBRARY_PATH |
17344 | hardcode_into_libs=yes |
17345 | ;; |
17346 | |
17347 | hpux9* | hpux10* | hpux11*) |
17348 | # Give a soname corresponding to the major version so that dld.sl refuses to |
17349 | # link against other versions. |
17350 | version_type=sunos |
17351 | need_lib_prefix=no |
17352 | need_version=no |
17353 | case $host_cpu in |
17354 | ia64*) |
17355 | shrext_cmds='.so' |
17356 | hardcode_into_libs=yes |
17357 | dynamic_linker="$host_os dld.so" |
17358 | shlibpath_var=LD_LIBRARY_PATH |
17359 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
17360 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17361 | soname_spec='${libname}${release}${shared_ext}$major' |
17362 | if test "X$HPUX_IA64_MODE" = X32; then |
17363 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
17364 | else |
17365 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
17366 | fi |
17367 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
17368 | ;; |
17369 | hppa*64*) |
17370 | shrext_cmds='.sl' |
17371 | hardcode_into_libs=yes |
17372 | dynamic_linker="$host_os dld.sl" |
17373 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
17374 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
17375 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17376 | soname_spec='${libname}${release}${shared_ext}$major' |
17377 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
17378 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
17379 | ;; |
17380 | *) |
17381 | shrext_cmds='.sl' |
17382 | dynamic_linker="$host_os dld.sl" |
17383 | shlibpath_var=SHLIB_PATH |
17384 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
17385 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17386 | soname_spec='${libname}${release}${shared_ext}$major' |
17387 | ;; |
17388 | esac |
17389 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
17390 | postinstall_cmds='chmod 555 $lib' |
17391 | ;; |
17392 | |
17393 | interix3*) |
17394 | version_type=linux |
17395 | need_lib_prefix=no |
17396 | need_version=no |
17397 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17398 | soname_spec='${libname}${release}${shared_ext}$major' |
17399 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
17400 | shlibpath_var=LD_LIBRARY_PATH |
17401 | shlibpath_overrides_runpath=no |
17402 | hardcode_into_libs=yes |
17403 | ;; |
17404 | |
17405 | irix5* | irix6* | nonstopux*) |
17406 | case $host_os in |
17407 | nonstopux*) version_type=nonstopux ;; |
17408 | *) |
17409 | if test "$lt_cv_prog_gnu_ld" = yes; then |
17410 | version_type=linux |
17411 | else |
17412 | version_type=irix |
17413 | fi ;; |
17414 | esac |
17415 | need_lib_prefix=no |
17416 | need_version=no |
17417 | soname_spec='${libname}${release}${shared_ext}$major' |
17418 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
17419 | case $host_os in |
17420 | irix5* | nonstopux*) |
17421 | libsuff= shlibsuff= |
17422 | ;; |
17423 | *) |
17424 | case $LD in # libtool.m4 will add one of these switches to LD |
17425 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
17426 | libsuff= shlibsuff= libmagic=32-bit;; |
17427 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
17428 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
17429 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
17430 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
17431 | *) libsuff= shlibsuff= libmagic=never-match;; |
17432 | esac |
17433 | ;; |
17434 | esac |
17435 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
17436 | shlibpath_overrides_runpath=no |
17437 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
17438 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
17439 | hardcode_into_libs=yes |
17440 | ;; |
17441 | |
17442 | # No shared lib support for Linux oldld, aout, or coff. |
17443 | linux*oldld* | linux*aout* | linux*coff*) |
17444 | dynamic_linker=no |
17445 | ;; |
17446 | |
17447 | # This must be Linux ELF. |
17448 | linux*) |
17449 | version_type=linux |
17450 | need_lib_prefix=no |
17451 | need_version=no |
17452 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17453 | soname_spec='${libname}${release}${shared_ext}$major' |
17454 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
17455 | shlibpath_var=LD_LIBRARY_PATH |
17456 | shlibpath_overrides_runpath=no |
17457 | # This implies no fast_install, which is unacceptable. |
17458 | # Some rework will be needed to allow for fast_install |
17459 | # before this can be enabled. |
17460 | hardcode_into_libs=yes |
17461 | |
17462 | # find out which ABI we are using |
17463 | libsuff= |
17464 | case "$host_cpu" in |
17465 | x86_64*|s390x*|powerpc64*) |
17466 | echo '#line 17466 "configure"' > conftest.$ac_ext |
17467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17468 | (eval $ac_compile) 2>&5 |
17469 | ac_status=$? |
17470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17471 | (exit $ac_status); }; then |
17472 | case `/usr/bin/file conftest.$ac_objext` in |
17473 | *64-bit*) |
17474 | libsuff=64 |
17475 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
17476 | ;; |
17477 | esac |
17478 | fi |
17479 | rm -rf conftest* |
17480 | ;; |
17481 | esac |
17482 | |
17483 | # Append ld.so.conf contents to the search path |
17484 | if test -f /etc/ld.so.conf; then |
17485 | 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' ' '` |
17486 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
17487 | fi |
17488 | |
17489 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
17490 | # powerpc, because MkLinux only supported shared libraries with the |
17491 | # GNU dynamic linker. Since this was broken with cross compilers, |
17492 | # most powerpc-linux boxes support dynamic linking these days and |
17493 | # people can always --disable-shared, the test was removed, and we |
17494 | # assume the GNU/Linux dynamic linker is in use. |
17495 | dynamic_linker='GNU/Linux ld.so' |
17496 | ;; |
17497 | |
17498 | knetbsd*-gnu) |
17499 | version_type=linux |
17500 | need_lib_prefix=no |
17501 | need_version=no |
17502 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17503 | soname_spec='${libname}${release}${shared_ext}$major' |
17504 | shlibpath_var=LD_LIBRARY_PATH |
17505 | shlibpath_overrides_runpath=no |
17506 | hardcode_into_libs=yes |
17507 | dynamic_linker='GNU ld.so' |
17508 | ;; |
17509 | |
17510 | netbsd*) |
17511 | version_type=sunos |
17512 | need_lib_prefix=no |
17513 | need_version=no |
17514 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17515 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17516 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
17517 | dynamic_linker='NetBSD (a.out) ld.so' |
17518 | else |
17519 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17520 | soname_spec='${libname}${release}${shared_ext}$major' |
17521 | dynamic_linker='NetBSD ld.elf_so' |
17522 | fi |
17523 | shlibpath_var=LD_LIBRARY_PATH |
17524 | shlibpath_overrides_runpath=yes |
17525 | hardcode_into_libs=yes |
17526 | ;; |
17527 | |
17528 | newsos6) |
17529 | version_type=linux |
17530 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17531 | shlibpath_var=LD_LIBRARY_PATH |
17532 | shlibpath_overrides_runpath=yes |
17533 | ;; |
17534 | |
17535 | nto-qnx*) |
17536 | version_type=linux |
17537 | need_lib_prefix=no |
17538 | need_version=no |
17539 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17540 | soname_spec='${libname}${release}${shared_ext}$major' |
17541 | shlibpath_var=LD_LIBRARY_PATH |
17542 | shlibpath_overrides_runpath=yes |
17543 | ;; |
17544 | |
17545 | openbsd*) |
17546 | version_type=sunos |
17547 | sys_lib_dlsearch_path_spec="/usr/lib" |
17548 | need_lib_prefix=no |
17549 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
17550 | case $host_os in |
17551 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
17552 | *) need_version=no ;; |
17553 | esac |
17554 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17555 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
17556 | shlibpath_var=LD_LIBRARY_PATH |
17557 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
17558 | case $host_os in |
17559 | openbsd2.[89] | openbsd2.[89].*) |
17560 | shlibpath_overrides_runpath=no |
17561 | ;; |
17562 | *) |
17563 | shlibpath_overrides_runpath=yes |
17564 | ;; |
17565 | esac |
17566 | else |
17567 | shlibpath_overrides_runpath=yes |
17568 | fi |
17569 | ;; |
17570 | |
17571 | os2*) |
17572 | libname_spec='$name' |
17573 | shrext_cmds=".dll" |
17574 | need_lib_prefix=no |
17575 | library_names_spec='$libname${shared_ext} $libname.a' |
17576 | dynamic_linker='OS/2 ld.exe' |
17577 | shlibpath_var=LIBPATH |
17578 | ;; |
17579 | |
17580 | osf3* | osf4* | osf5*) |
17581 | version_type=osf |
17582 | need_lib_prefix=no |
17583 | need_version=no |
17584 | soname_spec='${libname}${release}${shared_ext}$major' |
17585 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17586 | shlibpath_var=LD_LIBRARY_PATH |
17587 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
17588 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
17589 | ;; |
17590 | |
17591 | solaris*) |
17592 | version_type=linux |
17593 | need_lib_prefix=no |
17594 | need_version=no |
17595 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17596 | soname_spec='${libname}${release}${shared_ext}$major' |
17597 | shlibpath_var=LD_LIBRARY_PATH |
17598 | shlibpath_overrides_runpath=yes |
17599 | hardcode_into_libs=yes |
17600 | # ldd complains unless libraries are executable |
17601 | postinstall_cmds='chmod +x $lib' |
17602 | ;; |
17603 | |
17604 | sunos4*) |
17605 | version_type=sunos |
17606 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17607 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
17608 | shlibpath_var=LD_LIBRARY_PATH |
17609 | shlibpath_overrides_runpath=yes |
17610 | if test "$with_gnu_ld" = yes; then |
17611 | need_lib_prefix=no |
17612 | fi |
17613 | need_version=yes |
17614 | ;; |
17615 | |
17616 | sysv4 | sysv4.3*) |
17617 | version_type=linux |
17618 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17619 | soname_spec='${libname}${release}${shared_ext}$major' |
17620 | shlibpath_var=LD_LIBRARY_PATH |
17621 | case $host_vendor in |
17622 | sni) |
17623 | shlibpath_overrides_runpath=no |
17624 | need_lib_prefix=no |
17625 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
17626 | runpath_var=LD_RUN_PATH |
17627 | ;; |
17628 | siemens) |
17629 | need_lib_prefix=no |
17630 | ;; |
17631 | motorola) |
17632 | need_lib_prefix=no |
17633 | need_version=no |
17634 | shlibpath_overrides_runpath=no |
17635 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
17636 | ;; |
17637 | esac |
17638 | ;; |
17639 | |
17640 | sysv4*MP*) |
17641 | if test -d /usr/nec ;then |
17642 | version_type=linux |
17643 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
17644 | soname_spec='$libname${shared_ext}.$major' |
17645 | shlibpath_var=LD_LIBRARY_PATH |
17646 | fi |
17647 | ;; |
17648 | |
17649 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
17650 | version_type=freebsd-elf |
17651 | need_lib_prefix=no |
17652 | need_version=no |
17653 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
17654 | soname_spec='${libname}${release}${shared_ext}$major' |
17655 | shlibpath_var=LD_LIBRARY_PATH |
17656 | hardcode_into_libs=yes |
17657 | if test "$with_gnu_ld" = yes; then |
17658 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
17659 | shlibpath_overrides_runpath=no |
17660 | else |
17661 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
17662 | shlibpath_overrides_runpath=yes |
17663 | case $host_os in |
17664 | sco3.2v5*) |
17665 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
17666 | ;; |
17667 | esac |
17668 | fi |
17669 | sys_lib_dlsearch_path_spec='/usr/lib' |
17670 | ;; |
17671 | |
17672 | uts4*) |
17673 | version_type=linux |
17674 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17675 | soname_spec='${libname}${release}${shared_ext}$major' |
17676 | shlibpath_var=LD_LIBRARY_PATH |
17677 | ;; |
17678 | |
17679 | *) |
17680 | dynamic_linker=no |
17681 | ;; |
17682 | esac |
17683 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
17684 | echo "${ECHO_T}$dynamic_linker" >&6 |
17685 | test "$dynamic_linker" = no && can_build_shared=no |
17686 | |
17687 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
17688 | if test "$GCC" = yes; then |
17689 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
17690 | fi |
17691 | |
17692 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
17693 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
17694 | hardcode_action_GCJ= |
17695 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
17696 | test -n "$runpath_var_GCJ" || \ |
17697 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
17698 | |
17699 | # We can hardcode non-existant directories. |
17700 | if test "$hardcode_direct_GCJ" != no && |
17701 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
17702 | # have to relink, otherwise we might link with an installed library |
17703 | # when we should be linking with a yet-to-be-installed one |
17704 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
17705 | test "$hardcode_minus_L_GCJ" != no; then |
17706 | # Linking always hardcodes the temporary library directory. |
17707 | hardcode_action_GCJ=relink |
17708 | else |
17709 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
17710 | hardcode_action_GCJ=immediate |
17711 | fi |
17712 | else |
17713 | # We cannot hardcode anything, or else we can only hardcode existing |
17714 | # directories. |
17715 | hardcode_action_GCJ=unsupported |
17716 | fi |
17717 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
17718 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
17719 | |
17720 | if test "$hardcode_action_GCJ" = relink; then |
17721 | # Fast installation is not supported |
17722 | enable_fast_install=no |
17723 | elif test "$shlibpath_overrides_runpath" = yes || |
17724 | test "$enable_shared" = no; then |
17725 | # Fast installation is not necessary |
17726 | enable_fast_install=needless |
17727 | fi |
17728 | |
17729 | |
17730 | # The else clause should only fire when bootstrapping the |
17731 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
17732 | # with your package, and you will get complaints that there are |
17733 | # no rules to generate ltmain.sh. |
17734 | if test -f "$ltmain"; then |
17735 | # See if we are running on zsh, and set the options which allow our commands through |
17736 | # without removal of \ escapes. |
17737 | if test -n "${ZSH_VERSION+set}" ; then |
17738 | setopt NO_GLOB_SUBST |
17739 | fi |
17740 | # Now quote all the things that may contain metacharacters while being |
17741 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
17742 | # variables and quote the copies for generation of the libtool script. |
17743 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
17744 | SED SHELL STRIP \ |
17745 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
17746 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
17747 | deplibs_check_method reload_flag reload_cmds need_locks \ |
17748 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
17749 | lt_cv_sys_global_symbol_to_c_name_address \ |
17750 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
17751 | old_postinstall_cmds old_postuninstall_cmds \ |
17752 | compiler_GCJ \ |
17753 | CC_GCJ \ |
17754 | LD_GCJ \ |
17755 | lt_prog_compiler_wl_GCJ \ |
17756 | lt_prog_compiler_pic_GCJ \ |
17757 | lt_prog_compiler_static_GCJ \ |
17758 | lt_prog_compiler_no_builtin_flag_GCJ \ |
17759 | export_dynamic_flag_spec_GCJ \ |
17760 | thread_safe_flag_spec_GCJ \ |
17761 | whole_archive_flag_spec_GCJ \ |
17762 | enable_shared_with_static_runtimes_GCJ \ |
17763 | old_archive_cmds_GCJ \ |
17764 | old_archive_from_new_cmds_GCJ \ |
17765 | predep_objects_GCJ \ |
17766 | postdep_objects_GCJ \ |
17767 | predeps_GCJ \ |
17768 | postdeps_GCJ \ |
17769 | compiler_lib_search_path_GCJ \ |
17770 | archive_cmds_GCJ \ |
17771 | archive_expsym_cmds_GCJ \ |
17772 | postinstall_cmds_GCJ \ |
17773 | postuninstall_cmds_GCJ \ |
17774 | old_archive_from_expsyms_cmds_GCJ \ |
17775 | allow_undefined_flag_GCJ \ |
17776 | no_undefined_flag_GCJ \ |
17777 | export_symbols_cmds_GCJ \ |
17778 | hardcode_libdir_flag_spec_GCJ \ |
17779 | hardcode_libdir_flag_spec_ld_GCJ \ |
17780 | hardcode_libdir_separator_GCJ \ |
17781 | hardcode_automatic_GCJ \ |
17782 | module_cmds_GCJ \ |
17783 | module_expsym_cmds_GCJ \ |
17784 | lt_cv_prog_compiler_c_o_GCJ \ |
17785 | exclude_expsyms_GCJ \ |
17786 | include_expsyms_GCJ; do |
17787 | |
17788 | case $var in |
17789 | old_archive_cmds_GCJ | \ |
17790 | old_archive_from_new_cmds_GCJ | \ |
17791 | archive_cmds_GCJ | \ |
17792 | archive_expsym_cmds_GCJ | \ |
17793 | module_cmds_GCJ | \ |
17794 | module_expsym_cmds_GCJ | \ |
17795 | old_archive_from_expsyms_cmds_GCJ | \ |
17796 | export_symbols_cmds_GCJ | \ |
17797 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
17798 | postinstall_cmds | postuninstall_cmds | \ |
17799 | old_postinstall_cmds | old_postuninstall_cmds | \ |
17800 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
17801 | # Double-quote double-evaled strings. |
17802 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
17803 | ;; |
17804 | *) |
17805 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
17806 | ;; |
17807 | esac |
17808 | done |
17809 | |
17810 | case $lt_echo in |
17811 | *'\$0 --fallback-echo"') |
17812 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
17813 | ;; |
17814 | esac |
17815 | |
17816 | cfgfile="$ofile" |
17817 | |
17818 | cat <<__EOF__ >> "$cfgfile" |
17819 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
17820 | |
17821 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
17822 | |
17823 | # Shell to use when invoking shell scripts. |
17824 | SHELL=$lt_SHELL |
17825 | |
17826 | # Whether or not to build shared libraries. |
17827 | build_libtool_libs=$enable_shared |
17828 | |
17829 | # Whether or not to build static libraries. |
17830 | build_old_libs=$enable_static |
17831 | |
17832 | # Whether or not to add -lc for building shared libraries. |
17833 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
17834 | |
17835 | # Whether or not to disallow shared libs when runtime libs are static |
17836 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
17837 | |
17838 | # Whether or not to optimize for fast installation. |
17839 | fast_install=$enable_fast_install |
17840 | |
17841 | # The host system. |
17842 | host_alias=$host_alias |
17843 | host=$host |
17844 | host_os=$host_os |
17845 | |
17846 | # The build system. |
17847 | build_alias=$build_alias |
17848 | build=$build |
17849 | build_os=$build_os |
17850 | |
17851 | # An echo program that does not interpret backslashes. |
17852 | echo=$lt_echo |
17853 | |
17854 | # The archiver. |
17855 | AR=$lt_AR |
17856 | AR_FLAGS=$lt_AR_FLAGS |
17857 | |
17858 | # A C compiler. |
17859 | LTCC=$lt_LTCC |
17860 | |
17861 | # LTCC compiler flags. |
17862 | LTCFLAGS=$lt_LTCFLAGS |
17863 | |
17864 | # A language-specific compiler. |
17865 | CC=$lt_compiler_GCJ |
17866 | |
17867 | # Is the compiler the GNU C compiler? |
17868 | with_gcc=$GCC_GCJ |
17869 | |
17870 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
17871 | gcc_ver=\`gcc -dumpversion\` |
17872 | |
17873 | # An ERE matcher. |
17874 | EGREP=$lt_EGREP |
17875 | |
17876 | # The linker used to build libraries. |
17877 | LD=$lt_LD_GCJ |
17878 | |
17879 | # Whether we need hard or soft links. |
17880 | LN_S=$lt_LN_S |
17881 | |
17882 | # A BSD-compatible nm program. |
17883 | NM=$lt_NM |
17884 | |
17885 | # A symbol stripping program |
17886 | STRIP=$lt_STRIP |
17887 | |
17888 | # Used to examine libraries when file_magic_cmd begins "file" |
17889 | MAGIC_CMD=$MAGIC_CMD |
17890 | |
17891 | # Used on cygwin: DLL creation program. |
17892 | DLLTOOL="$DLLTOOL" |
17893 | |
17894 | # Used on cygwin: object dumper. |
17895 | OBJDUMP="$OBJDUMP" |
17896 | |
17897 | # Used on cygwin: assembler. |
17898 | AS="$AS" |
17899 | |
17900 | # The name of the directory that contains temporary libtool files. |
17901 | objdir=$objdir |
17902 | |
17903 | # How to create reloadable object files. |
17904 | reload_flag=$lt_reload_flag |
17905 | reload_cmds=$lt_reload_cmds |
17906 | |
17907 | # How to pass a linker flag through the compiler. |
17908 | wl=$lt_lt_prog_compiler_wl_GCJ |
17909 | |
17910 | # Object file suffix (normally "o"). |
17911 | objext="$ac_objext" |
17912 | |
17913 | # Old archive suffix (normally "a"). |
17914 | libext="$libext" |
17915 | |
17916 | # Shared library suffix (normally ".so"). |
17917 | shrext_cmds='$shrext_cmds' |
17918 | |
17919 | # Executable file suffix (normally ""). |
17920 | exeext="$exeext" |
17921 | |
17922 | # Additional compiler flags for building library objects. |
17923 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
17924 | pic_mode=$pic_mode |
17925 | |
17926 | # What is the maximum length of a command? |
17927 | max_cmd_len=$lt_cv_sys_max_cmd_len |
17928 | |
17929 | # Does compiler simultaneously support -c and -o options? |
17930 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
17931 | |
17932 | # Must we lock files when doing compilation? |
17933 | need_locks=$lt_need_locks |
17934 | |
17935 | # Do we need the lib prefix for modules? |
17936 | need_lib_prefix=$need_lib_prefix |
17937 | |
17938 | # Do we need a version for libraries? |
17939 | need_version=$need_version |
17940 | |
17941 | # Whether dlopen is supported. |
17942 | dlopen_support=$enable_dlopen |
17943 | |
17944 | # Whether dlopen of programs is supported. |
17945 | dlopen_self=$enable_dlopen_self |
17946 | |
17947 | # Whether dlopen of statically linked programs is supported. |
17948 | dlopen_self_static=$enable_dlopen_self_static |
17949 | |
17950 | # Compiler flag to prevent dynamic linking. |
17951 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
17952 | |
17953 | # Compiler flag to turn off builtin functions. |
17954 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
17955 | |
17956 | # Compiler flag to allow reflexive dlopens. |
17957 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
17958 | |
17959 | # Compiler flag to generate shared objects directly from archives. |
17960 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
17961 | |
17962 | # Compiler flag to generate thread-safe objects. |
17963 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
17964 | |
17965 | # Library versioning type. |
17966 | version_type=$version_type |
17967 | |
17968 | # Format of library name prefix. |
17969 | libname_spec=$lt_libname_spec |
17970 | |
17971 | # List of archive names. First name is the real one, the rest are links. |
17972 | # The last name is the one that the linker finds with -lNAME. |
17973 | library_names_spec=$lt_library_names_spec |
17974 | |
17975 | # The coded name of the library, if different from the real name. |
17976 | soname_spec=$lt_soname_spec |
17977 | |
17978 | # Commands used to build and install an old-style archive. |
17979 | RANLIB=$lt_RANLIB |
17980 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
17981 | old_postinstall_cmds=$lt_old_postinstall_cmds |
17982 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
17983 | |
17984 | # Create an old-style archive from a shared archive. |
17985 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
17986 | |
17987 | # Create a temporary old-style archive to link instead of a shared archive. |
17988 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
17989 | |
17990 | # Commands used to build and install a shared archive. |
17991 | archive_cmds=$lt_archive_cmds_GCJ |
17992 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
17993 | postinstall_cmds=$lt_postinstall_cmds |
17994 | postuninstall_cmds=$lt_postuninstall_cmds |
17995 | |
17996 | # Commands used to build a loadable module (assumed same as above if empty) |
17997 | module_cmds=$lt_module_cmds_GCJ |
17998 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
17999 | |
18000 | # Commands to strip libraries. |
18001 | old_striplib=$lt_old_striplib |
18002 | striplib=$lt_striplib |
18003 | |
18004 | # Dependencies to place before the objects being linked to create a |
18005 | # shared library. |
18006 | predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18007 | |
18008 | # Dependencies to place after the objects being linked to create a |
18009 | # shared library. |
18010 | postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18011 | |
18012 | # Dependencies to place before the objects being linked to create a |
18013 | # shared library. |
18014 | predeps=$lt_predeps_GCJ |
18015 | |
18016 | # Dependencies to place after the objects being linked to create a |
18017 | # shared library. |
18018 | postdeps=$lt_postdeps_GCJ |
18019 | |
18020 | # The library search path used internally by the compiler when linking |
18021 | # a shared library. |
18022 | 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"\` |
18023 | |
18024 | # Method to check whether dependent libraries are shared objects. |
18025 | deplibs_check_method=$lt_deplibs_check_method |
18026 | |
18027 | # Command to use when deplibs_check_method == file_magic. |
18028 | file_magic_cmd=$lt_file_magic_cmd |
18029 | |
18030 | # Flag that allows shared libraries with undefined symbols to be built. |
18031 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
18032 | |
18033 | # Flag that forces no undefined symbols. |
18034 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
18035 | |
18036 | # Commands used to finish a libtool library installation in a directory. |
18037 | finish_cmds=$lt_finish_cmds |
18038 | |
18039 | # Same as above, but a single script fragment to be evaled but not shown. |
18040 | finish_eval=$lt_finish_eval |
18041 | |
18042 | # Take the output of nm and produce a listing of raw symbols and C names. |
18043 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
18044 | |
18045 | # Transform the output of nm in a proper C declaration |
18046 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
18047 | |
18048 | # Transform the output of nm in a C name address pair |
18049 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
18050 | |
18051 | # This is the shared library runtime path variable. |
18052 | runpath_var=$runpath_var |
18053 | |
18054 | # This is the shared library path variable. |
18055 | shlibpath_var=$shlibpath_var |
18056 | |
18057 | # Is shlibpath searched before the hard-coded library search path? |
18058 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
18059 | |
18060 | # How to hardcode a shared library path into an executable. |
18061 | hardcode_action=$hardcode_action_GCJ |
18062 | |
18063 | # Whether we should hardcode library paths into libraries. |
18064 | hardcode_into_libs=$hardcode_into_libs |
18065 | |
18066 | # Flag to hardcode \$libdir into a binary during linking. |
18067 | # This must work even if \$libdir does not exist. |
18068 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
18069 | |
18070 | # If ld is used when linking, flag to hardcode \$libdir into |
18071 | # a binary during linking. This must work even if \$libdir does |
18072 | # not exist. |
18073 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
18074 | |
18075 | # Whether we need a single -rpath flag with a separated argument. |
18076 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
18077 | |
18078 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
18079 | # resulting binary. |
18080 | hardcode_direct=$hardcode_direct_GCJ |
18081 | |
18082 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
18083 | # resulting binary. |
18084 | hardcode_minus_L=$hardcode_minus_L_GCJ |
18085 | |
18086 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
18087 | # the resulting binary. |
18088 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
18089 | |
18090 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
18091 | # and all subsequent libraries and executables linked against it. |
18092 | hardcode_automatic=$hardcode_automatic_GCJ |
18093 | |
18094 | # Variables whose values should be saved in libtool wrapper scripts and |
18095 | # restored at relink time. |
18096 | variables_saved_for_relink="$variables_saved_for_relink" |
18097 | |
18098 | # Whether libtool must link a program against all its dependency libraries. |
18099 | link_all_deplibs=$link_all_deplibs_GCJ |
18100 | |
18101 | # Compile-time system search path for libraries |
18102 | 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"\` |
18103 | |
18104 | # Run-time system search path for libraries |
18105 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
18106 | |
18107 | # Fix the shell variable \$srcfile for the compiler. |
18108 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
18109 | |
18110 | # Set to yes if exported symbols are required. |
18111 | always_export_symbols=$always_export_symbols_GCJ |
18112 | |
18113 | # The commands to list exported symbols. |
18114 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
18115 | |
18116 | # The commands to extract the exported symbol list from a shared archive. |
18117 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
18118 | |
18119 | # Symbols that should not be listed in the preloaded symbols. |
18120 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
18121 | |
18122 | # Symbols that must always be exported. |
18123 | include_expsyms=$lt_include_expsyms_GCJ |
18124 | |
18125 | # ### END LIBTOOL TAG CONFIG: $tagname |
18126 | |
18127 | __EOF__ |
18128 | |
18129 | |
18130 | else |
18131 | # If there is no Makefile yet, we rely on a make rule to execute |
18132 | # `config.status --recheck' to rerun these tests and create the |
18133 | # libtool script then. |
18134 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
18135 | if test -f "$ltmain_in"; then |
18136 | test -f Makefile && make "$ltmain" |
18137 | fi |
18138 | fi |
18139 | |
18140 | |
18141 | ac_ext=c |
18142 | ac_cpp='$CPP $CPPFLAGS' |
18143 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18144 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
18145 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
18146 | |
18147 | CC="$lt_save_CC" |
18148 | |
18149 | else |
18150 | tagname="" |
18151 | fi |
18152 | ;; |
18153 | |
18154 | RC) |
18155 | |
18156 | |
18157 | |
18158 | # Source file extension for RC test sources. |
18159 | ac_ext=rc |
18160 | |
18161 | # Object file extension for compiled RC test sources. |
18162 | objext=o |
18163 | objext_RC=$objext |
18164 | |
18165 | # Code to be used in simple compile tests |
18166 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
18167 | |
18168 | # Code to be used in simple link tests |
18169 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
18170 | |
18171 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
18172 | |
18173 | # If no C compiler was specified, use CC. |
18174 | LTCC=${LTCC-"$CC"} |
18175 | |
18176 | # If no C compiler flags were specified, use CFLAGS. |
18177 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
18178 | |
18179 | # Allow CC to be a program name with arguments. |
18180 | compiler=$CC |
18181 | |
18182 | |
18183 | # save warnings/boilerplate of simple test code |
18184 | ac_outfile=conftest.$ac_objext |
18185 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
18186 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
18187 | _lt_compiler_boilerplate=`cat conftest.err` |
18188 | $rm conftest* |
18189 | |
18190 | ac_outfile=conftest.$ac_objext |
18191 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
18192 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
18193 | _lt_linker_boilerplate=`cat conftest.err` |
18194 | $rm conftest* |
18195 | |
18196 | |
18197 | # Allow CC to be a program name with arguments. |
18198 | lt_save_CC="$CC" |
18199 | CC=${RC-"windres"} |
18200 | compiler=$CC |
18201 | compiler_RC=$CC |
18202 | for cc_temp in $compiler""; do |
18203 | case $cc_temp in |
18204 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
18205 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
18206 | \-*) ;; |
18207 | *) break;; |
18208 | esac |
18209 | done |
18210 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
18211 | |
18212 | lt_cv_prog_compiler_c_o_RC=yes |
18213 | |
18214 | # The else clause should only fire when bootstrapping the |
18215 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18216 | # with your package, and you will get complaints that there are |
18217 | # no rules to generate ltmain.sh. |
18218 | if test -f "$ltmain"; then |
18219 | # See if we are running on zsh, and set the options which allow our commands through |
18220 | # without removal of \ escapes. |
18221 | if test -n "${ZSH_VERSION+set}" ; then |
18222 | setopt NO_GLOB_SUBST |
18223 | fi |
18224 | # Now quote all the things that may contain metacharacters while being |
18225 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
18226 | # variables and quote the copies for generation of the libtool script. |
18227 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
18228 | SED SHELL STRIP \ |
18229 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18230 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18231 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18232 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18233 | lt_cv_sys_global_symbol_to_c_name_address \ |
18234 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18235 | old_postinstall_cmds old_postuninstall_cmds \ |
18236 | compiler_RC \ |
18237 | CC_RC \ |
18238 | LD_RC \ |
18239 | lt_prog_compiler_wl_RC \ |
18240 | lt_prog_compiler_pic_RC \ |
18241 | lt_prog_compiler_static_RC \ |
18242 | lt_prog_compiler_no_builtin_flag_RC \ |
18243 | export_dynamic_flag_spec_RC \ |
18244 | thread_safe_flag_spec_RC \ |
18245 | whole_archive_flag_spec_RC \ |
18246 | enable_shared_with_static_runtimes_RC \ |
18247 | old_archive_cmds_RC \ |
18248 | old_archive_from_new_cmds_RC \ |
18249 | predep_objects_RC \ |
18250 | postdep_objects_RC \ |
18251 | predeps_RC \ |
18252 | postdeps_RC \ |
18253 | compiler_lib_search_path_RC \ |
18254 | archive_cmds_RC \ |
18255 | archive_expsym_cmds_RC \ |
18256 | postinstall_cmds_RC \ |
18257 | postuninstall_cmds_RC \ |
18258 | old_archive_from_expsyms_cmds_RC \ |
18259 | allow_undefined_flag_RC \ |
18260 | no_undefined_flag_RC \ |
18261 | export_symbols_cmds_RC \ |
18262 | hardcode_libdir_flag_spec_RC \ |
18263 | hardcode_libdir_flag_spec_ld_RC \ |
18264 | hardcode_libdir_separator_RC \ |
18265 | hardcode_automatic_RC \ |
18266 | module_cmds_RC \ |
18267 | module_expsym_cmds_RC \ |
18268 | lt_cv_prog_compiler_c_o_RC \ |
18269 | exclude_expsyms_RC \ |
18270 | include_expsyms_RC; do |
18271 | |
18272 | case $var in |
18273 | old_archive_cmds_RC | \ |
18274 | old_archive_from_new_cmds_RC | \ |
18275 | archive_cmds_RC | \ |
18276 | archive_expsym_cmds_RC | \ |
18277 | module_cmds_RC | \ |
18278 | module_expsym_cmds_RC | \ |
18279 | old_archive_from_expsyms_cmds_RC | \ |
18280 | export_symbols_cmds_RC | \ |
18281 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
18282 | postinstall_cmds | postuninstall_cmds | \ |
18283 | old_postinstall_cmds | old_postuninstall_cmds | \ |
18284 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
18285 | # Double-quote double-evaled strings. |
18286 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
18287 | ;; |
18288 | *) |
18289 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
18290 | ;; |
18291 | esac |
18292 | done |
18293 | |
18294 | case $lt_echo in |
18295 | *'\$0 --fallback-echo"') |
18296 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
18297 | ;; |
18298 | esac |
18299 | |
18300 | cfgfile="$ofile" |
18301 | |
18302 | cat <<__EOF__ >> "$cfgfile" |
18303 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
18304 | |
18305 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18306 | |
18307 | # Shell to use when invoking shell scripts. |
18308 | SHELL=$lt_SHELL |
18309 | |
18310 | # Whether or not to build shared libraries. |
18311 | build_libtool_libs=$enable_shared |
18312 | |
18313 | # Whether or not to build static libraries. |
18314 | build_old_libs=$enable_static |
18315 | |
18316 | # Whether or not to add -lc for building shared libraries. |
18317 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
18318 | |
18319 | # Whether or not to disallow shared libs when runtime libs are static |
18320 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
18321 | |
18322 | # Whether or not to optimize for fast installation. |
18323 | fast_install=$enable_fast_install |
18324 | |
18325 | # The host system. |
18326 | host_alias=$host_alias |
18327 | host=$host |
18328 | host_os=$host_os |
18329 | |
18330 | # The build system. |
18331 | build_alias=$build_alias |
18332 | build=$build |
18333 | build_os=$build_os |
18334 | |
18335 | # An echo program that does not interpret backslashes. |
18336 | echo=$lt_echo |
18337 | |
18338 | # The archiver. |
18339 | AR=$lt_AR |
18340 | AR_FLAGS=$lt_AR_FLAGS |
18341 | |
18342 | # A C compiler. |
18343 | LTCC=$lt_LTCC |
18344 | |
18345 | # LTCC compiler flags. |
18346 | LTCFLAGS=$lt_LTCFLAGS |
18347 | |
18348 | # A language-specific compiler. |
18349 | CC=$lt_compiler_RC |
18350 | |
18351 | # Is the compiler the GNU C compiler? |
18352 | with_gcc=$GCC_RC |
18353 | |
18354 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
18355 | gcc_ver=\`gcc -dumpversion\` |
18356 | |
18357 | # An ERE matcher. |
18358 | EGREP=$lt_EGREP |
18359 | |
18360 | # The linker used to build libraries. |
18361 | LD=$lt_LD_RC |
18362 | |
18363 | # Whether we need hard or soft links. |
18364 | LN_S=$lt_LN_S |
18365 | |
18366 | # A BSD-compatible nm program. |
18367 | NM=$lt_NM |
18368 | |
18369 | # A symbol stripping program |
18370 | STRIP=$lt_STRIP |
18371 | |
18372 | # Used to examine libraries when file_magic_cmd begins "file" |
18373 | MAGIC_CMD=$MAGIC_CMD |
18374 | |
18375 | # Used on cygwin: DLL creation program. |
18376 | DLLTOOL="$DLLTOOL" |
18377 | |
18378 | # Used on cygwin: object dumper. |
18379 | OBJDUMP="$OBJDUMP" |
18380 | |
18381 | # Used on cygwin: assembler. |
18382 | AS="$AS" |
18383 | |
18384 | # The name of the directory that contains temporary libtool files. |
18385 | objdir=$objdir |
18386 | |
18387 | # How to create reloadable object files. |
18388 | reload_flag=$lt_reload_flag |
18389 | reload_cmds=$lt_reload_cmds |
18390 | |
18391 | # How to pass a linker flag through the compiler. |
18392 | wl=$lt_lt_prog_compiler_wl_RC |
18393 | |
18394 | # Object file suffix (normally "o"). |
18395 | objext="$ac_objext" |
18396 | |
18397 | # Old archive suffix (normally "a"). |
18398 | libext="$libext" |
18399 | |
18400 | # Shared library suffix (normally ".so"). |
18401 | shrext_cmds='$shrext_cmds' |
18402 | |
18403 | # Executable file suffix (normally ""). |
18404 | exeext="$exeext" |
18405 | |
18406 | # Additional compiler flags for building library objects. |
18407 | pic_flag=$lt_lt_prog_compiler_pic_RC |
18408 | pic_mode=$pic_mode |
18409 | |
18410 | # What is the maximum length of a command? |
18411 | max_cmd_len=$lt_cv_sys_max_cmd_len |
18412 | |
18413 | # Does compiler simultaneously support -c and -o options? |
18414 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
18415 | |
18416 | # Must we lock files when doing compilation? |
18417 | need_locks=$lt_need_locks |
18418 | |
18419 | # Do we need the lib prefix for modules? |
18420 | need_lib_prefix=$need_lib_prefix |
18421 | |
18422 | # Do we need a version for libraries? |
18423 | need_version=$need_version |
18424 | |
18425 | # Whether dlopen is supported. |
18426 | dlopen_support=$enable_dlopen |
18427 | |
18428 | # Whether dlopen of programs is supported. |
18429 | dlopen_self=$enable_dlopen_self |
18430 | |
18431 | # Whether dlopen of statically linked programs is supported. |
18432 | dlopen_self_static=$enable_dlopen_self_static |
18433 | |
18434 | # Compiler flag to prevent dynamic linking. |
18435 | link_static_flag=$lt_lt_prog_compiler_static_RC |
18436 | |
18437 | # Compiler flag to turn off builtin functions. |
18438 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
18439 | |
18440 | # Compiler flag to allow reflexive dlopens. |
18441 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
18442 | |
18443 | # Compiler flag to generate shared objects directly from archives. |
18444 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
18445 | |
18446 | # Compiler flag to generate thread-safe objects. |
18447 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
18448 | |
18449 | # Library versioning type. |
18450 | version_type=$version_type |
18451 | |
18452 | # Format of library name prefix. |
18453 | libname_spec=$lt_libname_spec |
18454 | |
18455 | # List of archive names. First name is the real one, the rest are links. |
18456 | # The last name is the one that the linker finds with -lNAME. |
18457 | library_names_spec=$lt_library_names_spec |
18458 | |
18459 | # The coded name of the library, if different from the real name. |
18460 | soname_spec=$lt_soname_spec |
18461 | |
18462 | # Commands used to build and install an old-style archive. |
18463 | RANLIB=$lt_RANLIB |
18464 | old_archive_cmds=$lt_old_archive_cmds_RC |
18465 | old_postinstall_cmds=$lt_old_postinstall_cmds |
18466 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
18467 | |
18468 | # Create an old-style archive from a shared archive. |
18469 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
18470 | |
18471 | # Create a temporary old-style archive to link instead of a shared archive. |
18472 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
18473 | |
18474 | # Commands used to build and install a shared archive. |
18475 | archive_cmds=$lt_archive_cmds_RC |
18476 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
18477 | postinstall_cmds=$lt_postinstall_cmds |
18478 | postuninstall_cmds=$lt_postuninstall_cmds |
18479 | |
18480 | # Commands used to build a loadable module (assumed same as above if empty) |
18481 | module_cmds=$lt_module_cmds_RC |
18482 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
18483 | |
18484 | # Commands to strip libraries. |
18485 | old_striplib=$lt_old_striplib |
18486 | striplib=$lt_striplib |
18487 | |
18488 | # Dependencies to place before the objects being linked to create a |
18489 | # shared library. |
18490 | predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18491 | |
18492 | # Dependencies to place after the objects being linked to create a |
18493 | # shared library. |
18494 | postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18495 | |
18496 | # Dependencies to place before the objects being linked to create a |
18497 | # shared library. |
18498 | predeps=$lt_predeps_RC |
18499 | |
18500 | # Dependencies to place after the objects being linked to create a |
18501 | # shared library. |
18502 | postdeps=$lt_postdeps_RC |
18503 | |
18504 | # The library search path used internally by the compiler when linking |
18505 | # a shared library. |
18506 | 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"\` |
18507 | |
18508 | # Method to check whether dependent libraries are shared objects. |
18509 | deplibs_check_method=$lt_deplibs_check_method |
18510 | |
18511 | # Command to use when deplibs_check_method == file_magic. |
18512 | file_magic_cmd=$lt_file_magic_cmd |
18513 | |
18514 | # Flag that allows shared libraries with undefined symbols to be built. |
18515 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
18516 | |
18517 | # Flag that forces no undefined symbols. |
18518 | no_undefined_flag=$lt_no_undefined_flag_RC |
18519 | |
18520 | # Commands used to finish a libtool library installation in a directory. |
18521 | finish_cmds=$lt_finish_cmds |
18522 | |
18523 | # Same as above, but a single script fragment to be evaled but not shown. |
18524 | finish_eval=$lt_finish_eval |
18525 | |
18526 | # Take the output of nm and produce a listing of raw symbols and C names. |
18527 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
18528 | |
18529 | # Transform the output of nm in a proper C declaration |
18530 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
18531 | |
18532 | # Transform the output of nm in a C name address pair |
18533 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
18534 | |
18535 | # This is the shared library runtime path variable. |
18536 | runpath_var=$runpath_var |
18537 | |
18538 | # This is the shared library path variable. |
18539 | shlibpath_var=$shlibpath_var |
18540 | |
18541 | # Is shlibpath searched before the hard-coded library search path? |
18542 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
18543 | |
18544 | # How to hardcode a shared library path into an executable. |
18545 | hardcode_action=$hardcode_action_RC |
18546 | |
18547 | # Whether we should hardcode library paths into libraries. |
18548 | hardcode_into_libs=$hardcode_into_libs |
18549 | |
18550 | # Flag to hardcode \$libdir into a binary during linking. |
18551 | # This must work even if \$libdir does not exist. |
18552 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
18553 | |
18554 | # If ld is used when linking, flag to hardcode \$libdir into |
18555 | # a binary during linking. This must work even if \$libdir does |
18556 | # not exist. |
18557 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
18558 | |
18559 | # Whether we need a single -rpath flag with a separated argument. |
18560 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
18561 | |
18562 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
18563 | # resulting binary. |
18564 | hardcode_direct=$hardcode_direct_RC |
18565 | |
18566 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
18567 | # resulting binary. |
18568 | hardcode_minus_L=$hardcode_minus_L_RC |
18569 | |
18570 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
18571 | # the resulting binary. |
18572 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
18573 | |
18574 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
18575 | # and all subsequent libraries and executables linked against it. |
18576 | hardcode_automatic=$hardcode_automatic_RC |
18577 | |
18578 | # Variables whose values should be saved in libtool wrapper scripts and |
18579 | # restored at relink time. |
18580 | variables_saved_for_relink="$variables_saved_for_relink" |
18581 | |
18582 | # Whether libtool must link a program against all its dependency libraries. |
18583 | link_all_deplibs=$link_all_deplibs_RC |
18584 | |
18585 | # Compile-time system search path for libraries |
18586 | 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"\` |
18587 | |
18588 | # Run-time system search path for libraries |
18589 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
18590 | |
18591 | # Fix the shell variable \$srcfile for the compiler. |
18592 | fix_srcfile_path="$fix_srcfile_path_RC" |
18593 | |
18594 | # Set to yes if exported symbols are required. |
18595 | always_export_symbols=$always_export_symbols_RC |
18596 | |
18597 | # The commands to list exported symbols. |
18598 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
18599 | |
18600 | # The commands to extract the exported symbol list from a shared archive. |
18601 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
18602 | |
18603 | # Symbols that should not be listed in the preloaded symbols. |
18604 | exclude_expsyms=$lt_exclude_expsyms_RC |
18605 | |
18606 | # Symbols that must always be exported. |
18607 | include_expsyms=$lt_include_expsyms_RC |
18608 | |
18609 | # ### END LIBTOOL TAG CONFIG: $tagname |
18610 | |
18611 | __EOF__ |
18612 | |
18613 | |
18614 | else |
18615 | # If there is no Makefile yet, we rely on a make rule to execute |
18616 | # `config.status --recheck' to rerun these tests and create the |
18617 | # libtool script then. |
18618 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
18619 | if test -f "$ltmain_in"; then |
18620 | test -f Makefile && make "$ltmain" |
18621 | fi |
18622 | fi |
18623 | |
18624 | |
18625 | ac_ext=c |
18626 | ac_cpp='$CPP $CPPFLAGS' |
18627 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18628 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
18629 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
18630 | |
18631 | CC="$lt_save_CC" |
18632 | |
18633 | ;; |
18634 | |
18635 | *) |
18636 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
18637 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
18638 | { (exit 1); exit 1; }; } |
18639 | ;; |
18640 | esac |
18641 | |
18642 | # Append the new tag name to the list of available tags. |
18643 | if test -n "$tagname" ; then |
18644 | available_tags="$available_tags $tagname" |
18645 | fi |
18646 | fi |
18647 | done |
18648 | IFS="$lt_save_ifs" |
18649 | |
18650 | # Now substitute the updated list of available tags. |
18651 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
18652 | mv "${ofile}T" "$ofile" |
18653 | chmod +x "$ofile" |
18654 | else |
18655 | rm -f "${ofile}T" |
18656 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
18657 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
18658 | { (exit 1); exit 1; }; } |
18659 | fi |
18660 | fi |
18661 | |
18662 | |
18663 | |
18664 | # This can be used to rebuild libtool when needed |
18665 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
18666 | |
18667 | # Always use our own libtool. |
18668 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
18669 | |
18670 | # Prevent multiple expansion |
18671 | |
18672 | |
18673 | |
18674 | |
18675 | |
18676 | |
18677 | |
18678 | |
18679 | |
18680 | |
18681 | |
18682 | |
18683 | |
18684 | |
18685 | |
18686 | |
18687 | |
18688 | |
18689 | |
18690 | |
18691 | |
18692 | if test x$GCC = xyes |
18693 | then |
18694 | CFLAGS="-Wall $CFLAGS" |
18695 | fi |
18696 | if test x$GXX = xyes |
18697 | then |
18698 | CXXFLAGS="-Wall $CXXFLAGS" |
18699 | fi |
18700 | |
18701 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
18702 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
18703 | if test "${ac_cv_c_const+set}" = set; then |
18704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18705 | else |
18706 | cat >conftest.$ac_ext <<_ACEOF |
18707 | /* confdefs.h. */ |
18708 | _ACEOF |
18709 | cat confdefs.h >>conftest.$ac_ext |
18710 | cat >>conftest.$ac_ext <<_ACEOF |
18711 | /* end confdefs.h. */ |
18712 | |
18713 | int |
18714 | main () |
18715 | { |
18716 | /* FIXME: Include the comments suggested by Paul. */ |
18717 | #ifndef __cplusplus |
18718 | /* Ultrix mips cc rejects this. */ |
18719 | typedef int charset[2]; |
18720 | const charset x; |
18721 | /* SunOS 4.1.1 cc rejects this. */ |
18722 | char const *const *ccp; |
18723 | char **p; |
18724 | /* NEC SVR4.0.2 mips cc rejects this. */ |
18725 | struct point {int x, y;}; |
18726 | static struct point const zero = {0,0}; |
18727 | /* AIX XL C 1.02.0.0 rejects this. |
18728 | It does not let you subtract one const X* pointer from another in |
18729 | an arm of an if-expression whose if-part is not a constant |
18730 | expression */ |
18731 | const char *g = "string"; |
18732 | ccp = &g + (g ? g-g : 0); |
18733 | /* HPUX 7.0 cc rejects these. */ |
18734 | ++ccp; |
18735 | p = (char**) ccp; |
18736 | ccp = (char const *const *) p; |
18737 | { /* SCO 3.2v4 cc rejects this. */ |
18738 | char *t; |
18739 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
18740 | |
18741 | *t++ = 0; |
18742 | } |
18743 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
18744 | int x[] = {25, 17}; |
18745 | const int *foo = &x[0]; |
18746 | ++foo; |
18747 | } |
18748 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
18749 | typedef const int *iptr; |
18750 | iptr p = 0; |
18751 | ++p; |
18752 | } |
18753 | { /* AIX XL C 1.02.0.0 rejects this saying |
18754 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
18755 | struct s { int j; const int *ap[3]; }; |
18756 | struct s *b; b->j = 5; |
18757 | } |
18758 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
18759 | const int foo = 10; |
18760 | } |
18761 | #endif |
18762 | |
18763 | ; |
18764 | return 0; |
18765 | } |
18766 | _ACEOF |
18767 | rm -f conftest.$ac_objext |
18768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18769 | (eval $ac_compile) 2>conftest.er1 |
18770 | ac_status=$? |
18771 | grep -v '^ *+' conftest.er1 >conftest.err |
18772 | rm -f conftest.er1 |
18773 | cat conftest.err >&5 |
18774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18775 | (exit $ac_status); } && |
18776 | { ac_try='test -z "$ac_c_werror_flag" |
18777 | || test ! -s conftest.err' |
18778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18779 | (eval $ac_try) 2>&5 |
18780 | ac_status=$? |
18781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18782 | (exit $ac_status); }; } && |
18783 | { ac_try='test -s conftest.$ac_objext' |
18784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18785 | (eval $ac_try) 2>&5 |
18786 | ac_status=$? |
18787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18788 | (exit $ac_status); }; }; then |
18789 | ac_cv_c_const=yes |
18790 | else |
18791 | echo "$as_me: failed program was:" >&5 |
18792 | sed 's/^/| /' conftest.$ac_ext >&5 |
18793 | |
18794 | ac_cv_c_const=no |
18795 | fi |
18796 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
18797 | fi |
18798 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
18799 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
18800 | if test $ac_cv_c_const = no; then |
18801 | |
18802 | cat >>confdefs.h <<\_ACEOF |
18803 | #define const |
18804 | _ACEOF |
18805 | |
18806 | fi |
18807 | |
18808 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
18809 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
18810 | if test "${ac_cv_header_stdc+set}" = set; then |
18811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18812 | else |
18813 | cat >conftest.$ac_ext <<_ACEOF |
18814 | /* confdefs.h. */ |
18815 | _ACEOF |
18816 | cat confdefs.h >>conftest.$ac_ext |
18817 | cat >>conftest.$ac_ext <<_ACEOF |
18818 | /* end confdefs.h. */ |
18819 | #include <stdlib.h> |
18820 | #include <stdarg.h> |
18821 | #include <string.h> |
18822 | #include <float.h> |
18823 | |
18824 | int |
18825 | main () |
18826 | { |
18827 | |
18828 | ; |
18829 | return 0; |
18830 | } |
18831 | _ACEOF |
18832 | rm -f conftest.$ac_objext |
18833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18834 | (eval $ac_compile) 2>conftest.er1 |
18835 | ac_status=$? |
18836 | grep -v '^ *+' conftest.er1 >conftest.err |
18837 | rm -f conftest.er1 |
18838 | cat conftest.err >&5 |
18839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18840 | (exit $ac_status); } && |
18841 | { ac_try='test -z "$ac_c_werror_flag" |
18842 | || test ! -s conftest.err' |
18843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18844 | (eval $ac_try) 2>&5 |
18845 | ac_status=$? |
18846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18847 | (exit $ac_status); }; } && |
18848 | { ac_try='test -s conftest.$ac_objext' |
18849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18850 | (eval $ac_try) 2>&5 |
18851 | ac_status=$? |
18852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18853 | (exit $ac_status); }; }; then |
18854 | ac_cv_header_stdc=yes |
18855 | else |
18856 | echo "$as_me: failed program was:" >&5 |
18857 | sed 's/^/| /' conftest.$ac_ext >&5 |
18858 | |
18859 | ac_cv_header_stdc=no |
18860 | fi |
18861 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
18862 | |
18863 | if test $ac_cv_header_stdc = yes; then |
18864 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
18865 | cat >conftest.$ac_ext <<_ACEOF |
18866 | /* confdefs.h. */ |
18867 | _ACEOF |
18868 | cat confdefs.h >>conftest.$ac_ext |
18869 | cat >>conftest.$ac_ext <<_ACEOF |
18870 | /* end confdefs.h. */ |
18871 | #include <string.h> |
18872 | |
18873 | _ACEOF |
18874 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
18875 | $EGREP "memchr" >/dev/null 2>&1; then |
18876 | : |
18877 | else |
18878 | ac_cv_header_stdc=no |
18879 | fi |
18880 | rm -f conftest* |
18881 | |
18882 | fi |
18883 | |
18884 | if test $ac_cv_header_stdc = yes; then |
18885 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
18886 | cat >conftest.$ac_ext <<_ACEOF |
18887 | /* confdefs.h. */ |
18888 | _ACEOF |
18889 | cat confdefs.h >>conftest.$ac_ext |
18890 | cat >>conftest.$ac_ext <<_ACEOF |
18891 | /* end confdefs.h. */ |
18892 | #include <stdlib.h> |
18893 | |
18894 | _ACEOF |
18895 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
18896 | $EGREP "free" >/dev/null 2>&1; then |
18897 | : |
18898 | else |
18899 | ac_cv_header_stdc=no |
18900 | fi |
18901 | rm -f conftest* |
18902 | |
18903 | fi |
18904 | |
18905 | if test $ac_cv_header_stdc = yes; then |
18906 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
18907 | if test "$cross_compiling" = yes; then |
18908 | : |
18909 | else |
18910 | cat >conftest.$ac_ext <<_ACEOF |
18911 | /* confdefs.h. */ |
18912 | _ACEOF |
18913 | cat confdefs.h >>conftest.$ac_ext |
18914 | cat >>conftest.$ac_ext <<_ACEOF |
18915 | /* end confdefs.h. */ |
18916 | #include <ctype.h> |
18917 | #if ((' ' & 0x0FF) == 0x020) |
18918 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
18919 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
18920 | #else |
18921 | # define ISLOWER(c) \ |
18922 | (('a' <= (c) && (c) <= 'i') \ |
18923 | || ('j' <= (c) && (c) <= 'r') \ |
18924 | || ('s' <= (c) && (c) <= 'z')) |
18925 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
18926 | #endif |
18927 | |
18928 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
18929 | int |
18930 | main () |
18931 | { |
18932 | int i; |
18933 | for (i = 0; i < 256; i++) |
18934 | if (XOR (islower (i), ISLOWER (i)) |
18935 | || toupper (i) != TOUPPER (i)) |
18936 | exit(2); |
18937 | exit (0); |
18938 | } |
18939 | _ACEOF |
18940 | rm -f conftest$ac_exeext |
18941 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18942 | (eval $ac_link) 2>&5 |
18943 | ac_status=$? |
18944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18945 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
18946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18947 | (eval $ac_try) 2>&5 |
18948 | ac_status=$? |
18949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18950 | (exit $ac_status); }; }; then |
18951 | : |
18952 | else |
18953 | echo "$as_me: program exited with status $ac_status" >&5 |
18954 | echo "$as_me: failed program was:" >&5 |
18955 | sed 's/^/| /' conftest.$ac_ext >&5 |
18956 | |
18957 | ( exit $ac_status ) |
18958 | ac_cv_header_stdc=no |
18959 | fi |
18960 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
18961 | fi |
18962 | fi |
18963 | fi |
18964 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
18965 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
18966 | if test $ac_cv_header_stdc = yes; then |
18967 | |
18968 | cat >>confdefs.h <<\_ACEOF |
18969 | #define STDC_HEADERS 1 |
18970 | _ACEOF |
18971 | |
18972 | fi |
18973 | |
18974 | |
18975 | |
18976 | |
18977 | for ac_header in fcntl.h string.h syslog.h |
18978 | do |
18979 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
18980 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18981 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
18982 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18983 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18985 | fi |
18986 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
18987 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
18988 | else |
18989 | # Is the header compilable? |
18990 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
18991 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
18992 | cat >conftest.$ac_ext <<_ACEOF |
18993 | /* confdefs.h. */ |
18994 | _ACEOF |
18995 | cat confdefs.h >>conftest.$ac_ext |
18996 | cat >>conftest.$ac_ext <<_ACEOF |
18997 | /* end confdefs.h. */ |
18998 | $ac_includes_default |
18999 | #include <$ac_header> |
19000 | _ACEOF |
19001 | rm -f conftest.$ac_objext |
19002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19003 | (eval $ac_compile) 2>conftest.er1 |
19004 | ac_status=$? |
19005 | grep -v '^ *+' conftest.er1 >conftest.err |
19006 | rm -f conftest.er1 |
19007 | cat conftest.err >&5 |
19008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19009 | (exit $ac_status); } && |
19010 | { ac_try='test -z "$ac_c_werror_flag" |
19011 | || test ! -s conftest.err' |
19012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19013 | (eval $ac_try) 2>&5 |
19014 | ac_status=$? |
19015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19016 | (exit $ac_status); }; } && |
19017 | { ac_try='test -s conftest.$ac_objext' |
19018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19019 | (eval $ac_try) 2>&5 |
19020 | ac_status=$? |
19021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19022 | (exit $ac_status); }; }; then |
19023 | ac_header_compiler=yes |
19024 | else |
19025 | echo "$as_me: failed program was:" >&5 |
19026 | sed 's/^/| /' conftest.$ac_ext >&5 |
19027 | |
19028 | ac_header_compiler=no |
19029 | fi |
19030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19031 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19032 | echo "${ECHO_T}$ac_header_compiler" >&6 |
19033 | |
19034 | # Is the header present? |
19035 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
19036 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
19037 | cat >conftest.$ac_ext <<_ACEOF |
19038 | /* confdefs.h. */ |
19039 | _ACEOF |
19040 | cat confdefs.h >>conftest.$ac_ext |
19041 | cat >>conftest.$ac_ext <<_ACEOF |
19042 | /* end confdefs.h. */ |
19043 | #include <$ac_header> |
19044 | _ACEOF |
19045 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
19046 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
19047 | ac_status=$? |
19048 | grep -v '^ *+' conftest.er1 >conftest.err |
19049 | rm -f conftest.er1 |
19050 | cat conftest.err >&5 |
19051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19052 | (exit $ac_status); } >/dev/null; then |
19053 | if test -s conftest.err; then |
19054 | ac_cpp_err=$ac_c_preproc_warn_flag |
19055 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
19056 | else |
19057 | ac_cpp_err= |
19058 | fi |
19059 | else |
19060 | ac_cpp_err=yes |
19061 | fi |
19062 | if test -z "$ac_cpp_err"; then |
19063 | ac_header_preproc=yes |
19064 | else |
19065 | echo "$as_me: failed program was:" >&5 |
19066 | sed 's/^/| /' conftest.$ac_ext >&5 |
19067 | |
19068 | ac_header_preproc=no |
19069 | fi |
19070 | rm -f conftest.err conftest.$ac_ext |
19071 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
19072 | echo "${ECHO_T}$ac_header_preproc" >&6 |
19073 | |
19074 | # So? What about this header? |
19075 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19076 | yes:no: ) |
19077 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
19078 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
19079 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
19080 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
19081 | ac_header_preproc=yes |
19082 | ;; |
19083 | no:yes:* ) |
19084 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
19085 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
19086 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
19087 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
19088 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
19089 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
19090 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
19091 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
19092 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19093 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19094 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
19095 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
19096 | ( |
19097 | cat <<\_ASBOX |
19098 | ## -------------------------------------------------- ## |
19099 | ## Report this to courier-users@lists.sourceforge.net ## |
19100 | ## -------------------------------------------------- ## |
19101 | _ASBOX |
19102 | ) | |
19103 | sed "s/^/$as_me: WARNING: /" >&2 |
19104 | ;; |
19105 | esac |
19106 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
19107 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
19108 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
19109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19110 | else |
19111 | eval "$as_ac_Header=\$ac_header_preproc" |
19112 | fi |
19113 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
19114 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
19115 | |
19116 | fi |
19117 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
19118 | cat >>confdefs.h <<_ACEOF |
19119 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
19120 | _ACEOF |
19121 | |
19122 | fi |
19123 | |
19124 | done |
19125 | |
19126 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
19127 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
19128 | if test "${ac_cv_type_uid_t+set}" = set; then |
19129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19130 | else |
19131 | cat >conftest.$ac_ext <<_ACEOF |
19132 | /* confdefs.h. */ |
19133 | _ACEOF |
19134 | cat confdefs.h >>conftest.$ac_ext |
19135 | cat >>conftest.$ac_ext <<_ACEOF |
19136 | /* end confdefs.h. */ |
19137 | #include <sys/types.h> |
19138 | |
19139 | _ACEOF |
19140 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
19141 | $EGREP "uid_t" >/dev/null 2>&1; then |
19142 | ac_cv_type_uid_t=yes |
19143 | else |
19144 | ac_cv_type_uid_t=no |
19145 | fi |
19146 | rm -f conftest* |
19147 | |
19148 | fi |
19149 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
19150 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
19151 | if test $ac_cv_type_uid_t = no; then |
19152 | |
19153 | cat >>confdefs.h <<\_ACEOF |
19154 | #define uid_t int |
19155 | _ACEOF |
19156 | |
19157 | |
19158 | cat >>confdefs.h <<\_ACEOF |
19159 | #define gid_t int |
19160 | _ACEOF |
19161 | |
19162 | fi |
19163 | |
19164 | |
19165 | for ac_func in strchr |
19166 | do |
19167 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
19168 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19169 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
19170 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
19171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19172 | else |
19173 | cat >conftest.$ac_ext <<_ACEOF |
19174 | /* confdefs.h. */ |
19175 | _ACEOF |
19176 | cat confdefs.h >>conftest.$ac_ext |
19177 | cat >>conftest.$ac_ext <<_ACEOF |
19178 | /* end confdefs.h. */ |
19179 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19180 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
19181 | #define $ac_func innocuous_$ac_func |
19182 | |
19183 | /* System header to define __stub macros and hopefully few prototypes, |
19184 | which can conflict with char $ac_func (); below. |
19185 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
19186 | <limits.h> exists even on freestanding compilers. */ |
19187 | |
19188 | #ifdef __STDC__ |
19189 | # include <limits.h> |
19190 | #else |
19191 | # include <assert.h> |
19192 | #endif |
19193 | |
19194 | #undef $ac_func |
19195 | |
19196 | /* Override any gcc2 internal prototype to avoid an error. */ |
19197 | #ifdef __cplusplus |
19198 | extern "C" |
19199 | { |
19200 | #endif |
19201 | /* We use char because int might match the return type of a gcc2 |
19202 | builtin and then its argument prototype would still apply. */ |
19203 | char $ac_func (); |
19204 | /* The GNU C library defines this for functions which it implements |
19205 | to always fail with ENOSYS. Some functions are actually named |
19206 | something starting with __ and the normal name is an alias. */ |
19207 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
19208 | choke me |
19209 | #else |
19210 | char (*f) () = $ac_func; |
19211 | #endif |
19212 | #ifdef __cplusplus |
19213 | } |
19214 | #endif |
19215 | |
19216 | int |
19217 | main () |
19218 | { |
19219 | return f != $ac_func; |
19220 | ; |
19221 | return 0; |
19222 | } |
19223 | _ACEOF |
19224 | rm -f conftest.$ac_objext conftest$ac_exeext |
19225 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19226 | (eval $ac_link) 2>conftest.er1 |
19227 | ac_status=$? |
19228 | grep -v '^ *+' conftest.er1 >conftest.err |
19229 | rm -f conftest.er1 |
19230 | cat conftest.err >&5 |
19231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19232 | (exit $ac_status); } && |
19233 | { ac_try='test -z "$ac_c_werror_flag" |
19234 | || test ! -s conftest.err' |
19235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19236 | (eval $ac_try) 2>&5 |
19237 | ac_status=$? |
19238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19239 | (exit $ac_status); }; } && |
19240 | { ac_try='test -s conftest$ac_exeext' |
19241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19242 | (eval $ac_try) 2>&5 |
19243 | ac_status=$? |
19244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19245 | (exit $ac_status); }; }; then |
19246 | eval "$as_ac_var=yes" |
19247 | else |
19248 | echo "$as_me: failed program was:" >&5 |
19249 | sed 's/^/| /' conftest.$ac_ext >&5 |
19250 | |
19251 | eval "$as_ac_var=no" |
19252 | fi |
19253 | rm -f conftest.err conftest.$ac_objext \ |
19254 | conftest$ac_exeext conftest.$ac_ext |
19255 | fi |
19256 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
19257 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
19258 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
19259 | cat >>confdefs.h <<_ACEOF |
19260 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
19261 | _ACEOF |
19262 | |
19263 | fi |
19264 | done |
19265 | |
19266 | |
19267 | |
19268 | # Check whether --with-syslog or --without-syslog was given. |
19269 | if test "${with_syslog+set}" = set; then |
19270 | withval="$with_syslog" |
19271 | logdest="LOG_$withval" |
19272 | else |
19273 | logdest="LOG_MAIL" |
19274 | fi; |
19275 | |
19276 | |
19277 | cat >>confdefs.h <<_ACEOF |
19278 | #define LOG_DEST $logdest |
19279 | _ACEOF |
19280 | |
19281 | |
19282 | |
19283 | if test -d ${srcdir}/../docbook; then |
19284 | HAVE_SGML_TRUE= |
19285 | HAVE_SGML_FALSE='#' |
19286 | else |
19287 | HAVE_SGML_TRUE='#' |
19288 | HAVE_SGML_FALSE= |
19289 | fi |
19290 | |
19291 | ac_config_files="$ac_config_files Makefile" |
19292 | cat >confcache <<\_ACEOF |
19293 | # This file is a shell script that caches the results of configure |
19294 | # tests run on this system so they can be shared between configure |
19295 | # scripts and configure runs, see configure's option --config-cache. |
19296 | # It is not useful on other systems. If it contains results you don't |
19297 | # want to keep, you may remove or edit it. |
19298 | # |
19299 | # config.status only pays attention to the cache file if you give it |
19300 | # the --recheck option to rerun configure. |
19301 | # |
19302 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
19303 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
19304 | # following values. |
19305 | |
19306 | _ACEOF |
19307 | |
19308 | # The following way of writing the cache mishandles newlines in values, |
19309 | # but we know of no workaround that is simple, portable, and efficient. |
19310 | # So, don't put newlines in cache variables' values. |
19311 | # Ultrix sh set writes to stderr and can't be redirected directly, |
19312 | # and sets the high bit in the cache file unless we assign to the vars. |
19313 | { |
19314 | (set) 2>&1 | |
19315 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
19316 | *ac_space=\ *) |
19317 | # `set' does not quote correctly, so add quotes (double-quote |
19318 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
19319 | sed -n \ |
19320 | "s/'/'\\\\''/g; |
19321 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
19322 | ;; |
19323 | *) |
19324 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
19325 | sed -n \ |
19326 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
19327 | ;; |
19328 | esac; |
19329 | } | |
19330 | sed ' |
19331 | t clear |
19332 | : clear |
19333 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
19334 | t end |
19335 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
19336 | : end' >>confcache |
19337 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
19338 | if test -w $cache_file; then |
19339 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
19340 | cat confcache >$cache_file |
19341 | else |
19342 | echo "not updating unwritable cache $cache_file" |
19343 | fi |
19344 | fi |
19345 | rm -f confcache |
19346 | |
19347 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
19348 | # Let make expand exec_prefix. |
19349 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
19350 | |
19351 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
19352 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
19353 | # trailing colons and then remove the whole line if VPATH becomes empty |
19354 | # (actually we leave an empty line to preserve line numbers). |
19355 | if test "x$srcdir" = x.; then |
19356 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
19357 | s/:*\$(srcdir):*/:/; |
19358 | s/:*\${srcdir}:*/:/; |
19359 | s/:*@srcdir@:*/:/; |
19360 | s/^\([^=]*=[ ]*\):*/\1/; |
19361 | s/:*$//; |
19362 | s/^[^=]*=[ ]*$//; |
19363 | }' |
19364 | fi |
19365 | |
19366 | DEFS=-DHAVE_CONFIG_H |
19367 | |
19368 | ac_libobjs= |
19369 | ac_ltlibobjs= |
19370 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
19371 | # 1. Remove the extension, and $U if already installed. |
19372 | ac_i=`echo "$ac_i" | |
19373 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
19374 | # 2. Add them. |
19375 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
19376 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
19377 | done |
19378 | LIBOBJS=$ac_libobjs |
19379 | |
19380 | LTLIBOBJS=$ac_ltlibobjs |
19381 | |
19382 | |
19383 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
19384 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
19385 | Usually this means the macro was only invoked conditionally." >&5 |
19386 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
19387 | Usually this means the macro was only invoked conditionally." >&2;} |
19388 | { (exit 1); exit 1; }; } |
19389 | fi |
19390 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
19391 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
19392 | Usually this means the macro was only invoked conditionally." >&5 |
19393 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
19394 | Usually this means the macro was only invoked conditionally." >&2;} |
19395 | { (exit 1); exit 1; }; } |
19396 | fi |
19397 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
19398 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
19399 | Usually this means the macro was only invoked conditionally." >&5 |
19400 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
19401 | Usually this means the macro was only invoked conditionally." >&2;} |
19402 | { (exit 1); exit 1; }; } |
19403 | fi |
19404 | if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then |
19405 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined. |
19406 | Usually this means the macro was only invoked conditionally." >&5 |
19407 | echo "$as_me: error: conditional \"HAVE_SGML\" was never defined. |
19408 | Usually this means the macro was only invoked conditionally." >&2;} |
19409 | { (exit 1); exit 1; }; } |
19410 | fi |
19411 | |
19412 | : ${CONFIG_STATUS=./config.status} |
19413 | ac_clean_files_save=$ac_clean_files |
19414 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
19415 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
19416 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
19417 | cat >$CONFIG_STATUS <<_ACEOF |
19418 | #! $SHELL |
19419 | # Generated by $as_me. |
19420 | # Run this file to recreate the current configuration. |
19421 | # Compiler output produced by configure, useful for debugging |
19422 | # configure, is in config.log if it exists. |
19423 | |
19424 | debug=false |
19425 | ac_cs_recheck=false |
19426 | ac_cs_silent=false |
19427 | SHELL=\${CONFIG_SHELL-$SHELL} |
19428 | _ACEOF |
19429 | |
19430 | cat >>$CONFIG_STATUS <<\_ACEOF |
19431 | ## --------------------- ## |
19432 | ## M4sh Initialization. ## |
19433 | ## --------------------- ## |
19434 | |
19435 | # Be Bourne compatible |
19436 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
19437 | emulate sh |
19438 | NULLCMD=: |
19439 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
19440 | # is contrary to our usage. Disable this feature. |
19441 | alias -g '${1+"$@"}'='"$@"' |
19442 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
19443 | set -o posix |
19444 | fi |
19445 | DUALCASE=1; export DUALCASE # for MKS sh |
19446 | |
19447 | # Support unset when possible. |
19448 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
19449 | as_unset=unset |
19450 | else |
19451 | as_unset=false |
19452 | fi |
19453 | |
19454 | |
19455 | # Work around bugs in pre-3.0 UWIN ksh. |
19456 | $as_unset ENV MAIL MAILPATH |
19457 | PS1='$ ' |
19458 | PS2='> ' |
19459 | PS4='+ ' |
19460 | |
19461 | # NLS nuisances. |
19462 | for as_var in \ |
19463 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
19464 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
19465 | LC_TELEPHONE LC_TIME |
19466 | do |
19467 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
19468 | eval $as_var=C; export $as_var |
19469 | else |
19470 | $as_unset $as_var |
19471 | fi |
19472 | done |
19473 | |
19474 | # Required to use basename. |
19475 | if expr a : '\(a\)' >/dev/null 2>&1; then |
19476 | as_expr=expr |
19477 | else |
19478 | as_expr=false |
19479 | fi |
19480 | |
19481 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
19482 | as_basename=basename |
19483 | else |
19484 | as_basename=false |
19485 | fi |
19486 | |
19487 | |
19488 | # Name of the executable. |
19489 | as_me=`$as_basename "$0" || |
19490 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
19491 | X"$0" : 'X\(//\)$' \| \ |
19492 | X"$0" : 'X\(/\)$' \| \ |
19493 | . : '\(.\)' 2>/dev/null || |
19494 | echo X/"$0" | |
19495 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
19496 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
19497 | /^X\/\(\/\).*/{ s//\1/; q; } |
19498 | s/.*/./; q'` |
19499 | |
19500 | |
19501 | # PATH needs CR, and LINENO needs CR and PATH. |
19502 | # Avoid depending upon Character Ranges. |
19503 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
19504 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
19505 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
19506 | as_cr_digits='0123456789' |
19507 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
19508 | |
19509 | # The user is always right. |
19510 | if test "${PATH_SEPARATOR+set}" != set; then |
19511 | echo "#! /bin/sh" >conf$$.sh |
19512 | echo "exit 0" >>conf$$.sh |
19513 | chmod +x conf$$.sh |
19514 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
19515 | PATH_SEPARATOR=';' |
19516 | else |
19517 | PATH_SEPARATOR=: |
19518 | fi |
19519 | rm -f conf$$.sh |
19520 | fi |
19521 | |
19522 | |
19523 | as_lineno_1=$LINENO |
19524 | as_lineno_2=$LINENO |
19525 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
19526 | test "x$as_lineno_1" != "x$as_lineno_2" && |
19527 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
19528 | # Find who we are. Look in the path if we contain no path at all |
19529 | # relative or not. |
19530 | case $0 in |
19531 | *[\\/]* ) as_myself=$0 ;; |
19532 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19533 | for as_dir in $PATH |
19534 | do |
19535 | IFS=$as_save_IFS |
19536 | test -z "$as_dir" && as_dir=. |
19537 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
19538 | done |
19539 | |
19540 | ;; |
19541 | esac |
19542 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
19543 | # in which case we are not to be found in the path. |
19544 | if test "x$as_myself" = x; then |
19545 | as_myself=$0 |
19546 | fi |
19547 | if test ! -f "$as_myself"; then |
19548 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
19549 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
19550 | { (exit 1); exit 1; }; } |
19551 | fi |
19552 | case $CONFIG_SHELL in |
19553 | '') |
19554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19555 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
19556 | do |
19557 | IFS=$as_save_IFS |
19558 | test -z "$as_dir" && as_dir=. |
19559 | for as_base in sh bash ksh sh5; do |
19560 | case $as_dir in |
19561 | /*) |
19562 | if ("$as_dir/$as_base" -c ' |
19563 | as_lineno_1=$LINENO |
19564 | as_lineno_2=$LINENO |
19565 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
19566 | test "x$as_lineno_1" != "x$as_lineno_2" && |
19567 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
19568 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
19569 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
19570 | CONFIG_SHELL=$as_dir/$as_base |
19571 | export CONFIG_SHELL |
19572 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
19573 | fi;; |
19574 | esac |
19575 | done |
19576 | done |
19577 | ;; |
19578 | esac |
19579 | |
19580 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
19581 | # uniformly replaced by the line number. The first 'sed' inserts a |
19582 | # line-number line before each line; the second 'sed' does the real |
19583 | # work. The second script uses 'N' to pair each line-number line |
19584 | # with the numbered line, and appends trailing '-' during |
19585 | # substitution so that $LINENO is not a special case at line end. |
19586 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
19587 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
19588 | sed '=' <$as_myself | |
19589 | sed ' |
19590 | N |
19591 | s,$,-, |
19592 | : loop |
19593 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
19594 | t loop |
19595 | s,-$,, |
19596 | s,^['$as_cr_digits']*\n,, |
19597 | ' >$as_me.lineno && |
19598 | chmod +x $as_me.lineno || |
19599 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
19600 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
19601 | { (exit 1); exit 1; }; } |
19602 | |
19603 | # Don't try to exec as it changes $[0], causing all sort of problems |
19604 | # (the dirname of $[0] is not the place where we might find the |
19605 | # original and so on. Autoconf is especially sensible to this). |
19606 | . ./$as_me.lineno |
19607 | # Exit status is that of the last command. |
19608 | exit |
19609 | } |
19610 | |
19611 | |
19612 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
19613 | *c*,-n*) ECHO_N= ECHO_C=' |
19614 | ' ECHO_T=' ' ;; |
19615 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
19616 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
19617 | esac |
19618 | |
19619 | if expr a : '\(a\)' >/dev/null 2>&1; then |
19620 | as_expr=expr |
19621 | else |
19622 | as_expr=false |
19623 | fi |
19624 | |
19625 | rm -f conf$$ conf$$.exe conf$$.file |
19626 | echo >conf$$.file |
19627 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
19628 | # We could just check for DJGPP; but this test a) works b) is more generic |
19629 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
19630 | if test -f conf$$.exe; then |
19631 | # Don't use ln at all; we don't have any links |
19632 | as_ln_s='cp -p' |
19633 | else |
19634 | as_ln_s='ln -s' |
19635 | fi |
19636 | elif ln conf$$.file conf$$ 2>/dev/null; then |
19637 | as_ln_s=ln |
19638 | else |
19639 | as_ln_s='cp -p' |
19640 | fi |
19641 | rm -f conf$$ conf$$.exe conf$$.file |
19642 | |
19643 | if mkdir -p . 2>/dev/null; then |
19644 | as_mkdir_p=: |
19645 | else |
19646 | test -d ./-p && rmdir ./-p |
19647 | as_mkdir_p=false |
19648 | fi |
19649 | |
19650 | as_executable_p="test -f" |
19651 | |
19652 | # Sed expression to map a string onto a valid CPP name. |
19653 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
19654 | |
19655 | # Sed expression to map a string onto a valid variable name. |
19656 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
19657 | |
19658 | |
19659 | # IFS |
19660 | # We need space, tab and new line, in precisely that order. |
19661 | as_nl=' |
19662 | ' |
19663 | IFS=" $as_nl" |
19664 | |
19665 | # CDPATH. |
19666 | $as_unset CDPATH |
19667 | |
19668 | exec 6>&1 |
19669 | |
19670 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
19671 | # report actual input values of CONFIG_FILES etc. instead of their |
19672 | # values after options handling. Logging --version etc. is OK. |
19673 | exec 5>>config.log |
19674 | { |
19675 | echo |
19676 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
19677 | ## Running $as_me. ## |
19678 | _ASBOX |
19679 | } >&5 |
19680 | cat >&5 <<_CSEOF |
19681 | |
19682 | This file was extended by courierlogger $as_me 0.10, which was |
19683 | generated by GNU Autoconf 2.59. Invocation command line was |
19684 | |
19685 | CONFIG_FILES = $CONFIG_FILES |
19686 | CONFIG_HEADERS = $CONFIG_HEADERS |
19687 | CONFIG_LINKS = $CONFIG_LINKS |
19688 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
19689 | $ $0 $@ |
19690 | |
19691 | _CSEOF |
19692 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
19693 | echo >&5 |
19694 | _ACEOF |
19695 | |
19696 | # Files that config.status was made for. |
19697 | if test -n "$ac_config_files"; then |
19698 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
19699 | fi |
19700 | |
19701 | if test -n "$ac_config_headers"; then |
19702 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
19703 | fi |
19704 | |
19705 | if test -n "$ac_config_links"; then |
19706 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
19707 | fi |
19708 | |
19709 | if test -n "$ac_config_commands"; then |
19710 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
19711 | fi |
19712 | |
19713 | cat >>$CONFIG_STATUS <<\_ACEOF |
19714 | |
19715 | ac_cs_usage="\ |
19716 | \`$as_me' instantiates files from templates according to the |
19717 | current configuration. |
19718 | |
19719 | Usage: $0 [OPTIONS] [FILE]... |
19720 | |
19721 | -h, --help print this help, then exit |
19722 | -V, --version print version number, then exit |
19723 | -q, --quiet do not print progress messages |
19724 | -d, --debug don't remove temporary files |
19725 | --recheck update $as_me by reconfiguring in the same conditions |
19726 | --file=FILE[:TEMPLATE] |
19727 | instantiate the configuration file FILE |
19728 | --header=FILE[:TEMPLATE] |
19729 | instantiate the configuration header FILE |
19730 | |
19731 | Configuration files: |
19732 | $config_files |
19733 | |
19734 | Configuration headers: |
19735 | $config_headers |
19736 | |
19737 | Configuration commands: |
19738 | $config_commands |
19739 | |
19740 | Report bugs to <bug-autoconf@gnu.org>." |
19741 | _ACEOF |
19742 | |
19743 | cat >>$CONFIG_STATUS <<_ACEOF |
19744 | ac_cs_version="\\ |
19745 | courierlogger config.status 0.10 |
19746 | configured by $0, generated by GNU Autoconf 2.59, |
19747 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
19748 | |
19749 | Copyright (C) 2003 Free Software Foundation, Inc. |
19750 | This config.status script is free software; the Free Software Foundation |
19751 | gives unlimited permission to copy, distribute and modify it." |
19752 | srcdir=$srcdir |
19753 | INSTALL="$INSTALL" |
19754 | _ACEOF |
19755 | |
19756 | cat >>$CONFIG_STATUS <<\_ACEOF |
19757 | # If no file are specified by the user, then we need to provide default |
19758 | # value. By we need to know if files were specified by the user. |
19759 | ac_need_defaults=: |
19760 | while test $# != 0 |
19761 | do |
19762 | case $1 in |
19763 | --*=*) |
19764 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
19765 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
19766 | ac_shift=: |
19767 | ;; |
19768 | -*) |
19769 | ac_option=$1 |
19770 | ac_optarg=$2 |
19771 | ac_shift=shift |
19772 | ;; |
19773 | *) # This is not an option, so the user has probably given explicit |
19774 | # arguments. |
19775 | ac_option=$1 |
19776 | ac_need_defaults=false;; |
19777 | esac |
19778 | |
19779 | case $ac_option in |
19780 | # Handling of the options. |
19781 | _ACEOF |
19782 | cat >>$CONFIG_STATUS <<\_ACEOF |
19783 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
19784 | ac_cs_recheck=: ;; |
19785 | --version | --vers* | -V ) |
19786 | echo "$ac_cs_version"; exit 0 ;; |
19787 | --he | --h) |
19788 | # Conflict between --help and --header |
19789 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
19790 | Try \`$0 --help' for more information." >&5 |
19791 | echo "$as_me: error: ambiguous option: $1 |
19792 | Try \`$0 --help' for more information." >&2;} |
19793 | { (exit 1); exit 1; }; };; |
19794 | --help | --hel | -h ) |
19795 | echo "$ac_cs_usage"; exit 0 ;; |
19796 | --debug | --d* | -d ) |
19797 | debug=: ;; |
19798 | --file | --fil | --fi | --f ) |
19799 | $ac_shift |
19800 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
19801 | ac_need_defaults=false;; |
19802 | --header | --heade | --head | --hea ) |
19803 | $ac_shift |
19804 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
19805 | ac_need_defaults=false;; |
19806 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
19807 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
19808 | ac_cs_silent=: ;; |
19809 | |
19810 | # This is an error. |
19811 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
19812 | Try \`$0 --help' for more information." >&5 |
19813 | echo "$as_me: error: unrecognized option: $1 |
19814 | Try \`$0 --help' for more information." >&2;} |
19815 | { (exit 1); exit 1; }; } ;; |
19816 | |
19817 | *) ac_config_targets="$ac_config_targets $1" ;; |
19818 | |
19819 | esac |
19820 | shift |
19821 | done |
19822 | |
19823 | ac_configure_extra_args= |
19824 | |
19825 | if $ac_cs_silent; then |
19826 | exec 6>/dev/null |
19827 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
19828 | fi |
19829 | |
19830 | _ACEOF |
19831 | cat >>$CONFIG_STATUS <<_ACEOF |
19832 | if \$ac_cs_recheck; then |
19833 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
19834 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
19835 | fi |
19836 | |
19837 | _ACEOF |
19838 | |
19839 | cat >>$CONFIG_STATUS <<_ACEOF |
19840 | # |
19841 | # INIT-COMMANDS section. |
19842 | # |
19843 | |
19844 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
19845 | |
19846 | _ACEOF |
19847 | |
19848 | |
19849 | |
19850 | cat >>$CONFIG_STATUS <<\_ACEOF |
19851 | for ac_config_target in $ac_config_targets |
19852 | do |
19853 | case "$ac_config_target" in |
19854 | # Handling of arguments. |
19855 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
19856 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
19857 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
19858 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
19859 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
19860 | { (exit 1); exit 1; }; };; |
19861 | esac |
19862 | done |
19863 | |
19864 | # If the user did not use the arguments to specify the items to instantiate, |
19865 | # then the envvar interface is used. Set only those that are not. |
19866 | # We use the long form for the default assignment because of an extremely |
19867 | # bizarre bug on SunOS 4.1.3. |
19868 | if $ac_need_defaults; then |
19869 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
19870 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
19871 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
19872 | fi |
19873 | |
19874 | # Have a temporary directory for convenience. Make it in the build tree |
19875 | # simply because there is no reason to put it here, and in addition, |
19876 | # creating and moving files from /tmp can sometimes cause problems. |
19877 | # Create a temporary directory, and hook for its removal unless debugging. |
19878 | $debug || |
19879 | { |
19880 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
19881 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
19882 | } |
19883 | |
19884 | # Create a (secure) tmp directory for tmp files. |
19885 | |
19886 | { |
19887 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
19888 | test -n "$tmp" && test -d "$tmp" |
19889 | } || |
19890 | { |
19891 | tmp=./confstat$$-$RANDOM |
19892 | (umask 077 && mkdir $tmp) |
19893 | } || |
19894 | { |
19895 | echo "$me: cannot create a temporary directory in ." >&2 |
19896 | { (exit 1); exit 1; } |
19897 | } |
19898 | |
19899 | _ACEOF |
19900 | |
19901 | cat >>$CONFIG_STATUS <<_ACEOF |
19902 | |
19903 | # |
19904 | # CONFIG_FILES section. |
19905 | # |
19906 | |
19907 | # No need to generate the scripts if there are no CONFIG_FILES. |
19908 | # This happens for instance when ./config.status config.h |
19909 | if test -n "\$CONFIG_FILES"; then |
19910 | # Protect against being on the right side of a sed subst in config.status. |
19911 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
19912 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
19913 | s,@SHELL@,$SHELL,;t t |
19914 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
19915 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
19916 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
19917 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
19918 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
19919 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
19920 | s,@exec_prefix@,$exec_prefix,;t t |
19921 | s,@prefix@,$prefix,;t t |
19922 | s,@program_transform_name@,$program_transform_name,;t t |
19923 | s,@bindir@,$bindir,;t t |
19924 | s,@sbindir@,$sbindir,;t t |
19925 | s,@libexecdir@,$libexecdir,;t t |
19926 | s,@datadir@,$datadir,;t t |
19927 | s,@sysconfdir@,$sysconfdir,;t t |
19928 | s,@sharedstatedir@,$sharedstatedir,;t t |
19929 | s,@localstatedir@,$localstatedir,;t t |
19930 | s,@libdir@,$libdir,;t t |
19931 | s,@includedir@,$includedir,;t t |
19932 | s,@oldincludedir@,$oldincludedir,;t t |
19933 | s,@infodir@,$infodir,;t t |
19934 | s,@mandir@,$mandir,;t t |
19935 | s,@build_alias@,$build_alias,;t t |
19936 | s,@host_alias@,$host_alias,;t t |
19937 | s,@target_alias@,$target_alias,;t t |
19938 | s,@DEFS@,$DEFS,;t t |
19939 | s,@ECHO_C@,$ECHO_C,;t t |
19940 | s,@ECHO_N@,$ECHO_N,;t t |
19941 | s,@ECHO_T@,$ECHO_T,;t t |
19942 | s,@LIBS@,$LIBS,;t t |
19943 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
19944 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
19945 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
19946 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
19947 | s,@PACKAGE@,$PACKAGE,;t t |
19948 | s,@VERSION@,$VERSION,;t t |
19949 | s,@ACLOCAL@,$ACLOCAL,;t t |
19950 | s,@AUTOCONF@,$AUTOCONF,;t t |
19951 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
19952 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
19953 | s,@MAKEINFO@,$MAKEINFO,;t t |
19954 | s,@install_sh@,$install_sh,;t t |
19955 | s,@STRIP@,$STRIP,;t t |
19956 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
19957 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
19958 | s,@mkdir_p@,$mkdir_p,;t t |
19959 | s,@AWK@,$AWK,;t t |
19960 | s,@SET_MAKE@,$SET_MAKE,;t t |
19961 | s,@am__leading_dot@,$am__leading_dot,;t t |
19962 | s,@AMTAR@,$AMTAR,;t t |
19963 | s,@am__tar@,$am__tar,;t t |
19964 | s,@am__untar@,$am__untar,;t t |
19965 | s,@CC@,$CC,;t t |
19966 | s,@CFLAGS@,$CFLAGS,;t t |
19967 | s,@LDFLAGS@,$LDFLAGS,;t t |
19968 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
19969 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
19970 | s,@EXEEXT@,$EXEEXT,;t t |
19971 | s,@OBJEXT@,$OBJEXT,;t t |
19972 | s,@DEPDIR@,$DEPDIR,;t t |
19973 | s,@am__include@,$am__include,;t t |
19974 | s,@am__quote@,$am__quote,;t t |
19975 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
19976 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
19977 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
19978 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
19979 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
19980 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
19981 | s,@LN_S@,$LN_S,;t t |
19982 | s,@build@,$build,;t t |
19983 | s,@build_cpu@,$build_cpu,;t t |
19984 | s,@build_vendor@,$build_vendor,;t t |
19985 | s,@build_os@,$build_os,;t t |
19986 | s,@host@,$host,;t t |
19987 | s,@host_cpu@,$host_cpu,;t t |
19988 | s,@host_vendor@,$host_vendor,;t t |
19989 | s,@host_os@,$host_os,;t t |
19990 | s,@SED@,$SED,;t t |
19991 | s,@EGREP@,$EGREP,;t t |
19992 | s,@ECHO@,$ECHO,;t t |
19993 | s,@AR@,$AR,;t t |
19994 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
19995 | s,@RANLIB@,$RANLIB,;t t |
19996 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
19997 | s,@CPP@,$CPP,;t t |
19998 | s,@CXX@,$CXX,;t t |
19999 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
20000 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
20001 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
20002 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
20003 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
20004 | s,@CXXCPP@,$CXXCPP,;t t |
20005 | s,@F77@,$F77,;t t |
20006 | s,@FFLAGS@,$FFLAGS,;t t |
20007 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
20008 | s,@LIBTOOL@,$LIBTOOL,;t t |
20009 | s,@HAVE_SGML_TRUE@,$HAVE_SGML_TRUE,;t t |
20010 | s,@HAVE_SGML_FALSE@,$HAVE_SGML_FALSE,;t t |
20011 | s,@LIBOBJS@,$LIBOBJS,;t t |
20012 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
20013 | CEOF |
20014 | |
20015 | _ACEOF |
20016 | |
20017 | cat >>$CONFIG_STATUS <<\_ACEOF |
20018 | # Split the substitutions into bite-sized pieces for seds with |
20019 | # small command number limits, like on Digital OSF/1 and HP-UX. |
20020 | ac_max_sed_lines=48 |
20021 | ac_sed_frag=1 # Number of current file. |
20022 | ac_beg=1 # First line for current file. |
20023 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
20024 | ac_more_lines=: |
20025 | ac_sed_cmds= |
20026 | while $ac_more_lines; do |
20027 | if test $ac_beg -gt 1; then |
20028 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
20029 | else |
20030 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
20031 | fi |
20032 | if test ! -s $tmp/subs.frag; then |
20033 | ac_more_lines=false |
20034 | else |
20035 | # The purpose of the label and of the branching condition is to |
20036 | # speed up the sed processing (if there are no `@' at all, there |
20037 | # is no need to browse any of the substitutions). |
20038 | # These are the two extra sed commands mentioned above. |
20039 | (echo ':t |
20040 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
20041 | if test -z "$ac_sed_cmds"; then |
20042 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
20043 | else |
20044 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
20045 | fi |
20046 | ac_sed_frag=`expr $ac_sed_frag + 1` |
20047 | ac_beg=$ac_end |
20048 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
20049 | fi |
20050 | done |
20051 | if test -z "$ac_sed_cmds"; then |
20052 | ac_sed_cmds=cat |
20053 | fi |
20054 | fi # test -n "$CONFIG_FILES" |
20055 | |
20056 | _ACEOF |
20057 | cat >>$CONFIG_STATUS <<\_ACEOF |
20058 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
20059 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
20060 | case $ac_file in |
20061 | - | *:- | *:-:* ) # input from stdin |
20062 | cat >$tmp/stdin |
20063 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
20064 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
20065 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
20066 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
20067 | * ) ac_file_in=$ac_file.in ;; |
20068 | esac |
20069 | |
20070 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
20071 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
20072 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20073 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
20074 | X"$ac_file" : 'X\(//\)$' \| \ |
20075 | X"$ac_file" : 'X\(/\)' \| \ |
20076 | . : '\(.\)' 2>/dev/null || |
20077 | echo X"$ac_file" | |
20078 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20079 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20080 | /^X\(\/\/\)$/{ s//\1/; q; } |
20081 | /^X\(\/\).*/{ s//\1/; q; } |
20082 | s/.*/./; q'` |
20083 | { if $as_mkdir_p; then |
20084 | mkdir -p "$ac_dir" |
20085 | else |
20086 | as_dir="$ac_dir" |
20087 | as_dirs= |
20088 | while test ! -d "$as_dir"; do |
20089 | as_dirs="$as_dir $as_dirs" |
20090 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
20091 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20092 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
20093 | X"$as_dir" : 'X\(//\)$' \| \ |
20094 | X"$as_dir" : 'X\(/\)' \| \ |
20095 | . : '\(.\)' 2>/dev/null || |
20096 | echo X"$as_dir" | |
20097 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20098 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20099 | /^X\(\/\/\)$/{ s//\1/; q; } |
20100 | /^X\(\/\).*/{ s//\1/; q; } |
20101 | s/.*/./; q'` |
20102 | done |
20103 | test ! -n "$as_dirs" || mkdir $as_dirs |
20104 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
20105 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
20106 | { (exit 1); exit 1; }; }; } |
20107 | |
20108 | ac_builddir=. |
20109 | |
20110 | if test "$ac_dir" != .; then |
20111 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
20112 | # A "../" for each directory in $ac_dir_suffix. |
20113 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
20114 | else |
20115 | ac_dir_suffix= ac_top_builddir= |
20116 | fi |
20117 | |
20118 | case $srcdir in |
20119 | .) # No --srcdir option. We are building in place. |
20120 | ac_srcdir=. |
20121 | if test -z "$ac_top_builddir"; then |
20122 | ac_top_srcdir=. |
20123 | else |
20124 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
20125 | fi ;; |
20126 | [\\/]* | ?:[\\/]* ) # Absolute path. |
20127 | ac_srcdir=$srcdir$ac_dir_suffix; |
20128 | ac_top_srcdir=$srcdir ;; |
20129 | *) # Relative path. |
20130 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
20131 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
20132 | esac |
20133 | |
20134 | # Do not use `cd foo && pwd` to compute absolute paths, because |
20135 | # the directories may not exist. |
20136 | case `pwd` in |
20137 | .) ac_abs_builddir="$ac_dir";; |
20138 | *) |
20139 | case "$ac_dir" in |
20140 | .) ac_abs_builddir=`pwd`;; |
20141 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
20142 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
20143 | esac;; |
20144 | esac |
20145 | case $ac_abs_builddir in |
20146 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
20147 | *) |
20148 | case ${ac_top_builddir}. in |
20149 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
20150 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
20151 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
20152 | esac;; |
20153 | esac |
20154 | case $ac_abs_builddir in |
20155 | .) ac_abs_srcdir=$ac_srcdir;; |
20156 | *) |
20157 | case $ac_srcdir in |
20158 | .) ac_abs_srcdir=$ac_abs_builddir;; |
20159 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
20160 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
20161 | esac;; |
20162 | esac |
20163 | case $ac_abs_builddir in |
20164 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
20165 | *) |
20166 | case $ac_top_srcdir in |
20167 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
20168 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
20169 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
20170 | esac;; |
20171 | esac |
20172 | |
20173 | |
20174 | case $INSTALL in |
20175 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
20176 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
20177 | esac |
20178 | |
20179 | if test x"$ac_file" != x-; then |
20180 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
20181 | echo "$as_me: creating $ac_file" >&6;} |
20182 | rm -f "$ac_file" |
20183 | fi |
20184 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
20185 | # use $as_me), people would be surprised to read: |
20186 | # /* config.h. Generated by config.status. */ |
20187 | if test x"$ac_file" = x-; then |
20188 | configure_input= |
20189 | else |
20190 | configure_input="$ac_file. " |
20191 | fi |
20192 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
20193 | sed 's,.*/,,'` by configure." |
20194 | |
20195 | # First look for the input files in the build tree, otherwise in the |
20196 | # src tree. |
20197 | ac_file_inputs=`IFS=: |
20198 | for f in $ac_file_in; do |
20199 | case $f in |
20200 | -) echo $tmp/stdin ;; |
20201 | [\\/$]*) |
20202 | # Absolute (can't be DOS-style, as IFS=:) |
20203 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
20204 | echo "$as_me: error: cannot find input file: $f" >&2;} |
20205 | { (exit 1); exit 1; }; } |
20206 | echo "$f";; |
20207 | *) # Relative |
20208 | if test -f "$f"; then |
20209 | # Build tree |
20210 | echo "$f" |
20211 | elif test -f "$srcdir/$f"; then |
20212 | # Source tree |
20213 | echo "$srcdir/$f" |
20214 | else |
20215 | # /dev/null tree |
20216 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
20217 | echo "$as_me: error: cannot find input file: $f" >&2;} |
20218 | { (exit 1); exit 1; }; } |
20219 | fi;; |
20220 | esac |
20221 | done` || { (exit 1); exit 1; } |
20222 | _ACEOF |
20223 | cat >>$CONFIG_STATUS <<_ACEOF |
20224 | sed "$ac_vpsub |
20225 | $extrasub |
20226 | _ACEOF |
20227 | cat >>$CONFIG_STATUS <<\_ACEOF |
20228 | :t |
20229 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
20230 | s,@configure_input@,$configure_input,;t t |
20231 | s,@srcdir@,$ac_srcdir,;t t |
20232 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
20233 | s,@top_srcdir@,$ac_top_srcdir,;t t |
20234 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
20235 | s,@builddir@,$ac_builddir,;t t |
20236 | s,@abs_builddir@,$ac_abs_builddir,;t t |
20237 | s,@top_builddir@,$ac_top_builddir,;t t |
20238 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
20239 | s,@INSTALL@,$ac_INSTALL,;t t |
20240 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
20241 | rm -f $tmp/stdin |
20242 | if test x"$ac_file" != x-; then |
20243 | mv $tmp/out $ac_file |
20244 | else |
20245 | cat $tmp/out |
20246 | rm -f $tmp/out |
20247 | fi |
20248 | |
20249 | done |
20250 | _ACEOF |
20251 | cat >>$CONFIG_STATUS <<\_ACEOF |
20252 | |
20253 | # |
20254 | # CONFIG_HEADER section. |
20255 | # |
20256 | |
20257 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
20258 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
20259 | # |
20260 | # ac_d sets the value in "#define NAME VALUE" lines. |
20261 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
20262 | ac_dB='[ ].*$,\1#\2' |
20263 | ac_dC=' ' |
20264 | ac_dD=',;t' |
20265 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
20266 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
20267 | ac_uB='$,\1#\2define\3' |
20268 | ac_uC=' ' |
20269 | ac_uD=',;t' |
20270 | |
20271 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
20272 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
20273 | case $ac_file in |
20274 | - | *:- | *:-:* ) # input from stdin |
20275 | cat >$tmp/stdin |
20276 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
20277 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
20278 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
20279 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
20280 | * ) ac_file_in=$ac_file.in ;; |
20281 | esac |
20282 | |
20283 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
20284 | echo "$as_me: creating $ac_file" >&6;} |
20285 | |
20286 | # First look for the input files in the build tree, otherwise in the |
20287 | # src tree. |
20288 | ac_file_inputs=`IFS=: |
20289 | for f in $ac_file_in; do |
20290 | case $f in |
20291 | -) echo $tmp/stdin ;; |
20292 | [\\/$]*) |
20293 | # Absolute (can't be DOS-style, as IFS=:) |
20294 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
20295 | echo "$as_me: error: cannot find input file: $f" >&2;} |
20296 | { (exit 1); exit 1; }; } |
20297 | # Do quote $f, to prevent DOS paths from being IFS'd. |
20298 | echo "$f";; |
20299 | *) # Relative |
20300 | if test -f "$f"; then |
20301 | # Build tree |
20302 | echo "$f" |
20303 | elif test -f "$srcdir/$f"; then |
20304 | # Source tree |
20305 | echo "$srcdir/$f" |
20306 | else |
20307 | # /dev/null tree |
20308 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
20309 | echo "$as_me: error: cannot find input file: $f" >&2;} |
20310 | { (exit 1); exit 1; }; } |
20311 | fi;; |
20312 | esac |
20313 | done` || { (exit 1); exit 1; } |
20314 | # Remove the trailing spaces. |
20315 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
20316 | |
20317 | _ACEOF |
20318 | |
20319 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
20320 | # `conftest.undefs', that substitutes the proper values into |
20321 | # config.h.in to produce config.h. The first handles `#define' |
20322 | # templates, and the second `#undef' templates. |
20323 | # And first: Protect against being on the right side of a sed subst in |
20324 | # config.status. Protect against being in an unquoted here document |
20325 | # in config.status. |
20326 | rm -f conftest.defines conftest.undefs |
20327 | # Using a here document instead of a string reduces the quoting nightmare. |
20328 | # Putting comments in sed scripts is not portable. |
20329 | # |
20330 | # `end' is used to avoid that the second main sed command (meant for |
20331 | # 0-ary CPP macros) applies to n-ary macro definitions. |
20332 | # See the Autoconf documentation for `clear'. |
20333 | cat >confdef2sed.sed <<\_ACEOF |
20334 | s/[\\&,]/\\&/g |
20335 | s,[\\$`],\\&,g |
20336 | t clear |
20337 | : clear |
20338 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
20339 | t end |
20340 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
20341 | : end |
20342 | _ACEOF |
20343 | # If some macros were called several times there might be several times |
20344 | # the same #defines, which is useless. Nevertheless, we may not want to |
20345 | # sort them, since we want the *last* AC-DEFINE to be honored. |
20346 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
20347 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
20348 | rm -f confdef2sed.sed |
20349 | |
20350 | # This sed command replaces #undef with comments. This is necessary, for |
20351 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
20352 | # on some systems where configure will not decide to define it. |
20353 | cat >>conftest.undefs <<\_ACEOF |
20354 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
20355 | _ACEOF |
20356 | |
20357 | # Break up conftest.defines because some shells have a limit on the size |
20358 | # of here documents, and old seds have small limits too (100 cmds). |
20359 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
20360 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
20361 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
20362 | echo ' :' >>$CONFIG_STATUS |
20363 | rm -f conftest.tail |
20364 | while grep . conftest.defines >/dev/null |
20365 | do |
20366 | # Write a limited-size here document to $tmp/defines.sed. |
20367 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
20368 | # Speed up: don't consider the non `#define' lines. |
20369 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
20370 | # Work around the forget-to-reset-the-flag bug. |
20371 | echo 't clr' >>$CONFIG_STATUS |
20372 | echo ': clr' >>$CONFIG_STATUS |
20373 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
20374 | echo 'CEOF |
20375 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
20376 | rm -f $tmp/in |
20377 | mv $tmp/out $tmp/in |
20378 | ' >>$CONFIG_STATUS |
20379 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
20380 | rm -f conftest.defines |
20381 | mv conftest.tail conftest.defines |
20382 | done |
20383 | rm -f conftest.defines |
20384 | echo ' fi # grep' >>$CONFIG_STATUS |
20385 | echo >>$CONFIG_STATUS |
20386 | |
20387 | # Break up conftest.undefs because some shells have a limit on the size |
20388 | # of here documents, and old seds have small limits too (100 cmds). |
20389 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
20390 | rm -f conftest.tail |
20391 | while grep . conftest.undefs >/dev/null |
20392 | do |
20393 | # Write a limited-size here document to $tmp/undefs.sed. |
20394 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
20395 | # Speed up: don't consider the non `#undef' |
20396 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
20397 | # Work around the forget-to-reset-the-flag bug. |
20398 | echo 't clr' >>$CONFIG_STATUS |
20399 | echo ': clr' >>$CONFIG_STATUS |
20400 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
20401 | echo 'CEOF |
20402 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
20403 | rm -f $tmp/in |
20404 | mv $tmp/out $tmp/in |
20405 | ' >>$CONFIG_STATUS |
20406 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
20407 | rm -f conftest.undefs |
20408 | mv conftest.tail conftest.undefs |
20409 | done |
20410 | rm -f conftest.undefs |
20411 | |
20412 | cat >>$CONFIG_STATUS <<\_ACEOF |
20413 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
20414 | # use $as_me), people would be surprised to read: |
20415 | # /* config.h. Generated by config.status. */ |
20416 | if test x"$ac_file" = x-; then |
20417 | echo "/* Generated by configure. */" >$tmp/config.h |
20418 | else |
20419 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
20420 | fi |
20421 | cat $tmp/in >>$tmp/config.h |
20422 | rm -f $tmp/in |
20423 | if test x"$ac_file" != x-; then |
20424 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
20425 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
20426 | echo "$as_me: $ac_file is unchanged" >&6;} |
20427 | else |
20428 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
20429 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20430 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
20431 | X"$ac_file" : 'X\(//\)$' \| \ |
20432 | X"$ac_file" : 'X\(/\)' \| \ |
20433 | . : '\(.\)' 2>/dev/null || |
20434 | echo X"$ac_file" | |
20435 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20436 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20437 | /^X\(\/\/\)$/{ s//\1/; q; } |
20438 | /^X\(\/\).*/{ s//\1/; q; } |
20439 | s/.*/./; q'` |
20440 | { if $as_mkdir_p; then |
20441 | mkdir -p "$ac_dir" |
20442 | else |
20443 | as_dir="$ac_dir" |
20444 | as_dirs= |
20445 | while test ! -d "$as_dir"; do |
20446 | as_dirs="$as_dir $as_dirs" |
20447 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
20448 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20449 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
20450 | X"$as_dir" : 'X\(//\)$' \| \ |
20451 | X"$as_dir" : 'X\(/\)' \| \ |
20452 | . : '\(.\)' 2>/dev/null || |
20453 | echo X"$as_dir" | |
20454 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20455 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20456 | /^X\(\/\/\)$/{ s//\1/; q; } |
20457 | /^X\(\/\).*/{ s//\1/; q; } |
20458 | s/.*/./; q'` |
20459 | done |
20460 | test ! -n "$as_dirs" || mkdir $as_dirs |
20461 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
20462 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
20463 | { (exit 1); exit 1; }; }; } |
20464 | |
20465 | rm -f $ac_file |
20466 | mv $tmp/config.h $ac_file |
20467 | fi |
20468 | else |
20469 | cat $tmp/config.h |
20470 | rm -f $tmp/config.h |
20471 | fi |
20472 | # Compute $ac_file's index in $config_headers. |
20473 | _am_stamp_count=1 |
20474 | for _am_header in $config_headers :; do |
20475 | case $_am_header in |
20476 | $ac_file | $ac_file:* ) |
20477 | break ;; |
20478 | * ) |
20479 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
20480 | esac |
20481 | done |
20482 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
20483 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20484 | X$ac_file : 'X\(//\)[^/]' \| \ |
20485 | X$ac_file : 'X\(//\)$' \| \ |
20486 | X$ac_file : 'X\(/\)' \| \ |
20487 | . : '\(.\)' 2>/dev/null || |
20488 | echo X$ac_file | |
20489 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20490 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20491 | /^X\(\/\/\)$/{ s//\1/; q; } |
20492 | /^X\(\/\).*/{ s//\1/; q; } |
20493 | s/.*/./; q'`/stamp-h$_am_stamp_count |
20494 | done |
20495 | _ACEOF |
20496 | cat >>$CONFIG_STATUS <<\_ACEOF |
20497 | |
20498 | # |
20499 | # CONFIG_COMMANDS section. |
20500 | # |
20501 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
20502 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
20503 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
20504 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
20505 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20506 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
20507 | X"$ac_dest" : 'X\(//\)$' \| \ |
20508 | X"$ac_dest" : 'X\(/\)' \| \ |
20509 | . : '\(.\)' 2>/dev/null || |
20510 | echo X"$ac_dest" | |
20511 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20512 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20513 | /^X\(\/\/\)$/{ s//\1/; q; } |
20514 | /^X\(\/\).*/{ s//\1/; q; } |
20515 | s/.*/./; q'` |
20516 | { if $as_mkdir_p; then |
20517 | mkdir -p "$ac_dir" |
20518 | else |
20519 | as_dir="$ac_dir" |
20520 | as_dirs= |
20521 | while test ! -d "$as_dir"; do |
20522 | as_dirs="$as_dir $as_dirs" |
20523 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
20524 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20525 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
20526 | X"$as_dir" : 'X\(//\)$' \| \ |
20527 | X"$as_dir" : 'X\(/\)' \| \ |
20528 | . : '\(.\)' 2>/dev/null || |
20529 | echo X"$as_dir" | |
20530 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20531 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20532 | /^X\(\/\/\)$/{ s//\1/; q; } |
20533 | /^X\(\/\).*/{ s//\1/; q; } |
20534 | s/.*/./; q'` |
20535 | done |
20536 | test ! -n "$as_dirs" || mkdir $as_dirs |
20537 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
20538 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
20539 | { (exit 1); exit 1; }; }; } |
20540 | |
20541 | ac_builddir=. |
20542 | |
20543 | if test "$ac_dir" != .; then |
20544 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
20545 | # A "../" for each directory in $ac_dir_suffix. |
20546 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
20547 | else |
20548 | ac_dir_suffix= ac_top_builddir= |
20549 | fi |
20550 | |
20551 | case $srcdir in |
20552 | .) # No --srcdir option. We are building in place. |
20553 | ac_srcdir=. |
20554 | if test -z "$ac_top_builddir"; then |
20555 | ac_top_srcdir=. |
20556 | else |
20557 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
20558 | fi ;; |
20559 | [\\/]* | ?:[\\/]* ) # Absolute path. |
20560 | ac_srcdir=$srcdir$ac_dir_suffix; |
20561 | ac_top_srcdir=$srcdir ;; |
20562 | *) # Relative path. |
20563 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
20564 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
20565 | esac |
20566 | |
20567 | # Do not use `cd foo && pwd` to compute absolute paths, because |
20568 | # the directories may not exist. |
20569 | case `pwd` in |
20570 | .) ac_abs_builddir="$ac_dir";; |
20571 | *) |
20572 | case "$ac_dir" in |
20573 | .) ac_abs_builddir=`pwd`;; |
20574 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
20575 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
20576 | esac;; |
20577 | esac |
20578 | case $ac_abs_builddir in |
20579 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
20580 | *) |
20581 | case ${ac_top_builddir}. in |
20582 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
20583 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
20584 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
20585 | esac;; |
20586 | esac |
20587 | case $ac_abs_builddir in |
20588 | .) ac_abs_srcdir=$ac_srcdir;; |
20589 | *) |
20590 | case $ac_srcdir in |
20591 | .) ac_abs_srcdir=$ac_abs_builddir;; |
20592 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
20593 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
20594 | esac;; |
20595 | esac |
20596 | case $ac_abs_builddir in |
20597 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
20598 | *) |
20599 | case $ac_top_srcdir in |
20600 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
20601 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
20602 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
20603 | esac;; |
20604 | esac |
20605 | |
20606 | |
20607 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
20608 | echo "$as_me: executing $ac_dest commands" >&6;} |
20609 | case $ac_dest in |
20610 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
20611 | # Strip MF so we end up with the name of the file. |
20612 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
20613 | # Check whether this is an Automake generated Makefile or not. |
20614 | # We used to match only the files named `Makefile.in', but |
20615 | # some people rename them; so instead we look at the file content. |
20616 | # Grep'ing the first line is not enough: some people post-process |
20617 | # each Makefile.in and add a new line on top of each file to say so. |
20618 | # So let's grep whole file. |
20619 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
20620 | dirpart=`(dirname "$mf") 2>/dev/null || |
20621 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20622 | X"$mf" : 'X\(//\)[^/]' \| \ |
20623 | X"$mf" : 'X\(//\)$' \| \ |
20624 | X"$mf" : 'X\(/\)' \| \ |
20625 | . : '\(.\)' 2>/dev/null || |
20626 | echo X"$mf" | |
20627 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20628 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20629 | /^X\(\/\/\)$/{ s//\1/; q; } |
20630 | /^X\(\/\).*/{ s//\1/; q; } |
20631 | s/.*/./; q'` |
20632 | else |
20633 | continue |
20634 | fi |
20635 | # Extract the definition of DEPDIR, am__include, and am__quote |
20636 | # from the Makefile without running `make'. |
20637 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
20638 | test -z "$DEPDIR" && continue |
20639 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
20640 | test -z "am__include" && continue |
20641 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
20642 | # When using ansi2knr, U may be empty or an underscore; expand it |
20643 | U=`sed -n 's/^U = //p' < "$mf"` |
20644 | # Find all dependency output files, they are included files with |
20645 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
20646 | # simplest approach to changing $(DEPDIR) to its actual value in the |
20647 | # expansion. |
20648 | for file in `sed -n " |
20649 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
20650 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
20651 | # Make sure the directory exists. |
20652 | test -f "$dirpart/$file" && continue |
20653 | fdir=`(dirname "$file") 2>/dev/null || |
20654 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20655 | X"$file" : 'X\(//\)[^/]' \| \ |
20656 | X"$file" : 'X\(//\)$' \| \ |
20657 | X"$file" : 'X\(/\)' \| \ |
20658 | . : '\(.\)' 2>/dev/null || |
20659 | echo X"$file" | |
20660 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20661 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20662 | /^X\(\/\/\)$/{ s//\1/; q; } |
20663 | /^X\(\/\).*/{ s//\1/; q; } |
20664 | s/.*/./; q'` |
20665 | { if $as_mkdir_p; then |
20666 | mkdir -p $dirpart/$fdir |
20667 | else |
20668 | as_dir=$dirpart/$fdir |
20669 | as_dirs= |
20670 | while test ! -d "$as_dir"; do |
20671 | as_dirs="$as_dir $as_dirs" |
20672 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
20673 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20674 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
20675 | X"$as_dir" : 'X\(//\)$' \| \ |
20676 | X"$as_dir" : 'X\(/\)' \| \ |
20677 | . : '\(.\)' 2>/dev/null || |
20678 | echo X"$as_dir" | |
20679 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20680 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20681 | /^X\(\/\/\)$/{ s//\1/; q; } |
20682 | /^X\(\/\).*/{ s//\1/; q; } |
20683 | s/.*/./; q'` |
20684 | done |
20685 | test ! -n "$as_dirs" || mkdir $as_dirs |
20686 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
20687 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
20688 | { (exit 1); exit 1; }; }; } |
20689 | |
20690 | # echo "creating $dirpart/$file" |
20691 | echo '# dummy' > "$dirpart/$file" |
20692 | done |
20693 | done |
20694 | ;; |
20695 | esac |
20696 | done |
20697 | _ACEOF |
20698 | |
20699 | cat >>$CONFIG_STATUS <<\_ACEOF |
20700 | |
20701 | { (exit 0); exit 0; } |
20702 | _ACEOF |
20703 | chmod +x $CONFIG_STATUS |
20704 | ac_clean_files=$ac_clean_files_save |
20705 | |
20706 | |
20707 | # configure is writing to config.log, and then calls config.status. |
20708 | # config.status does its own redirection, appending to config.log. |
20709 | # Unfortunately, on DOS this fails, as config.log is still kept open |
20710 | # by configure, so config.status won't be able to write to it; its |
20711 | # output is simply discarded. So we exec the FD to /dev/null, |
20712 | # effectively closing config.log, so it can be properly (re)opened and |
20713 | # appended to by config.status. When coming back to configure, we |
20714 | # need to make the FD available again. |
20715 | if test "$no_create" != yes; then |
20716 | ac_cs_success=: |
20717 | ac_config_status_args= |
20718 | test "$silent" = yes && |
20719 | ac_config_status_args="$ac_config_status_args --quiet" |
20720 | exec 5>/dev/null |
20721 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
20722 | exec 5>>config.log |
20723 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
20724 | # would make configure fail if this is the last instruction. |
20725 | $ac_cs_success || { (exit 1); exit 1; } |
20726 | fi |
20727 | |