d9898ee8 |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
3 | # Generated by GNU Autoconf 2.59 for makedat 0.60. |
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='makedat' |
425 | PACKAGE_TARNAME='makedat' |
426 | PACKAGE_VERSION='0.60' |
427 | PACKAGE_STRING='makedat 0.60' |
428 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' |
429 | |
430 | ac_unique_file="makedatprog.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 PERL CAT 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 makedatprog_target dblibrary LIBGDBM LIBDB USE_GDBM_TRUE USE_GDBM_FALSE USE_DB_TRUE USE_DB_FALSE makedatprogpath 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 makedat 0.60 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 makedat 0.60:";; |
1024 | esac |
1025 | cat <<\_ACEOF |
1026 | |
1027 | Optional Features: |
1028 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1029 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1030 | --disable-dependency-tracking speeds up one-time build |
1031 | --enable-dependency-tracking do not reject slow dependency extractors |
1032 | --enable-shared[=PKGS] |
1033 | build shared libraries [default=yes] |
1034 | --enable-static[=PKGS] |
1035 | build static libraries [default=yes] |
1036 | --enable-fast-install[=PKGS] |
1037 | optimize for fast installation [default=yes] |
1038 | --disable-libtool-lock avoid locking (might break parallel builds) |
1039 | |
1040 | Optional Packages: |
1041 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1042 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1043 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1044 | --with-pic try to use only PIC/non-PIC objects [default=use |
1045 | both] |
1046 | --with-tags[=TAGS] |
1047 | include additional configurations [automatic] |
1048 | |
1049 | --with-makedatprog=filename Installed location and name of makedatprog |
1050 | |
1051 | Some influential environment variables: |
1052 | CC C compiler command |
1053 | CFLAGS C compiler flags |
1054 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1055 | nonstandard directory <lib dir> |
1056 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
1057 | headers in a nonstandard directory <include dir> |
1058 | CPP C preprocessor |
1059 | CXX C++ compiler command |
1060 | CXXFLAGS C++ compiler flags |
1061 | CXXCPP C++ preprocessor |
1062 | F77 Fortran 77 compiler command |
1063 | FFLAGS Fortran 77 compiler flags |
1064 | |
1065 | Use these variables to override the choices made by `configure' or to help |
1066 | it to find libraries and programs with nonstandard names/locations. |
1067 | |
1068 | Report bugs to <courier-users@lists.sourceforge.net>. |
1069 | _ACEOF |
1070 | fi |
1071 | |
1072 | if test "$ac_init_help" = "recursive"; then |
1073 | # If there are subdirs, report their specific --help. |
1074 | ac_popdir=`pwd` |
1075 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1076 | test -d $ac_dir || continue |
1077 | ac_builddir=. |
1078 | |
1079 | if test "$ac_dir" != .; then |
1080 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
1081 | # A "../" for each directory in $ac_dir_suffix. |
1082 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
1083 | else |
1084 | ac_dir_suffix= ac_top_builddir= |
1085 | fi |
1086 | |
1087 | case $srcdir in |
1088 | .) # No --srcdir option. We are building in place. |
1089 | ac_srcdir=. |
1090 | if test -z "$ac_top_builddir"; then |
1091 | ac_top_srcdir=. |
1092 | else |
1093 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
1094 | fi ;; |
1095 | [\\/]* | ?:[\\/]* ) # Absolute path. |
1096 | ac_srcdir=$srcdir$ac_dir_suffix; |
1097 | ac_top_srcdir=$srcdir ;; |
1098 | *) # Relative path. |
1099 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
1100 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
1101 | esac |
1102 | |
1103 | # Do not use `cd foo && pwd` to compute absolute paths, because |
1104 | # the directories may not exist. |
1105 | case `pwd` in |
1106 | .) ac_abs_builddir="$ac_dir";; |
1107 | *) |
1108 | case "$ac_dir" in |
1109 | .) ac_abs_builddir=`pwd`;; |
1110 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
1111 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
1112 | esac;; |
1113 | esac |
1114 | case $ac_abs_builddir in |
1115 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
1116 | *) |
1117 | case ${ac_top_builddir}. in |
1118 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
1119 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
1120 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
1121 | esac;; |
1122 | esac |
1123 | case $ac_abs_builddir in |
1124 | .) ac_abs_srcdir=$ac_srcdir;; |
1125 | *) |
1126 | case $ac_srcdir in |
1127 | .) ac_abs_srcdir=$ac_abs_builddir;; |
1128 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
1129 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
1130 | esac;; |
1131 | esac |
1132 | case $ac_abs_builddir in |
1133 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
1134 | *) |
1135 | case $ac_top_srcdir in |
1136 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
1137 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
1138 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
1139 | esac;; |
1140 | esac |
1141 | |
1142 | cd $ac_dir |
1143 | # Check for guested configure; otherwise get Cygnus style configure. |
1144 | if test -f $ac_srcdir/configure.gnu; then |
1145 | echo |
1146 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
1147 | elif test -f $ac_srcdir/configure; then |
1148 | echo |
1149 | $SHELL $ac_srcdir/configure --help=recursive |
1150 | elif test -f $ac_srcdir/configure.ac || |
1151 | test -f $ac_srcdir/configure.in; then |
1152 | echo |
1153 | $ac_configure --help |
1154 | else |
1155 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1156 | fi |
1157 | cd $ac_popdir |
1158 | done |
1159 | fi |
1160 | |
1161 | test -n "$ac_init_help" && exit 0 |
1162 | if $ac_init_version; then |
1163 | cat <<\_ACEOF |
1164 | makedat configure 0.60 |
1165 | generated by GNU Autoconf 2.59 |
1166 | |
1167 | Copyright (C) 2003 Free Software Foundation, Inc. |
1168 | This configure script is free software; the Free Software Foundation |
1169 | gives unlimited permission to copy, distribute and modify it. |
1170 | _ACEOF |
1171 | exit 0 |
1172 | fi |
1173 | exec 5>config.log |
1174 | cat >&5 <<_ACEOF |
1175 | This file contains any messages produced by compilers while |
1176 | running configure, to aid debugging if configure makes a mistake. |
1177 | |
1178 | It was created by makedat $as_me 0.60, which was |
1179 | generated by GNU Autoconf 2.59. Invocation command line was |
1180 | |
1181 | $ $0 $@ |
1182 | |
1183 | _ACEOF |
1184 | { |
1185 | cat <<_ASUNAME |
1186 | ## --------- ## |
1187 | ## Platform. ## |
1188 | ## --------- ## |
1189 | |
1190 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1191 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1192 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1193 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1194 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1195 | |
1196 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1197 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1198 | |
1199 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1200 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1201 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1202 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
1203 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1204 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1205 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1206 | |
1207 | _ASUNAME |
1208 | |
1209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1210 | for as_dir in $PATH |
1211 | do |
1212 | IFS=$as_save_IFS |
1213 | test -z "$as_dir" && as_dir=. |
1214 | echo "PATH: $as_dir" |
1215 | done |
1216 | |
1217 | } >&5 |
1218 | |
1219 | cat >&5 <<_ACEOF |
1220 | |
1221 | |
1222 | ## ----------- ## |
1223 | ## Core tests. ## |
1224 | ## ----------- ## |
1225 | |
1226 | _ACEOF |
1227 | |
1228 | |
1229 | # Keep a trace of the command line. |
1230 | # Strip out --no-create and --no-recursion so they do not pile up. |
1231 | # Strip out --silent because we don't want to record it for future runs. |
1232 | # Also quote any args containing shell meta-characters. |
1233 | # Make two passes to allow for proper duplicate-argument suppression. |
1234 | ac_configure_args= |
1235 | ac_configure_args0= |
1236 | ac_configure_args1= |
1237 | ac_sep= |
1238 | ac_must_keep_next=false |
1239 | for ac_pass in 1 2 |
1240 | do |
1241 | for ac_arg |
1242 | do |
1243 | case $ac_arg in |
1244 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1245 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1246 | | -silent | --silent | --silen | --sile | --sil) |
1247 | continue ;; |
1248 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1249 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1250 | esac |
1251 | case $ac_pass in |
1252 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1253 | 2) |
1254 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1255 | if test $ac_must_keep_next = true; then |
1256 | ac_must_keep_next=false # Got value, back to normal. |
1257 | else |
1258 | case $ac_arg in |
1259 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
1260 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1261 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1262 | | -with-* | --with-* | -without-* | --without-* | --x) |
1263 | case "$ac_configure_args0 " in |
1264 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1265 | esac |
1266 | ;; |
1267 | -* ) ac_must_keep_next=true ;; |
1268 | esac |
1269 | fi |
1270 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1271 | # Get rid of the leading space. |
1272 | ac_sep=" " |
1273 | ;; |
1274 | esac |
1275 | done |
1276 | done |
1277 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1278 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1279 | |
1280 | # When interrupted or exit'd, cleanup temporary files, and complete |
1281 | # config.log. We remove comments because anyway the quotes in there |
1282 | # would cause problems or look ugly. |
1283 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1284 | # such as our DU 5.0 friend, will then `close' the trap. |
1285 | trap 'exit_status=$? |
1286 | # Save into config.log some information that might help in debugging. |
1287 | { |
1288 | echo |
1289 | |
1290 | cat <<\_ASBOX |
1291 | ## ---------------- ## |
1292 | ## Cache variables. ## |
1293 | ## ---------------- ## |
1294 | _ASBOX |
1295 | echo |
1296 | # The following way of writing the cache mishandles newlines in values, |
1297 | { |
1298 | (set) 2>&1 | |
1299 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1300 | *ac_space=\ *) |
1301 | sed -n \ |
1302 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1303 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
1304 | ;; |
1305 | *) |
1306 | sed -n \ |
1307 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
1308 | ;; |
1309 | esac; |
1310 | } |
1311 | echo |
1312 | |
1313 | cat <<\_ASBOX |
1314 | ## ----------------- ## |
1315 | ## Output variables. ## |
1316 | ## ----------------- ## |
1317 | _ASBOX |
1318 | echo |
1319 | for ac_var in $ac_subst_vars |
1320 | do |
1321 | eval ac_val=$`echo $ac_var` |
1322 | echo "$ac_var='"'"'$ac_val'"'"'" |
1323 | done | sort |
1324 | echo |
1325 | |
1326 | if test -n "$ac_subst_files"; then |
1327 | cat <<\_ASBOX |
1328 | ## ------------- ## |
1329 | ## Output files. ## |
1330 | ## ------------- ## |
1331 | _ASBOX |
1332 | echo |
1333 | for ac_var in $ac_subst_files |
1334 | do |
1335 | eval ac_val=$`echo $ac_var` |
1336 | echo "$ac_var='"'"'$ac_val'"'"'" |
1337 | done | sort |
1338 | echo |
1339 | fi |
1340 | |
1341 | if test -s confdefs.h; then |
1342 | cat <<\_ASBOX |
1343 | ## ----------- ## |
1344 | ## confdefs.h. ## |
1345 | ## ----------- ## |
1346 | _ASBOX |
1347 | echo |
1348 | sed "/^$/d" confdefs.h | sort |
1349 | echo |
1350 | fi |
1351 | test "$ac_signal" != 0 && |
1352 | echo "$as_me: caught signal $ac_signal" |
1353 | echo "$as_me: exit $exit_status" |
1354 | } >&5 |
1355 | rm -f core *.core && |
1356 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1357 | exit $exit_status |
1358 | ' 0 |
1359 | for ac_signal in 1 2 13 15; do |
1360 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1361 | done |
1362 | ac_signal=0 |
1363 | |
1364 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
1365 | rm -rf conftest* confdefs.h |
1366 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
1367 | echo >confdefs.h |
1368 | |
1369 | # Predefined preprocessor variables. |
1370 | |
1371 | cat >>confdefs.h <<_ACEOF |
1372 | #define PACKAGE_NAME "$PACKAGE_NAME" |
1373 | _ACEOF |
1374 | |
1375 | |
1376 | cat >>confdefs.h <<_ACEOF |
1377 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1378 | _ACEOF |
1379 | |
1380 | |
1381 | cat >>confdefs.h <<_ACEOF |
1382 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
1383 | _ACEOF |
1384 | |
1385 | |
1386 | cat >>confdefs.h <<_ACEOF |
1387 | #define PACKAGE_STRING "$PACKAGE_STRING" |
1388 | _ACEOF |
1389 | |
1390 | |
1391 | cat >>confdefs.h <<_ACEOF |
1392 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1393 | _ACEOF |
1394 | |
1395 | |
1396 | # Let the site file select an alternate cache file if it wants to. |
1397 | # Prefer explicitly selected file to automatically selected ones. |
1398 | if test -z "$CONFIG_SITE"; then |
1399 | if test "x$prefix" != xNONE; then |
1400 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
1401 | else |
1402 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
1403 | fi |
1404 | fi |
1405 | for ac_site_file in $CONFIG_SITE; do |
1406 | if test -r "$ac_site_file"; then |
1407 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1408 | echo "$as_me: loading site script $ac_site_file" >&6;} |
1409 | sed 's/^/| /' "$ac_site_file" >&5 |
1410 | . "$ac_site_file" |
1411 | fi |
1412 | done |
1413 | |
1414 | if test -r "$cache_file"; then |
1415 | # Some versions of bash will fail to source /dev/null (special |
1416 | # files actually), so we avoid doing that. |
1417 | if test -f "$cache_file"; then |
1418 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1419 | echo "$as_me: loading cache $cache_file" >&6;} |
1420 | case $cache_file in |
1421 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
1422 | *) . ./$cache_file;; |
1423 | esac |
1424 | fi |
1425 | else |
1426 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1427 | echo "$as_me: creating cache $cache_file" >&6;} |
1428 | >$cache_file |
1429 | fi |
1430 | |
1431 | # Check that the precious variables saved in the cache have kept the same |
1432 | # value. |
1433 | ac_cache_corrupted=false |
1434 | for ac_var in `(set) 2>&1 | |
1435 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
1436 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1437 | eval ac_new_set=\$ac_env_${ac_var}_set |
1438 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1439 | eval ac_new_val="\$ac_env_${ac_var}_value" |
1440 | case $ac_old_set,$ac_new_set in |
1441 | set,) |
1442 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1443 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1444 | ac_cache_corrupted=: ;; |
1445 | ,set) |
1446 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1447 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1448 | ac_cache_corrupted=: ;; |
1449 | ,);; |
1450 | *) |
1451 | if test "x$ac_old_val" != "x$ac_new_val"; then |
1452 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1453 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1454 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1455 | echo "$as_me: former value: $ac_old_val" >&2;} |
1456 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1457 | echo "$as_me: current value: $ac_new_val" >&2;} |
1458 | ac_cache_corrupted=: |
1459 | fi;; |
1460 | esac |
1461 | # Pass precious variables to config.status. |
1462 | if test "$ac_new_set" = set; then |
1463 | case $ac_new_val in |
1464 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1465 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1466 | *) ac_arg=$ac_var=$ac_new_val ;; |
1467 | esac |
1468 | case " $ac_configure_args " in |
1469 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1470 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1471 | esac |
1472 | fi |
1473 | done |
1474 | if $ac_cache_corrupted; then |
1475 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1476 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1477 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1478 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1479 | { (exit 1); exit 1; }; } |
1480 | fi |
1481 | |
1482 | ac_ext=c |
1483 | ac_cpp='$CPP $CPPFLAGS' |
1484 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1485 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1486 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
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 | |
1515 | >confdefs.h # Kill PACKAGE_ macros |
1516 | |
1517 | |
1518 | am__api_version="1.9" |
1519 | ac_aux_dir= |
1520 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1521 | if test -f $ac_dir/install-sh; then |
1522 | ac_aux_dir=$ac_dir |
1523 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1524 | break |
1525 | elif test -f $ac_dir/install.sh; then |
1526 | ac_aux_dir=$ac_dir |
1527 | ac_install_sh="$ac_aux_dir/install.sh -c" |
1528 | break |
1529 | elif test -f $ac_dir/shtool; then |
1530 | ac_aux_dir=$ac_dir |
1531 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1532 | break |
1533 | fi |
1534 | done |
1535 | if test -z "$ac_aux_dir"; then |
1536 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1537 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1538 | { (exit 1); exit 1; }; } |
1539 | fi |
1540 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1541 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1542 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1543 | |
1544 | # Find a good install program. We prefer a C program (faster), |
1545 | # so one script is as good as another. But avoid the broken or |
1546 | # incompatible versions: |
1547 | # SysV /etc/install, /usr/sbin/install |
1548 | # SunOS /usr/etc/install |
1549 | # IRIX /sbin/install |
1550 | # AIX /bin/install |
1551 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
1552 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1553 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
1554 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
1555 | # OS/2's system install, which has a completely different semantic |
1556 | # ./install, which can be erroneously created by make from ./install.sh. |
1557 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1558 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
1559 | if test -z "$INSTALL"; then |
1560 | if test "${ac_cv_path_install+set}" = set; then |
1561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1562 | else |
1563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1564 | for as_dir in $PATH |
1565 | do |
1566 | IFS=$as_save_IFS |
1567 | test -z "$as_dir" && as_dir=. |
1568 | # Account for people who put trailing slashes in PATH elements. |
1569 | case $as_dir/ in |
1570 | ./ | .// | /cC/* | \ |
1571 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
1572 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
1573 | /usr/ucb/* ) ;; |
1574 | *) |
1575 | # OSF1 and SCO ODT 3.0 have their own names for install. |
1576 | # Don't use installbsd from OSF since it installs stuff as root |
1577 | # by default. |
1578 | for ac_prog in ginstall scoinst install; do |
1579 | for ac_exec_ext in '' $ac_executable_extensions; do |
1580 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
1581 | if test $ac_prog = install && |
1582 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
1583 | # AIX install. It has an incompatible calling convention. |
1584 | : |
1585 | elif test $ac_prog = install && |
1586 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
1587 | # program-specific install script used by HP pwplus--don't use. |
1588 | : |
1589 | else |
1590 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
1591 | break 3 |
1592 | fi |
1593 | fi |
1594 | done |
1595 | done |
1596 | ;; |
1597 | esac |
1598 | done |
1599 | |
1600 | |
1601 | fi |
1602 | if test "${ac_cv_path_install+set}" = set; then |
1603 | INSTALL=$ac_cv_path_install |
1604 | else |
1605 | # As a last resort, use the slow shell script. We don't cache a |
1606 | # path for INSTALL within a source directory, because that will |
1607 | # break other packages using the cache if that directory is |
1608 | # removed, or if the path is relative. |
1609 | INSTALL=$ac_install_sh |
1610 | fi |
1611 | fi |
1612 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
1613 | echo "${ECHO_T}$INSTALL" >&6 |
1614 | |
1615 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
1616 | # It thinks the first close brace ends the variable substitution. |
1617 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
1618 | |
1619 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
1620 | |
1621 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
1622 | |
1623 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
1624 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
1625 | # Just in case |
1626 | sleep 1 |
1627 | echo timestamp > conftest.file |
1628 | # Do `set' in a subshell so we don't clobber the current shell's |
1629 | # arguments. Must try -L first in case configure is actually a |
1630 | # symlink; some systems play weird games with the mod time of symlinks |
1631 | # (eg FreeBSD returns the mod time of the symlink's containing |
1632 | # directory). |
1633 | if ( |
1634 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
1635 | if test "$*" = "X"; then |
1636 | # -L didn't work. |
1637 | set X `ls -t $srcdir/configure conftest.file` |
1638 | fi |
1639 | rm -f conftest.file |
1640 | if test "$*" != "X $srcdir/configure conftest.file" \ |
1641 | && test "$*" != "X conftest.file $srcdir/configure"; then |
1642 | |
1643 | # If neither matched, then we have a broken ls. This can happen |
1644 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
1645 | # broken ls alias from the environment. This has actually |
1646 | # happened. Such a system could not be considered "sane". |
1647 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
1648 | alias in your environment" >&5 |
1649 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
1650 | alias in your environment" >&2;} |
1651 | { (exit 1); exit 1; }; } |
1652 | fi |
1653 | |
1654 | test "$2" = conftest.file |
1655 | ) |
1656 | then |
1657 | # Ok. |
1658 | : |
1659 | else |
1660 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
1661 | Check your system clock" >&5 |
1662 | echo "$as_me: error: newly created file is older than distributed files! |
1663 | Check your system clock" >&2;} |
1664 | { (exit 1); exit 1; }; } |
1665 | fi |
1666 | echo "$as_me:$LINENO: result: yes" >&5 |
1667 | echo "${ECHO_T}yes" >&6 |
1668 | test "$program_prefix" != NONE && |
1669 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
1670 | # Use a double $ so make ignores it. |
1671 | test "$program_suffix" != NONE && |
1672 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
1673 | # Double any \ or $. echo might interpret backslashes. |
1674 | # By default was `s,x,x', remove it if useless. |
1675 | cat <<\_ACEOF >conftest.sed |
1676 | s/[\\$]/&&/g;s/;s,x,x,$// |
1677 | _ACEOF |
1678 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
1679 | rm conftest.sed |
1680 | |
1681 | # expand $ac_aux_dir to an absolute path |
1682 | am_aux_dir=`cd $ac_aux_dir && pwd` |
1683 | |
1684 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
1685 | # Use eval to expand $SHELL |
1686 | if eval "$MISSING --run true"; then |
1687 | am_missing_run="$MISSING --run " |
1688 | else |
1689 | am_missing_run= |
1690 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
1691 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
1692 | fi |
1693 | |
1694 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
1695 | # We used to keeping the `.' as first argument, in order to |
1696 | # allow $(mkdir_p) to be used without argument. As in |
1697 | # $(mkdir_p) $(somedir) |
1698 | # where $(somedir) is conditionally defined. However this is wrong |
1699 | # for two reasons: |
1700 | # 1. if the package is installed by a user who cannot write `.' |
1701 | # make install will fail, |
1702 | # 2. the above comment should most certainly read |
1703 | # $(mkdir_p) $(DESTDIR)$(somedir) |
1704 | # so it does not work when $(somedir) is undefined and |
1705 | # $(DESTDIR) is not. |
1706 | # To support the latter case, we have to write |
1707 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
1708 | # so the `.' trick is pointless. |
1709 | mkdir_p='mkdir -p --' |
1710 | else |
1711 | # On NextStep and OpenStep, the `mkdir' command does not |
1712 | # recognize any option. It will interpret all options as |
1713 | # directories to create, and then abort because `.' already |
1714 | # exists. |
1715 | for d in ./-p ./--version; |
1716 | do |
1717 | test -d $d && rmdir $d |
1718 | done |
1719 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
1720 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
1721 | mkdir_p='$(mkinstalldirs)' |
1722 | else |
1723 | mkdir_p='$(install_sh) -d' |
1724 | fi |
1725 | fi |
1726 | |
1727 | for ac_prog in gawk mawk nawk awk |
1728 | do |
1729 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1730 | set dummy $ac_prog; ac_word=$2 |
1731 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1732 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1733 | if test "${ac_cv_prog_AWK+set}" = set; then |
1734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1735 | else |
1736 | if test -n "$AWK"; then |
1737 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
1738 | else |
1739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1740 | for as_dir in $PATH |
1741 | do |
1742 | IFS=$as_save_IFS |
1743 | test -z "$as_dir" && as_dir=. |
1744 | for ac_exec_ext in '' $ac_executable_extensions; do |
1745 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1746 | ac_cv_prog_AWK="$ac_prog" |
1747 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1748 | break 2 |
1749 | fi |
1750 | done |
1751 | done |
1752 | |
1753 | fi |
1754 | fi |
1755 | AWK=$ac_cv_prog_AWK |
1756 | if test -n "$AWK"; then |
1757 | echo "$as_me:$LINENO: result: $AWK" >&5 |
1758 | echo "${ECHO_T}$AWK" >&6 |
1759 | else |
1760 | echo "$as_me:$LINENO: result: no" >&5 |
1761 | echo "${ECHO_T}no" >&6 |
1762 | fi |
1763 | |
1764 | test -n "$AWK" && break |
1765 | done |
1766 | |
1767 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1768 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
1769 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
1770 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
1771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1772 | else |
1773 | cat >conftest.make <<\_ACEOF |
1774 | all: |
1775 | @echo 'ac_maketemp="$(MAKE)"' |
1776 | _ACEOF |
1777 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
1778 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
1779 | if test -n "$ac_maketemp"; then |
1780 | eval ac_cv_prog_make_${ac_make}_set=yes |
1781 | else |
1782 | eval ac_cv_prog_make_${ac_make}_set=no |
1783 | fi |
1784 | rm -f conftest.make |
1785 | fi |
1786 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
1787 | echo "$as_me:$LINENO: result: yes" >&5 |
1788 | echo "${ECHO_T}yes" >&6 |
1789 | SET_MAKE= |
1790 | else |
1791 | echo "$as_me:$LINENO: result: no" >&5 |
1792 | echo "${ECHO_T}no" >&6 |
1793 | SET_MAKE="MAKE=${MAKE-make}" |
1794 | fi |
1795 | |
1796 | rm -rf .tst 2>/dev/null |
1797 | mkdir .tst 2>/dev/null |
1798 | if test -d .tst; then |
1799 | am__leading_dot=. |
1800 | else |
1801 | am__leading_dot=_ |
1802 | fi |
1803 | rmdir .tst 2>/dev/null |
1804 | |
1805 | # test to see if srcdir already configured |
1806 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
1807 | test -f $srcdir/config.status; then |
1808 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
1809 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
1810 | { (exit 1); exit 1; }; } |
1811 | fi |
1812 | |
1813 | # test whether we have cygpath |
1814 | if test -z "$CYGPATH_W"; then |
1815 | if (cygpath --version) >/dev/null 2>/dev/null; then |
1816 | CYGPATH_W='cygpath -w' |
1817 | else |
1818 | CYGPATH_W=echo |
1819 | fi |
1820 | fi |
1821 | |
1822 | |
1823 | # Define the identity of the package. |
1824 | PACKAGE='makedat' |
1825 | VERSION='0.60' |
1826 | |
1827 | |
1828 | # Some tools Automake needs. |
1829 | |
1830 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
1831 | |
1832 | |
1833 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
1834 | |
1835 | |
1836 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
1837 | |
1838 | |
1839 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
1840 | |
1841 | |
1842 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
1843 | |
1844 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
1845 | |
1846 | # Installed binaries are usually stripped using `strip' when the user |
1847 | # run `make install-strip'. However `strip' might not be the right |
1848 | # tool to use in cross-compilation environments, therefore Automake |
1849 | # will honor the `STRIP' environment variable to overrule this program. |
1850 | if test "$cross_compiling" != no; then |
1851 | if test -n "$ac_tool_prefix"; then |
1852 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
1853 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
1854 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1855 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1856 | if test "${ac_cv_prog_STRIP+set}" = set; then |
1857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1858 | else |
1859 | if test -n "$STRIP"; then |
1860 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
1861 | else |
1862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1863 | for as_dir in $PATH |
1864 | do |
1865 | IFS=$as_save_IFS |
1866 | test -z "$as_dir" && as_dir=. |
1867 | for ac_exec_ext in '' $ac_executable_extensions; do |
1868 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1869 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
1870 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1871 | break 2 |
1872 | fi |
1873 | done |
1874 | done |
1875 | |
1876 | fi |
1877 | fi |
1878 | STRIP=$ac_cv_prog_STRIP |
1879 | if test -n "$STRIP"; then |
1880 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
1881 | echo "${ECHO_T}$STRIP" >&6 |
1882 | else |
1883 | echo "$as_me:$LINENO: result: no" >&5 |
1884 | echo "${ECHO_T}no" >&6 |
1885 | fi |
1886 | |
1887 | fi |
1888 | if test -z "$ac_cv_prog_STRIP"; then |
1889 | ac_ct_STRIP=$STRIP |
1890 | # Extract the first word of "strip", so it can be a program name with args. |
1891 | set dummy strip; ac_word=$2 |
1892 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1893 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1894 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
1895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1896 | else |
1897 | if test -n "$ac_ct_STRIP"; then |
1898 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
1899 | else |
1900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1901 | for as_dir in $PATH |
1902 | do |
1903 | IFS=$as_save_IFS |
1904 | test -z "$as_dir" && as_dir=. |
1905 | for ac_exec_ext in '' $ac_executable_extensions; do |
1906 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1907 | ac_cv_prog_ac_ct_STRIP="strip" |
1908 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1909 | break 2 |
1910 | fi |
1911 | done |
1912 | done |
1913 | |
1914 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
1915 | fi |
1916 | fi |
1917 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
1918 | if test -n "$ac_ct_STRIP"; then |
1919 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
1920 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
1921 | else |
1922 | echo "$as_me:$LINENO: result: no" >&5 |
1923 | echo "${ECHO_T}no" >&6 |
1924 | fi |
1925 | |
1926 | STRIP=$ac_ct_STRIP |
1927 | else |
1928 | STRIP="$ac_cv_prog_STRIP" |
1929 | fi |
1930 | |
1931 | fi |
1932 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
1933 | |
1934 | # We need awk for the "check" target. The system "awk" is bad on |
1935 | # some platforms. |
1936 | # Always define AMTAR for backward compatibility. |
1937 | |
1938 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
1939 | |
1940 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
1941 | |
1942 | |
1943 | |
1944 | |
1945 | |
1946 | LPATH="$PATH:/usr/local/bin" |
1947 | ac_config_headers="$ac_config_headers config.h" |
1948 | |
1949 | |
1950 | ac_ext=c |
1951 | ac_cpp='$CPP $CPPFLAGS' |
1952 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1953 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1954 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1955 | if test -n "$ac_tool_prefix"; then |
1956 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
1957 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
1958 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1959 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1960 | if test "${ac_cv_prog_CC+set}" = set; then |
1961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1962 | else |
1963 | if test -n "$CC"; then |
1964 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1965 | else |
1966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1967 | for as_dir in $PATH |
1968 | do |
1969 | IFS=$as_save_IFS |
1970 | test -z "$as_dir" && as_dir=. |
1971 | for ac_exec_ext in '' $ac_executable_extensions; do |
1972 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1973 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1974 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1975 | break 2 |
1976 | fi |
1977 | done |
1978 | done |
1979 | |
1980 | fi |
1981 | fi |
1982 | CC=$ac_cv_prog_CC |
1983 | if test -n "$CC"; then |
1984 | echo "$as_me:$LINENO: result: $CC" >&5 |
1985 | echo "${ECHO_T}$CC" >&6 |
1986 | else |
1987 | echo "$as_me:$LINENO: result: no" >&5 |
1988 | echo "${ECHO_T}no" >&6 |
1989 | fi |
1990 | |
1991 | fi |
1992 | if test -z "$ac_cv_prog_CC"; then |
1993 | ac_ct_CC=$CC |
1994 | # Extract the first word of "gcc", so it can be a program name with args. |
1995 | set dummy gcc; ac_word=$2 |
1996 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1997 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1998 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2000 | else |
2001 | if test -n "$ac_ct_CC"; then |
2002 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2003 | else |
2004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2005 | for as_dir in $PATH |
2006 | do |
2007 | IFS=$as_save_IFS |
2008 | test -z "$as_dir" && as_dir=. |
2009 | for ac_exec_ext in '' $ac_executable_extensions; do |
2010 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2011 | ac_cv_prog_ac_ct_CC="gcc" |
2012 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2013 | break 2 |
2014 | fi |
2015 | done |
2016 | done |
2017 | |
2018 | fi |
2019 | fi |
2020 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2021 | if test -n "$ac_ct_CC"; then |
2022 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2023 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2024 | else |
2025 | echo "$as_me:$LINENO: result: no" >&5 |
2026 | echo "${ECHO_T}no" >&6 |
2027 | fi |
2028 | |
2029 | CC=$ac_ct_CC |
2030 | else |
2031 | CC="$ac_cv_prog_CC" |
2032 | fi |
2033 | |
2034 | if test -z "$CC"; then |
2035 | if test -n "$ac_tool_prefix"; then |
2036 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
2037 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2038 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2039 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2040 | if test "${ac_cv_prog_CC+set}" = set; then |
2041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2042 | else |
2043 | if test -n "$CC"; then |
2044 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2045 | else |
2046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2047 | for as_dir in $PATH |
2048 | do |
2049 | IFS=$as_save_IFS |
2050 | test -z "$as_dir" && as_dir=. |
2051 | for ac_exec_ext in '' $ac_executable_extensions; do |
2052 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2053 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2054 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2055 | break 2 |
2056 | fi |
2057 | done |
2058 | done |
2059 | |
2060 | fi |
2061 | fi |
2062 | CC=$ac_cv_prog_CC |
2063 | if test -n "$CC"; then |
2064 | echo "$as_me:$LINENO: result: $CC" >&5 |
2065 | echo "${ECHO_T}$CC" >&6 |
2066 | else |
2067 | echo "$as_me:$LINENO: result: no" >&5 |
2068 | echo "${ECHO_T}no" >&6 |
2069 | fi |
2070 | |
2071 | fi |
2072 | if test -z "$ac_cv_prog_CC"; then |
2073 | ac_ct_CC=$CC |
2074 | # Extract the first word of "cc", so it can be a program name with args. |
2075 | set dummy cc; ac_word=$2 |
2076 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2077 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2078 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2080 | else |
2081 | if test -n "$ac_ct_CC"; then |
2082 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2083 | else |
2084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2085 | for as_dir in $PATH |
2086 | do |
2087 | IFS=$as_save_IFS |
2088 | test -z "$as_dir" && as_dir=. |
2089 | for ac_exec_ext in '' $ac_executable_extensions; do |
2090 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2091 | ac_cv_prog_ac_ct_CC="cc" |
2092 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2093 | break 2 |
2094 | fi |
2095 | done |
2096 | done |
2097 | |
2098 | fi |
2099 | fi |
2100 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2101 | if test -n "$ac_ct_CC"; then |
2102 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2103 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2104 | else |
2105 | echo "$as_me:$LINENO: result: no" >&5 |
2106 | echo "${ECHO_T}no" >&6 |
2107 | fi |
2108 | |
2109 | CC=$ac_ct_CC |
2110 | else |
2111 | CC="$ac_cv_prog_CC" |
2112 | fi |
2113 | |
2114 | fi |
2115 | if test -z "$CC"; then |
2116 | # Extract the first word of "cc", so it can be a program name with args. |
2117 | set dummy cc; ac_word=$2 |
2118 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2119 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2120 | if test "${ac_cv_prog_CC+set}" = set; then |
2121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2122 | else |
2123 | if test -n "$CC"; then |
2124 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2125 | else |
2126 | ac_prog_rejected=no |
2127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2128 | for as_dir in $PATH |
2129 | do |
2130 | IFS=$as_save_IFS |
2131 | test -z "$as_dir" && as_dir=. |
2132 | for ac_exec_ext in '' $ac_executable_extensions; do |
2133 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2134 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2135 | ac_prog_rejected=yes |
2136 | continue |
2137 | fi |
2138 | ac_cv_prog_CC="cc" |
2139 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2140 | break 2 |
2141 | fi |
2142 | done |
2143 | done |
2144 | |
2145 | if test $ac_prog_rejected = yes; then |
2146 | # We found a bogon in the path, so make sure we never use it. |
2147 | set dummy $ac_cv_prog_CC |
2148 | shift |
2149 | if test $# != 0; then |
2150 | # We chose a different compiler from the bogus one. |
2151 | # However, it has the same basename, so the bogon will be chosen |
2152 | # first if we set CC to just the basename; use the full file name. |
2153 | shift |
2154 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
2155 | fi |
2156 | fi |
2157 | fi |
2158 | fi |
2159 | CC=$ac_cv_prog_CC |
2160 | if test -n "$CC"; then |
2161 | echo "$as_me:$LINENO: result: $CC" >&5 |
2162 | echo "${ECHO_T}$CC" >&6 |
2163 | else |
2164 | echo "$as_me:$LINENO: result: no" >&5 |
2165 | echo "${ECHO_T}no" >&6 |
2166 | fi |
2167 | |
2168 | fi |
2169 | if test -z "$CC"; then |
2170 | if test -n "$ac_tool_prefix"; then |
2171 | for ac_prog in cl |
2172 | do |
2173 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2174 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2175 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2176 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2177 | if test "${ac_cv_prog_CC+set}" = set; then |
2178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2179 | else |
2180 | if test -n "$CC"; then |
2181 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2182 | else |
2183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2184 | for as_dir in $PATH |
2185 | do |
2186 | IFS=$as_save_IFS |
2187 | test -z "$as_dir" && as_dir=. |
2188 | for ac_exec_ext in '' $ac_executable_extensions; do |
2189 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2190 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2191 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2192 | break 2 |
2193 | fi |
2194 | done |
2195 | done |
2196 | |
2197 | fi |
2198 | fi |
2199 | CC=$ac_cv_prog_CC |
2200 | if test -n "$CC"; then |
2201 | echo "$as_me:$LINENO: result: $CC" >&5 |
2202 | echo "${ECHO_T}$CC" >&6 |
2203 | else |
2204 | echo "$as_me:$LINENO: result: no" >&5 |
2205 | echo "${ECHO_T}no" >&6 |
2206 | fi |
2207 | |
2208 | test -n "$CC" && break |
2209 | done |
2210 | fi |
2211 | if test -z "$CC"; then |
2212 | ac_ct_CC=$CC |
2213 | for ac_prog in cl |
2214 | do |
2215 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2216 | set dummy $ac_prog; ac_word=$2 |
2217 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2218 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2219 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2221 | else |
2222 | if test -n "$ac_ct_CC"; then |
2223 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2224 | else |
2225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2226 | for as_dir in $PATH |
2227 | do |
2228 | IFS=$as_save_IFS |
2229 | test -z "$as_dir" && as_dir=. |
2230 | for ac_exec_ext in '' $ac_executable_extensions; do |
2231 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2232 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2233 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2234 | break 2 |
2235 | fi |
2236 | done |
2237 | done |
2238 | |
2239 | fi |
2240 | fi |
2241 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2242 | if test -n "$ac_ct_CC"; then |
2243 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2244 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2245 | else |
2246 | echo "$as_me:$LINENO: result: no" >&5 |
2247 | echo "${ECHO_T}no" >&6 |
2248 | fi |
2249 | |
2250 | test -n "$ac_ct_CC" && break |
2251 | done |
2252 | |
2253 | CC=$ac_ct_CC |
2254 | fi |
2255 | |
2256 | fi |
2257 | |
2258 | |
2259 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2260 | See \`config.log' for more details." >&5 |
2261 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
2262 | See \`config.log' for more details." >&2;} |
2263 | { (exit 1); exit 1; }; } |
2264 | |
2265 | # Provide some information about the compiler. |
2266 | echo "$as_me:$LINENO:" \ |
2267 | "checking for C compiler version" >&5 |
2268 | ac_compiler=`set X $ac_compile; echo $2` |
2269 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
2270 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
2271 | ac_status=$? |
2272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2273 | (exit $ac_status); } |
2274 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
2275 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
2276 | ac_status=$? |
2277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2278 | (exit $ac_status); } |
2279 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
2280 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
2281 | ac_status=$? |
2282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2283 | (exit $ac_status); } |
2284 | |
2285 | cat >conftest.$ac_ext <<_ACEOF |
2286 | /* confdefs.h. */ |
2287 | _ACEOF |
2288 | cat confdefs.h >>conftest.$ac_ext |
2289 | cat >>conftest.$ac_ext <<_ACEOF |
2290 | /* end confdefs.h. */ |
2291 | |
2292 | int |
2293 | main () |
2294 | { |
2295 | |
2296 | ; |
2297 | return 0; |
2298 | } |
2299 | _ACEOF |
2300 | ac_clean_files_save=$ac_clean_files |
2301 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2302 | # Try to create an executable without -o first, disregard a.out. |
2303 | # It will help us diagnose broken compilers, and finding out an intuition |
2304 | # of exeext. |
2305 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2306 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
2307 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2308 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
2309 | (eval $ac_link_default) 2>&5 |
2310 | ac_status=$? |
2311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2312 | (exit $ac_status); }; then |
2313 | # Find the output, starting from the most likely. This scheme is |
2314 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
2315 | # resort. |
2316 | |
2317 | # Be careful to initialize this variable, since it used to be cached. |
2318 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
2319 | ac_cv_exeext= |
2320 | # b.out is created by i960 compilers. |
2321 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
2322 | do |
2323 | test -f "$ac_file" || continue |
2324 | case $ac_file in |
2325 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
2326 | ;; |
2327 | conftest.$ac_ext ) |
2328 | # This is the source file. |
2329 | ;; |
2330 | [ab].out ) |
2331 | # We found the default executable, but exeext='' is most |
2332 | # certainly right. |
2333 | break;; |
2334 | *.* ) |
2335 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2336 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
2337 | # but it would be cool to find out if it's true. Does anybody |
2338 | # maintain Libtool? --akim. |
2339 | export ac_cv_exeext |
2340 | break;; |
2341 | * ) |
2342 | break;; |
2343 | esac |
2344 | done |
2345 | else |
2346 | echo "$as_me: failed program was:" >&5 |
2347 | sed 's/^/| /' conftest.$ac_ext >&5 |
2348 | |
2349 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2350 | See \`config.log' for more details." >&5 |
2351 | echo "$as_me: error: C compiler cannot create executables |
2352 | See \`config.log' for more details." >&2;} |
2353 | { (exit 77); exit 77; }; } |
2354 | fi |
2355 | |
2356 | ac_exeext=$ac_cv_exeext |
2357 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
2358 | echo "${ECHO_T}$ac_file" >&6 |
2359 | |
2360 | # Check the compiler produces executables we can run. If not, either |
2361 | # the compiler is broken, or we cross compile. |
2362 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2363 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
2364 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2365 | # If not cross compiling, check that we can run a simple program. |
2366 | if test "$cross_compiling" != yes; then |
2367 | if { ac_try='./$ac_file' |
2368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2369 | (eval $ac_try) 2>&5 |
2370 | ac_status=$? |
2371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2372 | (exit $ac_status); }; }; then |
2373 | cross_compiling=no |
2374 | else |
2375 | if test "$cross_compiling" = maybe; then |
2376 | cross_compiling=yes |
2377 | else |
2378 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
2379 | If you meant to cross compile, use \`--host'. |
2380 | See \`config.log' for more details." >&5 |
2381 | echo "$as_me: error: cannot run C compiled programs. |
2382 | If you meant to cross compile, use \`--host'. |
2383 | See \`config.log' for more details." >&2;} |
2384 | { (exit 1); exit 1; }; } |
2385 | fi |
2386 | fi |
2387 | fi |
2388 | echo "$as_me:$LINENO: result: yes" >&5 |
2389 | echo "${ECHO_T}yes" >&6 |
2390 | |
2391 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2392 | ac_clean_files=$ac_clean_files_save |
2393 | # Check the compiler produces executables we can run. If not, either |
2394 | # the compiler is broken, or we cross compile. |
2395 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2396 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
2397 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2398 | echo "${ECHO_T}$cross_compiling" >&6 |
2399 | |
2400 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2401 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
2402 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2403 | (eval $ac_link) 2>&5 |
2404 | ac_status=$? |
2405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2406 | (exit $ac_status); }; then |
2407 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2408 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2409 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
2410 | # `rm'. |
2411 | for ac_file in conftest.exe conftest conftest.*; do |
2412 | test -f "$ac_file" || continue |
2413 | case $ac_file in |
2414 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
2415 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2416 | export ac_cv_exeext |
2417 | break;; |
2418 | * ) break;; |
2419 | esac |
2420 | done |
2421 | else |
2422 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2423 | See \`config.log' for more details." >&5 |
2424 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2425 | See \`config.log' for more details." >&2;} |
2426 | { (exit 1); exit 1; }; } |
2427 | fi |
2428 | |
2429 | rm -f conftest$ac_cv_exeext |
2430 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2431 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
2432 | |
2433 | rm -f conftest.$ac_ext |
2434 | EXEEXT=$ac_cv_exeext |
2435 | ac_exeext=$EXEEXT |
2436 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2437 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
2438 | if test "${ac_cv_objext+set}" = set; then |
2439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2440 | else |
2441 | cat >conftest.$ac_ext <<_ACEOF |
2442 | /* confdefs.h. */ |
2443 | _ACEOF |
2444 | cat confdefs.h >>conftest.$ac_ext |
2445 | cat >>conftest.$ac_ext <<_ACEOF |
2446 | /* end confdefs.h. */ |
2447 | |
2448 | int |
2449 | main () |
2450 | { |
2451 | |
2452 | ; |
2453 | return 0; |
2454 | } |
2455 | _ACEOF |
2456 | rm -f conftest.o conftest.obj |
2457 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2458 | (eval $ac_compile) 2>&5 |
2459 | ac_status=$? |
2460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2461 | (exit $ac_status); }; then |
2462 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
2463 | case $ac_file in |
2464 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
2465 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2466 | break;; |
2467 | esac |
2468 | done |
2469 | else |
2470 | echo "$as_me: failed program was:" >&5 |
2471 | sed 's/^/| /' conftest.$ac_ext >&5 |
2472 | |
2473 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2474 | See \`config.log' for more details." >&5 |
2475 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
2476 | See \`config.log' for more details." >&2;} |
2477 | { (exit 1); exit 1; }; } |
2478 | fi |
2479 | |
2480 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2481 | fi |
2482 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2483 | echo "${ECHO_T}$ac_cv_objext" >&6 |
2484 | OBJEXT=$ac_cv_objext |
2485 | ac_objext=$OBJEXT |
2486 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2487 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
2488 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2490 | else |
2491 | cat >conftest.$ac_ext <<_ACEOF |
2492 | /* confdefs.h. */ |
2493 | _ACEOF |
2494 | cat confdefs.h >>conftest.$ac_ext |
2495 | cat >>conftest.$ac_ext <<_ACEOF |
2496 | /* end confdefs.h. */ |
2497 | |
2498 | int |
2499 | main () |
2500 | { |
2501 | #ifndef __GNUC__ |
2502 | choke me |
2503 | #endif |
2504 | |
2505 | ; |
2506 | return 0; |
2507 | } |
2508 | _ACEOF |
2509 | rm -f conftest.$ac_objext |
2510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2511 | (eval $ac_compile) 2>conftest.er1 |
2512 | ac_status=$? |
2513 | grep -v '^ *+' conftest.er1 >conftest.err |
2514 | rm -f conftest.er1 |
2515 | cat conftest.err >&5 |
2516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2517 | (exit $ac_status); } && |
2518 | { ac_try='test -z "$ac_c_werror_flag" |
2519 | || test ! -s conftest.err' |
2520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2521 | (eval $ac_try) 2>&5 |
2522 | ac_status=$? |
2523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2524 | (exit $ac_status); }; } && |
2525 | { ac_try='test -s conftest.$ac_objext' |
2526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2527 | (eval $ac_try) 2>&5 |
2528 | ac_status=$? |
2529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2530 | (exit $ac_status); }; }; then |
2531 | ac_compiler_gnu=yes |
2532 | else |
2533 | echo "$as_me: failed program was:" >&5 |
2534 | sed 's/^/| /' conftest.$ac_ext >&5 |
2535 | |
2536 | ac_compiler_gnu=no |
2537 | fi |
2538 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2539 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2540 | |
2541 | fi |
2542 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2543 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
2544 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2545 | ac_test_CFLAGS=${CFLAGS+set} |
2546 | ac_save_CFLAGS=$CFLAGS |
2547 | CFLAGS="-g" |
2548 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2549 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
2550 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2552 | else |
2553 | cat >conftest.$ac_ext <<_ACEOF |
2554 | /* confdefs.h. */ |
2555 | _ACEOF |
2556 | cat confdefs.h >>conftest.$ac_ext |
2557 | cat >>conftest.$ac_ext <<_ACEOF |
2558 | /* end confdefs.h. */ |
2559 | |
2560 | int |
2561 | main () |
2562 | { |
2563 | |
2564 | ; |
2565 | return 0; |
2566 | } |
2567 | _ACEOF |
2568 | rm -f conftest.$ac_objext |
2569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2570 | (eval $ac_compile) 2>conftest.er1 |
2571 | ac_status=$? |
2572 | grep -v '^ *+' conftest.er1 >conftest.err |
2573 | rm -f conftest.er1 |
2574 | cat conftest.err >&5 |
2575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2576 | (exit $ac_status); } && |
2577 | { ac_try='test -z "$ac_c_werror_flag" |
2578 | || test ! -s conftest.err' |
2579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2580 | (eval $ac_try) 2>&5 |
2581 | ac_status=$? |
2582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2583 | (exit $ac_status); }; } && |
2584 | { ac_try='test -s conftest.$ac_objext' |
2585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2586 | (eval $ac_try) 2>&5 |
2587 | ac_status=$? |
2588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2589 | (exit $ac_status); }; }; then |
2590 | ac_cv_prog_cc_g=yes |
2591 | else |
2592 | echo "$as_me: failed program was:" >&5 |
2593 | sed 's/^/| /' conftest.$ac_ext >&5 |
2594 | |
2595 | ac_cv_prog_cc_g=no |
2596 | fi |
2597 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2598 | fi |
2599 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2600 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
2601 | if test "$ac_test_CFLAGS" = set; then |
2602 | CFLAGS=$ac_save_CFLAGS |
2603 | elif test $ac_cv_prog_cc_g = yes; then |
2604 | if test "$GCC" = yes; then |
2605 | CFLAGS="-g -O2" |
2606 | else |
2607 | CFLAGS="-g" |
2608 | fi |
2609 | else |
2610 | if test "$GCC" = yes; then |
2611 | CFLAGS="-O2" |
2612 | else |
2613 | CFLAGS= |
2614 | fi |
2615 | fi |
2616 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2617 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
2618 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
2619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2620 | else |
2621 | ac_cv_prog_cc_stdc=no |
2622 | ac_save_CC=$CC |
2623 | cat >conftest.$ac_ext <<_ACEOF |
2624 | /* confdefs.h. */ |
2625 | _ACEOF |
2626 | cat confdefs.h >>conftest.$ac_ext |
2627 | cat >>conftest.$ac_ext <<_ACEOF |
2628 | /* end confdefs.h. */ |
2629 | #include <stdarg.h> |
2630 | #include <stdio.h> |
2631 | #include <sys/types.h> |
2632 | #include <sys/stat.h> |
2633 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2634 | struct buf { int x; }; |
2635 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
2636 | static char *e (p, i) |
2637 | char **p; |
2638 | int i; |
2639 | { |
2640 | return p[i]; |
2641 | } |
2642 | static char *f (char * (*g) (char **, int), char **p, ...) |
2643 | { |
2644 | char *s; |
2645 | va_list v; |
2646 | va_start (v,p); |
2647 | s = g (p, va_arg (v,int)); |
2648 | va_end (v); |
2649 | return s; |
2650 | } |
2651 | |
2652 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2653 | function prototypes and stuff, but not '\xHH' hex character constants. |
2654 | These don't provoke an error unfortunately, instead are silently treated |
2655 | as 'x'. The following induces an error, until -std1 is added to get |
2656 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2657 | array size at least. It's necessary to write '\x00'==0 to get something |
2658 | that's true only with -std1. */ |
2659 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2660 | |
2661 | int test (int i, double x); |
2662 | struct s1 {int (*f) (int a);}; |
2663 | struct s2 {int (*f) (double a);}; |
2664 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
2665 | int argc; |
2666 | char **argv; |
2667 | int |
2668 | main () |
2669 | { |
2670 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2671 | ; |
2672 | return 0; |
2673 | } |
2674 | _ACEOF |
2675 | # Don't try gcc -ansi; that turns off useful extensions and |
2676 | # breaks some systems' header files. |
2677 | # AIX -qlanglvl=ansi |
2678 | # Ultrix and OSF/1 -std1 |
2679 | # HP-UX 10.20 and later -Ae |
2680 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
2681 | # SVR4 -Xc -D__EXTENSIONS__ |
2682 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2683 | do |
2684 | CC="$ac_save_CC $ac_arg" |
2685 | rm -f conftest.$ac_objext |
2686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2687 | (eval $ac_compile) 2>conftest.er1 |
2688 | ac_status=$? |
2689 | grep -v '^ *+' conftest.er1 >conftest.err |
2690 | rm -f conftest.er1 |
2691 | cat conftest.err >&5 |
2692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2693 | (exit $ac_status); } && |
2694 | { ac_try='test -z "$ac_c_werror_flag" |
2695 | || test ! -s conftest.err' |
2696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2697 | (eval $ac_try) 2>&5 |
2698 | ac_status=$? |
2699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2700 | (exit $ac_status); }; } && |
2701 | { ac_try='test -s conftest.$ac_objext' |
2702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2703 | (eval $ac_try) 2>&5 |
2704 | ac_status=$? |
2705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2706 | (exit $ac_status); }; }; then |
2707 | ac_cv_prog_cc_stdc=$ac_arg |
2708 | break |
2709 | else |
2710 | echo "$as_me: failed program was:" >&5 |
2711 | sed 's/^/| /' conftest.$ac_ext >&5 |
2712 | |
2713 | fi |
2714 | rm -f conftest.err conftest.$ac_objext |
2715 | done |
2716 | rm -f conftest.$ac_ext conftest.$ac_objext |
2717 | CC=$ac_save_CC |
2718 | |
2719 | fi |
2720 | |
2721 | case "x$ac_cv_prog_cc_stdc" in |
2722 | x|xno) |
2723 | echo "$as_me:$LINENO: result: none needed" >&5 |
2724 | echo "${ECHO_T}none needed" >&6 ;; |
2725 | *) |
2726 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2727 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
2728 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
2729 | esac |
2730 | |
2731 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2732 | # in C++ we need to declare it. In case someone uses the same compiler |
2733 | # for both compiling C and C++ we need to have the C++ compiler decide |
2734 | # the declaration of exit, since it's the most demanding environment. |
2735 | cat >conftest.$ac_ext <<_ACEOF |
2736 | #ifndef __cplusplus |
2737 | choke me |
2738 | #endif |
2739 | _ACEOF |
2740 | rm -f conftest.$ac_objext |
2741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2742 | (eval $ac_compile) 2>conftest.er1 |
2743 | ac_status=$? |
2744 | grep -v '^ *+' conftest.er1 >conftest.err |
2745 | rm -f conftest.er1 |
2746 | cat conftest.err >&5 |
2747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2748 | (exit $ac_status); } && |
2749 | { ac_try='test -z "$ac_c_werror_flag" |
2750 | || test ! -s conftest.err' |
2751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2752 | (eval $ac_try) 2>&5 |
2753 | ac_status=$? |
2754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2755 | (exit $ac_status); }; } && |
2756 | { ac_try='test -s conftest.$ac_objext' |
2757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2758 | (eval $ac_try) 2>&5 |
2759 | ac_status=$? |
2760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2761 | (exit $ac_status); }; }; then |
2762 | for ac_declaration in \ |
2763 | '' \ |
2764 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2765 | 'extern "C" void std::exit (int); using std::exit;' \ |
2766 | 'extern "C" void exit (int) throw ();' \ |
2767 | 'extern "C" void exit (int);' \ |
2768 | 'void exit (int);' |
2769 | do |
2770 | cat >conftest.$ac_ext <<_ACEOF |
2771 | /* confdefs.h. */ |
2772 | _ACEOF |
2773 | cat confdefs.h >>conftest.$ac_ext |
2774 | cat >>conftest.$ac_ext <<_ACEOF |
2775 | /* end confdefs.h. */ |
2776 | $ac_declaration |
2777 | #include <stdlib.h> |
2778 | int |
2779 | main () |
2780 | { |
2781 | exit (42); |
2782 | ; |
2783 | return 0; |
2784 | } |
2785 | _ACEOF |
2786 | rm -f conftest.$ac_objext |
2787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2788 | (eval $ac_compile) 2>conftest.er1 |
2789 | ac_status=$? |
2790 | grep -v '^ *+' conftest.er1 >conftest.err |
2791 | rm -f conftest.er1 |
2792 | cat conftest.err >&5 |
2793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2794 | (exit $ac_status); } && |
2795 | { ac_try='test -z "$ac_c_werror_flag" |
2796 | || test ! -s conftest.err' |
2797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2798 | (eval $ac_try) 2>&5 |
2799 | ac_status=$? |
2800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2801 | (exit $ac_status); }; } && |
2802 | { ac_try='test -s conftest.$ac_objext' |
2803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2804 | (eval $ac_try) 2>&5 |
2805 | ac_status=$? |
2806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2807 | (exit $ac_status); }; }; then |
2808 | : |
2809 | else |
2810 | echo "$as_me: failed program was:" >&5 |
2811 | sed 's/^/| /' conftest.$ac_ext >&5 |
2812 | |
2813 | continue |
2814 | fi |
2815 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2816 | cat >conftest.$ac_ext <<_ACEOF |
2817 | /* confdefs.h. */ |
2818 | _ACEOF |
2819 | cat confdefs.h >>conftest.$ac_ext |
2820 | cat >>conftest.$ac_ext <<_ACEOF |
2821 | /* end confdefs.h. */ |
2822 | $ac_declaration |
2823 | int |
2824 | main () |
2825 | { |
2826 | exit (42); |
2827 | ; |
2828 | return 0; |
2829 | } |
2830 | _ACEOF |
2831 | rm -f conftest.$ac_objext |
2832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2833 | (eval $ac_compile) 2>conftest.er1 |
2834 | ac_status=$? |
2835 | grep -v '^ *+' conftest.er1 >conftest.err |
2836 | rm -f conftest.er1 |
2837 | cat conftest.err >&5 |
2838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2839 | (exit $ac_status); } && |
2840 | { ac_try='test -z "$ac_c_werror_flag" |
2841 | || test ! -s conftest.err' |
2842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2843 | (eval $ac_try) 2>&5 |
2844 | ac_status=$? |
2845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2846 | (exit $ac_status); }; } && |
2847 | { ac_try='test -s conftest.$ac_objext' |
2848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2849 | (eval $ac_try) 2>&5 |
2850 | ac_status=$? |
2851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2852 | (exit $ac_status); }; }; then |
2853 | break |
2854 | else |
2855 | echo "$as_me: failed program was:" >&5 |
2856 | sed 's/^/| /' conftest.$ac_ext >&5 |
2857 | |
2858 | fi |
2859 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2860 | done |
2861 | rm -f conftest* |
2862 | if test -n "$ac_declaration"; then |
2863 | echo '#ifdef __cplusplus' >>confdefs.h |
2864 | echo $ac_declaration >>confdefs.h |
2865 | echo '#endif' >>confdefs.h |
2866 | fi |
2867 | |
2868 | else |
2869 | echo "$as_me: failed program was:" >&5 |
2870 | sed 's/^/| /' conftest.$ac_ext >&5 |
2871 | |
2872 | fi |
2873 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2874 | ac_ext=c |
2875 | ac_cpp='$CPP $CPPFLAGS' |
2876 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2877 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2878 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2879 | DEPDIR="${am__leading_dot}deps" |
2880 | |
2881 | ac_config_commands="$ac_config_commands depfiles" |
2882 | |
2883 | |
2884 | am_make=${MAKE-make} |
2885 | cat > confinc << 'END' |
2886 | am__doit: |
2887 | @echo done |
2888 | .PHONY: am__doit |
2889 | END |
2890 | # If we don't find an include directive, just comment out the code. |
2891 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
2892 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
2893 | am__include="#" |
2894 | am__quote= |
2895 | _am_result=none |
2896 | # First try GNU make style include. |
2897 | echo "include confinc" > confmf |
2898 | # We grep out `Entering directory' and `Leaving directory' |
2899 | # messages which can occur if `w' ends up in MAKEFLAGS. |
2900 | # In particular we don't look at `^make:' because GNU make might |
2901 | # be invoked under some other name (usually "gmake"), in which |
2902 | # case it prints its new name instead of `make'. |
2903 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
2904 | am__include=include |
2905 | am__quote= |
2906 | _am_result=GNU |
2907 | fi |
2908 | # Now try BSD make style include. |
2909 | if test "$am__include" = "#"; then |
2910 | echo '.include "confinc"' > confmf |
2911 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
2912 | am__include=.include |
2913 | am__quote="\"" |
2914 | _am_result=BSD |
2915 | fi |
2916 | fi |
2917 | |
2918 | |
2919 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
2920 | echo "${ECHO_T}$_am_result" >&6 |
2921 | rm -f confinc confmf |
2922 | |
2923 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
2924 | if test "${enable_dependency_tracking+set}" = set; then |
2925 | enableval="$enable_dependency_tracking" |
2926 | |
2927 | fi; |
2928 | if test "x$enable_dependency_tracking" != xno; then |
2929 | am_depcomp="$ac_aux_dir/depcomp" |
2930 | AMDEPBACKSLASH='\' |
2931 | fi |
2932 | |
2933 | |
2934 | if test "x$enable_dependency_tracking" != xno; then |
2935 | AMDEP_TRUE= |
2936 | AMDEP_FALSE='#' |
2937 | else |
2938 | AMDEP_TRUE='#' |
2939 | AMDEP_FALSE= |
2940 | fi |
2941 | |
2942 | |
2943 | |
2944 | |
2945 | depcc="$CC" am_compiler_list= |
2946 | |
2947 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
2948 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
2949 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
2950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2951 | else |
2952 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
2953 | # We make a subdir and do the tests there. Otherwise we can end up |
2954 | # making bogus files that we don't know about and never remove. For |
2955 | # instance it was reported that on HP-UX the gcc test will end up |
2956 | # making a dummy file named `D' -- because `-MD' means `put the output |
2957 | # in D'. |
2958 | mkdir conftest.dir |
2959 | # Copy depcomp to subdir because otherwise we won't find it if we're |
2960 | # using a relative directory. |
2961 | cp "$am_depcomp" conftest.dir |
2962 | cd conftest.dir |
2963 | # We will build objects and dependencies in a subdirectory because |
2964 | # it helps to detect inapplicable dependency modes. For instance |
2965 | # both Tru64's cc and ICC support -MD to output dependencies as a |
2966 | # side effect of compilation, but ICC will put the dependencies in |
2967 | # the current directory while Tru64 will put them in the object |
2968 | # directory. |
2969 | mkdir sub |
2970 | |
2971 | am_cv_CC_dependencies_compiler_type=none |
2972 | if test "$am_compiler_list" = ""; then |
2973 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
2974 | fi |
2975 | for depmode in $am_compiler_list; do |
2976 | # Setup a source with many dependencies, because some compilers |
2977 | # like to wrap large dependency lists on column 80 (with \), and |
2978 | # we should not choose a depcomp mode which is confused by this. |
2979 | # |
2980 | # We need to recreate these files for each test, as the compiler may |
2981 | # overwrite some of them when testing with obscure command lines. |
2982 | # This happens at least with the AIX C compiler. |
2983 | : > sub/conftest.c |
2984 | for i in 1 2 3 4 5 6; do |
2985 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
2986 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
2987 | # Solaris 8's {/usr,}/bin/sh. |
2988 | touch sub/conftst$i.h |
2989 | done |
2990 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
2991 | |
2992 | case $depmode in |
2993 | nosideeffect) |
2994 | # after this tag, mechanisms are not by side-effect, so they'll |
2995 | # only be used when explicitly requested |
2996 | if test "x$enable_dependency_tracking" = xyes; then |
2997 | continue |
2998 | else |
2999 | break |
3000 | fi |
3001 | ;; |
3002 | none) break ;; |
3003 | esac |
3004 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3005 | # mode. It turns out that the SunPro C++ compiler does not properly |
3006 | # handle `-M -o', and we need to detect this. |
3007 | if depmode=$depmode \ |
3008 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
3009 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
3010 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
3011 | >/dev/null 2>conftest.err && |
3012 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3013 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
3014 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3015 | # icc doesn't choke on unknown options, it will just issue warnings |
3016 | # or remarks (even with -Werror). So we grep stderr for any message |
3017 | # that says an option was ignored or not supported. |
3018 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
3019 | # icc: Command line warning: ignoring option '-M'; no argument required |
3020 | # The diagnosis changed in icc 8.0: |
3021 | # icc: Command line remark: option '-MP' not supported |
3022 | if (grep 'ignoring option' conftest.err || |
3023 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
3024 | am_cv_CC_dependencies_compiler_type=$depmode |
3025 | break |
3026 | fi |
3027 | fi |
3028 | done |
3029 | |
3030 | cd .. |
3031 | rm -rf conftest.dir |
3032 | else |
3033 | am_cv_CC_dependencies_compiler_type=none |
3034 | fi |
3035 | |
3036 | fi |
3037 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3038 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
3039 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3040 | |
3041 | |
3042 | |
3043 | if |
3044 | test "x$enable_dependency_tracking" != xno \ |
3045 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
3046 | am__fastdepCC_TRUE= |
3047 | am__fastdepCC_FALSE='#' |
3048 | else |
3049 | am__fastdepCC_TRUE='#' |
3050 | am__fastdepCC_FALSE= |
3051 | fi |
3052 | |
3053 | |
3054 | # Find a good install program. We prefer a C program (faster), |
3055 | # so one script is as good as another. But avoid the broken or |
3056 | # incompatible versions: |
3057 | # SysV /etc/install, /usr/sbin/install |
3058 | # SunOS /usr/etc/install |
3059 | # IRIX /sbin/install |
3060 | # AIX /bin/install |
3061 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
3062 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3063 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3064 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
3065 | # OS/2's system install, which has a completely different semantic |
3066 | # ./install, which can be erroneously created by make from ./install.sh. |
3067 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3068 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
3069 | if test -z "$INSTALL"; then |
3070 | if test "${ac_cv_path_install+set}" = set; then |
3071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3072 | else |
3073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3074 | for as_dir in $PATH |
3075 | do |
3076 | IFS=$as_save_IFS |
3077 | test -z "$as_dir" && as_dir=. |
3078 | # Account for people who put trailing slashes in PATH elements. |
3079 | case $as_dir/ in |
3080 | ./ | .// | /cC/* | \ |
3081 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
3082 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
3083 | /usr/ucb/* ) ;; |
3084 | *) |
3085 | # OSF1 and SCO ODT 3.0 have their own names for install. |
3086 | # Don't use installbsd from OSF since it installs stuff as root |
3087 | # by default. |
3088 | for ac_prog in ginstall scoinst install; do |
3089 | for ac_exec_ext in '' $ac_executable_extensions; do |
3090 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
3091 | if test $ac_prog = install && |
3092 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3093 | # AIX install. It has an incompatible calling convention. |
3094 | : |
3095 | elif test $ac_prog = install && |
3096 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3097 | # program-specific install script used by HP pwplus--don't use. |
3098 | : |
3099 | else |
3100 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
3101 | break 3 |
3102 | fi |
3103 | fi |
3104 | done |
3105 | done |
3106 | ;; |
3107 | esac |
3108 | done |
3109 | |
3110 | |
3111 | fi |
3112 | if test "${ac_cv_path_install+set}" = set; then |
3113 | INSTALL=$ac_cv_path_install |
3114 | else |
3115 | # As a last resort, use the slow shell script. We don't cache a |
3116 | # path for INSTALL within a source directory, because that will |
3117 | # break other packages using the cache if that directory is |
3118 | # removed, or if the path is relative. |
3119 | INSTALL=$ac_install_sh |
3120 | fi |
3121 | fi |
3122 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3123 | echo "${ECHO_T}$INSTALL" >&6 |
3124 | |
3125 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3126 | # It thinks the first close brace ends the variable substitution. |
3127 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
3128 | |
3129 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3130 | |
3131 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3132 | |
3133 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3134 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
3135 | LN_S=$as_ln_s |
3136 | if test "$LN_S" = "ln -s"; then |
3137 | echo "$as_me:$LINENO: result: yes" >&5 |
3138 | echo "${ECHO_T}yes" >&6 |
3139 | else |
3140 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3141 | echo "${ECHO_T}no, using $LN_S" >&6 |
3142 | fi |
3143 | |
3144 | for ac_prog in perl5 perl |
3145 | do |
3146 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
3147 | set dummy $ac_prog; ac_word=$2 |
3148 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3149 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3150 | if test "${ac_cv_path_PERL+set}" = set; then |
3151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3152 | else |
3153 | case $PERL in |
3154 | [\\/]* | ?:[\\/]*) |
3155 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
3156 | ;; |
3157 | *) |
3158 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3159 | for as_dir in $LPATH |
3160 | do |
3161 | IFS=$as_save_IFS |
3162 | test -z "$as_dir" && as_dir=. |
3163 | for ac_exec_ext in '' $ac_executable_extensions; do |
3164 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3165 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
3166 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3167 | break 2 |
3168 | fi |
3169 | done |
3170 | done |
3171 | |
3172 | ;; |
3173 | esac |
3174 | fi |
3175 | PERL=$ac_cv_path_PERL |
3176 | |
3177 | if test -n "$PERL"; then |
3178 | echo "$as_me:$LINENO: result: $PERL" >&5 |
3179 | echo "${ECHO_T}$PERL" >&6 |
3180 | else |
3181 | echo "$as_me:$LINENO: result: no" >&5 |
3182 | echo "${ECHO_T}no" >&6 |
3183 | fi |
3184 | |
3185 | test -n "$PERL" && break |
3186 | done |
3187 | test -n "$PERL" || PERL="perl" |
3188 | |
3189 | |
3190 | for ac_prog in cat |
3191 | do |
3192 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
3193 | set dummy $ac_prog; ac_word=$2 |
3194 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3195 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3196 | if test "${ac_cv_path_CAT+set}" = set; then |
3197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3198 | else |
3199 | case $CAT in |
3200 | [\\/]* | ?:[\\/]*) |
3201 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. |
3202 | ;; |
3203 | *) |
3204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3205 | for as_dir in $PATH |
3206 | do |
3207 | IFS=$as_save_IFS |
3208 | test -z "$as_dir" && as_dir=. |
3209 | for ac_exec_ext in '' $ac_executable_extensions; do |
3210 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3211 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" |
3212 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3213 | break 2 |
3214 | fi |
3215 | done |
3216 | done |
3217 | |
3218 | ;; |
3219 | esac |
3220 | fi |
3221 | CAT=$ac_cv_path_CAT |
3222 | |
3223 | if test -n "$CAT"; then |
3224 | echo "$as_me:$LINENO: result: $CAT" >&5 |
3225 | echo "${ECHO_T}$CAT" >&6 |
3226 | else |
3227 | echo "$as_me:$LINENO: result: no" >&5 |
3228 | echo "${ECHO_T}no" >&6 |
3229 | fi |
3230 | |
3231 | test -n "$CAT" && break |
3232 | done |
3233 | test -n "$CAT" || CAT="cat" |
3234 | |
3235 | |
3236 | |
3237 | # Check whether --enable-shared or --disable-shared was given. |
3238 | if test "${enable_shared+set}" = set; then |
3239 | enableval="$enable_shared" |
3240 | p=${PACKAGE-default} |
3241 | case $enableval in |
3242 | yes) enable_shared=yes ;; |
3243 | no) enable_shared=no ;; |
3244 | *) |
3245 | enable_shared=no |
3246 | # Look at the argument we got. We use all the common list separators. |
3247 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3248 | for pkg in $enableval; do |
3249 | IFS="$lt_save_ifs" |
3250 | if test "X$pkg" = "X$p"; then |
3251 | enable_shared=yes |
3252 | fi |
3253 | done |
3254 | IFS="$lt_save_ifs" |
3255 | ;; |
3256 | esac |
3257 | else |
3258 | enable_shared=yes |
3259 | fi; |
3260 | |
3261 | # Check whether --enable-static or --disable-static was given. |
3262 | if test "${enable_static+set}" = set; then |
3263 | enableval="$enable_static" |
3264 | p=${PACKAGE-default} |
3265 | case $enableval in |
3266 | yes) enable_static=yes ;; |
3267 | no) enable_static=no ;; |
3268 | *) |
3269 | enable_static=no |
3270 | # Look at the argument we got. We use all the common list separators. |
3271 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3272 | for pkg in $enableval; do |
3273 | IFS="$lt_save_ifs" |
3274 | if test "X$pkg" = "X$p"; then |
3275 | enable_static=yes |
3276 | fi |
3277 | done |
3278 | IFS="$lt_save_ifs" |
3279 | ;; |
3280 | esac |
3281 | else |
3282 | enable_static=yes |
3283 | fi; |
3284 | |
3285 | # Check whether --enable-fast-install or --disable-fast-install was given. |
3286 | if test "${enable_fast_install+set}" = set; then |
3287 | enableval="$enable_fast_install" |
3288 | p=${PACKAGE-default} |
3289 | case $enableval in |
3290 | yes) enable_fast_install=yes ;; |
3291 | no) enable_fast_install=no ;; |
3292 | *) |
3293 | enable_fast_install=no |
3294 | # Look at the argument we got. We use all the common list separators. |
3295 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3296 | for pkg in $enableval; do |
3297 | IFS="$lt_save_ifs" |
3298 | if test "X$pkg" = "X$p"; then |
3299 | enable_fast_install=yes |
3300 | fi |
3301 | done |
3302 | IFS="$lt_save_ifs" |
3303 | ;; |
3304 | esac |
3305 | else |
3306 | enable_fast_install=yes |
3307 | fi; |
3308 | |
3309 | # Make sure we can run config.sub. |
3310 | $ac_config_sub sun4 >/dev/null 2>&1 || |
3311 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
3312 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
3313 | { (exit 1); exit 1; }; } |
3314 | |
3315 | echo "$as_me:$LINENO: checking build system type" >&5 |
3316 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
3317 | if test "${ac_cv_build+set}" = set; then |
3318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3319 | else |
3320 | ac_cv_build_alias=$build_alias |
3321 | test -z "$ac_cv_build_alias" && |
3322 | ac_cv_build_alias=`$ac_config_guess` |
3323 | test -z "$ac_cv_build_alias" && |
3324 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
3325 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
3326 | { (exit 1); exit 1; }; } |
3327 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
3328 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
3329 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
3330 | { (exit 1); exit 1; }; } |
3331 | |
3332 | fi |
3333 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
3334 | echo "${ECHO_T}$ac_cv_build" >&6 |
3335 | build=$ac_cv_build |
3336 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
3337 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
3338 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
3339 | |
3340 | |
3341 | echo "$as_me:$LINENO: checking host system type" >&5 |
3342 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
3343 | if test "${ac_cv_host+set}" = set; then |
3344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3345 | else |
3346 | ac_cv_host_alias=$host_alias |
3347 | test -z "$ac_cv_host_alias" && |
3348 | ac_cv_host_alias=$ac_cv_build_alias |
3349 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
3350 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
3351 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
3352 | { (exit 1); exit 1; }; } |
3353 | |
3354 | fi |
3355 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
3356 | echo "${ECHO_T}$ac_cv_host" >&6 |
3357 | host=$ac_cv_host |
3358 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
3359 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
3360 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
3361 | |
3362 | |
3363 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
3364 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
3365 | if test "${lt_cv_path_SED+set}" = set; then |
3366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3367 | else |
3368 | # Loop through the user's path and test for sed and gsed. |
3369 | # Then use that list of sed's as ones to test for truncation. |
3370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3371 | for as_dir in $PATH |
3372 | do |
3373 | IFS=$as_save_IFS |
3374 | test -z "$as_dir" && as_dir=. |
3375 | for lt_ac_prog in sed gsed; do |
3376 | for ac_exec_ext in '' $ac_executable_extensions; do |
3377 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
3378 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
3379 | fi |
3380 | done |
3381 | done |
3382 | done |
3383 | IFS=$as_save_IFS |
3384 | lt_ac_max=0 |
3385 | lt_ac_count=0 |
3386 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
3387 | # along with /bin/sed that truncates output. |
3388 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
3389 | test ! -f $lt_ac_sed && continue |
3390 | cat /dev/null > conftest.in |
3391 | lt_ac_count=0 |
3392 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
3393 | # Check for GNU sed and select it if it is found. |
3394 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
3395 | lt_cv_path_SED=$lt_ac_sed |
3396 | break |
3397 | fi |
3398 | while true; do |
3399 | cat conftest.in conftest.in >conftest.tmp |
3400 | mv conftest.tmp conftest.in |
3401 | cp conftest.in conftest.nl |
3402 | echo >>conftest.nl |
3403 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
3404 | cmp -s conftest.out conftest.nl || break |
3405 | # 10000 chars as input seems more than enough |
3406 | test $lt_ac_count -gt 10 && break |
3407 | lt_ac_count=`expr $lt_ac_count + 1` |
3408 | if test $lt_ac_count -gt $lt_ac_max; then |
3409 | lt_ac_max=$lt_ac_count |
3410 | lt_cv_path_SED=$lt_ac_sed |
3411 | fi |
3412 | done |
3413 | done |
3414 | |
3415 | fi |
3416 | |
3417 | SED=$lt_cv_path_SED |
3418 | |
3419 | echo "$as_me:$LINENO: result: $SED" >&5 |
3420 | echo "${ECHO_T}$SED" >&6 |
3421 | |
3422 | echo "$as_me:$LINENO: checking for egrep" >&5 |
3423 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
3424 | if test "${ac_cv_prog_egrep+set}" = set; then |
3425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3426 | else |
3427 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
3428 | then ac_cv_prog_egrep='grep -E' |
3429 | else ac_cv_prog_egrep='egrep' |
3430 | fi |
3431 | fi |
3432 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
3433 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
3434 | EGREP=$ac_cv_prog_egrep |
3435 | |
3436 | |
3437 | |
3438 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3439 | if test "${with_gnu_ld+set}" = set; then |
3440 | withval="$with_gnu_ld" |
3441 | test "$withval" = no || with_gnu_ld=yes |
3442 | else |
3443 | with_gnu_ld=no |
3444 | fi; |
3445 | ac_prog=ld |
3446 | if test "$GCC" = yes; then |
3447 | # Check if gcc -print-prog-name=ld gives a path. |
3448 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
3449 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
3450 | case $host in |
3451 | *-*-mingw*) |
3452 | # gcc leaves a trailing carriage return which upsets mingw |
3453 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
3454 | *) |
3455 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
3456 | esac |
3457 | case $ac_prog in |
3458 | # Accept absolute paths. |
3459 | [\\/]* | ?:[\\/]*) |
3460 | re_direlt='/[^/][^/]*/\.\./' |
3461 | # Canonicalize the pathname of ld |
3462 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
3463 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
3464 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
3465 | done |
3466 | test -z "$LD" && LD="$ac_prog" |
3467 | ;; |
3468 | "") |
3469 | # If it fails, then pretend we aren't using GCC. |
3470 | ac_prog=ld |
3471 | ;; |
3472 | *) |
3473 | # If it is relative, then search for the first ld in PATH. |
3474 | with_gnu_ld=unknown |
3475 | ;; |
3476 | esac |
3477 | elif test "$with_gnu_ld" = yes; then |
3478 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3479 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
3480 | else |
3481 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
3482 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
3483 | fi |
3484 | if test "${lt_cv_path_LD+set}" = set; then |
3485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3486 | else |
3487 | if test -z "$LD"; then |
3488 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3489 | for ac_dir in $PATH; do |
3490 | IFS="$lt_save_ifs" |
3491 | test -z "$ac_dir" && ac_dir=. |
3492 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
3493 | lt_cv_path_LD="$ac_dir/$ac_prog" |
3494 | # Check to see if the program is GNU ld. I'd rather use --version, |
3495 | # but apparently some variants of GNU ld only accept -v. |
3496 | # Break only if it was the GNU/non-GNU ld that we prefer. |
3497 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
3498 | *GNU* | *'with BFD'*) |
3499 | test "$with_gnu_ld" != no && break |
3500 | ;; |
3501 | *) |
3502 | test "$with_gnu_ld" != yes && break |
3503 | ;; |
3504 | esac |
3505 | fi |
3506 | done |
3507 | IFS="$lt_save_ifs" |
3508 | else |
3509 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
3510 | fi |
3511 | fi |
3512 | |
3513 | LD="$lt_cv_path_LD" |
3514 | if test -n "$LD"; then |
3515 | echo "$as_me:$LINENO: result: $LD" >&5 |
3516 | echo "${ECHO_T}$LD" >&6 |
3517 | else |
3518 | echo "$as_me:$LINENO: result: no" >&5 |
3519 | echo "${ECHO_T}no" >&6 |
3520 | fi |
3521 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
3522 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
3523 | { (exit 1); exit 1; }; } |
3524 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
3525 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
3526 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
3527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3528 | else |
3529 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
3530 | case `$LD -v 2>&1 </dev/null` in |
3531 | *GNU* | *'with BFD'*) |
3532 | lt_cv_prog_gnu_ld=yes |
3533 | ;; |
3534 | *) |
3535 | lt_cv_prog_gnu_ld=no |
3536 | ;; |
3537 | esac |
3538 | fi |
3539 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
3540 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
3541 | with_gnu_ld=$lt_cv_prog_gnu_ld |
3542 | |
3543 | |
3544 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
3545 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
3546 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
3547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3548 | else |
3549 | lt_cv_ld_reload_flag='-r' |
3550 | fi |
3551 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
3552 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
3553 | reload_flag=$lt_cv_ld_reload_flag |
3554 | case $reload_flag in |
3555 | "" | " "*) ;; |
3556 | *) reload_flag=" $reload_flag" ;; |
3557 | esac |
3558 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3559 | case $host_os in |
3560 | darwin*) |
3561 | if test "$GCC" = yes; then |
3562 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
3563 | else |
3564 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3565 | fi |
3566 | ;; |
3567 | esac |
3568 | |
3569 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
3570 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
3571 | if test "${lt_cv_path_NM+set}" = set; then |
3572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3573 | else |
3574 | if test -n "$NM"; then |
3575 | # Let the user override the test. |
3576 | lt_cv_path_NM="$NM" |
3577 | else |
3578 | lt_nm_to_check="${ac_tool_prefix}nm" |
3579 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
3580 | lt_nm_to_check="$lt_nm_to_check nm" |
3581 | fi |
3582 | for lt_tmp_nm in $lt_nm_to_check; do |
3583 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3584 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
3585 | IFS="$lt_save_ifs" |
3586 | test -z "$ac_dir" && ac_dir=. |
3587 | tmp_nm="$ac_dir/$lt_tmp_nm" |
3588 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
3589 | # Check to see if the nm accepts a BSD-compat flag. |
3590 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
3591 | # nm: unknown option "B" ignored |
3592 | # Tru64's nm complains that /dev/null is an invalid object file |
3593 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
3594 | */dev/null* | *'Invalid file or object type'*) |
3595 | lt_cv_path_NM="$tmp_nm -B" |
3596 | break |
3597 | ;; |
3598 | *) |
3599 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
3600 | */dev/null*) |
3601 | lt_cv_path_NM="$tmp_nm -p" |
3602 | break |
3603 | ;; |
3604 | *) |
3605 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
3606 | continue # so that we can try to find one that supports BSD flags |
3607 | ;; |
3608 | esac |
3609 | ;; |
3610 | esac |
3611 | fi |
3612 | done |
3613 | IFS="$lt_save_ifs" |
3614 | done |
3615 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
3616 | fi |
3617 | fi |
3618 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
3619 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
3620 | NM="$lt_cv_path_NM" |
3621 | |
3622 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
3623 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
3624 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
3625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3626 | else |
3627 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
3628 | lt_cv_file_magic_test_file= |
3629 | lt_cv_deplibs_check_method='unknown' |
3630 | # Need to set the preceding variable on all platforms that support |
3631 | # interlibrary dependencies. |
3632 | # 'none' -- dependencies not supported. |
3633 | # `unknown' -- same as none, but documents that we really don't know. |
3634 | # 'pass_all' -- all dependencies passed with no checks. |
3635 | # 'test_compile' -- check by making test program. |
3636 | # 'file_magic [[regex]]' -- check by looking for files in library path |
3637 | # which responds to the $file_magic_cmd with a given extended regex. |
3638 | # If you have `file' or equivalent on your system and you're not sure |
3639 | # whether `pass_all' will *always* work, you probably want this one. |
3640 | |
3641 | case $host_os in |
3642 | aix4* | aix5*) |
3643 | lt_cv_deplibs_check_method=pass_all |
3644 | ;; |
3645 | |
3646 | beos*) |
3647 | lt_cv_deplibs_check_method=pass_all |
3648 | ;; |
3649 | |
3650 | bsdi[45]*) |
3651 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
3652 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
3653 | lt_cv_file_magic_test_file=/shlib/libc.so |
3654 | ;; |
3655 | |
3656 | cygwin*) |
3657 | # func_win32_libid is a shell function defined in ltmain.sh |
3658 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
3659 | lt_cv_file_magic_cmd='func_win32_libid' |
3660 | ;; |
3661 | |
3662 | mingw* | pw32*) |
3663 | # Base MSYS/MinGW do not provide the 'file' command needed by |
3664 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
3665 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
3666 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
3667 | ;; |
3668 | |
3669 | darwin* | rhapsody*) |
3670 | lt_cv_deplibs_check_method=pass_all |
3671 | ;; |
3672 | |
3673 | freebsd* | kfreebsd*-gnu | dragonfly*) |
3674 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3675 | case $host_cpu in |
3676 | i*86 ) |
3677 | # Not sure whether the presence of OpenBSD here was a mistake. |
3678 | # Let's accept both of them until this is cleared up. |
3679 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
3680 | lt_cv_file_magic_cmd=/usr/bin/file |
3681 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3682 | ;; |
3683 | esac |
3684 | else |
3685 | lt_cv_deplibs_check_method=pass_all |
3686 | fi |
3687 | ;; |
3688 | |
3689 | gnu*) |
3690 | lt_cv_deplibs_check_method=pass_all |
3691 | ;; |
3692 | |
3693 | hpux10.20* | hpux11*) |
3694 | lt_cv_file_magic_cmd=/usr/bin/file |
3695 | case $host_cpu in |
3696 | ia64*) |
3697 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
3698 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
3699 | ;; |
3700 | hppa*64*) |
3701 | 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]' |
3702 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
3703 | ;; |
3704 | *) |
3705 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
3706 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
3707 | ;; |
3708 | esac |
3709 | ;; |
3710 | |
3711 | interix3*) |
3712 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
3713 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
3714 | ;; |
3715 | |
3716 | irix5* | irix6* | nonstopux*) |
3717 | case $LD in |
3718 | *-32|*"-32 ") libmagic=32-bit;; |
3719 | *-n32|*"-n32 ") libmagic=N32;; |
3720 | *-64|*"-64 ") libmagic=64-bit;; |
3721 | *) libmagic=never-match;; |
3722 | esac |
3723 | lt_cv_deplibs_check_method=pass_all |
3724 | ;; |
3725 | |
3726 | # This must be Linux ELF. |
3727 | linux*) |
3728 | lt_cv_deplibs_check_method=pass_all |
3729 | ;; |
3730 | |
3731 | netbsd*) |
3732 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3733 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
3734 | else |
3735 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
3736 | fi |
3737 | ;; |
3738 | |
3739 | newos6*) |
3740 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
3741 | lt_cv_file_magic_cmd=/usr/bin/file |
3742 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
3743 | ;; |
3744 | |
3745 | nto-qnx*) |
3746 | lt_cv_deplibs_check_method=unknown |
3747 | ;; |
3748 | |
3749 | openbsd*) |
3750 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
3751 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
3752 | else |
3753 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
3754 | fi |
3755 | ;; |
3756 | |
3757 | osf3* | osf4* | osf5*) |
3758 | lt_cv_deplibs_check_method=pass_all |
3759 | ;; |
3760 | |
3761 | solaris*) |
3762 | lt_cv_deplibs_check_method=pass_all |
3763 | ;; |
3764 | |
3765 | sysv4 | sysv4.3*) |
3766 | case $host_vendor in |
3767 | motorola) |
3768 | 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]' |
3769 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
3770 | ;; |
3771 | ncr) |
3772 | lt_cv_deplibs_check_method=pass_all |
3773 | ;; |
3774 | sequent) |
3775 | lt_cv_file_magic_cmd='/bin/file' |
3776 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
3777 | ;; |
3778 | sni) |
3779 | lt_cv_file_magic_cmd='/bin/file' |
3780 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
3781 | lt_cv_file_magic_test_file=/lib/libc.so |
3782 | ;; |
3783 | siemens) |
3784 | lt_cv_deplibs_check_method=pass_all |
3785 | ;; |
3786 | pc) |
3787 | lt_cv_deplibs_check_method=pass_all |
3788 | ;; |
3789 | esac |
3790 | ;; |
3791 | |
3792 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
3793 | lt_cv_deplibs_check_method=pass_all |
3794 | ;; |
3795 | esac |
3796 | |
3797 | fi |
3798 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
3799 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
3800 | file_magic_cmd=$lt_cv_file_magic_cmd |
3801 | deplibs_check_method=$lt_cv_deplibs_check_method |
3802 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
3803 | |
3804 | |
3805 | |
3806 | |
3807 | # If no C compiler was specified, use CC. |
3808 | LTCC=${LTCC-"$CC"} |
3809 | |
3810 | # If no C compiler flags were specified, use CFLAGS. |
3811 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
3812 | |
3813 | # Allow CC to be a program name with arguments. |
3814 | compiler=$CC |
3815 | |
3816 | |
3817 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
3818 | if test "${enable_libtool_lock+set}" = set; then |
3819 | enableval="$enable_libtool_lock" |
3820 | |
3821 | fi; |
3822 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
3823 | |
3824 | # Some flags need to be propagated to the compiler or linker for good |
3825 | # libtool support. |
3826 | case $host in |
3827 | ia64-*-hpux*) |
3828 | # Find out which ABI we are using. |
3829 | echo 'int i;' > conftest.$ac_ext |
3830 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3831 | (eval $ac_compile) 2>&5 |
3832 | ac_status=$? |
3833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3834 | (exit $ac_status); }; then |
3835 | case `/usr/bin/file conftest.$ac_objext` in |
3836 | *ELF-32*) |
3837 | HPUX_IA64_MODE="32" |
3838 | ;; |
3839 | *ELF-64*) |
3840 | HPUX_IA64_MODE="64" |
3841 | ;; |
3842 | esac |
3843 | fi |
3844 | rm -rf conftest* |
3845 | ;; |
3846 | *-*-irix6*) |
3847 | # Find out which ABI we are using. |
3848 | echo '#line 3848 "configure"' > conftest.$ac_ext |
3849 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3850 | (eval $ac_compile) 2>&5 |
3851 | ac_status=$? |
3852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3853 | (exit $ac_status); }; then |
3854 | if test "$lt_cv_prog_gnu_ld" = yes; then |
3855 | case `/usr/bin/file conftest.$ac_objext` in |
3856 | *32-bit*) |
3857 | LD="${LD-ld} -melf32bsmip" |
3858 | ;; |
3859 | *N32*) |
3860 | LD="${LD-ld} -melf32bmipn32" |
3861 | ;; |
3862 | *64-bit*) |
3863 | LD="${LD-ld} -melf64bmip" |
3864 | ;; |
3865 | esac |
3866 | else |
3867 | case `/usr/bin/file conftest.$ac_objext` in |
3868 | *32-bit*) |
3869 | LD="${LD-ld} -32" |
3870 | ;; |
3871 | *N32*) |
3872 | LD="${LD-ld} -n32" |
3873 | ;; |
3874 | *64-bit*) |
3875 | LD="${LD-ld} -64" |
3876 | ;; |
3877 | esac |
3878 | fi |
3879 | fi |
3880 | rm -rf conftest* |
3881 | ;; |
3882 | |
3883 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
3884 | # Find out which ABI we are using. |
3885 | echo 'int i;' > conftest.$ac_ext |
3886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3887 | (eval $ac_compile) 2>&5 |
3888 | ac_status=$? |
3889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3890 | (exit $ac_status); }; then |
3891 | case `/usr/bin/file conftest.o` in |
3892 | *32-bit*) |
3893 | case $host in |
3894 | x86_64-*linux*) |
3895 | LD="${LD-ld} -m elf_i386" |
3896 | ;; |
3897 | ppc64-*linux*|powerpc64-*linux*) |
3898 | LD="${LD-ld} -m elf32ppclinux" |
3899 | ;; |
3900 | s390x-*linux*) |
3901 | LD="${LD-ld} -m elf_s390" |
3902 | ;; |
3903 | sparc64-*linux*) |
3904 | LD="${LD-ld} -m elf32_sparc" |
3905 | ;; |
3906 | esac |
3907 | ;; |
3908 | *64-bit*) |
3909 | case $host in |
3910 | x86_64-*linux*) |
3911 | LD="${LD-ld} -m elf_x86_64" |
3912 | ;; |
3913 | ppc*-*linux*|powerpc*-*linux*) |
3914 | LD="${LD-ld} -m elf64ppc" |
3915 | ;; |
3916 | s390*-*linux*) |
3917 | LD="${LD-ld} -m elf64_s390" |
3918 | ;; |
3919 | sparc*-*linux*) |
3920 | LD="${LD-ld} -m elf64_sparc" |
3921 | ;; |
3922 | esac |
3923 | ;; |
3924 | esac |
3925 | fi |
3926 | rm -rf conftest* |
3927 | ;; |
3928 | |
3929 | *-*-sco3.2v5*) |
3930 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
3931 | SAVE_CFLAGS="$CFLAGS" |
3932 | CFLAGS="$CFLAGS -belf" |
3933 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
3934 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
3935 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
3936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3937 | else |
3938 | ac_ext=c |
3939 | ac_cpp='$CPP $CPPFLAGS' |
3940 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3941 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3942 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3943 | |
3944 | cat >conftest.$ac_ext <<_ACEOF |
3945 | /* confdefs.h. */ |
3946 | _ACEOF |
3947 | cat confdefs.h >>conftest.$ac_ext |
3948 | cat >>conftest.$ac_ext <<_ACEOF |
3949 | /* end confdefs.h. */ |
3950 | |
3951 | int |
3952 | main () |
3953 | { |
3954 | |
3955 | ; |
3956 | return 0; |
3957 | } |
3958 | _ACEOF |
3959 | rm -f conftest.$ac_objext conftest$ac_exeext |
3960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3961 | (eval $ac_link) 2>conftest.er1 |
3962 | ac_status=$? |
3963 | grep -v '^ *+' conftest.er1 >conftest.err |
3964 | rm -f conftest.er1 |
3965 | cat conftest.err >&5 |
3966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3967 | (exit $ac_status); } && |
3968 | { ac_try='test -z "$ac_c_werror_flag" |
3969 | || test ! -s conftest.err' |
3970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3971 | (eval $ac_try) 2>&5 |
3972 | ac_status=$? |
3973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3974 | (exit $ac_status); }; } && |
3975 | { ac_try='test -s conftest$ac_exeext' |
3976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3977 | (eval $ac_try) 2>&5 |
3978 | ac_status=$? |
3979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3980 | (exit $ac_status); }; }; then |
3981 | lt_cv_cc_needs_belf=yes |
3982 | else |
3983 | echo "$as_me: failed program was:" >&5 |
3984 | sed 's/^/| /' conftest.$ac_ext >&5 |
3985 | |
3986 | lt_cv_cc_needs_belf=no |
3987 | fi |
3988 | rm -f conftest.err conftest.$ac_objext \ |
3989 | conftest$ac_exeext conftest.$ac_ext |
3990 | ac_ext=c |
3991 | ac_cpp='$CPP $CPPFLAGS' |
3992 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3993 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3994 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3995 | |
3996 | fi |
3997 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
3998 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
3999 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4000 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
4001 | CFLAGS="$SAVE_CFLAGS" |
4002 | fi |
4003 | ;; |
4004 | sparc*-*solaris*) |
4005 | # Find out which ABI we are using. |
4006 | echo 'int i;' > conftest.$ac_ext |
4007 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4008 | (eval $ac_compile) 2>&5 |
4009 | ac_status=$? |
4010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4011 | (exit $ac_status); }; then |
4012 | case `/usr/bin/file conftest.o` in |
4013 | *64-bit*) |
4014 | case $lt_cv_prog_gnu_ld in |
4015 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
4016 | *) LD="${LD-ld} -64" ;; |
4017 | esac |
4018 | ;; |
4019 | esac |
4020 | fi |
4021 | rm -rf conftest* |
4022 | ;; |
4023 | |
4024 | |
4025 | esac |
4026 | |
4027 | need_locks="$enable_libtool_lock" |
4028 | |
4029 | |
4030 | ac_ext=c |
4031 | ac_cpp='$CPP $CPPFLAGS' |
4032 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4033 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4034 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4035 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4036 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
4037 | # On Suns, sometimes $CPP names a directory. |
4038 | if test -n "$CPP" && test -d "$CPP"; then |
4039 | CPP= |
4040 | fi |
4041 | if test -z "$CPP"; then |
4042 | if test "${ac_cv_prog_CPP+set}" = set; then |
4043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4044 | else |
4045 | # Double quotes because CPP needs to be expanded |
4046 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
4047 | do |
4048 | ac_preproc_ok=false |
4049 | for ac_c_preproc_warn_flag in '' yes |
4050 | do |
4051 | # Use a header file that comes with gcc, so configuring glibc |
4052 | # with a fresh cross-compiler works. |
4053 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4054 | # <limits.h> exists even on freestanding compilers. |
4055 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4056 | # not just through cpp. "Syntax error" is here to catch this case. |
4057 | cat >conftest.$ac_ext <<_ACEOF |
4058 | /* confdefs.h. */ |
4059 | _ACEOF |
4060 | cat confdefs.h >>conftest.$ac_ext |
4061 | cat >>conftest.$ac_ext <<_ACEOF |
4062 | /* end confdefs.h. */ |
4063 | #ifdef __STDC__ |
4064 | # include <limits.h> |
4065 | #else |
4066 | # include <assert.h> |
4067 | #endif |
4068 | Syntax error |
4069 | _ACEOF |
4070 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4071 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4072 | ac_status=$? |
4073 | grep -v '^ *+' conftest.er1 >conftest.err |
4074 | rm -f conftest.er1 |
4075 | cat conftest.err >&5 |
4076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4077 | (exit $ac_status); } >/dev/null; then |
4078 | if test -s conftest.err; then |
4079 | ac_cpp_err=$ac_c_preproc_warn_flag |
4080 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4081 | else |
4082 | ac_cpp_err= |
4083 | fi |
4084 | else |
4085 | ac_cpp_err=yes |
4086 | fi |
4087 | if test -z "$ac_cpp_err"; then |
4088 | : |
4089 | else |
4090 | echo "$as_me: failed program was:" >&5 |
4091 | sed 's/^/| /' conftest.$ac_ext >&5 |
4092 | |
4093 | # Broken: fails on valid input. |
4094 | continue |
4095 | fi |
4096 | rm -f conftest.err conftest.$ac_ext |
4097 | |
4098 | # OK, works on sane cases. Now check whether non-existent headers |
4099 | # can be detected and how. |
4100 | cat >conftest.$ac_ext <<_ACEOF |
4101 | /* confdefs.h. */ |
4102 | _ACEOF |
4103 | cat confdefs.h >>conftest.$ac_ext |
4104 | cat >>conftest.$ac_ext <<_ACEOF |
4105 | /* end confdefs.h. */ |
4106 | #include <ac_nonexistent.h> |
4107 | _ACEOF |
4108 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4109 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4110 | ac_status=$? |
4111 | grep -v '^ *+' conftest.er1 >conftest.err |
4112 | rm -f conftest.er1 |
4113 | cat conftest.err >&5 |
4114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4115 | (exit $ac_status); } >/dev/null; then |
4116 | if test -s conftest.err; then |
4117 | ac_cpp_err=$ac_c_preproc_warn_flag |
4118 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4119 | else |
4120 | ac_cpp_err= |
4121 | fi |
4122 | else |
4123 | ac_cpp_err=yes |
4124 | fi |
4125 | if test -z "$ac_cpp_err"; then |
4126 | # Broken: success on invalid input. |
4127 | continue |
4128 | else |
4129 | echo "$as_me: failed program was:" >&5 |
4130 | sed 's/^/| /' conftest.$ac_ext >&5 |
4131 | |
4132 | # Passes both tests. |
4133 | ac_preproc_ok=: |
4134 | break |
4135 | fi |
4136 | rm -f conftest.err conftest.$ac_ext |
4137 | |
4138 | done |
4139 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4140 | rm -f conftest.err conftest.$ac_ext |
4141 | if $ac_preproc_ok; then |
4142 | break |
4143 | fi |
4144 | |
4145 | done |
4146 | ac_cv_prog_CPP=$CPP |
4147 | |
4148 | fi |
4149 | CPP=$ac_cv_prog_CPP |
4150 | else |
4151 | ac_cv_prog_CPP=$CPP |
4152 | fi |
4153 | echo "$as_me:$LINENO: result: $CPP" >&5 |
4154 | echo "${ECHO_T}$CPP" >&6 |
4155 | ac_preproc_ok=false |
4156 | for ac_c_preproc_warn_flag in '' yes |
4157 | do |
4158 | # Use a header file that comes with gcc, so configuring glibc |
4159 | # with a fresh cross-compiler works. |
4160 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4161 | # <limits.h> exists even on freestanding compilers. |
4162 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4163 | # not just through cpp. "Syntax error" is here to catch this case. |
4164 | cat >conftest.$ac_ext <<_ACEOF |
4165 | /* confdefs.h. */ |
4166 | _ACEOF |
4167 | cat confdefs.h >>conftest.$ac_ext |
4168 | cat >>conftest.$ac_ext <<_ACEOF |
4169 | /* end confdefs.h. */ |
4170 | #ifdef __STDC__ |
4171 | # include <limits.h> |
4172 | #else |
4173 | # include <assert.h> |
4174 | #endif |
4175 | Syntax error |
4176 | _ACEOF |
4177 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4178 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4179 | ac_status=$? |
4180 | grep -v '^ *+' conftest.er1 >conftest.err |
4181 | rm -f conftest.er1 |
4182 | cat conftest.err >&5 |
4183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4184 | (exit $ac_status); } >/dev/null; then |
4185 | if test -s conftest.err; then |
4186 | ac_cpp_err=$ac_c_preproc_warn_flag |
4187 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4188 | else |
4189 | ac_cpp_err= |
4190 | fi |
4191 | else |
4192 | ac_cpp_err=yes |
4193 | fi |
4194 | if test -z "$ac_cpp_err"; then |
4195 | : |
4196 | else |
4197 | echo "$as_me: failed program was:" >&5 |
4198 | sed 's/^/| /' conftest.$ac_ext >&5 |
4199 | |
4200 | # Broken: fails on valid input. |
4201 | continue |
4202 | fi |
4203 | rm -f conftest.err conftest.$ac_ext |
4204 | |
4205 | # OK, works on sane cases. Now check whether non-existent headers |
4206 | # can be detected and how. |
4207 | cat >conftest.$ac_ext <<_ACEOF |
4208 | /* confdefs.h. */ |
4209 | _ACEOF |
4210 | cat confdefs.h >>conftest.$ac_ext |
4211 | cat >>conftest.$ac_ext <<_ACEOF |
4212 | /* end confdefs.h. */ |
4213 | #include <ac_nonexistent.h> |
4214 | _ACEOF |
4215 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4216 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4217 | ac_status=$? |
4218 | grep -v '^ *+' conftest.er1 >conftest.err |
4219 | rm -f conftest.er1 |
4220 | cat conftest.err >&5 |
4221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4222 | (exit $ac_status); } >/dev/null; then |
4223 | if test -s conftest.err; then |
4224 | ac_cpp_err=$ac_c_preproc_warn_flag |
4225 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4226 | else |
4227 | ac_cpp_err= |
4228 | fi |
4229 | else |
4230 | ac_cpp_err=yes |
4231 | fi |
4232 | if test -z "$ac_cpp_err"; then |
4233 | # Broken: success on invalid input. |
4234 | continue |
4235 | else |
4236 | echo "$as_me: failed program was:" >&5 |
4237 | sed 's/^/| /' conftest.$ac_ext >&5 |
4238 | |
4239 | # Passes both tests. |
4240 | ac_preproc_ok=: |
4241 | break |
4242 | fi |
4243 | rm -f conftest.err conftest.$ac_ext |
4244 | |
4245 | done |
4246 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4247 | rm -f conftest.err conftest.$ac_ext |
4248 | if $ac_preproc_ok; then |
4249 | : |
4250 | else |
4251 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
4252 | See \`config.log' for more details." >&5 |
4253 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
4254 | See \`config.log' for more details." >&2;} |
4255 | { (exit 1); exit 1; }; } |
4256 | fi |
4257 | |
4258 | ac_ext=c |
4259 | ac_cpp='$CPP $CPPFLAGS' |
4260 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4261 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4262 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4263 | |
4264 | |
4265 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4266 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
4267 | if test "${ac_cv_header_stdc+set}" = set; then |
4268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4269 | else |
4270 | cat >conftest.$ac_ext <<_ACEOF |
4271 | /* confdefs.h. */ |
4272 | _ACEOF |
4273 | cat confdefs.h >>conftest.$ac_ext |
4274 | cat >>conftest.$ac_ext <<_ACEOF |
4275 | /* end confdefs.h. */ |
4276 | #include <stdlib.h> |
4277 | #include <stdarg.h> |
4278 | #include <string.h> |
4279 | #include <float.h> |
4280 | |
4281 | int |
4282 | main () |
4283 | { |
4284 | |
4285 | ; |
4286 | return 0; |
4287 | } |
4288 | _ACEOF |
4289 | rm -f conftest.$ac_objext |
4290 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4291 | (eval $ac_compile) 2>conftest.er1 |
4292 | ac_status=$? |
4293 | grep -v '^ *+' conftest.er1 >conftest.err |
4294 | rm -f conftest.er1 |
4295 | cat conftest.err >&5 |
4296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4297 | (exit $ac_status); } && |
4298 | { ac_try='test -z "$ac_c_werror_flag" |
4299 | || test ! -s conftest.err' |
4300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4301 | (eval $ac_try) 2>&5 |
4302 | ac_status=$? |
4303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4304 | (exit $ac_status); }; } && |
4305 | { ac_try='test -s conftest.$ac_objext' |
4306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4307 | (eval $ac_try) 2>&5 |
4308 | ac_status=$? |
4309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4310 | (exit $ac_status); }; }; then |
4311 | ac_cv_header_stdc=yes |
4312 | else |
4313 | echo "$as_me: failed program was:" >&5 |
4314 | sed 's/^/| /' conftest.$ac_ext >&5 |
4315 | |
4316 | ac_cv_header_stdc=no |
4317 | fi |
4318 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4319 | |
4320 | if test $ac_cv_header_stdc = yes; then |
4321 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
4322 | cat >conftest.$ac_ext <<_ACEOF |
4323 | /* confdefs.h. */ |
4324 | _ACEOF |
4325 | cat confdefs.h >>conftest.$ac_ext |
4326 | cat >>conftest.$ac_ext <<_ACEOF |
4327 | /* end confdefs.h. */ |
4328 | #include <string.h> |
4329 | |
4330 | _ACEOF |
4331 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4332 | $EGREP "memchr" >/dev/null 2>&1; then |
4333 | : |
4334 | else |
4335 | ac_cv_header_stdc=no |
4336 | fi |
4337 | rm -f conftest* |
4338 | |
4339 | fi |
4340 | |
4341 | if test $ac_cv_header_stdc = yes; then |
4342 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
4343 | cat >conftest.$ac_ext <<_ACEOF |
4344 | /* confdefs.h. */ |
4345 | _ACEOF |
4346 | cat confdefs.h >>conftest.$ac_ext |
4347 | cat >>conftest.$ac_ext <<_ACEOF |
4348 | /* end confdefs.h. */ |
4349 | #include <stdlib.h> |
4350 | |
4351 | _ACEOF |
4352 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4353 | $EGREP "free" >/dev/null 2>&1; then |
4354 | : |
4355 | else |
4356 | ac_cv_header_stdc=no |
4357 | fi |
4358 | rm -f conftest* |
4359 | |
4360 | fi |
4361 | |
4362 | if test $ac_cv_header_stdc = yes; then |
4363 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
4364 | if test "$cross_compiling" = yes; then |
4365 | : |
4366 | else |
4367 | cat >conftest.$ac_ext <<_ACEOF |
4368 | /* confdefs.h. */ |
4369 | _ACEOF |
4370 | cat confdefs.h >>conftest.$ac_ext |
4371 | cat >>conftest.$ac_ext <<_ACEOF |
4372 | /* end confdefs.h. */ |
4373 | #include <ctype.h> |
4374 | #if ((' ' & 0x0FF) == 0x020) |
4375 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
4376 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
4377 | #else |
4378 | # define ISLOWER(c) \ |
4379 | (('a' <= (c) && (c) <= 'i') \ |
4380 | || ('j' <= (c) && (c) <= 'r') \ |
4381 | || ('s' <= (c) && (c) <= 'z')) |
4382 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4383 | #endif |
4384 | |
4385 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4386 | int |
4387 | main () |
4388 | { |
4389 | int i; |
4390 | for (i = 0; i < 256; i++) |
4391 | if (XOR (islower (i), ISLOWER (i)) |
4392 | || toupper (i) != TOUPPER (i)) |
4393 | exit(2); |
4394 | exit (0); |
4395 | } |
4396 | _ACEOF |
4397 | rm -f conftest$ac_exeext |
4398 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4399 | (eval $ac_link) 2>&5 |
4400 | ac_status=$? |
4401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4402 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4404 | (eval $ac_try) 2>&5 |
4405 | ac_status=$? |
4406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4407 | (exit $ac_status); }; }; then |
4408 | : |
4409 | else |
4410 | echo "$as_me: program exited with status $ac_status" >&5 |
4411 | echo "$as_me: failed program was:" >&5 |
4412 | sed 's/^/| /' conftest.$ac_ext >&5 |
4413 | |
4414 | ( exit $ac_status ) |
4415 | ac_cv_header_stdc=no |
4416 | fi |
4417 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4418 | fi |
4419 | fi |
4420 | fi |
4421 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4422 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
4423 | if test $ac_cv_header_stdc = yes; then |
4424 | |
4425 | cat >>confdefs.h <<\_ACEOF |
4426 | #define STDC_HEADERS 1 |
4427 | _ACEOF |
4428 | |
4429 | fi |
4430 | |
4431 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4432 | |
4433 | |
4434 | |
4435 | |
4436 | |
4437 | |
4438 | |
4439 | |
4440 | |
4441 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4442 | inttypes.h stdint.h unistd.h |
4443 | do |
4444 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4445 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4446 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4447 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4449 | else |
4450 | cat >conftest.$ac_ext <<_ACEOF |
4451 | /* confdefs.h. */ |
4452 | _ACEOF |
4453 | cat confdefs.h >>conftest.$ac_ext |
4454 | cat >>conftest.$ac_ext <<_ACEOF |
4455 | /* end confdefs.h. */ |
4456 | $ac_includes_default |
4457 | |
4458 | #include <$ac_header> |
4459 | _ACEOF |
4460 | rm -f conftest.$ac_objext |
4461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4462 | (eval $ac_compile) 2>conftest.er1 |
4463 | ac_status=$? |
4464 | grep -v '^ *+' conftest.er1 >conftest.err |
4465 | rm -f conftest.er1 |
4466 | cat conftest.err >&5 |
4467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4468 | (exit $ac_status); } && |
4469 | { ac_try='test -z "$ac_c_werror_flag" |
4470 | || test ! -s conftest.err' |
4471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4472 | (eval $ac_try) 2>&5 |
4473 | ac_status=$? |
4474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4475 | (exit $ac_status); }; } && |
4476 | { ac_try='test -s conftest.$ac_objext' |
4477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4478 | (eval $ac_try) 2>&5 |
4479 | ac_status=$? |
4480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4481 | (exit $ac_status); }; }; then |
4482 | eval "$as_ac_Header=yes" |
4483 | else |
4484 | echo "$as_me: failed program was:" >&5 |
4485 | sed 's/^/| /' conftest.$ac_ext >&5 |
4486 | |
4487 | eval "$as_ac_Header=no" |
4488 | fi |
4489 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4490 | fi |
4491 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4492 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4493 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4494 | cat >>confdefs.h <<_ACEOF |
4495 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4496 | _ACEOF |
4497 | |
4498 | fi |
4499 | |
4500 | done |
4501 | |
4502 | |
4503 | |
4504 | for ac_header in dlfcn.h |
4505 | do |
4506 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4507 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4508 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4509 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4510 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4512 | fi |
4513 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4514 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4515 | else |
4516 | # Is the header compilable? |
4517 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4518 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
4519 | cat >conftest.$ac_ext <<_ACEOF |
4520 | /* confdefs.h. */ |
4521 | _ACEOF |
4522 | cat confdefs.h >>conftest.$ac_ext |
4523 | cat >>conftest.$ac_ext <<_ACEOF |
4524 | /* end confdefs.h. */ |
4525 | $ac_includes_default |
4526 | #include <$ac_header> |
4527 | _ACEOF |
4528 | rm -f conftest.$ac_objext |
4529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4530 | (eval $ac_compile) 2>conftest.er1 |
4531 | ac_status=$? |
4532 | grep -v '^ *+' conftest.er1 >conftest.err |
4533 | rm -f conftest.er1 |
4534 | cat conftest.err >&5 |
4535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4536 | (exit $ac_status); } && |
4537 | { ac_try='test -z "$ac_c_werror_flag" |
4538 | || test ! -s conftest.err' |
4539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4540 | (eval $ac_try) 2>&5 |
4541 | ac_status=$? |
4542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4543 | (exit $ac_status); }; } && |
4544 | { ac_try='test -s conftest.$ac_objext' |
4545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4546 | (eval $ac_try) 2>&5 |
4547 | ac_status=$? |
4548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4549 | (exit $ac_status); }; }; then |
4550 | ac_header_compiler=yes |
4551 | else |
4552 | echo "$as_me: failed program was:" >&5 |
4553 | sed 's/^/| /' conftest.$ac_ext >&5 |
4554 | |
4555 | ac_header_compiler=no |
4556 | fi |
4557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4558 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4559 | echo "${ECHO_T}$ac_header_compiler" >&6 |
4560 | |
4561 | # Is the header present? |
4562 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4563 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
4564 | cat >conftest.$ac_ext <<_ACEOF |
4565 | /* confdefs.h. */ |
4566 | _ACEOF |
4567 | cat confdefs.h >>conftest.$ac_ext |
4568 | cat >>conftest.$ac_ext <<_ACEOF |
4569 | /* end confdefs.h. */ |
4570 | #include <$ac_header> |
4571 | _ACEOF |
4572 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4573 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4574 | ac_status=$? |
4575 | grep -v '^ *+' conftest.er1 >conftest.err |
4576 | rm -f conftest.er1 |
4577 | cat conftest.err >&5 |
4578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4579 | (exit $ac_status); } >/dev/null; then |
4580 | if test -s conftest.err; then |
4581 | ac_cpp_err=$ac_c_preproc_warn_flag |
4582 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4583 | else |
4584 | ac_cpp_err= |
4585 | fi |
4586 | else |
4587 | ac_cpp_err=yes |
4588 | fi |
4589 | if test -z "$ac_cpp_err"; then |
4590 | ac_header_preproc=yes |
4591 | else |
4592 | echo "$as_me: failed program was:" >&5 |
4593 | sed 's/^/| /' conftest.$ac_ext >&5 |
4594 | |
4595 | ac_header_preproc=no |
4596 | fi |
4597 | rm -f conftest.err conftest.$ac_ext |
4598 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4599 | echo "${ECHO_T}$ac_header_preproc" >&6 |
4600 | |
4601 | # So? What about this header? |
4602 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4603 | yes:no: ) |
4604 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4605 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
4606 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4607 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
4608 | ac_header_preproc=yes |
4609 | ;; |
4610 | no:yes:* ) |
4611 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4612 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
4613 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4614 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
4615 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
4616 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
4617 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
4618 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
4619 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4620 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
4621 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4622 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
4623 | ( |
4624 | cat <<\_ASBOX |
4625 | ## -------------------------------------------------- ## |
4626 | ## Report this to courier-users@lists.sourceforge.net ## |
4627 | ## -------------------------------------------------- ## |
4628 | _ASBOX |
4629 | ) | |
4630 | sed "s/^/$as_me: WARNING: /" >&2 |
4631 | ;; |
4632 | esac |
4633 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4634 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4635 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4637 | else |
4638 | eval "$as_ac_Header=\$ac_header_preproc" |
4639 | fi |
4640 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4641 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4642 | |
4643 | fi |
4644 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4645 | cat >>confdefs.h <<_ACEOF |
4646 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4647 | _ACEOF |
4648 | |
4649 | fi |
4650 | |
4651 | done |
4652 | |
4653 | ac_ext=cc |
4654 | ac_cpp='$CXXCPP $CPPFLAGS' |
4655 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4656 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4657 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4658 | if test -n "$ac_tool_prefix"; then |
4659 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
4660 | do |
4661 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
4662 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
4663 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4664 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4665 | if test "${ac_cv_prog_CXX+set}" = set; then |
4666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4667 | else |
4668 | if test -n "$CXX"; then |
4669 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
4670 | else |
4671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4672 | for as_dir in $PATH |
4673 | do |
4674 | IFS=$as_save_IFS |
4675 | test -z "$as_dir" && as_dir=. |
4676 | for ac_exec_ext in '' $ac_executable_extensions; do |
4677 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4678 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
4679 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4680 | break 2 |
4681 | fi |
4682 | done |
4683 | done |
4684 | |
4685 | fi |
4686 | fi |
4687 | CXX=$ac_cv_prog_CXX |
4688 | if test -n "$CXX"; then |
4689 | echo "$as_me:$LINENO: result: $CXX" >&5 |
4690 | echo "${ECHO_T}$CXX" >&6 |
4691 | else |
4692 | echo "$as_me:$LINENO: result: no" >&5 |
4693 | echo "${ECHO_T}no" >&6 |
4694 | fi |
4695 | |
4696 | test -n "$CXX" && break |
4697 | done |
4698 | fi |
4699 | if test -z "$CXX"; then |
4700 | ac_ct_CXX=$CXX |
4701 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
4702 | do |
4703 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
4704 | set dummy $ac_prog; ac_word=$2 |
4705 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4706 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4707 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
4708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4709 | else |
4710 | if test -n "$ac_ct_CXX"; then |
4711 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
4712 | else |
4713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4714 | for as_dir in $PATH |
4715 | do |
4716 | IFS=$as_save_IFS |
4717 | test -z "$as_dir" && as_dir=. |
4718 | for ac_exec_ext in '' $ac_executable_extensions; do |
4719 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4720 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
4721 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4722 | break 2 |
4723 | fi |
4724 | done |
4725 | done |
4726 | |
4727 | fi |
4728 | fi |
4729 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4730 | if test -n "$ac_ct_CXX"; then |
4731 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
4732 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
4733 | else |
4734 | echo "$as_me:$LINENO: result: no" >&5 |
4735 | echo "${ECHO_T}no" >&6 |
4736 | fi |
4737 | |
4738 | test -n "$ac_ct_CXX" && break |
4739 | done |
4740 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
4741 | |
4742 | CXX=$ac_ct_CXX |
4743 | fi |
4744 | |
4745 | |
4746 | # Provide some information about the compiler. |
4747 | echo "$as_me:$LINENO:" \ |
4748 | "checking for C++ compiler version" >&5 |
4749 | ac_compiler=`set X $ac_compile; echo $2` |
4750 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
4751 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
4752 | ac_status=$? |
4753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4754 | (exit $ac_status); } |
4755 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
4756 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
4757 | ac_status=$? |
4758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4759 | (exit $ac_status); } |
4760 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
4761 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
4762 | ac_status=$? |
4763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4764 | (exit $ac_status); } |
4765 | |
4766 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
4767 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
4768 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
4769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4770 | else |
4771 | cat >conftest.$ac_ext <<_ACEOF |
4772 | /* confdefs.h. */ |
4773 | _ACEOF |
4774 | cat confdefs.h >>conftest.$ac_ext |
4775 | cat >>conftest.$ac_ext <<_ACEOF |
4776 | /* end confdefs.h. */ |
4777 | |
4778 | int |
4779 | main () |
4780 | { |
4781 | #ifndef __GNUC__ |
4782 | choke me |
4783 | #endif |
4784 | |
4785 | ; |
4786 | return 0; |
4787 | } |
4788 | _ACEOF |
4789 | rm -f conftest.$ac_objext |
4790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4791 | (eval $ac_compile) 2>conftest.er1 |
4792 | ac_status=$? |
4793 | grep -v '^ *+' conftest.er1 >conftest.err |
4794 | rm -f conftest.er1 |
4795 | cat conftest.err >&5 |
4796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4797 | (exit $ac_status); } && |
4798 | { ac_try='test -z "$ac_cxx_werror_flag" |
4799 | || test ! -s conftest.err' |
4800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4801 | (eval $ac_try) 2>&5 |
4802 | ac_status=$? |
4803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4804 | (exit $ac_status); }; } && |
4805 | { ac_try='test -s conftest.$ac_objext' |
4806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4807 | (eval $ac_try) 2>&5 |
4808 | ac_status=$? |
4809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4810 | (exit $ac_status); }; }; then |
4811 | ac_compiler_gnu=yes |
4812 | else |
4813 | echo "$as_me: failed program was:" >&5 |
4814 | sed 's/^/| /' conftest.$ac_ext >&5 |
4815 | |
4816 | ac_compiler_gnu=no |
4817 | fi |
4818 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4819 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4820 | |
4821 | fi |
4822 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
4823 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
4824 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
4825 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4826 | ac_save_CXXFLAGS=$CXXFLAGS |
4827 | CXXFLAGS="-g" |
4828 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
4829 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
4830 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
4831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4832 | else |
4833 | cat >conftest.$ac_ext <<_ACEOF |
4834 | /* confdefs.h. */ |
4835 | _ACEOF |
4836 | cat confdefs.h >>conftest.$ac_ext |
4837 | cat >>conftest.$ac_ext <<_ACEOF |
4838 | /* end confdefs.h. */ |
4839 | |
4840 | int |
4841 | main () |
4842 | { |
4843 | |
4844 | ; |
4845 | return 0; |
4846 | } |
4847 | _ACEOF |
4848 | rm -f conftest.$ac_objext |
4849 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4850 | (eval $ac_compile) 2>conftest.er1 |
4851 | ac_status=$? |
4852 | grep -v '^ *+' conftest.er1 >conftest.err |
4853 | rm -f conftest.er1 |
4854 | cat conftest.err >&5 |
4855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4856 | (exit $ac_status); } && |
4857 | { ac_try='test -z "$ac_cxx_werror_flag" |
4858 | || test ! -s conftest.err' |
4859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4860 | (eval $ac_try) 2>&5 |
4861 | ac_status=$? |
4862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4863 | (exit $ac_status); }; } && |
4864 | { ac_try='test -s conftest.$ac_objext' |
4865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4866 | (eval $ac_try) 2>&5 |
4867 | ac_status=$? |
4868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4869 | (exit $ac_status); }; }; then |
4870 | ac_cv_prog_cxx_g=yes |
4871 | else |
4872 | echo "$as_me: failed program was:" >&5 |
4873 | sed 's/^/| /' conftest.$ac_ext >&5 |
4874 | |
4875 | ac_cv_prog_cxx_g=no |
4876 | fi |
4877 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4878 | fi |
4879 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
4880 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
4881 | if test "$ac_test_CXXFLAGS" = set; then |
4882 | CXXFLAGS=$ac_save_CXXFLAGS |
4883 | elif test $ac_cv_prog_cxx_g = yes; then |
4884 | if test "$GXX" = yes; then |
4885 | CXXFLAGS="-g -O2" |
4886 | else |
4887 | CXXFLAGS="-g" |
4888 | fi |
4889 | else |
4890 | if test "$GXX" = yes; then |
4891 | CXXFLAGS="-O2" |
4892 | else |
4893 | CXXFLAGS= |
4894 | fi |
4895 | fi |
4896 | for ac_declaration in \ |
4897 | '' \ |
4898 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
4899 | 'extern "C" void std::exit (int); using std::exit;' \ |
4900 | 'extern "C" void exit (int) throw ();' \ |
4901 | 'extern "C" void exit (int);' \ |
4902 | 'void exit (int);' |
4903 | do |
4904 | cat >conftest.$ac_ext <<_ACEOF |
4905 | /* confdefs.h. */ |
4906 | _ACEOF |
4907 | cat confdefs.h >>conftest.$ac_ext |
4908 | cat >>conftest.$ac_ext <<_ACEOF |
4909 | /* end confdefs.h. */ |
4910 | $ac_declaration |
4911 | #include <stdlib.h> |
4912 | int |
4913 | main () |
4914 | { |
4915 | exit (42); |
4916 | ; |
4917 | return 0; |
4918 | } |
4919 | _ACEOF |
4920 | rm -f conftest.$ac_objext |
4921 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4922 | (eval $ac_compile) 2>conftest.er1 |
4923 | ac_status=$? |
4924 | grep -v '^ *+' conftest.er1 >conftest.err |
4925 | rm -f conftest.er1 |
4926 | cat conftest.err >&5 |
4927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4928 | (exit $ac_status); } && |
4929 | { ac_try='test -z "$ac_cxx_werror_flag" |
4930 | || test ! -s conftest.err' |
4931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4932 | (eval $ac_try) 2>&5 |
4933 | ac_status=$? |
4934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4935 | (exit $ac_status); }; } && |
4936 | { ac_try='test -s conftest.$ac_objext' |
4937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4938 | (eval $ac_try) 2>&5 |
4939 | ac_status=$? |
4940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4941 | (exit $ac_status); }; }; then |
4942 | : |
4943 | else |
4944 | echo "$as_me: failed program was:" >&5 |
4945 | sed 's/^/| /' conftest.$ac_ext >&5 |
4946 | |
4947 | continue |
4948 | fi |
4949 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4950 | cat >conftest.$ac_ext <<_ACEOF |
4951 | /* confdefs.h. */ |
4952 | _ACEOF |
4953 | cat confdefs.h >>conftest.$ac_ext |
4954 | cat >>conftest.$ac_ext <<_ACEOF |
4955 | /* end confdefs.h. */ |
4956 | $ac_declaration |
4957 | int |
4958 | main () |
4959 | { |
4960 | exit (42); |
4961 | ; |
4962 | return 0; |
4963 | } |
4964 | _ACEOF |
4965 | rm -f conftest.$ac_objext |
4966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4967 | (eval $ac_compile) 2>conftest.er1 |
4968 | ac_status=$? |
4969 | grep -v '^ *+' conftest.er1 >conftest.err |
4970 | rm -f conftest.er1 |
4971 | cat conftest.err >&5 |
4972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4973 | (exit $ac_status); } && |
4974 | { ac_try='test -z "$ac_cxx_werror_flag" |
4975 | || test ! -s conftest.err' |
4976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4977 | (eval $ac_try) 2>&5 |
4978 | ac_status=$? |
4979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4980 | (exit $ac_status); }; } && |
4981 | { ac_try='test -s conftest.$ac_objext' |
4982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4983 | (eval $ac_try) 2>&5 |
4984 | ac_status=$? |
4985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4986 | (exit $ac_status); }; }; then |
4987 | break |
4988 | else |
4989 | echo "$as_me: failed program was:" >&5 |
4990 | sed 's/^/| /' conftest.$ac_ext >&5 |
4991 | |
4992 | fi |
4993 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4994 | done |
4995 | rm -f conftest* |
4996 | if test -n "$ac_declaration"; then |
4997 | echo '#ifdef __cplusplus' >>confdefs.h |
4998 | echo $ac_declaration >>confdefs.h |
4999 | echo '#endif' >>confdefs.h |
5000 | fi |
5001 | |
5002 | ac_ext=cc |
5003 | ac_cpp='$CXXCPP $CPPFLAGS' |
5004 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5005 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5006 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5007 | |
5008 | depcc="$CXX" am_compiler_list= |
5009 | |
5010 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
5011 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
5012 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
5013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5014 | else |
5015 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
5016 | # We make a subdir and do the tests there. Otherwise we can end up |
5017 | # making bogus files that we don't know about and never remove. For |
5018 | # instance it was reported that on HP-UX the gcc test will end up |
5019 | # making a dummy file named `D' -- because `-MD' means `put the output |
5020 | # in D'. |
5021 | mkdir conftest.dir |
5022 | # Copy depcomp to subdir because otherwise we won't find it if we're |
5023 | # using a relative directory. |
5024 | cp "$am_depcomp" conftest.dir |
5025 | cd conftest.dir |
5026 | # We will build objects and dependencies in a subdirectory because |
5027 | # it helps to detect inapplicable dependency modes. For instance |
5028 | # both Tru64's cc and ICC support -MD to output dependencies as a |
5029 | # side effect of compilation, but ICC will put the dependencies in |
5030 | # the current directory while Tru64 will put them in the object |
5031 | # directory. |
5032 | mkdir sub |
5033 | |
5034 | am_cv_CXX_dependencies_compiler_type=none |
5035 | if test "$am_compiler_list" = ""; then |
5036 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
5037 | fi |
5038 | for depmode in $am_compiler_list; do |
5039 | # Setup a source with many dependencies, because some compilers |
5040 | # like to wrap large dependency lists on column 80 (with \), and |
5041 | # we should not choose a depcomp mode which is confused by this. |
5042 | # |
5043 | # We need to recreate these files for each test, as the compiler may |
5044 | # overwrite some of them when testing with obscure command lines. |
5045 | # This happens at least with the AIX C compiler. |
5046 | : > sub/conftest.c |
5047 | for i in 1 2 3 4 5 6; do |
5048 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
5049 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
5050 | # Solaris 8's {/usr,}/bin/sh. |
5051 | touch sub/conftst$i.h |
5052 | done |
5053 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
5054 | |
5055 | case $depmode in |
5056 | nosideeffect) |
5057 | # after this tag, mechanisms are not by side-effect, so they'll |
5058 | # only be used when explicitly requested |
5059 | if test "x$enable_dependency_tracking" = xyes; then |
5060 | continue |
5061 | else |
5062 | break |
5063 | fi |
5064 | ;; |
5065 | none) break ;; |
5066 | esac |
5067 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5068 | # mode. It turns out that the SunPro C++ compiler does not properly |
5069 | # handle `-M -o', and we need to detect this. |
5070 | if depmode=$depmode \ |
5071 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
5072 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5073 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
5074 | >/dev/null 2>conftest.err && |
5075 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5076 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
5077 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5078 | # icc doesn't choke on unknown options, it will just issue warnings |
5079 | # or remarks (even with -Werror). So we grep stderr for any message |
5080 | # that says an option was ignored or not supported. |
5081 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
5082 | # icc: Command line warning: ignoring option '-M'; no argument required |
5083 | # The diagnosis changed in icc 8.0: |
5084 | # icc: Command line remark: option '-MP' not supported |
5085 | if (grep 'ignoring option' conftest.err || |
5086 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
5087 | am_cv_CXX_dependencies_compiler_type=$depmode |
5088 | break |
5089 | fi |
5090 | fi |
5091 | done |
5092 | |
5093 | cd .. |
5094 | rm -rf conftest.dir |
5095 | else |
5096 | am_cv_CXX_dependencies_compiler_type=none |
5097 | fi |
5098 | |
5099 | fi |
5100 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
5101 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
5102 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
5103 | |
5104 | |
5105 | |
5106 | if |
5107 | test "x$enable_dependency_tracking" != xno \ |
5108 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
5109 | am__fastdepCXX_TRUE= |
5110 | am__fastdepCXX_FALSE='#' |
5111 | else |
5112 | am__fastdepCXX_TRUE='#' |
5113 | am__fastdepCXX_FALSE= |
5114 | fi |
5115 | |
5116 | |
5117 | |
5118 | |
5119 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
5120 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
5121 | (test "X$CXX" != "Xg++"))) ; then |
5122 | ac_ext=cc |
5123 | ac_cpp='$CXXCPP $CPPFLAGS' |
5124 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5125 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5126 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5127 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
5128 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
5129 | if test -z "$CXXCPP"; then |
5130 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
5131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5132 | else |
5133 | # Double quotes because CXXCPP needs to be expanded |
5134 | for CXXCPP in "$CXX -E" "/lib/cpp" |
5135 | do |
5136 | ac_preproc_ok=false |
5137 | for ac_cxx_preproc_warn_flag in '' yes |
5138 | do |
5139 | # Use a header file that comes with gcc, so configuring glibc |
5140 | # with a fresh cross-compiler works. |
5141 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5142 | # <limits.h> exists even on freestanding compilers. |
5143 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5144 | # not just through cpp. "Syntax error" is here to catch this case. |
5145 | cat >conftest.$ac_ext <<_ACEOF |
5146 | /* confdefs.h. */ |
5147 | _ACEOF |
5148 | cat confdefs.h >>conftest.$ac_ext |
5149 | cat >>conftest.$ac_ext <<_ACEOF |
5150 | /* end confdefs.h. */ |
5151 | #ifdef __STDC__ |
5152 | # include <limits.h> |
5153 | #else |
5154 | # include <assert.h> |
5155 | #endif |
5156 | Syntax error |
5157 | _ACEOF |
5158 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5159 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5160 | ac_status=$? |
5161 | grep -v '^ *+' conftest.er1 >conftest.err |
5162 | rm -f conftest.er1 |
5163 | cat conftest.err >&5 |
5164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5165 | (exit $ac_status); } >/dev/null; then |
5166 | if test -s conftest.err; then |
5167 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5168 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5169 | else |
5170 | ac_cpp_err= |
5171 | fi |
5172 | else |
5173 | ac_cpp_err=yes |
5174 | fi |
5175 | if test -z "$ac_cpp_err"; then |
5176 | : |
5177 | else |
5178 | echo "$as_me: failed program was:" >&5 |
5179 | sed 's/^/| /' conftest.$ac_ext >&5 |
5180 | |
5181 | # Broken: fails on valid input. |
5182 | continue |
5183 | fi |
5184 | rm -f conftest.err conftest.$ac_ext |
5185 | |
5186 | # OK, works on sane cases. Now check whether non-existent headers |
5187 | # can be detected and how. |
5188 | cat >conftest.$ac_ext <<_ACEOF |
5189 | /* confdefs.h. */ |
5190 | _ACEOF |
5191 | cat confdefs.h >>conftest.$ac_ext |
5192 | cat >>conftest.$ac_ext <<_ACEOF |
5193 | /* end confdefs.h. */ |
5194 | #include <ac_nonexistent.h> |
5195 | _ACEOF |
5196 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5197 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5198 | ac_status=$? |
5199 | grep -v '^ *+' conftest.er1 >conftest.err |
5200 | rm -f conftest.er1 |
5201 | cat conftest.err >&5 |
5202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5203 | (exit $ac_status); } >/dev/null; then |
5204 | if test -s conftest.err; then |
5205 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5206 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5207 | else |
5208 | ac_cpp_err= |
5209 | fi |
5210 | else |
5211 | ac_cpp_err=yes |
5212 | fi |
5213 | if test -z "$ac_cpp_err"; then |
5214 | # Broken: success on invalid input. |
5215 | continue |
5216 | else |
5217 | echo "$as_me: failed program was:" >&5 |
5218 | sed 's/^/| /' conftest.$ac_ext >&5 |
5219 | |
5220 | # Passes both tests. |
5221 | ac_preproc_ok=: |
5222 | break |
5223 | fi |
5224 | rm -f conftest.err conftest.$ac_ext |
5225 | |
5226 | done |
5227 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5228 | rm -f conftest.err conftest.$ac_ext |
5229 | if $ac_preproc_ok; then |
5230 | break |
5231 | fi |
5232 | |
5233 | done |
5234 | ac_cv_prog_CXXCPP=$CXXCPP |
5235 | |
5236 | fi |
5237 | CXXCPP=$ac_cv_prog_CXXCPP |
5238 | else |
5239 | ac_cv_prog_CXXCPP=$CXXCPP |
5240 | fi |
5241 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
5242 | echo "${ECHO_T}$CXXCPP" >&6 |
5243 | ac_preproc_ok=false |
5244 | for ac_cxx_preproc_warn_flag in '' yes |
5245 | do |
5246 | # Use a header file that comes with gcc, so configuring glibc |
5247 | # with a fresh cross-compiler works. |
5248 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5249 | # <limits.h> exists even on freestanding compilers. |
5250 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5251 | # not just through cpp. "Syntax error" is here to catch this case. |
5252 | cat >conftest.$ac_ext <<_ACEOF |
5253 | /* confdefs.h. */ |
5254 | _ACEOF |
5255 | cat confdefs.h >>conftest.$ac_ext |
5256 | cat >>conftest.$ac_ext <<_ACEOF |
5257 | /* end confdefs.h. */ |
5258 | #ifdef __STDC__ |
5259 | # include <limits.h> |
5260 | #else |
5261 | # include <assert.h> |
5262 | #endif |
5263 | Syntax error |
5264 | _ACEOF |
5265 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5266 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5267 | ac_status=$? |
5268 | grep -v '^ *+' conftest.er1 >conftest.err |
5269 | rm -f conftest.er1 |
5270 | cat conftest.err >&5 |
5271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5272 | (exit $ac_status); } >/dev/null; then |
5273 | if test -s conftest.err; then |
5274 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5275 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5276 | else |
5277 | ac_cpp_err= |
5278 | fi |
5279 | else |
5280 | ac_cpp_err=yes |
5281 | fi |
5282 | if test -z "$ac_cpp_err"; then |
5283 | : |
5284 | else |
5285 | echo "$as_me: failed program was:" >&5 |
5286 | sed 's/^/| /' conftest.$ac_ext >&5 |
5287 | |
5288 | # Broken: fails on valid input. |
5289 | continue |
5290 | fi |
5291 | rm -f conftest.err conftest.$ac_ext |
5292 | |
5293 | # OK, works on sane cases. Now check whether non-existent headers |
5294 | # can be detected and how. |
5295 | cat >conftest.$ac_ext <<_ACEOF |
5296 | /* confdefs.h. */ |
5297 | _ACEOF |
5298 | cat confdefs.h >>conftest.$ac_ext |
5299 | cat >>conftest.$ac_ext <<_ACEOF |
5300 | /* end confdefs.h. */ |
5301 | #include <ac_nonexistent.h> |
5302 | _ACEOF |
5303 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5304 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5305 | ac_status=$? |
5306 | grep -v '^ *+' conftest.er1 >conftest.err |
5307 | rm -f conftest.er1 |
5308 | cat conftest.err >&5 |
5309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5310 | (exit $ac_status); } >/dev/null; then |
5311 | if test -s conftest.err; then |
5312 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5313 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5314 | else |
5315 | ac_cpp_err= |
5316 | fi |
5317 | else |
5318 | ac_cpp_err=yes |
5319 | fi |
5320 | if test -z "$ac_cpp_err"; then |
5321 | # Broken: success on invalid input. |
5322 | continue |
5323 | else |
5324 | echo "$as_me: failed program was:" >&5 |
5325 | sed 's/^/| /' conftest.$ac_ext >&5 |
5326 | |
5327 | # Passes both tests. |
5328 | ac_preproc_ok=: |
5329 | break |
5330 | fi |
5331 | rm -f conftest.err conftest.$ac_ext |
5332 | |
5333 | done |
5334 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5335 | rm -f conftest.err conftest.$ac_ext |
5336 | if $ac_preproc_ok; then |
5337 | : |
5338 | else |
5339 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5340 | See \`config.log' for more details." >&5 |
5341 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5342 | See \`config.log' for more details." >&2;} |
5343 | { (exit 1); exit 1; }; } |
5344 | fi |
5345 | |
5346 | ac_ext=cc |
5347 | ac_cpp='$CXXCPP $CPPFLAGS' |
5348 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5349 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5350 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5351 | |
5352 | fi |
5353 | |
5354 | |
5355 | ac_ext=f |
5356 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
5357 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5358 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
5359 | if test -n "$ac_tool_prefix"; then |
5360 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
5361 | do |
5362 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5363 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
5364 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5365 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5366 | if test "${ac_cv_prog_F77+set}" = set; then |
5367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5368 | else |
5369 | if test -n "$F77"; then |
5370 | ac_cv_prog_F77="$F77" # Let the user override the test. |
5371 | else |
5372 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5373 | for as_dir in $PATH |
5374 | do |
5375 | IFS=$as_save_IFS |
5376 | test -z "$as_dir" && as_dir=. |
5377 | for ac_exec_ext in '' $ac_executable_extensions; do |
5378 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5379 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
5380 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5381 | break 2 |
5382 | fi |
5383 | done |
5384 | done |
5385 | |
5386 | fi |
5387 | fi |
5388 | F77=$ac_cv_prog_F77 |
5389 | if test -n "$F77"; then |
5390 | echo "$as_me:$LINENO: result: $F77" >&5 |
5391 | echo "${ECHO_T}$F77" >&6 |
5392 | else |
5393 | echo "$as_me:$LINENO: result: no" >&5 |
5394 | echo "${ECHO_T}no" >&6 |
5395 | fi |
5396 | |
5397 | test -n "$F77" && break |
5398 | done |
5399 | fi |
5400 | if test -z "$F77"; then |
5401 | ac_ct_F77=$F77 |
5402 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
5403 | do |
5404 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5405 | set dummy $ac_prog; ac_word=$2 |
5406 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5407 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5408 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
5409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5410 | else |
5411 | if test -n "$ac_ct_F77"; then |
5412 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
5413 | else |
5414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5415 | for as_dir in $PATH |
5416 | do |
5417 | IFS=$as_save_IFS |
5418 | test -z "$as_dir" && as_dir=. |
5419 | for ac_exec_ext in '' $ac_executable_extensions; do |
5420 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5421 | ac_cv_prog_ac_ct_F77="$ac_prog" |
5422 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5423 | break 2 |
5424 | fi |
5425 | done |
5426 | done |
5427 | |
5428 | fi |
5429 | fi |
5430 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
5431 | if test -n "$ac_ct_F77"; then |
5432 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
5433 | echo "${ECHO_T}$ac_ct_F77" >&6 |
5434 | else |
5435 | echo "$as_me:$LINENO: result: no" >&5 |
5436 | echo "${ECHO_T}no" >&6 |
5437 | fi |
5438 | |
5439 | test -n "$ac_ct_F77" && break |
5440 | done |
5441 | |
5442 | F77=$ac_ct_F77 |
5443 | fi |
5444 | |
5445 | |
5446 | # Provide some information about the compiler. |
5447 | echo "$as_me:5447:" \ |
5448 | "checking for Fortran 77 compiler version" >&5 |
5449 | ac_compiler=`set X $ac_compile; echo $2` |
5450 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
5451 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
5452 | ac_status=$? |
5453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5454 | (exit $ac_status); } |
5455 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
5456 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
5457 | ac_status=$? |
5458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5459 | (exit $ac_status); } |
5460 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
5461 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
5462 | ac_status=$? |
5463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5464 | (exit $ac_status); } |
5465 | rm -f a.out |
5466 | |
5467 | # If we don't use `.F' as extension, the preprocessor is not run on the |
5468 | # input file. (Note that this only needs to work for GNU compilers.) |
5469 | ac_save_ext=$ac_ext |
5470 | ac_ext=F |
5471 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
5472 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
5473 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
5474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5475 | else |
5476 | cat >conftest.$ac_ext <<_ACEOF |
5477 | program main |
5478 | #ifndef __GNUC__ |
5479 | choke me |
5480 | #endif |
5481 | |
5482 | end |
5483 | _ACEOF |
5484 | rm -f conftest.$ac_objext |
5485 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5486 | (eval $ac_compile) 2>conftest.er1 |
5487 | ac_status=$? |
5488 | grep -v '^ *+' conftest.er1 >conftest.err |
5489 | rm -f conftest.er1 |
5490 | cat conftest.err >&5 |
5491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5492 | (exit $ac_status); } && |
5493 | { ac_try='test -z "$ac_f77_werror_flag" |
5494 | || test ! -s conftest.err' |
5495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5496 | (eval $ac_try) 2>&5 |
5497 | ac_status=$? |
5498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5499 | (exit $ac_status); }; } && |
5500 | { ac_try='test -s conftest.$ac_objext' |
5501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5502 | (eval $ac_try) 2>&5 |
5503 | ac_status=$? |
5504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5505 | (exit $ac_status); }; }; then |
5506 | ac_compiler_gnu=yes |
5507 | else |
5508 | echo "$as_me: failed program was:" >&5 |
5509 | sed 's/^/| /' conftest.$ac_ext >&5 |
5510 | |
5511 | ac_compiler_gnu=no |
5512 | fi |
5513 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5514 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
5515 | |
5516 | fi |
5517 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
5518 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
5519 | ac_ext=$ac_save_ext |
5520 | ac_test_FFLAGS=${FFLAGS+set} |
5521 | ac_save_FFLAGS=$FFLAGS |
5522 | FFLAGS= |
5523 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
5524 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
5525 | if test "${ac_cv_prog_f77_g+set}" = set; then |
5526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5527 | else |
5528 | FFLAGS=-g |
5529 | cat >conftest.$ac_ext <<_ACEOF |
5530 | program main |
5531 | |
5532 | end |
5533 | _ACEOF |
5534 | rm -f conftest.$ac_objext |
5535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5536 | (eval $ac_compile) 2>conftest.er1 |
5537 | ac_status=$? |
5538 | grep -v '^ *+' conftest.er1 >conftest.err |
5539 | rm -f conftest.er1 |
5540 | cat conftest.err >&5 |
5541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5542 | (exit $ac_status); } && |
5543 | { ac_try='test -z "$ac_f77_werror_flag" |
5544 | || test ! -s conftest.err' |
5545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5546 | (eval $ac_try) 2>&5 |
5547 | ac_status=$? |
5548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5549 | (exit $ac_status); }; } && |
5550 | { ac_try='test -s conftest.$ac_objext' |
5551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5552 | (eval $ac_try) 2>&5 |
5553 | ac_status=$? |
5554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5555 | (exit $ac_status); }; }; then |
5556 | ac_cv_prog_f77_g=yes |
5557 | else |
5558 | echo "$as_me: failed program was:" >&5 |
5559 | sed 's/^/| /' conftest.$ac_ext >&5 |
5560 | |
5561 | ac_cv_prog_f77_g=no |
5562 | fi |
5563 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5564 | |
5565 | fi |
5566 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
5567 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
5568 | if test "$ac_test_FFLAGS" = set; then |
5569 | FFLAGS=$ac_save_FFLAGS |
5570 | elif test $ac_cv_prog_f77_g = yes; then |
5571 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
5572 | FFLAGS="-g -O2" |
5573 | else |
5574 | FFLAGS="-g" |
5575 | fi |
5576 | else |
5577 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
5578 | FFLAGS="-O2" |
5579 | else |
5580 | FFLAGS= |
5581 | fi |
5582 | fi |
5583 | |
5584 | G77=`test $ac_compiler_gnu = yes && echo yes` |
5585 | ac_ext=c |
5586 | ac_cpp='$CPP $CPPFLAGS' |
5587 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5588 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5589 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5590 | |
5591 | |
5592 | |
5593 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
5594 | |
5595 | # find the maximum length of command line arguments |
5596 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
5597 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
5598 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
5599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5600 | else |
5601 | i=0 |
5602 | teststring="ABCD" |
5603 | |
5604 | case $build_os in |
5605 | msdosdjgpp*) |
5606 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
5607 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
5608 | # during glob expansion). Even if it were fixed, the result of this |
5609 | # check would be larger than it should be. |
5610 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
5611 | ;; |
5612 | |
5613 | gnu*) |
5614 | # Under GNU Hurd, this test is not required because there is |
5615 | # no limit to the length of command line arguments. |
5616 | # Libtool will interpret -1 as no limit whatsoever |
5617 | lt_cv_sys_max_cmd_len=-1; |
5618 | ;; |
5619 | |
5620 | cygwin* | mingw*) |
5621 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5622 | # about 5 minutes as the teststring grows exponentially. |
5623 | # Worse, since 9x/ME are not pre-emptively multitasking, |
5624 | # you end up with a "frozen" computer, even though with patience |
5625 | # the test eventually succeeds (with a max line length of 256k). |
5626 | # Instead, let's just punt: use the minimum linelength reported by |
5627 | # all of the supported platforms: 8192 (on NT/2K/XP). |
5628 | lt_cv_sys_max_cmd_len=8192; |
5629 | ;; |
5630 | |
5631 | amigaos*) |
5632 | # On AmigaOS with pdksh, this test takes hours, literally. |
5633 | # So we just punt and use a minimum line length of 8192. |
5634 | lt_cv_sys_max_cmd_len=8192; |
5635 | ;; |
5636 | |
5637 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
5638 | # This has been around since 386BSD, at least. Likely further. |
5639 | if test -x /sbin/sysctl; then |
5640 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
5641 | elif test -x /usr/sbin/sysctl; then |
5642 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
5643 | else |
5644 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
5645 | fi |
5646 | # And add a safety zone |
5647 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5648 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
5649 | ;; |
5650 | |
5651 | interix*) |
5652 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
5653 | lt_cv_sys_max_cmd_len=196608 |
5654 | ;; |
5655 | |
5656 | osf*) |
5657 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
5658 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
5659 | # nice to cause kernel panics so lets avoid the loop below. |
5660 | # First set a reasonable default. |
5661 | lt_cv_sys_max_cmd_len=16384 |
5662 | # |
5663 | if test -x /sbin/sysconfig; then |
5664 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
5665 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
5666 | esac |
5667 | fi |
5668 | ;; |
5669 | sco3.2v5*) |
5670 | lt_cv_sys_max_cmd_len=102400 |
5671 | ;; |
5672 | sysv5* | sco5v6* | sysv4.2uw2*) |
5673 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
5674 | if test -n "$kargmax"; then |
5675 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
5676 | else |
5677 | lt_cv_sys_max_cmd_len=32768 |
5678 | fi |
5679 | ;; |
5680 | *) |
5681 | # If test is not a shell built-in, we'll probably end up computing a |
5682 | # maximum length that is only half of the actual maximum length, but |
5683 | # we can't tell. |
5684 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
5685 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
5686 | = "XX$teststring") >/dev/null 2>&1 && |
5687 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
5688 | lt_cv_sys_max_cmd_len=$new_result && |
5689 | test $i != 17 # 1/2 MB should be enough |
5690 | do |
5691 | i=`expr $i + 1` |
5692 | teststring=$teststring$teststring |
5693 | done |
5694 | teststring= |
5695 | # Add a significant safety factor because C++ compilers can tack on massive |
5696 | # amounts of additional arguments before passing them to the linker. |
5697 | # It appears as though 1/2 is a usable value. |
5698 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
5699 | ;; |
5700 | esac |
5701 | |
5702 | fi |
5703 | |
5704 | if test -n $lt_cv_sys_max_cmd_len ; then |
5705 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
5706 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
5707 | else |
5708 | echo "$as_me:$LINENO: result: none" >&5 |
5709 | echo "${ECHO_T}none" >&6 |
5710 | fi |
5711 | |
5712 | |
5713 | |
5714 | |
5715 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
5716 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
5717 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
5718 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
5719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5720 | else |
5721 | |
5722 | # These are sane defaults that work on at least a few old systems. |
5723 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
5724 | |
5725 | # Character class describing NM global symbol codes. |
5726 | symcode='[BCDEGRST]' |
5727 | |
5728 | # Regexp to match symbols that can be accessed directly from C. |
5729 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
5730 | |
5731 | # Transform an extracted symbol line into a proper C declaration |
5732 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
5733 | |
5734 | # Transform an extracted symbol line into symbol name and symbol address |
5735 | 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'" |
5736 | |
5737 | # Define system-specific variables. |
5738 | case $host_os in |
5739 | aix*) |
5740 | symcode='[BCDT]' |
5741 | ;; |
5742 | cygwin* | mingw* | pw32*) |
5743 | symcode='[ABCDGISTW]' |
5744 | ;; |
5745 | hpux*) # Its linker distinguishes data from code symbols |
5746 | if test "$host_cpu" = ia64; then |
5747 | symcode='[ABCDEGRST]' |
5748 | fi |
5749 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
5750 | 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'" |
5751 | ;; |
5752 | linux*) |
5753 | if test "$host_cpu" = ia64; then |
5754 | symcode='[ABCDGIRSTW]' |
5755 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
5756 | 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'" |
5757 | fi |
5758 | ;; |
5759 | irix* | nonstopux*) |
5760 | symcode='[BCDEGRST]' |
5761 | ;; |
5762 | osf*) |
5763 | symcode='[BCDEGQRST]' |
5764 | ;; |
5765 | solaris*) |
5766 | symcode='[BDRT]' |
5767 | ;; |
5768 | sco3.2v5*) |
5769 | symcode='[DT]' |
5770 | ;; |
5771 | sysv4.2uw2*) |
5772 | symcode='[DT]' |
5773 | ;; |
5774 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
5775 | symcode='[ABDT]' |
5776 | ;; |
5777 | sysv4) |
5778 | symcode='[DFNSTU]' |
5779 | ;; |
5780 | esac |
5781 | |
5782 | # Handle CRLF in mingw tool chain |
5783 | opt_cr= |
5784 | case $build_os in |
5785 | mingw*) |
5786 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
5787 | ;; |
5788 | esac |
5789 | |
5790 | # If we're using GNU nm, then use its standard symbol codes. |
5791 | case `$NM -V 2>&1` in |
5792 | *GNU* | *'with BFD'*) |
5793 | symcode='[ABCDGIRSTW]' ;; |
5794 | esac |
5795 | |
5796 | # Try without a prefix undercore, then with it. |
5797 | for ac_symprfx in "" "_"; do |
5798 | |
5799 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
5800 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
5801 | |
5802 | # Write the raw and C identifiers. |
5803 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
5804 | |
5805 | # Check to see that the pipe works correctly. |
5806 | pipe_works=no |
5807 | |
5808 | rm -f conftest* |
5809 | cat > conftest.$ac_ext <<EOF |
5810 | #ifdef __cplusplus |
5811 | extern "C" { |
5812 | #endif |
5813 | char nm_test_var; |
5814 | void nm_test_func(){} |
5815 | #ifdef __cplusplus |
5816 | } |
5817 | #endif |
5818 | int main(){nm_test_var='a';nm_test_func();return(0);} |
5819 | EOF |
5820 | |
5821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5822 | (eval $ac_compile) 2>&5 |
5823 | ac_status=$? |
5824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5825 | (exit $ac_status); }; then |
5826 | # Now try to grab the symbols. |
5827 | nlist=conftest.nm |
5828 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
5829 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
5830 | ac_status=$? |
5831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5832 | (exit $ac_status); } && test -s "$nlist"; then |
5833 | # Try sorting and uniquifying the output. |
5834 | if sort "$nlist" | uniq > "$nlist"T; then |
5835 | mv -f "$nlist"T "$nlist" |
5836 | else |
5837 | rm -f "$nlist"T |
5838 | fi |
5839 | |
5840 | # Make sure that we snagged all the symbols we need. |
5841 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
5842 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
5843 | cat <<EOF > conftest.$ac_ext |
5844 | #ifdef __cplusplus |
5845 | extern "C" { |
5846 | #endif |
5847 | |
5848 | EOF |
5849 | # Now generate the symbol file. |
5850 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
5851 | |
5852 | cat <<EOF >> conftest.$ac_ext |
5853 | #if defined (__STDC__) && __STDC__ |
5854 | # define lt_ptr_t void * |
5855 | #else |
5856 | # define lt_ptr_t char * |
5857 | # define const |
5858 | #endif |
5859 | |
5860 | /* The mapping between symbol names and symbols. */ |
5861 | const struct { |
5862 | const char *name; |
5863 | lt_ptr_t address; |
5864 | } |
5865 | lt_preloaded_symbols[] = |
5866 | { |
5867 | EOF |
5868 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
5869 | cat <<\EOF >> conftest.$ac_ext |
5870 | {0, (lt_ptr_t) 0} |
5871 | }; |
5872 | |
5873 | #ifdef __cplusplus |
5874 | } |
5875 | #endif |
5876 | EOF |
5877 | # Now try linking the two files. |
5878 | mv conftest.$ac_objext conftstm.$ac_objext |
5879 | lt_save_LIBS="$LIBS" |
5880 | lt_save_CFLAGS="$CFLAGS" |
5881 | LIBS="conftstm.$ac_objext" |
5882 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
5883 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5884 | (eval $ac_link) 2>&5 |
5885 | ac_status=$? |
5886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5887 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
5888 | pipe_works=yes |
5889 | fi |
5890 | LIBS="$lt_save_LIBS" |
5891 | CFLAGS="$lt_save_CFLAGS" |
5892 | else |
5893 | echo "cannot find nm_test_func in $nlist" >&5 |
5894 | fi |
5895 | else |
5896 | echo "cannot find nm_test_var in $nlist" >&5 |
5897 | fi |
5898 | else |
5899 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
5900 | fi |
5901 | else |
5902 | echo "$progname: failed program was:" >&5 |
5903 | cat conftest.$ac_ext >&5 |
5904 | fi |
5905 | rm -f conftest* conftst* |
5906 | |
5907 | # Do not use the global_symbol_pipe unless it works. |
5908 | if test "$pipe_works" = yes; then |
5909 | break |
5910 | else |
5911 | lt_cv_sys_global_symbol_pipe= |
5912 | fi |
5913 | done |
5914 | |
5915 | fi |
5916 | |
5917 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
5918 | lt_cv_sys_global_symbol_to_cdecl= |
5919 | fi |
5920 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
5921 | echo "$as_me:$LINENO: result: failed" >&5 |
5922 | echo "${ECHO_T}failed" >&6 |
5923 | else |
5924 | echo "$as_me:$LINENO: result: ok" >&5 |
5925 | echo "${ECHO_T}ok" >&6 |
5926 | fi |
5927 | |
5928 | echo "$as_me:$LINENO: checking for objdir" >&5 |
5929 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
5930 | if test "${lt_cv_objdir+set}" = set; then |
5931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5932 | else |
5933 | rm -f .libs 2>/dev/null |
5934 | mkdir .libs 2>/dev/null |
5935 | if test -d .libs; then |
5936 | lt_cv_objdir=.libs |
5937 | else |
5938 | # MS-DOS does not allow filenames that begin with a dot. |
5939 | lt_cv_objdir=_libs |
5940 | fi |
5941 | rmdir .libs 2>/dev/null |
5942 | fi |
5943 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
5944 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
5945 | objdir=$lt_cv_objdir |
5946 | |
5947 | |
5948 | |
5949 | |
5950 | |
5951 | case $host_os in |
5952 | aix3*) |
5953 | # AIX sometimes has problems with the GCC collect2 program. For some |
5954 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
5955 | # vanish in a puff of smoke. |
5956 | if test "X${COLLECT_NAMES+set}" != Xset; then |
5957 | COLLECT_NAMES= |
5958 | export COLLECT_NAMES |
5959 | fi |
5960 | ;; |
5961 | esac |
5962 | |
5963 | # Sed substitution that helps us do robust quoting. It backslashifies |
5964 | # metacharacters that are still active within double-quoted strings. |
5965 | Xsed='sed -e 1s/^X//' |
5966 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
5967 | |
5968 | # Same as above, but do not quote variable references. |
5969 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
5970 | |
5971 | # Sed substitution to delay expansion of an escaped shell variable in a |
5972 | # double_quote_subst'ed string. |
5973 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
5974 | |
5975 | # Sed substitution to avoid accidental globbing in evaled expressions |
5976 | no_glob_subst='s/\*/\\\*/g' |
5977 | |
5978 | # Constants: |
5979 | rm="rm -f" |
5980 | |
5981 | # Global variables: |
5982 | default_ofile=libtool |
5983 | can_build_shared=yes |
5984 | |
5985 | # All known linkers require a `.a' archive for static linking (except MSVC, |
5986 | # which needs '.lib'). |
5987 | libext=a |
5988 | ltmain="$ac_aux_dir/ltmain.sh" |
5989 | ofile="$default_ofile" |
5990 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
5991 | |
5992 | if test -n "$ac_tool_prefix"; then |
5993 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
5994 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
5995 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5996 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5997 | if test "${ac_cv_prog_AR+set}" = set; then |
5998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5999 | else |
6000 | if test -n "$AR"; then |
6001 | ac_cv_prog_AR="$AR" # Let the user override the test. |
6002 | else |
6003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6004 | for as_dir in $PATH |
6005 | do |
6006 | IFS=$as_save_IFS |
6007 | test -z "$as_dir" && as_dir=. |
6008 | for ac_exec_ext in '' $ac_executable_extensions; do |
6009 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6010 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6011 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6012 | break 2 |
6013 | fi |
6014 | done |
6015 | done |
6016 | |
6017 | fi |
6018 | fi |
6019 | AR=$ac_cv_prog_AR |
6020 | if test -n "$AR"; then |
6021 | echo "$as_me:$LINENO: result: $AR" >&5 |
6022 | echo "${ECHO_T}$AR" >&6 |
6023 | else |
6024 | echo "$as_me:$LINENO: result: no" >&5 |
6025 | echo "${ECHO_T}no" >&6 |
6026 | fi |
6027 | |
6028 | fi |
6029 | if test -z "$ac_cv_prog_AR"; then |
6030 | ac_ct_AR=$AR |
6031 | # Extract the first word of "ar", so it can be a program name with args. |
6032 | set dummy ar; ac_word=$2 |
6033 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6034 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6035 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
6036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6037 | else |
6038 | if test -n "$ac_ct_AR"; then |
6039 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
6040 | else |
6041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6042 | for as_dir in $PATH |
6043 | do |
6044 | IFS=$as_save_IFS |
6045 | test -z "$as_dir" && as_dir=. |
6046 | for ac_exec_ext in '' $ac_executable_extensions; do |
6047 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6048 | ac_cv_prog_ac_ct_AR="ar" |
6049 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6050 | break 2 |
6051 | fi |
6052 | done |
6053 | done |
6054 | |
6055 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
6056 | fi |
6057 | fi |
6058 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6059 | if test -n "$ac_ct_AR"; then |
6060 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
6061 | echo "${ECHO_T}$ac_ct_AR" >&6 |
6062 | else |
6063 | echo "$as_me:$LINENO: result: no" >&5 |
6064 | echo "${ECHO_T}no" >&6 |
6065 | fi |
6066 | |
6067 | AR=$ac_ct_AR |
6068 | else |
6069 | AR="$ac_cv_prog_AR" |
6070 | fi |
6071 | |
6072 | if test -n "$ac_tool_prefix"; then |
6073 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
6074 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
6075 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6076 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6077 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
6078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6079 | else |
6080 | if test -n "$RANLIB"; then |
6081 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
6082 | else |
6083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6084 | for as_dir in $PATH |
6085 | do |
6086 | IFS=$as_save_IFS |
6087 | test -z "$as_dir" && as_dir=. |
6088 | for ac_exec_ext in '' $ac_executable_extensions; do |
6089 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6090 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6091 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6092 | break 2 |
6093 | fi |
6094 | done |
6095 | done |
6096 | |
6097 | fi |
6098 | fi |
6099 | RANLIB=$ac_cv_prog_RANLIB |
6100 | if test -n "$RANLIB"; then |
6101 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6102 | echo "${ECHO_T}$RANLIB" >&6 |
6103 | else |
6104 | echo "$as_me:$LINENO: result: no" >&5 |
6105 | echo "${ECHO_T}no" >&6 |
6106 | fi |
6107 | |
6108 | fi |
6109 | if test -z "$ac_cv_prog_RANLIB"; then |
6110 | ac_ct_RANLIB=$RANLIB |
6111 | # Extract the first word of "ranlib", so it can be a program name with args. |
6112 | set dummy ranlib; ac_word=$2 |
6113 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6114 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6115 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
6116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6117 | else |
6118 | if test -n "$ac_ct_RANLIB"; then |
6119 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
6120 | else |
6121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6122 | for as_dir in $PATH |
6123 | do |
6124 | IFS=$as_save_IFS |
6125 | test -z "$as_dir" && as_dir=. |
6126 | for ac_exec_ext in '' $ac_executable_extensions; do |
6127 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6128 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6129 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6130 | break 2 |
6131 | fi |
6132 | done |
6133 | done |
6134 | |
6135 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
6136 | fi |
6137 | fi |
6138 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6139 | if test -n "$ac_ct_RANLIB"; then |
6140 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
6141 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
6142 | else |
6143 | echo "$as_me:$LINENO: result: no" >&5 |
6144 | echo "${ECHO_T}no" >&6 |
6145 | fi |
6146 | |
6147 | RANLIB=$ac_ct_RANLIB |
6148 | else |
6149 | RANLIB="$ac_cv_prog_RANLIB" |
6150 | fi |
6151 | |
6152 | if test -n "$ac_tool_prefix"; then |
6153 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6154 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
6155 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6156 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6157 | if test "${ac_cv_prog_STRIP+set}" = set; then |
6158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6159 | else |
6160 | if test -n "$STRIP"; then |
6161 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
6162 | else |
6163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6164 | for as_dir in $PATH |
6165 | do |
6166 | IFS=$as_save_IFS |
6167 | test -z "$as_dir" && as_dir=. |
6168 | for ac_exec_ext in '' $ac_executable_extensions; do |
6169 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6170 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6171 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6172 | break 2 |
6173 | fi |
6174 | done |
6175 | done |
6176 | |
6177 | fi |
6178 | fi |
6179 | STRIP=$ac_cv_prog_STRIP |
6180 | if test -n "$STRIP"; then |
6181 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
6182 | echo "${ECHO_T}$STRIP" >&6 |
6183 | else |
6184 | echo "$as_me:$LINENO: result: no" >&5 |
6185 | echo "${ECHO_T}no" >&6 |
6186 | fi |
6187 | |
6188 | fi |
6189 | if test -z "$ac_cv_prog_STRIP"; then |
6190 | ac_ct_STRIP=$STRIP |
6191 | # Extract the first word of "strip", so it can be a program name with args. |
6192 | set dummy strip; ac_word=$2 |
6193 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6194 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6195 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
6196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6197 | else |
6198 | if test -n "$ac_ct_STRIP"; then |
6199 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
6200 | else |
6201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6202 | for as_dir in $PATH |
6203 | do |
6204 | IFS=$as_save_IFS |
6205 | test -z "$as_dir" && as_dir=. |
6206 | for ac_exec_ext in '' $ac_executable_extensions; do |
6207 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6208 | ac_cv_prog_ac_ct_STRIP="strip" |
6209 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6210 | break 2 |
6211 | fi |
6212 | done |
6213 | done |
6214 | |
6215 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
6216 | fi |
6217 | fi |
6218 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6219 | if test -n "$ac_ct_STRIP"; then |
6220 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
6221 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
6222 | else |
6223 | echo "$as_me:$LINENO: result: no" >&5 |
6224 | echo "${ECHO_T}no" >&6 |
6225 | fi |
6226 | |
6227 | STRIP=$ac_ct_STRIP |
6228 | else |
6229 | STRIP="$ac_cv_prog_STRIP" |
6230 | fi |
6231 | |
6232 | |
6233 | old_CC="$CC" |
6234 | old_CFLAGS="$CFLAGS" |
6235 | |
6236 | # Set sane defaults for various variables |
6237 | test -z "$AR" && AR=ar |
6238 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
6239 | test -z "$AS" && AS=as |
6240 | test -z "$CC" && CC=cc |
6241 | test -z "$LTCC" && LTCC=$CC |
6242 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
6243 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
6244 | test -z "$LD" && LD=ld |
6245 | test -z "$LN_S" && LN_S="ln -s" |
6246 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
6247 | test -z "$NM" && NM=nm |
6248 | test -z "$SED" && SED=sed |
6249 | test -z "$OBJDUMP" && OBJDUMP=objdump |
6250 | test -z "$RANLIB" && RANLIB=: |
6251 | test -z "$STRIP" && STRIP=: |
6252 | test -z "$ac_objext" && ac_objext=o |
6253 | |
6254 | # Determine commands to create old-style static archives. |
6255 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
6256 | old_postinstall_cmds='chmod 644 $oldlib' |
6257 | old_postuninstall_cmds= |
6258 | |
6259 | if test -n "$RANLIB"; then |
6260 | case $host_os in |
6261 | openbsd*) |
6262 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
6263 | ;; |
6264 | *) |
6265 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
6266 | ;; |
6267 | esac |
6268 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
6269 | fi |
6270 | |
6271 | for cc_temp in $compiler""; do |
6272 | case $cc_temp in |
6273 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
6274 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
6275 | \-*) ;; |
6276 | *) break;; |
6277 | esac |
6278 | done |
6279 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
6280 | |
6281 | |
6282 | # Only perform the check for file, if the check method requires it |
6283 | case $deplibs_check_method in |
6284 | file_magic*) |
6285 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
6286 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
6287 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
6288 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
6289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6290 | else |
6291 | case $MAGIC_CMD in |
6292 | [\\/*] | ?:[\\/]*) |
6293 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6294 | ;; |
6295 | *) |
6296 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
6297 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6298 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
6299 | for ac_dir in $ac_dummy; do |
6300 | IFS="$lt_save_ifs" |
6301 | test -z "$ac_dir" && ac_dir=. |
6302 | if test -f $ac_dir/${ac_tool_prefix}file; then |
6303 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
6304 | if test -n "$file_magic_test_file"; then |
6305 | case $deplibs_check_method in |
6306 | "file_magic "*) |
6307 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
6308 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6309 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6310 | $EGREP "$file_magic_regex" > /dev/null; then |
6311 | : |
6312 | else |
6313 | cat <<EOF 1>&2 |
6314 | |
6315 | *** Warning: the command libtool uses to detect shared libraries, |
6316 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
6317 | *** The result is that libtool may fail to recognize shared libraries |
6318 | *** as such. This will affect the creation of libtool libraries that |
6319 | *** depend on shared libraries, but programs linked with such libtool |
6320 | *** libraries will work regardless of this problem. Nevertheless, you |
6321 | *** may want to report the problem to your system manager and/or to |
6322 | *** bug-libtool@gnu.org |
6323 | |
6324 | EOF |
6325 | fi ;; |
6326 | esac |
6327 | fi |
6328 | break |
6329 | fi |
6330 | done |
6331 | IFS="$lt_save_ifs" |
6332 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
6333 | ;; |
6334 | esac |
6335 | fi |
6336 | |
6337 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6338 | if test -n "$MAGIC_CMD"; then |
6339 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
6340 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
6341 | else |
6342 | echo "$as_me:$LINENO: result: no" >&5 |
6343 | echo "${ECHO_T}no" >&6 |
6344 | fi |
6345 | |
6346 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
6347 | if test -n "$ac_tool_prefix"; then |
6348 | echo "$as_me:$LINENO: checking for file" >&5 |
6349 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
6350 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
6351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6352 | else |
6353 | case $MAGIC_CMD in |
6354 | [\\/*] | ?:[\\/]*) |
6355 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6356 | ;; |
6357 | *) |
6358 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
6359 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6360 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
6361 | for ac_dir in $ac_dummy; do |
6362 | IFS="$lt_save_ifs" |
6363 | test -z "$ac_dir" && ac_dir=. |
6364 | if test -f $ac_dir/file; then |
6365 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
6366 | if test -n "$file_magic_test_file"; then |
6367 | case $deplibs_check_method in |
6368 | "file_magic "*) |
6369 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
6370 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6371 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6372 | $EGREP "$file_magic_regex" > /dev/null; then |
6373 | : |
6374 | else |
6375 | cat <<EOF 1>&2 |
6376 | |
6377 | *** Warning: the command libtool uses to detect shared libraries, |
6378 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
6379 | *** The result is that libtool may fail to recognize shared libraries |
6380 | *** as such. This will affect the creation of libtool libraries that |
6381 | *** depend on shared libraries, but programs linked with such libtool |
6382 | *** libraries will work regardless of this problem. Nevertheless, you |
6383 | *** may want to report the problem to your system manager and/or to |
6384 | *** bug-libtool@gnu.org |
6385 | |
6386 | EOF |
6387 | fi ;; |
6388 | esac |
6389 | fi |
6390 | break |
6391 | fi |
6392 | done |
6393 | IFS="$lt_save_ifs" |
6394 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
6395 | ;; |
6396 | esac |
6397 | fi |
6398 | |
6399 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6400 | if test -n "$MAGIC_CMD"; then |
6401 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
6402 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
6403 | else |
6404 | echo "$as_me:$LINENO: result: no" >&5 |
6405 | echo "${ECHO_T}no" >&6 |
6406 | fi |
6407 | |
6408 | else |
6409 | MAGIC_CMD=: |
6410 | fi |
6411 | fi |
6412 | |
6413 | fi |
6414 | ;; |
6415 | esac |
6416 | |
6417 | enable_dlopen=yes |
6418 | enable_win32_dll=no |
6419 | |
6420 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
6421 | if test "${enable_libtool_lock+set}" = set; then |
6422 | enableval="$enable_libtool_lock" |
6423 | |
6424 | fi; |
6425 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6426 | |
6427 | |
6428 | # Check whether --with-pic or --without-pic was given. |
6429 | if test "${with_pic+set}" = set; then |
6430 | withval="$with_pic" |
6431 | pic_mode="$withval" |
6432 | else |
6433 | pic_mode=default |
6434 | fi; |
6435 | test -z "$pic_mode" && pic_mode=default |
6436 | |
6437 | # Use C for the default configuration in the libtool script |
6438 | tagname= |
6439 | lt_save_CC="$CC" |
6440 | ac_ext=c |
6441 | ac_cpp='$CPP $CPPFLAGS' |
6442 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6443 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6444 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6445 | |
6446 | |
6447 | # Source file extension for C test sources. |
6448 | ac_ext=c |
6449 | |
6450 | # Object file extension for compiled C test sources. |
6451 | objext=o |
6452 | objext=$objext |
6453 | |
6454 | # Code to be used in simple compile tests |
6455 | lt_simple_compile_test_code="int some_variable = 0;\n" |
6456 | |
6457 | # Code to be used in simple link tests |
6458 | lt_simple_link_test_code='int main(){return(0);}\n' |
6459 | |
6460 | |
6461 | # If no C compiler was specified, use CC. |
6462 | LTCC=${LTCC-"$CC"} |
6463 | |
6464 | # If no C compiler flags were specified, use CFLAGS. |
6465 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
6466 | |
6467 | # Allow CC to be a program name with arguments. |
6468 | compiler=$CC |
6469 | |
6470 | |
6471 | # save warnings/boilerplate of simple test code |
6472 | ac_outfile=conftest.$ac_objext |
6473 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
6474 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
6475 | _lt_compiler_boilerplate=`cat conftest.err` |
6476 | $rm conftest* |
6477 | |
6478 | ac_outfile=conftest.$ac_objext |
6479 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
6480 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
6481 | _lt_linker_boilerplate=`cat conftest.err` |
6482 | $rm conftest* |
6483 | |
6484 | |
6485 | |
6486 | lt_prog_compiler_no_builtin_flag= |
6487 | |
6488 | if test "$GCC" = yes; then |
6489 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
6490 | |
6491 | |
6492 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
6493 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
6494 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
6495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6496 | else |
6497 | lt_cv_prog_compiler_rtti_exceptions=no |
6498 | ac_outfile=conftest.$ac_objext |
6499 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6500 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
6501 | # Insert the option either (1) after the last *FLAGS variable, or |
6502 | # (2) before a word containing "conftest.", or (3) at the end. |
6503 | # Note that $ac_compile itself does not contain backslashes and begins |
6504 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
6505 | # The option is referenced via a variable to avoid confusing sed. |
6506 | lt_compile=`echo "$ac_compile" | $SED \ |
6507 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
6508 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6509 | -e 's:$: $lt_compiler_flag:'` |
6510 | (eval echo "\"\$as_me:6510: $lt_compile\"" >&5) |
6511 | (eval "$lt_compile" 2>conftest.err) |
6512 | ac_status=$? |
6513 | cat conftest.err >&5 |
6514 | echo "$as_me:6514: \$? = $ac_status" >&5 |
6515 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6516 | # The compiler can only warn and ignore the option if not recognized |
6517 | # So say no if there are warnings other than the usual output. |
6518 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
6519 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
6520 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
6521 | lt_cv_prog_compiler_rtti_exceptions=yes |
6522 | fi |
6523 | fi |
6524 | $rm conftest* |
6525 | |
6526 | fi |
6527 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
6528 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
6529 | |
6530 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
6531 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
6532 | else |
6533 | : |
6534 | fi |
6535 | |
6536 | fi |
6537 | |
6538 | lt_prog_compiler_wl= |
6539 | lt_prog_compiler_pic= |
6540 | lt_prog_compiler_static= |
6541 | |
6542 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
6543 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
6544 | |
6545 | if test "$GCC" = yes; then |
6546 | lt_prog_compiler_wl='-Wl,' |
6547 | lt_prog_compiler_static='-static' |
6548 | |
6549 | case $host_os in |
6550 | aix*) |
6551 | # All AIX code is PIC. |
6552 | if test "$host_cpu" = ia64; then |
6553 | # AIX 5 now supports IA64 processor |
6554 | lt_prog_compiler_static='-Bstatic' |
6555 | fi |
6556 | ;; |
6557 | |
6558 | amigaos*) |
6559 | # FIXME: we need at least 68020 code to build shared libraries, but |
6560 | # adding the `-m68020' flag to GCC prevents building anything better, |
6561 | # like `-m68040'. |
6562 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
6563 | ;; |
6564 | |
6565 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
6566 | # PIC is the default for these OSes. |
6567 | ;; |
6568 | |
6569 | mingw* | pw32* | os2*) |
6570 | # This hack is so that the source file can tell whether it is being |
6571 | # built for inclusion in a dll (and should export symbols for example). |
6572 | lt_prog_compiler_pic='-DDLL_EXPORT' |
6573 | ;; |
6574 | |
6575 | darwin* | rhapsody*) |
6576 | # PIC is the default on this platform |
6577 | # Common symbols not allowed in MH_DYLIB files |
6578 | lt_prog_compiler_pic='-fno-common' |
6579 | ;; |
6580 | |
6581 | interix3*) |
6582 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
6583 | # Instead, we relocate shared libraries at runtime. |
6584 | ;; |
6585 | |
6586 | msdosdjgpp*) |
6587 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
6588 | # on systems that don't support them. |
6589 | lt_prog_compiler_can_build_shared=no |
6590 | enable_shared=no |
6591 | ;; |
6592 | |
6593 | sysv4*MP*) |
6594 | if test -d /usr/nec; then |
6595 | lt_prog_compiler_pic=-Kconform_pic |
6596 | fi |
6597 | ;; |
6598 | |
6599 | hpux*) |
6600 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
6601 | # not for PA HP-UX. |
6602 | case $host_cpu in |
6603 | hppa*64*|ia64*) |
6604 | # +Z the default |
6605 | ;; |
6606 | *) |
6607 | lt_prog_compiler_pic='-fPIC' |
6608 | ;; |
6609 | esac |
6610 | ;; |
6611 | |
6612 | *) |
6613 | lt_prog_compiler_pic='-fPIC' |
6614 | ;; |
6615 | esac |
6616 | else |
6617 | # PORTME Check for flag to pass linker flags through the system compiler. |
6618 | case $host_os in |
6619 | aix*) |
6620 | lt_prog_compiler_wl='-Wl,' |
6621 | if test "$host_cpu" = ia64; then |
6622 | # AIX 5 now supports IA64 processor |
6623 | lt_prog_compiler_static='-Bstatic' |
6624 | else |
6625 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
6626 | fi |
6627 | ;; |
6628 | darwin*) |
6629 | # PIC is the default on this platform |
6630 | # Common symbols not allowed in MH_DYLIB files |
6631 | case $cc_basename in |
6632 | xlc*) |
6633 | lt_prog_compiler_pic='-qnocommon' |
6634 | lt_prog_compiler_wl='-Wl,' |
6635 | ;; |
6636 | esac |
6637 | ;; |
6638 | |
6639 | mingw* | pw32* | os2*) |
6640 | # This hack is so that the source file can tell whether it is being |
6641 | # built for inclusion in a dll (and should export symbols for example). |
6642 | lt_prog_compiler_pic='-DDLL_EXPORT' |
6643 | ;; |
6644 | |
6645 | hpux9* | hpux10* | hpux11*) |
6646 | lt_prog_compiler_wl='-Wl,' |
6647 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
6648 | # not for PA HP-UX. |
6649 | case $host_cpu in |
6650 | hppa*64*|ia64*) |
6651 | # +Z the default |
6652 | ;; |
6653 | *) |
6654 | lt_prog_compiler_pic='+Z' |
6655 | ;; |
6656 | esac |
6657 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
6658 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
6659 | ;; |
6660 | |
6661 | irix5* | irix6* | nonstopux*) |
6662 | lt_prog_compiler_wl='-Wl,' |
6663 | # PIC (with -KPIC) is the default. |
6664 | lt_prog_compiler_static='-non_shared' |
6665 | ;; |
6666 | |
6667 | newsos6) |
6668 | lt_prog_compiler_pic='-KPIC' |
6669 | lt_prog_compiler_static='-Bstatic' |
6670 | ;; |
6671 | |
6672 | linux*) |
6673 | case $cc_basename in |
6674 | icc* | ecc*) |
6675 | lt_prog_compiler_wl='-Wl,' |
6676 | lt_prog_compiler_pic='-KPIC' |
6677 | lt_prog_compiler_static='-static' |
6678 | ;; |
6679 | pgcc* | pgf77* | pgf90* | pgf95*) |
6680 | # Portland Group compilers (*not* the Pentium gcc compiler, |
6681 | # which looks to be a dead project) |
6682 | lt_prog_compiler_wl='-Wl,' |
6683 | lt_prog_compiler_pic='-fpic' |
6684 | lt_prog_compiler_static='-Bstatic' |
6685 | ;; |
6686 | ccc*) |
6687 | lt_prog_compiler_wl='-Wl,' |
6688 | # All Alpha code is PIC. |
6689 | lt_prog_compiler_static='-non_shared' |
6690 | ;; |
6691 | esac |
6692 | ;; |
6693 | |
6694 | osf3* | osf4* | osf5*) |
6695 | lt_prog_compiler_wl='-Wl,' |
6696 | # All OSF/1 code is PIC. |
6697 | lt_prog_compiler_static='-non_shared' |
6698 | ;; |
6699 | |
6700 | solaris*) |
6701 | lt_prog_compiler_pic='-KPIC' |
6702 | lt_prog_compiler_static='-Bstatic' |
6703 | case $cc_basename in |
6704 | f77* | f90* | f95*) |
6705 | lt_prog_compiler_wl='-Qoption ld ';; |
6706 | *) |
6707 | lt_prog_compiler_wl='-Wl,';; |
6708 | esac |
6709 | ;; |
6710 | |
6711 | sunos4*) |
6712 | lt_prog_compiler_wl='-Qoption ld ' |
6713 | lt_prog_compiler_pic='-PIC' |
6714 | lt_prog_compiler_static='-Bstatic' |
6715 | ;; |
6716 | |
6717 | sysv4 | sysv4.2uw2* | sysv4.3*) |
6718 | lt_prog_compiler_wl='-Wl,' |
6719 | lt_prog_compiler_pic='-KPIC' |
6720 | lt_prog_compiler_static='-Bstatic' |
6721 | ;; |
6722 | |
6723 | sysv4*MP*) |
6724 | if test -d /usr/nec ;then |
6725 | lt_prog_compiler_pic='-Kconform_pic' |
6726 | lt_prog_compiler_static='-Bstatic' |
6727 | fi |
6728 | ;; |
6729 | |
6730 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
6731 | lt_prog_compiler_wl='-Wl,' |
6732 | lt_prog_compiler_pic='-KPIC' |
6733 | lt_prog_compiler_static='-Bstatic' |
6734 | ;; |
6735 | |
6736 | unicos*) |
6737 | lt_prog_compiler_wl='-Wl,' |
6738 | lt_prog_compiler_can_build_shared=no |
6739 | ;; |
6740 | |
6741 | uts4*) |
6742 | lt_prog_compiler_pic='-pic' |
6743 | lt_prog_compiler_static='-Bstatic' |
6744 | ;; |
6745 | |
6746 | *) |
6747 | lt_prog_compiler_can_build_shared=no |
6748 | ;; |
6749 | esac |
6750 | fi |
6751 | |
6752 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
6753 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
6754 | |
6755 | # |
6756 | # Check to make sure the PIC flag actually works. |
6757 | # |
6758 | if test -n "$lt_prog_compiler_pic"; then |
6759 | |
6760 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
6761 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
6762 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
6763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6764 | else |
6765 | lt_prog_compiler_pic_works=no |
6766 | ac_outfile=conftest.$ac_objext |
6767 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6768 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
6769 | # Insert the option either (1) after the last *FLAGS variable, or |
6770 | # (2) before a word containing "conftest.", or (3) at the end. |
6771 | # Note that $ac_compile itself does not contain backslashes and begins |
6772 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
6773 | # The option is referenced via a variable to avoid confusing sed. |
6774 | lt_compile=`echo "$ac_compile" | $SED \ |
6775 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
6776 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6777 | -e 's:$: $lt_compiler_flag:'` |
6778 | (eval echo "\"\$as_me:6778: $lt_compile\"" >&5) |
6779 | (eval "$lt_compile" 2>conftest.err) |
6780 | ac_status=$? |
6781 | cat conftest.err >&5 |
6782 | echo "$as_me:6782: \$? = $ac_status" >&5 |
6783 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6784 | # The compiler can only warn and ignore the option if not recognized |
6785 | # So say no if there are warnings other than the usual output. |
6786 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
6787 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
6788 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
6789 | lt_prog_compiler_pic_works=yes |
6790 | fi |
6791 | fi |
6792 | $rm conftest* |
6793 | |
6794 | fi |
6795 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
6796 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
6797 | |
6798 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
6799 | case $lt_prog_compiler_pic in |
6800 | "" | " "*) ;; |
6801 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
6802 | esac |
6803 | else |
6804 | lt_prog_compiler_pic= |
6805 | lt_prog_compiler_can_build_shared=no |
6806 | fi |
6807 | |
6808 | fi |
6809 | case $host_os in |
6810 | # For platforms which do not support PIC, -DPIC is meaningless: |
6811 | *djgpp*) |
6812 | lt_prog_compiler_pic= |
6813 | ;; |
6814 | *) |
6815 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
6816 | ;; |
6817 | esac |
6818 | |
6819 | # |
6820 | # Check to make sure the static flag actually works. |
6821 | # |
6822 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
6823 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
6824 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
6825 | if test "${lt_prog_compiler_static_works+set}" = set; then |
6826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6827 | else |
6828 | lt_prog_compiler_static_works=no |
6829 | save_LDFLAGS="$LDFLAGS" |
6830 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
6831 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
6832 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
6833 | # The linker can only warn and ignore the option if not recognized |
6834 | # So say no if there are warnings |
6835 | if test -s conftest.err; then |
6836 | # Append any errors to the config.log. |
6837 | cat conftest.err 1>&5 |
6838 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
6839 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
6840 | if diff conftest.exp conftest.er2 >/dev/null; then |
6841 | lt_prog_compiler_static_works=yes |
6842 | fi |
6843 | else |
6844 | lt_prog_compiler_static_works=yes |
6845 | fi |
6846 | fi |
6847 | $rm conftest* |
6848 | LDFLAGS="$save_LDFLAGS" |
6849 | |
6850 | fi |
6851 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
6852 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
6853 | |
6854 | if test x"$lt_prog_compiler_static_works" = xyes; then |
6855 | : |
6856 | else |
6857 | lt_prog_compiler_static= |
6858 | fi |
6859 | |
6860 | |
6861 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
6862 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
6863 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
6864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6865 | else |
6866 | lt_cv_prog_compiler_c_o=no |
6867 | $rm -r conftest 2>/dev/null |
6868 | mkdir conftest |
6869 | cd conftest |
6870 | mkdir out |
6871 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6872 | |
6873 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
6874 | # Insert the option either (1) after the last *FLAGS variable, or |
6875 | # (2) before a word containing "conftest.", or (3) at the end. |
6876 | # Note that $ac_compile itself does not contain backslashes and begins |
6877 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
6878 | lt_compile=`echo "$ac_compile" | $SED \ |
6879 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
6880 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6881 | -e 's:$: $lt_compiler_flag:'` |
6882 | (eval echo "\"\$as_me:6882: $lt_compile\"" >&5) |
6883 | (eval "$lt_compile" 2>out/conftest.err) |
6884 | ac_status=$? |
6885 | cat out/conftest.err >&5 |
6886 | echo "$as_me:6886: \$? = $ac_status" >&5 |
6887 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
6888 | then |
6889 | # The compiler can only warn and ignore the option if not recognized |
6890 | # So say no if there are warnings |
6891 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
6892 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
6893 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
6894 | lt_cv_prog_compiler_c_o=yes |
6895 | fi |
6896 | fi |
6897 | chmod u+w . 2>&5 |
6898 | $rm conftest* |
6899 | # SGI C++ compiler will create directory out/ii_files/ for |
6900 | # template instantiation |
6901 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
6902 | $rm out/* && rmdir out |
6903 | cd .. |
6904 | rmdir conftest |
6905 | $rm conftest* |
6906 | |
6907 | fi |
6908 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
6909 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
6910 | |
6911 | |
6912 | hard_links="nottested" |
6913 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
6914 | # do not overwrite the value of need_locks provided by the user |
6915 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
6916 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
6917 | hard_links=yes |
6918 | $rm conftest* |
6919 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
6920 | touch conftest.a |
6921 | ln conftest.a conftest.b 2>&5 || hard_links=no |
6922 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
6923 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
6924 | echo "${ECHO_T}$hard_links" >&6 |
6925 | if test "$hard_links" = no; then |
6926 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
6927 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
6928 | need_locks=warn |
6929 | fi |
6930 | else |
6931 | need_locks=no |
6932 | fi |
6933 | |
6934 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
6935 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
6936 | |
6937 | runpath_var= |
6938 | allow_undefined_flag= |
6939 | enable_shared_with_static_runtimes=no |
6940 | archive_cmds= |
6941 | archive_expsym_cmds= |
6942 | old_archive_From_new_cmds= |
6943 | old_archive_from_expsyms_cmds= |
6944 | export_dynamic_flag_spec= |
6945 | whole_archive_flag_spec= |
6946 | thread_safe_flag_spec= |
6947 | hardcode_libdir_flag_spec= |
6948 | hardcode_libdir_flag_spec_ld= |
6949 | hardcode_libdir_separator= |
6950 | hardcode_direct=no |
6951 | hardcode_minus_L=no |
6952 | hardcode_shlibpath_var=unsupported |
6953 | link_all_deplibs=unknown |
6954 | hardcode_automatic=no |
6955 | module_cmds= |
6956 | module_expsym_cmds= |
6957 | always_export_symbols=no |
6958 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
6959 | # include_expsyms should be a list of space-separated symbols to be *always* |
6960 | # included in the symbol list |
6961 | include_expsyms= |
6962 | # exclude_expsyms can be an extended regexp of symbols to exclude |
6963 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
6964 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
6965 | # as well as any symbol that contains `d'. |
6966 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
6967 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
6968 | # platforms (ab)use it in PIC code, but their linkers get confused if |
6969 | # the symbol is explicitly referenced. Since portable code cannot |
6970 | # rely on this symbol name, it's probably fine to never include it in |
6971 | # preloaded symbol tables. |
6972 | extract_expsyms_cmds= |
6973 | # Just being paranoid about ensuring that cc_basename is set. |
6974 | for cc_temp in $compiler""; do |
6975 | case $cc_temp in |
6976 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
6977 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
6978 | \-*) ;; |
6979 | *) break;; |
6980 | esac |
6981 | done |
6982 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
6983 | |
6984 | case $host_os in |
6985 | cygwin* | mingw* | pw32*) |
6986 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
6987 | # When not using gcc, we currently assume that we are using |
6988 | # Microsoft Visual C++. |
6989 | if test "$GCC" != yes; then |
6990 | with_gnu_ld=no |
6991 | fi |
6992 | ;; |
6993 | interix*) |
6994 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
6995 | with_gnu_ld=yes |
6996 | ;; |
6997 | openbsd*) |
6998 | with_gnu_ld=no |
6999 | ;; |
7000 | esac |
7001 | |
7002 | ld_shlibs=yes |
7003 | if test "$with_gnu_ld" = yes; then |
7004 | # If archive_cmds runs LD, not CC, wlarc should be empty |
7005 | wlarc='${wl}' |
7006 | |
7007 | # Set some defaults for GNU ld with shared library support. These |
7008 | # are reset later if shared libraries are not supported. Putting them |
7009 | # here allows them to be overridden if necessary. |
7010 | runpath_var=LD_RUN_PATH |
7011 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
7012 | export_dynamic_flag_spec='${wl}--export-dynamic' |
7013 | # ancient GNU ld didn't support --whole-archive et. al. |
7014 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
7015 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
7016 | else |
7017 | whole_archive_flag_spec= |
7018 | fi |
7019 | supports_anon_versioning=no |
7020 | case `$LD -v 2>/dev/null` in |
7021 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
7022 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
7023 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
7024 | *\ 2.11.*) ;; # other 2.11 versions |
7025 | *) supports_anon_versioning=yes ;; |
7026 | esac |
7027 | |
7028 | # See if GNU ld supports shared libraries. |
7029 | case $host_os in |
7030 | aix3* | aix4* | aix5*) |
7031 | # On AIX/PPC, the GNU linker is very broken |
7032 | if test "$host_cpu" != ia64; then |
7033 | ld_shlibs=no |
7034 | cat <<EOF 1>&2 |
7035 | |
7036 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
7037 | *** to be unable to reliably create shared libraries on AIX. |
7038 | *** Therefore, libtool is disabling shared libraries support. If you |
7039 | *** really care for shared libraries, you may want to modify your PATH |
7040 | *** so that a non-GNU linker is found, and then restart. |
7041 | |
7042 | EOF |
7043 | fi |
7044 | ;; |
7045 | |
7046 | amigaos*) |
7047 | 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)' |
7048 | hardcode_libdir_flag_spec='-L$libdir' |
7049 | hardcode_minus_L=yes |
7050 | |
7051 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
7052 | # that the semantics of dynamic libraries on AmigaOS, at least up |
7053 | # to version 4, is to share data among multiple programs linked |
7054 | # with the same dynamic library. Since this doesn't match the |
7055 | # behavior of shared libraries on other platforms, we can't use |
7056 | # them. |
7057 | ld_shlibs=no |
7058 | ;; |
7059 | |
7060 | beos*) |
7061 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7062 | allow_undefined_flag=unsupported |
7063 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
7064 | # support --undefined. This deserves some investigation. FIXME |
7065 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7066 | else |
7067 | ld_shlibs=no |
7068 | fi |
7069 | ;; |
7070 | |
7071 | cygwin* | mingw* | pw32*) |
7072 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
7073 | # as there is no search path for DLLs. |
7074 | hardcode_libdir_flag_spec='-L$libdir' |
7075 | allow_undefined_flag=unsupported |
7076 | always_export_symbols=no |
7077 | enable_shared_with_static_runtimes=yes |
7078 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
7079 | |
7080 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
7081 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7082 | # If the export-symbols file already is a .def file (1st line |
7083 | # is EXPORTS), use it as is; otherwise, prepend... |
7084 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
7085 | cp $export_symbols $output_objdir/$soname.def; |
7086 | else |
7087 | echo EXPORTS > $output_objdir/$soname.def; |
7088 | cat $export_symbols >> $output_objdir/$soname.def; |
7089 | fi~ |
7090 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7091 | else |
7092 | ld_shlibs=no |
7093 | fi |
7094 | ;; |
7095 | |
7096 | interix3*) |
7097 | hardcode_direct=no |
7098 | hardcode_shlibpath_var=no |
7099 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7100 | export_dynamic_flag_spec='${wl}-E' |
7101 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
7102 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
7103 | # default) and relocated if they conflict, which is a slow very memory |
7104 | # consuming and fragmenting process. To avoid this, we pick a random, |
7105 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
7106 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
7107 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
7108 | 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' |
7109 | ;; |
7110 | |
7111 | linux*) |
7112 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7113 | tmp_addflag= |
7114 | case $cc_basename,$host_cpu in |
7115 | pgcc*) # Portland Group C compiler |
7116 | 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' |
7117 | tmp_addflag=' $pic_flag' |
7118 | ;; |
7119 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
7120 | 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' |
7121 | tmp_addflag=' $pic_flag -Mnomain' ;; |
7122 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
7123 | tmp_addflag=' -i_dynamic' ;; |
7124 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
7125 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
7126 | ifc* | ifort*) # Intel Fortran compiler |
7127 | tmp_addflag=' -nofor_main' ;; |
7128 | esac |
7129 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7130 | |
7131 | if test $supports_anon_versioning = yes; then |
7132 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
7133 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
7134 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
7135 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
7136 | fi |
7137 | else |
7138 | ld_shlibs=no |
7139 | fi |
7140 | ;; |
7141 | |
7142 | netbsd*) |
7143 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7144 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
7145 | wlarc= |
7146 | else |
7147 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7148 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7149 | fi |
7150 | ;; |
7151 | |
7152 | solaris*) |
7153 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
7154 | ld_shlibs=no |
7155 | cat <<EOF 1>&2 |
7156 | |
7157 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
7158 | *** create shared libraries on Solaris systems. Therefore, libtool |
7159 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7160 | *** binutils to release 2.9.1 or newer. Another option is to modify |
7161 | *** your PATH or compiler configuration so that the native linker is |
7162 | *** used, and then restart. |
7163 | |
7164 | EOF |
7165 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7166 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7167 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7168 | else |
7169 | ld_shlibs=no |
7170 | fi |
7171 | ;; |
7172 | |
7173 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
7174 | case `$LD -v 2>&1` in |
7175 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
7176 | ld_shlibs=no |
7177 | cat <<_LT_EOF 1>&2 |
7178 | |
7179 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
7180 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
7181 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7182 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
7183 | *** your PATH or compiler configuration so that the native linker is |
7184 | *** used, and then restart. |
7185 | |
7186 | _LT_EOF |
7187 | ;; |
7188 | *) |
7189 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7190 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
7191 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
7192 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
7193 | else |
7194 | ld_shlibs=no |
7195 | fi |
7196 | ;; |
7197 | esac |
7198 | ;; |
7199 | |
7200 | sunos4*) |
7201 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7202 | wlarc= |
7203 | hardcode_direct=yes |
7204 | hardcode_shlibpath_var=no |
7205 | ;; |
7206 | |
7207 | *) |
7208 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7209 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7210 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7211 | else |
7212 | ld_shlibs=no |
7213 | fi |
7214 | ;; |
7215 | esac |
7216 | |
7217 | if test "$ld_shlibs" = no; then |
7218 | runpath_var= |
7219 | hardcode_libdir_flag_spec= |
7220 | export_dynamic_flag_spec= |
7221 | whole_archive_flag_spec= |
7222 | fi |
7223 | else |
7224 | # PORTME fill in a description of your system's linker (not GNU ld) |
7225 | case $host_os in |
7226 | aix3*) |
7227 | allow_undefined_flag=unsupported |
7228 | always_export_symbols=yes |
7229 | 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' |
7230 | # Note: this linker hardcodes the directories in LIBPATH if there |
7231 | # are no directories specified by -L. |
7232 | hardcode_minus_L=yes |
7233 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
7234 | # Neither direct hardcoding nor static linking is supported with a |
7235 | # broken collect2. |
7236 | hardcode_direct=unsupported |
7237 | fi |
7238 | ;; |
7239 | |
7240 | aix4* | aix5*) |
7241 | if test "$host_cpu" = ia64; then |
7242 | # On IA64, the linker does run time linking by default, so we don't |
7243 | # have to do anything special. |
7244 | aix_use_runtimelinking=no |
7245 | exp_sym_flag='-Bexport' |
7246 | no_entry_flag="" |
7247 | else |
7248 | # If we're using GNU nm, then we don't want the "-C" option. |
7249 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
7250 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
7251 | 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' |
7252 | else |
7253 | 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' |
7254 | fi |
7255 | aix_use_runtimelinking=no |
7256 | |
7257 | # Test if we are trying to use run time linking or normal |
7258 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
7259 | # need to do runtime linking. |
7260 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
7261 | for ld_flag in $LDFLAGS; do |
7262 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
7263 | aix_use_runtimelinking=yes |
7264 | break |
7265 | fi |
7266 | done |
7267 | ;; |
7268 | esac |
7269 | |
7270 | exp_sym_flag='-bexport' |
7271 | no_entry_flag='-bnoentry' |
7272 | fi |
7273 | |
7274 | # When large executables or shared objects are built, AIX ld can |
7275 | # have problems creating the table of contents. If linking a library |
7276 | # or program results in "error TOC overflow" add -mminimal-toc to |
7277 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
7278 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
7279 | |
7280 | archive_cmds='' |
7281 | hardcode_direct=yes |
7282 | hardcode_libdir_separator=':' |
7283 | link_all_deplibs=yes |
7284 | |
7285 | if test "$GCC" = yes; then |
7286 | case $host_os in aix4.[012]|aix4.[012].*) |
7287 | # We only want to do this on AIX 4.2 and lower, the check |
7288 | # below for broken collect2 doesn't work under 4.3+ |
7289 | collect2name=`${CC} -print-prog-name=collect2` |
7290 | if test -f "$collect2name" && \ |
7291 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
7292 | then |
7293 | # We have reworked collect2 |
7294 | hardcode_direct=yes |
7295 | else |
7296 | # We have old collect2 |
7297 | hardcode_direct=unsupported |
7298 | # It fails to find uninstalled libraries when the uninstalled |
7299 | # path is not listed in the libpath. Setting hardcode_minus_L |
7300 | # to unsupported forces relinking |
7301 | hardcode_minus_L=yes |
7302 | hardcode_libdir_flag_spec='-L$libdir' |
7303 | hardcode_libdir_separator= |
7304 | fi |
7305 | ;; |
7306 | esac |
7307 | shared_flag='-shared' |
7308 | if test "$aix_use_runtimelinking" = yes; then |
7309 | shared_flag="$shared_flag "'${wl}-G' |
7310 | fi |
7311 | else |
7312 | # not using gcc |
7313 | if test "$host_cpu" = ia64; then |
7314 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
7315 | # chokes on -Wl,-G. The following line is correct: |
7316 | shared_flag='-G' |
7317 | else |
7318 | if test "$aix_use_runtimelinking" = yes; then |
7319 | shared_flag='${wl}-G' |
7320 | else |
7321 | shared_flag='${wl}-bM:SRE' |
7322 | fi |
7323 | fi |
7324 | fi |
7325 | |
7326 | # It seems that -bexpall does not export symbols beginning with |
7327 | # underscore (_), so it is better to generate a list of symbols to export. |
7328 | always_export_symbols=yes |
7329 | if test "$aix_use_runtimelinking" = yes; then |
7330 | # Warning - without using the other runtime loading flags (-brtl), |
7331 | # -berok will link without error, but may produce a broken library. |
7332 | allow_undefined_flag='-berok' |
7333 | # Determine the default libpath from the value encoded in an empty executable. |
7334 | cat >conftest.$ac_ext <<_ACEOF |
7335 | /* confdefs.h. */ |
7336 | _ACEOF |
7337 | cat confdefs.h >>conftest.$ac_ext |
7338 | cat >>conftest.$ac_ext <<_ACEOF |
7339 | /* end confdefs.h. */ |
7340 | |
7341 | int |
7342 | main () |
7343 | { |
7344 | |
7345 | ; |
7346 | return 0; |
7347 | } |
7348 | _ACEOF |
7349 | rm -f conftest.$ac_objext conftest$ac_exeext |
7350 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7351 | (eval $ac_link) 2>conftest.er1 |
7352 | ac_status=$? |
7353 | grep -v '^ *+' conftest.er1 >conftest.err |
7354 | rm -f conftest.er1 |
7355 | cat conftest.err >&5 |
7356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7357 | (exit $ac_status); } && |
7358 | { ac_try='test -z "$ac_c_werror_flag" |
7359 | || test ! -s conftest.err' |
7360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7361 | (eval $ac_try) 2>&5 |
7362 | ac_status=$? |
7363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7364 | (exit $ac_status); }; } && |
7365 | { ac_try='test -s conftest$ac_exeext' |
7366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7367 | (eval $ac_try) 2>&5 |
7368 | ac_status=$? |
7369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7370 | (exit $ac_status); }; }; then |
7371 | |
7372 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
7373 | }'` |
7374 | # Check for a 64-bit object if we didn't find anything. |
7375 | 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; } |
7376 | }'`; fi |
7377 | else |
7378 | echo "$as_me: failed program was:" >&5 |
7379 | sed 's/^/| /' conftest.$ac_ext >&5 |
7380 | |
7381 | fi |
7382 | rm -f conftest.err conftest.$ac_objext \ |
7383 | conftest$ac_exeext conftest.$ac_ext |
7384 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
7385 | |
7386 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
7387 | 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" |
7388 | else |
7389 | if test "$host_cpu" = ia64; then |
7390 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
7391 | allow_undefined_flag="-z nodefs" |
7392 | 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" |
7393 | else |
7394 | # Determine the default libpath from the value encoded in an empty executable. |
7395 | cat >conftest.$ac_ext <<_ACEOF |
7396 | /* confdefs.h. */ |
7397 | _ACEOF |
7398 | cat confdefs.h >>conftest.$ac_ext |
7399 | cat >>conftest.$ac_ext <<_ACEOF |
7400 | /* end confdefs.h. */ |
7401 | |
7402 | int |
7403 | main () |
7404 | { |
7405 | |
7406 | ; |
7407 | return 0; |
7408 | } |
7409 | _ACEOF |
7410 | rm -f conftest.$ac_objext conftest$ac_exeext |
7411 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7412 | (eval $ac_link) 2>conftest.er1 |
7413 | ac_status=$? |
7414 | grep -v '^ *+' conftest.er1 >conftest.err |
7415 | rm -f conftest.er1 |
7416 | cat conftest.err >&5 |
7417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7418 | (exit $ac_status); } && |
7419 | { ac_try='test -z "$ac_c_werror_flag" |
7420 | || test ! -s conftest.err' |
7421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7422 | (eval $ac_try) 2>&5 |
7423 | ac_status=$? |
7424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7425 | (exit $ac_status); }; } && |
7426 | { ac_try='test -s conftest$ac_exeext' |
7427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7428 | (eval $ac_try) 2>&5 |
7429 | ac_status=$? |
7430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7431 | (exit $ac_status); }; }; then |
7432 | |
7433 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
7434 | }'` |
7435 | # Check for a 64-bit object if we didn't find anything. |
7436 | 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; } |
7437 | }'`; fi |
7438 | else |
7439 | echo "$as_me: failed program was:" >&5 |
7440 | sed 's/^/| /' conftest.$ac_ext >&5 |
7441 | |
7442 | fi |
7443 | rm -f conftest.err conftest.$ac_objext \ |
7444 | conftest$ac_exeext conftest.$ac_ext |
7445 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
7446 | |
7447 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
7448 | # Warning - without using the other run time loading flags, |
7449 | # -berok will link without error, but may produce a broken library. |
7450 | no_undefined_flag=' ${wl}-bernotok' |
7451 | allow_undefined_flag=' ${wl}-berok' |
7452 | # Exported symbols can be pulled into shared objects from archives |
7453 | whole_archive_flag_spec='$convenience' |
7454 | archive_cmds_need_lc=yes |
7455 | # This is similar to how AIX traditionally builds its shared libraries. |
7456 | 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' |
7457 | fi |
7458 | fi |
7459 | ;; |
7460 | |
7461 | amigaos*) |
7462 | 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)' |
7463 | hardcode_libdir_flag_spec='-L$libdir' |
7464 | hardcode_minus_L=yes |
7465 | # see comment about different semantics on the GNU ld section |
7466 | ld_shlibs=no |
7467 | ;; |
7468 | |
7469 | bsdi[45]*) |
7470 | export_dynamic_flag_spec=-rdynamic |
7471 | ;; |
7472 | |
7473 | cygwin* | mingw* | pw32*) |
7474 | # When not using gcc, we currently assume that we are using |
7475 | # Microsoft Visual C++. |
7476 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
7477 | # no search path for DLLs. |
7478 | hardcode_libdir_flag_spec=' ' |
7479 | allow_undefined_flag=unsupported |
7480 | # Tell ltmain to make .lib files, not .a files. |
7481 | libext=lib |
7482 | # Tell ltmain to make .dll files, not .so files. |
7483 | shrext_cmds=".dll" |
7484 | # FIXME: Setting linknames here is a bad hack. |
7485 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
7486 | # The linker will automatically build a .lib file if we build a DLL. |
7487 | old_archive_From_new_cmds='true' |
7488 | # FIXME: Should let the user specify the lib program. |
7489 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
7490 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
7491 | enable_shared_with_static_runtimes=yes |
7492 | ;; |
7493 | |
7494 | darwin* | rhapsody*) |
7495 | case $host_os in |
7496 | rhapsody* | darwin1.[012]) |
7497 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
7498 | ;; |
7499 | *) # Darwin 1.3 on |
7500 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
7501 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
7502 | else |
7503 | case ${MACOSX_DEPLOYMENT_TARGET} in |
7504 | 10.[012]) |
7505 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
7506 | ;; |
7507 | 10.*) |
7508 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
7509 | ;; |
7510 | esac |
7511 | fi |
7512 | ;; |
7513 | esac |
7514 | archive_cmds_need_lc=no |
7515 | hardcode_direct=no |
7516 | hardcode_automatic=yes |
7517 | hardcode_shlibpath_var=unsupported |
7518 | whole_archive_flag_spec='' |
7519 | link_all_deplibs=yes |
7520 | if test "$GCC" = yes ; then |
7521 | output_verbose_link_cmd='echo' |
7522 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
7523 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
7524 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
7525 | 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}' |
7526 | 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}' |
7527 | else |
7528 | case $cc_basename in |
7529 | xlc*) |
7530 | output_verbose_link_cmd='echo' |
7531 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
7532 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
7533 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
7534 | 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}' |
7535 | 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}' |
7536 | ;; |
7537 | *) |
7538 | ld_shlibs=no |
7539 | ;; |
7540 | esac |
7541 | fi |
7542 | ;; |
7543 | |
7544 | dgux*) |
7545 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7546 | hardcode_libdir_flag_spec='-L$libdir' |
7547 | hardcode_shlibpath_var=no |
7548 | ;; |
7549 | |
7550 | freebsd1*) |
7551 | ld_shlibs=no |
7552 | ;; |
7553 | |
7554 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
7555 | # support. Future versions do this automatically, but an explicit c++rt0.o |
7556 | # does not break anything, and helps significantly (at the cost of a little |
7557 | # extra space). |
7558 | freebsd2.2*) |
7559 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
7560 | hardcode_libdir_flag_spec='-R$libdir' |
7561 | hardcode_direct=yes |
7562 | hardcode_shlibpath_var=no |
7563 | ;; |
7564 | |
7565 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
7566 | freebsd2*) |
7567 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7568 | hardcode_direct=yes |
7569 | hardcode_minus_L=yes |
7570 | hardcode_shlibpath_var=no |
7571 | ;; |
7572 | |
7573 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
7574 | freebsd* | kfreebsd*-gnu | dragonfly*) |
7575 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
7576 | hardcode_libdir_flag_spec='-R$libdir' |
7577 | hardcode_direct=yes |
7578 | hardcode_shlibpath_var=no |
7579 | ;; |
7580 | |
7581 | hpux9*) |
7582 | if test "$GCC" = yes; then |
7583 | 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' |
7584 | else |
7585 | 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' |
7586 | fi |
7587 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7588 | hardcode_libdir_separator=: |
7589 | hardcode_direct=yes |
7590 | |
7591 | # hardcode_minus_L: Not really in the search PATH, |
7592 | # but as the default location of the library. |
7593 | hardcode_minus_L=yes |
7594 | export_dynamic_flag_spec='${wl}-E' |
7595 | ;; |
7596 | |
7597 | hpux10*) |
7598 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
7599 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
7600 | else |
7601 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
7602 | fi |
7603 | if test "$with_gnu_ld" = no; then |
7604 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7605 | hardcode_libdir_separator=: |
7606 | |
7607 | hardcode_direct=yes |
7608 | export_dynamic_flag_spec='${wl}-E' |
7609 | |
7610 | # hardcode_minus_L: Not really in the search PATH, |
7611 | # but as the default location of the library. |
7612 | hardcode_minus_L=yes |
7613 | fi |
7614 | ;; |
7615 | |
7616 | hpux11*) |
7617 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
7618 | case $host_cpu in |
7619 | hppa*64*) |
7620 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7621 | ;; |
7622 | ia64*) |
7623 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
7624 | ;; |
7625 | *) |
7626 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
7627 | ;; |
7628 | esac |
7629 | else |
7630 | case $host_cpu in |
7631 | hppa*64*) |
7632 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7633 | ;; |
7634 | ia64*) |
7635 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
7636 | ;; |
7637 | *) |
7638 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
7639 | ;; |
7640 | esac |
7641 | fi |
7642 | if test "$with_gnu_ld" = no; then |
7643 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7644 | hardcode_libdir_separator=: |
7645 | |
7646 | case $host_cpu in |
7647 | hppa*64*|ia64*) |
7648 | hardcode_libdir_flag_spec_ld='+b $libdir' |
7649 | hardcode_direct=no |
7650 | hardcode_shlibpath_var=no |
7651 | ;; |
7652 | *) |
7653 | hardcode_direct=yes |
7654 | export_dynamic_flag_spec='${wl}-E' |
7655 | |
7656 | # hardcode_minus_L: Not really in the search PATH, |
7657 | # but as the default location of the library. |
7658 | hardcode_minus_L=yes |
7659 | ;; |
7660 | esac |
7661 | fi |
7662 | ;; |
7663 | |
7664 | irix5* | irix6* | nonstopux*) |
7665 | if test "$GCC" = yes; then |
7666 | 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' |
7667 | else |
7668 | 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' |
7669 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
7670 | fi |
7671 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7672 | hardcode_libdir_separator=: |
7673 | link_all_deplibs=yes |
7674 | ;; |
7675 | |
7676 | netbsd*) |
7677 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7678 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
7679 | else |
7680 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
7681 | fi |
7682 | hardcode_libdir_flag_spec='-R$libdir' |
7683 | hardcode_direct=yes |
7684 | hardcode_shlibpath_var=no |
7685 | ;; |
7686 | |
7687 | newsos6) |
7688 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7689 | hardcode_direct=yes |
7690 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7691 | hardcode_libdir_separator=: |
7692 | hardcode_shlibpath_var=no |
7693 | ;; |
7694 | |
7695 | openbsd*) |
7696 | hardcode_direct=yes |
7697 | hardcode_shlibpath_var=no |
7698 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
7699 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
7700 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
7701 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7702 | export_dynamic_flag_spec='${wl}-E' |
7703 | else |
7704 | case $host_os in |
7705 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
7706 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7707 | hardcode_libdir_flag_spec='-R$libdir' |
7708 | ;; |
7709 | *) |
7710 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
7711 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7712 | ;; |
7713 | esac |
7714 | fi |
7715 | ;; |
7716 | |
7717 | os2*) |
7718 | hardcode_libdir_flag_spec='-L$libdir' |
7719 | hardcode_minus_L=yes |
7720 | allow_undefined_flag=unsupported |
7721 | 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' |
7722 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
7723 | ;; |
7724 | |
7725 | osf3*) |
7726 | if test "$GCC" = yes; then |
7727 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
7728 | 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' |
7729 | else |
7730 | allow_undefined_flag=' -expect_unresolved \*' |
7731 | 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' |
7732 | fi |
7733 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7734 | hardcode_libdir_separator=: |
7735 | ;; |
7736 | |
7737 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
7738 | if test "$GCC" = yes; then |
7739 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
7740 | 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' |
7741 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7742 | else |
7743 | allow_undefined_flag=' -expect_unresolved \*' |
7744 | 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' |
7745 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
7746 | $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' |
7747 | |
7748 | # Both c and cxx compiler support -rpath directly |
7749 | hardcode_libdir_flag_spec='-rpath $libdir' |
7750 | fi |
7751 | hardcode_libdir_separator=: |
7752 | ;; |
7753 | |
7754 | solaris*) |
7755 | no_undefined_flag=' -z text' |
7756 | if test "$GCC" = yes; then |
7757 | wlarc='${wl}' |
7758 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7759 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
7760 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
7761 | else |
7762 | wlarc='' |
7763 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7764 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
7765 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
7766 | fi |
7767 | hardcode_libdir_flag_spec='-R$libdir' |
7768 | hardcode_shlibpath_var=no |
7769 | case $host_os in |
7770 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
7771 | *) |
7772 | # The compiler driver will combine linker options so we |
7773 | # cannot just pass the convience library names through |
7774 | # without $wl, iff we do not link with $LD. |
7775 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
7776 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
7777 | case $wlarc in |
7778 | '') |
7779 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
7780 | *) |
7781 | 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' ;; |
7782 | esac ;; |
7783 | esac |
7784 | link_all_deplibs=yes |
7785 | ;; |
7786 | |
7787 | sunos4*) |
7788 | if test "x$host_vendor" = xsequent; then |
7789 | # Use $CC to link under sequent, because it throws in some extra .o |
7790 | # files that make .init and .fini sections work. |
7791 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
7792 | else |
7793 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
7794 | fi |
7795 | hardcode_libdir_flag_spec='-L$libdir' |
7796 | hardcode_direct=yes |
7797 | hardcode_minus_L=yes |
7798 | hardcode_shlibpath_var=no |
7799 | ;; |
7800 | |
7801 | sysv4) |
7802 | case $host_vendor in |
7803 | sni) |
7804 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7805 | hardcode_direct=yes # is this really true??? |
7806 | ;; |
7807 | siemens) |
7808 | ## LD is ld it makes a PLAMLIB |
7809 | ## CC just makes a GrossModule. |
7810 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
7811 | reload_cmds='$CC -r -o $output$reload_objs' |
7812 | hardcode_direct=no |
7813 | ;; |
7814 | motorola) |
7815 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7816 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
7817 | ;; |
7818 | esac |
7819 | runpath_var='LD_RUN_PATH' |
7820 | hardcode_shlibpath_var=no |
7821 | ;; |
7822 | |
7823 | sysv4.3*) |
7824 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7825 | hardcode_shlibpath_var=no |
7826 | export_dynamic_flag_spec='-Bexport' |
7827 | ;; |
7828 | |
7829 | sysv4*MP*) |
7830 | if test -d /usr/nec; then |
7831 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7832 | hardcode_shlibpath_var=no |
7833 | runpath_var=LD_RUN_PATH |
7834 | hardcode_runpath_var=yes |
7835 | ld_shlibs=yes |
7836 | fi |
7837 | ;; |
7838 | |
7839 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
7840 | no_undefined_flag='${wl}-z,text' |
7841 | archive_cmds_need_lc=no |
7842 | hardcode_shlibpath_var=no |
7843 | runpath_var='LD_RUN_PATH' |
7844 | |
7845 | if test "$GCC" = yes; then |
7846 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7847 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7848 | else |
7849 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7850 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7851 | fi |
7852 | ;; |
7853 | |
7854 | sysv5* | sco3.2v5* | sco5v6*) |
7855 | # Note: We can NOT use -z defs as we might desire, because we do not |
7856 | # link with -lc, and that would cause any symbols used from libc to |
7857 | # always be unresolved, which means just about no library would |
7858 | # ever link correctly. If we're not using GNU ld we use -z text |
7859 | # though, which does catch some bad symbols but isn't as heavy-handed |
7860 | # as -z defs. |
7861 | no_undefined_flag='${wl}-z,text' |
7862 | allow_undefined_flag='${wl}-z,nodefs' |
7863 | archive_cmds_need_lc=no |
7864 | hardcode_shlibpath_var=no |
7865 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
7866 | hardcode_libdir_separator=':' |
7867 | link_all_deplibs=yes |
7868 | export_dynamic_flag_spec='${wl}-Bexport' |
7869 | runpath_var='LD_RUN_PATH' |
7870 | |
7871 | if test "$GCC" = yes; then |
7872 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7873 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7874 | else |
7875 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7876 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7877 | fi |
7878 | ;; |
7879 | |
7880 | uts4*) |
7881 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7882 | hardcode_libdir_flag_spec='-L$libdir' |
7883 | hardcode_shlibpath_var=no |
7884 | ;; |
7885 | |
7886 | *) |
7887 | ld_shlibs=no |
7888 | ;; |
7889 | esac |
7890 | fi |
7891 | |
7892 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
7893 | echo "${ECHO_T}$ld_shlibs" >&6 |
7894 | test "$ld_shlibs" = no && can_build_shared=no |
7895 | |
7896 | # |
7897 | # Do we need to explicitly link libc? |
7898 | # |
7899 | case "x$archive_cmds_need_lc" in |
7900 | x|xyes) |
7901 | # Assume -lc should be added |
7902 | archive_cmds_need_lc=yes |
7903 | |
7904 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
7905 | case $archive_cmds in |
7906 | *'~'*) |
7907 | # FIXME: we may have to deal with multi-command sequences. |
7908 | ;; |
7909 | '$CC '*) |
7910 | # Test whether the compiler implicitly links with -lc since on some |
7911 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
7912 | # to ld, don't add -lc before -lgcc. |
7913 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
7914 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
7915 | $rm conftest* |
7916 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7917 | |
7918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7919 | (eval $ac_compile) 2>&5 |
7920 | ac_status=$? |
7921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7922 | (exit $ac_status); } 2>conftest.err; then |
7923 | soname=conftest |
7924 | lib=conftest |
7925 | libobjs=conftest.$ac_objext |
7926 | deplibs= |
7927 | wl=$lt_prog_compiler_wl |
7928 | pic_flag=$lt_prog_compiler_pic |
7929 | compiler_flags=-v |
7930 | linker_flags=-v |
7931 | verstring= |
7932 | output_objdir=. |
7933 | libname=conftest |
7934 | lt_save_allow_undefined_flag=$allow_undefined_flag |
7935 | allow_undefined_flag= |
7936 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
7937 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
7938 | ac_status=$? |
7939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7940 | (exit $ac_status); } |
7941 | then |
7942 | archive_cmds_need_lc=no |
7943 | else |
7944 | archive_cmds_need_lc=yes |
7945 | fi |
7946 | allow_undefined_flag=$lt_save_allow_undefined_flag |
7947 | else |
7948 | cat conftest.err 1>&5 |
7949 | fi |
7950 | $rm conftest* |
7951 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
7952 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
7953 | ;; |
7954 | esac |
7955 | fi |
7956 | ;; |
7957 | esac |
7958 | |
7959 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
7960 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
7961 | library_names_spec= |
7962 | libname_spec='lib$name' |
7963 | soname_spec= |
7964 | shrext_cmds=".so" |
7965 | postinstall_cmds= |
7966 | postuninstall_cmds= |
7967 | finish_cmds= |
7968 | finish_eval= |
7969 | shlibpath_var= |
7970 | shlibpath_overrides_runpath=unknown |
7971 | version_type=none |
7972 | dynamic_linker="$host_os ld.so" |
7973 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
7974 | if test "$GCC" = yes; then |
7975 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
7976 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
7977 | # if the path contains ";" then we assume it to be the separator |
7978 | # otherwise default to the standard path separator (i.e. ":") - it is |
7979 | # assumed that no part of a normal pathname contains ";" but that should |
7980 | # okay in the real world where ";" in dirpaths is itself problematic. |
7981 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
7982 | else |
7983 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
7984 | fi |
7985 | else |
7986 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
7987 | fi |
7988 | need_lib_prefix=unknown |
7989 | hardcode_into_libs=no |
7990 | |
7991 | # when you set need_version to no, make sure it does not cause -set_version |
7992 | # flags to be left without arguments |
7993 | need_version=unknown |
7994 | |
7995 | case $host_os in |
7996 | aix3*) |
7997 | version_type=linux |
7998 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
7999 | shlibpath_var=LIBPATH |
8000 | |
8001 | # AIX 3 has no versioning support, so we append a major version to the name. |
8002 | soname_spec='${libname}${release}${shared_ext}$major' |
8003 | ;; |
8004 | |
8005 | aix4* | aix5*) |
8006 | version_type=linux |
8007 | need_lib_prefix=no |
8008 | need_version=no |
8009 | hardcode_into_libs=yes |
8010 | if test "$host_cpu" = ia64; then |
8011 | # AIX 5 supports IA64 |
8012 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
8013 | shlibpath_var=LD_LIBRARY_PATH |
8014 | else |
8015 | # With GCC up to 2.95.x, collect2 would create an import file |
8016 | # for dependence libraries. The import file would start with |
8017 | # the line `#! .'. This would cause the generated library to |
8018 | # depend on `.', always an invalid library. This was fixed in |
8019 | # development snapshots of GCC prior to 3.0. |
8020 | case $host_os in |
8021 | aix4 | aix4.[01] | aix4.[01].*) |
8022 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
8023 | echo ' yes ' |
8024 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
8025 | : |
8026 | else |
8027 | can_build_shared=no |
8028 | fi |
8029 | ;; |
8030 | esac |
8031 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
8032 | # soname into executable. Probably we can add versioning support to |
8033 | # collect2, so additional links can be useful in future. |
8034 | if test "$aix_use_runtimelinking" = yes; then |
8035 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
8036 | # instead of lib<name>.a to let people know that these are not |
8037 | # typical AIX shared libraries. |
8038 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8039 | else |
8040 | # We preserve .a as extension for shared libraries through AIX4.2 |
8041 | # and later when we are not doing run time linking. |
8042 | library_names_spec='${libname}${release}.a $libname.a' |
8043 | soname_spec='${libname}${release}${shared_ext}$major' |
8044 | fi |
8045 | shlibpath_var=LIBPATH |
8046 | fi |
8047 | ;; |
8048 | |
8049 | amigaos*) |
8050 | library_names_spec='$libname.ixlibrary $libname.a' |
8051 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
8052 | 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' |
8053 | ;; |
8054 | |
8055 | beos*) |
8056 | library_names_spec='${libname}${shared_ext}' |
8057 | dynamic_linker="$host_os ld.so" |
8058 | shlibpath_var=LIBRARY_PATH |
8059 | ;; |
8060 | |
8061 | bsdi[45]*) |
8062 | version_type=linux |
8063 | need_version=no |
8064 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8065 | soname_spec='${libname}${release}${shared_ext}$major' |
8066 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
8067 | shlibpath_var=LD_LIBRARY_PATH |
8068 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
8069 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
8070 | # the default ld.so.conf also contains /usr/contrib/lib and |
8071 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
8072 | # libtool to hard-code these into programs |
8073 | ;; |
8074 | |
8075 | cygwin* | mingw* | pw32*) |
8076 | version_type=windows |
8077 | shrext_cmds=".dll" |
8078 | need_version=no |
8079 | need_lib_prefix=no |
8080 | |
8081 | case $GCC,$host_os in |
8082 | yes,cygwin* | yes,mingw* | yes,pw32*) |
8083 | library_names_spec='$libname.dll.a' |
8084 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
8085 | postinstall_cmds='base_file=`basename \${file}`~ |
8086 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
8087 | dldir=$destdir/`dirname \$dlpath`~ |
8088 | test -d \$dldir || mkdir -p \$dldir~ |
8089 | $install_prog $dir/$dlname \$dldir/$dlname~ |
8090 | chmod a+x \$dldir/$dlname' |
8091 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
8092 | dlpath=$dir/\$dldll~ |
8093 | $rm \$dlpath' |
8094 | shlibpath_overrides_runpath=yes |
8095 | |
8096 | case $host_os in |
8097 | cygwin*) |
8098 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
8099 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8100 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
8101 | ;; |
8102 | mingw*) |
8103 | # MinGW DLLs use traditional 'lib' prefix |
8104 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8105 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8106 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
8107 | # It is most probably a Windows format PATH printed by |
8108 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
8109 | # path with ; separators, and with drive letters. We can handle the |
8110 | # drive letters (cygwin fileutils understands them), so leave them, |
8111 | # especially as we might pass files found there to a mingw objdump, |
8112 | # which wouldn't understand a cygwinified path. Ahh. |
8113 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
8114 | else |
8115 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8116 | fi |
8117 | ;; |
8118 | pw32*) |
8119 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
8120 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8121 | ;; |
8122 | esac |
8123 | ;; |
8124 | |
8125 | *) |
8126 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
8127 | ;; |
8128 | esac |
8129 | dynamic_linker='Win32 ld.exe' |
8130 | # FIXME: first we should search . and the directory the executable is in |
8131 | shlibpath_var=PATH |
8132 | ;; |
8133 | |
8134 | darwin* | rhapsody*) |
8135 | dynamic_linker="$host_os dyld" |
8136 | version_type=darwin |
8137 | need_lib_prefix=no |
8138 | need_version=no |
8139 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
8140 | soname_spec='${libname}${release}${major}$shared_ext' |
8141 | shlibpath_overrides_runpath=yes |
8142 | shlibpath_var=DYLD_LIBRARY_PATH |
8143 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
8144 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
8145 | if test "$GCC" = yes; then |
8146 | 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"` |
8147 | else |
8148 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
8149 | fi |
8150 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
8151 | ;; |
8152 | |
8153 | dgux*) |
8154 | version_type=linux |
8155 | need_lib_prefix=no |
8156 | need_version=no |
8157 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
8158 | soname_spec='${libname}${release}${shared_ext}$major' |
8159 | shlibpath_var=LD_LIBRARY_PATH |
8160 | ;; |
8161 | |
8162 | freebsd1*) |
8163 | dynamic_linker=no |
8164 | ;; |
8165 | |
8166 | kfreebsd*-gnu) |
8167 | version_type=linux |
8168 | need_lib_prefix=no |
8169 | need_version=no |
8170 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8171 | soname_spec='${libname}${release}${shared_ext}$major' |
8172 | shlibpath_var=LD_LIBRARY_PATH |
8173 | shlibpath_overrides_runpath=no |
8174 | hardcode_into_libs=yes |
8175 | dynamic_linker='GNU ld.so' |
8176 | ;; |
8177 | |
8178 | freebsd* | dragonfly*) |
8179 | # DragonFly does not have aout. When/if they implement a new |
8180 | # versioning mechanism, adjust this. |
8181 | if test -x /usr/bin/objformat; then |
8182 | objformat=`/usr/bin/objformat` |
8183 | else |
8184 | case $host_os in |
8185 | freebsd[123]*) objformat=aout ;; |
8186 | *) objformat=elf ;; |
8187 | esac |
8188 | fi |
8189 | version_type=freebsd-$objformat |
8190 | case $version_type in |
8191 | freebsd-elf*) |
8192 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
8193 | need_version=no |
8194 | need_lib_prefix=no |
8195 | ;; |
8196 | freebsd-*) |
8197 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
8198 | need_version=yes |
8199 | ;; |
8200 | esac |
8201 | shlibpath_var=LD_LIBRARY_PATH |
8202 | case $host_os in |
8203 | freebsd2*) |
8204 | shlibpath_overrides_runpath=yes |
8205 | ;; |
8206 | freebsd3.[01]* | freebsdelf3.[01]*) |
8207 | shlibpath_overrides_runpath=yes |
8208 | hardcode_into_libs=yes |
8209 | ;; |
8210 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
8211 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
8212 | shlibpath_overrides_runpath=no |
8213 | hardcode_into_libs=yes |
8214 | ;; |
8215 | freebsd*) # from 4.6 on |
8216 | shlibpath_overrides_runpath=yes |
8217 | hardcode_into_libs=yes |
8218 | ;; |
8219 | esac |
8220 | ;; |
8221 | |
8222 | gnu*) |
8223 | version_type=linux |
8224 | need_lib_prefix=no |
8225 | need_version=no |
8226 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
8227 | soname_spec='${libname}${release}${shared_ext}$major' |
8228 | shlibpath_var=LD_LIBRARY_PATH |
8229 | hardcode_into_libs=yes |
8230 | ;; |
8231 | |
8232 | hpux9* | hpux10* | hpux11*) |
8233 | # Give a soname corresponding to the major version so that dld.sl refuses to |
8234 | # link against other versions. |
8235 | version_type=sunos |
8236 | need_lib_prefix=no |
8237 | need_version=no |
8238 | case $host_cpu in |
8239 | ia64*) |
8240 | shrext_cmds='.so' |
8241 | hardcode_into_libs=yes |
8242 | dynamic_linker="$host_os dld.so" |
8243 | shlibpath_var=LD_LIBRARY_PATH |
8244 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8245 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8246 | soname_spec='${libname}${release}${shared_ext}$major' |
8247 | if test "X$HPUX_IA64_MODE" = X32; then |
8248 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
8249 | else |
8250 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
8251 | fi |
8252 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8253 | ;; |
8254 | hppa*64*) |
8255 | shrext_cmds='.sl' |
8256 | hardcode_into_libs=yes |
8257 | dynamic_linker="$host_os dld.sl" |
8258 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
8259 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8260 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8261 | soname_spec='${libname}${release}${shared_ext}$major' |
8262 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
8263 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8264 | ;; |
8265 | *) |
8266 | shrext_cmds='.sl' |
8267 | dynamic_linker="$host_os dld.sl" |
8268 | shlibpath_var=SHLIB_PATH |
8269 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
8270 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8271 | soname_spec='${libname}${release}${shared_ext}$major' |
8272 | ;; |
8273 | esac |
8274 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
8275 | postinstall_cmds='chmod 555 $lib' |
8276 | ;; |
8277 | |
8278 | interix3*) |
8279 | version_type=linux |
8280 | need_lib_prefix=no |
8281 | need_version=no |
8282 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8283 | soname_spec='${libname}${release}${shared_ext}$major' |
8284 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
8285 | shlibpath_var=LD_LIBRARY_PATH |
8286 | shlibpath_overrides_runpath=no |
8287 | hardcode_into_libs=yes |
8288 | ;; |
8289 | |
8290 | irix5* | irix6* | nonstopux*) |
8291 | case $host_os in |
8292 | nonstopux*) version_type=nonstopux ;; |
8293 | *) |
8294 | if test "$lt_cv_prog_gnu_ld" = yes; then |
8295 | version_type=linux |
8296 | else |
8297 | version_type=irix |
8298 | fi ;; |
8299 | esac |
8300 | need_lib_prefix=no |
8301 | need_version=no |
8302 | soname_spec='${libname}${release}${shared_ext}$major' |
8303 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
8304 | case $host_os in |
8305 | irix5* | nonstopux*) |
8306 | libsuff= shlibsuff= |
8307 | ;; |
8308 | *) |
8309 | case $LD in # libtool.m4 will add one of these switches to LD |
8310 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
8311 | libsuff= shlibsuff= libmagic=32-bit;; |
8312 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
8313 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
8314 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
8315 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
8316 | *) libsuff= shlibsuff= libmagic=never-match;; |
8317 | esac |
8318 | ;; |
8319 | esac |
8320 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
8321 | shlibpath_overrides_runpath=no |
8322 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
8323 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
8324 | hardcode_into_libs=yes |
8325 | ;; |
8326 | |
8327 | # No shared lib support for Linux oldld, aout, or coff. |
8328 | linux*oldld* | linux*aout* | linux*coff*) |
8329 | dynamic_linker=no |
8330 | ;; |
8331 | |
8332 | # This must be Linux ELF. |
8333 | linux*) |
8334 | version_type=linux |
8335 | need_lib_prefix=no |
8336 | need_version=no |
8337 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8338 | soname_spec='${libname}${release}${shared_ext}$major' |
8339 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
8340 | shlibpath_var=LD_LIBRARY_PATH |
8341 | shlibpath_overrides_runpath=no |
8342 | # This implies no fast_install, which is unacceptable. |
8343 | # Some rework will be needed to allow for fast_install |
8344 | # before this can be enabled. |
8345 | hardcode_into_libs=yes |
8346 | |
8347 | # find out which ABI we are using |
8348 | libsuff= |
8349 | case "$host_cpu" in |
8350 | x86_64*|s390x*|powerpc64*) |
8351 | echo '#line 8351 "configure"' > conftest.$ac_ext |
8352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8353 | (eval $ac_compile) 2>&5 |
8354 | ac_status=$? |
8355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8356 | (exit $ac_status); }; then |
8357 | case `/usr/bin/file conftest.$ac_objext` in |
8358 | *64-bit*) |
8359 | libsuff=64 |
8360 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
8361 | ;; |
8362 | esac |
8363 | fi |
8364 | rm -rf conftest* |
8365 | ;; |
8366 | esac |
8367 | |
8368 | # Append ld.so.conf contents to the search path |
8369 | if test -f /etc/ld.so.conf; then |
8370 | 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' ' '` |
8371 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
8372 | fi |
8373 | |
8374 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
8375 | # powerpc, because MkLinux only supported shared libraries with the |
8376 | # GNU dynamic linker. Since this was broken with cross compilers, |
8377 | # most powerpc-linux boxes support dynamic linking these days and |
8378 | # people can always --disable-shared, the test was removed, and we |
8379 | # assume the GNU/Linux dynamic linker is in use. |
8380 | dynamic_linker='GNU/Linux ld.so' |
8381 | ;; |
8382 | |
8383 | knetbsd*-gnu) |
8384 | version_type=linux |
8385 | need_lib_prefix=no |
8386 | need_version=no |
8387 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8388 | soname_spec='${libname}${release}${shared_ext}$major' |
8389 | shlibpath_var=LD_LIBRARY_PATH |
8390 | shlibpath_overrides_runpath=no |
8391 | hardcode_into_libs=yes |
8392 | dynamic_linker='GNU ld.so' |
8393 | ;; |
8394 | |
8395 | netbsd*) |
8396 | version_type=sunos |
8397 | need_lib_prefix=no |
8398 | need_version=no |
8399 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8400 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8401 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
8402 | dynamic_linker='NetBSD (a.out) ld.so' |
8403 | else |
8404 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8405 | soname_spec='${libname}${release}${shared_ext}$major' |
8406 | dynamic_linker='NetBSD ld.elf_so' |
8407 | fi |
8408 | shlibpath_var=LD_LIBRARY_PATH |
8409 | shlibpath_overrides_runpath=yes |
8410 | hardcode_into_libs=yes |
8411 | ;; |
8412 | |
8413 | newsos6) |
8414 | version_type=linux |
8415 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8416 | shlibpath_var=LD_LIBRARY_PATH |
8417 | shlibpath_overrides_runpath=yes |
8418 | ;; |
8419 | |
8420 | nto-qnx*) |
8421 | version_type=linux |
8422 | need_lib_prefix=no |
8423 | need_version=no |
8424 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8425 | soname_spec='${libname}${release}${shared_ext}$major' |
8426 | shlibpath_var=LD_LIBRARY_PATH |
8427 | shlibpath_overrides_runpath=yes |
8428 | ;; |
8429 | |
8430 | openbsd*) |
8431 | version_type=sunos |
8432 | sys_lib_dlsearch_path_spec="/usr/lib" |
8433 | need_lib_prefix=no |
8434 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
8435 | case $host_os in |
8436 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
8437 | *) need_version=no ;; |
8438 | esac |
8439 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8440 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
8441 | shlibpath_var=LD_LIBRARY_PATH |
8442 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
8443 | case $host_os in |
8444 | openbsd2.[89] | openbsd2.[89].*) |
8445 | shlibpath_overrides_runpath=no |
8446 | ;; |
8447 | *) |
8448 | shlibpath_overrides_runpath=yes |
8449 | ;; |
8450 | esac |
8451 | else |
8452 | shlibpath_overrides_runpath=yes |
8453 | fi |
8454 | ;; |
8455 | |
8456 | os2*) |
8457 | libname_spec='$name' |
8458 | shrext_cmds=".dll" |
8459 | need_lib_prefix=no |
8460 | library_names_spec='$libname${shared_ext} $libname.a' |
8461 | dynamic_linker='OS/2 ld.exe' |
8462 | shlibpath_var=LIBPATH |
8463 | ;; |
8464 | |
8465 | osf3* | osf4* | osf5*) |
8466 | version_type=osf |
8467 | need_lib_prefix=no |
8468 | need_version=no |
8469 | soname_spec='${libname}${release}${shared_ext}$major' |
8470 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8471 | shlibpath_var=LD_LIBRARY_PATH |
8472 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
8473 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
8474 | ;; |
8475 | |
8476 | solaris*) |
8477 | version_type=linux |
8478 | need_lib_prefix=no |
8479 | need_version=no |
8480 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8481 | soname_spec='${libname}${release}${shared_ext}$major' |
8482 | shlibpath_var=LD_LIBRARY_PATH |
8483 | shlibpath_overrides_runpath=yes |
8484 | hardcode_into_libs=yes |
8485 | # ldd complains unless libraries are executable |
8486 | postinstall_cmds='chmod +x $lib' |
8487 | ;; |
8488 | |
8489 | sunos4*) |
8490 | version_type=sunos |
8491 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8492 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
8493 | shlibpath_var=LD_LIBRARY_PATH |
8494 | shlibpath_overrides_runpath=yes |
8495 | if test "$with_gnu_ld" = yes; then |
8496 | need_lib_prefix=no |
8497 | fi |
8498 | need_version=yes |
8499 | ;; |
8500 | |
8501 | sysv4 | sysv4.3*) |
8502 | version_type=linux |
8503 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8504 | soname_spec='${libname}${release}${shared_ext}$major' |
8505 | shlibpath_var=LD_LIBRARY_PATH |
8506 | case $host_vendor in |
8507 | sni) |
8508 | shlibpath_overrides_runpath=no |
8509 | need_lib_prefix=no |
8510 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
8511 | runpath_var=LD_RUN_PATH |
8512 | ;; |
8513 | siemens) |
8514 | need_lib_prefix=no |
8515 | ;; |
8516 | motorola) |
8517 | need_lib_prefix=no |
8518 | need_version=no |
8519 | shlibpath_overrides_runpath=no |
8520 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
8521 | ;; |
8522 | esac |
8523 | ;; |
8524 | |
8525 | sysv4*MP*) |
8526 | if test -d /usr/nec ;then |
8527 | version_type=linux |
8528 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
8529 | soname_spec='$libname${shared_ext}.$major' |
8530 | shlibpath_var=LD_LIBRARY_PATH |
8531 | fi |
8532 | ;; |
8533 | |
8534 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
8535 | version_type=freebsd-elf |
8536 | need_lib_prefix=no |
8537 | need_version=no |
8538 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
8539 | soname_spec='${libname}${release}${shared_ext}$major' |
8540 | shlibpath_var=LD_LIBRARY_PATH |
8541 | hardcode_into_libs=yes |
8542 | if test "$with_gnu_ld" = yes; then |
8543 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
8544 | shlibpath_overrides_runpath=no |
8545 | else |
8546 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
8547 | shlibpath_overrides_runpath=yes |
8548 | case $host_os in |
8549 | sco3.2v5*) |
8550 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
8551 | ;; |
8552 | esac |
8553 | fi |
8554 | sys_lib_dlsearch_path_spec='/usr/lib' |
8555 | ;; |
8556 | |
8557 | uts4*) |
8558 | version_type=linux |
8559 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8560 | soname_spec='${libname}${release}${shared_ext}$major' |
8561 | shlibpath_var=LD_LIBRARY_PATH |
8562 | ;; |
8563 | |
8564 | *) |
8565 | dynamic_linker=no |
8566 | ;; |
8567 | esac |
8568 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
8569 | echo "${ECHO_T}$dynamic_linker" >&6 |
8570 | test "$dynamic_linker" = no && can_build_shared=no |
8571 | |
8572 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
8573 | if test "$GCC" = yes; then |
8574 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
8575 | fi |
8576 | |
8577 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
8578 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
8579 | hardcode_action= |
8580 | if test -n "$hardcode_libdir_flag_spec" || \ |
8581 | test -n "$runpath_var" || \ |
8582 | test "X$hardcode_automatic" = "Xyes" ; then |
8583 | |
8584 | # We can hardcode non-existant directories. |
8585 | if test "$hardcode_direct" != no && |
8586 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
8587 | # have to relink, otherwise we might link with an installed library |
8588 | # when we should be linking with a yet-to-be-installed one |
8589 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
8590 | test "$hardcode_minus_L" != no; then |
8591 | # Linking always hardcodes the temporary library directory. |
8592 | hardcode_action=relink |
8593 | else |
8594 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
8595 | hardcode_action=immediate |
8596 | fi |
8597 | else |
8598 | # We cannot hardcode anything, or else we can only hardcode existing |
8599 | # directories. |
8600 | hardcode_action=unsupported |
8601 | fi |
8602 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
8603 | echo "${ECHO_T}$hardcode_action" >&6 |
8604 | |
8605 | if test "$hardcode_action" = relink; then |
8606 | # Fast installation is not supported |
8607 | enable_fast_install=no |
8608 | elif test "$shlibpath_overrides_runpath" = yes || |
8609 | test "$enable_shared" = no; then |
8610 | # Fast installation is not necessary |
8611 | enable_fast_install=needless |
8612 | fi |
8613 | |
8614 | striplib= |
8615 | old_striplib= |
8616 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
8617 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
8618 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
8619 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
8620 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
8621 | echo "$as_me:$LINENO: result: yes" >&5 |
8622 | echo "${ECHO_T}yes" >&6 |
8623 | else |
8624 | # FIXME - insert some real tests, host_os isn't really good enough |
8625 | case $host_os in |
8626 | darwin*) |
8627 | if test -n "$STRIP" ; then |
8628 | striplib="$STRIP -x" |
8629 | echo "$as_me:$LINENO: result: yes" >&5 |
8630 | echo "${ECHO_T}yes" >&6 |
8631 | else |
8632 | echo "$as_me:$LINENO: result: no" >&5 |
8633 | echo "${ECHO_T}no" >&6 |
8634 | fi |
8635 | ;; |
8636 | *) |
8637 | echo "$as_me:$LINENO: result: no" >&5 |
8638 | echo "${ECHO_T}no" >&6 |
8639 | ;; |
8640 | esac |
8641 | fi |
8642 | |
8643 | if test "x$enable_dlopen" != xyes; then |
8644 | enable_dlopen=unknown |
8645 | enable_dlopen_self=unknown |
8646 | enable_dlopen_self_static=unknown |
8647 | else |
8648 | lt_cv_dlopen=no |
8649 | lt_cv_dlopen_libs= |
8650 | |
8651 | case $host_os in |
8652 | beos*) |
8653 | lt_cv_dlopen="load_add_on" |
8654 | lt_cv_dlopen_libs= |
8655 | lt_cv_dlopen_self=yes |
8656 | ;; |
8657 | |
8658 | mingw* | pw32*) |
8659 | lt_cv_dlopen="LoadLibrary" |
8660 | lt_cv_dlopen_libs= |
8661 | ;; |
8662 | |
8663 | cygwin*) |
8664 | lt_cv_dlopen="dlopen" |
8665 | lt_cv_dlopen_libs= |
8666 | ;; |
8667 | |
8668 | darwin*) |
8669 | # if libdl is installed we need to link against it |
8670 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
8671 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
8672 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
8673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8674 | else |
8675 | ac_check_lib_save_LIBS=$LIBS |
8676 | LIBS="-ldl $LIBS" |
8677 | cat >conftest.$ac_ext <<_ACEOF |
8678 | /* confdefs.h. */ |
8679 | _ACEOF |
8680 | cat confdefs.h >>conftest.$ac_ext |
8681 | cat >>conftest.$ac_ext <<_ACEOF |
8682 | /* end confdefs.h. */ |
8683 | |
8684 | /* Override any gcc2 internal prototype to avoid an error. */ |
8685 | #ifdef __cplusplus |
8686 | extern "C" |
8687 | #endif |
8688 | /* We use char because int might match the return type of a gcc2 |
8689 | builtin and then its argument prototype would still apply. */ |
8690 | char dlopen (); |
8691 | int |
8692 | main () |
8693 | { |
8694 | dlopen (); |
8695 | ; |
8696 | return 0; |
8697 | } |
8698 | _ACEOF |
8699 | rm -f conftest.$ac_objext conftest$ac_exeext |
8700 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8701 | (eval $ac_link) 2>conftest.er1 |
8702 | ac_status=$? |
8703 | grep -v '^ *+' conftest.er1 >conftest.err |
8704 | rm -f conftest.er1 |
8705 | cat conftest.err >&5 |
8706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8707 | (exit $ac_status); } && |
8708 | { ac_try='test -z "$ac_c_werror_flag" |
8709 | || test ! -s conftest.err' |
8710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8711 | (eval $ac_try) 2>&5 |
8712 | ac_status=$? |
8713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8714 | (exit $ac_status); }; } && |
8715 | { ac_try='test -s conftest$ac_exeext' |
8716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8717 | (eval $ac_try) 2>&5 |
8718 | ac_status=$? |
8719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8720 | (exit $ac_status); }; }; then |
8721 | ac_cv_lib_dl_dlopen=yes |
8722 | else |
8723 | echo "$as_me: failed program was:" >&5 |
8724 | sed 's/^/| /' conftest.$ac_ext >&5 |
8725 | |
8726 | ac_cv_lib_dl_dlopen=no |
8727 | fi |
8728 | rm -f conftest.err conftest.$ac_objext \ |
8729 | conftest$ac_exeext conftest.$ac_ext |
8730 | LIBS=$ac_check_lib_save_LIBS |
8731 | fi |
8732 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
8733 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
8734 | if test $ac_cv_lib_dl_dlopen = yes; then |
8735 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
8736 | else |
8737 | |
8738 | lt_cv_dlopen="dyld" |
8739 | lt_cv_dlopen_libs= |
8740 | lt_cv_dlopen_self=yes |
8741 | |
8742 | fi |
8743 | |
8744 | ;; |
8745 | |
8746 | *) |
8747 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
8748 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
8749 | if test "${ac_cv_func_shl_load+set}" = set; then |
8750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8751 | else |
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 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
8759 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8760 | #define shl_load innocuous_shl_load |
8761 | |
8762 | /* System header to define __stub macros and hopefully few prototypes, |
8763 | which can conflict with char shl_load (); below. |
8764 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8765 | <limits.h> exists even on freestanding compilers. */ |
8766 | |
8767 | #ifdef __STDC__ |
8768 | # include <limits.h> |
8769 | #else |
8770 | # include <assert.h> |
8771 | #endif |
8772 | |
8773 | #undef shl_load |
8774 | |
8775 | /* Override any gcc2 internal prototype to avoid an error. */ |
8776 | #ifdef __cplusplus |
8777 | extern "C" |
8778 | { |
8779 | #endif |
8780 | /* We use char because int might match the return type of a gcc2 |
8781 | builtin and then its argument prototype would still apply. */ |
8782 | char shl_load (); |
8783 | /* The GNU C library defines this for functions which it implements |
8784 | to always fail with ENOSYS. Some functions are actually named |
8785 | something starting with __ and the normal name is an alias. */ |
8786 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
8787 | choke me |
8788 | #else |
8789 | char (*f) () = shl_load; |
8790 | #endif |
8791 | #ifdef __cplusplus |
8792 | } |
8793 | #endif |
8794 | |
8795 | int |
8796 | main () |
8797 | { |
8798 | return f != shl_load; |
8799 | ; |
8800 | return 0; |
8801 | } |
8802 | _ACEOF |
8803 | rm -f conftest.$ac_objext conftest$ac_exeext |
8804 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8805 | (eval $ac_link) 2>conftest.er1 |
8806 | ac_status=$? |
8807 | grep -v '^ *+' conftest.er1 >conftest.err |
8808 | rm -f conftest.er1 |
8809 | cat conftest.err >&5 |
8810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8811 | (exit $ac_status); } && |
8812 | { ac_try='test -z "$ac_c_werror_flag" |
8813 | || test ! -s conftest.err' |
8814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8815 | (eval $ac_try) 2>&5 |
8816 | ac_status=$? |
8817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8818 | (exit $ac_status); }; } && |
8819 | { ac_try='test -s conftest$ac_exeext' |
8820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8821 | (eval $ac_try) 2>&5 |
8822 | ac_status=$? |
8823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8824 | (exit $ac_status); }; }; then |
8825 | ac_cv_func_shl_load=yes |
8826 | else |
8827 | echo "$as_me: failed program was:" >&5 |
8828 | sed 's/^/| /' conftest.$ac_ext >&5 |
8829 | |
8830 | ac_cv_func_shl_load=no |
8831 | fi |
8832 | rm -f conftest.err conftest.$ac_objext \ |
8833 | conftest$ac_exeext conftest.$ac_ext |
8834 | fi |
8835 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
8836 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
8837 | if test $ac_cv_func_shl_load = yes; then |
8838 | lt_cv_dlopen="shl_load" |
8839 | else |
8840 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
8841 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
8842 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
8843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8844 | else |
8845 | ac_check_lib_save_LIBS=$LIBS |
8846 | LIBS="-ldld $LIBS" |
8847 | cat >conftest.$ac_ext <<_ACEOF |
8848 | /* confdefs.h. */ |
8849 | _ACEOF |
8850 | cat confdefs.h >>conftest.$ac_ext |
8851 | cat >>conftest.$ac_ext <<_ACEOF |
8852 | /* end confdefs.h. */ |
8853 | |
8854 | /* Override any gcc2 internal prototype to avoid an error. */ |
8855 | #ifdef __cplusplus |
8856 | extern "C" |
8857 | #endif |
8858 | /* We use char because int might match the return type of a gcc2 |
8859 | builtin and then its argument prototype would still apply. */ |
8860 | char shl_load (); |
8861 | int |
8862 | main () |
8863 | { |
8864 | shl_load (); |
8865 | ; |
8866 | return 0; |
8867 | } |
8868 | _ACEOF |
8869 | rm -f conftest.$ac_objext conftest$ac_exeext |
8870 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8871 | (eval $ac_link) 2>conftest.er1 |
8872 | ac_status=$? |
8873 | grep -v '^ *+' conftest.er1 >conftest.err |
8874 | rm -f conftest.er1 |
8875 | cat conftest.err >&5 |
8876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8877 | (exit $ac_status); } && |
8878 | { ac_try='test -z "$ac_c_werror_flag" |
8879 | || test ! -s conftest.err' |
8880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8881 | (eval $ac_try) 2>&5 |
8882 | ac_status=$? |
8883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8884 | (exit $ac_status); }; } && |
8885 | { ac_try='test -s conftest$ac_exeext' |
8886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8887 | (eval $ac_try) 2>&5 |
8888 | ac_status=$? |
8889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8890 | (exit $ac_status); }; }; then |
8891 | ac_cv_lib_dld_shl_load=yes |
8892 | else |
8893 | echo "$as_me: failed program was:" >&5 |
8894 | sed 's/^/| /' conftest.$ac_ext >&5 |
8895 | |
8896 | ac_cv_lib_dld_shl_load=no |
8897 | fi |
8898 | rm -f conftest.err conftest.$ac_objext \ |
8899 | conftest$ac_exeext conftest.$ac_ext |
8900 | LIBS=$ac_check_lib_save_LIBS |
8901 | fi |
8902 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
8903 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
8904 | if test $ac_cv_lib_dld_shl_load = yes; then |
8905 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
8906 | else |
8907 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
8908 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
8909 | if test "${ac_cv_func_dlopen+set}" = set; then |
8910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8911 | else |
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 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
8919 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8920 | #define dlopen innocuous_dlopen |
8921 | |
8922 | /* System header to define __stub macros and hopefully few prototypes, |
8923 | which can conflict with char dlopen (); below. |
8924 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8925 | <limits.h> exists even on freestanding compilers. */ |
8926 | |
8927 | #ifdef __STDC__ |
8928 | # include <limits.h> |
8929 | #else |
8930 | # include <assert.h> |
8931 | #endif |
8932 | |
8933 | #undef dlopen |
8934 | |
8935 | /* Override any gcc2 internal prototype to avoid an error. */ |
8936 | #ifdef __cplusplus |
8937 | extern "C" |
8938 | { |
8939 | #endif |
8940 | /* We use char because int might match the return type of a gcc2 |
8941 | builtin and then its argument prototype would still apply. */ |
8942 | char dlopen (); |
8943 | /* The GNU C library defines this for functions which it implements |
8944 | to always fail with ENOSYS. Some functions are actually named |
8945 | something starting with __ and the normal name is an alias. */ |
8946 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
8947 | choke me |
8948 | #else |
8949 | char (*f) () = dlopen; |
8950 | #endif |
8951 | #ifdef __cplusplus |
8952 | } |
8953 | #endif |
8954 | |
8955 | int |
8956 | main () |
8957 | { |
8958 | return f != dlopen; |
8959 | ; |
8960 | return 0; |
8961 | } |
8962 | _ACEOF |
8963 | rm -f conftest.$ac_objext conftest$ac_exeext |
8964 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8965 | (eval $ac_link) 2>conftest.er1 |
8966 | ac_status=$? |
8967 | grep -v '^ *+' conftest.er1 >conftest.err |
8968 | rm -f conftest.er1 |
8969 | cat conftest.err >&5 |
8970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8971 | (exit $ac_status); } && |
8972 | { ac_try='test -z "$ac_c_werror_flag" |
8973 | || test ! -s conftest.err' |
8974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8975 | (eval $ac_try) 2>&5 |
8976 | ac_status=$? |
8977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8978 | (exit $ac_status); }; } && |
8979 | { ac_try='test -s conftest$ac_exeext' |
8980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8981 | (eval $ac_try) 2>&5 |
8982 | ac_status=$? |
8983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8984 | (exit $ac_status); }; }; then |
8985 | ac_cv_func_dlopen=yes |
8986 | else |
8987 | echo "$as_me: failed program was:" >&5 |
8988 | sed 's/^/| /' conftest.$ac_ext >&5 |
8989 | |
8990 | ac_cv_func_dlopen=no |
8991 | fi |
8992 | rm -f conftest.err conftest.$ac_objext \ |
8993 | conftest$ac_exeext conftest.$ac_ext |
8994 | fi |
8995 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
8996 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
8997 | if test $ac_cv_func_dlopen = yes; then |
8998 | lt_cv_dlopen="dlopen" |
8999 | else |
9000 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9001 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
9002 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9004 | else |
9005 | ac_check_lib_save_LIBS=$LIBS |
9006 | LIBS="-ldl $LIBS" |
9007 | cat >conftest.$ac_ext <<_ACEOF |
9008 | /* confdefs.h. */ |
9009 | _ACEOF |
9010 | cat confdefs.h >>conftest.$ac_ext |
9011 | cat >>conftest.$ac_ext <<_ACEOF |
9012 | /* end confdefs.h. */ |
9013 | |
9014 | /* Override any gcc2 internal prototype to avoid an error. */ |
9015 | #ifdef __cplusplus |
9016 | extern "C" |
9017 | #endif |
9018 | /* We use char because int might match the return type of a gcc2 |
9019 | builtin and then its argument prototype would still apply. */ |
9020 | char dlopen (); |
9021 | int |
9022 | main () |
9023 | { |
9024 | dlopen (); |
9025 | ; |
9026 | return 0; |
9027 | } |
9028 | _ACEOF |
9029 | rm -f conftest.$ac_objext conftest$ac_exeext |
9030 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9031 | (eval $ac_link) 2>conftest.er1 |
9032 | ac_status=$? |
9033 | grep -v '^ *+' conftest.er1 >conftest.err |
9034 | rm -f conftest.er1 |
9035 | cat conftest.err >&5 |
9036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9037 | (exit $ac_status); } && |
9038 | { ac_try='test -z "$ac_c_werror_flag" |
9039 | || test ! -s conftest.err' |
9040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9041 | (eval $ac_try) 2>&5 |
9042 | ac_status=$? |
9043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9044 | (exit $ac_status); }; } && |
9045 | { ac_try='test -s conftest$ac_exeext' |
9046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9047 | (eval $ac_try) 2>&5 |
9048 | ac_status=$? |
9049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9050 | (exit $ac_status); }; }; then |
9051 | ac_cv_lib_dl_dlopen=yes |
9052 | else |
9053 | echo "$as_me: failed program was:" >&5 |
9054 | sed 's/^/| /' conftest.$ac_ext >&5 |
9055 | |
9056 | ac_cv_lib_dl_dlopen=no |
9057 | fi |
9058 | rm -f conftest.err conftest.$ac_objext \ |
9059 | conftest$ac_exeext conftest.$ac_ext |
9060 | LIBS=$ac_check_lib_save_LIBS |
9061 | fi |
9062 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9063 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
9064 | if test $ac_cv_lib_dl_dlopen = yes; then |
9065 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9066 | else |
9067 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
9068 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
9069 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
9070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9071 | else |
9072 | ac_check_lib_save_LIBS=$LIBS |
9073 | LIBS="-lsvld $LIBS" |
9074 | cat >conftest.$ac_ext <<_ACEOF |
9075 | /* confdefs.h. */ |
9076 | _ACEOF |
9077 | cat confdefs.h >>conftest.$ac_ext |
9078 | cat >>conftest.$ac_ext <<_ACEOF |
9079 | /* end confdefs.h. */ |
9080 | |
9081 | /* Override any gcc2 internal prototype to avoid an error. */ |
9082 | #ifdef __cplusplus |
9083 | extern "C" |
9084 | #endif |
9085 | /* We use char because int might match the return type of a gcc2 |
9086 | builtin and then its argument prototype would still apply. */ |
9087 | char dlopen (); |
9088 | int |
9089 | main () |
9090 | { |
9091 | dlopen (); |
9092 | ; |
9093 | return 0; |
9094 | } |
9095 | _ACEOF |
9096 | rm -f conftest.$ac_objext conftest$ac_exeext |
9097 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9098 | (eval $ac_link) 2>conftest.er1 |
9099 | ac_status=$? |
9100 | grep -v '^ *+' conftest.er1 >conftest.err |
9101 | rm -f conftest.er1 |
9102 | cat conftest.err >&5 |
9103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9104 | (exit $ac_status); } && |
9105 | { ac_try='test -z "$ac_c_werror_flag" |
9106 | || test ! -s conftest.err' |
9107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9108 | (eval $ac_try) 2>&5 |
9109 | ac_status=$? |
9110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9111 | (exit $ac_status); }; } && |
9112 | { ac_try='test -s conftest$ac_exeext' |
9113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9114 | (eval $ac_try) 2>&5 |
9115 | ac_status=$? |
9116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9117 | (exit $ac_status); }; }; then |
9118 | ac_cv_lib_svld_dlopen=yes |
9119 | else |
9120 | echo "$as_me: failed program was:" >&5 |
9121 | sed 's/^/| /' conftest.$ac_ext >&5 |
9122 | |
9123 | ac_cv_lib_svld_dlopen=no |
9124 | fi |
9125 | rm -f conftest.err conftest.$ac_objext \ |
9126 | conftest$ac_exeext conftest.$ac_ext |
9127 | LIBS=$ac_check_lib_save_LIBS |
9128 | fi |
9129 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
9130 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
9131 | if test $ac_cv_lib_svld_dlopen = yes; then |
9132 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
9133 | else |
9134 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
9135 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
9136 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
9137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9138 | else |
9139 | ac_check_lib_save_LIBS=$LIBS |
9140 | LIBS="-ldld $LIBS" |
9141 | cat >conftest.$ac_ext <<_ACEOF |
9142 | /* confdefs.h. */ |
9143 | _ACEOF |
9144 | cat confdefs.h >>conftest.$ac_ext |
9145 | cat >>conftest.$ac_ext <<_ACEOF |
9146 | /* end confdefs.h. */ |
9147 | |
9148 | /* Override any gcc2 internal prototype to avoid an error. */ |
9149 | #ifdef __cplusplus |
9150 | extern "C" |
9151 | #endif |
9152 | /* We use char because int might match the return type of a gcc2 |
9153 | builtin and then its argument prototype would still apply. */ |
9154 | char dld_link (); |
9155 | int |
9156 | main () |
9157 | { |
9158 | dld_link (); |
9159 | ; |
9160 | return 0; |
9161 | } |
9162 | _ACEOF |
9163 | rm -f conftest.$ac_objext conftest$ac_exeext |
9164 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9165 | (eval $ac_link) 2>conftest.er1 |
9166 | ac_status=$? |
9167 | grep -v '^ *+' conftest.er1 >conftest.err |
9168 | rm -f conftest.er1 |
9169 | cat conftest.err >&5 |
9170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9171 | (exit $ac_status); } && |
9172 | { ac_try='test -z "$ac_c_werror_flag" |
9173 | || test ! -s conftest.err' |
9174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9175 | (eval $ac_try) 2>&5 |
9176 | ac_status=$? |
9177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9178 | (exit $ac_status); }; } && |
9179 | { ac_try='test -s conftest$ac_exeext' |
9180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9181 | (eval $ac_try) 2>&5 |
9182 | ac_status=$? |
9183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9184 | (exit $ac_status); }; }; then |
9185 | ac_cv_lib_dld_dld_link=yes |
9186 | else |
9187 | echo "$as_me: failed program was:" >&5 |
9188 | sed 's/^/| /' conftest.$ac_ext >&5 |
9189 | |
9190 | ac_cv_lib_dld_dld_link=no |
9191 | fi |
9192 | rm -f conftest.err conftest.$ac_objext \ |
9193 | conftest$ac_exeext conftest.$ac_ext |
9194 | LIBS=$ac_check_lib_save_LIBS |
9195 | fi |
9196 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
9197 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
9198 | if test $ac_cv_lib_dld_dld_link = yes; then |
9199 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
9200 | fi |
9201 | |
9202 | |
9203 | fi |
9204 | |
9205 | |
9206 | fi |
9207 | |
9208 | |
9209 | fi |
9210 | |
9211 | |
9212 | fi |
9213 | |
9214 | |
9215 | fi |
9216 | |
9217 | ;; |
9218 | esac |
9219 | |
9220 | if test "x$lt_cv_dlopen" != xno; then |
9221 | enable_dlopen=yes |
9222 | else |
9223 | enable_dlopen=no |
9224 | fi |
9225 | |
9226 | case $lt_cv_dlopen in |
9227 | dlopen) |
9228 | save_CPPFLAGS="$CPPFLAGS" |
9229 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
9230 | |
9231 | save_LDFLAGS="$LDFLAGS" |
9232 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
9233 | |
9234 | save_LIBS="$LIBS" |
9235 | LIBS="$lt_cv_dlopen_libs $LIBS" |
9236 | |
9237 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
9238 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
9239 | if test "${lt_cv_dlopen_self+set}" = set; then |
9240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9241 | else |
9242 | if test "$cross_compiling" = yes; then : |
9243 | lt_cv_dlopen_self=cross |
9244 | else |
9245 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9246 | lt_status=$lt_dlunknown |
9247 | cat > conftest.$ac_ext <<EOF |
9248 | #line 9248 "configure" |
9249 | #include "confdefs.h" |
9250 | |
9251 | #if HAVE_DLFCN_H |
9252 | #include <dlfcn.h> |
9253 | #endif |
9254 | |
9255 | #include <stdio.h> |
9256 | |
9257 | #ifdef RTLD_GLOBAL |
9258 | # define LT_DLGLOBAL RTLD_GLOBAL |
9259 | #else |
9260 | # ifdef DL_GLOBAL |
9261 | # define LT_DLGLOBAL DL_GLOBAL |
9262 | # else |
9263 | # define LT_DLGLOBAL 0 |
9264 | # endif |
9265 | #endif |
9266 | |
9267 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9268 | find out it does not work in some platform. */ |
9269 | #ifndef LT_DLLAZY_OR_NOW |
9270 | # ifdef RTLD_LAZY |
9271 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
9272 | # else |
9273 | # ifdef DL_LAZY |
9274 | # define LT_DLLAZY_OR_NOW DL_LAZY |
9275 | # else |
9276 | # ifdef RTLD_NOW |
9277 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
9278 | # else |
9279 | # ifdef DL_NOW |
9280 | # define LT_DLLAZY_OR_NOW DL_NOW |
9281 | # else |
9282 | # define LT_DLLAZY_OR_NOW 0 |
9283 | # endif |
9284 | # endif |
9285 | # endif |
9286 | # endif |
9287 | #endif |
9288 | |
9289 | #ifdef __cplusplus |
9290 | extern "C" void exit (int); |
9291 | #endif |
9292 | |
9293 | void fnord() { int i=42;} |
9294 | int main () |
9295 | { |
9296 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
9297 | int status = $lt_dlunknown; |
9298 | |
9299 | if (self) |
9300 | { |
9301 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9302 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9303 | /* dlclose (self); */ |
9304 | } |
9305 | else |
9306 | puts (dlerror ()); |
9307 | |
9308 | exit (status); |
9309 | } |
9310 | EOF |
9311 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9312 | (eval $ac_link) 2>&5 |
9313 | ac_status=$? |
9314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9315 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9316 | (./conftest; exit; ) >&5 2>/dev/null |
9317 | lt_status=$? |
9318 | case x$lt_status in |
9319 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
9320 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
9321 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
9322 | esac |
9323 | else : |
9324 | # compilation failed |
9325 | lt_cv_dlopen_self=no |
9326 | fi |
9327 | fi |
9328 | rm -fr conftest* |
9329 | |
9330 | |
9331 | fi |
9332 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
9333 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
9334 | |
9335 | if test "x$lt_cv_dlopen_self" = xyes; then |
9336 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
9337 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
9338 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
9339 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
9340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9341 | else |
9342 | if test "$cross_compiling" = yes; then : |
9343 | lt_cv_dlopen_self_static=cross |
9344 | else |
9345 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9346 | lt_status=$lt_dlunknown |
9347 | cat > conftest.$ac_ext <<EOF |
9348 | #line 9348 "configure" |
9349 | #include "confdefs.h" |
9350 | |
9351 | #if HAVE_DLFCN_H |
9352 | #include <dlfcn.h> |
9353 | #endif |
9354 | |
9355 | #include <stdio.h> |
9356 | |
9357 | #ifdef RTLD_GLOBAL |
9358 | # define LT_DLGLOBAL RTLD_GLOBAL |
9359 | #else |
9360 | # ifdef DL_GLOBAL |
9361 | # define LT_DLGLOBAL DL_GLOBAL |
9362 | # else |
9363 | # define LT_DLGLOBAL 0 |
9364 | # endif |
9365 | #endif |
9366 | |
9367 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9368 | find out it does not work in some platform. */ |
9369 | #ifndef LT_DLLAZY_OR_NOW |
9370 | # ifdef RTLD_LAZY |
9371 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
9372 | # else |
9373 | # ifdef DL_LAZY |
9374 | # define LT_DLLAZY_OR_NOW DL_LAZY |
9375 | # else |
9376 | # ifdef RTLD_NOW |
9377 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
9378 | # else |
9379 | # ifdef DL_NOW |
9380 | # define LT_DLLAZY_OR_NOW DL_NOW |
9381 | # else |
9382 | # define LT_DLLAZY_OR_NOW 0 |
9383 | # endif |
9384 | # endif |
9385 | # endif |
9386 | # endif |
9387 | #endif |
9388 | |
9389 | #ifdef __cplusplus |
9390 | extern "C" void exit (int); |
9391 | #endif |
9392 | |
9393 | void fnord() { int i=42;} |
9394 | int main () |
9395 | { |
9396 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
9397 | int status = $lt_dlunknown; |
9398 | |
9399 | if (self) |
9400 | { |
9401 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9402 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9403 | /* dlclose (self); */ |
9404 | } |
9405 | else |
9406 | puts (dlerror ()); |
9407 | |
9408 | exit (status); |
9409 | } |
9410 | EOF |
9411 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9412 | (eval $ac_link) 2>&5 |
9413 | ac_status=$? |
9414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9415 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9416 | (./conftest; exit; ) >&5 2>/dev/null |
9417 | lt_status=$? |
9418 | case x$lt_status in |
9419 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
9420 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
9421 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
9422 | esac |
9423 | else : |
9424 | # compilation failed |
9425 | lt_cv_dlopen_self_static=no |
9426 | fi |
9427 | fi |
9428 | rm -fr conftest* |
9429 | |
9430 | |
9431 | fi |
9432 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
9433 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
9434 | fi |
9435 | |
9436 | CPPFLAGS="$save_CPPFLAGS" |
9437 | LDFLAGS="$save_LDFLAGS" |
9438 | LIBS="$save_LIBS" |
9439 | ;; |
9440 | esac |
9441 | |
9442 | case $lt_cv_dlopen_self in |
9443 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
9444 | *) enable_dlopen_self=unknown ;; |
9445 | esac |
9446 | |
9447 | case $lt_cv_dlopen_self_static in |
9448 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
9449 | *) enable_dlopen_self_static=unknown ;; |
9450 | esac |
9451 | fi |
9452 | |
9453 | |
9454 | # Report which library types will actually be built |
9455 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
9456 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
9457 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
9458 | echo "${ECHO_T}$can_build_shared" >&6 |
9459 | |
9460 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
9461 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
9462 | test "$can_build_shared" = "no" && enable_shared=no |
9463 | |
9464 | # On AIX, shared libraries and static libraries use the same namespace, and |
9465 | # are all built from PIC. |
9466 | case $host_os in |
9467 | aix3*) |
9468 | test "$enable_shared" = yes && enable_static=no |
9469 | if test -n "$RANLIB"; then |
9470 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
9471 | postinstall_cmds='$RANLIB $lib' |
9472 | fi |
9473 | ;; |
9474 | |
9475 | aix4* | aix5*) |
9476 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
9477 | test "$enable_shared" = yes && enable_static=no |
9478 | fi |
9479 | ;; |
9480 | esac |
9481 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
9482 | echo "${ECHO_T}$enable_shared" >&6 |
9483 | |
9484 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
9485 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
9486 | # Make sure either enable_shared or enable_static is yes. |
9487 | test "$enable_shared" = yes || enable_static=yes |
9488 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
9489 | echo "${ECHO_T}$enable_static" >&6 |
9490 | |
9491 | # The else clause should only fire when bootstrapping the |
9492 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
9493 | # with your package, and you will get complaints that there are |
9494 | # no rules to generate ltmain.sh. |
9495 | if test -f "$ltmain"; then |
9496 | # See if we are running on zsh, and set the options which allow our commands through |
9497 | # without removal of \ escapes. |
9498 | if test -n "${ZSH_VERSION+set}" ; then |
9499 | setopt NO_GLOB_SUBST |
9500 | fi |
9501 | # Now quote all the things that may contain metacharacters while being |
9502 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
9503 | # variables and quote the copies for generation of the libtool script. |
9504 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
9505 | SED SHELL STRIP \ |
9506 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
9507 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
9508 | deplibs_check_method reload_flag reload_cmds need_locks \ |
9509 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
9510 | lt_cv_sys_global_symbol_to_c_name_address \ |
9511 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
9512 | old_postinstall_cmds old_postuninstall_cmds \ |
9513 | compiler \ |
9514 | CC \ |
9515 | LD \ |
9516 | lt_prog_compiler_wl \ |
9517 | lt_prog_compiler_pic \ |
9518 | lt_prog_compiler_static \ |
9519 | lt_prog_compiler_no_builtin_flag \ |
9520 | export_dynamic_flag_spec \ |
9521 | thread_safe_flag_spec \ |
9522 | whole_archive_flag_spec \ |
9523 | enable_shared_with_static_runtimes \ |
9524 | old_archive_cmds \ |
9525 | old_archive_from_new_cmds \ |
9526 | predep_objects \ |
9527 | postdep_objects \ |
9528 | predeps \ |
9529 | postdeps \ |
9530 | compiler_lib_search_path \ |
9531 | archive_cmds \ |
9532 | archive_expsym_cmds \ |
9533 | postinstall_cmds \ |
9534 | postuninstall_cmds \ |
9535 | old_archive_from_expsyms_cmds \ |
9536 | allow_undefined_flag \ |
9537 | no_undefined_flag \ |
9538 | export_symbols_cmds \ |
9539 | hardcode_libdir_flag_spec \ |
9540 | hardcode_libdir_flag_spec_ld \ |
9541 | hardcode_libdir_separator \ |
9542 | hardcode_automatic \ |
9543 | module_cmds \ |
9544 | module_expsym_cmds \ |
9545 | lt_cv_prog_compiler_c_o \ |
9546 | exclude_expsyms \ |
9547 | include_expsyms; do |
9548 | |
9549 | case $var in |
9550 | old_archive_cmds | \ |
9551 | old_archive_from_new_cmds | \ |
9552 | archive_cmds | \ |
9553 | archive_expsym_cmds | \ |
9554 | module_cmds | \ |
9555 | module_expsym_cmds | \ |
9556 | old_archive_from_expsyms_cmds | \ |
9557 | export_symbols_cmds | \ |
9558 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
9559 | postinstall_cmds | postuninstall_cmds | \ |
9560 | old_postinstall_cmds | old_postuninstall_cmds | \ |
9561 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
9562 | # Double-quote double-evaled strings. |
9563 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
9564 | ;; |
9565 | *) |
9566 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
9567 | ;; |
9568 | esac |
9569 | done |
9570 | |
9571 | case $lt_echo in |
9572 | *'\$0 --fallback-echo"') |
9573 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
9574 | ;; |
9575 | esac |
9576 | |
9577 | cfgfile="${ofile}T" |
9578 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
9579 | $rm -f "$cfgfile" |
9580 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
9581 | echo "$as_me: creating $ofile" >&6;} |
9582 | |
9583 | cat <<__EOF__ >> "$cfgfile" |
9584 | #! $SHELL |
9585 | |
9586 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
9587 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
9588 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
9589 | # |
9590 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
9591 | # Free Software Foundation, Inc. |
9592 | # |
9593 | # This file is part of GNU Libtool: |
9594 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
9595 | # |
9596 | # This program is free software; you can redistribute it and/or modify |
9597 | # it under the terms of the GNU General Public License as published by |
9598 | # the Free Software Foundation; either version 2 of the License, or |
9599 | # (at your option) any later version. |
9600 | # |
9601 | # This program is distributed in the hope that it will be useful, but |
9602 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
9603 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
9604 | # General Public License for more details. |
9605 | # |
9606 | # You should have received a copy of the GNU General Public License |
9607 | # along with this program; if not, write to the Free Software |
9608 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
9609 | # |
9610 | # As a special exception to the GNU General Public License, if you |
9611 | # distribute this file as part of a program that contains a |
9612 | # configuration script generated by Autoconf, you may include it under |
9613 | # the same distribution terms that you use for the rest of that program. |
9614 | |
9615 | # A sed program that does not truncate output. |
9616 | SED=$lt_SED |
9617 | |
9618 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
9619 | Xsed="$SED -e 1s/^X//" |
9620 | |
9621 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
9622 | # if CDPATH is set. |
9623 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
9624 | |
9625 | # The names of the tagged configurations supported by this script. |
9626 | available_tags= |
9627 | |
9628 | # ### BEGIN LIBTOOL CONFIG |
9629 | |
9630 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
9631 | |
9632 | # Shell to use when invoking shell scripts. |
9633 | SHELL=$lt_SHELL |
9634 | |
9635 | # Whether or not to build shared libraries. |
9636 | build_libtool_libs=$enable_shared |
9637 | |
9638 | # Whether or not to build static libraries. |
9639 | build_old_libs=$enable_static |
9640 | |
9641 | # Whether or not to add -lc for building shared libraries. |
9642 | build_libtool_need_lc=$archive_cmds_need_lc |
9643 | |
9644 | # Whether or not to disallow shared libs when runtime libs are static |
9645 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
9646 | |
9647 | # Whether or not to optimize for fast installation. |
9648 | fast_install=$enable_fast_install |
9649 | |
9650 | # The host system. |
9651 | host_alias=$host_alias |
9652 | host=$host |
9653 | host_os=$host_os |
9654 | |
9655 | # The build system. |
9656 | build_alias=$build_alias |
9657 | build=$build |
9658 | build_os=$build_os |
9659 | |
9660 | # An echo program that does not interpret backslashes. |
9661 | echo=$lt_echo |
9662 | |
9663 | # The archiver. |
9664 | AR=$lt_AR |
9665 | AR_FLAGS=$lt_AR_FLAGS |
9666 | |
9667 | # A C compiler. |
9668 | LTCC=$lt_LTCC |
9669 | |
9670 | # LTCC compiler flags. |
9671 | LTCFLAGS=$lt_LTCFLAGS |
9672 | |
9673 | # A language-specific compiler. |
9674 | CC=$lt_compiler |
9675 | |
9676 | # Is the compiler the GNU C compiler? |
9677 | with_gcc=$GCC |
9678 | |
9679 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
9680 | gcc_ver=\`gcc -dumpversion\` |
9681 | |
9682 | # An ERE matcher. |
9683 | EGREP=$lt_EGREP |
9684 | |
9685 | # The linker used to build libraries. |
9686 | LD=$lt_LD |
9687 | |
9688 | # Whether we need hard or soft links. |
9689 | LN_S=$lt_LN_S |
9690 | |
9691 | # A BSD-compatible nm program. |
9692 | NM=$lt_NM |
9693 | |
9694 | # A symbol stripping program |
9695 | STRIP=$lt_STRIP |
9696 | |
9697 | # Used to examine libraries when file_magic_cmd begins "file" |
9698 | MAGIC_CMD=$MAGIC_CMD |
9699 | |
9700 | # Used on cygwin: DLL creation program. |
9701 | DLLTOOL="$DLLTOOL" |
9702 | |
9703 | # Used on cygwin: object dumper. |
9704 | OBJDUMP="$OBJDUMP" |
9705 | |
9706 | # Used on cygwin: assembler. |
9707 | AS="$AS" |
9708 | |
9709 | # The name of the directory that contains temporary libtool files. |
9710 | objdir=$objdir |
9711 | |
9712 | # How to create reloadable object files. |
9713 | reload_flag=$lt_reload_flag |
9714 | reload_cmds=$lt_reload_cmds |
9715 | |
9716 | # How to pass a linker flag through the compiler. |
9717 | wl=$lt_lt_prog_compiler_wl |
9718 | |
9719 | # Object file suffix (normally "o"). |
9720 | objext="$ac_objext" |
9721 | |
9722 | # Old archive suffix (normally "a"). |
9723 | libext="$libext" |
9724 | |
9725 | # Shared library suffix (normally ".so"). |
9726 | shrext_cmds='$shrext_cmds' |
9727 | |
9728 | # Executable file suffix (normally ""). |
9729 | exeext="$exeext" |
9730 | |
9731 | # Additional compiler flags for building library objects. |
9732 | pic_flag=$lt_lt_prog_compiler_pic |
9733 | pic_mode=$pic_mode |
9734 | |
9735 | # What is the maximum length of a command? |
9736 | max_cmd_len=$lt_cv_sys_max_cmd_len |
9737 | |
9738 | # Does compiler simultaneously support -c and -o options? |
9739 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
9740 | |
9741 | # Must we lock files when doing compilation? |
9742 | need_locks=$lt_need_locks |
9743 | |
9744 | # Do we need the lib prefix for modules? |
9745 | need_lib_prefix=$need_lib_prefix |
9746 | |
9747 | # Do we need a version for libraries? |
9748 | need_version=$need_version |
9749 | |
9750 | # Whether dlopen is supported. |
9751 | dlopen_support=$enable_dlopen |
9752 | |
9753 | # Whether dlopen of programs is supported. |
9754 | dlopen_self=$enable_dlopen_self |
9755 | |
9756 | # Whether dlopen of statically linked programs is supported. |
9757 | dlopen_self_static=$enable_dlopen_self_static |
9758 | |
9759 | # Compiler flag to prevent dynamic linking. |
9760 | link_static_flag=$lt_lt_prog_compiler_static |
9761 | |
9762 | # Compiler flag to turn off builtin functions. |
9763 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
9764 | |
9765 | # Compiler flag to allow reflexive dlopens. |
9766 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
9767 | |
9768 | # Compiler flag to generate shared objects directly from archives. |
9769 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
9770 | |
9771 | # Compiler flag to generate thread-safe objects. |
9772 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
9773 | |
9774 | # Library versioning type. |
9775 | version_type=$version_type |
9776 | |
9777 | # Format of library name prefix. |
9778 | libname_spec=$lt_libname_spec |
9779 | |
9780 | # List of archive names. First name is the real one, the rest are links. |
9781 | # The last name is the one that the linker finds with -lNAME. |
9782 | library_names_spec=$lt_library_names_spec |
9783 | |
9784 | # The coded name of the library, if different from the real name. |
9785 | soname_spec=$lt_soname_spec |
9786 | |
9787 | # Commands used to build and install an old-style archive. |
9788 | RANLIB=$lt_RANLIB |
9789 | old_archive_cmds=$lt_old_archive_cmds |
9790 | old_postinstall_cmds=$lt_old_postinstall_cmds |
9791 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
9792 | |
9793 | # Create an old-style archive from a shared archive. |
9794 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
9795 | |
9796 | # Create a temporary old-style archive to link instead of a shared archive. |
9797 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
9798 | |
9799 | # Commands used to build and install a shared archive. |
9800 | archive_cmds=$lt_archive_cmds |
9801 | archive_expsym_cmds=$lt_archive_expsym_cmds |
9802 | postinstall_cmds=$lt_postinstall_cmds |
9803 | postuninstall_cmds=$lt_postuninstall_cmds |
9804 | |
9805 | # Commands used to build a loadable module (assumed same as above if empty) |
9806 | module_cmds=$lt_module_cmds |
9807 | module_expsym_cmds=$lt_module_expsym_cmds |
9808 | |
9809 | # Commands to strip libraries. |
9810 | old_striplib=$lt_old_striplib |
9811 | striplib=$lt_striplib |
9812 | |
9813 | # Dependencies to place before the objects being linked to create a |
9814 | # shared library. |
9815 | predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
9816 | |
9817 | # Dependencies to place after the objects being linked to create a |
9818 | # shared library. |
9819 | postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
9820 | |
9821 | # Dependencies to place before the objects being linked to create a |
9822 | # shared library. |
9823 | predeps=$lt_predeps |
9824 | |
9825 | # Dependencies to place after the objects being linked to create a |
9826 | # shared library. |
9827 | postdeps=$lt_postdeps |
9828 | |
9829 | # The library search path used internally by the compiler when linking |
9830 | # a shared library. |
9831 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
9832 | |
9833 | # Method to check whether dependent libraries are shared objects. |
9834 | deplibs_check_method=$lt_deplibs_check_method |
9835 | |
9836 | # Command to use when deplibs_check_method == file_magic. |
9837 | file_magic_cmd=$lt_file_magic_cmd |
9838 | |
9839 | # Flag that allows shared libraries with undefined symbols to be built. |
9840 | allow_undefined_flag=$lt_allow_undefined_flag |
9841 | |
9842 | # Flag that forces no undefined symbols. |
9843 | no_undefined_flag=$lt_no_undefined_flag |
9844 | |
9845 | # Commands used to finish a libtool library installation in a directory. |
9846 | finish_cmds=$lt_finish_cmds |
9847 | |
9848 | # Same as above, but a single script fragment to be evaled but not shown. |
9849 | finish_eval=$lt_finish_eval |
9850 | |
9851 | # Take the output of nm and produce a listing of raw symbols and C names. |
9852 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
9853 | |
9854 | # Transform the output of nm in a proper C declaration |
9855 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
9856 | |
9857 | # Transform the output of nm in a C name address pair |
9858 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
9859 | |
9860 | # This is the shared library runtime path variable. |
9861 | runpath_var=$runpath_var |
9862 | |
9863 | # This is the shared library path variable. |
9864 | shlibpath_var=$shlibpath_var |
9865 | |
9866 | # Is shlibpath searched before the hard-coded library search path? |
9867 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
9868 | |
9869 | # How to hardcode a shared library path into an executable. |
9870 | hardcode_action=$hardcode_action |
9871 | |
9872 | # Whether we should hardcode library paths into libraries. |
9873 | hardcode_into_libs=$hardcode_into_libs |
9874 | |
9875 | # Flag to hardcode \$libdir into a binary during linking. |
9876 | # This must work even if \$libdir does not exist. |
9877 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
9878 | |
9879 | # If ld is used when linking, flag to hardcode \$libdir into |
9880 | # a binary during linking. This must work even if \$libdir does |
9881 | # not exist. |
9882 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
9883 | |
9884 | # Whether we need a single -rpath flag with a separated argument. |
9885 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
9886 | |
9887 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
9888 | # resulting binary. |
9889 | hardcode_direct=$hardcode_direct |
9890 | |
9891 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
9892 | # resulting binary. |
9893 | hardcode_minus_L=$hardcode_minus_L |
9894 | |
9895 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
9896 | # the resulting binary. |
9897 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
9898 | |
9899 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
9900 | # and all subsequent libraries and executables linked against it. |
9901 | hardcode_automatic=$hardcode_automatic |
9902 | |
9903 | # Variables whose values should be saved in libtool wrapper scripts and |
9904 | # restored at relink time. |
9905 | variables_saved_for_relink="$variables_saved_for_relink" |
9906 | |
9907 | # Whether libtool must link a program against all its dependency libraries. |
9908 | link_all_deplibs=$link_all_deplibs |
9909 | |
9910 | # Compile-time system search path for libraries |
9911 | 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"\` |
9912 | |
9913 | # Run-time system search path for libraries |
9914 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
9915 | |
9916 | # Fix the shell variable \$srcfile for the compiler. |
9917 | fix_srcfile_path="$fix_srcfile_path" |
9918 | |
9919 | # Set to yes if exported symbols are required. |
9920 | always_export_symbols=$always_export_symbols |
9921 | |
9922 | # The commands to list exported symbols. |
9923 | export_symbols_cmds=$lt_export_symbols_cmds |
9924 | |
9925 | # The commands to extract the exported symbol list from a shared archive. |
9926 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
9927 | |
9928 | # Symbols that should not be listed in the preloaded symbols. |
9929 | exclude_expsyms=$lt_exclude_expsyms |
9930 | |
9931 | # Symbols that must always be exported. |
9932 | include_expsyms=$lt_include_expsyms |
9933 | |
9934 | # ### END LIBTOOL CONFIG |
9935 | |
9936 | __EOF__ |
9937 | |
9938 | |
9939 | case $host_os in |
9940 | aix3*) |
9941 | cat <<\EOF >> "$cfgfile" |
9942 | |
9943 | # AIX sometimes has problems with the GCC collect2 program. For some |
9944 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
9945 | # vanish in a puff of smoke. |
9946 | if test "X${COLLECT_NAMES+set}" != Xset; then |
9947 | COLLECT_NAMES= |
9948 | export COLLECT_NAMES |
9949 | fi |
9950 | EOF |
9951 | ;; |
9952 | esac |
9953 | |
9954 | # We use sed instead of cat because bash on DJGPP gets confused if |
9955 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
9956 | # text mode, it properly converts lines to CR/LF. This bash problem |
9957 | # is reportedly fixed, but why not run on old versions too? |
9958 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
9959 | |
9960 | mv -f "$cfgfile" "$ofile" || \ |
9961 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
9962 | chmod +x "$ofile" |
9963 | |
9964 | else |
9965 | # If there is no Makefile yet, we rely on a make rule to execute |
9966 | # `config.status --recheck' to rerun these tests and create the |
9967 | # libtool script then. |
9968 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
9969 | if test -f "$ltmain_in"; then |
9970 | test -f Makefile && make "$ltmain" |
9971 | fi |
9972 | fi |
9973 | |
9974 | |
9975 | ac_ext=c |
9976 | ac_cpp='$CPP $CPPFLAGS' |
9977 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9978 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9979 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
9980 | |
9981 | CC="$lt_save_CC" |
9982 | |
9983 | |
9984 | # Check whether --with-tags or --without-tags was given. |
9985 | if test "${with_tags+set}" = set; then |
9986 | withval="$with_tags" |
9987 | tagnames="$withval" |
9988 | fi; |
9989 | |
9990 | if test -f "$ltmain" && test -n "$tagnames"; then |
9991 | if test ! -f "${ofile}"; then |
9992 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
9993 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
9994 | fi |
9995 | |
9996 | if test -z "$LTCC"; then |
9997 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
9998 | if test -z "$LTCC"; then |
9999 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
10000 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
10001 | else |
10002 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
10003 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
10004 | fi |
10005 | fi |
10006 | if test -z "$LTCFLAGS"; then |
10007 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
10008 | fi |
10009 | |
10010 | # Extract list of available tagged configurations in $ofile. |
10011 | # Note that this assumes the entire list is on one line. |
10012 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
10013 | |
10014 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
10015 | for tagname in $tagnames; do |
10016 | IFS="$lt_save_ifs" |
10017 | # Check whether tagname contains only valid characters |
10018 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
10019 | "") ;; |
10020 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
10021 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
10022 | { (exit 1); exit 1; }; } |
10023 | ;; |
10024 | esac |
10025 | |
10026 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
10027 | then |
10028 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
10029 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
10030 | { (exit 1); exit 1; }; } |
10031 | fi |
10032 | |
10033 | # Update the list of available tags. |
10034 | if test -n "$tagname"; then |
10035 | echo appending configuration tag \"$tagname\" to $ofile |
10036 | |
10037 | case $tagname in |
10038 | CXX) |
10039 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
10040 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
10041 | (test "X$CXX" != "Xg++"))) ; then |
10042 | ac_ext=cc |
10043 | ac_cpp='$CXXCPP $CPPFLAGS' |
10044 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10045 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10046 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10047 | |
10048 | |
10049 | |
10050 | |
10051 | archive_cmds_need_lc_CXX=no |
10052 | allow_undefined_flag_CXX= |
10053 | always_export_symbols_CXX=no |
10054 | archive_expsym_cmds_CXX= |
10055 | export_dynamic_flag_spec_CXX= |
10056 | hardcode_direct_CXX=no |
10057 | hardcode_libdir_flag_spec_CXX= |
10058 | hardcode_libdir_flag_spec_ld_CXX= |
10059 | hardcode_libdir_separator_CXX= |
10060 | hardcode_minus_L_CXX=no |
10061 | hardcode_shlibpath_var_CXX=unsupported |
10062 | hardcode_automatic_CXX=no |
10063 | module_cmds_CXX= |
10064 | module_expsym_cmds_CXX= |
10065 | link_all_deplibs_CXX=unknown |
10066 | old_archive_cmds_CXX=$old_archive_cmds |
10067 | no_undefined_flag_CXX= |
10068 | whole_archive_flag_spec_CXX= |
10069 | enable_shared_with_static_runtimes_CXX=no |
10070 | |
10071 | # Dependencies to place before and after the object being linked: |
10072 | predep_objects_CXX= |
10073 | postdep_objects_CXX= |
10074 | predeps_CXX= |
10075 | postdeps_CXX= |
10076 | compiler_lib_search_path_CXX= |
10077 | |
10078 | # Source file extension for C++ test sources. |
10079 | ac_ext=cpp |
10080 | |
10081 | # Object file extension for compiled C++ test sources. |
10082 | objext=o |
10083 | objext_CXX=$objext |
10084 | |
10085 | # Code to be used in simple compile tests |
10086 | lt_simple_compile_test_code="int some_variable = 0;\n" |
10087 | |
10088 | # Code to be used in simple link tests |
10089 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
10090 | |
10091 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
10092 | |
10093 | # If no C compiler was specified, use CC. |
10094 | LTCC=${LTCC-"$CC"} |
10095 | |
10096 | # If no C compiler flags were specified, use CFLAGS. |
10097 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
10098 | |
10099 | # Allow CC to be a program name with arguments. |
10100 | compiler=$CC |
10101 | |
10102 | |
10103 | # save warnings/boilerplate of simple test code |
10104 | ac_outfile=conftest.$ac_objext |
10105 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
10106 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10107 | _lt_compiler_boilerplate=`cat conftest.err` |
10108 | $rm conftest* |
10109 | |
10110 | ac_outfile=conftest.$ac_objext |
10111 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
10112 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10113 | _lt_linker_boilerplate=`cat conftest.err` |
10114 | $rm conftest* |
10115 | |
10116 | |
10117 | # Allow CC to be a program name with arguments. |
10118 | lt_save_CC=$CC |
10119 | lt_save_LD=$LD |
10120 | lt_save_GCC=$GCC |
10121 | GCC=$GXX |
10122 | lt_save_with_gnu_ld=$with_gnu_ld |
10123 | lt_save_path_LD=$lt_cv_path_LD |
10124 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
10125 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
10126 | else |
10127 | $as_unset lt_cv_prog_gnu_ld |
10128 | fi |
10129 | if test -n "${lt_cv_path_LDCXX+set}"; then |
10130 | lt_cv_path_LD=$lt_cv_path_LDCXX |
10131 | else |
10132 | $as_unset lt_cv_path_LD |
10133 | fi |
10134 | test -z "${LDCXX+set}" || LD=$LDCXX |
10135 | CC=${CXX-"c++"} |
10136 | compiler=$CC |
10137 | compiler_CXX=$CC |
10138 | for cc_temp in $compiler""; do |
10139 | case $cc_temp in |
10140 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
10141 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
10142 | \-*) ;; |
10143 | *) break;; |
10144 | esac |
10145 | done |
10146 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
10147 | |
10148 | |
10149 | # We don't want -fno-exception wen compiling C++ code, so set the |
10150 | # no_builtin_flag separately |
10151 | if test "$GXX" = yes; then |
10152 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
10153 | else |
10154 | lt_prog_compiler_no_builtin_flag_CXX= |
10155 | fi |
10156 | |
10157 | if test "$GXX" = yes; then |
10158 | # Set up default GNU C++ configuration |
10159 | |
10160 | |
10161 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
10162 | if test "${with_gnu_ld+set}" = set; then |
10163 | withval="$with_gnu_ld" |
10164 | test "$withval" = no || with_gnu_ld=yes |
10165 | else |
10166 | with_gnu_ld=no |
10167 | fi; |
10168 | ac_prog=ld |
10169 | if test "$GCC" = yes; then |
10170 | # Check if gcc -print-prog-name=ld gives a path. |
10171 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
10172 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
10173 | case $host in |
10174 | *-*-mingw*) |
10175 | # gcc leaves a trailing carriage return which upsets mingw |
10176 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
10177 | *) |
10178 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
10179 | esac |
10180 | case $ac_prog in |
10181 | # Accept absolute paths. |
10182 | [\\/]* | ?:[\\/]*) |
10183 | re_direlt='/[^/][^/]*/\.\./' |
10184 | # Canonicalize the pathname of ld |
10185 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
10186 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
10187 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
10188 | done |
10189 | test -z "$LD" && LD="$ac_prog" |
10190 | ;; |
10191 | "") |
10192 | # If it fails, then pretend we aren't using GCC. |
10193 | ac_prog=ld |
10194 | ;; |
10195 | *) |
10196 | # If it is relative, then search for the first ld in PATH. |
10197 | with_gnu_ld=unknown |
10198 | ;; |
10199 | esac |
10200 | elif test "$with_gnu_ld" = yes; then |
10201 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
10202 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
10203 | else |
10204 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
10205 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
10206 | fi |
10207 | if test "${lt_cv_path_LD+set}" = set; then |
10208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10209 | else |
10210 | if test -z "$LD"; then |
10211 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
10212 | for ac_dir in $PATH; do |
10213 | IFS="$lt_save_ifs" |
10214 | test -z "$ac_dir" && ac_dir=. |
10215 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
10216 | lt_cv_path_LD="$ac_dir/$ac_prog" |
10217 | # Check to see if the program is GNU ld. I'd rather use --version, |
10218 | # but apparently some variants of GNU ld only accept -v. |
10219 | # Break only if it was the GNU/non-GNU ld that we prefer. |
10220 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
10221 | *GNU* | *'with BFD'*) |
10222 | test "$with_gnu_ld" != no && break |
10223 | ;; |
10224 | *) |
10225 | test "$with_gnu_ld" != yes && break |
10226 | ;; |
10227 | esac |
10228 | fi |
10229 | done |
10230 | IFS="$lt_save_ifs" |
10231 | else |
10232 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
10233 | fi |
10234 | fi |
10235 | |
10236 | LD="$lt_cv_path_LD" |
10237 | if test -n "$LD"; then |
10238 | echo "$as_me:$LINENO: result: $LD" >&5 |
10239 | echo "${ECHO_T}$LD" >&6 |
10240 | else |
10241 | echo "$as_me:$LINENO: result: no" >&5 |
10242 | echo "${ECHO_T}no" >&6 |
10243 | fi |
10244 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
10245 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
10246 | { (exit 1); exit 1; }; } |
10247 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
10248 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
10249 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
10250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10251 | else |
10252 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
10253 | case `$LD -v 2>&1 </dev/null` in |
10254 | *GNU* | *'with BFD'*) |
10255 | lt_cv_prog_gnu_ld=yes |
10256 | ;; |
10257 | *) |
10258 | lt_cv_prog_gnu_ld=no |
10259 | ;; |
10260 | esac |
10261 | fi |
10262 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
10263 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
10264 | with_gnu_ld=$lt_cv_prog_gnu_ld |
10265 | |
10266 | |
10267 | |
10268 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
10269 | # archiving commands below assume that GNU ld is being used. |
10270 | if test "$with_gnu_ld" = yes; then |
10271 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10272 | 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' |
10273 | |
10274 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
10275 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10276 | |
10277 | # If archive_cmds runs LD, not CC, wlarc should be empty |
10278 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
10279 | # investigate it a little bit more. (MM) |
10280 | wlarc='${wl}' |
10281 | |
10282 | # ancient GNU ld didn't support --whole-archive et. al. |
10283 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
10284 | grep 'no-whole-archive' > /dev/null; then |
10285 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
10286 | else |
10287 | whole_archive_flag_spec_CXX= |
10288 | fi |
10289 | else |
10290 | with_gnu_ld=no |
10291 | wlarc= |
10292 | |
10293 | # A generic and very simple default shared library creation |
10294 | # command for GNU C++ for the case where it uses the native |
10295 | # linker, instead of GNU ld. If possible, this setting should |
10296 | # overridden to take advantage of the native linker features on |
10297 | # the platform it is being used on. |
10298 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
10299 | fi |
10300 | |
10301 | # Commands to make compiler produce verbose output that lists |
10302 | # what "hidden" libraries, object files and flags are used when |
10303 | # linking a shared library. |
10304 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
10305 | |
10306 | else |
10307 | GXX=no |
10308 | with_gnu_ld=no |
10309 | wlarc= |
10310 | fi |
10311 | |
10312 | # PORTME: fill in a description of your system's C++ link characteristics |
10313 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
10314 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
10315 | ld_shlibs_CXX=yes |
10316 | case $host_os in |
10317 | aix3*) |
10318 | # FIXME: insert proper C++ library support |
10319 | ld_shlibs_CXX=no |
10320 | ;; |
10321 | aix4* | aix5*) |
10322 | if test "$host_cpu" = ia64; then |
10323 | # On IA64, the linker does run time linking by default, so we don't |
10324 | # have to do anything special. |
10325 | aix_use_runtimelinking=no |
10326 | exp_sym_flag='-Bexport' |
10327 | no_entry_flag="" |
10328 | else |
10329 | aix_use_runtimelinking=no |
10330 | |
10331 | # Test if we are trying to use run time linking or normal |
10332 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
10333 | # need to do runtime linking. |
10334 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
10335 | for ld_flag in $LDFLAGS; do |
10336 | case $ld_flag in |
10337 | *-brtl*) |
10338 | aix_use_runtimelinking=yes |
10339 | break |
10340 | ;; |
10341 | esac |
10342 | done |
10343 | ;; |
10344 | esac |
10345 | |
10346 | exp_sym_flag='-bexport' |
10347 | no_entry_flag='-bnoentry' |
10348 | fi |
10349 | |
10350 | # When large executables or shared objects are built, AIX ld can |
10351 | # have problems creating the table of contents. If linking a library |
10352 | # or program results in "error TOC overflow" add -mminimal-toc to |
10353 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
10354 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
10355 | |
10356 | archive_cmds_CXX='' |
10357 | hardcode_direct_CXX=yes |
10358 | hardcode_libdir_separator_CXX=':' |
10359 | link_all_deplibs_CXX=yes |
10360 | |
10361 | if test "$GXX" = yes; then |
10362 | case $host_os in aix4.[012]|aix4.[012].*) |
10363 | # We only want to do this on AIX 4.2 and lower, the check |
10364 | # below for broken collect2 doesn't work under 4.3+ |
10365 | collect2name=`${CC} -print-prog-name=collect2` |
10366 | if test -f "$collect2name" && \ |
10367 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
10368 | then |
10369 | # We have reworked collect2 |
10370 | hardcode_direct_CXX=yes |
10371 | else |
10372 | # We have old collect2 |
10373 | hardcode_direct_CXX=unsupported |
10374 | # It fails to find uninstalled libraries when the uninstalled |
10375 | # path is not listed in the libpath. Setting hardcode_minus_L |
10376 | # to unsupported forces relinking |
10377 | hardcode_minus_L_CXX=yes |
10378 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
10379 | hardcode_libdir_separator_CXX= |
10380 | fi |
10381 | ;; |
10382 | esac |
10383 | shared_flag='-shared' |
10384 | if test "$aix_use_runtimelinking" = yes; then |
10385 | shared_flag="$shared_flag "'${wl}-G' |
10386 | fi |
10387 | else |
10388 | # not using gcc |
10389 | if test "$host_cpu" = ia64; then |
10390 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
10391 | # chokes on -Wl,-G. The following line is correct: |
10392 | shared_flag='-G' |
10393 | else |
10394 | if test "$aix_use_runtimelinking" = yes; then |
10395 | shared_flag='${wl}-G' |
10396 | else |
10397 | shared_flag='${wl}-bM:SRE' |
10398 | fi |
10399 | fi |
10400 | fi |
10401 | |
10402 | # It seems that -bexpall does not export symbols beginning with |
10403 | # underscore (_), so it is better to generate a list of symbols to export. |
10404 | always_export_symbols_CXX=yes |
10405 | if test "$aix_use_runtimelinking" = yes; then |
10406 | # Warning - without using the other runtime loading flags (-brtl), |
10407 | # -berok will link without error, but may produce a broken library. |
10408 | allow_undefined_flag_CXX='-berok' |
10409 | # Determine the default libpath from the value encoded in an empty executable. |
10410 | cat >conftest.$ac_ext <<_ACEOF |
10411 | /* confdefs.h. */ |
10412 | _ACEOF |
10413 | cat confdefs.h >>conftest.$ac_ext |
10414 | cat >>conftest.$ac_ext <<_ACEOF |
10415 | /* end confdefs.h. */ |
10416 | |
10417 | int |
10418 | main () |
10419 | { |
10420 | |
10421 | ; |
10422 | return 0; |
10423 | } |
10424 | _ACEOF |
10425 | rm -f conftest.$ac_objext conftest$ac_exeext |
10426 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10427 | (eval $ac_link) 2>conftest.er1 |
10428 | ac_status=$? |
10429 | grep -v '^ *+' conftest.er1 >conftest.err |
10430 | rm -f conftest.er1 |
10431 | cat conftest.err >&5 |
10432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10433 | (exit $ac_status); } && |
10434 | { ac_try='test -z "$ac_cxx_werror_flag" |
10435 | || test ! -s conftest.err' |
10436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10437 | (eval $ac_try) 2>&5 |
10438 | ac_status=$? |
10439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10440 | (exit $ac_status); }; } && |
10441 | { ac_try='test -s conftest$ac_exeext' |
10442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10443 | (eval $ac_try) 2>&5 |
10444 | ac_status=$? |
10445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10446 | (exit $ac_status); }; }; then |
10447 | |
10448 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
10449 | }'` |
10450 | # Check for a 64-bit object if we didn't find anything. |
10451 | 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; } |
10452 | }'`; fi |
10453 | else |
10454 | echo "$as_me: failed program was:" >&5 |
10455 | sed 's/^/| /' conftest.$ac_ext >&5 |
10456 | |
10457 | fi |
10458 | rm -f conftest.err conftest.$ac_objext \ |
10459 | conftest$ac_exeext conftest.$ac_ext |
10460 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10461 | |
10462 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
10463 | |
10464 | 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" |
10465 | else |
10466 | if test "$host_cpu" = ia64; then |
10467 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
10468 | allow_undefined_flag_CXX="-z nodefs" |
10469 | 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" |
10470 | else |
10471 | # Determine the default libpath from the value encoded in an empty executable. |
10472 | cat >conftest.$ac_ext <<_ACEOF |
10473 | /* confdefs.h. */ |
10474 | _ACEOF |
10475 | cat confdefs.h >>conftest.$ac_ext |
10476 | cat >>conftest.$ac_ext <<_ACEOF |
10477 | /* end confdefs.h. */ |
10478 | |
10479 | int |
10480 | main () |
10481 | { |
10482 | |
10483 | ; |
10484 | return 0; |
10485 | } |
10486 | _ACEOF |
10487 | rm -f conftest.$ac_objext conftest$ac_exeext |
10488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10489 | (eval $ac_link) 2>conftest.er1 |
10490 | ac_status=$? |
10491 | grep -v '^ *+' conftest.er1 >conftest.err |
10492 | rm -f conftest.er1 |
10493 | cat conftest.err >&5 |
10494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10495 | (exit $ac_status); } && |
10496 | { ac_try='test -z "$ac_cxx_werror_flag" |
10497 | || test ! -s conftest.err' |
10498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10499 | (eval $ac_try) 2>&5 |
10500 | ac_status=$? |
10501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10502 | (exit $ac_status); }; } && |
10503 | { ac_try='test -s conftest$ac_exeext' |
10504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10505 | (eval $ac_try) 2>&5 |
10506 | ac_status=$? |
10507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10508 | (exit $ac_status); }; }; then |
10509 | |
10510 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
10511 | }'` |
10512 | # Check for a 64-bit object if we didn't find anything. |
10513 | 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; } |
10514 | }'`; fi |
10515 | else |
10516 | echo "$as_me: failed program was:" >&5 |
10517 | sed 's/^/| /' conftest.$ac_ext >&5 |
10518 | |
10519 | fi |
10520 | rm -f conftest.err conftest.$ac_objext \ |
10521 | conftest$ac_exeext conftest.$ac_ext |
10522 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10523 | |
10524 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
10525 | # Warning - without using the other run time loading flags, |
10526 | # -berok will link without error, but may produce a broken library. |
10527 | no_undefined_flag_CXX=' ${wl}-bernotok' |
10528 | allow_undefined_flag_CXX=' ${wl}-berok' |
10529 | # Exported symbols can be pulled into shared objects from archives |
10530 | whole_archive_flag_spec_CXX='$convenience' |
10531 | archive_cmds_need_lc_CXX=yes |
10532 | # This is similar to how AIX traditionally builds its shared libraries. |
10533 | 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' |
10534 | fi |
10535 | fi |
10536 | ;; |
10537 | |
10538 | beos*) |
10539 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
10540 | allow_undefined_flag_CXX=unsupported |
10541 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
10542 | # support --undefined. This deserves some investigation. FIXME |
10543 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10544 | else |
10545 | ld_shlibs_CXX=no |
10546 | fi |
10547 | ;; |
10548 | |
10549 | chorus*) |
10550 | case $cc_basename in |
10551 | *) |
10552 | # FIXME: insert proper C++ library support |
10553 | ld_shlibs_CXX=no |
10554 | ;; |
10555 | esac |
10556 | ;; |
10557 | |
10558 | cygwin* | mingw* | pw32*) |
10559 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
10560 | # as there is no search path for DLLs. |
10561 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
10562 | allow_undefined_flag_CXX=unsupported |
10563 | always_export_symbols_CXX=no |
10564 | enable_shared_with_static_runtimes_CXX=yes |
10565 | |
10566 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
10567 | 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' |
10568 | # If the export-symbols file already is a .def file (1st line |
10569 | # is EXPORTS), use it as is; otherwise, prepend... |
10570 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
10571 | cp $export_symbols $output_objdir/$soname.def; |
10572 | else |
10573 | echo EXPORTS > $output_objdir/$soname.def; |
10574 | cat $export_symbols >> $output_objdir/$soname.def; |
10575 | fi~ |
10576 | $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' |
10577 | else |
10578 | ld_shlibs_CXX=no |
10579 | fi |
10580 | ;; |
10581 | darwin* | rhapsody*) |
10582 | case $host_os in |
10583 | rhapsody* | darwin1.[012]) |
10584 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
10585 | ;; |
10586 | *) # Darwin 1.3 on |
10587 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
10588 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
10589 | else |
10590 | case ${MACOSX_DEPLOYMENT_TARGET} in |
10591 | 10.[012]) |
10592 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
10593 | ;; |
10594 | 10.*) |
10595 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
10596 | ;; |
10597 | esac |
10598 | fi |
10599 | ;; |
10600 | esac |
10601 | archive_cmds_need_lc_CXX=no |
10602 | hardcode_direct_CXX=no |
10603 | hardcode_automatic_CXX=yes |
10604 | hardcode_shlibpath_var_CXX=unsupported |
10605 | whole_archive_flag_spec_CXX='' |
10606 | link_all_deplibs_CXX=yes |
10607 | |
10608 | if test "$GXX" = yes ; then |
10609 | lt_int_apple_cc_single_mod=no |
10610 | output_verbose_link_cmd='echo' |
10611 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
10612 | lt_int_apple_cc_single_mod=yes |
10613 | fi |
10614 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
10615 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
10616 | else |
10617 | 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' |
10618 | fi |
10619 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
10620 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
10621 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
10622 | 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}' |
10623 | else |
10624 | 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}' |
10625 | fi |
10626 | 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}' |
10627 | else |
10628 | case $cc_basename in |
10629 | xlc*) |
10630 | output_verbose_link_cmd='echo' |
10631 | 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' |
10632 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
10633 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
10634 | 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}' |
10635 | 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}' |
10636 | ;; |
10637 | *) |
10638 | ld_shlibs_CXX=no |
10639 | ;; |
10640 | esac |
10641 | fi |
10642 | ;; |
10643 | |
10644 | dgux*) |
10645 | case $cc_basename in |
10646 | ec++*) |
10647 | # FIXME: insert proper C++ library support |
10648 | ld_shlibs_CXX=no |
10649 | ;; |
10650 | ghcx*) |
10651 | # Green Hills C++ Compiler |
10652 | # FIXME: insert proper C++ library support |
10653 | ld_shlibs_CXX=no |
10654 | ;; |
10655 | *) |
10656 | # FIXME: insert proper C++ library support |
10657 | ld_shlibs_CXX=no |
10658 | ;; |
10659 | esac |
10660 | ;; |
10661 | freebsd[12]*) |
10662 | # C++ shared libraries reported to be fairly broken before switch to ELF |
10663 | ld_shlibs_CXX=no |
10664 | ;; |
10665 | freebsd-elf*) |
10666 | archive_cmds_need_lc_CXX=no |
10667 | ;; |
10668 | freebsd* | kfreebsd*-gnu | dragonfly*) |
10669 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
10670 | # conventions |
10671 | ld_shlibs_CXX=yes |
10672 | ;; |
10673 | gnu*) |
10674 | ;; |
10675 | hpux9*) |
10676 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
10677 | hardcode_libdir_separator_CXX=: |
10678 | export_dynamic_flag_spec_CXX='${wl}-E' |
10679 | hardcode_direct_CXX=yes |
10680 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
10681 | # but as the default |
10682 | # location of the library. |
10683 | |
10684 | case $cc_basename in |
10685 | CC*) |
10686 | # FIXME: insert proper C++ library support |
10687 | ld_shlibs_CXX=no |
10688 | ;; |
10689 | aCC*) |
10690 | 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' |
10691 | # Commands to make compiler produce verbose output that lists |
10692 | # what "hidden" libraries, object files and flags are used when |
10693 | # linking a shared library. |
10694 | # |
10695 | # There doesn't appear to be a way to prevent this compiler from |
10696 | # explicitly linking system object files so we need to strip them |
10697 | # from the output so that they don't get included in the library |
10698 | # dependencies. |
10699 | 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' |
10700 | ;; |
10701 | *) |
10702 | if test "$GXX" = yes; then |
10703 | 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' |
10704 | else |
10705 | # FIXME: insert proper C++ library support |
10706 | ld_shlibs_CXX=no |
10707 | fi |
10708 | ;; |
10709 | esac |
10710 | ;; |
10711 | hpux10*|hpux11*) |
10712 | if test $with_gnu_ld = no; then |
10713 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
10714 | hardcode_libdir_separator_CXX=: |
10715 | |
10716 | case $host_cpu in |
10717 | hppa*64*|ia64*) |
10718 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
10719 | ;; |
10720 | *) |
10721 | export_dynamic_flag_spec_CXX='${wl}-E' |
10722 | ;; |
10723 | esac |
10724 | fi |
10725 | case $host_cpu in |
10726 | hppa*64*|ia64*) |
10727 | hardcode_direct_CXX=no |
10728 | hardcode_shlibpath_var_CXX=no |
10729 | ;; |
10730 | *) |
10731 | hardcode_direct_CXX=yes |
10732 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
10733 | # but as the default |
10734 | # location of the library. |
10735 | ;; |
10736 | esac |
10737 | |
10738 | case $cc_basename in |
10739 | CC*) |
10740 | # FIXME: insert proper C++ library support |
10741 | ld_shlibs_CXX=no |
10742 | ;; |
10743 | aCC*) |
10744 | case $host_cpu in |
10745 | hppa*64*) |
10746 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10747 | ;; |
10748 | ia64*) |
10749 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10750 | ;; |
10751 | *) |
10752 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10753 | ;; |
10754 | esac |
10755 | # Commands to make compiler produce verbose output that lists |
10756 | # what "hidden" libraries, object files and flags are used when |
10757 | # linking a shared library. |
10758 | # |
10759 | # There doesn't appear to be a way to prevent this compiler from |
10760 | # explicitly linking system object files so we need to strip them |
10761 | # from the output so that they don't get included in the library |
10762 | # dependencies. |
10763 | 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' |
10764 | ;; |
10765 | *) |
10766 | if test "$GXX" = yes; then |
10767 | if test $with_gnu_ld = no; then |
10768 | case $host_cpu in |
10769 | hppa*64*) |
10770 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10771 | ;; |
10772 | ia64*) |
10773 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10774 | ;; |
10775 | *) |
10776 | 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' |
10777 | ;; |
10778 | esac |
10779 | fi |
10780 | else |
10781 | # FIXME: insert proper C++ library support |
10782 | ld_shlibs_CXX=no |
10783 | fi |
10784 | ;; |
10785 | esac |
10786 | ;; |
10787 | interix3*) |
10788 | hardcode_direct_CXX=no |
10789 | hardcode_shlibpath_var_CXX=no |
10790 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10791 | export_dynamic_flag_spec_CXX='${wl}-E' |
10792 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
10793 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
10794 | # default) and relocated if they conflict, which is a slow very memory |
10795 | # consuming and fragmenting process. To avoid this, we pick a random, |
10796 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
10797 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
10798 | 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' |
10799 | 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' |
10800 | ;; |
10801 | irix5* | irix6*) |
10802 | case $cc_basename in |
10803 | CC*) |
10804 | # SGI C++ |
10805 | 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' |
10806 | |
10807 | # Archives containing C++ object files must be created using |
10808 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
10809 | # necessary to make sure instantiated templates are included |
10810 | # in the archive. |
10811 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
10812 | ;; |
10813 | *) |
10814 | if test "$GXX" = yes; then |
10815 | if test "$with_gnu_ld" = no; then |
10816 | 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' |
10817 | else |
10818 | 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' |
10819 | fi |
10820 | fi |
10821 | link_all_deplibs_CXX=yes |
10822 | ;; |
10823 | esac |
10824 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
10825 | hardcode_libdir_separator_CXX=: |
10826 | ;; |
10827 | linux*) |
10828 | case $cc_basename in |
10829 | KCC*) |
10830 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
10831 | |
10832 | # KCC will only create a shared library if the output file |
10833 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
10834 | # to its proper name (with version) after linking. |
10835 | 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' |
10836 | 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' |
10837 | # Commands to make compiler produce verbose output that lists |
10838 | # what "hidden" libraries, object files and flags are used when |
10839 | # linking a shared library. |
10840 | # |
10841 | # There doesn't appear to be a way to prevent this compiler from |
10842 | # explicitly linking system object files so we need to strip them |
10843 | # from the output so that they don't get included in the library |
10844 | # dependencies. |
10845 | 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' |
10846 | |
10847 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
10848 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10849 | |
10850 | # Archives containing C++ object files must be created using |
10851 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
10852 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
10853 | ;; |
10854 | icpc*) |
10855 | # Intel C++ |
10856 | with_gnu_ld=yes |
10857 | # version 8.0 and above of icpc choke on multiply defined symbols |
10858 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
10859 | # earlier do not add the objects themselves. |
10860 | case `$CC -V 2>&1` in |
10861 | *"Version 7."*) |
10862 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10863 | 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' |
10864 | ;; |
10865 | *) # Version 8.0 or newer |
10866 | tmp_idyn= |
10867 | case $host_cpu in |
10868 | ia64*) tmp_idyn=' -i_dynamic';; |
10869 | esac |
10870 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10871 | 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' |
10872 | ;; |
10873 | esac |
10874 | archive_cmds_need_lc_CXX=no |
10875 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10876 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10877 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
10878 | ;; |
10879 | pgCC*) |
10880 | # Portland Group C++ compiler |
10881 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
10882 | 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' |
10883 | |
10884 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
10885 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10886 | 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' |
10887 | ;; |
10888 | cxx*) |
10889 | # Compaq C++ |
10890 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10891 | 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' |
10892 | |
10893 | runpath_var=LD_RUN_PATH |
10894 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
10895 | hardcode_libdir_separator_CXX=: |
10896 | |
10897 | # Commands to make compiler produce verbose output that lists |
10898 | # what "hidden" libraries, object files and flags are used when |
10899 | # linking a shared library. |
10900 | # |
10901 | # There doesn't appear to be a way to prevent this compiler from |
10902 | # explicitly linking system object files so we need to strip them |
10903 | # from the output so that they don't get included in the library |
10904 | # dependencies. |
10905 | 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' |
10906 | ;; |
10907 | esac |
10908 | ;; |
10909 | lynxos*) |
10910 | # FIXME: insert proper C++ library support |
10911 | ld_shlibs_CXX=no |
10912 | ;; |
10913 | m88k*) |
10914 | # FIXME: insert proper C++ library support |
10915 | ld_shlibs_CXX=no |
10916 | ;; |
10917 | mvs*) |
10918 | case $cc_basename in |
10919 | cxx*) |
10920 | # FIXME: insert proper C++ library support |
10921 | ld_shlibs_CXX=no |
10922 | ;; |
10923 | *) |
10924 | # FIXME: insert proper C++ library support |
10925 | ld_shlibs_CXX=no |
10926 | ;; |
10927 | esac |
10928 | ;; |
10929 | netbsd*) |
10930 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
10931 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
10932 | wlarc= |
10933 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
10934 | hardcode_direct_CXX=yes |
10935 | hardcode_shlibpath_var_CXX=no |
10936 | fi |
10937 | # Workaround some broken pre-1.5 toolchains |
10938 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
10939 | ;; |
10940 | openbsd2*) |
10941 | # C++ shared libraries are fairly broken |
10942 | ld_shlibs_CXX=no |
10943 | ;; |
10944 | openbsd*) |
10945 | hardcode_direct_CXX=yes |
10946 | hardcode_shlibpath_var_CXX=no |
10947 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
10948 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10949 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
10950 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
10951 | export_dynamic_flag_spec_CXX='${wl}-E' |
10952 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
10953 | fi |
10954 | output_verbose_link_cmd='echo' |
10955 | ;; |
10956 | osf3*) |
10957 | case $cc_basename in |
10958 | KCC*) |
10959 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
10960 | |
10961 | # KCC will only create a shared library if the output file |
10962 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
10963 | # to its proper name (with version) after linking. |
10964 | 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' |
10965 | |
10966 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10967 | hardcode_libdir_separator_CXX=: |
10968 | |
10969 | # Archives containing C++ object files must be created using |
10970 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
10971 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
10972 | |
10973 | ;; |
10974 | RCC*) |
10975 | # Rational C++ 2.4.1 |
10976 | # FIXME: insert proper C++ library support |
10977 | ld_shlibs_CXX=no |
10978 | ;; |
10979 | cxx*) |
10980 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
10981 | 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' |
10982 | |
10983 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
10984 | hardcode_libdir_separator_CXX=: |
10985 | |
10986 | # Commands to make compiler produce verbose output that lists |
10987 | # what "hidden" libraries, object files and flags are used when |
10988 | # linking a shared library. |
10989 | # |
10990 | # There doesn't appear to be a way to prevent this compiler from |
10991 | # explicitly linking system object files so we need to strip them |
10992 | # from the output so that they don't get included in the library |
10993 | # dependencies. |
10994 | 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' |
10995 | ;; |
10996 | *) |
10997 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
10998 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
10999 | 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' |
11000 | |
11001 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11002 | hardcode_libdir_separator_CXX=: |
11003 | |
11004 | # Commands to make compiler produce verbose output that lists |
11005 | # what "hidden" libraries, object files and flags are used when |
11006 | # linking a shared library. |
11007 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11008 | |
11009 | else |
11010 | # FIXME: insert proper C++ library support |
11011 | ld_shlibs_CXX=no |
11012 | fi |
11013 | ;; |
11014 | esac |
11015 | ;; |
11016 | osf4* | osf5*) |
11017 | case $cc_basename in |
11018 | KCC*) |
11019 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11020 | |
11021 | # KCC will only create a shared library if the output file |
11022 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11023 | # to its proper name (with version) after linking. |
11024 | 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' |
11025 | |
11026 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11027 | hardcode_libdir_separator_CXX=: |
11028 | |
11029 | # Archives containing C++ object files must be created using |
11030 | # the KAI C++ compiler. |
11031 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
11032 | ;; |
11033 | RCC*) |
11034 | # Rational C++ 2.4.1 |
11035 | # FIXME: insert proper C++ library support |
11036 | ld_shlibs_CXX=no |
11037 | ;; |
11038 | cxx*) |
11039 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
11040 | 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' |
11041 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
11042 | echo "-hidden">> $lib.exp~ |
11043 | $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~ |
11044 | $rm $lib.exp' |
11045 | |
11046 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11047 | hardcode_libdir_separator_CXX=: |
11048 | |
11049 | # Commands to make compiler produce verbose output that lists |
11050 | # what "hidden" libraries, object files and flags are used when |
11051 | # linking a shared library. |
11052 | # |
11053 | # There doesn't appear to be a way to prevent this compiler from |
11054 | # explicitly linking system object files so we need to strip them |
11055 | # from the output so that they don't get included in the library |
11056 | # dependencies. |
11057 | 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' |
11058 | ;; |
11059 | *) |
11060 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11061 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11062 | 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' |
11063 | |
11064 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11065 | hardcode_libdir_separator_CXX=: |
11066 | |
11067 | # Commands to make compiler produce verbose output that lists |
11068 | # what "hidden" libraries, object files and flags are used when |
11069 | # linking a shared library. |
11070 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11071 | |
11072 | else |
11073 | # FIXME: insert proper C++ library support |
11074 | ld_shlibs_CXX=no |
11075 | fi |
11076 | ;; |
11077 | esac |
11078 | ;; |
11079 | psos*) |
11080 | # FIXME: insert proper C++ library support |
11081 | ld_shlibs_CXX=no |
11082 | ;; |
11083 | sunos4*) |
11084 | case $cc_basename in |
11085 | CC*) |
11086 | # Sun C++ 4.x |
11087 | # FIXME: insert proper C++ library support |
11088 | ld_shlibs_CXX=no |
11089 | ;; |
11090 | lcc*) |
11091 | # Lucid |
11092 | # FIXME: insert proper C++ library support |
11093 | ld_shlibs_CXX=no |
11094 | ;; |
11095 | *) |
11096 | # FIXME: insert proper C++ library support |
11097 | ld_shlibs_CXX=no |
11098 | ;; |
11099 | esac |
11100 | ;; |
11101 | solaris*) |
11102 | case $cc_basename in |
11103 | CC*) |
11104 | # Sun C++ 4.2, 5.x and Centerline C++ |
11105 | archive_cmds_need_lc_CXX=yes |
11106 | no_undefined_flag_CXX=' -zdefs' |
11107 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11108 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11109 | $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' |
11110 | |
11111 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11112 | hardcode_shlibpath_var_CXX=no |
11113 | case $host_os in |
11114 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
11115 | *) |
11116 | # The C++ compiler is used as linker so we must use $wl |
11117 | # flag to pass the commands to the underlying system |
11118 | # linker. We must also pass each convience library through |
11119 | # to the system linker between allextract/defaultextract. |
11120 | # The C++ compiler will combine linker options so we |
11121 | # cannot just pass the convience library names through |
11122 | # without $wl. |
11123 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
11124 | 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' |
11125 | ;; |
11126 | esac |
11127 | link_all_deplibs_CXX=yes |
11128 | |
11129 | output_verbose_link_cmd='echo' |
11130 | |
11131 | # Archives containing C++ object files must be created using |
11132 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
11133 | # necessary to make sure instantiated templates are included |
11134 | # in the archive. |
11135 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
11136 | ;; |
11137 | gcx*) |
11138 | # Green Hills C++ Compiler |
11139 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11140 | |
11141 | # The C++ compiler must be used to create the archive. |
11142 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
11143 | ;; |
11144 | *) |
11145 | # GNU C++ compiler with Solaris linker |
11146 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11147 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
11148 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
11149 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11150 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11151 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11152 | |
11153 | # Commands to make compiler produce verbose output that lists |
11154 | # what "hidden" libraries, object files and flags are used when |
11155 | # linking a shared library. |
11156 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11157 | else |
11158 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
11159 | # platform. |
11160 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11161 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11162 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11163 | |
11164 | # Commands to make compiler produce verbose output that lists |
11165 | # what "hidden" libraries, object files and flags are used when |
11166 | # linking a shared library. |
11167 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11168 | fi |
11169 | |
11170 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
11171 | fi |
11172 | ;; |
11173 | esac |
11174 | ;; |
11175 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
11176 | no_undefined_flag_CXX='${wl}-z,text' |
11177 | archive_cmds_need_lc_CXX=no |
11178 | hardcode_shlibpath_var_CXX=no |
11179 | runpath_var='LD_RUN_PATH' |
11180 | |
11181 | case $cc_basename in |
11182 | CC*) |
11183 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11184 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11185 | ;; |
11186 | *) |
11187 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11188 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11189 | ;; |
11190 | esac |
11191 | ;; |
11192 | sysv5* | sco3.2v5* | sco5v6*) |
11193 | # Note: We can NOT use -z defs as we might desire, because we do not |
11194 | # link with -lc, and that would cause any symbols used from libc to |
11195 | # always be unresolved, which means just about no library would |
11196 | # ever link correctly. If we're not using GNU ld we use -z text |
11197 | # though, which does catch some bad symbols but isn't as heavy-handed |
11198 | # as -z defs. |
11199 | # For security reasons, it is highly recommended that you always |
11200 | # use absolute paths for naming shared libraries, and exclude the |
11201 | # DT_RUNPATH tag from executables and libraries. But doing so |
11202 | # requires that you compile everything twice, which is a pain. |
11203 | # So that behaviour is only enabled if SCOABSPATH is set to a |
11204 | # non-empty value in the environment. Most likely only useful for |
11205 | # creating official distributions of packages. |
11206 | # This is a hack until libtool officially supports absolute path |
11207 | # names for shared libraries. |
11208 | no_undefined_flag_CXX='${wl}-z,text' |
11209 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
11210 | archive_cmds_need_lc_CXX=no |
11211 | hardcode_shlibpath_var_CXX=no |
11212 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
11213 | hardcode_libdir_separator_CXX=':' |
11214 | link_all_deplibs_CXX=yes |
11215 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
11216 | runpath_var='LD_RUN_PATH' |
11217 | |
11218 | case $cc_basename in |
11219 | CC*) |
11220 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11221 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11222 | ;; |
11223 | *) |
11224 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11225 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11226 | ;; |
11227 | esac |
11228 | ;; |
11229 | tandem*) |
11230 | case $cc_basename in |
11231 | NCC*) |
11232 | # NonStop-UX NCC 3.20 |
11233 | # FIXME: insert proper C++ library support |
11234 | ld_shlibs_CXX=no |
11235 | ;; |
11236 | *) |
11237 | # FIXME: insert proper C++ library support |
11238 | ld_shlibs_CXX=no |
11239 | ;; |
11240 | esac |
11241 | ;; |
11242 | vxworks*) |
11243 | # FIXME: insert proper C++ library support |
11244 | ld_shlibs_CXX=no |
11245 | ;; |
11246 | *) |
11247 | # FIXME: insert proper C++ library support |
11248 | ld_shlibs_CXX=no |
11249 | ;; |
11250 | esac |
11251 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
11252 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
11253 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
11254 | |
11255 | GCC_CXX="$GXX" |
11256 | LD_CXX="$LD" |
11257 | |
11258 | |
11259 | cat > conftest.$ac_ext <<EOF |
11260 | class Foo |
11261 | { |
11262 | public: |
11263 | Foo (void) { a = 0; } |
11264 | private: |
11265 | int a; |
11266 | }; |
11267 | EOF |
11268 | |
11269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11270 | (eval $ac_compile) 2>&5 |
11271 | ac_status=$? |
11272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11273 | (exit $ac_status); }; then |
11274 | # Parse the compiler output and extract the necessary |
11275 | # objects, libraries and library flags. |
11276 | |
11277 | # Sentinel used to keep track of whether or not we are before |
11278 | # the conftest object file. |
11279 | pre_test_object_deps_done=no |
11280 | |
11281 | # The `*' in the case matches for architectures that use `case' in |
11282 | # $output_verbose_cmd can trigger glob expansion during the loop |
11283 | # eval without this substitution. |
11284 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
11285 | |
11286 | for p in `eval $output_verbose_link_cmd`; do |
11287 | case $p in |
11288 | |
11289 | -L* | -R* | -l*) |
11290 | # Some compilers place space between "-{L,R}" and the path. |
11291 | # Remove the space. |
11292 | if test $p = "-L" \ |
11293 | || test $p = "-R"; then |
11294 | prev=$p |
11295 | continue |
11296 | else |
11297 | prev= |
11298 | fi |
11299 | |
11300 | if test "$pre_test_object_deps_done" = no; then |
11301 | case $p in |
11302 | -L* | -R*) |
11303 | # Internal compiler library paths should come after those |
11304 | # provided the user. The postdeps already come after the |
11305 | # user supplied libs so there is no need to process them. |
11306 | if test -z "$compiler_lib_search_path_CXX"; then |
11307 | compiler_lib_search_path_CXX="${prev}${p}" |
11308 | else |
11309 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
11310 | fi |
11311 | ;; |
11312 | # The "-l" case would never come before the object being |
11313 | # linked, so don't bother handling this case. |
11314 | esac |
11315 | else |
11316 | if test -z "$postdeps_CXX"; then |
11317 | postdeps_CXX="${prev}${p}" |
11318 | else |
11319 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
11320 | fi |
11321 | fi |
11322 | ;; |
11323 | |
11324 | *.$objext) |
11325 | # This assumes that the test object file only shows up |
11326 | # once in the compiler output. |
11327 | if test "$p" = "conftest.$objext"; then |
11328 | pre_test_object_deps_done=yes |
11329 | continue |
11330 | fi |
11331 | |
11332 | if test "$pre_test_object_deps_done" = no; then |
11333 | if test -z "$predep_objects_CXX"; then |
11334 | predep_objects_CXX="$p" |
11335 | else |
11336 | predep_objects_CXX="$predep_objects_CXX $p" |
11337 | fi |
11338 | else |
11339 | if test -z "$postdep_objects_CXX"; then |
11340 | postdep_objects_CXX="$p" |
11341 | else |
11342 | postdep_objects_CXX="$postdep_objects_CXX $p" |
11343 | fi |
11344 | fi |
11345 | ;; |
11346 | |
11347 | *) ;; # Ignore the rest. |
11348 | |
11349 | esac |
11350 | done |
11351 | |
11352 | # Clean up. |
11353 | rm -f a.out a.exe |
11354 | else |
11355 | echo "libtool.m4: error: problem compiling CXX test program" |
11356 | fi |
11357 | |
11358 | $rm -f confest.$objext |
11359 | |
11360 | # PORTME: override above test on systems where it is broken |
11361 | case $host_os in |
11362 | interix3*) |
11363 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
11364 | # hack all around it, let's just trust "g++" to DTRT. |
11365 | predep_objects_CXX= |
11366 | postdep_objects_CXX= |
11367 | postdeps_CXX= |
11368 | ;; |
11369 | |
11370 | solaris*) |
11371 | case $cc_basename in |
11372 | CC*) |
11373 | # Adding this requires a known-good setup of shared libraries for |
11374 | # Sun compiler versions before 5.6, else PIC objects from an old |
11375 | # archive will be linked into the output, leading to subtle bugs. |
11376 | postdeps_CXX='-lCstd -lCrun' |
11377 | ;; |
11378 | esac |
11379 | ;; |
11380 | esac |
11381 | |
11382 | |
11383 | case " $postdeps_CXX " in |
11384 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
11385 | esac |
11386 | |
11387 | lt_prog_compiler_wl_CXX= |
11388 | lt_prog_compiler_pic_CXX= |
11389 | lt_prog_compiler_static_CXX= |
11390 | |
11391 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
11392 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
11393 | |
11394 | # C++ specific cases for pic, static, wl, etc. |
11395 | if test "$GXX" = yes; then |
11396 | lt_prog_compiler_wl_CXX='-Wl,' |
11397 | lt_prog_compiler_static_CXX='-static' |
11398 | |
11399 | case $host_os in |
11400 | aix*) |
11401 | # All AIX code is PIC. |
11402 | if test "$host_cpu" = ia64; then |
11403 | # AIX 5 now supports IA64 processor |
11404 | lt_prog_compiler_static_CXX='-Bstatic' |
11405 | fi |
11406 | ;; |
11407 | amigaos*) |
11408 | # FIXME: we need at least 68020 code to build shared libraries, but |
11409 | # adding the `-m68020' flag to GCC prevents building anything better, |
11410 | # like `-m68040'. |
11411 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
11412 | ;; |
11413 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
11414 | # PIC is the default for these OSes. |
11415 | ;; |
11416 | mingw* | os2* | pw32*) |
11417 | # This hack is so that the source file can tell whether it is being |
11418 | # built for inclusion in a dll (and should export symbols for example). |
11419 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
11420 | ;; |
11421 | darwin* | rhapsody*) |
11422 | # PIC is the default on this platform |
11423 | # Common symbols not allowed in MH_DYLIB files |
11424 | lt_prog_compiler_pic_CXX='-fno-common' |
11425 | ;; |
11426 | *djgpp*) |
11427 | # DJGPP does not support shared libraries at all |
11428 | lt_prog_compiler_pic_CXX= |
11429 | ;; |
11430 | interix3*) |
11431 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
11432 | # Instead, we relocate shared libraries at runtime. |
11433 | ;; |
11434 | sysv4*MP*) |
11435 | if test -d /usr/nec; then |
11436 | lt_prog_compiler_pic_CXX=-Kconform_pic |
11437 | fi |
11438 | ;; |
11439 | hpux*) |
11440 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
11441 | # not for PA HP-UX. |
11442 | case $host_cpu in |
11443 | hppa*64*|ia64*) |
11444 | ;; |
11445 | *) |
11446 | lt_prog_compiler_pic_CXX='-fPIC' |
11447 | ;; |
11448 | esac |
11449 | ;; |
11450 | *) |
11451 | lt_prog_compiler_pic_CXX='-fPIC' |
11452 | ;; |
11453 | esac |
11454 | else |
11455 | case $host_os in |
11456 | aix4* | aix5*) |
11457 | # All AIX code is PIC. |
11458 | if test "$host_cpu" = ia64; then |
11459 | # AIX 5 now supports IA64 processor |
11460 | lt_prog_compiler_static_CXX='-Bstatic' |
11461 | else |
11462 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
11463 | fi |
11464 | ;; |
11465 | chorus*) |
11466 | case $cc_basename in |
11467 | cxch68*) |
11468 | # Green Hills C++ Compiler |
11469 | # _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" |
11470 | ;; |
11471 | esac |
11472 | ;; |
11473 | darwin*) |
11474 | # PIC is the default on this platform |
11475 | # Common symbols not allowed in MH_DYLIB files |
11476 | case $cc_basename in |
11477 | xlc*) |
11478 | lt_prog_compiler_pic_CXX='-qnocommon' |
11479 | lt_prog_compiler_wl_CXX='-Wl,' |
11480 | ;; |
11481 | esac |
11482 | ;; |
11483 | dgux*) |
11484 | case $cc_basename in |
11485 | ec++*) |
11486 | lt_prog_compiler_pic_CXX='-KPIC' |
11487 | ;; |
11488 | ghcx*) |
11489 | # Green Hills C++ Compiler |
11490 | lt_prog_compiler_pic_CXX='-pic' |
11491 | ;; |
11492 | *) |
11493 | ;; |
11494 | esac |
11495 | ;; |
11496 | freebsd* | kfreebsd*-gnu | dragonfly*) |
11497 | # FreeBSD uses GNU C++ |
11498 | ;; |
11499 | hpux9* | hpux10* | hpux11*) |
11500 | case $cc_basename in |
11501 | CC*) |
11502 | lt_prog_compiler_wl_CXX='-Wl,' |
11503 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
11504 | if test "$host_cpu" != ia64; then |
11505 | lt_prog_compiler_pic_CXX='+Z' |
11506 | fi |
11507 | ;; |
11508 | aCC*) |
11509 | lt_prog_compiler_wl_CXX='-Wl,' |
11510 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
11511 | case $host_cpu in |
11512 | hppa*64*|ia64*) |
11513 | # +Z the default |
11514 | ;; |
11515 | *) |
11516 | lt_prog_compiler_pic_CXX='+Z' |
11517 | ;; |
11518 | esac |
11519 | ;; |
11520 | *) |
11521 | ;; |
11522 | esac |
11523 | ;; |
11524 | interix*) |
11525 | # This is c89, which is MS Visual C++ (no shared libs) |
11526 | # Anyone wants to do a port? |
11527 | ;; |
11528 | irix5* | irix6* | nonstopux*) |
11529 | case $cc_basename in |
11530 | CC*) |
11531 | lt_prog_compiler_wl_CXX='-Wl,' |
11532 | lt_prog_compiler_static_CXX='-non_shared' |
11533 | # CC pic flag -KPIC is the default. |
11534 | ;; |
11535 | *) |
11536 | ;; |
11537 | esac |
11538 | ;; |
11539 | linux*) |
11540 | case $cc_basename in |
11541 | KCC*) |
11542 | # KAI C++ Compiler |
11543 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
11544 | lt_prog_compiler_pic_CXX='-fPIC' |
11545 | ;; |
11546 | icpc* | ecpc*) |
11547 | # Intel C++ |
11548 | lt_prog_compiler_wl_CXX='-Wl,' |
11549 | lt_prog_compiler_pic_CXX='-KPIC' |
11550 | lt_prog_compiler_static_CXX='-static' |
11551 | ;; |
11552 | pgCC*) |
11553 | # Portland Group C++ compiler. |
11554 | lt_prog_compiler_wl_CXX='-Wl,' |
11555 | lt_prog_compiler_pic_CXX='-fpic' |
11556 | lt_prog_compiler_static_CXX='-Bstatic' |
11557 | ;; |
11558 | cxx*) |
11559 | # Compaq C++ |
11560 | # Make sure the PIC flag is empty. It appears that all Alpha |
11561 | # Linux and Compaq Tru64 Unix objects are PIC. |
11562 | lt_prog_compiler_pic_CXX= |
11563 | lt_prog_compiler_static_CXX='-non_shared' |
11564 | ;; |
11565 | *) |
11566 | ;; |
11567 | esac |
11568 | ;; |
11569 | lynxos*) |
11570 | ;; |
11571 | m88k*) |
11572 | ;; |
11573 | mvs*) |
11574 | case $cc_basename in |
11575 | cxx*) |
11576 | lt_prog_compiler_pic_CXX='-W c,exportall' |
11577 | ;; |
11578 | *) |
11579 | ;; |
11580 | esac |
11581 | ;; |
11582 | netbsd*) |
11583 | ;; |
11584 | osf3* | osf4* | osf5*) |
11585 | case $cc_basename in |
11586 | KCC*) |
11587 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
11588 | ;; |
11589 | RCC*) |
11590 | # Rational C++ 2.4.1 |
11591 | lt_prog_compiler_pic_CXX='-pic' |
11592 | ;; |
11593 | cxx*) |
11594 | # Digital/Compaq C++ |
11595 | lt_prog_compiler_wl_CXX='-Wl,' |
11596 | # Make sure the PIC flag is empty. It appears that all Alpha |
11597 | # Linux and Compaq Tru64 Unix objects are PIC. |
11598 | lt_prog_compiler_pic_CXX= |
11599 | lt_prog_compiler_static_CXX='-non_shared' |
11600 | ;; |
11601 | *) |
11602 | ;; |
11603 | esac |
11604 | ;; |
11605 | psos*) |
11606 | ;; |
11607 | solaris*) |
11608 | case $cc_basename in |
11609 | CC*) |
11610 | # Sun C++ 4.2, 5.x and Centerline C++ |
11611 | lt_prog_compiler_pic_CXX='-KPIC' |
11612 | lt_prog_compiler_static_CXX='-Bstatic' |
11613 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
11614 | ;; |
11615 | gcx*) |
11616 | # Green Hills C++ Compiler |
11617 | lt_prog_compiler_pic_CXX='-PIC' |
11618 | ;; |
11619 | *) |
11620 | ;; |
11621 | esac |
11622 | ;; |
11623 | sunos4*) |
11624 | case $cc_basename in |
11625 | CC*) |
11626 | # Sun C++ 4.x |
11627 | lt_prog_compiler_pic_CXX='-pic' |
11628 | lt_prog_compiler_static_CXX='-Bstatic' |
11629 | ;; |
11630 | lcc*) |
11631 | # Lucid |
11632 | lt_prog_compiler_pic_CXX='-pic' |
11633 | ;; |
11634 | *) |
11635 | ;; |
11636 | esac |
11637 | ;; |
11638 | tandem*) |
11639 | case $cc_basename in |
11640 | NCC*) |
11641 | # NonStop-UX NCC 3.20 |
11642 | lt_prog_compiler_pic_CXX='-KPIC' |
11643 | ;; |
11644 | *) |
11645 | ;; |
11646 | esac |
11647 | ;; |
11648 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
11649 | case $cc_basename in |
11650 | CC*) |
11651 | lt_prog_compiler_wl_CXX='-Wl,' |
11652 | lt_prog_compiler_pic_CXX='-KPIC' |
11653 | lt_prog_compiler_static_CXX='-Bstatic' |
11654 | ;; |
11655 | esac |
11656 | ;; |
11657 | vxworks*) |
11658 | ;; |
11659 | *) |
11660 | lt_prog_compiler_can_build_shared_CXX=no |
11661 | ;; |
11662 | esac |
11663 | fi |
11664 | |
11665 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
11666 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
11667 | |
11668 | # |
11669 | # Check to make sure the PIC flag actually works. |
11670 | # |
11671 | if test -n "$lt_prog_compiler_pic_CXX"; then |
11672 | |
11673 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
11674 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
11675 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
11676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11677 | else |
11678 | lt_prog_compiler_pic_works_CXX=no |
11679 | ac_outfile=conftest.$ac_objext |
11680 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
11681 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
11682 | # Insert the option either (1) after the last *FLAGS variable, or |
11683 | # (2) before a word containing "conftest.", or (3) at the end. |
11684 | # Note that $ac_compile itself does not contain backslashes and begins |
11685 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
11686 | # The option is referenced via a variable to avoid confusing sed. |
11687 | lt_compile=`echo "$ac_compile" | $SED \ |
11688 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
11689 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
11690 | -e 's:$: $lt_compiler_flag:'` |
11691 | (eval echo "\"\$as_me:11691: $lt_compile\"" >&5) |
11692 | (eval "$lt_compile" 2>conftest.err) |
11693 | ac_status=$? |
11694 | cat conftest.err >&5 |
11695 | echo "$as_me:11695: \$? = $ac_status" >&5 |
11696 | if (exit $ac_status) && test -s "$ac_outfile"; then |
11697 | # The compiler can only warn and ignore the option if not recognized |
11698 | # So say no if there are warnings other than the usual output. |
11699 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
11700 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
11701 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
11702 | lt_prog_compiler_pic_works_CXX=yes |
11703 | fi |
11704 | fi |
11705 | $rm conftest* |
11706 | |
11707 | fi |
11708 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
11709 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
11710 | |
11711 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
11712 | case $lt_prog_compiler_pic_CXX in |
11713 | "" | " "*) ;; |
11714 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
11715 | esac |
11716 | else |
11717 | lt_prog_compiler_pic_CXX= |
11718 | lt_prog_compiler_can_build_shared_CXX=no |
11719 | fi |
11720 | |
11721 | fi |
11722 | case $host_os in |
11723 | # For platforms which do not support PIC, -DPIC is meaningless: |
11724 | *djgpp*) |
11725 | lt_prog_compiler_pic_CXX= |
11726 | ;; |
11727 | *) |
11728 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
11729 | ;; |
11730 | esac |
11731 | |
11732 | # |
11733 | # Check to make sure the static flag actually works. |
11734 | # |
11735 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
11736 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
11737 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
11738 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
11739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11740 | else |
11741 | lt_prog_compiler_static_works_CXX=no |
11742 | save_LDFLAGS="$LDFLAGS" |
11743 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
11744 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
11745 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
11746 | # The linker can only warn and ignore the option if not recognized |
11747 | # So say no if there are warnings |
11748 | if test -s conftest.err; then |
11749 | # Append any errors to the config.log. |
11750 | cat conftest.err 1>&5 |
11751 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
11752 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
11753 | if diff conftest.exp conftest.er2 >/dev/null; then |
11754 | lt_prog_compiler_static_works_CXX=yes |
11755 | fi |
11756 | else |
11757 | lt_prog_compiler_static_works_CXX=yes |
11758 | fi |
11759 | fi |
11760 | $rm conftest* |
11761 | LDFLAGS="$save_LDFLAGS" |
11762 | |
11763 | fi |
11764 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
11765 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 |
11766 | |
11767 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
11768 | : |
11769 | else |
11770 | lt_prog_compiler_static_CXX= |
11771 | fi |
11772 | |
11773 | |
11774 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
11775 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
11776 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
11777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11778 | else |
11779 | lt_cv_prog_compiler_c_o_CXX=no |
11780 | $rm -r conftest 2>/dev/null |
11781 | mkdir conftest |
11782 | cd conftest |
11783 | mkdir out |
11784 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
11785 | |
11786 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
11787 | # Insert the option either (1) after the last *FLAGS variable, or |
11788 | # (2) before a word containing "conftest.", or (3) at the end. |
11789 | # Note that $ac_compile itself does not contain backslashes and begins |
11790 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
11791 | lt_compile=`echo "$ac_compile" | $SED \ |
11792 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
11793 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
11794 | -e 's:$: $lt_compiler_flag:'` |
11795 | (eval echo "\"\$as_me:11795: $lt_compile\"" >&5) |
11796 | (eval "$lt_compile" 2>out/conftest.err) |
11797 | ac_status=$? |
11798 | cat out/conftest.err >&5 |
11799 | echo "$as_me:11799: \$? = $ac_status" >&5 |
11800 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
11801 | then |
11802 | # The compiler can only warn and ignore the option if not recognized |
11803 | # So say no if there are warnings |
11804 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
11805 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
11806 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
11807 | lt_cv_prog_compiler_c_o_CXX=yes |
11808 | fi |
11809 | fi |
11810 | chmod u+w . 2>&5 |
11811 | $rm conftest* |
11812 | # SGI C++ compiler will create directory out/ii_files/ for |
11813 | # template instantiation |
11814 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
11815 | $rm out/* && rmdir out |
11816 | cd .. |
11817 | rmdir conftest |
11818 | $rm conftest* |
11819 | |
11820 | fi |
11821 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
11822 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
11823 | |
11824 | |
11825 | hard_links="nottested" |
11826 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
11827 | # do not overwrite the value of need_locks provided by the user |
11828 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
11829 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
11830 | hard_links=yes |
11831 | $rm conftest* |
11832 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
11833 | touch conftest.a |
11834 | ln conftest.a conftest.b 2>&5 || hard_links=no |
11835 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
11836 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
11837 | echo "${ECHO_T}$hard_links" >&6 |
11838 | if test "$hard_links" = no; then |
11839 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
11840 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
11841 | need_locks=warn |
11842 | fi |
11843 | else |
11844 | need_locks=no |
11845 | fi |
11846 | |
11847 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
11848 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
11849 | |
11850 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
11851 | case $host_os in |
11852 | aix4* | aix5*) |
11853 | # If we're using GNU nm, then we don't want the "-C" option. |
11854 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
11855 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
11856 | 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' |
11857 | else |
11858 | 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' |
11859 | fi |
11860 | ;; |
11861 | pw32*) |
11862 | export_symbols_cmds_CXX="$ltdll_cmds" |
11863 | ;; |
11864 | cygwin* | mingw*) |
11865 | 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' |
11866 | ;; |
11867 | *) |
11868 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
11869 | ;; |
11870 | esac |
11871 | |
11872 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
11873 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
11874 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
11875 | |
11876 | # |
11877 | # Do we need to explicitly link libc? |
11878 | # |
11879 | case "x$archive_cmds_need_lc_CXX" in |
11880 | x|xyes) |
11881 | # Assume -lc should be added |
11882 | archive_cmds_need_lc_CXX=yes |
11883 | |
11884 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
11885 | case $archive_cmds_CXX in |
11886 | *'~'*) |
11887 | # FIXME: we may have to deal with multi-command sequences. |
11888 | ;; |
11889 | '$CC '*) |
11890 | # Test whether the compiler implicitly links with -lc since on some |
11891 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
11892 | # to ld, don't add -lc before -lgcc. |
11893 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
11894 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
11895 | $rm conftest* |
11896 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
11897 | |
11898 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11899 | (eval $ac_compile) 2>&5 |
11900 | ac_status=$? |
11901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11902 | (exit $ac_status); } 2>conftest.err; then |
11903 | soname=conftest |
11904 | lib=conftest |
11905 | libobjs=conftest.$ac_objext |
11906 | deplibs= |
11907 | wl=$lt_prog_compiler_wl_CXX |
11908 | pic_flag=$lt_prog_compiler_pic_CXX |
11909 | compiler_flags=-v |
11910 | linker_flags=-v |
11911 | verstring= |
11912 | output_objdir=. |
11913 | libname=conftest |
11914 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
11915 | allow_undefined_flag_CXX= |
11916 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
11917 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
11918 | ac_status=$? |
11919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11920 | (exit $ac_status); } |
11921 | then |
11922 | archive_cmds_need_lc_CXX=no |
11923 | else |
11924 | archive_cmds_need_lc_CXX=yes |
11925 | fi |
11926 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
11927 | else |
11928 | cat conftest.err 1>&5 |
11929 | fi |
11930 | $rm conftest* |
11931 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
11932 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
11933 | ;; |
11934 | esac |
11935 | fi |
11936 | ;; |
11937 | esac |
11938 | |
11939 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
11940 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
11941 | library_names_spec= |
11942 | libname_spec='lib$name' |
11943 | soname_spec= |
11944 | shrext_cmds=".so" |
11945 | postinstall_cmds= |
11946 | postuninstall_cmds= |
11947 | finish_cmds= |
11948 | finish_eval= |
11949 | shlibpath_var= |
11950 | shlibpath_overrides_runpath=unknown |
11951 | version_type=none |
11952 | dynamic_linker="$host_os ld.so" |
11953 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
11954 | if test "$GCC" = yes; then |
11955 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
11956 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
11957 | # if the path contains ";" then we assume it to be the separator |
11958 | # otherwise default to the standard path separator (i.e. ":") - it is |
11959 | # assumed that no part of a normal pathname contains ";" but that should |
11960 | # okay in the real world where ";" in dirpaths is itself problematic. |
11961 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
11962 | else |
11963 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
11964 | fi |
11965 | else |
11966 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
11967 | fi |
11968 | need_lib_prefix=unknown |
11969 | hardcode_into_libs=no |
11970 | |
11971 | # when you set need_version to no, make sure it does not cause -set_version |
11972 | # flags to be left without arguments |
11973 | need_version=unknown |
11974 | |
11975 | case $host_os in |
11976 | aix3*) |
11977 | version_type=linux |
11978 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
11979 | shlibpath_var=LIBPATH |
11980 | |
11981 | # AIX 3 has no versioning support, so we append a major version to the name. |
11982 | soname_spec='${libname}${release}${shared_ext}$major' |
11983 | ;; |
11984 | |
11985 | aix4* | aix5*) |
11986 | version_type=linux |
11987 | need_lib_prefix=no |
11988 | need_version=no |
11989 | hardcode_into_libs=yes |
11990 | if test "$host_cpu" = ia64; then |
11991 | # AIX 5 supports IA64 |
11992 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
11993 | shlibpath_var=LD_LIBRARY_PATH |
11994 | else |
11995 | # With GCC up to 2.95.x, collect2 would create an import file |
11996 | # for dependence libraries. The import file would start with |
11997 | # the line `#! .'. This would cause the generated library to |
11998 | # depend on `.', always an invalid library. This was fixed in |
11999 | # development snapshots of GCC prior to 3.0. |
12000 | case $host_os in |
12001 | aix4 | aix4.[01] | aix4.[01].*) |
12002 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
12003 | echo ' yes ' |
12004 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
12005 | : |
12006 | else |
12007 | can_build_shared=no |
12008 | fi |
12009 | ;; |
12010 | esac |
12011 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
12012 | # soname into executable. Probably we can add versioning support to |
12013 | # collect2, so additional links can be useful in future. |
12014 | if test "$aix_use_runtimelinking" = yes; then |
12015 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
12016 | # instead of lib<name>.a to let people know that these are not |
12017 | # typical AIX shared libraries. |
12018 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12019 | else |
12020 | # We preserve .a as extension for shared libraries through AIX4.2 |
12021 | # and later when we are not doing run time linking. |
12022 | library_names_spec='${libname}${release}.a $libname.a' |
12023 | soname_spec='${libname}${release}${shared_ext}$major' |
12024 | fi |
12025 | shlibpath_var=LIBPATH |
12026 | fi |
12027 | ;; |
12028 | |
12029 | amigaos*) |
12030 | library_names_spec='$libname.ixlibrary $libname.a' |
12031 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
12032 | 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' |
12033 | ;; |
12034 | |
12035 | beos*) |
12036 | library_names_spec='${libname}${shared_ext}' |
12037 | dynamic_linker="$host_os ld.so" |
12038 | shlibpath_var=LIBRARY_PATH |
12039 | ;; |
12040 | |
12041 | bsdi[45]*) |
12042 | version_type=linux |
12043 | need_version=no |
12044 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12045 | soname_spec='${libname}${release}${shared_ext}$major' |
12046 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
12047 | shlibpath_var=LD_LIBRARY_PATH |
12048 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
12049 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
12050 | # the default ld.so.conf also contains /usr/contrib/lib and |
12051 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
12052 | # libtool to hard-code these into programs |
12053 | ;; |
12054 | |
12055 | cygwin* | mingw* | pw32*) |
12056 | version_type=windows |
12057 | shrext_cmds=".dll" |
12058 | need_version=no |
12059 | need_lib_prefix=no |
12060 | |
12061 | case $GCC,$host_os in |
12062 | yes,cygwin* | yes,mingw* | yes,pw32*) |
12063 | library_names_spec='$libname.dll.a' |
12064 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
12065 | postinstall_cmds='base_file=`basename \${file}`~ |
12066 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
12067 | dldir=$destdir/`dirname \$dlpath`~ |
12068 | test -d \$dldir || mkdir -p \$dldir~ |
12069 | $install_prog $dir/$dlname \$dldir/$dlname~ |
12070 | chmod a+x \$dldir/$dlname' |
12071 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
12072 | dlpath=$dir/\$dldll~ |
12073 | $rm \$dlpath' |
12074 | shlibpath_overrides_runpath=yes |
12075 | |
12076 | case $host_os in |
12077 | cygwin*) |
12078 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
12079 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12080 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
12081 | ;; |
12082 | mingw*) |
12083 | # MinGW DLLs use traditional 'lib' prefix |
12084 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12085 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
12086 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
12087 | # It is most probably a Windows format PATH printed by |
12088 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
12089 | # path with ; separators, and with drive letters. We can handle the |
12090 | # drive letters (cygwin fileutils understands them), so leave them, |
12091 | # especially as we might pass files found there to a mingw objdump, |
12092 | # which wouldn't understand a cygwinified path. Ahh. |
12093 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
12094 | else |
12095 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12096 | fi |
12097 | ;; |
12098 | pw32*) |
12099 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
12100 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12101 | ;; |
12102 | esac |
12103 | ;; |
12104 | |
12105 | *) |
12106 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
12107 | ;; |
12108 | esac |
12109 | dynamic_linker='Win32 ld.exe' |
12110 | # FIXME: first we should search . and the directory the executable is in |
12111 | shlibpath_var=PATH |
12112 | ;; |
12113 | |
12114 | darwin* | rhapsody*) |
12115 | dynamic_linker="$host_os dyld" |
12116 | version_type=darwin |
12117 | need_lib_prefix=no |
12118 | need_version=no |
12119 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
12120 | soname_spec='${libname}${release}${major}$shared_ext' |
12121 | shlibpath_overrides_runpath=yes |
12122 | shlibpath_var=DYLD_LIBRARY_PATH |
12123 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
12124 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
12125 | if test "$GCC" = yes; then |
12126 | 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"` |
12127 | else |
12128 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
12129 | fi |
12130 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
12131 | ;; |
12132 | |
12133 | dgux*) |
12134 | version_type=linux |
12135 | need_lib_prefix=no |
12136 | need_version=no |
12137 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
12138 | soname_spec='${libname}${release}${shared_ext}$major' |
12139 | shlibpath_var=LD_LIBRARY_PATH |
12140 | ;; |
12141 | |
12142 | freebsd1*) |
12143 | dynamic_linker=no |
12144 | ;; |
12145 | |
12146 | kfreebsd*-gnu) |
12147 | version_type=linux |
12148 | need_lib_prefix=no |
12149 | need_version=no |
12150 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12151 | soname_spec='${libname}${release}${shared_ext}$major' |
12152 | shlibpath_var=LD_LIBRARY_PATH |
12153 | shlibpath_overrides_runpath=no |
12154 | hardcode_into_libs=yes |
12155 | dynamic_linker='GNU ld.so' |
12156 | ;; |
12157 | |
12158 | freebsd* | dragonfly*) |
12159 | # DragonFly does not have aout. When/if they implement a new |
12160 | # versioning mechanism, adjust this. |
12161 | if test -x /usr/bin/objformat; then |
12162 | objformat=`/usr/bin/objformat` |
12163 | else |
12164 | case $host_os in |
12165 | freebsd[123]*) objformat=aout ;; |
12166 | *) objformat=elf ;; |
12167 | esac |
12168 | fi |
12169 | version_type=freebsd-$objformat |
12170 | case $version_type in |
12171 | freebsd-elf*) |
12172 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
12173 | need_version=no |
12174 | need_lib_prefix=no |
12175 | ;; |
12176 | freebsd-*) |
12177 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
12178 | need_version=yes |
12179 | ;; |
12180 | esac |
12181 | shlibpath_var=LD_LIBRARY_PATH |
12182 | case $host_os in |
12183 | freebsd2*) |
12184 | shlibpath_overrides_runpath=yes |
12185 | ;; |
12186 | freebsd3.[01]* | freebsdelf3.[01]*) |
12187 | shlibpath_overrides_runpath=yes |
12188 | hardcode_into_libs=yes |
12189 | ;; |
12190 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
12191 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
12192 | shlibpath_overrides_runpath=no |
12193 | hardcode_into_libs=yes |
12194 | ;; |
12195 | freebsd*) # from 4.6 on |
12196 | shlibpath_overrides_runpath=yes |
12197 | hardcode_into_libs=yes |
12198 | ;; |
12199 | esac |
12200 | ;; |
12201 | |
12202 | gnu*) |
12203 | version_type=linux |
12204 | need_lib_prefix=no |
12205 | need_version=no |
12206 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
12207 | soname_spec='${libname}${release}${shared_ext}$major' |
12208 | shlibpath_var=LD_LIBRARY_PATH |
12209 | hardcode_into_libs=yes |
12210 | ;; |
12211 | |
12212 | hpux9* | hpux10* | hpux11*) |
12213 | # Give a soname corresponding to the major version so that dld.sl refuses to |
12214 | # link against other versions. |
12215 | version_type=sunos |
12216 | need_lib_prefix=no |
12217 | need_version=no |
12218 | case $host_cpu in |
12219 | ia64*) |
12220 | shrext_cmds='.so' |
12221 | hardcode_into_libs=yes |
12222 | dynamic_linker="$host_os dld.so" |
12223 | shlibpath_var=LD_LIBRARY_PATH |
12224 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12225 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12226 | soname_spec='${libname}${release}${shared_ext}$major' |
12227 | if test "X$HPUX_IA64_MODE" = X32; then |
12228 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
12229 | else |
12230 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
12231 | fi |
12232 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12233 | ;; |
12234 | hppa*64*) |
12235 | shrext_cmds='.sl' |
12236 | hardcode_into_libs=yes |
12237 | dynamic_linker="$host_os dld.sl" |
12238 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
12239 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12240 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12241 | soname_spec='${libname}${release}${shared_ext}$major' |
12242 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
12243 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12244 | ;; |
12245 | *) |
12246 | shrext_cmds='.sl' |
12247 | dynamic_linker="$host_os dld.sl" |
12248 | shlibpath_var=SHLIB_PATH |
12249 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
12250 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12251 | soname_spec='${libname}${release}${shared_ext}$major' |
12252 | ;; |
12253 | esac |
12254 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
12255 | postinstall_cmds='chmod 555 $lib' |
12256 | ;; |
12257 | |
12258 | interix3*) |
12259 | version_type=linux |
12260 | need_lib_prefix=no |
12261 | need_version=no |
12262 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12263 | soname_spec='${libname}${release}${shared_ext}$major' |
12264 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
12265 | shlibpath_var=LD_LIBRARY_PATH |
12266 | shlibpath_overrides_runpath=no |
12267 | hardcode_into_libs=yes |
12268 | ;; |
12269 | |
12270 | irix5* | irix6* | nonstopux*) |
12271 | case $host_os in |
12272 | nonstopux*) version_type=nonstopux ;; |
12273 | *) |
12274 | if test "$lt_cv_prog_gnu_ld" = yes; then |
12275 | version_type=linux |
12276 | else |
12277 | version_type=irix |
12278 | fi ;; |
12279 | esac |
12280 | need_lib_prefix=no |
12281 | need_version=no |
12282 | soname_spec='${libname}${release}${shared_ext}$major' |
12283 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
12284 | case $host_os in |
12285 | irix5* | nonstopux*) |
12286 | libsuff= shlibsuff= |
12287 | ;; |
12288 | *) |
12289 | case $LD in # libtool.m4 will add one of these switches to LD |
12290 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
12291 | libsuff= shlibsuff= libmagic=32-bit;; |
12292 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
12293 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
12294 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
12295 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
12296 | *) libsuff= shlibsuff= libmagic=never-match;; |
12297 | esac |
12298 | ;; |
12299 | esac |
12300 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
12301 | shlibpath_overrides_runpath=no |
12302 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
12303 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
12304 | hardcode_into_libs=yes |
12305 | ;; |
12306 | |
12307 | # No shared lib support for Linux oldld, aout, or coff. |
12308 | linux*oldld* | linux*aout* | linux*coff*) |
12309 | dynamic_linker=no |
12310 | ;; |
12311 | |
12312 | # This must be Linux ELF. |
12313 | linux*) |
12314 | version_type=linux |
12315 | need_lib_prefix=no |
12316 | need_version=no |
12317 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12318 | soname_spec='${libname}${release}${shared_ext}$major' |
12319 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
12320 | shlibpath_var=LD_LIBRARY_PATH |
12321 | shlibpath_overrides_runpath=no |
12322 | # This implies no fast_install, which is unacceptable. |
12323 | # Some rework will be needed to allow for fast_install |
12324 | # before this can be enabled. |
12325 | hardcode_into_libs=yes |
12326 | |
12327 | # find out which ABI we are using |
12328 | libsuff= |
12329 | case "$host_cpu" in |
12330 | x86_64*|s390x*|powerpc64*) |
12331 | echo '#line 12331 "configure"' > conftest.$ac_ext |
12332 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12333 | (eval $ac_compile) 2>&5 |
12334 | ac_status=$? |
12335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12336 | (exit $ac_status); }; then |
12337 | case `/usr/bin/file conftest.$ac_objext` in |
12338 | *64-bit*) |
12339 | libsuff=64 |
12340 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
12341 | ;; |
12342 | esac |
12343 | fi |
12344 | rm -rf conftest* |
12345 | ;; |
12346 | esac |
12347 | |
12348 | # Append ld.so.conf contents to the search path |
12349 | if test -f /etc/ld.so.conf; then |
12350 | 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' ' '` |
12351 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
12352 | fi |
12353 | |
12354 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
12355 | # powerpc, because MkLinux only supported shared libraries with the |
12356 | # GNU dynamic linker. Since this was broken with cross compilers, |
12357 | # most powerpc-linux boxes support dynamic linking these days and |
12358 | # people can always --disable-shared, the test was removed, and we |
12359 | # assume the GNU/Linux dynamic linker is in use. |
12360 | dynamic_linker='GNU/Linux ld.so' |
12361 | ;; |
12362 | |
12363 | knetbsd*-gnu) |
12364 | version_type=linux |
12365 | need_lib_prefix=no |
12366 | need_version=no |
12367 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12368 | soname_spec='${libname}${release}${shared_ext}$major' |
12369 | shlibpath_var=LD_LIBRARY_PATH |
12370 | shlibpath_overrides_runpath=no |
12371 | hardcode_into_libs=yes |
12372 | dynamic_linker='GNU ld.so' |
12373 | ;; |
12374 | |
12375 | netbsd*) |
12376 | version_type=sunos |
12377 | need_lib_prefix=no |
12378 | need_version=no |
12379 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
12380 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12381 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
12382 | dynamic_linker='NetBSD (a.out) ld.so' |
12383 | else |
12384 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12385 | soname_spec='${libname}${release}${shared_ext}$major' |
12386 | dynamic_linker='NetBSD ld.elf_so' |
12387 | fi |
12388 | shlibpath_var=LD_LIBRARY_PATH |
12389 | shlibpath_overrides_runpath=yes |
12390 | hardcode_into_libs=yes |
12391 | ;; |
12392 | |
12393 | newsos6) |
12394 | version_type=linux |
12395 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12396 | shlibpath_var=LD_LIBRARY_PATH |
12397 | shlibpath_overrides_runpath=yes |
12398 | ;; |
12399 | |
12400 | nto-qnx*) |
12401 | version_type=linux |
12402 | need_lib_prefix=no |
12403 | need_version=no |
12404 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12405 | soname_spec='${libname}${release}${shared_ext}$major' |
12406 | shlibpath_var=LD_LIBRARY_PATH |
12407 | shlibpath_overrides_runpath=yes |
12408 | ;; |
12409 | |
12410 | openbsd*) |
12411 | version_type=sunos |
12412 | sys_lib_dlsearch_path_spec="/usr/lib" |
12413 | need_lib_prefix=no |
12414 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
12415 | case $host_os in |
12416 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
12417 | *) need_version=no ;; |
12418 | esac |
12419 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12420 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
12421 | shlibpath_var=LD_LIBRARY_PATH |
12422 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
12423 | case $host_os in |
12424 | openbsd2.[89] | openbsd2.[89].*) |
12425 | shlibpath_overrides_runpath=no |
12426 | ;; |
12427 | *) |
12428 | shlibpath_overrides_runpath=yes |
12429 | ;; |
12430 | esac |
12431 | else |
12432 | shlibpath_overrides_runpath=yes |
12433 | fi |
12434 | ;; |
12435 | |
12436 | os2*) |
12437 | libname_spec='$name' |
12438 | shrext_cmds=".dll" |
12439 | need_lib_prefix=no |
12440 | library_names_spec='$libname${shared_ext} $libname.a' |
12441 | dynamic_linker='OS/2 ld.exe' |
12442 | shlibpath_var=LIBPATH |
12443 | ;; |
12444 | |
12445 | osf3* | osf4* | osf5*) |
12446 | version_type=osf |
12447 | need_lib_prefix=no |
12448 | need_version=no |
12449 | soname_spec='${libname}${release}${shared_ext}$major' |
12450 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12451 | shlibpath_var=LD_LIBRARY_PATH |
12452 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
12453 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
12454 | ;; |
12455 | |
12456 | solaris*) |
12457 | version_type=linux |
12458 | need_lib_prefix=no |
12459 | need_version=no |
12460 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12461 | soname_spec='${libname}${release}${shared_ext}$major' |
12462 | shlibpath_var=LD_LIBRARY_PATH |
12463 | shlibpath_overrides_runpath=yes |
12464 | hardcode_into_libs=yes |
12465 | # ldd complains unless libraries are executable |
12466 | postinstall_cmds='chmod +x $lib' |
12467 | ;; |
12468 | |
12469 | sunos4*) |
12470 | version_type=sunos |
12471 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12472 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
12473 | shlibpath_var=LD_LIBRARY_PATH |
12474 | shlibpath_overrides_runpath=yes |
12475 | if test "$with_gnu_ld" = yes; then |
12476 | need_lib_prefix=no |
12477 | fi |
12478 | need_version=yes |
12479 | ;; |
12480 | |
12481 | sysv4 | sysv4.3*) |
12482 | version_type=linux |
12483 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12484 | soname_spec='${libname}${release}${shared_ext}$major' |
12485 | shlibpath_var=LD_LIBRARY_PATH |
12486 | case $host_vendor in |
12487 | sni) |
12488 | shlibpath_overrides_runpath=no |
12489 | need_lib_prefix=no |
12490 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
12491 | runpath_var=LD_RUN_PATH |
12492 | ;; |
12493 | siemens) |
12494 | need_lib_prefix=no |
12495 | ;; |
12496 | motorola) |
12497 | need_lib_prefix=no |
12498 | need_version=no |
12499 | shlibpath_overrides_runpath=no |
12500 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
12501 | ;; |
12502 | esac |
12503 | ;; |
12504 | |
12505 | sysv4*MP*) |
12506 | if test -d /usr/nec ;then |
12507 | version_type=linux |
12508 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
12509 | soname_spec='$libname${shared_ext}.$major' |
12510 | shlibpath_var=LD_LIBRARY_PATH |
12511 | fi |
12512 | ;; |
12513 | |
12514 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
12515 | version_type=freebsd-elf |
12516 | need_lib_prefix=no |
12517 | need_version=no |
12518 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
12519 | soname_spec='${libname}${release}${shared_ext}$major' |
12520 | shlibpath_var=LD_LIBRARY_PATH |
12521 | hardcode_into_libs=yes |
12522 | if test "$with_gnu_ld" = yes; then |
12523 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
12524 | shlibpath_overrides_runpath=no |
12525 | else |
12526 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
12527 | shlibpath_overrides_runpath=yes |
12528 | case $host_os in |
12529 | sco3.2v5*) |
12530 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
12531 | ;; |
12532 | esac |
12533 | fi |
12534 | sys_lib_dlsearch_path_spec='/usr/lib' |
12535 | ;; |
12536 | |
12537 | uts4*) |
12538 | version_type=linux |
12539 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12540 | soname_spec='${libname}${release}${shared_ext}$major' |
12541 | shlibpath_var=LD_LIBRARY_PATH |
12542 | ;; |
12543 | |
12544 | *) |
12545 | dynamic_linker=no |
12546 | ;; |
12547 | esac |
12548 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
12549 | echo "${ECHO_T}$dynamic_linker" >&6 |
12550 | test "$dynamic_linker" = no && can_build_shared=no |
12551 | |
12552 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
12553 | if test "$GCC" = yes; then |
12554 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
12555 | fi |
12556 | |
12557 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
12558 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
12559 | hardcode_action_CXX= |
12560 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
12561 | test -n "$runpath_var_CXX" || \ |
12562 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
12563 | |
12564 | # We can hardcode non-existant directories. |
12565 | if test "$hardcode_direct_CXX" != no && |
12566 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
12567 | # have to relink, otherwise we might link with an installed library |
12568 | # when we should be linking with a yet-to-be-installed one |
12569 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
12570 | test "$hardcode_minus_L_CXX" != no; then |
12571 | # Linking always hardcodes the temporary library directory. |
12572 | hardcode_action_CXX=relink |
12573 | else |
12574 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
12575 | hardcode_action_CXX=immediate |
12576 | fi |
12577 | else |
12578 | # We cannot hardcode anything, or else we can only hardcode existing |
12579 | # directories. |
12580 | hardcode_action_CXX=unsupported |
12581 | fi |
12582 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
12583 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
12584 | |
12585 | if test "$hardcode_action_CXX" = relink; then |
12586 | # Fast installation is not supported |
12587 | enable_fast_install=no |
12588 | elif test "$shlibpath_overrides_runpath" = yes || |
12589 | test "$enable_shared" = no; then |
12590 | # Fast installation is not necessary |
12591 | enable_fast_install=needless |
12592 | fi |
12593 | |
12594 | |
12595 | # The else clause should only fire when bootstrapping the |
12596 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
12597 | # with your package, and you will get complaints that there are |
12598 | # no rules to generate ltmain.sh. |
12599 | if test -f "$ltmain"; then |
12600 | # See if we are running on zsh, and set the options which allow our commands through |
12601 | # without removal of \ escapes. |
12602 | if test -n "${ZSH_VERSION+set}" ; then |
12603 | setopt NO_GLOB_SUBST |
12604 | fi |
12605 | # Now quote all the things that may contain metacharacters while being |
12606 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
12607 | # variables and quote the copies for generation of the libtool script. |
12608 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
12609 | SED SHELL STRIP \ |
12610 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
12611 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
12612 | deplibs_check_method reload_flag reload_cmds need_locks \ |
12613 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
12614 | lt_cv_sys_global_symbol_to_c_name_address \ |
12615 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
12616 | old_postinstall_cmds old_postuninstall_cmds \ |
12617 | compiler_CXX \ |
12618 | CC_CXX \ |
12619 | LD_CXX \ |
12620 | lt_prog_compiler_wl_CXX \ |
12621 | lt_prog_compiler_pic_CXX \ |
12622 | lt_prog_compiler_static_CXX \ |
12623 | lt_prog_compiler_no_builtin_flag_CXX \ |
12624 | export_dynamic_flag_spec_CXX \ |
12625 | thread_safe_flag_spec_CXX \ |
12626 | whole_archive_flag_spec_CXX \ |
12627 | enable_shared_with_static_runtimes_CXX \ |
12628 | old_archive_cmds_CXX \ |
12629 | old_archive_from_new_cmds_CXX \ |
12630 | predep_objects_CXX \ |
12631 | postdep_objects_CXX \ |
12632 | predeps_CXX \ |
12633 | postdeps_CXX \ |
12634 | compiler_lib_search_path_CXX \ |
12635 | archive_cmds_CXX \ |
12636 | archive_expsym_cmds_CXX \ |
12637 | postinstall_cmds_CXX \ |
12638 | postuninstall_cmds_CXX \ |
12639 | old_archive_from_expsyms_cmds_CXX \ |
12640 | allow_undefined_flag_CXX \ |
12641 | no_undefined_flag_CXX \ |
12642 | export_symbols_cmds_CXX \ |
12643 | hardcode_libdir_flag_spec_CXX \ |
12644 | hardcode_libdir_flag_spec_ld_CXX \ |
12645 | hardcode_libdir_separator_CXX \ |
12646 | hardcode_automatic_CXX \ |
12647 | module_cmds_CXX \ |
12648 | module_expsym_cmds_CXX \ |
12649 | lt_cv_prog_compiler_c_o_CXX \ |
12650 | exclude_expsyms_CXX \ |
12651 | include_expsyms_CXX; do |
12652 | |
12653 | case $var in |
12654 | old_archive_cmds_CXX | \ |
12655 | old_archive_from_new_cmds_CXX | \ |
12656 | archive_cmds_CXX | \ |
12657 | archive_expsym_cmds_CXX | \ |
12658 | module_cmds_CXX | \ |
12659 | module_expsym_cmds_CXX | \ |
12660 | old_archive_from_expsyms_cmds_CXX | \ |
12661 | export_symbols_cmds_CXX | \ |
12662 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
12663 | postinstall_cmds | postuninstall_cmds | \ |
12664 | old_postinstall_cmds | old_postuninstall_cmds | \ |
12665 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
12666 | # Double-quote double-evaled strings. |
12667 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
12668 | ;; |
12669 | *) |
12670 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
12671 | ;; |
12672 | esac |
12673 | done |
12674 | |
12675 | case $lt_echo in |
12676 | *'\$0 --fallback-echo"') |
12677 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
12678 | ;; |
12679 | esac |
12680 | |
12681 | cfgfile="$ofile" |
12682 | |
12683 | cat <<__EOF__ >> "$cfgfile" |
12684 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
12685 | |
12686 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
12687 | |
12688 | # Shell to use when invoking shell scripts. |
12689 | SHELL=$lt_SHELL |
12690 | |
12691 | # Whether or not to build shared libraries. |
12692 | build_libtool_libs=$enable_shared |
12693 | |
12694 | # Whether or not to build static libraries. |
12695 | build_old_libs=$enable_static |
12696 | |
12697 | # Whether or not to add -lc for building shared libraries. |
12698 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
12699 | |
12700 | # Whether or not to disallow shared libs when runtime libs are static |
12701 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
12702 | |
12703 | # Whether or not to optimize for fast installation. |
12704 | fast_install=$enable_fast_install |
12705 | |
12706 | # The host system. |
12707 | host_alias=$host_alias |
12708 | host=$host |
12709 | host_os=$host_os |
12710 | |
12711 | # The build system. |
12712 | build_alias=$build_alias |
12713 | build=$build |
12714 | build_os=$build_os |
12715 | |
12716 | # An echo program that does not interpret backslashes. |
12717 | echo=$lt_echo |
12718 | |
12719 | # The archiver. |
12720 | AR=$lt_AR |
12721 | AR_FLAGS=$lt_AR_FLAGS |
12722 | |
12723 | # A C compiler. |
12724 | LTCC=$lt_LTCC |
12725 | |
12726 | # LTCC compiler flags. |
12727 | LTCFLAGS=$lt_LTCFLAGS |
12728 | |
12729 | # A language-specific compiler. |
12730 | CC=$lt_compiler_CXX |
12731 | |
12732 | # Is the compiler the GNU C compiler? |
12733 | with_gcc=$GCC_CXX |
12734 | |
12735 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
12736 | gcc_ver=\`gcc -dumpversion\` |
12737 | |
12738 | # An ERE matcher. |
12739 | EGREP=$lt_EGREP |
12740 | |
12741 | # The linker used to build libraries. |
12742 | LD=$lt_LD_CXX |
12743 | |
12744 | # Whether we need hard or soft links. |
12745 | LN_S=$lt_LN_S |
12746 | |
12747 | # A BSD-compatible nm program. |
12748 | NM=$lt_NM |
12749 | |
12750 | # A symbol stripping program |
12751 | STRIP=$lt_STRIP |
12752 | |
12753 | # Used to examine libraries when file_magic_cmd begins "file" |
12754 | MAGIC_CMD=$MAGIC_CMD |
12755 | |
12756 | # Used on cygwin: DLL creation program. |
12757 | DLLTOOL="$DLLTOOL" |
12758 | |
12759 | # Used on cygwin: object dumper. |
12760 | OBJDUMP="$OBJDUMP" |
12761 | |
12762 | # Used on cygwin: assembler. |
12763 | AS="$AS" |
12764 | |
12765 | # The name of the directory that contains temporary libtool files. |
12766 | objdir=$objdir |
12767 | |
12768 | # How to create reloadable object files. |
12769 | reload_flag=$lt_reload_flag |
12770 | reload_cmds=$lt_reload_cmds |
12771 | |
12772 | # How to pass a linker flag through the compiler. |
12773 | wl=$lt_lt_prog_compiler_wl_CXX |
12774 | |
12775 | # Object file suffix (normally "o"). |
12776 | objext="$ac_objext" |
12777 | |
12778 | # Old archive suffix (normally "a"). |
12779 | libext="$libext" |
12780 | |
12781 | # Shared library suffix (normally ".so"). |
12782 | shrext_cmds='$shrext_cmds' |
12783 | |
12784 | # Executable file suffix (normally ""). |
12785 | exeext="$exeext" |
12786 | |
12787 | # Additional compiler flags for building library objects. |
12788 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
12789 | pic_mode=$pic_mode |
12790 | |
12791 | # What is the maximum length of a command? |
12792 | max_cmd_len=$lt_cv_sys_max_cmd_len |
12793 | |
12794 | # Does compiler simultaneously support -c and -o options? |
12795 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
12796 | |
12797 | # Must we lock files when doing compilation? |
12798 | need_locks=$lt_need_locks |
12799 | |
12800 | # Do we need the lib prefix for modules? |
12801 | need_lib_prefix=$need_lib_prefix |
12802 | |
12803 | # Do we need a version for libraries? |
12804 | need_version=$need_version |
12805 | |
12806 | # Whether dlopen is supported. |
12807 | dlopen_support=$enable_dlopen |
12808 | |
12809 | # Whether dlopen of programs is supported. |
12810 | dlopen_self=$enable_dlopen_self |
12811 | |
12812 | # Whether dlopen of statically linked programs is supported. |
12813 | dlopen_self_static=$enable_dlopen_self_static |
12814 | |
12815 | # Compiler flag to prevent dynamic linking. |
12816 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
12817 | |
12818 | # Compiler flag to turn off builtin functions. |
12819 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
12820 | |
12821 | # Compiler flag to allow reflexive dlopens. |
12822 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
12823 | |
12824 | # Compiler flag to generate shared objects directly from archives. |
12825 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
12826 | |
12827 | # Compiler flag to generate thread-safe objects. |
12828 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
12829 | |
12830 | # Library versioning type. |
12831 | version_type=$version_type |
12832 | |
12833 | # Format of library name prefix. |
12834 | libname_spec=$lt_libname_spec |
12835 | |
12836 | # List of archive names. First name is the real one, the rest are links. |
12837 | # The last name is the one that the linker finds with -lNAME. |
12838 | library_names_spec=$lt_library_names_spec |
12839 | |
12840 | # The coded name of the library, if different from the real name. |
12841 | soname_spec=$lt_soname_spec |
12842 | |
12843 | # Commands used to build and install an old-style archive. |
12844 | RANLIB=$lt_RANLIB |
12845 | old_archive_cmds=$lt_old_archive_cmds_CXX |
12846 | old_postinstall_cmds=$lt_old_postinstall_cmds |
12847 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
12848 | |
12849 | # Create an old-style archive from a shared archive. |
12850 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
12851 | |
12852 | # Create a temporary old-style archive to link instead of a shared archive. |
12853 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
12854 | |
12855 | # Commands used to build and install a shared archive. |
12856 | archive_cmds=$lt_archive_cmds_CXX |
12857 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
12858 | postinstall_cmds=$lt_postinstall_cmds |
12859 | postuninstall_cmds=$lt_postuninstall_cmds |
12860 | |
12861 | # Commands used to build a loadable module (assumed same as above if empty) |
12862 | module_cmds=$lt_module_cmds_CXX |
12863 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
12864 | |
12865 | # Commands to strip libraries. |
12866 | old_striplib=$lt_old_striplib |
12867 | striplib=$lt_striplib |
12868 | |
12869 | # Dependencies to place before the objects being linked to create a |
12870 | # shared library. |
12871 | predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
12872 | |
12873 | # Dependencies to place after the objects being linked to create a |
12874 | # shared library. |
12875 | postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
12876 | |
12877 | # Dependencies to place before the objects being linked to create a |
12878 | # shared library. |
12879 | predeps=$lt_predeps_CXX |
12880 | |
12881 | # Dependencies to place after the objects being linked to create a |
12882 | # shared library. |
12883 | postdeps=$lt_postdeps_CXX |
12884 | |
12885 | # The library search path used internally by the compiler when linking |
12886 | # a shared library. |
12887 | 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"\` |
12888 | |
12889 | # Method to check whether dependent libraries are shared objects. |
12890 | deplibs_check_method=$lt_deplibs_check_method |
12891 | |
12892 | # Command to use when deplibs_check_method == file_magic. |
12893 | file_magic_cmd=$lt_file_magic_cmd |
12894 | |
12895 | # Flag that allows shared libraries with undefined symbols to be built. |
12896 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
12897 | |
12898 | # Flag that forces no undefined symbols. |
12899 | no_undefined_flag=$lt_no_undefined_flag_CXX |
12900 | |
12901 | # Commands used to finish a libtool library installation in a directory. |
12902 | finish_cmds=$lt_finish_cmds |
12903 | |
12904 | # Same as above, but a single script fragment to be evaled but not shown. |
12905 | finish_eval=$lt_finish_eval |
12906 | |
12907 | # Take the output of nm and produce a listing of raw symbols and C names. |
12908 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
12909 | |
12910 | # Transform the output of nm in a proper C declaration |
12911 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
12912 | |
12913 | # Transform the output of nm in a C name address pair |
12914 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
12915 | |
12916 | # This is the shared library runtime path variable. |
12917 | runpath_var=$runpath_var |
12918 | |
12919 | # This is the shared library path variable. |
12920 | shlibpath_var=$shlibpath_var |
12921 | |
12922 | # Is shlibpath searched before the hard-coded library search path? |
12923 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
12924 | |
12925 | # How to hardcode a shared library path into an executable. |
12926 | hardcode_action=$hardcode_action_CXX |
12927 | |
12928 | # Whether we should hardcode library paths into libraries. |
12929 | hardcode_into_libs=$hardcode_into_libs |
12930 | |
12931 | # Flag to hardcode \$libdir into a binary during linking. |
12932 | # This must work even if \$libdir does not exist. |
12933 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
12934 | |
12935 | # If ld is used when linking, flag to hardcode \$libdir into |
12936 | # a binary during linking. This must work even if \$libdir does |
12937 | # not exist. |
12938 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
12939 | |
12940 | # Whether we need a single -rpath flag with a separated argument. |
12941 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
12942 | |
12943 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
12944 | # resulting binary. |
12945 | hardcode_direct=$hardcode_direct_CXX |
12946 | |
12947 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
12948 | # resulting binary. |
12949 | hardcode_minus_L=$hardcode_minus_L_CXX |
12950 | |
12951 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
12952 | # the resulting binary. |
12953 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
12954 | |
12955 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
12956 | # and all subsequent libraries and executables linked against it. |
12957 | hardcode_automatic=$hardcode_automatic_CXX |
12958 | |
12959 | # Variables whose values should be saved in libtool wrapper scripts and |
12960 | # restored at relink time. |
12961 | variables_saved_for_relink="$variables_saved_for_relink" |
12962 | |
12963 | # Whether libtool must link a program against all its dependency libraries. |
12964 | link_all_deplibs=$link_all_deplibs_CXX |
12965 | |
12966 | # Compile-time system search path for libraries |
12967 | 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"\` |
12968 | |
12969 | # Run-time system search path for libraries |
12970 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
12971 | |
12972 | # Fix the shell variable \$srcfile for the compiler. |
12973 | fix_srcfile_path="$fix_srcfile_path_CXX" |
12974 | |
12975 | # Set to yes if exported symbols are required. |
12976 | always_export_symbols=$always_export_symbols_CXX |
12977 | |
12978 | # The commands to list exported symbols. |
12979 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
12980 | |
12981 | # The commands to extract the exported symbol list from a shared archive. |
12982 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
12983 | |
12984 | # Symbols that should not be listed in the preloaded symbols. |
12985 | exclude_expsyms=$lt_exclude_expsyms_CXX |
12986 | |
12987 | # Symbols that must always be exported. |
12988 | include_expsyms=$lt_include_expsyms_CXX |
12989 | |
12990 | # ### END LIBTOOL TAG CONFIG: $tagname |
12991 | |
12992 | __EOF__ |
12993 | |
12994 | |
12995 | else |
12996 | # If there is no Makefile yet, we rely on a make rule to execute |
12997 | # `config.status --recheck' to rerun these tests and create the |
12998 | # libtool script then. |
12999 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
13000 | if test -f "$ltmain_in"; then |
13001 | test -f Makefile && make "$ltmain" |
13002 | fi |
13003 | fi |
13004 | |
13005 | |
13006 | ac_ext=c |
13007 | ac_cpp='$CPP $CPPFLAGS' |
13008 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
13009 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13010 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
13011 | |
13012 | CC=$lt_save_CC |
13013 | LDCXX=$LD |
13014 | LD=$lt_save_LD |
13015 | GCC=$lt_save_GCC |
13016 | with_gnu_ldcxx=$with_gnu_ld |
13017 | with_gnu_ld=$lt_save_with_gnu_ld |
13018 | lt_cv_path_LDCXX=$lt_cv_path_LD |
13019 | lt_cv_path_LD=$lt_save_path_LD |
13020 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
13021 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
13022 | |
13023 | else |
13024 | tagname="" |
13025 | fi |
13026 | ;; |
13027 | |
13028 | F77) |
13029 | if test -n "$F77" && test "X$F77" != "Xno"; then |
13030 | |
13031 | ac_ext=f |
13032 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
13033 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13034 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
13035 | |
13036 | |
13037 | archive_cmds_need_lc_F77=no |
13038 | allow_undefined_flag_F77= |
13039 | always_export_symbols_F77=no |
13040 | archive_expsym_cmds_F77= |
13041 | export_dynamic_flag_spec_F77= |
13042 | hardcode_direct_F77=no |
13043 | hardcode_libdir_flag_spec_F77= |
13044 | hardcode_libdir_flag_spec_ld_F77= |
13045 | hardcode_libdir_separator_F77= |
13046 | hardcode_minus_L_F77=no |
13047 | hardcode_automatic_F77=no |
13048 | module_cmds_F77= |
13049 | module_expsym_cmds_F77= |
13050 | link_all_deplibs_F77=unknown |
13051 | old_archive_cmds_F77=$old_archive_cmds |
13052 | no_undefined_flag_F77= |
13053 | whole_archive_flag_spec_F77= |
13054 | enable_shared_with_static_runtimes_F77=no |
13055 | |
13056 | # Source file extension for f77 test sources. |
13057 | ac_ext=f |
13058 | |
13059 | # Object file extension for compiled f77 test sources. |
13060 | objext=o |
13061 | objext_F77=$objext |
13062 | |
13063 | # Code to be used in simple compile tests |
13064 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
13065 | |
13066 | # Code to be used in simple link tests |
13067 | lt_simple_link_test_code=" program t\n end\n" |
13068 | |
13069 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
13070 | |
13071 | # If no C compiler was specified, use CC. |
13072 | LTCC=${LTCC-"$CC"} |
13073 | |
13074 | # If no C compiler flags were specified, use CFLAGS. |
13075 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
13076 | |
13077 | # Allow CC to be a program name with arguments. |
13078 | compiler=$CC |
13079 | |
13080 | |
13081 | # save warnings/boilerplate of simple test code |
13082 | ac_outfile=conftest.$ac_objext |
13083 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
13084 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13085 | _lt_compiler_boilerplate=`cat conftest.err` |
13086 | $rm conftest* |
13087 | |
13088 | ac_outfile=conftest.$ac_objext |
13089 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
13090 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13091 | _lt_linker_boilerplate=`cat conftest.err` |
13092 | $rm conftest* |
13093 | |
13094 | |
13095 | # Allow CC to be a program name with arguments. |
13096 | lt_save_CC="$CC" |
13097 | CC=${F77-"f77"} |
13098 | compiler=$CC |
13099 | compiler_F77=$CC |
13100 | for cc_temp in $compiler""; do |
13101 | case $cc_temp in |
13102 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
13103 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
13104 | \-*) ;; |
13105 | *) break;; |
13106 | esac |
13107 | done |
13108 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
13109 | |
13110 | |
13111 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
13112 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
13113 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
13114 | echo "${ECHO_T}$can_build_shared" >&6 |
13115 | |
13116 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
13117 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
13118 | test "$can_build_shared" = "no" && enable_shared=no |
13119 | |
13120 | # On AIX, shared libraries and static libraries use the same namespace, and |
13121 | # are all built from PIC. |
13122 | case $host_os in |
13123 | aix3*) |
13124 | test "$enable_shared" = yes && enable_static=no |
13125 | if test -n "$RANLIB"; then |
13126 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
13127 | postinstall_cmds='$RANLIB $lib' |
13128 | fi |
13129 | ;; |
13130 | aix4* | aix5*) |
13131 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13132 | test "$enable_shared" = yes && enable_static=no |
13133 | fi |
13134 | ;; |
13135 | esac |
13136 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
13137 | echo "${ECHO_T}$enable_shared" >&6 |
13138 | |
13139 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
13140 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
13141 | # Make sure either enable_shared or enable_static is yes. |
13142 | test "$enable_shared" = yes || enable_static=yes |
13143 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
13144 | echo "${ECHO_T}$enable_static" >&6 |
13145 | |
13146 | GCC_F77="$G77" |
13147 | LD_F77="$LD" |
13148 | |
13149 | lt_prog_compiler_wl_F77= |
13150 | lt_prog_compiler_pic_F77= |
13151 | lt_prog_compiler_static_F77= |
13152 | |
13153 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
13154 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
13155 | |
13156 | if test "$GCC" = yes; then |
13157 | lt_prog_compiler_wl_F77='-Wl,' |
13158 | lt_prog_compiler_static_F77='-static' |
13159 | |
13160 | case $host_os in |
13161 | aix*) |
13162 | # All AIX code is PIC. |
13163 | if test "$host_cpu" = ia64; then |
13164 | # AIX 5 now supports IA64 processor |
13165 | lt_prog_compiler_static_F77='-Bstatic' |
13166 | fi |
13167 | ;; |
13168 | |
13169 | amigaos*) |
13170 | # FIXME: we need at least 68020 code to build shared libraries, but |
13171 | # adding the `-m68020' flag to GCC prevents building anything better, |
13172 | # like `-m68040'. |
13173 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
13174 | ;; |
13175 | |
13176 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
13177 | # PIC is the default for these OSes. |
13178 | ;; |
13179 | |
13180 | mingw* | pw32* | os2*) |
13181 | # This hack is so that the source file can tell whether it is being |
13182 | # built for inclusion in a dll (and should export symbols for example). |
13183 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13184 | ;; |
13185 | |
13186 | darwin* | rhapsody*) |
13187 | # PIC is the default on this platform |
13188 | # Common symbols not allowed in MH_DYLIB files |
13189 | lt_prog_compiler_pic_F77='-fno-common' |
13190 | ;; |
13191 | |
13192 | interix3*) |
13193 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
13194 | # Instead, we relocate shared libraries at runtime. |
13195 | ;; |
13196 | |
13197 | msdosdjgpp*) |
13198 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
13199 | # on systems that don't support them. |
13200 | lt_prog_compiler_can_build_shared_F77=no |
13201 | enable_shared=no |
13202 | ;; |
13203 | |
13204 | sysv4*MP*) |
13205 | if test -d /usr/nec; then |
13206 | lt_prog_compiler_pic_F77=-Kconform_pic |
13207 | fi |
13208 | ;; |
13209 | |
13210 | hpux*) |
13211 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13212 | # not for PA HP-UX. |
13213 | case $host_cpu in |
13214 | hppa*64*|ia64*) |
13215 | # +Z the default |
13216 | ;; |
13217 | *) |
13218 | lt_prog_compiler_pic_F77='-fPIC' |
13219 | ;; |
13220 | esac |
13221 | ;; |
13222 | |
13223 | *) |
13224 | lt_prog_compiler_pic_F77='-fPIC' |
13225 | ;; |
13226 | esac |
13227 | else |
13228 | # PORTME Check for flag to pass linker flags through the system compiler. |
13229 | case $host_os in |
13230 | aix*) |
13231 | lt_prog_compiler_wl_F77='-Wl,' |
13232 | if test "$host_cpu" = ia64; then |
13233 | # AIX 5 now supports IA64 processor |
13234 | lt_prog_compiler_static_F77='-Bstatic' |
13235 | else |
13236 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
13237 | fi |
13238 | ;; |
13239 | darwin*) |
13240 | # PIC is the default on this platform |
13241 | # Common symbols not allowed in MH_DYLIB files |
13242 | case $cc_basename in |
13243 | xlc*) |
13244 | lt_prog_compiler_pic_F77='-qnocommon' |
13245 | lt_prog_compiler_wl_F77='-Wl,' |
13246 | ;; |
13247 | esac |
13248 | ;; |
13249 | |
13250 | mingw* | pw32* | os2*) |
13251 | # This hack is so that the source file can tell whether it is being |
13252 | # built for inclusion in a dll (and should export symbols for example). |
13253 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13254 | ;; |
13255 | |
13256 | hpux9* | hpux10* | hpux11*) |
13257 | lt_prog_compiler_wl_F77='-Wl,' |
13258 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13259 | # not for PA HP-UX. |
13260 | case $host_cpu in |
13261 | hppa*64*|ia64*) |
13262 | # +Z the default |
13263 | ;; |
13264 | *) |
13265 | lt_prog_compiler_pic_F77='+Z' |
13266 | ;; |
13267 | esac |
13268 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
13269 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
13270 | ;; |
13271 | |
13272 | irix5* | irix6* | nonstopux*) |
13273 | lt_prog_compiler_wl_F77='-Wl,' |
13274 | # PIC (with -KPIC) is the default. |
13275 | lt_prog_compiler_static_F77='-non_shared' |
13276 | ;; |
13277 | |
13278 | newsos6) |
13279 | lt_prog_compiler_pic_F77='-KPIC' |
13280 | lt_prog_compiler_static_F77='-Bstatic' |
13281 | ;; |
13282 | |
13283 | linux*) |
13284 | case $cc_basename in |
13285 | icc* | ecc*) |
13286 | lt_prog_compiler_wl_F77='-Wl,' |
13287 | lt_prog_compiler_pic_F77='-KPIC' |
13288 | lt_prog_compiler_static_F77='-static' |
13289 | ;; |
13290 | pgcc* | pgf77* | pgf90* | pgf95*) |
13291 | # Portland Group compilers (*not* the Pentium gcc compiler, |
13292 | # which looks to be a dead project) |
13293 | lt_prog_compiler_wl_F77='-Wl,' |
13294 | lt_prog_compiler_pic_F77='-fpic' |
13295 | lt_prog_compiler_static_F77='-Bstatic' |
13296 | ;; |
13297 | ccc*) |
13298 | lt_prog_compiler_wl_F77='-Wl,' |
13299 | # All Alpha code is PIC. |
13300 | lt_prog_compiler_static_F77='-non_shared' |
13301 | ;; |
13302 | esac |
13303 | ;; |
13304 | |
13305 | osf3* | osf4* | osf5*) |
13306 | lt_prog_compiler_wl_F77='-Wl,' |
13307 | # All OSF/1 code is PIC. |
13308 | lt_prog_compiler_static_F77='-non_shared' |
13309 | ;; |
13310 | |
13311 | solaris*) |
13312 | lt_prog_compiler_pic_F77='-KPIC' |
13313 | lt_prog_compiler_static_F77='-Bstatic' |
13314 | case $cc_basename in |
13315 | f77* | f90* | f95*) |
13316 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
13317 | *) |
13318 | lt_prog_compiler_wl_F77='-Wl,';; |
13319 | esac |
13320 | ;; |
13321 | |
13322 | sunos4*) |
13323 | lt_prog_compiler_wl_F77='-Qoption ld ' |
13324 | lt_prog_compiler_pic_F77='-PIC' |
13325 | lt_prog_compiler_static_F77='-Bstatic' |
13326 | ;; |
13327 | |
13328 | sysv4 | sysv4.2uw2* | sysv4.3*) |
13329 | lt_prog_compiler_wl_F77='-Wl,' |
13330 | lt_prog_compiler_pic_F77='-KPIC' |
13331 | lt_prog_compiler_static_F77='-Bstatic' |
13332 | ;; |
13333 | |
13334 | sysv4*MP*) |
13335 | if test -d /usr/nec ;then |
13336 | lt_prog_compiler_pic_F77='-Kconform_pic' |
13337 | lt_prog_compiler_static_F77='-Bstatic' |
13338 | fi |
13339 | ;; |
13340 | |
13341 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
13342 | lt_prog_compiler_wl_F77='-Wl,' |
13343 | lt_prog_compiler_pic_F77='-KPIC' |
13344 | lt_prog_compiler_static_F77='-Bstatic' |
13345 | ;; |
13346 | |
13347 | unicos*) |
13348 | lt_prog_compiler_wl_F77='-Wl,' |
13349 | lt_prog_compiler_can_build_shared_F77=no |
13350 | ;; |
13351 | |
13352 | uts4*) |
13353 | lt_prog_compiler_pic_F77='-pic' |
13354 | lt_prog_compiler_static_F77='-Bstatic' |
13355 | ;; |
13356 | |
13357 | *) |
13358 | lt_prog_compiler_can_build_shared_F77=no |
13359 | ;; |
13360 | esac |
13361 | fi |
13362 | |
13363 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
13364 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
13365 | |
13366 | # |
13367 | # Check to make sure the PIC flag actually works. |
13368 | # |
13369 | if test -n "$lt_prog_compiler_pic_F77"; then |
13370 | |
13371 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
13372 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
13373 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
13374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13375 | else |
13376 | lt_prog_compiler_pic_works_F77=no |
13377 | ac_outfile=conftest.$ac_objext |
13378 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
13379 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
13380 | # Insert the option either (1) after the last *FLAGS variable, or |
13381 | # (2) before a word containing "conftest.", or (3) at the end. |
13382 | # Note that $ac_compile itself does not contain backslashes and begins |
13383 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
13384 | # The option is referenced via a variable to avoid confusing sed. |
13385 | lt_compile=`echo "$ac_compile" | $SED \ |
13386 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
13387 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
13388 | -e 's:$: $lt_compiler_flag:'` |
13389 | (eval echo "\"\$as_me:13389: $lt_compile\"" >&5) |
13390 | (eval "$lt_compile" 2>conftest.err) |
13391 | ac_status=$? |
13392 | cat conftest.err >&5 |
13393 | echo "$as_me:13393: \$? = $ac_status" >&5 |
13394 | if (exit $ac_status) && test -s "$ac_outfile"; then |
13395 | # The compiler can only warn and ignore the option if not recognized |
13396 | # So say no if there are warnings other than the usual output. |
13397 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
13398 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
13399 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
13400 | lt_prog_compiler_pic_works_F77=yes |
13401 | fi |
13402 | fi |
13403 | $rm conftest* |
13404 | |
13405 | fi |
13406 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
13407 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
13408 | |
13409 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
13410 | case $lt_prog_compiler_pic_F77 in |
13411 | "" | " "*) ;; |
13412 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
13413 | esac |
13414 | else |
13415 | lt_prog_compiler_pic_F77= |
13416 | lt_prog_compiler_can_build_shared_F77=no |
13417 | fi |
13418 | |
13419 | fi |
13420 | case $host_os in |
13421 | # For platforms which do not support PIC, -DPIC is meaningless: |
13422 | *djgpp*) |
13423 | lt_prog_compiler_pic_F77= |
13424 | ;; |
13425 | *) |
13426 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
13427 | ;; |
13428 | esac |
13429 | |
13430 | # |
13431 | # Check to make sure the static flag actually works. |
13432 | # |
13433 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
13434 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
13435 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
13436 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
13437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13438 | else |
13439 | lt_prog_compiler_static_works_F77=no |
13440 | save_LDFLAGS="$LDFLAGS" |
13441 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
13442 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
13443 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
13444 | # The linker can only warn and ignore the option if not recognized |
13445 | # So say no if there are warnings |
13446 | if test -s conftest.err; then |
13447 | # Append any errors to the config.log. |
13448 | cat conftest.err 1>&5 |
13449 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
13450 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
13451 | if diff conftest.exp conftest.er2 >/dev/null; then |
13452 | lt_prog_compiler_static_works_F77=yes |
13453 | fi |
13454 | else |
13455 | lt_prog_compiler_static_works_F77=yes |
13456 | fi |
13457 | fi |
13458 | $rm conftest* |
13459 | LDFLAGS="$save_LDFLAGS" |
13460 | |
13461 | fi |
13462 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
13463 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 |
13464 | |
13465 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
13466 | : |
13467 | else |
13468 | lt_prog_compiler_static_F77= |
13469 | fi |
13470 | |
13471 | |
13472 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
13473 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
13474 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
13475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13476 | else |
13477 | lt_cv_prog_compiler_c_o_F77=no |
13478 | $rm -r conftest 2>/dev/null |
13479 | mkdir conftest |
13480 | cd conftest |
13481 | mkdir out |
13482 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
13483 | |
13484 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
13485 | # Insert the option either (1) after the last *FLAGS variable, or |
13486 | # (2) before a word containing "conftest.", or (3) at the end. |
13487 | # Note that $ac_compile itself does not contain backslashes and begins |
13488 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
13489 | lt_compile=`echo "$ac_compile" | $SED \ |
13490 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
13491 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
13492 | -e 's:$: $lt_compiler_flag:'` |
13493 | (eval echo "\"\$as_me:13493: $lt_compile\"" >&5) |
13494 | (eval "$lt_compile" 2>out/conftest.err) |
13495 | ac_status=$? |
13496 | cat out/conftest.err >&5 |
13497 | echo "$as_me:13497: \$? = $ac_status" >&5 |
13498 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13499 | then |
13500 | # The compiler can only warn and ignore the option if not recognized |
13501 | # So say no if there are warnings |
13502 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
13503 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
13504 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
13505 | lt_cv_prog_compiler_c_o_F77=yes |
13506 | fi |
13507 | fi |
13508 | chmod u+w . 2>&5 |
13509 | $rm conftest* |
13510 | # SGI C++ compiler will create directory out/ii_files/ for |
13511 | # template instantiation |
13512 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
13513 | $rm out/* && rmdir out |
13514 | cd .. |
13515 | rmdir conftest |
13516 | $rm conftest* |
13517 | |
13518 | fi |
13519 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
13520 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
13521 | |
13522 | |
13523 | hard_links="nottested" |
13524 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
13525 | # do not overwrite the value of need_locks provided by the user |
13526 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
13527 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
13528 | hard_links=yes |
13529 | $rm conftest* |
13530 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
13531 | touch conftest.a |
13532 | ln conftest.a conftest.b 2>&5 || hard_links=no |
13533 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
13534 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
13535 | echo "${ECHO_T}$hard_links" >&6 |
13536 | if test "$hard_links" = no; then |
13537 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
13538 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
13539 | need_locks=warn |
13540 | fi |
13541 | else |
13542 | need_locks=no |
13543 | fi |
13544 | |
13545 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
13546 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
13547 | |
13548 | runpath_var= |
13549 | allow_undefined_flag_F77= |
13550 | enable_shared_with_static_runtimes_F77=no |
13551 | archive_cmds_F77= |
13552 | archive_expsym_cmds_F77= |
13553 | old_archive_From_new_cmds_F77= |
13554 | old_archive_from_expsyms_cmds_F77= |
13555 | export_dynamic_flag_spec_F77= |
13556 | whole_archive_flag_spec_F77= |
13557 | thread_safe_flag_spec_F77= |
13558 | hardcode_libdir_flag_spec_F77= |
13559 | hardcode_libdir_flag_spec_ld_F77= |
13560 | hardcode_libdir_separator_F77= |
13561 | hardcode_direct_F77=no |
13562 | hardcode_minus_L_F77=no |
13563 | hardcode_shlibpath_var_F77=unsupported |
13564 | link_all_deplibs_F77=unknown |
13565 | hardcode_automatic_F77=no |
13566 | module_cmds_F77= |
13567 | module_expsym_cmds_F77= |
13568 | always_export_symbols_F77=no |
13569 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
13570 | # include_expsyms should be a list of space-separated symbols to be *always* |
13571 | # included in the symbol list |
13572 | include_expsyms_F77= |
13573 | # exclude_expsyms can be an extended regexp of symbols to exclude |
13574 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
13575 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
13576 | # as well as any symbol that contains `d'. |
13577 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
13578 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
13579 | # platforms (ab)use it in PIC code, but their linkers get confused if |
13580 | # the symbol is explicitly referenced. Since portable code cannot |
13581 | # rely on this symbol name, it's probably fine to never include it in |
13582 | # preloaded symbol tables. |
13583 | extract_expsyms_cmds= |
13584 | # Just being paranoid about ensuring that cc_basename is set. |
13585 | for cc_temp in $compiler""; do |
13586 | case $cc_temp in |
13587 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
13588 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
13589 | \-*) ;; |
13590 | *) break;; |
13591 | esac |
13592 | done |
13593 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
13594 | |
13595 | case $host_os in |
13596 | cygwin* | mingw* | pw32*) |
13597 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
13598 | # When not using gcc, we currently assume that we are using |
13599 | # Microsoft Visual C++. |
13600 | if test "$GCC" != yes; then |
13601 | with_gnu_ld=no |
13602 | fi |
13603 | ;; |
13604 | interix*) |
13605 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
13606 | with_gnu_ld=yes |
13607 | ;; |
13608 | openbsd*) |
13609 | with_gnu_ld=no |
13610 | ;; |
13611 | esac |
13612 | |
13613 | ld_shlibs_F77=yes |
13614 | if test "$with_gnu_ld" = yes; then |
13615 | # If archive_cmds runs LD, not CC, wlarc should be empty |
13616 | wlarc='${wl}' |
13617 | |
13618 | # Set some defaults for GNU ld with shared library support. These |
13619 | # are reset later if shared libraries are not supported. Putting them |
13620 | # here allows them to be overridden if necessary. |
13621 | runpath_var=LD_RUN_PATH |
13622 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
13623 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
13624 | # ancient GNU ld didn't support --whole-archive et. al. |
13625 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
13626 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
13627 | else |
13628 | whole_archive_flag_spec_F77= |
13629 | fi |
13630 | supports_anon_versioning=no |
13631 | case `$LD -v 2>/dev/null` in |
13632 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
13633 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
13634 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
13635 | *\ 2.11.*) ;; # other 2.11 versions |
13636 | *) supports_anon_versioning=yes ;; |
13637 | esac |
13638 | |
13639 | # See if GNU ld supports shared libraries. |
13640 | case $host_os in |
13641 | aix3* | aix4* | aix5*) |
13642 | # On AIX/PPC, the GNU linker is very broken |
13643 | if test "$host_cpu" != ia64; then |
13644 | ld_shlibs_F77=no |
13645 | cat <<EOF 1>&2 |
13646 | |
13647 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
13648 | *** to be unable to reliably create shared libraries on AIX. |
13649 | *** Therefore, libtool is disabling shared libraries support. If you |
13650 | *** really care for shared libraries, you may want to modify your PATH |
13651 | *** so that a non-GNU linker is found, and then restart. |
13652 | |
13653 | EOF |
13654 | fi |
13655 | ;; |
13656 | |
13657 | amigaos*) |
13658 | 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)' |
13659 | hardcode_libdir_flag_spec_F77='-L$libdir' |
13660 | hardcode_minus_L_F77=yes |
13661 | |
13662 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
13663 | # that the semantics of dynamic libraries on AmigaOS, at least up |
13664 | # to version 4, is to share data among multiple programs linked |
13665 | # with the same dynamic library. Since this doesn't match the |
13666 | # behavior of shared libraries on other platforms, we can't use |
13667 | # them. |
13668 | ld_shlibs_F77=no |
13669 | ;; |
13670 | |
13671 | beos*) |
13672 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13673 | allow_undefined_flag_F77=unsupported |
13674 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
13675 | # support --undefined. This deserves some investigation. FIXME |
13676 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13677 | else |
13678 | ld_shlibs_F77=no |
13679 | fi |
13680 | ;; |
13681 | |
13682 | cygwin* | mingw* | pw32*) |
13683 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
13684 | # as there is no search path for DLLs. |
13685 | hardcode_libdir_flag_spec_F77='-L$libdir' |
13686 | allow_undefined_flag_F77=unsupported |
13687 | always_export_symbols_F77=no |
13688 | enable_shared_with_static_runtimes_F77=yes |
13689 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
13690 | |
13691 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
13692 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
13693 | # If the export-symbols file already is a .def file (1st line |
13694 | # is EXPORTS), use it as is; otherwise, prepend... |
13695 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
13696 | cp $export_symbols $output_objdir/$soname.def; |
13697 | else |
13698 | echo EXPORTS > $output_objdir/$soname.def; |
13699 | cat $export_symbols >> $output_objdir/$soname.def; |
13700 | fi~ |
13701 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
13702 | else |
13703 | ld_shlibs_F77=no |
13704 | fi |
13705 | ;; |
13706 | |
13707 | interix3*) |
13708 | hardcode_direct_F77=no |
13709 | hardcode_shlibpath_var_F77=no |
13710 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
13711 | export_dynamic_flag_spec_F77='${wl}-E' |
13712 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
13713 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
13714 | # default) and relocated if they conflict, which is a slow very memory |
13715 | # consuming and fragmenting process. To avoid this, we pick a random, |
13716 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
13717 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
13718 | 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' |
13719 | 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' |
13720 | ;; |
13721 | |
13722 | linux*) |
13723 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13724 | tmp_addflag= |
13725 | case $cc_basename,$host_cpu in |
13726 | pgcc*) # Portland Group C compiler |
13727 | 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' |
13728 | tmp_addflag=' $pic_flag' |
13729 | ;; |
13730 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
13731 | 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' |
13732 | tmp_addflag=' $pic_flag -Mnomain' ;; |
13733 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
13734 | tmp_addflag=' -i_dynamic' ;; |
13735 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
13736 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
13737 | ifc* | ifort*) # Intel Fortran compiler |
13738 | tmp_addflag=' -nofor_main' ;; |
13739 | esac |
13740 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13741 | |
13742 | if test $supports_anon_versioning = yes; then |
13743 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
13744 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
13745 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
13746 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
13747 | fi |
13748 | else |
13749 | ld_shlibs_F77=no |
13750 | fi |
13751 | ;; |
13752 | |
13753 | netbsd*) |
13754 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
13755 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
13756 | wlarc= |
13757 | else |
13758 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13759 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
13760 | fi |
13761 | ;; |
13762 | |
13763 | solaris*) |
13764 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
13765 | ld_shlibs_F77=no |
13766 | cat <<EOF 1>&2 |
13767 | |
13768 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
13769 | *** create shared libraries on Solaris systems. Therefore, libtool |
13770 | *** is disabling shared libraries support. We urge you to upgrade GNU |
13771 | *** binutils to release 2.9.1 or newer. Another option is to modify |
13772 | *** your PATH or compiler configuration so that the native linker is |
13773 | *** used, and then restart. |
13774 | |
13775 | EOF |
13776 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13777 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13778 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
13779 | else |
13780 | ld_shlibs_F77=no |
13781 | fi |
13782 | ;; |
13783 | |
13784 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
13785 | case `$LD -v 2>&1` in |
13786 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
13787 | ld_shlibs_F77=no |
13788 | cat <<_LT_EOF 1>&2 |
13789 | |
13790 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
13791 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
13792 | *** is disabling shared libraries support. We urge you to upgrade GNU |
13793 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
13794 | *** your PATH or compiler configuration so that the native linker is |
13795 | *** used, and then restart. |
13796 | |
13797 | _LT_EOF |
13798 | ;; |
13799 | *) |
13800 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13801 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
13802 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
13803 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
13804 | else |
13805 | ld_shlibs_F77=no |
13806 | fi |
13807 | ;; |
13808 | esac |
13809 | ;; |
13810 | |
13811 | sunos4*) |
13812 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
13813 | wlarc= |
13814 | hardcode_direct_F77=yes |
13815 | hardcode_shlibpath_var_F77=no |
13816 | ;; |
13817 | |
13818 | *) |
13819 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13820 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13821 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
13822 | else |
13823 | ld_shlibs_F77=no |
13824 | fi |
13825 | ;; |
13826 | esac |
13827 | |
13828 | if test "$ld_shlibs_F77" = no; then |
13829 | runpath_var= |
13830 | hardcode_libdir_flag_spec_F77= |
13831 | export_dynamic_flag_spec_F77= |
13832 | whole_archive_flag_spec_F77= |
13833 | fi |
13834 | else |
13835 | # PORTME fill in a description of your system's linker (not GNU ld) |
13836 | case $host_os in |
13837 | aix3*) |
13838 | allow_undefined_flag_F77=unsupported |
13839 | always_export_symbols_F77=yes |
13840 | 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' |
13841 | # Note: this linker hardcodes the directories in LIBPATH if there |
13842 | # are no directories specified by -L. |
13843 | hardcode_minus_L_F77=yes |
13844 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
13845 | # Neither direct hardcoding nor static linking is supported with a |
13846 | # broken collect2. |
13847 | hardcode_direct_F77=unsupported |
13848 | fi |
13849 | ;; |
13850 | |
13851 | aix4* | aix5*) |
13852 | if test "$host_cpu" = ia64; then |
13853 | # On IA64, the linker does run time linking by default, so we don't |
13854 | # have to do anything special. |
13855 | aix_use_runtimelinking=no |
13856 | exp_sym_flag='-Bexport' |
13857 | no_entry_flag="" |
13858 | else |
13859 | # If we're using GNU nm, then we don't want the "-C" option. |
13860 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
13861 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
13862 | 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' |
13863 | else |
13864 | 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' |
13865 | fi |
13866 | aix_use_runtimelinking=no |
13867 | |
13868 | # Test if we are trying to use run time linking or normal |
13869 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
13870 | # need to do runtime linking. |
13871 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
13872 | for ld_flag in $LDFLAGS; do |
13873 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
13874 | aix_use_runtimelinking=yes |
13875 | break |
13876 | fi |
13877 | done |
13878 | ;; |
13879 | esac |
13880 | |
13881 | exp_sym_flag='-bexport' |
13882 | no_entry_flag='-bnoentry' |
13883 | fi |
13884 | |
13885 | # When large executables or shared objects are built, AIX ld can |
13886 | # have problems creating the table of contents. If linking a library |
13887 | # or program results in "error TOC overflow" add -mminimal-toc to |
13888 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
13889 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
13890 | |
13891 | archive_cmds_F77='' |
13892 | hardcode_direct_F77=yes |
13893 | hardcode_libdir_separator_F77=':' |
13894 | link_all_deplibs_F77=yes |
13895 | |
13896 | if test "$GCC" = yes; then |
13897 | case $host_os in aix4.[012]|aix4.[012].*) |
13898 | # We only want to do this on AIX 4.2 and lower, the check |
13899 | # below for broken collect2 doesn't work under 4.3+ |
13900 | collect2name=`${CC} -print-prog-name=collect2` |
13901 | if test -f "$collect2name" && \ |
13902 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
13903 | then |
13904 | # We have reworked collect2 |
13905 | hardcode_direct_F77=yes |
13906 | else |
13907 | # We have old collect2 |
13908 | hardcode_direct_F77=unsupported |
13909 | # It fails to find uninstalled libraries when the uninstalled |
13910 | # path is not listed in the libpath. Setting hardcode_minus_L |
13911 | # to unsupported forces relinking |
13912 | hardcode_minus_L_F77=yes |
13913 | hardcode_libdir_flag_spec_F77='-L$libdir' |
13914 | hardcode_libdir_separator_F77= |
13915 | fi |
13916 | ;; |
13917 | esac |
13918 | shared_flag='-shared' |
13919 | if test "$aix_use_runtimelinking" = yes; then |
13920 | shared_flag="$shared_flag "'${wl}-G' |
13921 | fi |
13922 | else |
13923 | # not using gcc |
13924 | if test "$host_cpu" = ia64; then |
13925 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
13926 | # chokes on -Wl,-G. The following line is correct: |
13927 | shared_flag='-G' |
13928 | else |
13929 | if test "$aix_use_runtimelinking" = yes; then |
13930 | shared_flag='${wl}-G' |
13931 | else |
13932 | shared_flag='${wl}-bM:SRE' |
13933 | fi |
13934 | fi |
13935 | fi |
13936 | |
13937 | # It seems that -bexpall does not export symbols beginning with |
13938 | # underscore (_), so it is better to generate a list of symbols to export. |
13939 | always_export_symbols_F77=yes |
13940 | if test "$aix_use_runtimelinking" = yes; then |
13941 | # Warning - without using the other runtime loading flags (-brtl), |
13942 | # -berok will link without error, but may produce a broken library. |
13943 | allow_undefined_flag_F77='-berok' |
13944 | # Determine the default libpath from the value encoded in an empty executable. |
13945 | cat >conftest.$ac_ext <<_ACEOF |
13946 | program main |
13947 | |
13948 | end |
13949 | _ACEOF |
13950 | rm -f conftest.$ac_objext conftest$ac_exeext |
13951 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13952 | (eval $ac_link) 2>conftest.er1 |
13953 | ac_status=$? |
13954 | grep -v '^ *+' conftest.er1 >conftest.err |
13955 | rm -f conftest.er1 |
13956 | cat conftest.err >&5 |
13957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13958 | (exit $ac_status); } && |
13959 | { ac_try='test -z "$ac_f77_werror_flag" |
13960 | || test ! -s conftest.err' |
13961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13962 | (eval $ac_try) 2>&5 |
13963 | ac_status=$? |
13964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13965 | (exit $ac_status); }; } && |
13966 | { ac_try='test -s conftest$ac_exeext' |
13967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13968 | (eval $ac_try) 2>&5 |
13969 | ac_status=$? |
13970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13971 | (exit $ac_status); }; }; then |
13972 | |
13973 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
13974 | }'` |
13975 | # Check for a 64-bit object if we didn't find anything. |
13976 | 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; } |
13977 | }'`; fi |
13978 | else |
13979 | echo "$as_me: failed program was:" >&5 |
13980 | sed 's/^/| /' conftest.$ac_ext >&5 |
13981 | |
13982 | fi |
13983 | rm -f conftest.err conftest.$ac_objext \ |
13984 | conftest$ac_exeext conftest.$ac_ext |
13985 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
13986 | |
13987 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
13988 | 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" |
13989 | else |
13990 | if test "$host_cpu" = ia64; then |
13991 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
13992 | allow_undefined_flag_F77="-z nodefs" |
13993 | 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" |
13994 | else |
13995 | # Determine the default libpath from the value encoded in an empty executable. |
13996 | cat >conftest.$ac_ext <<_ACEOF |
13997 | program main |
13998 | |
13999 | end |
14000 | _ACEOF |
14001 | rm -f conftest.$ac_objext conftest$ac_exeext |
14002 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14003 | (eval $ac_link) 2>conftest.er1 |
14004 | ac_status=$? |
14005 | grep -v '^ *+' conftest.er1 >conftest.err |
14006 | rm -f conftest.er1 |
14007 | cat conftest.err >&5 |
14008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14009 | (exit $ac_status); } && |
14010 | { ac_try='test -z "$ac_f77_werror_flag" |
14011 | || test ! -s conftest.err' |
14012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14013 | (eval $ac_try) 2>&5 |
14014 | ac_status=$? |
14015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14016 | (exit $ac_status); }; } && |
14017 | { ac_try='test -s conftest$ac_exeext' |
14018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14019 | (eval $ac_try) 2>&5 |
14020 | ac_status=$? |
14021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14022 | (exit $ac_status); }; }; then |
14023 | |
14024 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14025 | }'` |
14026 | # Check for a 64-bit object if we didn't find anything. |
14027 | 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; } |
14028 | }'`; fi |
14029 | else |
14030 | echo "$as_me: failed program was:" >&5 |
14031 | sed 's/^/| /' conftest.$ac_ext >&5 |
14032 | |
14033 | fi |
14034 | rm -f conftest.err conftest.$ac_objext \ |
14035 | conftest$ac_exeext conftest.$ac_ext |
14036 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14037 | |
14038 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14039 | # Warning - without using the other run time loading flags, |
14040 | # -berok will link without error, but may produce a broken library. |
14041 | no_undefined_flag_F77=' ${wl}-bernotok' |
14042 | allow_undefined_flag_F77=' ${wl}-berok' |
14043 | # Exported symbols can be pulled into shared objects from archives |
14044 | whole_archive_flag_spec_F77='$convenience' |
14045 | archive_cmds_need_lc_F77=yes |
14046 | # This is similar to how AIX traditionally builds its shared libraries. |
14047 | 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' |
14048 | fi |
14049 | fi |
14050 | ;; |
14051 | |
14052 | amigaos*) |
14053 | 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)' |
14054 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14055 | hardcode_minus_L_F77=yes |
14056 | # see comment about different semantics on the GNU ld section |
14057 | ld_shlibs_F77=no |
14058 | ;; |
14059 | |
14060 | bsdi[45]*) |
14061 | export_dynamic_flag_spec_F77=-rdynamic |
14062 | ;; |
14063 | |
14064 | cygwin* | mingw* | pw32*) |
14065 | # When not using gcc, we currently assume that we are using |
14066 | # Microsoft Visual C++. |
14067 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
14068 | # no search path for DLLs. |
14069 | hardcode_libdir_flag_spec_F77=' ' |
14070 | allow_undefined_flag_F77=unsupported |
14071 | # Tell ltmain to make .lib files, not .a files. |
14072 | libext=lib |
14073 | # Tell ltmain to make .dll files, not .so files. |
14074 | shrext_cmds=".dll" |
14075 | # FIXME: Setting linknames here is a bad hack. |
14076 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
14077 | # The linker will automatically build a .lib file if we build a DLL. |
14078 | old_archive_From_new_cmds_F77='true' |
14079 | # FIXME: Should let the user specify the lib program. |
14080 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
14081 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
14082 | enable_shared_with_static_runtimes_F77=yes |
14083 | ;; |
14084 | |
14085 | darwin* | rhapsody*) |
14086 | case $host_os in |
14087 | rhapsody* | darwin1.[012]) |
14088 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
14089 | ;; |
14090 | *) # Darwin 1.3 on |
14091 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
14092 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14093 | else |
14094 | case ${MACOSX_DEPLOYMENT_TARGET} in |
14095 | 10.[012]) |
14096 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14097 | ;; |
14098 | 10.*) |
14099 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
14100 | ;; |
14101 | esac |
14102 | fi |
14103 | ;; |
14104 | esac |
14105 | archive_cmds_need_lc_F77=no |
14106 | hardcode_direct_F77=no |
14107 | hardcode_automatic_F77=yes |
14108 | hardcode_shlibpath_var_F77=unsupported |
14109 | whole_archive_flag_spec_F77='' |
14110 | link_all_deplibs_F77=yes |
14111 | if test "$GCC" = yes ; then |
14112 | output_verbose_link_cmd='echo' |
14113 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
14114 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14115 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14116 | 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}' |
14117 | 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}' |
14118 | else |
14119 | case $cc_basename in |
14120 | xlc*) |
14121 | output_verbose_link_cmd='echo' |
14122 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
14123 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14124 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14125 | 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}' |
14126 | 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}' |
14127 | ;; |
14128 | *) |
14129 | ld_shlibs_F77=no |
14130 | ;; |
14131 | esac |
14132 | fi |
14133 | ;; |
14134 | |
14135 | dgux*) |
14136 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14137 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14138 | hardcode_shlibpath_var_F77=no |
14139 | ;; |
14140 | |
14141 | freebsd1*) |
14142 | ld_shlibs_F77=no |
14143 | ;; |
14144 | |
14145 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
14146 | # support. Future versions do this automatically, but an explicit c++rt0.o |
14147 | # does not break anything, and helps significantly (at the cost of a little |
14148 | # extra space). |
14149 | freebsd2.2*) |
14150 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
14151 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14152 | hardcode_direct_F77=yes |
14153 | hardcode_shlibpath_var_F77=no |
14154 | ;; |
14155 | |
14156 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
14157 | freebsd2*) |
14158 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14159 | hardcode_direct_F77=yes |
14160 | hardcode_minus_L_F77=yes |
14161 | hardcode_shlibpath_var_F77=no |
14162 | ;; |
14163 | |
14164 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
14165 | freebsd* | kfreebsd*-gnu | dragonfly*) |
14166 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
14167 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14168 | hardcode_direct_F77=yes |
14169 | hardcode_shlibpath_var_F77=no |
14170 | ;; |
14171 | |
14172 | hpux9*) |
14173 | if test "$GCC" = yes; then |
14174 | 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' |
14175 | else |
14176 | 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' |
14177 | fi |
14178 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14179 | hardcode_libdir_separator_F77=: |
14180 | hardcode_direct_F77=yes |
14181 | |
14182 | # hardcode_minus_L: Not really in the search PATH, |
14183 | # but as the default location of the library. |
14184 | hardcode_minus_L_F77=yes |
14185 | export_dynamic_flag_spec_F77='${wl}-E' |
14186 | ;; |
14187 | |
14188 | hpux10*) |
14189 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14190 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14191 | else |
14192 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
14193 | fi |
14194 | if test "$with_gnu_ld" = no; then |
14195 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14196 | hardcode_libdir_separator_F77=: |
14197 | |
14198 | hardcode_direct_F77=yes |
14199 | export_dynamic_flag_spec_F77='${wl}-E' |
14200 | |
14201 | # hardcode_minus_L: Not really in the search PATH, |
14202 | # but as the default location of the library. |
14203 | hardcode_minus_L_F77=yes |
14204 | fi |
14205 | ;; |
14206 | |
14207 | hpux11*) |
14208 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14209 | case $host_cpu in |
14210 | hppa*64*) |
14211 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14212 | ;; |
14213 | ia64*) |
14214 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14215 | ;; |
14216 | *) |
14217 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14218 | ;; |
14219 | esac |
14220 | else |
14221 | case $host_cpu in |
14222 | hppa*64*) |
14223 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14224 | ;; |
14225 | ia64*) |
14226 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14227 | ;; |
14228 | *) |
14229 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14230 | ;; |
14231 | esac |
14232 | fi |
14233 | if test "$with_gnu_ld" = no; then |
14234 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14235 | hardcode_libdir_separator_F77=: |
14236 | |
14237 | case $host_cpu in |
14238 | hppa*64*|ia64*) |
14239 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
14240 | hardcode_direct_F77=no |
14241 | hardcode_shlibpath_var_F77=no |
14242 | ;; |
14243 | *) |
14244 | hardcode_direct_F77=yes |
14245 | export_dynamic_flag_spec_F77='${wl}-E' |
14246 | |
14247 | # hardcode_minus_L: Not really in the search PATH, |
14248 | # but as the default location of the library. |
14249 | hardcode_minus_L_F77=yes |
14250 | ;; |
14251 | esac |
14252 | fi |
14253 | ;; |
14254 | |
14255 | irix5* | irix6* | nonstopux*) |
14256 | if test "$GCC" = yes; then |
14257 | 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' |
14258 | else |
14259 | 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' |
14260 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
14261 | fi |
14262 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14263 | hardcode_libdir_separator_F77=: |
14264 | link_all_deplibs_F77=yes |
14265 | ;; |
14266 | |
14267 | netbsd*) |
14268 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14269 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
14270 | else |
14271 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
14272 | fi |
14273 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14274 | hardcode_direct_F77=yes |
14275 | hardcode_shlibpath_var_F77=no |
14276 | ;; |
14277 | |
14278 | newsos6) |
14279 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14280 | hardcode_direct_F77=yes |
14281 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14282 | hardcode_libdir_separator_F77=: |
14283 | hardcode_shlibpath_var_F77=no |
14284 | ;; |
14285 | |
14286 | openbsd*) |
14287 | hardcode_direct_F77=yes |
14288 | hardcode_shlibpath_var_F77=no |
14289 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
14290 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14291 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
14292 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14293 | export_dynamic_flag_spec_F77='${wl}-E' |
14294 | else |
14295 | case $host_os in |
14296 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
14297 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14298 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14299 | ;; |
14300 | *) |
14301 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14302 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14303 | ;; |
14304 | esac |
14305 | fi |
14306 | ;; |
14307 | |
14308 | os2*) |
14309 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14310 | hardcode_minus_L_F77=yes |
14311 | allow_undefined_flag_F77=unsupported |
14312 | 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' |
14313 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
14314 | ;; |
14315 | |
14316 | osf3*) |
14317 | if test "$GCC" = yes; then |
14318 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
14319 | 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' |
14320 | else |
14321 | allow_undefined_flag_F77=' -expect_unresolved \*' |
14322 | 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' |
14323 | fi |
14324 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14325 | hardcode_libdir_separator_F77=: |
14326 | ;; |
14327 | |
14328 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
14329 | if test "$GCC" = yes; then |
14330 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
14331 | 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' |
14332 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14333 | else |
14334 | allow_undefined_flag_F77=' -expect_unresolved \*' |
14335 | 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' |
14336 | 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~ |
14337 | $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' |
14338 | |
14339 | # Both c and cxx compiler support -rpath directly |
14340 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
14341 | fi |
14342 | hardcode_libdir_separator_F77=: |
14343 | ;; |
14344 | |
14345 | solaris*) |
14346 | no_undefined_flag_F77=' -z text' |
14347 | if test "$GCC" = yes; then |
14348 | wlarc='${wl}' |
14349 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14350 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14351 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
14352 | else |
14353 | wlarc='' |
14354 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14355 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14356 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
14357 | fi |
14358 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14359 | hardcode_shlibpath_var_F77=no |
14360 | case $host_os in |
14361 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
14362 | *) |
14363 | # The compiler driver will combine linker options so we |
14364 | # cannot just pass the convience library names through |
14365 | # without $wl, iff we do not link with $LD. |
14366 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
14367 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
14368 | case $wlarc in |
14369 | '') |
14370 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
14371 | *) |
14372 | 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' ;; |
14373 | esac ;; |
14374 | esac |
14375 | link_all_deplibs_F77=yes |
14376 | ;; |
14377 | |
14378 | sunos4*) |
14379 | if test "x$host_vendor" = xsequent; then |
14380 | # Use $CC to link under sequent, because it throws in some extra .o |
14381 | # files that make .init and .fini sections work. |
14382 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
14383 | else |
14384 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
14385 | fi |
14386 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14387 | hardcode_direct_F77=yes |
14388 | hardcode_minus_L_F77=yes |
14389 | hardcode_shlibpath_var_F77=no |
14390 | ;; |
14391 | |
14392 | sysv4) |
14393 | case $host_vendor in |
14394 | sni) |
14395 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14396 | hardcode_direct_F77=yes # is this really true??? |
14397 | ;; |
14398 | siemens) |
14399 | ## LD is ld it makes a PLAMLIB |
14400 | ## CC just makes a GrossModule. |
14401 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
14402 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
14403 | hardcode_direct_F77=no |
14404 | ;; |
14405 | motorola) |
14406 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14407 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
14408 | ;; |
14409 | esac |
14410 | runpath_var='LD_RUN_PATH' |
14411 | hardcode_shlibpath_var_F77=no |
14412 | ;; |
14413 | |
14414 | sysv4.3*) |
14415 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14416 | hardcode_shlibpath_var_F77=no |
14417 | export_dynamic_flag_spec_F77='-Bexport' |
14418 | ;; |
14419 | |
14420 | sysv4*MP*) |
14421 | if test -d /usr/nec; then |
14422 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14423 | hardcode_shlibpath_var_F77=no |
14424 | runpath_var=LD_RUN_PATH |
14425 | hardcode_runpath_var=yes |
14426 | ld_shlibs_F77=yes |
14427 | fi |
14428 | ;; |
14429 | |
14430 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
14431 | no_undefined_flag_F77='${wl}-z,text' |
14432 | archive_cmds_need_lc_F77=no |
14433 | hardcode_shlibpath_var_F77=no |
14434 | runpath_var='LD_RUN_PATH' |
14435 | |
14436 | if test "$GCC" = yes; then |
14437 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14438 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14439 | else |
14440 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14441 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14442 | fi |
14443 | ;; |
14444 | |
14445 | sysv5* | sco3.2v5* | sco5v6*) |
14446 | # Note: We can NOT use -z defs as we might desire, because we do not |
14447 | # link with -lc, and that would cause any symbols used from libc to |
14448 | # always be unresolved, which means just about no library would |
14449 | # ever link correctly. If we're not using GNU ld we use -z text |
14450 | # though, which does catch some bad symbols but isn't as heavy-handed |
14451 | # as -z defs. |
14452 | no_undefined_flag_F77='${wl}-z,text' |
14453 | allow_undefined_flag_F77='${wl}-z,nodefs' |
14454 | archive_cmds_need_lc_F77=no |
14455 | hardcode_shlibpath_var_F77=no |
14456 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
14457 | hardcode_libdir_separator_F77=':' |
14458 | link_all_deplibs_F77=yes |
14459 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
14460 | runpath_var='LD_RUN_PATH' |
14461 | |
14462 | if test "$GCC" = yes; then |
14463 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14464 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14465 | else |
14466 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14467 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14468 | fi |
14469 | ;; |
14470 | |
14471 | uts4*) |
14472 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14473 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14474 | hardcode_shlibpath_var_F77=no |
14475 | ;; |
14476 | |
14477 | *) |
14478 | ld_shlibs_F77=no |
14479 | ;; |
14480 | esac |
14481 | fi |
14482 | |
14483 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
14484 | echo "${ECHO_T}$ld_shlibs_F77" >&6 |
14485 | test "$ld_shlibs_F77" = no && can_build_shared=no |
14486 | |
14487 | # |
14488 | # Do we need to explicitly link libc? |
14489 | # |
14490 | case "x$archive_cmds_need_lc_F77" in |
14491 | x|xyes) |
14492 | # Assume -lc should be added |
14493 | archive_cmds_need_lc_F77=yes |
14494 | |
14495 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
14496 | case $archive_cmds_F77 in |
14497 | *'~'*) |
14498 | # FIXME: we may have to deal with multi-command sequences. |
14499 | ;; |
14500 | '$CC '*) |
14501 | # Test whether the compiler implicitly links with -lc since on some |
14502 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
14503 | # to ld, don't add -lc before -lgcc. |
14504 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
14505 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
14506 | $rm conftest* |
14507 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
14508 | |
14509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
14510 | (eval $ac_compile) 2>&5 |
14511 | ac_status=$? |
14512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14513 | (exit $ac_status); } 2>conftest.err; then |
14514 | soname=conftest |
14515 | lib=conftest |
14516 | libobjs=conftest.$ac_objext |
14517 | deplibs= |
14518 | wl=$lt_prog_compiler_wl_F77 |
14519 | pic_flag=$lt_prog_compiler_pic_F77 |
14520 | compiler_flags=-v |
14521 | linker_flags=-v |
14522 | verstring= |
14523 | output_objdir=. |
14524 | libname=conftest |
14525 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
14526 | allow_undefined_flag_F77= |
14527 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
14528 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
14529 | ac_status=$? |
14530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14531 | (exit $ac_status); } |
14532 | then |
14533 | archive_cmds_need_lc_F77=no |
14534 | else |
14535 | archive_cmds_need_lc_F77=yes |
14536 | fi |
14537 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
14538 | else |
14539 | cat conftest.err 1>&5 |
14540 | fi |
14541 | $rm conftest* |
14542 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
14543 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
14544 | ;; |
14545 | esac |
14546 | fi |
14547 | ;; |
14548 | esac |
14549 | |
14550 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
14551 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
14552 | library_names_spec= |
14553 | libname_spec='lib$name' |
14554 | soname_spec= |
14555 | shrext_cmds=".so" |
14556 | postinstall_cmds= |
14557 | postuninstall_cmds= |
14558 | finish_cmds= |
14559 | finish_eval= |
14560 | shlibpath_var= |
14561 | shlibpath_overrides_runpath=unknown |
14562 | version_type=none |
14563 | dynamic_linker="$host_os ld.so" |
14564 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
14565 | if test "$GCC" = yes; then |
14566 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
14567 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
14568 | # if the path contains ";" then we assume it to be the separator |
14569 | # otherwise default to the standard path separator (i.e. ":") - it is |
14570 | # assumed that no part of a normal pathname contains ";" but that should |
14571 | # okay in the real world where ";" in dirpaths is itself problematic. |
14572 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
14573 | else |
14574 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
14575 | fi |
14576 | else |
14577 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
14578 | fi |
14579 | need_lib_prefix=unknown |
14580 | hardcode_into_libs=no |
14581 | |
14582 | # when you set need_version to no, make sure it does not cause -set_version |
14583 | # flags to be left without arguments |
14584 | need_version=unknown |
14585 | |
14586 | case $host_os in |
14587 | aix3*) |
14588 | version_type=linux |
14589 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
14590 | shlibpath_var=LIBPATH |
14591 | |
14592 | # AIX 3 has no versioning support, so we append a major version to the name. |
14593 | soname_spec='${libname}${release}${shared_ext}$major' |
14594 | ;; |
14595 | |
14596 | aix4* | aix5*) |
14597 | version_type=linux |
14598 | need_lib_prefix=no |
14599 | need_version=no |
14600 | hardcode_into_libs=yes |
14601 | if test "$host_cpu" = ia64; then |
14602 | # AIX 5 supports IA64 |
14603 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
14604 | shlibpath_var=LD_LIBRARY_PATH |
14605 | else |
14606 | # With GCC up to 2.95.x, collect2 would create an import file |
14607 | # for dependence libraries. The import file would start with |
14608 | # the line `#! .'. This would cause the generated library to |
14609 | # depend on `.', always an invalid library. This was fixed in |
14610 | # development snapshots of GCC prior to 3.0. |
14611 | case $host_os in |
14612 | aix4 | aix4.[01] | aix4.[01].*) |
14613 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
14614 | echo ' yes ' |
14615 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
14616 | : |
14617 | else |
14618 | can_build_shared=no |
14619 | fi |
14620 | ;; |
14621 | esac |
14622 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
14623 | # soname into executable. Probably we can add versioning support to |
14624 | # collect2, so additional links can be useful in future. |
14625 | if test "$aix_use_runtimelinking" = yes; then |
14626 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
14627 | # instead of lib<name>.a to let people know that these are not |
14628 | # typical AIX shared libraries. |
14629 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14630 | else |
14631 | # We preserve .a as extension for shared libraries through AIX4.2 |
14632 | # and later when we are not doing run time linking. |
14633 | library_names_spec='${libname}${release}.a $libname.a' |
14634 | soname_spec='${libname}${release}${shared_ext}$major' |
14635 | fi |
14636 | shlibpath_var=LIBPATH |
14637 | fi |
14638 | ;; |
14639 | |
14640 | amigaos*) |
14641 | library_names_spec='$libname.ixlibrary $libname.a' |
14642 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
14643 | 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' |
14644 | ;; |
14645 | |
14646 | beos*) |
14647 | library_names_spec='${libname}${shared_ext}' |
14648 | dynamic_linker="$host_os ld.so" |
14649 | shlibpath_var=LIBRARY_PATH |
14650 | ;; |
14651 | |
14652 | bsdi[45]*) |
14653 | version_type=linux |
14654 | need_version=no |
14655 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14656 | soname_spec='${libname}${release}${shared_ext}$major' |
14657 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
14658 | shlibpath_var=LD_LIBRARY_PATH |
14659 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
14660 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
14661 | # the default ld.so.conf also contains /usr/contrib/lib and |
14662 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
14663 | # libtool to hard-code these into programs |
14664 | ;; |
14665 | |
14666 | cygwin* | mingw* | pw32*) |
14667 | version_type=windows |
14668 | shrext_cmds=".dll" |
14669 | need_version=no |
14670 | need_lib_prefix=no |
14671 | |
14672 | case $GCC,$host_os in |
14673 | yes,cygwin* | yes,mingw* | yes,pw32*) |
14674 | library_names_spec='$libname.dll.a' |
14675 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
14676 | postinstall_cmds='base_file=`basename \${file}`~ |
14677 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
14678 | dldir=$destdir/`dirname \$dlpath`~ |
14679 | test -d \$dldir || mkdir -p \$dldir~ |
14680 | $install_prog $dir/$dlname \$dldir/$dlname~ |
14681 | chmod a+x \$dldir/$dlname' |
14682 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
14683 | dlpath=$dir/\$dldll~ |
14684 | $rm \$dlpath' |
14685 | shlibpath_overrides_runpath=yes |
14686 | |
14687 | case $host_os in |
14688 | cygwin*) |
14689 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
14690 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
14691 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
14692 | ;; |
14693 | mingw*) |
14694 | # MinGW DLLs use traditional 'lib' prefix |
14695 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
14696 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
14697 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
14698 | # It is most probably a Windows format PATH printed by |
14699 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
14700 | # path with ; separators, and with drive letters. We can handle the |
14701 | # drive letters (cygwin fileutils understands them), so leave them, |
14702 | # especially as we might pass files found there to a mingw objdump, |
14703 | # which wouldn't understand a cygwinified path. Ahh. |
14704 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
14705 | else |
14706 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
14707 | fi |
14708 | ;; |
14709 | pw32*) |
14710 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
14711 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
14712 | ;; |
14713 | esac |
14714 | ;; |
14715 | |
14716 | *) |
14717 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
14718 | ;; |
14719 | esac |
14720 | dynamic_linker='Win32 ld.exe' |
14721 | # FIXME: first we should search . and the directory the executable is in |
14722 | shlibpath_var=PATH |
14723 | ;; |
14724 | |
14725 | darwin* | rhapsody*) |
14726 | dynamic_linker="$host_os dyld" |
14727 | version_type=darwin |
14728 | need_lib_prefix=no |
14729 | need_version=no |
14730 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
14731 | soname_spec='${libname}${release}${major}$shared_ext' |
14732 | shlibpath_overrides_runpath=yes |
14733 | shlibpath_var=DYLD_LIBRARY_PATH |
14734 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
14735 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
14736 | if test "$GCC" = yes; then |
14737 | 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"` |
14738 | else |
14739 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
14740 | fi |
14741 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
14742 | ;; |
14743 | |
14744 | dgux*) |
14745 | version_type=linux |
14746 | need_lib_prefix=no |
14747 | need_version=no |
14748 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
14749 | soname_spec='${libname}${release}${shared_ext}$major' |
14750 | shlibpath_var=LD_LIBRARY_PATH |
14751 | ;; |
14752 | |
14753 | freebsd1*) |
14754 | dynamic_linker=no |
14755 | ;; |
14756 | |
14757 | kfreebsd*-gnu) |
14758 | version_type=linux |
14759 | need_lib_prefix=no |
14760 | need_version=no |
14761 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
14762 | soname_spec='${libname}${release}${shared_ext}$major' |
14763 | shlibpath_var=LD_LIBRARY_PATH |
14764 | shlibpath_overrides_runpath=no |
14765 | hardcode_into_libs=yes |
14766 | dynamic_linker='GNU ld.so' |
14767 | ;; |
14768 | |
14769 | freebsd* | dragonfly*) |
14770 | # DragonFly does not have aout. When/if they implement a new |
14771 | # versioning mechanism, adjust this. |
14772 | if test -x /usr/bin/objformat; then |
14773 | objformat=`/usr/bin/objformat` |
14774 | else |
14775 | case $host_os in |
14776 | freebsd[123]*) objformat=aout ;; |
14777 | *) objformat=elf ;; |
14778 | esac |
14779 | fi |
14780 | version_type=freebsd-$objformat |
14781 | case $version_type in |
14782 | freebsd-elf*) |
14783 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
14784 | need_version=no |
14785 | need_lib_prefix=no |
14786 | ;; |
14787 | freebsd-*) |
14788 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
14789 | need_version=yes |
14790 | ;; |
14791 | esac |
14792 | shlibpath_var=LD_LIBRARY_PATH |
14793 | case $host_os in |
14794 | freebsd2*) |
14795 | shlibpath_overrides_runpath=yes |
14796 | ;; |
14797 | freebsd3.[01]* | freebsdelf3.[01]*) |
14798 | shlibpath_overrides_runpath=yes |
14799 | hardcode_into_libs=yes |
14800 | ;; |
14801 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
14802 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
14803 | shlibpath_overrides_runpath=no |
14804 | hardcode_into_libs=yes |
14805 | ;; |
14806 | freebsd*) # from 4.6 on |
14807 | shlibpath_overrides_runpath=yes |
14808 | hardcode_into_libs=yes |
14809 | ;; |
14810 | esac |
14811 | ;; |
14812 | |
14813 | gnu*) |
14814 | version_type=linux |
14815 | need_lib_prefix=no |
14816 | need_version=no |
14817 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
14818 | soname_spec='${libname}${release}${shared_ext}$major' |
14819 | shlibpath_var=LD_LIBRARY_PATH |
14820 | hardcode_into_libs=yes |
14821 | ;; |
14822 | |
14823 | hpux9* | hpux10* | hpux11*) |
14824 | # Give a soname corresponding to the major version so that dld.sl refuses to |
14825 | # link against other versions. |
14826 | version_type=sunos |
14827 | need_lib_prefix=no |
14828 | need_version=no |
14829 | case $host_cpu in |
14830 | ia64*) |
14831 | shrext_cmds='.so' |
14832 | hardcode_into_libs=yes |
14833 | dynamic_linker="$host_os dld.so" |
14834 | shlibpath_var=LD_LIBRARY_PATH |
14835 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
14836 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14837 | soname_spec='${libname}${release}${shared_ext}$major' |
14838 | if test "X$HPUX_IA64_MODE" = X32; then |
14839 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
14840 | else |
14841 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
14842 | fi |
14843 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
14844 | ;; |
14845 | hppa*64*) |
14846 | shrext_cmds='.sl' |
14847 | hardcode_into_libs=yes |
14848 | dynamic_linker="$host_os dld.sl" |
14849 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
14850 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
14851 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14852 | soname_spec='${libname}${release}${shared_ext}$major' |
14853 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
14854 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
14855 | ;; |
14856 | *) |
14857 | shrext_cmds='.sl' |
14858 | dynamic_linker="$host_os dld.sl" |
14859 | shlibpath_var=SHLIB_PATH |
14860 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
14861 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14862 | soname_spec='${libname}${release}${shared_ext}$major' |
14863 | ;; |
14864 | esac |
14865 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
14866 | postinstall_cmds='chmod 555 $lib' |
14867 | ;; |
14868 | |
14869 | interix3*) |
14870 | version_type=linux |
14871 | need_lib_prefix=no |
14872 | need_version=no |
14873 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
14874 | soname_spec='${libname}${release}${shared_ext}$major' |
14875 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
14876 | shlibpath_var=LD_LIBRARY_PATH |
14877 | shlibpath_overrides_runpath=no |
14878 | hardcode_into_libs=yes |
14879 | ;; |
14880 | |
14881 | irix5* | irix6* | nonstopux*) |
14882 | case $host_os in |
14883 | nonstopux*) version_type=nonstopux ;; |
14884 | *) |
14885 | if test "$lt_cv_prog_gnu_ld" = yes; then |
14886 | version_type=linux |
14887 | else |
14888 | version_type=irix |
14889 | fi ;; |
14890 | esac |
14891 | need_lib_prefix=no |
14892 | need_version=no |
14893 | soname_spec='${libname}${release}${shared_ext}$major' |
14894 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
14895 | case $host_os in |
14896 | irix5* | nonstopux*) |
14897 | libsuff= shlibsuff= |
14898 | ;; |
14899 | *) |
14900 | case $LD in # libtool.m4 will add one of these switches to LD |
14901 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
14902 | libsuff= shlibsuff= libmagic=32-bit;; |
14903 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
14904 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
14905 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
14906 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
14907 | *) libsuff= shlibsuff= libmagic=never-match;; |
14908 | esac |
14909 | ;; |
14910 | esac |
14911 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
14912 | shlibpath_overrides_runpath=no |
14913 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
14914 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
14915 | hardcode_into_libs=yes |
14916 | ;; |
14917 | |
14918 | # No shared lib support for Linux oldld, aout, or coff. |
14919 | linux*oldld* | linux*aout* | linux*coff*) |
14920 | dynamic_linker=no |
14921 | ;; |
14922 | |
14923 | # This must be Linux ELF. |
14924 | linux*) |
14925 | version_type=linux |
14926 | need_lib_prefix=no |
14927 | need_version=no |
14928 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14929 | soname_spec='${libname}${release}${shared_ext}$major' |
14930 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
14931 | shlibpath_var=LD_LIBRARY_PATH |
14932 | shlibpath_overrides_runpath=no |
14933 | # This implies no fast_install, which is unacceptable. |
14934 | # Some rework will be needed to allow for fast_install |
14935 | # before this can be enabled. |
14936 | hardcode_into_libs=yes |
14937 | |
14938 | # find out which ABI we are using |
14939 | libsuff= |
14940 | case "$host_cpu" in |
14941 | x86_64*|s390x*|powerpc64*) |
14942 | echo '#line 14942 "configure"' > conftest.$ac_ext |
14943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
14944 | (eval $ac_compile) 2>&5 |
14945 | ac_status=$? |
14946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14947 | (exit $ac_status); }; then |
14948 | case `/usr/bin/file conftest.$ac_objext` in |
14949 | *64-bit*) |
14950 | libsuff=64 |
14951 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
14952 | ;; |
14953 | esac |
14954 | fi |
14955 | rm -rf conftest* |
14956 | ;; |
14957 | esac |
14958 | |
14959 | # Append ld.so.conf contents to the search path |
14960 | if test -f /etc/ld.so.conf; then |
14961 | 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' ' '` |
14962 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
14963 | fi |
14964 | |
14965 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
14966 | # powerpc, because MkLinux only supported shared libraries with the |
14967 | # GNU dynamic linker. Since this was broken with cross compilers, |
14968 | # most powerpc-linux boxes support dynamic linking these days and |
14969 | # people can always --disable-shared, the test was removed, and we |
14970 | # assume the GNU/Linux dynamic linker is in use. |
14971 | dynamic_linker='GNU/Linux ld.so' |
14972 | ;; |
14973 | |
14974 | knetbsd*-gnu) |
14975 | version_type=linux |
14976 | need_lib_prefix=no |
14977 | need_version=no |
14978 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
14979 | soname_spec='${libname}${release}${shared_ext}$major' |
14980 | shlibpath_var=LD_LIBRARY_PATH |
14981 | shlibpath_overrides_runpath=no |
14982 | hardcode_into_libs=yes |
14983 | dynamic_linker='GNU ld.so' |
14984 | ;; |
14985 | |
14986 | netbsd*) |
14987 | version_type=sunos |
14988 | need_lib_prefix=no |
14989 | need_version=no |
14990 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14991 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
14992 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
14993 | dynamic_linker='NetBSD (a.out) ld.so' |
14994 | else |
14995 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
14996 | soname_spec='${libname}${release}${shared_ext}$major' |
14997 | dynamic_linker='NetBSD ld.elf_so' |
14998 | fi |
14999 | shlibpath_var=LD_LIBRARY_PATH |
15000 | shlibpath_overrides_runpath=yes |
15001 | hardcode_into_libs=yes |
15002 | ;; |
15003 | |
15004 | newsos6) |
15005 | version_type=linux |
15006 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15007 | shlibpath_var=LD_LIBRARY_PATH |
15008 | shlibpath_overrides_runpath=yes |
15009 | ;; |
15010 | |
15011 | nto-qnx*) |
15012 | version_type=linux |
15013 | need_lib_prefix=no |
15014 | need_version=no |
15015 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15016 | soname_spec='${libname}${release}${shared_ext}$major' |
15017 | shlibpath_var=LD_LIBRARY_PATH |
15018 | shlibpath_overrides_runpath=yes |
15019 | ;; |
15020 | |
15021 | openbsd*) |
15022 | version_type=sunos |
15023 | sys_lib_dlsearch_path_spec="/usr/lib" |
15024 | need_lib_prefix=no |
15025 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
15026 | case $host_os in |
15027 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
15028 | *) need_version=no ;; |
15029 | esac |
15030 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15031 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15032 | shlibpath_var=LD_LIBRARY_PATH |
15033 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
15034 | case $host_os in |
15035 | openbsd2.[89] | openbsd2.[89].*) |
15036 | shlibpath_overrides_runpath=no |
15037 | ;; |
15038 | *) |
15039 | shlibpath_overrides_runpath=yes |
15040 | ;; |
15041 | esac |
15042 | else |
15043 | shlibpath_overrides_runpath=yes |
15044 | fi |
15045 | ;; |
15046 | |
15047 | os2*) |
15048 | libname_spec='$name' |
15049 | shrext_cmds=".dll" |
15050 | need_lib_prefix=no |
15051 | library_names_spec='$libname${shared_ext} $libname.a' |
15052 | dynamic_linker='OS/2 ld.exe' |
15053 | shlibpath_var=LIBPATH |
15054 | ;; |
15055 | |
15056 | osf3* | osf4* | osf5*) |
15057 | version_type=osf |
15058 | need_lib_prefix=no |
15059 | need_version=no |
15060 | soname_spec='${libname}${release}${shared_ext}$major' |
15061 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15062 | shlibpath_var=LD_LIBRARY_PATH |
15063 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
15064 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
15065 | ;; |
15066 | |
15067 | solaris*) |
15068 | version_type=linux |
15069 | need_lib_prefix=no |
15070 | need_version=no |
15071 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15072 | soname_spec='${libname}${release}${shared_ext}$major' |
15073 | shlibpath_var=LD_LIBRARY_PATH |
15074 | shlibpath_overrides_runpath=yes |
15075 | hardcode_into_libs=yes |
15076 | # ldd complains unless libraries are executable |
15077 | postinstall_cmds='chmod +x $lib' |
15078 | ;; |
15079 | |
15080 | sunos4*) |
15081 | version_type=sunos |
15082 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15083 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
15084 | shlibpath_var=LD_LIBRARY_PATH |
15085 | shlibpath_overrides_runpath=yes |
15086 | if test "$with_gnu_ld" = yes; then |
15087 | need_lib_prefix=no |
15088 | fi |
15089 | need_version=yes |
15090 | ;; |
15091 | |
15092 | sysv4 | sysv4.3*) |
15093 | version_type=linux |
15094 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15095 | soname_spec='${libname}${release}${shared_ext}$major' |
15096 | shlibpath_var=LD_LIBRARY_PATH |
15097 | case $host_vendor in |
15098 | sni) |
15099 | shlibpath_overrides_runpath=no |
15100 | need_lib_prefix=no |
15101 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
15102 | runpath_var=LD_RUN_PATH |
15103 | ;; |
15104 | siemens) |
15105 | need_lib_prefix=no |
15106 | ;; |
15107 | motorola) |
15108 | need_lib_prefix=no |
15109 | need_version=no |
15110 | shlibpath_overrides_runpath=no |
15111 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
15112 | ;; |
15113 | esac |
15114 | ;; |
15115 | |
15116 | sysv4*MP*) |
15117 | if test -d /usr/nec ;then |
15118 | version_type=linux |
15119 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
15120 | soname_spec='$libname${shared_ext}.$major' |
15121 | shlibpath_var=LD_LIBRARY_PATH |
15122 | fi |
15123 | ;; |
15124 | |
15125 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
15126 | version_type=freebsd-elf |
15127 | need_lib_prefix=no |
15128 | need_version=no |
15129 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15130 | soname_spec='${libname}${release}${shared_ext}$major' |
15131 | shlibpath_var=LD_LIBRARY_PATH |
15132 | hardcode_into_libs=yes |
15133 | if test "$with_gnu_ld" = yes; then |
15134 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
15135 | shlibpath_overrides_runpath=no |
15136 | else |
15137 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
15138 | shlibpath_overrides_runpath=yes |
15139 | case $host_os in |
15140 | sco3.2v5*) |
15141 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
15142 | ;; |
15143 | esac |
15144 | fi |
15145 | sys_lib_dlsearch_path_spec='/usr/lib' |
15146 | ;; |
15147 | |
15148 | uts4*) |
15149 | version_type=linux |
15150 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15151 | soname_spec='${libname}${release}${shared_ext}$major' |
15152 | shlibpath_var=LD_LIBRARY_PATH |
15153 | ;; |
15154 | |
15155 | *) |
15156 | dynamic_linker=no |
15157 | ;; |
15158 | esac |
15159 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
15160 | echo "${ECHO_T}$dynamic_linker" >&6 |
15161 | test "$dynamic_linker" = no && can_build_shared=no |
15162 | |
15163 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
15164 | if test "$GCC" = yes; then |
15165 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
15166 | fi |
15167 | |
15168 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
15169 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
15170 | hardcode_action_F77= |
15171 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
15172 | test -n "$runpath_var_F77" || \ |
15173 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
15174 | |
15175 | # We can hardcode non-existant directories. |
15176 | if test "$hardcode_direct_F77" != no && |
15177 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
15178 | # have to relink, otherwise we might link with an installed library |
15179 | # when we should be linking with a yet-to-be-installed one |
15180 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
15181 | test "$hardcode_minus_L_F77" != no; then |
15182 | # Linking always hardcodes the temporary library directory. |
15183 | hardcode_action_F77=relink |
15184 | else |
15185 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
15186 | hardcode_action_F77=immediate |
15187 | fi |
15188 | else |
15189 | # We cannot hardcode anything, or else we can only hardcode existing |
15190 | # directories. |
15191 | hardcode_action_F77=unsupported |
15192 | fi |
15193 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
15194 | echo "${ECHO_T}$hardcode_action_F77" >&6 |
15195 | |
15196 | if test "$hardcode_action_F77" = relink; then |
15197 | # Fast installation is not supported |
15198 | enable_fast_install=no |
15199 | elif test "$shlibpath_overrides_runpath" = yes || |
15200 | test "$enable_shared" = no; then |
15201 | # Fast installation is not necessary |
15202 | enable_fast_install=needless |
15203 | fi |
15204 | |
15205 | |
15206 | # The else clause should only fire when bootstrapping the |
15207 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
15208 | # with your package, and you will get complaints that there are |
15209 | # no rules to generate ltmain.sh. |
15210 | if test -f "$ltmain"; then |
15211 | # See if we are running on zsh, and set the options which allow our commands through |
15212 | # without removal of \ escapes. |
15213 | if test -n "${ZSH_VERSION+set}" ; then |
15214 | setopt NO_GLOB_SUBST |
15215 | fi |
15216 | # Now quote all the things that may contain metacharacters while being |
15217 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
15218 | # variables and quote the copies for generation of the libtool script. |
15219 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
15220 | SED SHELL STRIP \ |
15221 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
15222 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
15223 | deplibs_check_method reload_flag reload_cmds need_locks \ |
15224 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
15225 | lt_cv_sys_global_symbol_to_c_name_address \ |
15226 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
15227 | old_postinstall_cmds old_postuninstall_cmds \ |
15228 | compiler_F77 \ |
15229 | CC_F77 \ |
15230 | LD_F77 \ |
15231 | lt_prog_compiler_wl_F77 \ |
15232 | lt_prog_compiler_pic_F77 \ |
15233 | lt_prog_compiler_static_F77 \ |
15234 | lt_prog_compiler_no_builtin_flag_F77 \ |
15235 | export_dynamic_flag_spec_F77 \ |
15236 | thread_safe_flag_spec_F77 \ |
15237 | whole_archive_flag_spec_F77 \ |
15238 | enable_shared_with_static_runtimes_F77 \ |
15239 | old_archive_cmds_F77 \ |
15240 | old_archive_from_new_cmds_F77 \ |
15241 | predep_objects_F77 \ |
15242 | postdep_objects_F77 \ |
15243 | predeps_F77 \ |
15244 | postdeps_F77 \ |
15245 | compiler_lib_search_path_F77 \ |
15246 | archive_cmds_F77 \ |
15247 | archive_expsym_cmds_F77 \ |
15248 | postinstall_cmds_F77 \ |
15249 | postuninstall_cmds_F77 \ |
15250 | old_archive_from_expsyms_cmds_F77 \ |
15251 | allow_undefined_flag_F77 \ |
15252 | no_undefined_flag_F77 \ |
15253 | export_symbols_cmds_F77 \ |
15254 | hardcode_libdir_flag_spec_F77 \ |
15255 | hardcode_libdir_flag_spec_ld_F77 \ |
15256 | hardcode_libdir_separator_F77 \ |
15257 | hardcode_automatic_F77 \ |
15258 | module_cmds_F77 \ |
15259 | module_expsym_cmds_F77 \ |
15260 | lt_cv_prog_compiler_c_o_F77 \ |
15261 | exclude_expsyms_F77 \ |
15262 | include_expsyms_F77; do |
15263 | |
15264 | case $var in |
15265 | old_archive_cmds_F77 | \ |
15266 | old_archive_from_new_cmds_F77 | \ |
15267 | archive_cmds_F77 | \ |
15268 | archive_expsym_cmds_F77 | \ |
15269 | module_cmds_F77 | \ |
15270 | module_expsym_cmds_F77 | \ |
15271 | old_archive_from_expsyms_cmds_F77 | \ |
15272 | export_symbols_cmds_F77 | \ |
15273 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
15274 | postinstall_cmds | postuninstall_cmds | \ |
15275 | old_postinstall_cmds | old_postuninstall_cmds | \ |
15276 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
15277 | # Double-quote double-evaled strings. |
15278 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
15279 | ;; |
15280 | *) |
15281 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
15282 | ;; |
15283 | esac |
15284 | done |
15285 | |
15286 | case $lt_echo in |
15287 | *'\$0 --fallback-echo"') |
15288 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
15289 | ;; |
15290 | esac |
15291 | |
15292 | cfgfile="$ofile" |
15293 | |
15294 | cat <<__EOF__ >> "$cfgfile" |
15295 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
15296 | |
15297 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
15298 | |
15299 | # Shell to use when invoking shell scripts. |
15300 | SHELL=$lt_SHELL |
15301 | |
15302 | # Whether or not to build shared libraries. |
15303 | build_libtool_libs=$enable_shared |
15304 | |
15305 | # Whether or not to build static libraries. |
15306 | build_old_libs=$enable_static |
15307 | |
15308 | # Whether or not to add -lc for building shared libraries. |
15309 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
15310 | |
15311 | # Whether or not to disallow shared libs when runtime libs are static |
15312 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
15313 | |
15314 | # Whether or not to optimize for fast installation. |
15315 | fast_install=$enable_fast_install |
15316 | |
15317 | # The host system. |
15318 | host_alias=$host_alias |
15319 | host=$host |
15320 | host_os=$host_os |
15321 | |
15322 | # The build system. |
15323 | build_alias=$build_alias |
15324 | build=$build |
15325 | build_os=$build_os |
15326 | |
15327 | # An echo program that does not interpret backslashes. |
15328 | echo=$lt_echo |
15329 | |
15330 | # The archiver. |
15331 | AR=$lt_AR |
15332 | AR_FLAGS=$lt_AR_FLAGS |
15333 | |
15334 | # A C compiler. |
15335 | LTCC=$lt_LTCC |
15336 | |
15337 | # LTCC compiler flags. |
15338 | LTCFLAGS=$lt_LTCFLAGS |
15339 | |
15340 | # A language-specific compiler. |
15341 | CC=$lt_compiler_F77 |
15342 | |
15343 | # Is the compiler the GNU C compiler? |
15344 | with_gcc=$GCC_F77 |
15345 | |
15346 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
15347 | gcc_ver=\`gcc -dumpversion\` |
15348 | |
15349 | # An ERE matcher. |
15350 | EGREP=$lt_EGREP |
15351 | |
15352 | # The linker used to build libraries. |
15353 | LD=$lt_LD_F77 |
15354 | |
15355 | # Whether we need hard or soft links. |
15356 | LN_S=$lt_LN_S |
15357 | |
15358 | # A BSD-compatible nm program. |
15359 | NM=$lt_NM |
15360 | |
15361 | # A symbol stripping program |
15362 | STRIP=$lt_STRIP |
15363 | |
15364 | # Used to examine libraries when file_magic_cmd begins "file" |
15365 | MAGIC_CMD=$MAGIC_CMD |
15366 | |
15367 | # Used on cygwin: DLL creation program. |
15368 | DLLTOOL="$DLLTOOL" |
15369 | |
15370 | # Used on cygwin: object dumper. |
15371 | OBJDUMP="$OBJDUMP" |
15372 | |
15373 | # Used on cygwin: assembler. |
15374 | AS="$AS" |
15375 | |
15376 | # The name of the directory that contains temporary libtool files. |
15377 | objdir=$objdir |
15378 | |
15379 | # How to create reloadable object files. |
15380 | reload_flag=$lt_reload_flag |
15381 | reload_cmds=$lt_reload_cmds |
15382 | |
15383 | # How to pass a linker flag through the compiler. |
15384 | wl=$lt_lt_prog_compiler_wl_F77 |
15385 | |
15386 | # Object file suffix (normally "o"). |
15387 | objext="$ac_objext" |
15388 | |
15389 | # Old archive suffix (normally "a"). |
15390 | libext="$libext" |
15391 | |
15392 | # Shared library suffix (normally ".so"). |
15393 | shrext_cmds='$shrext_cmds' |
15394 | |
15395 | # Executable file suffix (normally ""). |
15396 | exeext="$exeext" |
15397 | |
15398 | # Additional compiler flags for building library objects. |
15399 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
15400 | pic_mode=$pic_mode |
15401 | |
15402 | # What is the maximum length of a command? |
15403 | max_cmd_len=$lt_cv_sys_max_cmd_len |
15404 | |
15405 | # Does compiler simultaneously support -c and -o options? |
15406 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
15407 | |
15408 | # Must we lock files when doing compilation? |
15409 | need_locks=$lt_need_locks |
15410 | |
15411 | # Do we need the lib prefix for modules? |
15412 | need_lib_prefix=$need_lib_prefix |
15413 | |
15414 | # Do we need a version for libraries? |
15415 | need_version=$need_version |
15416 | |
15417 | # Whether dlopen is supported. |
15418 | dlopen_support=$enable_dlopen |
15419 | |
15420 | # Whether dlopen of programs is supported. |
15421 | dlopen_self=$enable_dlopen_self |
15422 | |
15423 | # Whether dlopen of statically linked programs is supported. |
15424 | dlopen_self_static=$enable_dlopen_self_static |
15425 | |
15426 | # Compiler flag to prevent dynamic linking. |
15427 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
15428 | |
15429 | # Compiler flag to turn off builtin functions. |
15430 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
15431 | |
15432 | # Compiler flag to allow reflexive dlopens. |
15433 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
15434 | |
15435 | # Compiler flag to generate shared objects directly from archives. |
15436 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
15437 | |
15438 | # Compiler flag to generate thread-safe objects. |
15439 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
15440 | |
15441 | # Library versioning type. |
15442 | version_type=$version_type |
15443 | |
15444 | # Format of library name prefix. |
15445 | libname_spec=$lt_libname_spec |
15446 | |
15447 | # List of archive names. First name is the real one, the rest are links. |
15448 | # The last name is the one that the linker finds with -lNAME. |
15449 | library_names_spec=$lt_library_names_spec |
15450 | |
15451 | # The coded name of the library, if different from the real name. |
15452 | soname_spec=$lt_soname_spec |
15453 | |
15454 | # Commands used to build and install an old-style archive. |
15455 | RANLIB=$lt_RANLIB |
15456 | old_archive_cmds=$lt_old_archive_cmds_F77 |
15457 | old_postinstall_cmds=$lt_old_postinstall_cmds |
15458 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
15459 | |
15460 | # Create an old-style archive from a shared archive. |
15461 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
15462 | |
15463 | # Create a temporary old-style archive to link instead of a shared archive. |
15464 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
15465 | |
15466 | # Commands used to build and install a shared archive. |
15467 | archive_cmds=$lt_archive_cmds_F77 |
15468 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
15469 | postinstall_cmds=$lt_postinstall_cmds |
15470 | postuninstall_cmds=$lt_postuninstall_cmds |
15471 | |
15472 | # Commands used to build a loadable module (assumed same as above if empty) |
15473 | module_cmds=$lt_module_cmds_F77 |
15474 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
15475 | |
15476 | # Commands to strip libraries. |
15477 | old_striplib=$lt_old_striplib |
15478 | striplib=$lt_striplib |
15479 | |
15480 | # Dependencies to place before the objects being linked to create a |
15481 | # shared library. |
15482 | predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
15483 | |
15484 | # Dependencies to place after the objects being linked to create a |
15485 | # shared library. |
15486 | postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
15487 | |
15488 | # Dependencies to place before the objects being linked to create a |
15489 | # shared library. |
15490 | predeps=$lt_predeps_F77 |
15491 | |
15492 | # Dependencies to place after the objects being linked to create a |
15493 | # shared library. |
15494 | postdeps=$lt_postdeps_F77 |
15495 | |
15496 | # The library search path used internally by the compiler when linking |
15497 | # a shared library. |
15498 | 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"\` |
15499 | |
15500 | # Method to check whether dependent libraries are shared objects. |
15501 | deplibs_check_method=$lt_deplibs_check_method |
15502 | |
15503 | # Command to use when deplibs_check_method == file_magic. |
15504 | file_magic_cmd=$lt_file_magic_cmd |
15505 | |
15506 | # Flag that allows shared libraries with undefined symbols to be built. |
15507 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
15508 | |
15509 | # Flag that forces no undefined symbols. |
15510 | no_undefined_flag=$lt_no_undefined_flag_F77 |
15511 | |
15512 | # Commands used to finish a libtool library installation in a directory. |
15513 | finish_cmds=$lt_finish_cmds |
15514 | |
15515 | # Same as above, but a single script fragment to be evaled but not shown. |
15516 | finish_eval=$lt_finish_eval |
15517 | |
15518 | # Take the output of nm and produce a listing of raw symbols and C names. |
15519 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
15520 | |
15521 | # Transform the output of nm in a proper C declaration |
15522 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
15523 | |
15524 | # Transform the output of nm in a C name address pair |
15525 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
15526 | |
15527 | # This is the shared library runtime path variable. |
15528 | runpath_var=$runpath_var |
15529 | |
15530 | # This is the shared library path variable. |
15531 | shlibpath_var=$shlibpath_var |
15532 | |
15533 | # Is shlibpath searched before the hard-coded library search path? |
15534 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
15535 | |
15536 | # How to hardcode a shared library path into an executable. |
15537 | hardcode_action=$hardcode_action_F77 |
15538 | |
15539 | # Whether we should hardcode library paths into libraries. |
15540 | hardcode_into_libs=$hardcode_into_libs |
15541 | |
15542 | # Flag to hardcode \$libdir into a binary during linking. |
15543 | # This must work even if \$libdir does not exist. |
15544 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
15545 | |
15546 | # If ld is used when linking, flag to hardcode \$libdir into |
15547 | # a binary during linking. This must work even if \$libdir does |
15548 | # not exist. |
15549 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
15550 | |
15551 | # Whether we need a single -rpath flag with a separated argument. |
15552 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
15553 | |
15554 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
15555 | # resulting binary. |
15556 | hardcode_direct=$hardcode_direct_F77 |
15557 | |
15558 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
15559 | # resulting binary. |
15560 | hardcode_minus_L=$hardcode_minus_L_F77 |
15561 | |
15562 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
15563 | # the resulting binary. |
15564 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
15565 | |
15566 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
15567 | # and all subsequent libraries and executables linked against it. |
15568 | hardcode_automatic=$hardcode_automatic_F77 |
15569 | |
15570 | # Variables whose values should be saved in libtool wrapper scripts and |
15571 | # restored at relink time. |
15572 | variables_saved_for_relink="$variables_saved_for_relink" |
15573 | |
15574 | # Whether libtool must link a program against all its dependency libraries. |
15575 | link_all_deplibs=$link_all_deplibs_F77 |
15576 | |
15577 | # Compile-time system search path for libraries |
15578 | 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"\` |
15579 | |
15580 | # Run-time system search path for libraries |
15581 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
15582 | |
15583 | # Fix the shell variable \$srcfile for the compiler. |
15584 | fix_srcfile_path="$fix_srcfile_path_F77" |
15585 | |
15586 | # Set to yes if exported symbols are required. |
15587 | always_export_symbols=$always_export_symbols_F77 |
15588 | |
15589 | # The commands to list exported symbols. |
15590 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
15591 | |
15592 | # The commands to extract the exported symbol list from a shared archive. |
15593 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
15594 | |
15595 | # Symbols that should not be listed in the preloaded symbols. |
15596 | exclude_expsyms=$lt_exclude_expsyms_F77 |
15597 | |
15598 | # Symbols that must always be exported. |
15599 | include_expsyms=$lt_include_expsyms_F77 |
15600 | |
15601 | # ### END LIBTOOL TAG CONFIG: $tagname |
15602 | |
15603 | __EOF__ |
15604 | |
15605 | |
15606 | else |
15607 | # If there is no Makefile yet, we rely on a make rule to execute |
15608 | # `config.status --recheck' to rerun these tests and create the |
15609 | # libtool script then. |
15610 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
15611 | if test -f "$ltmain_in"; then |
15612 | test -f Makefile && make "$ltmain" |
15613 | fi |
15614 | fi |
15615 | |
15616 | |
15617 | ac_ext=c |
15618 | ac_cpp='$CPP $CPPFLAGS' |
15619 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
15620 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
15621 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
15622 | |
15623 | CC="$lt_save_CC" |
15624 | |
15625 | else |
15626 | tagname="" |
15627 | fi |
15628 | ;; |
15629 | |
15630 | GCJ) |
15631 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
15632 | |
15633 | |
15634 | |
15635 | # Source file extension for Java test sources. |
15636 | ac_ext=java |
15637 | |
15638 | # Object file extension for compiled Java test sources. |
15639 | objext=o |
15640 | objext_GCJ=$objext |
15641 | |
15642 | # Code to be used in simple compile tests |
15643 | lt_simple_compile_test_code="class foo {}\n" |
15644 | |
15645 | # Code to be used in simple link tests |
15646 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
15647 | |
15648 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
15649 | |
15650 | # If no C compiler was specified, use CC. |
15651 | LTCC=${LTCC-"$CC"} |
15652 | |
15653 | # If no C compiler flags were specified, use CFLAGS. |
15654 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
15655 | |
15656 | # Allow CC to be a program name with arguments. |
15657 | compiler=$CC |
15658 | |
15659 | |
15660 | # save warnings/boilerplate of simple test code |
15661 | ac_outfile=conftest.$ac_objext |
15662 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
15663 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
15664 | _lt_compiler_boilerplate=`cat conftest.err` |
15665 | $rm conftest* |
15666 | |
15667 | ac_outfile=conftest.$ac_objext |
15668 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
15669 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
15670 | _lt_linker_boilerplate=`cat conftest.err` |
15671 | $rm conftest* |
15672 | |
15673 | |
15674 | # Allow CC to be a program name with arguments. |
15675 | lt_save_CC="$CC" |
15676 | CC=${GCJ-"gcj"} |
15677 | compiler=$CC |
15678 | compiler_GCJ=$CC |
15679 | for cc_temp in $compiler""; do |
15680 | case $cc_temp in |
15681 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
15682 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
15683 | \-*) ;; |
15684 | *) break;; |
15685 | esac |
15686 | done |
15687 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
15688 | |
15689 | |
15690 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
15691 | archive_cmds_need_lc_GCJ=no |
15692 | |
15693 | old_archive_cmds_GCJ=$old_archive_cmds |
15694 | |
15695 | |
15696 | lt_prog_compiler_no_builtin_flag_GCJ= |
15697 | |
15698 | if test "$GCC" = yes; then |
15699 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
15700 | |
15701 | |
15702 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
15703 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
15704 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
15705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15706 | else |
15707 | lt_cv_prog_compiler_rtti_exceptions=no |
15708 | ac_outfile=conftest.$ac_objext |
15709 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
15710 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
15711 | # Insert the option either (1) after the last *FLAGS variable, or |
15712 | # (2) before a word containing "conftest.", or (3) at the end. |
15713 | # Note that $ac_compile itself does not contain backslashes and begins |
15714 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
15715 | # The option is referenced via a variable to avoid confusing sed. |
15716 | lt_compile=`echo "$ac_compile" | $SED \ |
15717 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
15718 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
15719 | -e 's:$: $lt_compiler_flag:'` |
15720 | (eval echo "\"\$as_me:15720: $lt_compile\"" >&5) |
15721 | (eval "$lt_compile" 2>conftest.err) |
15722 | ac_status=$? |
15723 | cat conftest.err >&5 |
15724 | echo "$as_me:15724: \$? = $ac_status" >&5 |
15725 | if (exit $ac_status) && test -s "$ac_outfile"; then |
15726 | # The compiler can only warn and ignore the option if not recognized |
15727 | # So say no if there are warnings other than the usual output. |
15728 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
15729 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
15730 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
15731 | lt_cv_prog_compiler_rtti_exceptions=yes |
15732 | fi |
15733 | fi |
15734 | $rm conftest* |
15735 | |
15736 | fi |
15737 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
15738 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
15739 | |
15740 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
15741 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
15742 | else |
15743 | : |
15744 | fi |
15745 | |
15746 | fi |
15747 | |
15748 | lt_prog_compiler_wl_GCJ= |
15749 | lt_prog_compiler_pic_GCJ= |
15750 | lt_prog_compiler_static_GCJ= |
15751 | |
15752 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
15753 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
15754 | |
15755 | if test "$GCC" = yes; then |
15756 | lt_prog_compiler_wl_GCJ='-Wl,' |
15757 | lt_prog_compiler_static_GCJ='-static' |
15758 | |
15759 | case $host_os in |
15760 | aix*) |
15761 | # All AIX code is PIC. |
15762 | if test "$host_cpu" = ia64; then |
15763 | # AIX 5 now supports IA64 processor |
15764 | lt_prog_compiler_static_GCJ='-Bstatic' |
15765 | fi |
15766 | ;; |
15767 | |
15768 | amigaos*) |
15769 | # FIXME: we need at least 68020 code to build shared libraries, but |
15770 | # adding the `-m68020' flag to GCC prevents building anything better, |
15771 | # like `-m68040'. |
15772 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
15773 | ;; |
15774 | |
15775 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
15776 | # PIC is the default for these OSes. |
15777 | ;; |
15778 | |
15779 | mingw* | pw32* | os2*) |
15780 | # This hack is so that the source file can tell whether it is being |
15781 | # built for inclusion in a dll (and should export symbols for example). |
15782 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
15783 | ;; |
15784 | |
15785 | darwin* | rhapsody*) |
15786 | # PIC is the default on this platform |
15787 | # Common symbols not allowed in MH_DYLIB files |
15788 | lt_prog_compiler_pic_GCJ='-fno-common' |
15789 | ;; |
15790 | |
15791 | interix3*) |
15792 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
15793 | # Instead, we relocate shared libraries at runtime. |
15794 | ;; |
15795 | |
15796 | msdosdjgpp*) |
15797 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
15798 | # on systems that don't support them. |
15799 | lt_prog_compiler_can_build_shared_GCJ=no |
15800 | enable_shared=no |
15801 | ;; |
15802 | |
15803 | sysv4*MP*) |
15804 | if test -d /usr/nec; then |
15805 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
15806 | fi |
15807 | ;; |
15808 | |
15809 | hpux*) |
15810 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
15811 | # not for PA HP-UX. |
15812 | case $host_cpu in |
15813 | hppa*64*|ia64*) |
15814 | # +Z the default |
15815 | ;; |
15816 | *) |
15817 | lt_prog_compiler_pic_GCJ='-fPIC' |
15818 | ;; |
15819 | esac |
15820 | ;; |
15821 | |
15822 | *) |
15823 | lt_prog_compiler_pic_GCJ='-fPIC' |
15824 | ;; |
15825 | esac |
15826 | else |
15827 | # PORTME Check for flag to pass linker flags through the system compiler. |
15828 | case $host_os in |
15829 | aix*) |
15830 | lt_prog_compiler_wl_GCJ='-Wl,' |
15831 | if test "$host_cpu" = ia64; then |
15832 | # AIX 5 now supports IA64 processor |
15833 | lt_prog_compiler_static_GCJ='-Bstatic' |
15834 | else |
15835 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
15836 | fi |
15837 | ;; |
15838 | darwin*) |
15839 | # PIC is the default on this platform |
15840 | # Common symbols not allowed in MH_DYLIB files |
15841 | case $cc_basename in |
15842 | xlc*) |
15843 | lt_prog_compiler_pic_GCJ='-qnocommon' |
15844 | lt_prog_compiler_wl_GCJ='-Wl,' |
15845 | ;; |
15846 | esac |
15847 | ;; |
15848 | |
15849 | mingw* | pw32* | os2*) |
15850 | # This hack is so that the source file can tell whether it is being |
15851 | # built for inclusion in a dll (and should export symbols for example). |
15852 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
15853 | ;; |
15854 | |
15855 | hpux9* | hpux10* | hpux11*) |
15856 | lt_prog_compiler_wl_GCJ='-Wl,' |
15857 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
15858 | # not for PA HP-UX. |
15859 | case $host_cpu in |
15860 | hppa*64*|ia64*) |
15861 | # +Z the default |
15862 | ;; |
15863 | *) |
15864 | lt_prog_compiler_pic_GCJ='+Z' |
15865 | ;; |
15866 | esac |
15867 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
15868 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
15869 | ;; |
15870 | |
15871 | irix5* | irix6* | nonstopux*) |
15872 | lt_prog_compiler_wl_GCJ='-Wl,' |
15873 | # PIC (with -KPIC) is the default. |
15874 | lt_prog_compiler_static_GCJ='-non_shared' |
15875 | ;; |
15876 | |
15877 | newsos6) |
15878 | lt_prog_compiler_pic_GCJ='-KPIC' |
15879 | lt_prog_compiler_static_GCJ='-Bstatic' |
15880 | ;; |
15881 | |
15882 | linux*) |
15883 | case $cc_basename in |
15884 | icc* | ecc*) |
15885 | lt_prog_compiler_wl_GCJ='-Wl,' |
15886 | lt_prog_compiler_pic_GCJ='-KPIC' |
15887 | lt_prog_compiler_static_GCJ='-static' |
15888 | ;; |
15889 | pgcc* | pgf77* | pgf90* | pgf95*) |
15890 | # Portland Group compilers (*not* the Pentium gcc compiler, |
15891 | # which looks to be a dead project) |
15892 | lt_prog_compiler_wl_GCJ='-Wl,' |
15893 | lt_prog_compiler_pic_GCJ='-fpic' |
15894 | lt_prog_compiler_static_GCJ='-Bstatic' |
15895 | ;; |
15896 | ccc*) |
15897 | lt_prog_compiler_wl_GCJ='-Wl,' |
15898 | # All Alpha code is PIC. |
15899 | lt_prog_compiler_static_GCJ='-non_shared' |
15900 | ;; |
15901 | esac |
15902 | ;; |
15903 | |
15904 | osf3* | osf4* | osf5*) |
15905 | lt_prog_compiler_wl_GCJ='-Wl,' |
15906 | # All OSF/1 code is PIC. |
15907 | lt_prog_compiler_static_GCJ='-non_shared' |
15908 | ;; |
15909 | |
15910 | solaris*) |
15911 | lt_prog_compiler_pic_GCJ='-KPIC' |
15912 | lt_prog_compiler_static_GCJ='-Bstatic' |
15913 | case $cc_basename in |
15914 | f77* | f90* | f95*) |
15915 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
15916 | *) |
15917 | lt_prog_compiler_wl_GCJ='-Wl,';; |
15918 | esac |
15919 | ;; |
15920 | |
15921 | sunos4*) |
15922 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
15923 | lt_prog_compiler_pic_GCJ='-PIC' |
15924 | lt_prog_compiler_static_GCJ='-Bstatic' |
15925 | ;; |
15926 | |
15927 | sysv4 | sysv4.2uw2* | sysv4.3*) |
15928 | lt_prog_compiler_wl_GCJ='-Wl,' |
15929 | lt_prog_compiler_pic_GCJ='-KPIC' |
15930 | lt_prog_compiler_static_GCJ='-Bstatic' |
15931 | ;; |
15932 | |
15933 | sysv4*MP*) |
15934 | if test -d /usr/nec ;then |
15935 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
15936 | lt_prog_compiler_static_GCJ='-Bstatic' |
15937 | fi |
15938 | ;; |
15939 | |
15940 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
15941 | lt_prog_compiler_wl_GCJ='-Wl,' |
15942 | lt_prog_compiler_pic_GCJ='-KPIC' |
15943 | lt_prog_compiler_static_GCJ='-Bstatic' |
15944 | ;; |
15945 | |
15946 | unicos*) |
15947 | lt_prog_compiler_wl_GCJ='-Wl,' |
15948 | lt_prog_compiler_can_build_shared_GCJ=no |
15949 | ;; |
15950 | |
15951 | uts4*) |
15952 | lt_prog_compiler_pic_GCJ='-pic' |
15953 | lt_prog_compiler_static_GCJ='-Bstatic' |
15954 | ;; |
15955 | |
15956 | *) |
15957 | lt_prog_compiler_can_build_shared_GCJ=no |
15958 | ;; |
15959 | esac |
15960 | fi |
15961 | |
15962 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
15963 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
15964 | |
15965 | # |
15966 | # Check to make sure the PIC flag actually works. |
15967 | # |
15968 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
15969 | |
15970 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
15971 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
15972 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
15973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15974 | else |
15975 | lt_prog_compiler_pic_works_GCJ=no |
15976 | ac_outfile=conftest.$ac_objext |
15977 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
15978 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
15979 | # Insert the option either (1) after the last *FLAGS variable, or |
15980 | # (2) before a word containing "conftest.", or (3) at the end. |
15981 | # Note that $ac_compile itself does not contain backslashes and begins |
15982 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
15983 | # The option is referenced via a variable to avoid confusing sed. |
15984 | lt_compile=`echo "$ac_compile" | $SED \ |
15985 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
15986 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
15987 | -e 's:$: $lt_compiler_flag:'` |
15988 | (eval echo "\"\$as_me:15988: $lt_compile\"" >&5) |
15989 | (eval "$lt_compile" 2>conftest.err) |
15990 | ac_status=$? |
15991 | cat conftest.err >&5 |
15992 | echo "$as_me:15992: \$? = $ac_status" >&5 |
15993 | if (exit $ac_status) && test -s "$ac_outfile"; then |
15994 | # The compiler can only warn and ignore the option if not recognized |
15995 | # So say no if there are warnings other than the usual output. |
15996 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
15997 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
15998 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
15999 | lt_prog_compiler_pic_works_GCJ=yes |
16000 | fi |
16001 | fi |
16002 | $rm conftest* |
16003 | |
16004 | fi |
16005 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
16006 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
16007 | |
16008 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
16009 | case $lt_prog_compiler_pic_GCJ in |
16010 | "" | " "*) ;; |
16011 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
16012 | esac |
16013 | else |
16014 | lt_prog_compiler_pic_GCJ= |
16015 | lt_prog_compiler_can_build_shared_GCJ=no |
16016 | fi |
16017 | |
16018 | fi |
16019 | case $host_os in |
16020 | # For platforms which do not support PIC, -DPIC is meaningless: |
16021 | *djgpp*) |
16022 | lt_prog_compiler_pic_GCJ= |
16023 | ;; |
16024 | *) |
16025 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
16026 | ;; |
16027 | esac |
16028 | |
16029 | # |
16030 | # Check to make sure the static flag actually works. |
16031 | # |
16032 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
16033 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
16034 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
16035 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
16036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16037 | else |
16038 | lt_prog_compiler_static_works_GCJ=no |
16039 | save_LDFLAGS="$LDFLAGS" |
16040 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
16041 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
16042 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
16043 | # The linker can only warn and ignore the option if not recognized |
16044 | # So say no if there are warnings |
16045 | if test -s conftest.err; then |
16046 | # Append any errors to the config.log. |
16047 | cat conftest.err 1>&5 |
16048 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
16049 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16050 | if diff conftest.exp conftest.er2 >/dev/null; then |
16051 | lt_prog_compiler_static_works_GCJ=yes |
16052 | fi |
16053 | else |
16054 | lt_prog_compiler_static_works_GCJ=yes |
16055 | fi |
16056 | fi |
16057 | $rm conftest* |
16058 | LDFLAGS="$save_LDFLAGS" |
16059 | |
16060 | fi |
16061 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
16062 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 |
16063 | |
16064 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
16065 | : |
16066 | else |
16067 | lt_prog_compiler_static_GCJ= |
16068 | fi |
16069 | |
16070 | |
16071 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
16072 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
16073 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
16074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16075 | else |
16076 | lt_cv_prog_compiler_c_o_GCJ=no |
16077 | $rm -r conftest 2>/dev/null |
16078 | mkdir conftest |
16079 | cd conftest |
16080 | mkdir out |
16081 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16082 | |
16083 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
16084 | # Insert the option either (1) after the last *FLAGS variable, or |
16085 | # (2) before a word containing "conftest.", or (3) at the end. |
16086 | # Note that $ac_compile itself does not contain backslashes and begins |
16087 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16088 | lt_compile=`echo "$ac_compile" | $SED \ |
16089 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16090 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16091 | -e 's:$: $lt_compiler_flag:'` |
16092 | (eval echo "\"\$as_me:16092: $lt_compile\"" >&5) |
16093 | (eval "$lt_compile" 2>out/conftest.err) |
16094 | ac_status=$? |
16095 | cat out/conftest.err >&5 |
16096 | echo "$as_me:16096: \$? = $ac_status" >&5 |
16097 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16098 | then |
16099 | # The compiler can only warn and ignore the option if not recognized |
16100 | # So say no if there are warnings |
16101 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
16102 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
16103 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
16104 | lt_cv_prog_compiler_c_o_GCJ=yes |
16105 | fi |
16106 | fi |
16107 | chmod u+w . 2>&5 |
16108 | $rm conftest* |
16109 | # SGI C++ compiler will create directory out/ii_files/ for |
16110 | # template instantiation |
16111 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
16112 | $rm out/* && rmdir out |
16113 | cd .. |
16114 | rmdir conftest |
16115 | $rm conftest* |
16116 | |
16117 | fi |
16118 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
16119 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
16120 | |
16121 | |
16122 | hard_links="nottested" |
16123 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
16124 | # do not overwrite the value of need_locks provided by the user |
16125 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
16126 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
16127 | hard_links=yes |
16128 | $rm conftest* |
16129 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16130 | touch conftest.a |
16131 | ln conftest.a conftest.b 2>&5 || hard_links=no |
16132 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16133 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
16134 | echo "${ECHO_T}$hard_links" >&6 |
16135 | if test "$hard_links" = no; then |
16136 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
16137 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
16138 | need_locks=warn |
16139 | fi |
16140 | else |
16141 | need_locks=no |
16142 | fi |
16143 | |
16144 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
16145 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
16146 | |
16147 | runpath_var= |
16148 | allow_undefined_flag_GCJ= |
16149 | enable_shared_with_static_runtimes_GCJ=no |
16150 | archive_cmds_GCJ= |
16151 | archive_expsym_cmds_GCJ= |
16152 | old_archive_From_new_cmds_GCJ= |
16153 | old_archive_from_expsyms_cmds_GCJ= |
16154 | export_dynamic_flag_spec_GCJ= |
16155 | whole_archive_flag_spec_GCJ= |
16156 | thread_safe_flag_spec_GCJ= |
16157 | hardcode_libdir_flag_spec_GCJ= |
16158 | hardcode_libdir_flag_spec_ld_GCJ= |
16159 | hardcode_libdir_separator_GCJ= |
16160 | hardcode_direct_GCJ=no |
16161 | hardcode_minus_L_GCJ=no |
16162 | hardcode_shlibpath_var_GCJ=unsupported |
16163 | link_all_deplibs_GCJ=unknown |
16164 | hardcode_automatic_GCJ=no |
16165 | module_cmds_GCJ= |
16166 | module_expsym_cmds_GCJ= |
16167 | always_export_symbols_GCJ=no |
16168 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
16169 | # include_expsyms should be a list of space-separated symbols to be *always* |
16170 | # included in the symbol list |
16171 | include_expsyms_GCJ= |
16172 | # exclude_expsyms can be an extended regexp of symbols to exclude |
16173 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
16174 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
16175 | # as well as any symbol that contains `d'. |
16176 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
16177 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
16178 | # platforms (ab)use it in PIC code, but their linkers get confused if |
16179 | # the symbol is explicitly referenced. Since portable code cannot |
16180 | # rely on this symbol name, it's probably fine to never include it in |
16181 | # preloaded symbol tables. |
16182 | extract_expsyms_cmds= |
16183 | # Just being paranoid about ensuring that cc_basename is set. |
16184 | for cc_temp in $compiler""; do |
16185 | case $cc_temp in |
16186 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16187 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16188 | \-*) ;; |
16189 | *) break;; |
16190 | esac |
16191 | done |
16192 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16193 | |
16194 | case $host_os in |
16195 | cygwin* | mingw* | pw32*) |
16196 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
16197 | # When not using gcc, we currently assume that we are using |
16198 | # Microsoft Visual C++. |
16199 | if test "$GCC" != yes; then |
16200 | with_gnu_ld=no |
16201 | fi |
16202 | ;; |
16203 | interix*) |
16204 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
16205 | with_gnu_ld=yes |
16206 | ;; |
16207 | openbsd*) |
16208 | with_gnu_ld=no |
16209 | ;; |
16210 | esac |
16211 | |
16212 | ld_shlibs_GCJ=yes |
16213 | if test "$with_gnu_ld" = yes; then |
16214 | # If archive_cmds runs LD, not CC, wlarc should be empty |
16215 | wlarc='${wl}' |
16216 | |
16217 | # Set some defaults for GNU ld with shared library support. These |
16218 | # are reset later if shared libraries are not supported. Putting them |
16219 | # here allows them to be overridden if necessary. |
16220 | runpath_var=LD_RUN_PATH |
16221 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
16222 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
16223 | # ancient GNU ld didn't support --whole-archive et. al. |
16224 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
16225 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
16226 | else |
16227 | whole_archive_flag_spec_GCJ= |
16228 | fi |
16229 | supports_anon_versioning=no |
16230 | case `$LD -v 2>/dev/null` in |
16231 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
16232 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
16233 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
16234 | *\ 2.11.*) ;; # other 2.11 versions |
16235 | *) supports_anon_versioning=yes ;; |
16236 | esac |
16237 | |
16238 | # See if GNU ld supports shared libraries. |
16239 | case $host_os in |
16240 | aix3* | aix4* | aix5*) |
16241 | # On AIX/PPC, the GNU linker is very broken |
16242 | if test "$host_cpu" != ia64; then |
16243 | ld_shlibs_GCJ=no |
16244 | cat <<EOF 1>&2 |
16245 | |
16246 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
16247 | *** to be unable to reliably create shared libraries on AIX. |
16248 | *** Therefore, libtool is disabling shared libraries support. If you |
16249 | *** really care for shared libraries, you may want to modify your PATH |
16250 | *** so that a non-GNU linker is found, and then restart. |
16251 | |
16252 | EOF |
16253 | fi |
16254 | ;; |
16255 | |
16256 | amigaos*) |
16257 | 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)' |
16258 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16259 | hardcode_minus_L_GCJ=yes |
16260 | |
16261 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
16262 | # that the semantics of dynamic libraries on AmigaOS, at least up |
16263 | # to version 4, is to share data among multiple programs linked |
16264 | # with the same dynamic library. Since this doesn't match the |
16265 | # behavior of shared libraries on other platforms, we can't use |
16266 | # them. |
16267 | ld_shlibs_GCJ=no |
16268 | ;; |
16269 | |
16270 | beos*) |
16271 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16272 | allow_undefined_flag_GCJ=unsupported |
16273 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
16274 | # support --undefined. This deserves some investigation. FIXME |
16275 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16276 | else |
16277 | ld_shlibs_GCJ=no |
16278 | fi |
16279 | ;; |
16280 | |
16281 | cygwin* | mingw* | pw32*) |
16282 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
16283 | # as there is no search path for DLLs. |
16284 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16285 | allow_undefined_flag_GCJ=unsupported |
16286 | always_export_symbols_GCJ=no |
16287 | enable_shared_with_static_runtimes_GCJ=yes |
16288 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
16289 | |
16290 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
16291 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16292 | # If the export-symbols file already is a .def file (1st line |
16293 | # is EXPORTS), use it as is; otherwise, prepend... |
16294 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
16295 | cp $export_symbols $output_objdir/$soname.def; |
16296 | else |
16297 | echo EXPORTS > $output_objdir/$soname.def; |
16298 | cat $export_symbols >> $output_objdir/$soname.def; |
16299 | fi~ |
16300 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16301 | else |
16302 | ld_shlibs_GCJ=no |
16303 | fi |
16304 | ;; |
16305 | |
16306 | interix3*) |
16307 | hardcode_direct_GCJ=no |
16308 | hardcode_shlibpath_var_GCJ=no |
16309 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
16310 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16311 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
16312 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
16313 | # default) and relocated if they conflict, which is a slow very memory |
16314 | # consuming and fragmenting process. To avoid this, we pick a random, |
16315 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
16316 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
16317 | 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' |
16318 | 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' |
16319 | ;; |
16320 | |
16321 | linux*) |
16322 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16323 | tmp_addflag= |
16324 | case $cc_basename,$host_cpu in |
16325 | pgcc*) # Portland Group C compiler |
16326 | 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' |
16327 | tmp_addflag=' $pic_flag' |
16328 | ;; |
16329 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
16330 | 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' |
16331 | tmp_addflag=' $pic_flag -Mnomain' ;; |
16332 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
16333 | tmp_addflag=' -i_dynamic' ;; |
16334 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
16335 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
16336 | ifc* | ifort*) # Intel Fortran compiler |
16337 | tmp_addflag=' -nofor_main' ;; |
16338 | esac |
16339 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16340 | |
16341 | if test $supports_anon_versioning = yes; then |
16342 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
16343 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
16344 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
16345 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
16346 | fi |
16347 | else |
16348 | ld_shlibs_GCJ=no |
16349 | fi |
16350 | ;; |
16351 | |
16352 | netbsd*) |
16353 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
16354 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
16355 | wlarc= |
16356 | else |
16357 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16358 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16359 | fi |
16360 | ;; |
16361 | |
16362 | solaris*) |
16363 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
16364 | ld_shlibs_GCJ=no |
16365 | cat <<EOF 1>&2 |
16366 | |
16367 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
16368 | *** create shared libraries on Solaris systems. Therefore, libtool |
16369 | *** is disabling shared libraries support. We urge you to upgrade GNU |
16370 | *** binutils to release 2.9.1 or newer. Another option is to modify |
16371 | *** your PATH or compiler configuration so that the native linker is |
16372 | *** used, and then restart. |
16373 | |
16374 | EOF |
16375 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16376 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16377 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16378 | else |
16379 | ld_shlibs_GCJ=no |
16380 | fi |
16381 | ;; |
16382 | |
16383 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
16384 | case `$LD -v 2>&1` in |
16385 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
16386 | ld_shlibs_GCJ=no |
16387 | cat <<_LT_EOF 1>&2 |
16388 | |
16389 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
16390 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
16391 | *** is disabling shared libraries support. We urge you to upgrade GNU |
16392 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
16393 | *** your PATH or compiler configuration so that the native linker is |
16394 | *** used, and then restart. |
16395 | |
16396 | _LT_EOF |
16397 | ;; |
16398 | *) |
16399 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16400 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
16401 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
16402 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
16403 | else |
16404 | ld_shlibs_GCJ=no |
16405 | fi |
16406 | ;; |
16407 | esac |
16408 | ;; |
16409 | |
16410 | sunos4*) |
16411 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16412 | wlarc= |
16413 | hardcode_direct_GCJ=yes |
16414 | hardcode_shlibpath_var_GCJ=no |
16415 | ;; |
16416 | |
16417 | *) |
16418 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16419 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16420 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16421 | else |
16422 | ld_shlibs_GCJ=no |
16423 | fi |
16424 | ;; |
16425 | esac |
16426 | |
16427 | if test "$ld_shlibs_GCJ" = no; then |
16428 | runpath_var= |
16429 | hardcode_libdir_flag_spec_GCJ= |
16430 | export_dynamic_flag_spec_GCJ= |
16431 | whole_archive_flag_spec_GCJ= |
16432 | fi |
16433 | else |
16434 | # PORTME fill in a description of your system's linker (not GNU ld) |
16435 | case $host_os in |
16436 | aix3*) |
16437 | allow_undefined_flag_GCJ=unsupported |
16438 | always_export_symbols_GCJ=yes |
16439 | 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' |
16440 | # Note: this linker hardcodes the directories in LIBPATH if there |
16441 | # are no directories specified by -L. |
16442 | hardcode_minus_L_GCJ=yes |
16443 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
16444 | # Neither direct hardcoding nor static linking is supported with a |
16445 | # broken collect2. |
16446 | hardcode_direct_GCJ=unsupported |
16447 | fi |
16448 | ;; |
16449 | |
16450 | aix4* | aix5*) |
16451 | if test "$host_cpu" = ia64; then |
16452 | # On IA64, the linker does run time linking by default, so we don't |
16453 | # have to do anything special. |
16454 | aix_use_runtimelinking=no |
16455 | exp_sym_flag='-Bexport' |
16456 | no_entry_flag="" |
16457 | else |
16458 | # If we're using GNU nm, then we don't want the "-C" option. |
16459 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
16460 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
16461 | 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' |
16462 | else |
16463 | 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' |
16464 | fi |
16465 | aix_use_runtimelinking=no |
16466 | |
16467 | # Test if we are trying to use run time linking or normal |
16468 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
16469 | # need to do runtime linking. |
16470 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
16471 | for ld_flag in $LDFLAGS; do |
16472 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
16473 | aix_use_runtimelinking=yes |
16474 | break |
16475 | fi |
16476 | done |
16477 | ;; |
16478 | esac |
16479 | |
16480 | exp_sym_flag='-bexport' |
16481 | no_entry_flag='-bnoentry' |
16482 | fi |
16483 | |
16484 | # When large executables or shared objects are built, AIX ld can |
16485 | # have problems creating the table of contents. If linking a library |
16486 | # or program results in "error TOC overflow" add -mminimal-toc to |
16487 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
16488 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
16489 | |
16490 | archive_cmds_GCJ='' |
16491 | hardcode_direct_GCJ=yes |
16492 | hardcode_libdir_separator_GCJ=':' |
16493 | link_all_deplibs_GCJ=yes |
16494 | |
16495 | if test "$GCC" = yes; then |
16496 | case $host_os in aix4.[012]|aix4.[012].*) |
16497 | # We only want to do this on AIX 4.2 and lower, the check |
16498 | # below for broken collect2 doesn't work under 4.3+ |
16499 | collect2name=`${CC} -print-prog-name=collect2` |
16500 | if test -f "$collect2name" && \ |
16501 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
16502 | then |
16503 | # We have reworked collect2 |
16504 | hardcode_direct_GCJ=yes |
16505 | else |
16506 | # We have old collect2 |
16507 | hardcode_direct_GCJ=unsupported |
16508 | # It fails to find uninstalled libraries when the uninstalled |
16509 | # path is not listed in the libpath. Setting hardcode_minus_L |
16510 | # to unsupported forces relinking |
16511 | hardcode_minus_L_GCJ=yes |
16512 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16513 | hardcode_libdir_separator_GCJ= |
16514 | fi |
16515 | ;; |
16516 | esac |
16517 | shared_flag='-shared' |
16518 | if test "$aix_use_runtimelinking" = yes; then |
16519 | shared_flag="$shared_flag "'${wl}-G' |
16520 | fi |
16521 | else |
16522 | # not using gcc |
16523 | if test "$host_cpu" = ia64; then |
16524 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
16525 | # chokes on -Wl,-G. The following line is correct: |
16526 | shared_flag='-G' |
16527 | else |
16528 | if test "$aix_use_runtimelinking" = yes; then |
16529 | shared_flag='${wl}-G' |
16530 | else |
16531 | shared_flag='${wl}-bM:SRE' |
16532 | fi |
16533 | fi |
16534 | fi |
16535 | |
16536 | # It seems that -bexpall does not export symbols beginning with |
16537 | # underscore (_), so it is better to generate a list of symbols to export. |
16538 | always_export_symbols_GCJ=yes |
16539 | if test "$aix_use_runtimelinking" = yes; then |
16540 | # Warning - without using the other runtime loading flags (-brtl), |
16541 | # -berok will link without error, but may produce a broken library. |
16542 | allow_undefined_flag_GCJ='-berok' |
16543 | # Determine the default libpath from the value encoded in an empty executable. |
16544 | cat >conftest.$ac_ext <<_ACEOF |
16545 | /* confdefs.h. */ |
16546 | _ACEOF |
16547 | cat confdefs.h >>conftest.$ac_ext |
16548 | cat >>conftest.$ac_ext <<_ACEOF |
16549 | /* end confdefs.h. */ |
16550 | |
16551 | int |
16552 | main () |
16553 | { |
16554 | |
16555 | ; |
16556 | return 0; |
16557 | } |
16558 | _ACEOF |
16559 | rm -f conftest.$ac_objext conftest$ac_exeext |
16560 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16561 | (eval $ac_link) 2>conftest.er1 |
16562 | ac_status=$? |
16563 | grep -v '^ *+' conftest.er1 >conftest.err |
16564 | rm -f conftest.er1 |
16565 | cat conftest.err >&5 |
16566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16567 | (exit $ac_status); } && |
16568 | { ac_try='test -z "$ac_c_werror_flag" |
16569 | || test ! -s conftest.err' |
16570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16571 | (eval $ac_try) 2>&5 |
16572 | ac_status=$? |
16573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16574 | (exit $ac_status); }; } && |
16575 | { ac_try='test -s conftest$ac_exeext' |
16576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16577 | (eval $ac_try) 2>&5 |
16578 | ac_status=$? |
16579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16580 | (exit $ac_status); }; }; then |
16581 | |
16582 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
16583 | }'` |
16584 | # Check for a 64-bit object if we didn't find anything. |
16585 | 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; } |
16586 | }'`; fi |
16587 | else |
16588 | echo "$as_me: failed program was:" >&5 |
16589 | sed 's/^/| /' conftest.$ac_ext >&5 |
16590 | |
16591 | fi |
16592 | rm -f conftest.err conftest.$ac_objext \ |
16593 | conftest$ac_exeext conftest.$ac_ext |
16594 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
16595 | |
16596 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
16597 | 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" |
16598 | else |
16599 | if test "$host_cpu" = ia64; then |
16600 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
16601 | allow_undefined_flag_GCJ="-z nodefs" |
16602 | 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" |
16603 | else |
16604 | # Determine the default libpath from the value encoded in an empty executable. |
16605 | cat >conftest.$ac_ext <<_ACEOF |
16606 | /* confdefs.h. */ |
16607 | _ACEOF |
16608 | cat confdefs.h >>conftest.$ac_ext |
16609 | cat >>conftest.$ac_ext <<_ACEOF |
16610 | /* end confdefs.h. */ |
16611 | |
16612 | int |
16613 | main () |
16614 | { |
16615 | |
16616 | ; |
16617 | return 0; |
16618 | } |
16619 | _ACEOF |
16620 | rm -f conftest.$ac_objext conftest$ac_exeext |
16621 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16622 | (eval $ac_link) 2>conftest.er1 |
16623 | ac_status=$? |
16624 | grep -v '^ *+' conftest.er1 >conftest.err |
16625 | rm -f conftest.er1 |
16626 | cat conftest.err >&5 |
16627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16628 | (exit $ac_status); } && |
16629 | { ac_try='test -z "$ac_c_werror_flag" |
16630 | || test ! -s conftest.err' |
16631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16632 | (eval $ac_try) 2>&5 |
16633 | ac_status=$? |
16634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16635 | (exit $ac_status); }; } && |
16636 | { ac_try='test -s conftest$ac_exeext' |
16637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16638 | (eval $ac_try) 2>&5 |
16639 | ac_status=$? |
16640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16641 | (exit $ac_status); }; }; then |
16642 | |
16643 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
16644 | }'` |
16645 | # Check for a 64-bit object if we didn't find anything. |
16646 | 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; } |
16647 | }'`; fi |
16648 | else |
16649 | echo "$as_me: failed program was:" >&5 |
16650 | sed 's/^/| /' conftest.$ac_ext >&5 |
16651 | |
16652 | fi |
16653 | rm -f conftest.err conftest.$ac_objext \ |
16654 | conftest$ac_exeext conftest.$ac_ext |
16655 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
16656 | |
16657 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
16658 | # Warning - without using the other run time loading flags, |
16659 | # -berok will link without error, but may produce a broken library. |
16660 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
16661 | allow_undefined_flag_GCJ=' ${wl}-berok' |
16662 | # Exported symbols can be pulled into shared objects from archives |
16663 | whole_archive_flag_spec_GCJ='$convenience' |
16664 | archive_cmds_need_lc_GCJ=yes |
16665 | # This is similar to how AIX traditionally builds its shared libraries. |
16666 | 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' |
16667 | fi |
16668 | fi |
16669 | ;; |
16670 | |
16671 | amigaos*) |
16672 | 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)' |
16673 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16674 | hardcode_minus_L_GCJ=yes |
16675 | # see comment about different semantics on the GNU ld section |
16676 | ld_shlibs_GCJ=no |
16677 | ;; |
16678 | |
16679 | bsdi[45]*) |
16680 | export_dynamic_flag_spec_GCJ=-rdynamic |
16681 | ;; |
16682 | |
16683 | cygwin* | mingw* | pw32*) |
16684 | # When not using gcc, we currently assume that we are using |
16685 | # Microsoft Visual C++. |
16686 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
16687 | # no search path for DLLs. |
16688 | hardcode_libdir_flag_spec_GCJ=' ' |
16689 | allow_undefined_flag_GCJ=unsupported |
16690 | # Tell ltmain to make .lib files, not .a files. |
16691 | libext=lib |
16692 | # Tell ltmain to make .dll files, not .so files. |
16693 | shrext_cmds=".dll" |
16694 | # FIXME: Setting linknames here is a bad hack. |
16695 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
16696 | # The linker will automatically build a .lib file if we build a DLL. |
16697 | old_archive_From_new_cmds_GCJ='true' |
16698 | # FIXME: Should let the user specify the lib program. |
16699 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
16700 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
16701 | enable_shared_with_static_runtimes_GCJ=yes |
16702 | ;; |
16703 | |
16704 | darwin* | rhapsody*) |
16705 | case $host_os in |
16706 | rhapsody* | darwin1.[012]) |
16707 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
16708 | ;; |
16709 | *) # Darwin 1.3 on |
16710 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
16711 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
16712 | else |
16713 | case ${MACOSX_DEPLOYMENT_TARGET} in |
16714 | 10.[012]) |
16715 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
16716 | ;; |
16717 | 10.*) |
16718 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
16719 | ;; |
16720 | esac |
16721 | fi |
16722 | ;; |
16723 | esac |
16724 | archive_cmds_need_lc_GCJ=no |
16725 | hardcode_direct_GCJ=no |
16726 | hardcode_automatic_GCJ=yes |
16727 | hardcode_shlibpath_var_GCJ=unsupported |
16728 | whole_archive_flag_spec_GCJ='' |
16729 | link_all_deplibs_GCJ=yes |
16730 | if test "$GCC" = yes ; then |
16731 | output_verbose_link_cmd='echo' |
16732 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
16733 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
16734 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
16735 | 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}' |
16736 | 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}' |
16737 | else |
16738 | case $cc_basename in |
16739 | xlc*) |
16740 | output_verbose_link_cmd='echo' |
16741 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
16742 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
16743 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
16744 | 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}' |
16745 | 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}' |
16746 | ;; |
16747 | *) |
16748 | ld_shlibs_GCJ=no |
16749 | ;; |
16750 | esac |
16751 | fi |
16752 | ;; |
16753 | |
16754 | dgux*) |
16755 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16756 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16757 | hardcode_shlibpath_var_GCJ=no |
16758 | ;; |
16759 | |
16760 | freebsd1*) |
16761 | ld_shlibs_GCJ=no |
16762 | ;; |
16763 | |
16764 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
16765 | # support. Future versions do this automatically, but an explicit c++rt0.o |
16766 | # does not break anything, and helps significantly (at the cost of a little |
16767 | # extra space). |
16768 | freebsd2.2*) |
16769 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
16770 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16771 | hardcode_direct_GCJ=yes |
16772 | hardcode_shlibpath_var_GCJ=no |
16773 | ;; |
16774 | |
16775 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
16776 | freebsd2*) |
16777 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16778 | hardcode_direct_GCJ=yes |
16779 | hardcode_minus_L_GCJ=yes |
16780 | hardcode_shlibpath_var_GCJ=no |
16781 | ;; |
16782 | |
16783 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
16784 | freebsd* | kfreebsd*-gnu | dragonfly*) |
16785 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
16786 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16787 | hardcode_direct_GCJ=yes |
16788 | hardcode_shlibpath_var_GCJ=no |
16789 | ;; |
16790 | |
16791 | hpux9*) |
16792 | if test "$GCC" = yes; then |
16793 | 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' |
16794 | else |
16795 | 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' |
16796 | fi |
16797 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
16798 | hardcode_libdir_separator_GCJ=: |
16799 | hardcode_direct_GCJ=yes |
16800 | |
16801 | # hardcode_minus_L: Not really in the search PATH, |
16802 | # but as the default location of the library. |
16803 | hardcode_minus_L_GCJ=yes |
16804 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16805 | ;; |
16806 | |
16807 | hpux10*) |
16808 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
16809 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
16810 | else |
16811 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
16812 | fi |
16813 | if test "$with_gnu_ld" = no; then |
16814 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
16815 | hardcode_libdir_separator_GCJ=: |
16816 | |
16817 | hardcode_direct_GCJ=yes |
16818 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16819 | |
16820 | # hardcode_minus_L: Not really in the search PATH, |
16821 | # but as the default location of the library. |
16822 | hardcode_minus_L_GCJ=yes |
16823 | fi |
16824 | ;; |
16825 | |
16826 | hpux11*) |
16827 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
16828 | case $host_cpu in |
16829 | hppa*64*) |
16830 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16831 | ;; |
16832 | ia64*) |
16833 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
16834 | ;; |
16835 | *) |
16836 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
16837 | ;; |
16838 | esac |
16839 | else |
16840 | case $host_cpu in |
16841 | hppa*64*) |
16842 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16843 | ;; |
16844 | ia64*) |
16845 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
16846 | ;; |
16847 | *) |
16848 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
16849 | ;; |
16850 | esac |
16851 | fi |
16852 | if test "$with_gnu_ld" = no; then |
16853 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
16854 | hardcode_libdir_separator_GCJ=: |
16855 | |
16856 | case $host_cpu in |
16857 | hppa*64*|ia64*) |
16858 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
16859 | hardcode_direct_GCJ=no |
16860 | hardcode_shlibpath_var_GCJ=no |
16861 | ;; |
16862 | *) |
16863 | hardcode_direct_GCJ=yes |
16864 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16865 | |
16866 | # hardcode_minus_L: Not really in the search PATH, |
16867 | # but as the default location of the library. |
16868 | hardcode_minus_L_GCJ=yes |
16869 | ;; |
16870 | esac |
16871 | fi |
16872 | ;; |
16873 | |
16874 | irix5* | irix6* | nonstopux*) |
16875 | if test "$GCC" = yes; then |
16876 | 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' |
16877 | else |
16878 | 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' |
16879 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
16880 | fi |
16881 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16882 | hardcode_libdir_separator_GCJ=: |
16883 | link_all_deplibs_GCJ=yes |
16884 | ;; |
16885 | |
16886 | netbsd*) |
16887 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
16888 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
16889 | else |
16890 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
16891 | fi |
16892 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16893 | hardcode_direct_GCJ=yes |
16894 | hardcode_shlibpath_var_GCJ=no |
16895 | ;; |
16896 | |
16897 | newsos6) |
16898 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16899 | hardcode_direct_GCJ=yes |
16900 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16901 | hardcode_libdir_separator_GCJ=: |
16902 | hardcode_shlibpath_var_GCJ=no |
16903 | ;; |
16904 | |
16905 | openbsd*) |
16906 | hardcode_direct_GCJ=yes |
16907 | hardcode_shlibpath_var_GCJ=no |
16908 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
16909 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
16910 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
16911 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
16912 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16913 | else |
16914 | case $host_os in |
16915 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
16916 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16917 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16918 | ;; |
16919 | *) |
16920 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
16921 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
16922 | ;; |
16923 | esac |
16924 | fi |
16925 | ;; |
16926 | |
16927 | os2*) |
16928 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16929 | hardcode_minus_L_GCJ=yes |
16930 | allow_undefined_flag_GCJ=unsupported |
16931 | 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' |
16932 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
16933 | ;; |
16934 | |
16935 | osf3*) |
16936 | if test "$GCC" = yes; then |
16937 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
16938 | 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' |
16939 | else |
16940 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
16941 | 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' |
16942 | fi |
16943 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16944 | hardcode_libdir_separator_GCJ=: |
16945 | ;; |
16946 | |
16947 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
16948 | if test "$GCC" = yes; then |
16949 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
16950 | 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' |
16951 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16952 | else |
16953 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
16954 | 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' |
16955 | 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~ |
16956 | $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' |
16957 | |
16958 | # Both c and cxx compiler support -rpath directly |
16959 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
16960 | fi |
16961 | hardcode_libdir_separator_GCJ=: |
16962 | ;; |
16963 | |
16964 | solaris*) |
16965 | no_undefined_flag_GCJ=' -z text' |
16966 | if test "$GCC" = yes; then |
16967 | wlarc='${wl}' |
16968 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16969 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
16970 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
16971 | else |
16972 | wlarc='' |
16973 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16974 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
16975 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
16976 | fi |
16977 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16978 | hardcode_shlibpath_var_GCJ=no |
16979 | case $host_os in |
16980 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
16981 | *) |
16982 | # The compiler driver will combine linker options so we |
16983 | # cannot just pass the convience library names through |
16984 | # without $wl, iff we do not link with $LD. |
16985 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
16986 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
16987 | case $wlarc in |
16988 | '') |
16989 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
16990 | *) |
16991 | 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' ;; |
16992 | esac ;; |
16993 | esac |
16994 | link_all_deplibs_GCJ=yes |
16995 | ;; |
16996 | |
16997 | sunos4*) |
16998 | if test "x$host_vendor" = xsequent; then |
16999 | # Use $CC to link under sequent, because it throws in some extra .o |
17000 | # files that make .init and .fini sections work. |
17001 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
17002 | else |
17003 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
17004 | fi |
17005 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17006 | hardcode_direct_GCJ=yes |
17007 | hardcode_minus_L_GCJ=yes |
17008 | hardcode_shlibpath_var_GCJ=no |
17009 | ;; |
17010 | |
17011 | sysv4) |
17012 | case $host_vendor in |
17013 | sni) |
17014 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17015 | hardcode_direct_GCJ=yes # is this really true??? |
17016 | ;; |
17017 | siemens) |
17018 | ## LD is ld it makes a PLAMLIB |
17019 | ## CC just makes a GrossModule. |
17020 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
17021 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
17022 | hardcode_direct_GCJ=no |
17023 | ;; |
17024 | motorola) |
17025 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17026 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
17027 | ;; |
17028 | esac |
17029 | runpath_var='LD_RUN_PATH' |
17030 | hardcode_shlibpath_var_GCJ=no |
17031 | ;; |
17032 | |
17033 | sysv4.3*) |
17034 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17035 | hardcode_shlibpath_var_GCJ=no |
17036 | export_dynamic_flag_spec_GCJ='-Bexport' |
17037 | ;; |
17038 | |
17039 | sysv4*MP*) |
17040 | if test -d /usr/nec; then |
17041 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17042 | hardcode_shlibpath_var_GCJ=no |
17043 | runpath_var=LD_RUN_PATH |
17044 | hardcode_runpath_var=yes |
17045 | ld_shlibs_GCJ=yes |
17046 | fi |
17047 | ;; |
17048 | |
17049 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
17050 | no_undefined_flag_GCJ='${wl}-z,text' |
17051 | archive_cmds_need_lc_GCJ=no |
17052 | hardcode_shlibpath_var_GCJ=no |
17053 | runpath_var='LD_RUN_PATH' |
17054 | |
17055 | if test "$GCC" = yes; then |
17056 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17057 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17058 | else |
17059 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17060 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17061 | fi |
17062 | ;; |
17063 | |
17064 | sysv5* | sco3.2v5* | sco5v6*) |
17065 | # Note: We can NOT use -z defs as we might desire, because we do not |
17066 | # link with -lc, and that would cause any symbols used from libc to |
17067 | # always be unresolved, which means just about no library would |
17068 | # ever link correctly. If we're not using GNU ld we use -z text |
17069 | # though, which does catch some bad symbols but isn't as heavy-handed |
17070 | # as -z defs. |
17071 | no_undefined_flag_GCJ='${wl}-z,text' |
17072 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
17073 | archive_cmds_need_lc_GCJ=no |
17074 | hardcode_shlibpath_var_GCJ=no |
17075 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
17076 | hardcode_libdir_separator_GCJ=':' |
17077 | link_all_deplibs_GCJ=yes |
17078 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
17079 | runpath_var='LD_RUN_PATH' |
17080 | |
17081 | if test "$GCC" = yes; then |
17082 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17083 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17084 | else |
17085 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17086 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17087 | fi |
17088 | ;; |
17089 | |
17090 | uts4*) |
17091 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17092 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17093 | hardcode_shlibpath_var_GCJ=no |
17094 | ;; |
17095 | |
17096 | *) |
17097 | ld_shlibs_GCJ=no |
17098 | ;; |
17099 | esac |
17100 | fi |
17101 | |
17102 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
17103 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
17104 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
17105 | |
17106 | # |
17107 | # Do we need to explicitly link libc? |
17108 | # |
17109 | case "x$archive_cmds_need_lc_GCJ" in |
17110 | x|xyes) |
17111 | # Assume -lc should be added |
17112 | archive_cmds_need_lc_GCJ=yes |
17113 | |
17114 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
17115 | case $archive_cmds_GCJ in |
17116 | *'~'*) |
17117 | # FIXME: we may have to deal with multi-command sequences. |
17118 | ;; |
17119 | '$CC '*) |
17120 | # Test whether the compiler implicitly links with -lc since on some |
17121 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
17122 | # to ld, don't add -lc before -lgcc. |
17123 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
17124 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
17125 | $rm conftest* |
17126 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
17127 | |
17128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17129 | (eval $ac_compile) 2>&5 |
17130 | ac_status=$? |
17131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17132 | (exit $ac_status); } 2>conftest.err; then |
17133 | soname=conftest |
17134 | lib=conftest |
17135 | libobjs=conftest.$ac_objext |
17136 | deplibs= |
17137 | wl=$lt_prog_compiler_wl_GCJ |
17138 | pic_flag=$lt_prog_compiler_pic_GCJ |
17139 | compiler_flags=-v |
17140 | linker_flags=-v |
17141 | verstring= |
17142 | output_objdir=. |
17143 | libname=conftest |
17144 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
17145 | allow_undefined_flag_GCJ= |
17146 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
17147 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
17148 | ac_status=$? |
17149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17150 | (exit $ac_status); } |
17151 | then |
17152 | archive_cmds_need_lc_GCJ=no |
17153 | else |
17154 | archive_cmds_need_lc_GCJ=yes |
17155 | fi |
17156 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
17157 | else |
17158 | cat conftest.err 1>&5 |
17159 | fi |
17160 | $rm conftest* |
17161 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
17162 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
17163 | ;; |
17164 | esac |
17165 | fi |
17166 | ;; |
17167 | esac |
17168 | |
17169 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
17170 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
17171 | library_names_spec= |
17172 | libname_spec='lib$name' |
17173 | soname_spec= |
17174 | shrext_cmds=".so" |
17175 | postinstall_cmds= |
17176 | postuninstall_cmds= |
17177 | finish_cmds= |
17178 | finish_eval= |
17179 | shlibpath_var= |
17180 | shlibpath_overrides_runpath=unknown |
17181 | version_type=none |
17182 | dynamic_linker="$host_os ld.so" |
17183 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
17184 | if test "$GCC" = yes; then |
17185 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17186 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
17187 | # if the path contains ";" then we assume it to be the separator |
17188 | # otherwise default to the standard path separator (i.e. ":") - it is |
17189 | # assumed that no part of a normal pathname contains ";" but that should |
17190 | # okay in the real world where ";" in dirpaths is itself problematic. |
17191 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17192 | else |
17193 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17194 | fi |
17195 | else |
17196 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
17197 | fi |
17198 | need_lib_prefix=unknown |
17199 | hardcode_into_libs=no |
17200 | |
17201 | # when you set need_version to no, make sure it does not cause -set_version |
17202 | # flags to be left without arguments |
17203 | need_version=unknown |
17204 | |
17205 | case $host_os in |
17206 | aix3*) |
17207 | version_type=linux |
17208 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
17209 | shlibpath_var=LIBPATH |
17210 | |
17211 | # AIX 3 has no versioning support, so we append a major version to the name. |
17212 | soname_spec='${libname}${release}${shared_ext}$major' |
17213 | ;; |
17214 | |
17215 | aix4* | aix5*) |
17216 | version_type=linux |
17217 | need_lib_prefix=no |
17218 | need_version=no |
17219 | hardcode_into_libs=yes |
17220 | if test "$host_cpu" = ia64; then |
17221 | # AIX 5 supports IA64 |
17222 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
17223 | shlibpath_var=LD_LIBRARY_PATH |
17224 | else |
17225 | # With GCC up to 2.95.x, collect2 would create an import file |
17226 | # for dependence libraries. The import file would start with |
17227 | # the line `#! .'. This would cause the generated library to |
17228 | # depend on `.', always an invalid library. This was fixed in |
17229 | # development snapshots of GCC prior to 3.0. |
17230 | case $host_os in |
17231 | aix4 | aix4.[01] | aix4.[01].*) |
17232 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
17233 | echo ' yes ' |
17234 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
17235 | : |
17236 | else |
17237 | can_build_shared=no |
17238 | fi |
17239 | ;; |
17240 | esac |
17241 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
17242 | # soname into executable. Probably we can add versioning support to |
17243 | # collect2, so additional links can be useful in future. |
17244 | if test "$aix_use_runtimelinking" = yes; then |
17245 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
17246 | # instead of lib<name>.a to let people know that these are not |
17247 | # typical AIX shared libraries. |
17248 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17249 | else |
17250 | # We preserve .a as extension for shared libraries through AIX4.2 |
17251 | # and later when we are not doing run time linking. |
17252 | library_names_spec='${libname}${release}.a $libname.a' |
17253 | soname_spec='${libname}${release}${shared_ext}$major' |
17254 | fi |
17255 | shlibpath_var=LIBPATH |
17256 | fi |
17257 | ;; |
17258 | |
17259 | amigaos*) |
17260 | library_names_spec='$libname.ixlibrary $libname.a' |
17261 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
17262 | 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' |
17263 | ;; |
17264 | |
17265 | beos*) |
17266 | library_names_spec='${libname}${shared_ext}' |
17267 | dynamic_linker="$host_os ld.so" |
17268 | shlibpath_var=LIBRARY_PATH |
17269 | ;; |
17270 | |
17271 | bsdi[45]*) |
17272 | version_type=linux |
17273 | need_version=no |
17274 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17275 | soname_spec='${libname}${release}${shared_ext}$major' |
17276 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
17277 | shlibpath_var=LD_LIBRARY_PATH |
17278 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
17279 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
17280 | # the default ld.so.conf also contains /usr/contrib/lib and |
17281 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
17282 | # libtool to hard-code these into programs |
17283 | ;; |
17284 | |
17285 | cygwin* | mingw* | pw32*) |
17286 | version_type=windows |
17287 | shrext_cmds=".dll" |
17288 | need_version=no |
17289 | need_lib_prefix=no |
17290 | |
17291 | case $GCC,$host_os in |
17292 | yes,cygwin* | yes,mingw* | yes,pw32*) |
17293 | library_names_spec='$libname.dll.a' |
17294 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
17295 | postinstall_cmds='base_file=`basename \${file}`~ |
17296 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
17297 | dldir=$destdir/`dirname \$dlpath`~ |
17298 | test -d \$dldir || mkdir -p \$dldir~ |
17299 | $install_prog $dir/$dlname \$dldir/$dlname~ |
17300 | chmod a+x \$dldir/$dlname' |
17301 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
17302 | dlpath=$dir/\$dldll~ |
17303 | $rm \$dlpath' |
17304 | shlibpath_overrides_runpath=yes |
17305 | |
17306 | case $host_os in |
17307 | cygwin*) |
17308 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
17309 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17310 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
17311 | ;; |
17312 | mingw*) |
17313 | # MinGW DLLs use traditional 'lib' prefix |
17314 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17315 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17316 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
17317 | # It is most probably a Windows format PATH printed by |
17318 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
17319 | # path with ; separators, and with drive letters. We can handle the |
17320 | # drive letters (cygwin fileutils understands them), so leave them, |
17321 | # especially as we might pass files found there to a mingw objdump, |
17322 | # which wouldn't understand a cygwinified path. Ahh. |
17323 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17324 | else |
17325 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17326 | fi |
17327 | ;; |
17328 | pw32*) |
17329 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
17330 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17331 | ;; |
17332 | esac |
17333 | ;; |
17334 | |
17335 | *) |
17336 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
17337 | ;; |
17338 | esac |
17339 | dynamic_linker='Win32 ld.exe' |
17340 | # FIXME: first we should search . and the directory the executable is in |
17341 | shlibpath_var=PATH |
17342 | ;; |
17343 | |
17344 | darwin* | rhapsody*) |
17345 | dynamic_linker="$host_os dyld" |
17346 | version_type=darwin |
17347 | need_lib_prefix=no |
17348 | need_version=no |
17349 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
17350 | soname_spec='${libname}${release}${major}$shared_ext' |
17351 | shlibpath_overrides_runpath=yes |
17352 | shlibpath_var=DYLD_LIBRARY_PATH |
17353 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
17354 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
17355 | if test "$GCC" = yes; then |
17356 | 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"` |
17357 | else |
17358 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
17359 | fi |
17360 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
17361 | ;; |
17362 | |
17363 | dgux*) |
17364 | version_type=linux |
17365 | need_lib_prefix=no |
17366 | need_version=no |
17367 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
17368 | soname_spec='${libname}${release}${shared_ext}$major' |
17369 | shlibpath_var=LD_LIBRARY_PATH |
17370 | ;; |
17371 | |
17372 | freebsd1*) |
17373 | dynamic_linker=no |
17374 | ;; |
17375 | |
17376 | kfreebsd*-gnu) |
17377 | version_type=linux |
17378 | need_lib_prefix=no |
17379 | need_version=no |
17380 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17381 | soname_spec='${libname}${release}${shared_ext}$major' |
17382 | shlibpath_var=LD_LIBRARY_PATH |
17383 | shlibpath_overrides_runpath=no |
17384 | hardcode_into_libs=yes |
17385 | dynamic_linker='GNU ld.so' |
17386 | ;; |
17387 | |
17388 | freebsd* | dragonfly*) |
17389 | # DragonFly does not have aout. When/if they implement a new |
17390 | # versioning mechanism, adjust this. |
17391 | if test -x /usr/bin/objformat; then |
17392 | objformat=`/usr/bin/objformat` |
17393 | else |
17394 | case $host_os in |
17395 | freebsd[123]*) objformat=aout ;; |
17396 | *) objformat=elf ;; |
17397 | esac |
17398 | fi |
17399 | version_type=freebsd-$objformat |
17400 | case $version_type in |
17401 | freebsd-elf*) |
17402 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
17403 | need_version=no |
17404 | need_lib_prefix=no |
17405 | ;; |
17406 | freebsd-*) |
17407 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
17408 | need_version=yes |
17409 | ;; |
17410 | esac |
17411 | shlibpath_var=LD_LIBRARY_PATH |
17412 | case $host_os in |
17413 | freebsd2*) |
17414 | shlibpath_overrides_runpath=yes |
17415 | ;; |
17416 | freebsd3.[01]* | freebsdelf3.[01]*) |
17417 | shlibpath_overrides_runpath=yes |
17418 | hardcode_into_libs=yes |
17419 | ;; |
17420 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
17421 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
17422 | shlibpath_overrides_runpath=no |
17423 | hardcode_into_libs=yes |
17424 | ;; |
17425 | freebsd*) # from 4.6 on |
17426 | shlibpath_overrides_runpath=yes |
17427 | hardcode_into_libs=yes |
17428 | ;; |
17429 | esac |
17430 | ;; |
17431 | |
17432 | gnu*) |
17433 | version_type=linux |
17434 | need_lib_prefix=no |
17435 | need_version=no |
17436 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
17437 | soname_spec='${libname}${release}${shared_ext}$major' |
17438 | shlibpath_var=LD_LIBRARY_PATH |
17439 | hardcode_into_libs=yes |
17440 | ;; |
17441 | |
17442 | hpux9* | hpux10* | hpux11*) |
17443 | # Give a soname corresponding to the major version so that dld.sl refuses to |
17444 | # link against other versions. |
17445 | version_type=sunos |
17446 | need_lib_prefix=no |
17447 | need_version=no |
17448 | case $host_cpu in |
17449 | ia64*) |
17450 | shrext_cmds='.so' |
17451 | hardcode_into_libs=yes |
17452 | dynamic_linker="$host_os dld.so" |
17453 | shlibpath_var=LD_LIBRARY_PATH |
17454 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
17455 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17456 | soname_spec='${libname}${release}${shared_ext}$major' |
17457 | if test "X$HPUX_IA64_MODE" = X32; then |
17458 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
17459 | else |
17460 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
17461 | fi |
17462 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
17463 | ;; |
17464 | hppa*64*) |
17465 | shrext_cmds='.sl' |
17466 | hardcode_into_libs=yes |
17467 | dynamic_linker="$host_os dld.sl" |
17468 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
17469 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
17470 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17471 | soname_spec='${libname}${release}${shared_ext}$major' |
17472 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
17473 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
17474 | ;; |
17475 | *) |
17476 | shrext_cmds='.sl' |
17477 | dynamic_linker="$host_os dld.sl" |
17478 | shlibpath_var=SHLIB_PATH |
17479 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
17480 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17481 | soname_spec='${libname}${release}${shared_ext}$major' |
17482 | ;; |
17483 | esac |
17484 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
17485 | postinstall_cmds='chmod 555 $lib' |
17486 | ;; |
17487 | |
17488 | interix3*) |
17489 | version_type=linux |
17490 | need_lib_prefix=no |
17491 | need_version=no |
17492 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17493 | soname_spec='${libname}${release}${shared_ext}$major' |
17494 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
17495 | shlibpath_var=LD_LIBRARY_PATH |
17496 | shlibpath_overrides_runpath=no |
17497 | hardcode_into_libs=yes |
17498 | ;; |
17499 | |
17500 | irix5* | irix6* | nonstopux*) |
17501 | case $host_os in |
17502 | nonstopux*) version_type=nonstopux ;; |
17503 | *) |
17504 | if test "$lt_cv_prog_gnu_ld" = yes; then |
17505 | version_type=linux |
17506 | else |
17507 | version_type=irix |
17508 | fi ;; |
17509 | esac |
17510 | need_lib_prefix=no |
17511 | need_version=no |
17512 | soname_spec='${libname}${release}${shared_ext}$major' |
17513 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
17514 | case $host_os in |
17515 | irix5* | nonstopux*) |
17516 | libsuff= shlibsuff= |
17517 | ;; |
17518 | *) |
17519 | case $LD in # libtool.m4 will add one of these switches to LD |
17520 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
17521 | libsuff= shlibsuff= libmagic=32-bit;; |
17522 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
17523 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
17524 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
17525 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
17526 | *) libsuff= shlibsuff= libmagic=never-match;; |
17527 | esac |
17528 | ;; |
17529 | esac |
17530 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
17531 | shlibpath_overrides_runpath=no |
17532 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
17533 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
17534 | hardcode_into_libs=yes |
17535 | ;; |
17536 | |
17537 | # No shared lib support for Linux oldld, aout, or coff. |
17538 | linux*oldld* | linux*aout* | linux*coff*) |
17539 | dynamic_linker=no |
17540 | ;; |
17541 | |
17542 | # This must be Linux ELF. |
17543 | linux*) |
17544 | version_type=linux |
17545 | need_lib_prefix=no |
17546 | need_version=no |
17547 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17548 | soname_spec='${libname}${release}${shared_ext}$major' |
17549 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
17550 | shlibpath_var=LD_LIBRARY_PATH |
17551 | shlibpath_overrides_runpath=no |
17552 | # This implies no fast_install, which is unacceptable. |
17553 | # Some rework will be needed to allow for fast_install |
17554 | # before this can be enabled. |
17555 | hardcode_into_libs=yes |
17556 | |
17557 | # find out which ABI we are using |
17558 | libsuff= |
17559 | case "$host_cpu" in |
17560 | x86_64*|s390x*|powerpc64*) |
17561 | echo '#line 17561 "configure"' > conftest.$ac_ext |
17562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17563 | (eval $ac_compile) 2>&5 |
17564 | ac_status=$? |
17565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17566 | (exit $ac_status); }; then |
17567 | case `/usr/bin/file conftest.$ac_objext` in |
17568 | *64-bit*) |
17569 | libsuff=64 |
17570 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
17571 | ;; |
17572 | esac |
17573 | fi |
17574 | rm -rf conftest* |
17575 | ;; |
17576 | esac |
17577 | |
17578 | # Append ld.so.conf contents to the search path |
17579 | if test -f /etc/ld.so.conf; then |
17580 | 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' ' '` |
17581 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
17582 | fi |
17583 | |
17584 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
17585 | # powerpc, because MkLinux only supported shared libraries with the |
17586 | # GNU dynamic linker. Since this was broken with cross compilers, |
17587 | # most powerpc-linux boxes support dynamic linking these days and |
17588 | # people can always --disable-shared, the test was removed, and we |
17589 | # assume the GNU/Linux dynamic linker is in use. |
17590 | dynamic_linker='GNU/Linux ld.so' |
17591 | ;; |
17592 | |
17593 | knetbsd*-gnu) |
17594 | version_type=linux |
17595 | need_lib_prefix=no |
17596 | need_version=no |
17597 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17598 | soname_spec='${libname}${release}${shared_ext}$major' |
17599 | shlibpath_var=LD_LIBRARY_PATH |
17600 | shlibpath_overrides_runpath=no |
17601 | hardcode_into_libs=yes |
17602 | dynamic_linker='GNU ld.so' |
17603 | ;; |
17604 | |
17605 | netbsd*) |
17606 | version_type=sunos |
17607 | need_lib_prefix=no |
17608 | need_version=no |
17609 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17610 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17611 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
17612 | dynamic_linker='NetBSD (a.out) ld.so' |
17613 | else |
17614 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17615 | soname_spec='${libname}${release}${shared_ext}$major' |
17616 | dynamic_linker='NetBSD ld.elf_so' |
17617 | fi |
17618 | shlibpath_var=LD_LIBRARY_PATH |
17619 | shlibpath_overrides_runpath=yes |
17620 | hardcode_into_libs=yes |
17621 | ;; |
17622 | |
17623 | newsos6) |
17624 | version_type=linux |
17625 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17626 | shlibpath_var=LD_LIBRARY_PATH |
17627 | shlibpath_overrides_runpath=yes |
17628 | ;; |
17629 | |
17630 | nto-qnx*) |
17631 | version_type=linux |
17632 | need_lib_prefix=no |
17633 | need_version=no |
17634 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17635 | soname_spec='${libname}${release}${shared_ext}$major' |
17636 | shlibpath_var=LD_LIBRARY_PATH |
17637 | shlibpath_overrides_runpath=yes |
17638 | ;; |
17639 | |
17640 | openbsd*) |
17641 | version_type=sunos |
17642 | sys_lib_dlsearch_path_spec="/usr/lib" |
17643 | need_lib_prefix=no |
17644 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
17645 | case $host_os in |
17646 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
17647 | *) need_version=no ;; |
17648 | esac |
17649 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17650 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
17651 | shlibpath_var=LD_LIBRARY_PATH |
17652 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
17653 | case $host_os in |
17654 | openbsd2.[89] | openbsd2.[89].*) |
17655 | shlibpath_overrides_runpath=no |
17656 | ;; |
17657 | *) |
17658 | shlibpath_overrides_runpath=yes |
17659 | ;; |
17660 | esac |
17661 | else |
17662 | shlibpath_overrides_runpath=yes |
17663 | fi |
17664 | ;; |
17665 | |
17666 | os2*) |
17667 | libname_spec='$name' |
17668 | shrext_cmds=".dll" |
17669 | need_lib_prefix=no |
17670 | library_names_spec='$libname${shared_ext} $libname.a' |
17671 | dynamic_linker='OS/2 ld.exe' |
17672 | shlibpath_var=LIBPATH |
17673 | ;; |
17674 | |
17675 | osf3* | osf4* | osf5*) |
17676 | version_type=osf |
17677 | need_lib_prefix=no |
17678 | need_version=no |
17679 | soname_spec='${libname}${release}${shared_ext}$major' |
17680 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17681 | shlibpath_var=LD_LIBRARY_PATH |
17682 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
17683 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
17684 | ;; |
17685 | |
17686 | solaris*) |
17687 | version_type=linux |
17688 | need_lib_prefix=no |
17689 | need_version=no |
17690 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17691 | soname_spec='${libname}${release}${shared_ext}$major' |
17692 | shlibpath_var=LD_LIBRARY_PATH |
17693 | shlibpath_overrides_runpath=yes |
17694 | hardcode_into_libs=yes |
17695 | # ldd complains unless libraries are executable |
17696 | postinstall_cmds='chmod +x $lib' |
17697 | ;; |
17698 | |
17699 | sunos4*) |
17700 | version_type=sunos |
17701 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17702 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
17703 | shlibpath_var=LD_LIBRARY_PATH |
17704 | shlibpath_overrides_runpath=yes |
17705 | if test "$with_gnu_ld" = yes; then |
17706 | need_lib_prefix=no |
17707 | fi |
17708 | need_version=yes |
17709 | ;; |
17710 | |
17711 | sysv4 | sysv4.3*) |
17712 | version_type=linux |
17713 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17714 | soname_spec='${libname}${release}${shared_ext}$major' |
17715 | shlibpath_var=LD_LIBRARY_PATH |
17716 | case $host_vendor in |
17717 | sni) |
17718 | shlibpath_overrides_runpath=no |
17719 | need_lib_prefix=no |
17720 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
17721 | runpath_var=LD_RUN_PATH |
17722 | ;; |
17723 | siemens) |
17724 | need_lib_prefix=no |
17725 | ;; |
17726 | motorola) |
17727 | need_lib_prefix=no |
17728 | need_version=no |
17729 | shlibpath_overrides_runpath=no |
17730 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
17731 | ;; |
17732 | esac |
17733 | ;; |
17734 | |
17735 | sysv4*MP*) |
17736 | if test -d /usr/nec ;then |
17737 | version_type=linux |
17738 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
17739 | soname_spec='$libname${shared_ext}.$major' |
17740 | shlibpath_var=LD_LIBRARY_PATH |
17741 | fi |
17742 | ;; |
17743 | |
17744 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
17745 | version_type=freebsd-elf |
17746 | need_lib_prefix=no |
17747 | need_version=no |
17748 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
17749 | soname_spec='${libname}${release}${shared_ext}$major' |
17750 | shlibpath_var=LD_LIBRARY_PATH |
17751 | hardcode_into_libs=yes |
17752 | if test "$with_gnu_ld" = yes; then |
17753 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
17754 | shlibpath_overrides_runpath=no |
17755 | else |
17756 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
17757 | shlibpath_overrides_runpath=yes |
17758 | case $host_os in |
17759 | sco3.2v5*) |
17760 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
17761 | ;; |
17762 | esac |
17763 | fi |
17764 | sys_lib_dlsearch_path_spec='/usr/lib' |
17765 | ;; |
17766 | |
17767 | uts4*) |
17768 | version_type=linux |
17769 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17770 | soname_spec='${libname}${release}${shared_ext}$major' |
17771 | shlibpath_var=LD_LIBRARY_PATH |
17772 | ;; |
17773 | |
17774 | *) |
17775 | dynamic_linker=no |
17776 | ;; |
17777 | esac |
17778 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
17779 | echo "${ECHO_T}$dynamic_linker" >&6 |
17780 | test "$dynamic_linker" = no && can_build_shared=no |
17781 | |
17782 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
17783 | if test "$GCC" = yes; then |
17784 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
17785 | fi |
17786 | |
17787 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
17788 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
17789 | hardcode_action_GCJ= |
17790 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
17791 | test -n "$runpath_var_GCJ" || \ |
17792 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
17793 | |
17794 | # We can hardcode non-existant directories. |
17795 | if test "$hardcode_direct_GCJ" != no && |
17796 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
17797 | # have to relink, otherwise we might link with an installed library |
17798 | # when we should be linking with a yet-to-be-installed one |
17799 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
17800 | test "$hardcode_minus_L_GCJ" != no; then |
17801 | # Linking always hardcodes the temporary library directory. |
17802 | hardcode_action_GCJ=relink |
17803 | else |
17804 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
17805 | hardcode_action_GCJ=immediate |
17806 | fi |
17807 | else |
17808 | # We cannot hardcode anything, or else we can only hardcode existing |
17809 | # directories. |
17810 | hardcode_action_GCJ=unsupported |
17811 | fi |
17812 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
17813 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
17814 | |
17815 | if test "$hardcode_action_GCJ" = relink; then |
17816 | # Fast installation is not supported |
17817 | enable_fast_install=no |
17818 | elif test "$shlibpath_overrides_runpath" = yes || |
17819 | test "$enable_shared" = no; then |
17820 | # Fast installation is not necessary |
17821 | enable_fast_install=needless |
17822 | fi |
17823 | |
17824 | |
17825 | # The else clause should only fire when bootstrapping the |
17826 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
17827 | # with your package, and you will get complaints that there are |
17828 | # no rules to generate ltmain.sh. |
17829 | if test -f "$ltmain"; then |
17830 | # See if we are running on zsh, and set the options which allow our commands through |
17831 | # without removal of \ escapes. |
17832 | if test -n "${ZSH_VERSION+set}" ; then |
17833 | setopt NO_GLOB_SUBST |
17834 | fi |
17835 | # Now quote all the things that may contain metacharacters while being |
17836 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
17837 | # variables and quote the copies for generation of the libtool script. |
17838 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
17839 | SED SHELL STRIP \ |
17840 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
17841 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
17842 | deplibs_check_method reload_flag reload_cmds need_locks \ |
17843 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
17844 | lt_cv_sys_global_symbol_to_c_name_address \ |
17845 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
17846 | old_postinstall_cmds old_postuninstall_cmds \ |
17847 | compiler_GCJ \ |
17848 | CC_GCJ \ |
17849 | LD_GCJ \ |
17850 | lt_prog_compiler_wl_GCJ \ |
17851 | lt_prog_compiler_pic_GCJ \ |
17852 | lt_prog_compiler_static_GCJ \ |
17853 | lt_prog_compiler_no_builtin_flag_GCJ \ |
17854 | export_dynamic_flag_spec_GCJ \ |
17855 | thread_safe_flag_spec_GCJ \ |
17856 | whole_archive_flag_spec_GCJ \ |
17857 | enable_shared_with_static_runtimes_GCJ \ |
17858 | old_archive_cmds_GCJ \ |
17859 | old_archive_from_new_cmds_GCJ \ |
17860 | predep_objects_GCJ \ |
17861 | postdep_objects_GCJ \ |
17862 | predeps_GCJ \ |
17863 | postdeps_GCJ \ |
17864 | compiler_lib_search_path_GCJ \ |
17865 | archive_cmds_GCJ \ |
17866 | archive_expsym_cmds_GCJ \ |
17867 | postinstall_cmds_GCJ \ |
17868 | postuninstall_cmds_GCJ \ |
17869 | old_archive_from_expsyms_cmds_GCJ \ |
17870 | allow_undefined_flag_GCJ \ |
17871 | no_undefined_flag_GCJ \ |
17872 | export_symbols_cmds_GCJ \ |
17873 | hardcode_libdir_flag_spec_GCJ \ |
17874 | hardcode_libdir_flag_spec_ld_GCJ \ |
17875 | hardcode_libdir_separator_GCJ \ |
17876 | hardcode_automatic_GCJ \ |
17877 | module_cmds_GCJ \ |
17878 | module_expsym_cmds_GCJ \ |
17879 | lt_cv_prog_compiler_c_o_GCJ \ |
17880 | exclude_expsyms_GCJ \ |
17881 | include_expsyms_GCJ; do |
17882 | |
17883 | case $var in |
17884 | old_archive_cmds_GCJ | \ |
17885 | old_archive_from_new_cmds_GCJ | \ |
17886 | archive_cmds_GCJ | \ |
17887 | archive_expsym_cmds_GCJ | \ |
17888 | module_cmds_GCJ | \ |
17889 | module_expsym_cmds_GCJ | \ |
17890 | old_archive_from_expsyms_cmds_GCJ | \ |
17891 | export_symbols_cmds_GCJ | \ |
17892 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
17893 | postinstall_cmds | postuninstall_cmds | \ |
17894 | old_postinstall_cmds | old_postuninstall_cmds | \ |
17895 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
17896 | # Double-quote double-evaled strings. |
17897 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
17898 | ;; |
17899 | *) |
17900 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
17901 | ;; |
17902 | esac |
17903 | done |
17904 | |
17905 | case $lt_echo in |
17906 | *'\$0 --fallback-echo"') |
17907 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
17908 | ;; |
17909 | esac |
17910 | |
17911 | cfgfile="$ofile" |
17912 | |
17913 | cat <<__EOF__ >> "$cfgfile" |
17914 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
17915 | |
17916 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
17917 | |
17918 | # Shell to use when invoking shell scripts. |
17919 | SHELL=$lt_SHELL |
17920 | |
17921 | # Whether or not to build shared libraries. |
17922 | build_libtool_libs=$enable_shared |
17923 | |
17924 | # Whether or not to build static libraries. |
17925 | build_old_libs=$enable_static |
17926 | |
17927 | # Whether or not to add -lc for building shared libraries. |
17928 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
17929 | |
17930 | # Whether or not to disallow shared libs when runtime libs are static |
17931 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
17932 | |
17933 | # Whether or not to optimize for fast installation. |
17934 | fast_install=$enable_fast_install |
17935 | |
17936 | # The host system. |
17937 | host_alias=$host_alias |
17938 | host=$host |
17939 | host_os=$host_os |
17940 | |
17941 | # The build system. |
17942 | build_alias=$build_alias |
17943 | build=$build |
17944 | build_os=$build_os |
17945 | |
17946 | # An echo program that does not interpret backslashes. |
17947 | echo=$lt_echo |
17948 | |
17949 | # The archiver. |
17950 | AR=$lt_AR |
17951 | AR_FLAGS=$lt_AR_FLAGS |
17952 | |
17953 | # A C compiler. |
17954 | LTCC=$lt_LTCC |
17955 | |
17956 | # LTCC compiler flags. |
17957 | LTCFLAGS=$lt_LTCFLAGS |
17958 | |
17959 | # A language-specific compiler. |
17960 | CC=$lt_compiler_GCJ |
17961 | |
17962 | # Is the compiler the GNU C compiler? |
17963 | with_gcc=$GCC_GCJ |
17964 | |
17965 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
17966 | gcc_ver=\`gcc -dumpversion\` |
17967 | |
17968 | # An ERE matcher. |
17969 | EGREP=$lt_EGREP |
17970 | |
17971 | # The linker used to build libraries. |
17972 | LD=$lt_LD_GCJ |
17973 | |
17974 | # Whether we need hard or soft links. |
17975 | LN_S=$lt_LN_S |
17976 | |
17977 | # A BSD-compatible nm program. |
17978 | NM=$lt_NM |
17979 | |
17980 | # A symbol stripping program |
17981 | STRIP=$lt_STRIP |
17982 | |
17983 | # Used to examine libraries when file_magic_cmd begins "file" |
17984 | MAGIC_CMD=$MAGIC_CMD |
17985 | |
17986 | # Used on cygwin: DLL creation program. |
17987 | DLLTOOL="$DLLTOOL" |
17988 | |
17989 | # Used on cygwin: object dumper. |
17990 | OBJDUMP="$OBJDUMP" |
17991 | |
17992 | # Used on cygwin: assembler. |
17993 | AS="$AS" |
17994 | |
17995 | # The name of the directory that contains temporary libtool files. |
17996 | objdir=$objdir |
17997 | |
17998 | # How to create reloadable object files. |
17999 | reload_flag=$lt_reload_flag |
18000 | reload_cmds=$lt_reload_cmds |
18001 | |
18002 | # How to pass a linker flag through the compiler. |
18003 | wl=$lt_lt_prog_compiler_wl_GCJ |
18004 | |
18005 | # Object file suffix (normally "o"). |
18006 | objext="$ac_objext" |
18007 | |
18008 | # Old archive suffix (normally "a"). |
18009 | libext="$libext" |
18010 | |
18011 | # Shared library suffix (normally ".so"). |
18012 | shrext_cmds='$shrext_cmds' |
18013 | |
18014 | # Executable file suffix (normally ""). |
18015 | exeext="$exeext" |
18016 | |
18017 | # Additional compiler flags for building library objects. |
18018 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
18019 | pic_mode=$pic_mode |
18020 | |
18021 | # What is the maximum length of a command? |
18022 | max_cmd_len=$lt_cv_sys_max_cmd_len |
18023 | |
18024 | # Does compiler simultaneously support -c and -o options? |
18025 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
18026 | |
18027 | # Must we lock files when doing compilation? |
18028 | need_locks=$lt_need_locks |
18029 | |
18030 | # Do we need the lib prefix for modules? |
18031 | need_lib_prefix=$need_lib_prefix |
18032 | |
18033 | # Do we need a version for libraries? |
18034 | need_version=$need_version |
18035 | |
18036 | # Whether dlopen is supported. |
18037 | dlopen_support=$enable_dlopen |
18038 | |
18039 | # Whether dlopen of programs is supported. |
18040 | dlopen_self=$enable_dlopen_self |
18041 | |
18042 | # Whether dlopen of statically linked programs is supported. |
18043 | dlopen_self_static=$enable_dlopen_self_static |
18044 | |
18045 | # Compiler flag to prevent dynamic linking. |
18046 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
18047 | |
18048 | # Compiler flag to turn off builtin functions. |
18049 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
18050 | |
18051 | # Compiler flag to allow reflexive dlopens. |
18052 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
18053 | |
18054 | # Compiler flag to generate shared objects directly from archives. |
18055 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
18056 | |
18057 | # Compiler flag to generate thread-safe objects. |
18058 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
18059 | |
18060 | # Library versioning type. |
18061 | version_type=$version_type |
18062 | |
18063 | # Format of library name prefix. |
18064 | libname_spec=$lt_libname_spec |
18065 | |
18066 | # List of archive names. First name is the real one, the rest are links. |
18067 | # The last name is the one that the linker finds with -lNAME. |
18068 | library_names_spec=$lt_library_names_spec |
18069 | |
18070 | # The coded name of the library, if different from the real name. |
18071 | soname_spec=$lt_soname_spec |
18072 | |
18073 | # Commands used to build and install an old-style archive. |
18074 | RANLIB=$lt_RANLIB |
18075 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
18076 | old_postinstall_cmds=$lt_old_postinstall_cmds |
18077 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
18078 | |
18079 | # Create an old-style archive from a shared archive. |
18080 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
18081 | |
18082 | # Create a temporary old-style archive to link instead of a shared archive. |
18083 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
18084 | |
18085 | # Commands used to build and install a shared archive. |
18086 | archive_cmds=$lt_archive_cmds_GCJ |
18087 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
18088 | postinstall_cmds=$lt_postinstall_cmds |
18089 | postuninstall_cmds=$lt_postuninstall_cmds |
18090 | |
18091 | # Commands used to build a loadable module (assumed same as above if empty) |
18092 | module_cmds=$lt_module_cmds_GCJ |
18093 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
18094 | |
18095 | # Commands to strip libraries. |
18096 | old_striplib=$lt_old_striplib |
18097 | striplib=$lt_striplib |
18098 | |
18099 | # Dependencies to place before the objects being linked to create a |
18100 | # shared library. |
18101 | predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18102 | |
18103 | # Dependencies to place after the objects being linked to create a |
18104 | # shared library. |
18105 | postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18106 | |
18107 | # Dependencies to place before the objects being linked to create a |
18108 | # shared library. |
18109 | predeps=$lt_predeps_GCJ |
18110 | |
18111 | # Dependencies to place after the objects being linked to create a |
18112 | # shared library. |
18113 | postdeps=$lt_postdeps_GCJ |
18114 | |
18115 | # The library search path used internally by the compiler when linking |
18116 | # a shared library. |
18117 | 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"\` |
18118 | |
18119 | # Method to check whether dependent libraries are shared objects. |
18120 | deplibs_check_method=$lt_deplibs_check_method |
18121 | |
18122 | # Command to use when deplibs_check_method == file_magic. |
18123 | file_magic_cmd=$lt_file_magic_cmd |
18124 | |
18125 | # Flag that allows shared libraries with undefined symbols to be built. |
18126 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
18127 | |
18128 | # Flag that forces no undefined symbols. |
18129 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
18130 | |
18131 | # Commands used to finish a libtool library installation in a directory. |
18132 | finish_cmds=$lt_finish_cmds |
18133 | |
18134 | # Same as above, but a single script fragment to be evaled but not shown. |
18135 | finish_eval=$lt_finish_eval |
18136 | |
18137 | # Take the output of nm and produce a listing of raw symbols and C names. |
18138 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
18139 | |
18140 | # Transform the output of nm in a proper C declaration |
18141 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
18142 | |
18143 | # Transform the output of nm in a C name address pair |
18144 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
18145 | |
18146 | # This is the shared library runtime path variable. |
18147 | runpath_var=$runpath_var |
18148 | |
18149 | # This is the shared library path variable. |
18150 | shlibpath_var=$shlibpath_var |
18151 | |
18152 | # Is shlibpath searched before the hard-coded library search path? |
18153 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
18154 | |
18155 | # How to hardcode a shared library path into an executable. |
18156 | hardcode_action=$hardcode_action_GCJ |
18157 | |
18158 | # Whether we should hardcode library paths into libraries. |
18159 | hardcode_into_libs=$hardcode_into_libs |
18160 | |
18161 | # Flag to hardcode \$libdir into a binary during linking. |
18162 | # This must work even if \$libdir does not exist. |
18163 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
18164 | |
18165 | # If ld is used when linking, flag to hardcode \$libdir into |
18166 | # a binary during linking. This must work even if \$libdir does |
18167 | # not exist. |
18168 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
18169 | |
18170 | # Whether we need a single -rpath flag with a separated argument. |
18171 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
18172 | |
18173 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
18174 | # resulting binary. |
18175 | hardcode_direct=$hardcode_direct_GCJ |
18176 | |
18177 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
18178 | # resulting binary. |
18179 | hardcode_minus_L=$hardcode_minus_L_GCJ |
18180 | |
18181 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
18182 | # the resulting binary. |
18183 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
18184 | |
18185 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
18186 | # and all subsequent libraries and executables linked against it. |
18187 | hardcode_automatic=$hardcode_automatic_GCJ |
18188 | |
18189 | # Variables whose values should be saved in libtool wrapper scripts and |
18190 | # restored at relink time. |
18191 | variables_saved_for_relink="$variables_saved_for_relink" |
18192 | |
18193 | # Whether libtool must link a program against all its dependency libraries. |
18194 | link_all_deplibs=$link_all_deplibs_GCJ |
18195 | |
18196 | # Compile-time system search path for libraries |
18197 | 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"\` |
18198 | |
18199 | # Run-time system search path for libraries |
18200 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
18201 | |
18202 | # Fix the shell variable \$srcfile for the compiler. |
18203 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
18204 | |
18205 | # Set to yes if exported symbols are required. |
18206 | always_export_symbols=$always_export_symbols_GCJ |
18207 | |
18208 | # The commands to list exported symbols. |
18209 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
18210 | |
18211 | # The commands to extract the exported symbol list from a shared archive. |
18212 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
18213 | |
18214 | # Symbols that should not be listed in the preloaded symbols. |
18215 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
18216 | |
18217 | # Symbols that must always be exported. |
18218 | include_expsyms=$lt_include_expsyms_GCJ |
18219 | |
18220 | # ### END LIBTOOL TAG CONFIG: $tagname |
18221 | |
18222 | __EOF__ |
18223 | |
18224 | |
18225 | else |
18226 | # If there is no Makefile yet, we rely on a make rule to execute |
18227 | # `config.status --recheck' to rerun these tests and create the |
18228 | # libtool script then. |
18229 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
18230 | if test -f "$ltmain_in"; then |
18231 | test -f Makefile && make "$ltmain" |
18232 | fi |
18233 | fi |
18234 | |
18235 | |
18236 | ac_ext=c |
18237 | ac_cpp='$CPP $CPPFLAGS' |
18238 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18239 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
18240 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
18241 | |
18242 | CC="$lt_save_CC" |
18243 | |
18244 | else |
18245 | tagname="" |
18246 | fi |
18247 | ;; |
18248 | |
18249 | RC) |
18250 | |
18251 | |
18252 | |
18253 | # Source file extension for RC test sources. |
18254 | ac_ext=rc |
18255 | |
18256 | # Object file extension for compiled RC test sources. |
18257 | objext=o |
18258 | objext_RC=$objext |
18259 | |
18260 | # Code to be used in simple compile tests |
18261 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
18262 | |
18263 | # Code to be used in simple link tests |
18264 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
18265 | |
18266 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
18267 | |
18268 | # If no C compiler was specified, use CC. |
18269 | LTCC=${LTCC-"$CC"} |
18270 | |
18271 | # If no C compiler flags were specified, use CFLAGS. |
18272 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
18273 | |
18274 | # Allow CC to be a program name with arguments. |
18275 | compiler=$CC |
18276 | |
18277 | |
18278 | # save warnings/boilerplate of simple test code |
18279 | ac_outfile=conftest.$ac_objext |
18280 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
18281 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
18282 | _lt_compiler_boilerplate=`cat conftest.err` |
18283 | $rm conftest* |
18284 | |
18285 | ac_outfile=conftest.$ac_objext |
18286 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
18287 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
18288 | _lt_linker_boilerplate=`cat conftest.err` |
18289 | $rm conftest* |
18290 | |
18291 | |
18292 | # Allow CC to be a program name with arguments. |
18293 | lt_save_CC="$CC" |
18294 | CC=${RC-"windres"} |
18295 | compiler=$CC |
18296 | compiler_RC=$CC |
18297 | for cc_temp in $compiler""; do |
18298 | case $cc_temp in |
18299 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
18300 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
18301 | \-*) ;; |
18302 | *) break;; |
18303 | esac |
18304 | done |
18305 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
18306 | |
18307 | lt_cv_prog_compiler_c_o_RC=yes |
18308 | |
18309 | # The else clause should only fire when bootstrapping the |
18310 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18311 | # with your package, and you will get complaints that there are |
18312 | # no rules to generate ltmain.sh. |
18313 | if test -f "$ltmain"; then |
18314 | # See if we are running on zsh, and set the options which allow our commands through |
18315 | # without removal of \ escapes. |
18316 | if test -n "${ZSH_VERSION+set}" ; then |
18317 | setopt NO_GLOB_SUBST |
18318 | fi |
18319 | # Now quote all the things that may contain metacharacters while being |
18320 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
18321 | # variables and quote the copies for generation of the libtool script. |
18322 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
18323 | SED SHELL STRIP \ |
18324 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18325 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18326 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18327 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18328 | lt_cv_sys_global_symbol_to_c_name_address \ |
18329 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18330 | old_postinstall_cmds old_postuninstall_cmds \ |
18331 | compiler_RC \ |
18332 | CC_RC \ |
18333 | LD_RC \ |
18334 | lt_prog_compiler_wl_RC \ |
18335 | lt_prog_compiler_pic_RC \ |
18336 | lt_prog_compiler_static_RC \ |
18337 | lt_prog_compiler_no_builtin_flag_RC \ |
18338 | export_dynamic_flag_spec_RC \ |
18339 | thread_safe_flag_spec_RC \ |
18340 | whole_archive_flag_spec_RC \ |
18341 | enable_shared_with_static_runtimes_RC \ |
18342 | old_archive_cmds_RC \ |
18343 | old_archive_from_new_cmds_RC \ |
18344 | predep_objects_RC \ |
18345 | postdep_objects_RC \ |
18346 | predeps_RC \ |
18347 | postdeps_RC \ |
18348 | compiler_lib_search_path_RC \ |
18349 | archive_cmds_RC \ |
18350 | archive_expsym_cmds_RC \ |
18351 | postinstall_cmds_RC \ |
18352 | postuninstall_cmds_RC \ |
18353 | old_archive_from_expsyms_cmds_RC \ |
18354 | allow_undefined_flag_RC \ |
18355 | no_undefined_flag_RC \ |
18356 | export_symbols_cmds_RC \ |
18357 | hardcode_libdir_flag_spec_RC \ |
18358 | hardcode_libdir_flag_spec_ld_RC \ |
18359 | hardcode_libdir_separator_RC \ |
18360 | hardcode_automatic_RC \ |
18361 | module_cmds_RC \ |
18362 | module_expsym_cmds_RC \ |
18363 | lt_cv_prog_compiler_c_o_RC \ |
18364 | exclude_expsyms_RC \ |
18365 | include_expsyms_RC; do |
18366 | |
18367 | case $var in |
18368 | old_archive_cmds_RC | \ |
18369 | old_archive_from_new_cmds_RC | \ |
18370 | archive_cmds_RC | \ |
18371 | archive_expsym_cmds_RC | \ |
18372 | module_cmds_RC | \ |
18373 | module_expsym_cmds_RC | \ |
18374 | old_archive_from_expsyms_cmds_RC | \ |
18375 | export_symbols_cmds_RC | \ |
18376 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
18377 | postinstall_cmds | postuninstall_cmds | \ |
18378 | old_postinstall_cmds | old_postuninstall_cmds | \ |
18379 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
18380 | # Double-quote double-evaled strings. |
18381 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
18382 | ;; |
18383 | *) |
18384 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
18385 | ;; |
18386 | esac |
18387 | done |
18388 | |
18389 | case $lt_echo in |
18390 | *'\$0 --fallback-echo"') |
18391 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
18392 | ;; |
18393 | esac |
18394 | |
18395 | cfgfile="$ofile" |
18396 | |
18397 | cat <<__EOF__ >> "$cfgfile" |
18398 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
18399 | |
18400 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18401 | |
18402 | # Shell to use when invoking shell scripts. |
18403 | SHELL=$lt_SHELL |
18404 | |
18405 | # Whether or not to build shared libraries. |
18406 | build_libtool_libs=$enable_shared |
18407 | |
18408 | # Whether or not to build static libraries. |
18409 | build_old_libs=$enable_static |
18410 | |
18411 | # Whether or not to add -lc for building shared libraries. |
18412 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
18413 | |
18414 | # Whether or not to disallow shared libs when runtime libs are static |
18415 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
18416 | |
18417 | # Whether or not to optimize for fast installation. |
18418 | fast_install=$enable_fast_install |
18419 | |
18420 | # The host system. |
18421 | host_alias=$host_alias |
18422 | host=$host |
18423 | host_os=$host_os |
18424 | |
18425 | # The build system. |
18426 | build_alias=$build_alias |
18427 | build=$build |
18428 | build_os=$build_os |
18429 | |
18430 | # An echo program that does not interpret backslashes. |
18431 | echo=$lt_echo |
18432 | |
18433 | # The archiver. |
18434 | AR=$lt_AR |
18435 | AR_FLAGS=$lt_AR_FLAGS |
18436 | |
18437 | # A C compiler. |
18438 | LTCC=$lt_LTCC |
18439 | |
18440 | # LTCC compiler flags. |
18441 | LTCFLAGS=$lt_LTCFLAGS |
18442 | |
18443 | # A language-specific compiler. |
18444 | CC=$lt_compiler_RC |
18445 | |
18446 | # Is the compiler the GNU C compiler? |
18447 | with_gcc=$GCC_RC |
18448 | |
18449 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
18450 | gcc_ver=\`gcc -dumpversion\` |
18451 | |
18452 | # An ERE matcher. |
18453 | EGREP=$lt_EGREP |
18454 | |
18455 | # The linker used to build libraries. |
18456 | LD=$lt_LD_RC |
18457 | |
18458 | # Whether we need hard or soft links. |
18459 | LN_S=$lt_LN_S |
18460 | |
18461 | # A BSD-compatible nm program. |
18462 | NM=$lt_NM |
18463 | |
18464 | # A symbol stripping program |
18465 | STRIP=$lt_STRIP |
18466 | |
18467 | # Used to examine libraries when file_magic_cmd begins "file" |
18468 | MAGIC_CMD=$MAGIC_CMD |
18469 | |
18470 | # Used on cygwin: DLL creation program. |
18471 | DLLTOOL="$DLLTOOL" |
18472 | |
18473 | # Used on cygwin: object dumper. |
18474 | OBJDUMP="$OBJDUMP" |
18475 | |
18476 | # Used on cygwin: assembler. |
18477 | AS="$AS" |
18478 | |
18479 | # The name of the directory that contains temporary libtool files. |
18480 | objdir=$objdir |
18481 | |
18482 | # How to create reloadable object files. |
18483 | reload_flag=$lt_reload_flag |
18484 | reload_cmds=$lt_reload_cmds |
18485 | |
18486 | # How to pass a linker flag through the compiler. |
18487 | wl=$lt_lt_prog_compiler_wl_RC |
18488 | |
18489 | # Object file suffix (normally "o"). |
18490 | objext="$ac_objext" |
18491 | |
18492 | # Old archive suffix (normally "a"). |
18493 | libext="$libext" |
18494 | |
18495 | # Shared library suffix (normally ".so"). |
18496 | shrext_cmds='$shrext_cmds' |
18497 | |
18498 | # Executable file suffix (normally ""). |
18499 | exeext="$exeext" |
18500 | |
18501 | # Additional compiler flags for building library objects. |
18502 | pic_flag=$lt_lt_prog_compiler_pic_RC |
18503 | pic_mode=$pic_mode |
18504 | |
18505 | # What is the maximum length of a command? |
18506 | max_cmd_len=$lt_cv_sys_max_cmd_len |
18507 | |
18508 | # Does compiler simultaneously support -c and -o options? |
18509 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
18510 | |
18511 | # Must we lock files when doing compilation? |
18512 | need_locks=$lt_need_locks |
18513 | |
18514 | # Do we need the lib prefix for modules? |
18515 | need_lib_prefix=$need_lib_prefix |
18516 | |
18517 | # Do we need a version for libraries? |
18518 | need_version=$need_version |
18519 | |
18520 | # Whether dlopen is supported. |
18521 | dlopen_support=$enable_dlopen |
18522 | |
18523 | # Whether dlopen of programs is supported. |
18524 | dlopen_self=$enable_dlopen_self |
18525 | |
18526 | # Whether dlopen of statically linked programs is supported. |
18527 | dlopen_self_static=$enable_dlopen_self_static |
18528 | |
18529 | # Compiler flag to prevent dynamic linking. |
18530 | link_static_flag=$lt_lt_prog_compiler_static_RC |
18531 | |
18532 | # Compiler flag to turn off builtin functions. |
18533 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
18534 | |
18535 | # Compiler flag to allow reflexive dlopens. |
18536 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
18537 | |
18538 | # Compiler flag to generate shared objects directly from archives. |
18539 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
18540 | |
18541 | # Compiler flag to generate thread-safe objects. |
18542 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
18543 | |
18544 | # Library versioning type. |
18545 | version_type=$version_type |
18546 | |
18547 | # Format of library name prefix. |
18548 | libname_spec=$lt_libname_spec |
18549 | |
18550 | # List of archive names. First name is the real one, the rest are links. |
18551 | # The last name is the one that the linker finds with -lNAME. |
18552 | library_names_spec=$lt_library_names_spec |
18553 | |
18554 | # The coded name of the library, if different from the real name. |
18555 | soname_spec=$lt_soname_spec |
18556 | |
18557 | # Commands used to build and install an old-style archive. |
18558 | RANLIB=$lt_RANLIB |
18559 | old_archive_cmds=$lt_old_archive_cmds_RC |
18560 | old_postinstall_cmds=$lt_old_postinstall_cmds |
18561 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
18562 | |
18563 | # Create an old-style archive from a shared archive. |
18564 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
18565 | |
18566 | # Create a temporary old-style archive to link instead of a shared archive. |
18567 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
18568 | |
18569 | # Commands used to build and install a shared archive. |
18570 | archive_cmds=$lt_archive_cmds_RC |
18571 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
18572 | postinstall_cmds=$lt_postinstall_cmds |
18573 | postuninstall_cmds=$lt_postuninstall_cmds |
18574 | |
18575 | # Commands used to build a loadable module (assumed same as above if empty) |
18576 | module_cmds=$lt_module_cmds_RC |
18577 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
18578 | |
18579 | # Commands to strip libraries. |
18580 | old_striplib=$lt_old_striplib |
18581 | striplib=$lt_striplib |
18582 | |
18583 | # Dependencies to place before the objects being linked to create a |
18584 | # shared library. |
18585 | predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18586 | |
18587 | # Dependencies to place after the objects being linked to create a |
18588 | # shared library. |
18589 | postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18590 | |
18591 | # Dependencies to place before the objects being linked to create a |
18592 | # shared library. |
18593 | predeps=$lt_predeps_RC |
18594 | |
18595 | # Dependencies to place after the objects being linked to create a |
18596 | # shared library. |
18597 | postdeps=$lt_postdeps_RC |
18598 | |
18599 | # The library search path used internally by the compiler when linking |
18600 | # a shared library. |
18601 | 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"\` |
18602 | |
18603 | # Method to check whether dependent libraries are shared objects. |
18604 | deplibs_check_method=$lt_deplibs_check_method |
18605 | |
18606 | # Command to use when deplibs_check_method == file_magic. |
18607 | file_magic_cmd=$lt_file_magic_cmd |
18608 | |
18609 | # Flag that allows shared libraries with undefined symbols to be built. |
18610 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
18611 | |
18612 | # Flag that forces no undefined symbols. |
18613 | no_undefined_flag=$lt_no_undefined_flag_RC |
18614 | |
18615 | # Commands used to finish a libtool library installation in a directory. |
18616 | finish_cmds=$lt_finish_cmds |
18617 | |
18618 | # Same as above, but a single script fragment to be evaled but not shown. |
18619 | finish_eval=$lt_finish_eval |
18620 | |
18621 | # Take the output of nm and produce a listing of raw symbols and C names. |
18622 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
18623 | |
18624 | # Transform the output of nm in a proper C declaration |
18625 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
18626 | |
18627 | # Transform the output of nm in a C name address pair |
18628 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
18629 | |
18630 | # This is the shared library runtime path variable. |
18631 | runpath_var=$runpath_var |
18632 | |
18633 | # This is the shared library path variable. |
18634 | shlibpath_var=$shlibpath_var |
18635 | |
18636 | # Is shlibpath searched before the hard-coded library search path? |
18637 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
18638 | |
18639 | # How to hardcode a shared library path into an executable. |
18640 | hardcode_action=$hardcode_action_RC |
18641 | |
18642 | # Whether we should hardcode library paths into libraries. |
18643 | hardcode_into_libs=$hardcode_into_libs |
18644 | |
18645 | # Flag to hardcode \$libdir into a binary during linking. |
18646 | # This must work even if \$libdir does not exist. |
18647 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
18648 | |
18649 | # If ld is used when linking, flag to hardcode \$libdir into |
18650 | # a binary during linking. This must work even if \$libdir does |
18651 | # not exist. |
18652 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
18653 | |
18654 | # Whether we need a single -rpath flag with a separated argument. |
18655 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
18656 | |
18657 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
18658 | # resulting binary. |
18659 | hardcode_direct=$hardcode_direct_RC |
18660 | |
18661 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
18662 | # resulting binary. |
18663 | hardcode_minus_L=$hardcode_minus_L_RC |
18664 | |
18665 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
18666 | # the resulting binary. |
18667 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
18668 | |
18669 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
18670 | # and all subsequent libraries and executables linked against it. |
18671 | hardcode_automatic=$hardcode_automatic_RC |
18672 | |
18673 | # Variables whose values should be saved in libtool wrapper scripts and |
18674 | # restored at relink time. |
18675 | variables_saved_for_relink="$variables_saved_for_relink" |
18676 | |
18677 | # Whether libtool must link a program against all its dependency libraries. |
18678 | link_all_deplibs=$link_all_deplibs_RC |
18679 | |
18680 | # Compile-time system search path for libraries |
18681 | 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"\` |
18682 | |
18683 | # Run-time system search path for libraries |
18684 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
18685 | |
18686 | # Fix the shell variable \$srcfile for the compiler. |
18687 | fix_srcfile_path="$fix_srcfile_path_RC" |
18688 | |
18689 | # Set to yes if exported symbols are required. |
18690 | always_export_symbols=$always_export_symbols_RC |
18691 | |
18692 | # The commands to list exported symbols. |
18693 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
18694 | |
18695 | # The commands to extract the exported symbol list from a shared archive. |
18696 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
18697 | |
18698 | # Symbols that should not be listed in the preloaded symbols. |
18699 | exclude_expsyms=$lt_exclude_expsyms_RC |
18700 | |
18701 | # Symbols that must always be exported. |
18702 | include_expsyms=$lt_include_expsyms_RC |
18703 | |
18704 | # ### END LIBTOOL TAG CONFIG: $tagname |
18705 | |
18706 | __EOF__ |
18707 | |
18708 | |
18709 | else |
18710 | # If there is no Makefile yet, we rely on a make rule to execute |
18711 | # `config.status --recheck' to rerun these tests and create the |
18712 | # libtool script then. |
18713 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
18714 | if test -f "$ltmain_in"; then |
18715 | test -f Makefile && make "$ltmain" |
18716 | fi |
18717 | fi |
18718 | |
18719 | |
18720 | ac_ext=c |
18721 | ac_cpp='$CPP $CPPFLAGS' |
18722 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18723 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
18724 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
18725 | |
18726 | CC="$lt_save_CC" |
18727 | |
18728 | ;; |
18729 | |
18730 | *) |
18731 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
18732 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
18733 | { (exit 1); exit 1; }; } |
18734 | ;; |
18735 | esac |
18736 | |
18737 | # Append the new tag name to the list of available tags. |
18738 | if test -n "$tagname" ; then |
18739 | available_tags="$available_tags $tagname" |
18740 | fi |
18741 | fi |
18742 | done |
18743 | IFS="$lt_save_ifs" |
18744 | |
18745 | # Now substitute the updated list of available tags. |
18746 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
18747 | mv "${ofile}T" "$ofile" |
18748 | chmod +x "$ofile" |
18749 | else |
18750 | rm -f "${ofile}T" |
18751 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
18752 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
18753 | { (exit 1); exit 1; }; } |
18754 | fi |
18755 | fi |
18756 | |
18757 | |
18758 | |
18759 | # This can be used to rebuild libtool when needed |
18760 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
18761 | |
18762 | # Always use our own libtool. |
18763 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
18764 | |
18765 | # Prevent multiple expansion |
18766 | |
18767 | |
18768 | |
18769 | |
18770 | |
18771 | |
18772 | |
18773 | |
18774 | |
18775 | |
18776 | |
18777 | |
18778 | |
18779 | |
18780 | |
18781 | |
18782 | |
18783 | |
18784 | |
18785 | |
18786 | |
18787 | if test x$GCC = xyes |
18788 | then |
18789 | CFLAGS="-Wall $CFLAGS" |
18790 | fi |
18791 | if test x$GXX = xyes |
18792 | then |
18793 | CXXFLAGS="-Wall $CXXFLAGS" |
18794 | fi |
18795 | |
18796 | CFLAGS="-I$srcdir/.. -I.. $CFLAGS" |
18797 | CXXFLAGS="-I$srcdir/.. -I.. $CXXFLAGS" |
18798 | |
18799 | |
18800 | |
18801 | # Check whether --with-db or --without-db was given. |
18802 | if test "${with_db+set}" = set; then |
18803 | withval="$with_db" |
18804 | db="$withval" |
18805 | else |
18806 | db="" |
18807 | fi; |
18808 | |
18809 | . ../dbobj.config |
18810 | |
18811 | makedatprog_target=makedatprog |
18812 | case "$db" in |
18813 | gdbm) |
18814 | dblibrary=../gdbmobj/libgdbmobj.la |
18815 | LIBDB="" |
18816 | ;; |
18817 | db) |
18818 | dblibrary=../bdbobj/libbdbobj.la |
18819 | LIBGDBM="" |
18820 | ;; |
18821 | *) |
18822 | makedatprog_target="" |
18823 | esac |
18824 | |
18825 | |
18826 | |
18827 | |
18828 | |
18829 | |
18830 | |
18831 | |
18832 | if test "$USE_GDBM" = 1; then |
18833 | USE_GDBM_TRUE= |
18834 | USE_GDBM_FALSE='#' |
18835 | else |
18836 | USE_GDBM_TRUE='#' |
18837 | USE_GDBM_FALSE= |
18838 | fi |
18839 | |
18840 | |
18841 | |
18842 | if test "$USE_DB" = 1; then |
18843 | USE_DB_TRUE= |
18844 | USE_DB_FALSE='#' |
18845 | else |
18846 | USE_DB_TRUE='#' |
18847 | USE_DB_FALSE= |
18848 | fi |
18849 | |
18850 | |
18851 | |
18852 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
18853 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
18854 | if test "${ac_cv_header_stdc+set}" = set; then |
18855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18856 | else |
18857 | cat >conftest.$ac_ext <<_ACEOF |
18858 | /* confdefs.h. */ |
18859 | _ACEOF |
18860 | cat confdefs.h >>conftest.$ac_ext |
18861 | cat >>conftest.$ac_ext <<_ACEOF |
18862 | /* end confdefs.h. */ |
18863 | #include <stdlib.h> |
18864 | #include <stdarg.h> |
18865 | #include <string.h> |
18866 | #include <float.h> |
18867 | |
18868 | int |
18869 | main () |
18870 | { |
18871 | |
18872 | ; |
18873 | return 0; |
18874 | } |
18875 | _ACEOF |
18876 | rm -f conftest.$ac_objext |
18877 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18878 | (eval $ac_compile) 2>conftest.er1 |
18879 | ac_status=$? |
18880 | grep -v '^ *+' conftest.er1 >conftest.err |
18881 | rm -f conftest.er1 |
18882 | cat conftest.err >&5 |
18883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18884 | (exit $ac_status); } && |
18885 | { ac_try='test -z "$ac_c_werror_flag" |
18886 | || test ! -s conftest.err' |
18887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18888 | (eval $ac_try) 2>&5 |
18889 | ac_status=$? |
18890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18891 | (exit $ac_status); }; } && |
18892 | { ac_try='test -s conftest.$ac_objext' |
18893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18894 | (eval $ac_try) 2>&5 |
18895 | ac_status=$? |
18896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18897 | (exit $ac_status); }; }; then |
18898 | ac_cv_header_stdc=yes |
18899 | else |
18900 | echo "$as_me: failed program was:" >&5 |
18901 | sed 's/^/| /' conftest.$ac_ext >&5 |
18902 | |
18903 | ac_cv_header_stdc=no |
18904 | fi |
18905 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
18906 | |
18907 | if test $ac_cv_header_stdc = yes; then |
18908 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
18909 | cat >conftest.$ac_ext <<_ACEOF |
18910 | /* confdefs.h. */ |
18911 | _ACEOF |
18912 | cat confdefs.h >>conftest.$ac_ext |
18913 | cat >>conftest.$ac_ext <<_ACEOF |
18914 | /* end confdefs.h. */ |
18915 | #include <string.h> |
18916 | |
18917 | _ACEOF |
18918 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
18919 | $EGREP "memchr" >/dev/null 2>&1; then |
18920 | : |
18921 | else |
18922 | ac_cv_header_stdc=no |
18923 | fi |
18924 | rm -f conftest* |
18925 | |
18926 | fi |
18927 | |
18928 | if test $ac_cv_header_stdc = yes; then |
18929 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
18930 | cat >conftest.$ac_ext <<_ACEOF |
18931 | /* confdefs.h. */ |
18932 | _ACEOF |
18933 | cat confdefs.h >>conftest.$ac_ext |
18934 | cat >>conftest.$ac_ext <<_ACEOF |
18935 | /* end confdefs.h. */ |
18936 | #include <stdlib.h> |
18937 | |
18938 | _ACEOF |
18939 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
18940 | $EGREP "free" >/dev/null 2>&1; then |
18941 | : |
18942 | else |
18943 | ac_cv_header_stdc=no |
18944 | fi |
18945 | rm -f conftest* |
18946 | |
18947 | fi |
18948 | |
18949 | if test $ac_cv_header_stdc = yes; then |
18950 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
18951 | if test "$cross_compiling" = yes; then |
18952 | : |
18953 | else |
18954 | cat >conftest.$ac_ext <<_ACEOF |
18955 | /* confdefs.h. */ |
18956 | _ACEOF |
18957 | cat confdefs.h >>conftest.$ac_ext |
18958 | cat >>conftest.$ac_ext <<_ACEOF |
18959 | /* end confdefs.h. */ |
18960 | #include <ctype.h> |
18961 | #if ((' ' & 0x0FF) == 0x020) |
18962 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
18963 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
18964 | #else |
18965 | # define ISLOWER(c) \ |
18966 | (('a' <= (c) && (c) <= 'i') \ |
18967 | || ('j' <= (c) && (c) <= 'r') \ |
18968 | || ('s' <= (c) && (c) <= 'z')) |
18969 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
18970 | #endif |
18971 | |
18972 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
18973 | int |
18974 | main () |
18975 | { |
18976 | int i; |
18977 | for (i = 0; i < 256; i++) |
18978 | if (XOR (islower (i), ISLOWER (i)) |
18979 | || toupper (i) != TOUPPER (i)) |
18980 | exit(2); |
18981 | exit (0); |
18982 | } |
18983 | _ACEOF |
18984 | rm -f conftest$ac_exeext |
18985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18986 | (eval $ac_link) 2>&5 |
18987 | ac_status=$? |
18988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18989 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
18990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18991 | (eval $ac_try) 2>&5 |
18992 | ac_status=$? |
18993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18994 | (exit $ac_status); }; }; then |
18995 | : |
18996 | else |
18997 | echo "$as_me: program exited with status $ac_status" >&5 |
18998 | echo "$as_me: failed program was:" >&5 |
18999 | sed 's/^/| /' conftest.$ac_ext >&5 |
19000 | |
19001 | ( exit $ac_status ) |
19002 | ac_cv_header_stdc=no |
19003 | fi |
19004 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
19005 | fi |
19006 | fi |
19007 | fi |
19008 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
19009 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
19010 | if test $ac_cv_header_stdc = yes; then |
19011 | |
19012 | cat >>confdefs.h <<\_ACEOF |
19013 | #define STDC_HEADERS 1 |
19014 | _ACEOF |
19015 | |
19016 | fi |
19017 | |
19018 | |
19019 | for ac_header in unistd.h |
19020 | do |
19021 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
19022 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
19023 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
19024 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
19025 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
19026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19027 | fi |
19028 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
19029 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
19030 | else |
19031 | # Is the header compilable? |
19032 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
19033 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
19034 | cat >conftest.$ac_ext <<_ACEOF |
19035 | /* confdefs.h. */ |
19036 | _ACEOF |
19037 | cat confdefs.h >>conftest.$ac_ext |
19038 | cat >>conftest.$ac_ext <<_ACEOF |
19039 | /* end confdefs.h. */ |
19040 | $ac_includes_default |
19041 | #include <$ac_header> |
19042 | _ACEOF |
19043 | rm -f conftest.$ac_objext |
19044 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19045 | (eval $ac_compile) 2>conftest.er1 |
19046 | ac_status=$? |
19047 | grep -v '^ *+' conftest.er1 >conftest.err |
19048 | rm -f conftest.er1 |
19049 | cat conftest.err >&5 |
19050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19051 | (exit $ac_status); } && |
19052 | { ac_try='test -z "$ac_c_werror_flag" |
19053 | || test ! -s conftest.err' |
19054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19055 | (eval $ac_try) 2>&5 |
19056 | ac_status=$? |
19057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19058 | (exit $ac_status); }; } && |
19059 | { ac_try='test -s conftest.$ac_objext' |
19060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19061 | (eval $ac_try) 2>&5 |
19062 | ac_status=$? |
19063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19064 | (exit $ac_status); }; }; then |
19065 | ac_header_compiler=yes |
19066 | else |
19067 | echo "$as_me: failed program was:" >&5 |
19068 | sed 's/^/| /' conftest.$ac_ext >&5 |
19069 | |
19070 | ac_header_compiler=no |
19071 | fi |
19072 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19073 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19074 | echo "${ECHO_T}$ac_header_compiler" >&6 |
19075 | |
19076 | # Is the header present? |
19077 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
19078 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
19079 | cat >conftest.$ac_ext <<_ACEOF |
19080 | /* confdefs.h. */ |
19081 | _ACEOF |
19082 | cat confdefs.h >>conftest.$ac_ext |
19083 | cat >>conftest.$ac_ext <<_ACEOF |
19084 | /* end confdefs.h. */ |
19085 | #include <$ac_header> |
19086 | _ACEOF |
19087 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
19088 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
19089 | ac_status=$? |
19090 | grep -v '^ *+' conftest.er1 >conftest.err |
19091 | rm -f conftest.er1 |
19092 | cat conftest.err >&5 |
19093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19094 | (exit $ac_status); } >/dev/null; then |
19095 | if test -s conftest.err; then |
19096 | ac_cpp_err=$ac_c_preproc_warn_flag |
19097 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
19098 | else |
19099 | ac_cpp_err= |
19100 | fi |
19101 | else |
19102 | ac_cpp_err=yes |
19103 | fi |
19104 | if test -z "$ac_cpp_err"; then |
19105 | ac_header_preproc=yes |
19106 | else |
19107 | echo "$as_me: failed program was:" >&5 |
19108 | sed 's/^/| /' conftest.$ac_ext >&5 |
19109 | |
19110 | ac_header_preproc=no |
19111 | fi |
19112 | rm -f conftest.err conftest.$ac_ext |
19113 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
19114 | echo "${ECHO_T}$ac_header_preproc" >&6 |
19115 | |
19116 | # So? What about this header? |
19117 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19118 | yes:no: ) |
19119 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
19120 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
19121 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
19122 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
19123 | ac_header_preproc=yes |
19124 | ;; |
19125 | no:yes:* ) |
19126 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
19127 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
19128 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
19129 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
19130 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
19131 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
19132 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
19133 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
19134 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19135 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19136 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
19137 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
19138 | ( |
19139 | cat <<\_ASBOX |
19140 | ## -------------------------------------------------- ## |
19141 | ## Report this to courier-users@lists.sourceforge.net ## |
19142 | ## -------------------------------------------------- ## |
19143 | _ASBOX |
19144 | ) | |
19145 | sed "s/^/$as_me: WARNING: /" >&2 |
19146 | ;; |
19147 | esac |
19148 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
19149 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
19150 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
19151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19152 | else |
19153 | eval "$as_ac_Header=\$ac_header_preproc" |
19154 | fi |
19155 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
19156 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
19157 | |
19158 | fi |
19159 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
19160 | cat >>confdefs.h <<_ACEOF |
19161 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
19162 | _ACEOF |
19163 | |
19164 | fi |
19165 | |
19166 | done |
19167 | |
19168 | |
19169 | |
19170 | |
19171 | |
19172 | # Check whether --with-makedatprog or --without-makedatprog was given. |
19173 | if test "${with_makedatprog+set}" = set; then |
19174 | withval="$with_makedatprog" |
19175 | makedatprog="$withval" |
19176 | else |
19177 | makedatprog="$bindir/makedatprog" |
19178 | fi; |
19179 | |
19180 | makedatprogpath="$makedatprog" |
19181 | |
19182 | |
19183 | ac_config_files="$ac_config_files Makefile makedat" |
19184 | cat >confcache <<\_ACEOF |
19185 | # This file is a shell script that caches the results of configure |
19186 | # tests run on this system so they can be shared between configure |
19187 | # scripts and configure runs, see configure's option --config-cache. |
19188 | # It is not useful on other systems. If it contains results you don't |
19189 | # want to keep, you may remove or edit it. |
19190 | # |
19191 | # config.status only pays attention to the cache file if you give it |
19192 | # the --recheck option to rerun configure. |
19193 | # |
19194 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
19195 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
19196 | # following values. |
19197 | |
19198 | _ACEOF |
19199 | |
19200 | # The following way of writing the cache mishandles newlines in values, |
19201 | # but we know of no workaround that is simple, portable, and efficient. |
19202 | # So, don't put newlines in cache variables' values. |
19203 | # Ultrix sh set writes to stderr and can't be redirected directly, |
19204 | # and sets the high bit in the cache file unless we assign to the vars. |
19205 | { |
19206 | (set) 2>&1 | |
19207 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
19208 | *ac_space=\ *) |
19209 | # `set' does not quote correctly, so add quotes (double-quote |
19210 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
19211 | sed -n \ |
19212 | "s/'/'\\\\''/g; |
19213 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
19214 | ;; |
19215 | *) |
19216 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
19217 | sed -n \ |
19218 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
19219 | ;; |
19220 | esac; |
19221 | } | |
19222 | sed ' |
19223 | t clear |
19224 | : clear |
19225 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
19226 | t end |
19227 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
19228 | : end' >>confcache |
19229 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
19230 | if test -w $cache_file; then |
19231 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
19232 | cat confcache >$cache_file |
19233 | else |
19234 | echo "not updating unwritable cache $cache_file" |
19235 | fi |
19236 | fi |
19237 | rm -f confcache |
19238 | |
19239 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
19240 | # Let make expand exec_prefix. |
19241 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
19242 | |
19243 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
19244 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
19245 | # trailing colons and then remove the whole line if VPATH becomes empty |
19246 | # (actually we leave an empty line to preserve line numbers). |
19247 | if test "x$srcdir" = x.; then |
19248 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
19249 | s/:*\$(srcdir):*/:/; |
19250 | s/:*\${srcdir}:*/:/; |
19251 | s/:*@srcdir@:*/:/; |
19252 | s/^\([^=]*=[ ]*\):*/\1/; |
19253 | s/:*$//; |
19254 | s/^[^=]*=[ ]*$//; |
19255 | }' |
19256 | fi |
19257 | |
19258 | DEFS=-DHAVE_CONFIG_H |
19259 | |
19260 | ac_libobjs= |
19261 | ac_ltlibobjs= |
19262 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
19263 | # 1. Remove the extension, and $U if already installed. |
19264 | ac_i=`echo "$ac_i" | |
19265 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
19266 | # 2. Add them. |
19267 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
19268 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
19269 | done |
19270 | LIBOBJS=$ac_libobjs |
19271 | |
19272 | LTLIBOBJS=$ac_ltlibobjs |
19273 | |
19274 | |
19275 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
19276 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
19277 | Usually this means the macro was only invoked conditionally." >&5 |
19278 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
19279 | Usually this means the macro was only invoked conditionally." >&2;} |
19280 | { (exit 1); exit 1; }; } |
19281 | fi |
19282 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
19283 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
19284 | Usually this means the macro was only invoked conditionally." >&5 |
19285 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
19286 | Usually this means the macro was only invoked conditionally." >&2;} |
19287 | { (exit 1); exit 1; }; } |
19288 | fi |
19289 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
19290 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
19291 | Usually this means the macro was only invoked conditionally." >&5 |
19292 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
19293 | Usually this means the macro was only invoked conditionally." >&2;} |
19294 | { (exit 1); exit 1; }; } |
19295 | fi |
19296 | if test -z "${USE_GDBM_TRUE}" && test -z "${USE_GDBM_FALSE}"; then |
19297 | { { echo "$as_me:$LINENO: error: conditional \"USE_GDBM\" was never defined. |
19298 | Usually this means the macro was only invoked conditionally." >&5 |
19299 | echo "$as_me: error: conditional \"USE_GDBM\" was never defined. |
19300 | Usually this means the macro was only invoked conditionally." >&2;} |
19301 | { (exit 1); exit 1; }; } |
19302 | fi |
19303 | if test -z "${USE_DB_TRUE}" && test -z "${USE_DB_FALSE}"; then |
19304 | { { echo "$as_me:$LINENO: error: conditional \"USE_DB\" was never defined. |
19305 | Usually this means the macro was only invoked conditionally." >&5 |
19306 | echo "$as_me: error: conditional \"USE_DB\" was never defined. |
19307 | Usually this means the macro was only invoked conditionally." >&2;} |
19308 | { (exit 1); exit 1; }; } |
19309 | fi |
19310 | |
19311 | : ${CONFIG_STATUS=./config.status} |
19312 | ac_clean_files_save=$ac_clean_files |
19313 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
19314 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
19315 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
19316 | cat >$CONFIG_STATUS <<_ACEOF |
19317 | #! $SHELL |
19318 | # Generated by $as_me. |
19319 | # Run this file to recreate the current configuration. |
19320 | # Compiler output produced by configure, useful for debugging |
19321 | # configure, is in config.log if it exists. |
19322 | |
19323 | debug=false |
19324 | ac_cs_recheck=false |
19325 | ac_cs_silent=false |
19326 | SHELL=\${CONFIG_SHELL-$SHELL} |
19327 | _ACEOF |
19328 | |
19329 | cat >>$CONFIG_STATUS <<\_ACEOF |
19330 | ## --------------------- ## |
19331 | ## M4sh Initialization. ## |
19332 | ## --------------------- ## |
19333 | |
19334 | # Be Bourne compatible |
19335 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
19336 | emulate sh |
19337 | NULLCMD=: |
19338 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
19339 | # is contrary to our usage. Disable this feature. |
19340 | alias -g '${1+"$@"}'='"$@"' |
19341 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
19342 | set -o posix |
19343 | fi |
19344 | DUALCASE=1; export DUALCASE # for MKS sh |
19345 | |
19346 | # Support unset when possible. |
19347 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
19348 | as_unset=unset |
19349 | else |
19350 | as_unset=false |
19351 | fi |
19352 | |
19353 | |
19354 | # Work around bugs in pre-3.0 UWIN ksh. |
19355 | $as_unset ENV MAIL MAILPATH |
19356 | PS1='$ ' |
19357 | PS2='> ' |
19358 | PS4='+ ' |
19359 | |
19360 | # NLS nuisances. |
19361 | for as_var in \ |
19362 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
19363 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
19364 | LC_TELEPHONE LC_TIME |
19365 | do |
19366 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
19367 | eval $as_var=C; export $as_var |
19368 | else |
19369 | $as_unset $as_var |
19370 | fi |
19371 | done |
19372 | |
19373 | # Required to use basename. |
19374 | if expr a : '\(a\)' >/dev/null 2>&1; then |
19375 | as_expr=expr |
19376 | else |
19377 | as_expr=false |
19378 | fi |
19379 | |
19380 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
19381 | as_basename=basename |
19382 | else |
19383 | as_basename=false |
19384 | fi |
19385 | |
19386 | |
19387 | # Name of the executable. |
19388 | as_me=`$as_basename "$0" || |
19389 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
19390 | X"$0" : 'X\(//\)$' \| \ |
19391 | X"$0" : 'X\(/\)$' \| \ |
19392 | . : '\(.\)' 2>/dev/null || |
19393 | echo X/"$0" | |
19394 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
19395 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
19396 | /^X\/\(\/\).*/{ s//\1/; q; } |
19397 | s/.*/./; q'` |
19398 | |
19399 | |
19400 | # PATH needs CR, and LINENO needs CR and PATH. |
19401 | # Avoid depending upon Character Ranges. |
19402 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
19403 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
19404 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
19405 | as_cr_digits='0123456789' |
19406 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
19407 | |
19408 | # The user is always right. |
19409 | if test "${PATH_SEPARATOR+set}" != set; then |
19410 | echo "#! /bin/sh" >conf$$.sh |
19411 | echo "exit 0" >>conf$$.sh |
19412 | chmod +x conf$$.sh |
19413 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
19414 | PATH_SEPARATOR=';' |
19415 | else |
19416 | PATH_SEPARATOR=: |
19417 | fi |
19418 | rm -f conf$$.sh |
19419 | fi |
19420 | |
19421 | |
19422 | as_lineno_1=$LINENO |
19423 | as_lineno_2=$LINENO |
19424 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
19425 | test "x$as_lineno_1" != "x$as_lineno_2" && |
19426 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
19427 | # Find who we are. Look in the path if we contain no path at all |
19428 | # relative or not. |
19429 | case $0 in |
19430 | *[\\/]* ) as_myself=$0 ;; |
19431 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19432 | for as_dir in $PATH |
19433 | do |
19434 | IFS=$as_save_IFS |
19435 | test -z "$as_dir" && as_dir=. |
19436 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
19437 | done |
19438 | |
19439 | ;; |
19440 | esac |
19441 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
19442 | # in which case we are not to be found in the path. |
19443 | if test "x$as_myself" = x; then |
19444 | as_myself=$0 |
19445 | fi |
19446 | if test ! -f "$as_myself"; then |
19447 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
19448 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
19449 | { (exit 1); exit 1; }; } |
19450 | fi |
19451 | case $CONFIG_SHELL in |
19452 | '') |
19453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19454 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
19455 | do |
19456 | IFS=$as_save_IFS |
19457 | test -z "$as_dir" && as_dir=. |
19458 | for as_base in sh bash ksh sh5; do |
19459 | case $as_dir in |
19460 | /*) |
19461 | if ("$as_dir/$as_base" -c ' |
19462 | as_lineno_1=$LINENO |
19463 | as_lineno_2=$LINENO |
19464 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
19465 | test "x$as_lineno_1" != "x$as_lineno_2" && |
19466 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
19467 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
19468 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
19469 | CONFIG_SHELL=$as_dir/$as_base |
19470 | export CONFIG_SHELL |
19471 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
19472 | fi;; |
19473 | esac |
19474 | done |
19475 | done |
19476 | ;; |
19477 | esac |
19478 | |
19479 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
19480 | # uniformly replaced by the line number. The first 'sed' inserts a |
19481 | # line-number line before each line; the second 'sed' does the real |
19482 | # work. The second script uses 'N' to pair each line-number line |
19483 | # with the numbered line, and appends trailing '-' during |
19484 | # substitution so that $LINENO is not a special case at line end. |
19485 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
19486 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
19487 | sed '=' <$as_myself | |
19488 | sed ' |
19489 | N |
19490 | s,$,-, |
19491 | : loop |
19492 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
19493 | t loop |
19494 | s,-$,, |
19495 | s,^['$as_cr_digits']*\n,, |
19496 | ' >$as_me.lineno && |
19497 | chmod +x $as_me.lineno || |
19498 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
19499 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
19500 | { (exit 1); exit 1; }; } |
19501 | |
19502 | # Don't try to exec as it changes $[0], causing all sort of problems |
19503 | # (the dirname of $[0] is not the place where we might find the |
19504 | # original and so on. Autoconf is especially sensible to this). |
19505 | . ./$as_me.lineno |
19506 | # Exit status is that of the last command. |
19507 | exit |
19508 | } |
19509 | |
19510 | |
19511 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
19512 | *c*,-n*) ECHO_N= ECHO_C=' |
19513 | ' ECHO_T=' ' ;; |
19514 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
19515 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
19516 | esac |
19517 | |
19518 | if expr a : '\(a\)' >/dev/null 2>&1; then |
19519 | as_expr=expr |
19520 | else |
19521 | as_expr=false |
19522 | fi |
19523 | |
19524 | rm -f conf$$ conf$$.exe conf$$.file |
19525 | echo >conf$$.file |
19526 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
19527 | # We could just check for DJGPP; but this test a) works b) is more generic |
19528 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
19529 | if test -f conf$$.exe; then |
19530 | # Don't use ln at all; we don't have any links |
19531 | as_ln_s='cp -p' |
19532 | else |
19533 | as_ln_s='ln -s' |
19534 | fi |
19535 | elif ln conf$$.file conf$$ 2>/dev/null; then |
19536 | as_ln_s=ln |
19537 | else |
19538 | as_ln_s='cp -p' |
19539 | fi |
19540 | rm -f conf$$ conf$$.exe conf$$.file |
19541 | |
19542 | if mkdir -p . 2>/dev/null; then |
19543 | as_mkdir_p=: |
19544 | else |
19545 | test -d ./-p && rmdir ./-p |
19546 | as_mkdir_p=false |
19547 | fi |
19548 | |
19549 | as_executable_p="test -f" |
19550 | |
19551 | # Sed expression to map a string onto a valid CPP name. |
19552 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
19553 | |
19554 | # Sed expression to map a string onto a valid variable name. |
19555 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
19556 | |
19557 | |
19558 | # IFS |
19559 | # We need space, tab and new line, in precisely that order. |
19560 | as_nl=' |
19561 | ' |
19562 | IFS=" $as_nl" |
19563 | |
19564 | # CDPATH. |
19565 | $as_unset CDPATH |
19566 | |
19567 | exec 6>&1 |
19568 | |
19569 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
19570 | # report actual input values of CONFIG_FILES etc. instead of their |
19571 | # values after options handling. Logging --version etc. is OK. |
19572 | exec 5>>config.log |
19573 | { |
19574 | echo |
19575 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
19576 | ## Running $as_me. ## |
19577 | _ASBOX |
19578 | } >&5 |
19579 | cat >&5 <<_CSEOF |
19580 | |
19581 | This file was extended by makedat $as_me 0.60, which was |
19582 | generated by GNU Autoconf 2.59. Invocation command line was |
19583 | |
19584 | CONFIG_FILES = $CONFIG_FILES |
19585 | CONFIG_HEADERS = $CONFIG_HEADERS |
19586 | CONFIG_LINKS = $CONFIG_LINKS |
19587 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
19588 | $ $0 $@ |
19589 | |
19590 | _CSEOF |
19591 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
19592 | echo >&5 |
19593 | _ACEOF |
19594 | |
19595 | # Files that config.status was made for. |
19596 | if test -n "$ac_config_files"; then |
19597 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
19598 | fi |
19599 | |
19600 | if test -n "$ac_config_headers"; then |
19601 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
19602 | fi |
19603 | |
19604 | if test -n "$ac_config_links"; then |
19605 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
19606 | fi |
19607 | |
19608 | if test -n "$ac_config_commands"; then |
19609 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
19610 | fi |
19611 | |
19612 | cat >>$CONFIG_STATUS <<\_ACEOF |
19613 | |
19614 | ac_cs_usage="\ |
19615 | \`$as_me' instantiates files from templates according to the |
19616 | current configuration. |
19617 | |
19618 | Usage: $0 [OPTIONS] [FILE]... |
19619 | |
19620 | -h, --help print this help, then exit |
19621 | -V, --version print version number, then exit |
19622 | -q, --quiet do not print progress messages |
19623 | -d, --debug don't remove temporary files |
19624 | --recheck update $as_me by reconfiguring in the same conditions |
19625 | --file=FILE[:TEMPLATE] |
19626 | instantiate the configuration file FILE |
19627 | --header=FILE[:TEMPLATE] |
19628 | instantiate the configuration header FILE |
19629 | |
19630 | Configuration files: |
19631 | $config_files |
19632 | |
19633 | Configuration headers: |
19634 | $config_headers |
19635 | |
19636 | Configuration commands: |
19637 | $config_commands |
19638 | |
19639 | Report bugs to <bug-autoconf@gnu.org>." |
19640 | _ACEOF |
19641 | |
19642 | cat >>$CONFIG_STATUS <<_ACEOF |
19643 | ac_cs_version="\\ |
19644 | makedat config.status 0.60 |
19645 | configured by $0, generated by GNU Autoconf 2.59, |
19646 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
19647 | |
19648 | Copyright (C) 2003 Free Software Foundation, Inc. |
19649 | This config.status script is free software; the Free Software Foundation |
19650 | gives unlimited permission to copy, distribute and modify it." |
19651 | srcdir=$srcdir |
19652 | INSTALL="$INSTALL" |
19653 | _ACEOF |
19654 | |
19655 | cat >>$CONFIG_STATUS <<\_ACEOF |
19656 | # If no file are specified by the user, then we need to provide default |
19657 | # value. By we need to know if files were specified by the user. |
19658 | ac_need_defaults=: |
19659 | while test $# != 0 |
19660 | do |
19661 | case $1 in |
19662 | --*=*) |
19663 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
19664 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
19665 | ac_shift=: |
19666 | ;; |
19667 | -*) |
19668 | ac_option=$1 |
19669 | ac_optarg=$2 |
19670 | ac_shift=shift |
19671 | ;; |
19672 | *) # This is not an option, so the user has probably given explicit |
19673 | # arguments. |
19674 | ac_option=$1 |
19675 | ac_need_defaults=false;; |
19676 | esac |
19677 | |
19678 | case $ac_option in |
19679 | # Handling of the options. |
19680 | _ACEOF |
19681 | cat >>$CONFIG_STATUS <<\_ACEOF |
19682 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
19683 | ac_cs_recheck=: ;; |
19684 | --version | --vers* | -V ) |
19685 | echo "$ac_cs_version"; exit 0 ;; |
19686 | --he | --h) |
19687 | # Conflict between --help and --header |
19688 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
19689 | Try \`$0 --help' for more information." >&5 |
19690 | echo "$as_me: error: ambiguous option: $1 |
19691 | Try \`$0 --help' for more information." >&2;} |
19692 | { (exit 1); exit 1; }; };; |
19693 | --help | --hel | -h ) |
19694 | echo "$ac_cs_usage"; exit 0 ;; |
19695 | --debug | --d* | -d ) |
19696 | debug=: ;; |
19697 | --file | --fil | --fi | --f ) |
19698 | $ac_shift |
19699 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
19700 | ac_need_defaults=false;; |
19701 | --header | --heade | --head | --hea ) |
19702 | $ac_shift |
19703 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
19704 | ac_need_defaults=false;; |
19705 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
19706 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
19707 | ac_cs_silent=: ;; |
19708 | |
19709 | # This is an error. |
19710 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
19711 | Try \`$0 --help' for more information." >&5 |
19712 | echo "$as_me: error: unrecognized option: $1 |
19713 | Try \`$0 --help' for more information." >&2;} |
19714 | { (exit 1); exit 1; }; } ;; |
19715 | |
19716 | *) ac_config_targets="$ac_config_targets $1" ;; |
19717 | |
19718 | esac |
19719 | shift |
19720 | done |
19721 | |
19722 | ac_configure_extra_args= |
19723 | |
19724 | if $ac_cs_silent; then |
19725 | exec 6>/dev/null |
19726 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
19727 | fi |
19728 | |
19729 | _ACEOF |
19730 | cat >>$CONFIG_STATUS <<_ACEOF |
19731 | if \$ac_cs_recheck; then |
19732 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
19733 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
19734 | fi |
19735 | |
19736 | _ACEOF |
19737 | |
19738 | cat >>$CONFIG_STATUS <<_ACEOF |
19739 | # |
19740 | # INIT-COMMANDS section. |
19741 | # |
19742 | |
19743 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
19744 | |
19745 | _ACEOF |
19746 | |
19747 | |
19748 | |
19749 | cat >>$CONFIG_STATUS <<\_ACEOF |
19750 | for ac_config_target in $ac_config_targets |
19751 | do |
19752 | case "$ac_config_target" in |
19753 | # Handling of arguments. |
19754 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
19755 | "makedat" ) CONFIG_FILES="$CONFIG_FILES makedat" ;; |
19756 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
19757 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
19758 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
19759 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
19760 | { (exit 1); exit 1; }; };; |
19761 | esac |
19762 | done |
19763 | |
19764 | # If the user did not use the arguments to specify the items to instantiate, |
19765 | # then the envvar interface is used. Set only those that are not. |
19766 | # We use the long form for the default assignment because of an extremely |
19767 | # bizarre bug on SunOS 4.1.3. |
19768 | if $ac_need_defaults; then |
19769 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
19770 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
19771 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
19772 | fi |
19773 | |
19774 | # Have a temporary directory for convenience. Make it in the build tree |
19775 | # simply because there is no reason to put it here, and in addition, |
19776 | # creating and moving files from /tmp can sometimes cause problems. |
19777 | # Create a temporary directory, and hook for its removal unless debugging. |
19778 | $debug || |
19779 | { |
19780 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
19781 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
19782 | } |
19783 | |
19784 | # Create a (secure) tmp directory for tmp files. |
19785 | |
19786 | { |
19787 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
19788 | test -n "$tmp" && test -d "$tmp" |
19789 | } || |
19790 | { |
19791 | tmp=./confstat$$-$RANDOM |
19792 | (umask 077 && mkdir $tmp) |
19793 | } || |
19794 | { |
19795 | echo "$me: cannot create a temporary directory in ." >&2 |
19796 | { (exit 1); exit 1; } |
19797 | } |
19798 | |
19799 | _ACEOF |
19800 | |
19801 | cat >>$CONFIG_STATUS <<_ACEOF |
19802 | |
19803 | # |
19804 | # CONFIG_FILES section. |
19805 | # |
19806 | |
19807 | # No need to generate the scripts if there are no CONFIG_FILES. |
19808 | # This happens for instance when ./config.status config.h |
19809 | if test -n "\$CONFIG_FILES"; then |
19810 | # Protect against being on the right side of a sed subst in config.status. |
19811 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
19812 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
19813 | s,@SHELL@,$SHELL,;t t |
19814 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
19815 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
19816 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
19817 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
19818 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
19819 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
19820 | s,@exec_prefix@,$exec_prefix,;t t |
19821 | s,@prefix@,$prefix,;t t |
19822 | s,@program_transform_name@,$program_transform_name,;t t |
19823 | s,@bindir@,$bindir,;t t |
19824 | s,@sbindir@,$sbindir,;t t |
19825 | s,@libexecdir@,$libexecdir,;t t |
19826 | s,@datadir@,$datadir,;t t |
19827 | s,@sysconfdir@,$sysconfdir,;t t |
19828 | s,@sharedstatedir@,$sharedstatedir,;t t |
19829 | s,@localstatedir@,$localstatedir,;t t |
19830 | s,@libdir@,$libdir,;t t |
19831 | s,@includedir@,$includedir,;t t |
19832 | s,@oldincludedir@,$oldincludedir,;t t |
19833 | s,@infodir@,$infodir,;t t |
19834 | s,@mandir@,$mandir,;t t |
19835 | s,@build_alias@,$build_alias,;t t |
19836 | s,@host_alias@,$host_alias,;t t |
19837 | s,@target_alias@,$target_alias,;t t |
19838 | s,@DEFS@,$DEFS,;t t |
19839 | s,@ECHO_C@,$ECHO_C,;t t |
19840 | s,@ECHO_N@,$ECHO_N,;t t |
19841 | s,@ECHO_T@,$ECHO_T,;t t |
19842 | s,@LIBS@,$LIBS,;t t |
19843 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
19844 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
19845 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
19846 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
19847 | s,@PACKAGE@,$PACKAGE,;t t |
19848 | s,@VERSION@,$VERSION,;t t |
19849 | s,@ACLOCAL@,$ACLOCAL,;t t |
19850 | s,@AUTOCONF@,$AUTOCONF,;t t |
19851 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
19852 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
19853 | s,@MAKEINFO@,$MAKEINFO,;t t |
19854 | s,@install_sh@,$install_sh,;t t |
19855 | s,@STRIP@,$STRIP,;t t |
19856 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
19857 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
19858 | s,@mkdir_p@,$mkdir_p,;t t |
19859 | s,@AWK@,$AWK,;t t |
19860 | s,@SET_MAKE@,$SET_MAKE,;t t |
19861 | s,@am__leading_dot@,$am__leading_dot,;t t |
19862 | s,@AMTAR@,$AMTAR,;t t |
19863 | s,@am__tar@,$am__tar,;t t |
19864 | s,@am__untar@,$am__untar,;t t |
19865 | s,@CC@,$CC,;t t |
19866 | s,@CFLAGS@,$CFLAGS,;t t |
19867 | s,@LDFLAGS@,$LDFLAGS,;t t |
19868 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
19869 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
19870 | s,@EXEEXT@,$EXEEXT,;t t |
19871 | s,@OBJEXT@,$OBJEXT,;t t |
19872 | s,@DEPDIR@,$DEPDIR,;t t |
19873 | s,@am__include@,$am__include,;t t |
19874 | s,@am__quote@,$am__quote,;t t |
19875 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
19876 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
19877 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
19878 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
19879 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
19880 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
19881 | s,@LN_S@,$LN_S,;t t |
19882 | s,@PERL@,$PERL,;t t |
19883 | s,@CAT@,$CAT,;t t |
19884 | s,@build@,$build,;t t |
19885 | s,@build_cpu@,$build_cpu,;t t |
19886 | s,@build_vendor@,$build_vendor,;t t |
19887 | s,@build_os@,$build_os,;t t |
19888 | s,@host@,$host,;t t |
19889 | s,@host_cpu@,$host_cpu,;t t |
19890 | s,@host_vendor@,$host_vendor,;t t |
19891 | s,@host_os@,$host_os,;t t |
19892 | s,@SED@,$SED,;t t |
19893 | s,@EGREP@,$EGREP,;t t |
19894 | s,@ECHO@,$ECHO,;t t |
19895 | s,@AR@,$AR,;t t |
19896 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
19897 | s,@RANLIB@,$RANLIB,;t t |
19898 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
19899 | s,@CPP@,$CPP,;t t |
19900 | s,@CXX@,$CXX,;t t |
19901 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
19902 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
19903 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
19904 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
19905 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
19906 | s,@CXXCPP@,$CXXCPP,;t t |
19907 | s,@F77@,$F77,;t t |
19908 | s,@FFLAGS@,$FFLAGS,;t t |
19909 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
19910 | s,@LIBTOOL@,$LIBTOOL,;t t |
19911 | s,@makedatprog_target@,$makedatprog_target,;t t |
19912 | s,@dblibrary@,$dblibrary,;t t |
19913 | s,@LIBGDBM@,$LIBGDBM,;t t |
19914 | s,@LIBDB@,$LIBDB,;t t |
19915 | s,@USE_GDBM_TRUE@,$USE_GDBM_TRUE,;t t |
19916 | s,@USE_GDBM_FALSE@,$USE_GDBM_FALSE,;t t |
19917 | s,@USE_DB_TRUE@,$USE_DB_TRUE,;t t |
19918 | s,@USE_DB_FALSE@,$USE_DB_FALSE,;t t |
19919 | s,@makedatprogpath@,$makedatprogpath,;t t |
19920 | s,@LIBOBJS@,$LIBOBJS,;t t |
19921 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
19922 | CEOF |
19923 | |
19924 | _ACEOF |
19925 | |
19926 | cat >>$CONFIG_STATUS <<\_ACEOF |
19927 | # Split the substitutions into bite-sized pieces for seds with |
19928 | # small command number limits, like on Digital OSF/1 and HP-UX. |
19929 | ac_max_sed_lines=48 |
19930 | ac_sed_frag=1 # Number of current file. |
19931 | ac_beg=1 # First line for current file. |
19932 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
19933 | ac_more_lines=: |
19934 | ac_sed_cmds= |
19935 | while $ac_more_lines; do |
19936 | if test $ac_beg -gt 1; then |
19937 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
19938 | else |
19939 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
19940 | fi |
19941 | if test ! -s $tmp/subs.frag; then |
19942 | ac_more_lines=false |
19943 | else |
19944 | # The purpose of the label and of the branching condition is to |
19945 | # speed up the sed processing (if there are no `@' at all, there |
19946 | # is no need to browse any of the substitutions). |
19947 | # These are the two extra sed commands mentioned above. |
19948 | (echo ':t |
19949 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
19950 | if test -z "$ac_sed_cmds"; then |
19951 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
19952 | else |
19953 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
19954 | fi |
19955 | ac_sed_frag=`expr $ac_sed_frag + 1` |
19956 | ac_beg=$ac_end |
19957 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
19958 | fi |
19959 | done |
19960 | if test -z "$ac_sed_cmds"; then |
19961 | ac_sed_cmds=cat |
19962 | fi |
19963 | fi # test -n "$CONFIG_FILES" |
19964 | |
19965 | _ACEOF |
19966 | cat >>$CONFIG_STATUS <<\_ACEOF |
19967 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
19968 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
19969 | case $ac_file in |
19970 | - | *:- | *:-:* ) # input from stdin |
19971 | cat >$tmp/stdin |
19972 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
19973 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
19974 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
19975 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
19976 | * ) ac_file_in=$ac_file.in ;; |
19977 | esac |
19978 | |
19979 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
19980 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
19981 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19982 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
19983 | X"$ac_file" : 'X\(//\)$' \| \ |
19984 | X"$ac_file" : 'X\(/\)' \| \ |
19985 | . : '\(.\)' 2>/dev/null || |
19986 | echo X"$ac_file" | |
19987 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
19988 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
19989 | /^X\(\/\/\)$/{ s//\1/; q; } |
19990 | /^X\(\/\).*/{ s//\1/; q; } |
19991 | s/.*/./; q'` |
19992 | { if $as_mkdir_p; then |
19993 | mkdir -p "$ac_dir" |
19994 | else |
19995 | as_dir="$ac_dir" |
19996 | as_dirs= |
19997 | while test ! -d "$as_dir"; do |
19998 | as_dirs="$as_dir $as_dirs" |
19999 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
20000 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20001 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
20002 | X"$as_dir" : 'X\(//\)$' \| \ |
20003 | X"$as_dir" : 'X\(/\)' \| \ |
20004 | . : '\(.\)' 2>/dev/null || |
20005 | echo X"$as_dir" | |
20006 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20007 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20008 | /^X\(\/\/\)$/{ s//\1/; q; } |
20009 | /^X\(\/\).*/{ s//\1/; q; } |
20010 | s/.*/./; q'` |
20011 | done |
20012 | test ! -n "$as_dirs" || mkdir $as_dirs |
20013 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
20014 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
20015 | { (exit 1); exit 1; }; }; } |
20016 | |
20017 | ac_builddir=. |
20018 | |
20019 | if test "$ac_dir" != .; then |
20020 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
20021 | # A "../" for each directory in $ac_dir_suffix. |
20022 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
20023 | else |
20024 | ac_dir_suffix= ac_top_builddir= |
20025 | fi |
20026 | |
20027 | case $srcdir in |
20028 | .) # No --srcdir option. We are building in place. |
20029 | ac_srcdir=. |
20030 | if test -z "$ac_top_builddir"; then |
20031 | ac_top_srcdir=. |
20032 | else |
20033 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
20034 | fi ;; |
20035 | [\\/]* | ?:[\\/]* ) # Absolute path. |
20036 | ac_srcdir=$srcdir$ac_dir_suffix; |
20037 | ac_top_srcdir=$srcdir ;; |
20038 | *) # Relative path. |
20039 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
20040 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
20041 | esac |
20042 | |
20043 | # Do not use `cd foo && pwd` to compute absolute paths, because |
20044 | # the directories may not exist. |
20045 | case `pwd` in |
20046 | .) ac_abs_builddir="$ac_dir";; |
20047 | *) |
20048 | case "$ac_dir" in |
20049 | .) ac_abs_builddir=`pwd`;; |
20050 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
20051 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
20052 | esac;; |
20053 | esac |
20054 | case $ac_abs_builddir in |
20055 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
20056 | *) |
20057 | case ${ac_top_builddir}. in |
20058 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
20059 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
20060 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
20061 | esac;; |
20062 | esac |
20063 | case $ac_abs_builddir in |
20064 | .) ac_abs_srcdir=$ac_srcdir;; |
20065 | *) |
20066 | case $ac_srcdir in |
20067 | .) ac_abs_srcdir=$ac_abs_builddir;; |
20068 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
20069 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
20070 | esac;; |
20071 | esac |
20072 | case $ac_abs_builddir in |
20073 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
20074 | *) |
20075 | case $ac_top_srcdir in |
20076 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
20077 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
20078 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
20079 | esac;; |
20080 | esac |
20081 | |
20082 | |
20083 | case $INSTALL in |
20084 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
20085 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
20086 | esac |
20087 | |
20088 | if test x"$ac_file" != x-; then |
20089 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
20090 | echo "$as_me: creating $ac_file" >&6;} |
20091 | rm -f "$ac_file" |
20092 | fi |
20093 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
20094 | # use $as_me), people would be surprised to read: |
20095 | # /* config.h. Generated by config.status. */ |
20096 | if test x"$ac_file" = x-; then |
20097 | configure_input= |
20098 | else |
20099 | configure_input="$ac_file. " |
20100 | fi |
20101 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
20102 | sed 's,.*/,,'` by configure." |
20103 | |
20104 | # First look for the input files in the build tree, otherwise in the |
20105 | # src tree. |
20106 | ac_file_inputs=`IFS=: |
20107 | for f in $ac_file_in; do |
20108 | case $f in |
20109 | -) echo $tmp/stdin ;; |
20110 | [\\/$]*) |
20111 | # Absolute (can't be DOS-style, as IFS=:) |
20112 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
20113 | echo "$as_me: error: cannot find input file: $f" >&2;} |
20114 | { (exit 1); exit 1; }; } |
20115 | echo "$f";; |
20116 | *) # Relative |
20117 | if test -f "$f"; then |
20118 | # Build tree |
20119 | echo "$f" |
20120 | elif test -f "$srcdir/$f"; then |
20121 | # Source tree |
20122 | echo "$srcdir/$f" |
20123 | else |
20124 | # /dev/null tree |
20125 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
20126 | echo "$as_me: error: cannot find input file: $f" >&2;} |
20127 | { (exit 1); exit 1; }; } |
20128 | fi;; |
20129 | esac |
20130 | done` || { (exit 1); exit 1; } |
20131 | _ACEOF |
20132 | cat >>$CONFIG_STATUS <<_ACEOF |
20133 | sed "$ac_vpsub |
20134 | $extrasub |
20135 | _ACEOF |
20136 | cat >>$CONFIG_STATUS <<\_ACEOF |
20137 | :t |
20138 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
20139 | s,@configure_input@,$configure_input,;t t |
20140 | s,@srcdir@,$ac_srcdir,;t t |
20141 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
20142 | s,@top_srcdir@,$ac_top_srcdir,;t t |
20143 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
20144 | s,@builddir@,$ac_builddir,;t t |
20145 | s,@abs_builddir@,$ac_abs_builddir,;t t |
20146 | s,@top_builddir@,$ac_top_builddir,;t t |
20147 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
20148 | s,@INSTALL@,$ac_INSTALL,;t t |
20149 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
20150 | rm -f $tmp/stdin |
20151 | if test x"$ac_file" != x-; then |
20152 | mv $tmp/out $ac_file |
20153 | else |
20154 | cat $tmp/out |
20155 | rm -f $tmp/out |
20156 | fi |
20157 | |
20158 | done |
20159 | _ACEOF |
20160 | cat >>$CONFIG_STATUS <<\_ACEOF |
20161 | |
20162 | # |
20163 | # CONFIG_HEADER section. |
20164 | # |
20165 | |
20166 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
20167 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
20168 | # |
20169 | # ac_d sets the value in "#define NAME VALUE" lines. |
20170 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
20171 | ac_dB='[ ].*$,\1#\2' |
20172 | ac_dC=' ' |
20173 | ac_dD=',;t' |
20174 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
20175 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
20176 | ac_uB='$,\1#\2define\3' |
20177 | ac_uC=' ' |
20178 | ac_uD=',;t' |
20179 | |
20180 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
20181 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
20182 | case $ac_file in |
20183 | - | *:- | *:-:* ) # input from stdin |
20184 | cat >$tmp/stdin |
20185 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
20186 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
20187 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
20188 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
20189 | * ) ac_file_in=$ac_file.in ;; |
20190 | esac |
20191 | |
20192 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
20193 | echo "$as_me: creating $ac_file" >&6;} |
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 | # Do quote $f, to prevent DOS paths from being IFS'd. |
20207 | echo "$f";; |
20208 | *) # Relative |
20209 | if test -f "$f"; then |
20210 | # Build tree |
20211 | echo "$f" |
20212 | elif test -f "$srcdir/$f"; then |
20213 | # Source tree |
20214 | echo "$srcdir/$f" |
20215 | else |
20216 | # /dev/null tree |
20217 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
20218 | echo "$as_me: error: cannot find input file: $f" >&2;} |
20219 | { (exit 1); exit 1; }; } |
20220 | fi;; |
20221 | esac |
20222 | done` || { (exit 1); exit 1; } |
20223 | # Remove the trailing spaces. |
20224 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
20225 | |
20226 | _ACEOF |
20227 | |
20228 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
20229 | # `conftest.undefs', that substitutes the proper values into |
20230 | # config.h.in to produce config.h. The first handles `#define' |
20231 | # templates, and the second `#undef' templates. |
20232 | # And first: Protect against being on the right side of a sed subst in |
20233 | # config.status. Protect against being in an unquoted here document |
20234 | # in config.status. |
20235 | rm -f conftest.defines conftest.undefs |
20236 | # Using a here document instead of a string reduces the quoting nightmare. |
20237 | # Putting comments in sed scripts is not portable. |
20238 | # |
20239 | # `end' is used to avoid that the second main sed command (meant for |
20240 | # 0-ary CPP macros) applies to n-ary macro definitions. |
20241 | # See the Autoconf documentation for `clear'. |
20242 | cat >confdef2sed.sed <<\_ACEOF |
20243 | s/[\\&,]/\\&/g |
20244 | s,[\\$`],\\&,g |
20245 | t clear |
20246 | : clear |
20247 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
20248 | t end |
20249 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
20250 | : end |
20251 | _ACEOF |
20252 | # If some macros were called several times there might be several times |
20253 | # the same #defines, which is useless. Nevertheless, we may not want to |
20254 | # sort them, since we want the *last* AC-DEFINE to be honored. |
20255 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
20256 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
20257 | rm -f confdef2sed.sed |
20258 | |
20259 | # This sed command replaces #undef with comments. This is necessary, for |
20260 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
20261 | # on some systems where configure will not decide to define it. |
20262 | cat >>conftest.undefs <<\_ACEOF |
20263 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
20264 | _ACEOF |
20265 | |
20266 | # Break up conftest.defines because some shells have a limit on the size |
20267 | # of here documents, and old seds have small limits too (100 cmds). |
20268 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
20269 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
20270 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
20271 | echo ' :' >>$CONFIG_STATUS |
20272 | rm -f conftest.tail |
20273 | while grep . conftest.defines >/dev/null |
20274 | do |
20275 | # Write a limited-size here document to $tmp/defines.sed. |
20276 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
20277 | # Speed up: don't consider the non `#define' lines. |
20278 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
20279 | # Work around the forget-to-reset-the-flag bug. |
20280 | echo 't clr' >>$CONFIG_STATUS |
20281 | echo ': clr' >>$CONFIG_STATUS |
20282 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
20283 | echo 'CEOF |
20284 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
20285 | rm -f $tmp/in |
20286 | mv $tmp/out $tmp/in |
20287 | ' >>$CONFIG_STATUS |
20288 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
20289 | rm -f conftest.defines |
20290 | mv conftest.tail conftest.defines |
20291 | done |
20292 | rm -f conftest.defines |
20293 | echo ' fi # grep' >>$CONFIG_STATUS |
20294 | echo >>$CONFIG_STATUS |
20295 | |
20296 | # Break up conftest.undefs because some shells have a limit on the size |
20297 | # of here documents, and old seds have small limits too (100 cmds). |
20298 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
20299 | rm -f conftest.tail |
20300 | while grep . conftest.undefs >/dev/null |
20301 | do |
20302 | # Write a limited-size here document to $tmp/undefs.sed. |
20303 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
20304 | # Speed up: don't consider the non `#undef' |
20305 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
20306 | # Work around the forget-to-reset-the-flag bug. |
20307 | echo 't clr' >>$CONFIG_STATUS |
20308 | echo ': clr' >>$CONFIG_STATUS |
20309 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
20310 | echo 'CEOF |
20311 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
20312 | rm -f $tmp/in |
20313 | mv $tmp/out $tmp/in |
20314 | ' >>$CONFIG_STATUS |
20315 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
20316 | rm -f conftest.undefs |
20317 | mv conftest.tail conftest.undefs |
20318 | done |
20319 | rm -f conftest.undefs |
20320 | |
20321 | cat >>$CONFIG_STATUS <<\_ACEOF |
20322 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
20323 | # use $as_me), people would be surprised to read: |
20324 | # /* config.h. Generated by config.status. */ |
20325 | if test x"$ac_file" = x-; then |
20326 | echo "/* Generated by configure. */" >$tmp/config.h |
20327 | else |
20328 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
20329 | fi |
20330 | cat $tmp/in >>$tmp/config.h |
20331 | rm -f $tmp/in |
20332 | if test x"$ac_file" != x-; then |
20333 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
20334 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
20335 | echo "$as_me: $ac_file is unchanged" >&6;} |
20336 | else |
20337 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
20338 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20339 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
20340 | X"$ac_file" : 'X\(//\)$' \| \ |
20341 | X"$ac_file" : 'X\(/\)' \| \ |
20342 | . : '\(.\)' 2>/dev/null || |
20343 | echo X"$ac_file" | |
20344 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20345 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20346 | /^X\(\/\/\)$/{ s//\1/; q; } |
20347 | /^X\(\/\).*/{ s//\1/; q; } |
20348 | s/.*/./; q'` |
20349 | { if $as_mkdir_p; then |
20350 | mkdir -p "$ac_dir" |
20351 | else |
20352 | as_dir="$ac_dir" |
20353 | as_dirs= |
20354 | while test ! -d "$as_dir"; do |
20355 | as_dirs="$as_dir $as_dirs" |
20356 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
20357 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20358 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
20359 | X"$as_dir" : 'X\(//\)$' \| \ |
20360 | X"$as_dir" : 'X\(/\)' \| \ |
20361 | . : '\(.\)' 2>/dev/null || |
20362 | echo X"$as_dir" | |
20363 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20364 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20365 | /^X\(\/\/\)$/{ s//\1/; q; } |
20366 | /^X\(\/\).*/{ s//\1/; q; } |
20367 | s/.*/./; q'` |
20368 | done |
20369 | test ! -n "$as_dirs" || mkdir $as_dirs |
20370 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
20371 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
20372 | { (exit 1); exit 1; }; }; } |
20373 | |
20374 | rm -f $ac_file |
20375 | mv $tmp/config.h $ac_file |
20376 | fi |
20377 | else |
20378 | cat $tmp/config.h |
20379 | rm -f $tmp/config.h |
20380 | fi |
20381 | # Compute $ac_file's index in $config_headers. |
20382 | _am_stamp_count=1 |
20383 | for _am_header in $config_headers :; do |
20384 | case $_am_header in |
20385 | $ac_file | $ac_file:* ) |
20386 | break ;; |
20387 | * ) |
20388 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
20389 | esac |
20390 | done |
20391 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
20392 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20393 | X$ac_file : 'X\(//\)[^/]' \| \ |
20394 | X$ac_file : 'X\(//\)$' \| \ |
20395 | X$ac_file : 'X\(/\)' \| \ |
20396 | . : '\(.\)' 2>/dev/null || |
20397 | echo X$ac_file | |
20398 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20399 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20400 | /^X\(\/\/\)$/{ s//\1/; q; } |
20401 | /^X\(\/\).*/{ s//\1/; q; } |
20402 | s/.*/./; q'`/stamp-h$_am_stamp_count |
20403 | done |
20404 | _ACEOF |
20405 | cat >>$CONFIG_STATUS <<\_ACEOF |
20406 | |
20407 | # |
20408 | # CONFIG_COMMANDS section. |
20409 | # |
20410 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
20411 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
20412 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
20413 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
20414 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20415 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
20416 | X"$ac_dest" : 'X\(//\)$' \| \ |
20417 | X"$ac_dest" : 'X\(/\)' \| \ |
20418 | . : '\(.\)' 2>/dev/null || |
20419 | echo X"$ac_dest" | |
20420 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20421 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20422 | /^X\(\/\/\)$/{ s//\1/; q; } |
20423 | /^X\(\/\).*/{ s//\1/; q; } |
20424 | s/.*/./; q'` |
20425 | { if $as_mkdir_p; then |
20426 | mkdir -p "$ac_dir" |
20427 | else |
20428 | as_dir="$ac_dir" |
20429 | as_dirs= |
20430 | while test ! -d "$as_dir"; do |
20431 | as_dirs="$as_dir $as_dirs" |
20432 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
20433 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20434 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
20435 | X"$as_dir" : 'X\(//\)$' \| \ |
20436 | X"$as_dir" : 'X\(/\)' \| \ |
20437 | . : '\(.\)' 2>/dev/null || |
20438 | echo X"$as_dir" | |
20439 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20440 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20441 | /^X\(\/\/\)$/{ s//\1/; q; } |
20442 | /^X\(\/\).*/{ s//\1/; q; } |
20443 | s/.*/./; q'` |
20444 | done |
20445 | test ! -n "$as_dirs" || mkdir $as_dirs |
20446 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
20447 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
20448 | { (exit 1); exit 1; }; }; } |
20449 | |
20450 | ac_builddir=. |
20451 | |
20452 | if test "$ac_dir" != .; then |
20453 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
20454 | # A "../" for each directory in $ac_dir_suffix. |
20455 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
20456 | else |
20457 | ac_dir_suffix= ac_top_builddir= |
20458 | fi |
20459 | |
20460 | case $srcdir in |
20461 | .) # No --srcdir option. We are building in place. |
20462 | ac_srcdir=. |
20463 | if test -z "$ac_top_builddir"; then |
20464 | ac_top_srcdir=. |
20465 | else |
20466 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
20467 | fi ;; |
20468 | [\\/]* | ?:[\\/]* ) # Absolute path. |
20469 | ac_srcdir=$srcdir$ac_dir_suffix; |
20470 | ac_top_srcdir=$srcdir ;; |
20471 | *) # Relative path. |
20472 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
20473 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
20474 | esac |
20475 | |
20476 | # Do not use `cd foo && pwd` to compute absolute paths, because |
20477 | # the directories may not exist. |
20478 | case `pwd` in |
20479 | .) ac_abs_builddir="$ac_dir";; |
20480 | *) |
20481 | case "$ac_dir" in |
20482 | .) ac_abs_builddir=`pwd`;; |
20483 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
20484 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
20485 | esac;; |
20486 | esac |
20487 | case $ac_abs_builddir in |
20488 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
20489 | *) |
20490 | case ${ac_top_builddir}. in |
20491 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
20492 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
20493 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
20494 | esac;; |
20495 | esac |
20496 | case $ac_abs_builddir in |
20497 | .) ac_abs_srcdir=$ac_srcdir;; |
20498 | *) |
20499 | case $ac_srcdir in |
20500 | .) ac_abs_srcdir=$ac_abs_builddir;; |
20501 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
20502 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
20503 | esac;; |
20504 | esac |
20505 | case $ac_abs_builddir in |
20506 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
20507 | *) |
20508 | case $ac_top_srcdir in |
20509 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
20510 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
20511 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
20512 | esac;; |
20513 | esac |
20514 | |
20515 | |
20516 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
20517 | echo "$as_me: executing $ac_dest commands" >&6;} |
20518 | case $ac_dest in |
20519 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
20520 | # Strip MF so we end up with the name of the file. |
20521 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
20522 | # Check whether this is an Automake generated Makefile or not. |
20523 | # We used to match only the files named `Makefile.in', but |
20524 | # some people rename them; so instead we look at the file content. |
20525 | # Grep'ing the first line is not enough: some people post-process |
20526 | # each Makefile.in and add a new line on top of each file to say so. |
20527 | # So let's grep whole file. |
20528 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
20529 | dirpart=`(dirname "$mf") 2>/dev/null || |
20530 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20531 | X"$mf" : 'X\(//\)[^/]' \| \ |
20532 | X"$mf" : 'X\(//\)$' \| \ |
20533 | X"$mf" : 'X\(/\)' \| \ |
20534 | . : '\(.\)' 2>/dev/null || |
20535 | echo X"$mf" | |
20536 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20537 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20538 | /^X\(\/\/\)$/{ s//\1/; q; } |
20539 | /^X\(\/\).*/{ s//\1/; q; } |
20540 | s/.*/./; q'` |
20541 | else |
20542 | continue |
20543 | fi |
20544 | # Extract the definition of DEPDIR, am__include, and am__quote |
20545 | # from the Makefile without running `make'. |
20546 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
20547 | test -z "$DEPDIR" && continue |
20548 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
20549 | test -z "am__include" && continue |
20550 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
20551 | # When using ansi2knr, U may be empty or an underscore; expand it |
20552 | U=`sed -n 's/^U = //p' < "$mf"` |
20553 | # Find all dependency output files, they are included files with |
20554 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
20555 | # simplest approach to changing $(DEPDIR) to its actual value in the |
20556 | # expansion. |
20557 | for file in `sed -n " |
20558 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
20559 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
20560 | # Make sure the directory exists. |
20561 | test -f "$dirpart/$file" && continue |
20562 | fdir=`(dirname "$file") 2>/dev/null || |
20563 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20564 | X"$file" : 'X\(//\)[^/]' \| \ |
20565 | X"$file" : 'X\(//\)$' \| \ |
20566 | X"$file" : 'X\(/\)' \| \ |
20567 | . : '\(.\)' 2>/dev/null || |
20568 | echo X"$file" | |
20569 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20570 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20571 | /^X\(\/\/\)$/{ s//\1/; q; } |
20572 | /^X\(\/\).*/{ s//\1/; q; } |
20573 | s/.*/./; q'` |
20574 | { if $as_mkdir_p; then |
20575 | mkdir -p $dirpart/$fdir |
20576 | else |
20577 | as_dir=$dirpart/$fdir |
20578 | as_dirs= |
20579 | while test ! -d "$as_dir"; do |
20580 | as_dirs="$as_dir $as_dirs" |
20581 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
20582 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20583 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
20584 | X"$as_dir" : 'X\(//\)$' \| \ |
20585 | X"$as_dir" : 'X\(/\)' \| \ |
20586 | . : '\(.\)' 2>/dev/null || |
20587 | echo X"$as_dir" | |
20588 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20589 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20590 | /^X\(\/\/\)$/{ s//\1/; q; } |
20591 | /^X\(\/\).*/{ s//\1/; q; } |
20592 | s/.*/./; q'` |
20593 | done |
20594 | test ! -n "$as_dirs" || mkdir $as_dirs |
20595 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
20596 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
20597 | { (exit 1); exit 1; }; }; } |
20598 | |
20599 | # echo "creating $dirpart/$file" |
20600 | echo '# dummy' > "$dirpart/$file" |
20601 | done |
20602 | done |
20603 | ;; |
20604 | esac |
20605 | done |
20606 | _ACEOF |
20607 | |
20608 | cat >>$CONFIG_STATUS <<\_ACEOF |
20609 | |
20610 | { (exit 0); exit 0; } |
20611 | _ACEOF |
20612 | chmod +x $CONFIG_STATUS |
20613 | ac_clean_files=$ac_clean_files_save |
20614 | |
20615 | |
20616 | # configure is writing to config.log, and then calls config.status. |
20617 | # config.status does its own redirection, appending to config.log. |
20618 | # Unfortunately, on DOS this fails, as config.log is still kept open |
20619 | # by configure, so config.status won't be able to write to it; its |
20620 | # output is simply discarded. So we exec the FD to /dev/null, |
20621 | # effectively closing config.log, so it can be properly (re)opened and |
20622 | # appended to by config.status. When coming back to configure, we |
20623 | # need to make the FD available again. |
20624 | if test "$no_create" != yes; then |
20625 | ac_cs_success=: |
20626 | ac_config_status_args= |
20627 | test "$silent" = yes && |
20628 | ac_config_status_args="$ac_config_status_args --quiet" |
20629 | exec 5>/dev/null |
20630 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
20631 | exec 5>>config.log |
20632 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
20633 | # would make configure fail if this is the last instruction. |
20634 | $ac_cs_success || { (exit 1); exit 1; } |
20635 | fi |
20636 | |