d9898ee8 |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
3 | # Generated by GNU Autoconf 2.59 for rfc822lib 0.12. |
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='rfc822lib' |
425 | PACKAGE_TARNAME='rfc822lib' |
426 | PACKAGE_VERSION='0.12' |
427 | PACKAGE_STRING='rfc822lib 0.12' |
428 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' |
429 | |
430 | ac_unique_file="rfc822.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 CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL HAVE_SGML_TRUE HAVE_SGML_FALSE LIBOBJS LTLIBOBJS' |
469 | ac_subst_files='' |
470 | |
471 | # Initialize some variables set by options. |
472 | ac_init_help= |
473 | ac_init_version=false |
474 | # The variables have the same names as the options, with |
475 | # dashes changed to underlines. |
476 | cache_file=/dev/null |
477 | exec_prefix=NONE |
478 | no_create= |
479 | no_recursion= |
480 | prefix=NONE |
481 | program_prefix=NONE |
482 | program_suffix=NONE |
483 | program_transform_name=s,x,x, |
484 | silent= |
485 | site= |
486 | srcdir= |
487 | verbose= |
488 | x_includes=NONE |
489 | x_libraries=NONE |
490 | |
491 | # Installation directory options. |
492 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
493 | # and all the variables that are supposed to be based on exec_prefix |
494 | # by default will actually change. |
495 | # Use braces instead of parens because sh, perl, etc. also accept them. |
496 | bindir='${exec_prefix}/bin' |
497 | sbindir='${exec_prefix}/sbin' |
498 | libexecdir='${exec_prefix}/libexec' |
499 | datadir='${prefix}/share' |
500 | sysconfdir='${prefix}/etc' |
501 | sharedstatedir='${prefix}/com' |
502 | localstatedir='${prefix}/var' |
503 | libdir='${exec_prefix}/lib' |
504 | includedir='${prefix}/include' |
505 | oldincludedir='/usr/include' |
506 | infodir='${prefix}/info' |
507 | mandir='${prefix}/man' |
508 | |
509 | ac_prev= |
510 | for ac_option |
511 | do |
512 | # If the previous option needs an argument, assign it. |
513 | if test -n "$ac_prev"; then |
514 | eval "$ac_prev=\$ac_option" |
515 | ac_prev= |
516 | continue |
517 | fi |
518 | |
519 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
520 | |
521 | # Accept the important Cygnus configure options, so we can diagnose typos. |
522 | |
523 | case $ac_option in |
524 | |
525 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
526 | ac_prev=bindir ;; |
527 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
528 | bindir=$ac_optarg ;; |
529 | |
530 | -build | --build | --buil | --bui | --bu) |
531 | ac_prev=build_alias ;; |
532 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
533 | build_alias=$ac_optarg ;; |
534 | |
535 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
536 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
537 | ac_prev=cache_file ;; |
538 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
539 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
540 | cache_file=$ac_optarg ;; |
541 | |
542 | --config-cache | -C) |
543 | cache_file=config.cache ;; |
544 | |
545 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
546 | ac_prev=datadir ;; |
547 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
548 | | --da=*) |
549 | datadir=$ac_optarg ;; |
550 | |
551 | -disable-* | --disable-*) |
552 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
553 | # Reject names that are not valid shell variable names. |
554 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
555 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
556 | { (exit 1); exit 1; }; } |
557 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
558 | eval "enable_$ac_feature=no" ;; |
559 | |
560 | -enable-* | --enable-*) |
561 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
562 | # Reject names that are not valid shell variable names. |
563 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
564 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
565 | { (exit 1); exit 1; }; } |
566 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
567 | case $ac_option in |
568 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
569 | *) ac_optarg=yes ;; |
570 | esac |
571 | eval "enable_$ac_feature='$ac_optarg'" ;; |
572 | |
573 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
574 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
575 | | --exec | --exe | --ex) |
576 | ac_prev=exec_prefix ;; |
577 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
578 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
579 | | --exec=* | --exe=* | --ex=*) |
580 | exec_prefix=$ac_optarg ;; |
581 | |
582 | -gas | --gas | --ga | --g) |
583 | # Obsolete; use --with-gas. |
584 | with_gas=yes ;; |
585 | |
586 | -help | --help | --hel | --he | -h) |
587 | ac_init_help=long ;; |
588 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
589 | ac_init_help=recursive ;; |
590 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
591 | ac_init_help=short ;; |
592 | |
593 | -host | --host | --hos | --ho) |
594 | ac_prev=host_alias ;; |
595 | -host=* | --host=* | --hos=* | --ho=*) |
596 | host_alias=$ac_optarg ;; |
597 | |
598 | -includedir | --includedir | --includedi | --included | --include \ |
599 | | --includ | --inclu | --incl | --inc) |
600 | ac_prev=includedir ;; |
601 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
602 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
603 | includedir=$ac_optarg ;; |
604 | |
605 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
606 | ac_prev=infodir ;; |
607 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
608 | infodir=$ac_optarg ;; |
609 | |
610 | -libdir | --libdir | --libdi | --libd) |
611 | ac_prev=libdir ;; |
612 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
613 | libdir=$ac_optarg ;; |
614 | |
615 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
616 | | --libexe | --libex | --libe) |
617 | ac_prev=libexecdir ;; |
618 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
619 | | --libexe=* | --libex=* | --libe=*) |
620 | libexecdir=$ac_optarg ;; |
621 | |
622 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
623 | | --localstate | --localstat | --localsta | --localst \ |
624 | | --locals | --local | --loca | --loc | --lo) |
625 | ac_prev=localstatedir ;; |
626 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
627 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
628 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
629 | localstatedir=$ac_optarg ;; |
630 | |
631 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
632 | ac_prev=mandir ;; |
633 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
634 | mandir=$ac_optarg ;; |
635 | |
636 | -nfp | --nfp | --nf) |
637 | # Obsolete; use --without-fp. |
638 | with_fp=no ;; |
639 | |
640 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
641 | | --no-cr | --no-c | -n) |
642 | no_create=yes ;; |
643 | |
644 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
645 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
646 | no_recursion=yes ;; |
647 | |
648 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
649 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
650 | | --oldin | --oldi | --old | --ol | --o) |
651 | ac_prev=oldincludedir ;; |
652 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
653 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
654 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
655 | oldincludedir=$ac_optarg ;; |
656 | |
657 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
658 | ac_prev=prefix ;; |
659 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
660 | prefix=$ac_optarg ;; |
661 | |
662 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
663 | | --program-pre | --program-pr | --program-p) |
664 | ac_prev=program_prefix ;; |
665 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
666 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
667 | program_prefix=$ac_optarg ;; |
668 | |
669 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
670 | | --program-suf | --program-su | --program-s) |
671 | ac_prev=program_suffix ;; |
672 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
673 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
674 | program_suffix=$ac_optarg ;; |
675 | |
676 | -program-transform-name | --program-transform-name \ |
677 | | --program-transform-nam | --program-transform-na \ |
678 | | --program-transform-n | --program-transform- \ |
679 | | --program-transform | --program-transfor \ |
680 | | --program-transfo | --program-transf \ |
681 | | --program-trans | --program-tran \ |
682 | | --progr-tra | --program-tr | --program-t) |
683 | ac_prev=program_transform_name ;; |
684 | -program-transform-name=* | --program-transform-name=* \ |
685 | | --program-transform-nam=* | --program-transform-na=* \ |
686 | | --program-transform-n=* | --program-transform-=* \ |
687 | | --program-transform=* | --program-transfor=* \ |
688 | | --program-transfo=* | --program-transf=* \ |
689 | | --program-trans=* | --program-tran=* \ |
690 | | --progr-tra=* | --program-tr=* | --program-t=*) |
691 | program_transform_name=$ac_optarg ;; |
692 | |
693 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
694 | | -silent | --silent | --silen | --sile | --sil) |
695 | silent=yes ;; |
696 | |
697 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
698 | ac_prev=sbindir ;; |
699 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
700 | | --sbi=* | --sb=*) |
701 | sbindir=$ac_optarg ;; |
702 | |
703 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
704 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
705 | | --sharedst | --shareds | --shared | --share | --shar \ |
706 | | --sha | --sh) |
707 | ac_prev=sharedstatedir ;; |
708 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
709 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
710 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
711 | | --sha=* | --sh=*) |
712 | sharedstatedir=$ac_optarg ;; |
713 | |
714 | -site | --site | --sit) |
715 | ac_prev=site ;; |
716 | -site=* | --site=* | --sit=*) |
717 | site=$ac_optarg ;; |
718 | |
719 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
720 | ac_prev=srcdir ;; |
721 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
722 | srcdir=$ac_optarg ;; |
723 | |
724 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
725 | | --syscon | --sysco | --sysc | --sys | --sy) |
726 | ac_prev=sysconfdir ;; |
727 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
728 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
729 | sysconfdir=$ac_optarg ;; |
730 | |
731 | -target | --target | --targe | --targ | --tar | --ta | --t) |
732 | ac_prev=target_alias ;; |
733 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
734 | target_alias=$ac_optarg ;; |
735 | |
736 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
737 | verbose=yes ;; |
738 | |
739 | -version | --version | --versio | --versi | --vers | -V) |
740 | ac_init_version=: ;; |
741 | |
742 | -with-* | --with-*) |
743 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
744 | # Reject names that are not valid shell variable names. |
745 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
746 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
747 | { (exit 1); exit 1; }; } |
748 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
749 | case $ac_option in |
750 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
751 | *) ac_optarg=yes ;; |
752 | esac |
753 | eval "with_$ac_package='$ac_optarg'" ;; |
754 | |
755 | -without-* | --without-*) |
756 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
757 | # Reject names that are not valid shell variable names. |
758 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
759 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
760 | { (exit 1); exit 1; }; } |
761 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
762 | eval "with_$ac_package=no" ;; |
763 | |
764 | --x) |
765 | # Obsolete; use --with-x. |
766 | with_x=yes ;; |
767 | |
768 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
769 | | --x-incl | --x-inc | --x-in | --x-i) |
770 | ac_prev=x_includes ;; |
771 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
772 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
773 | x_includes=$ac_optarg ;; |
774 | |
775 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
776 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
777 | ac_prev=x_libraries ;; |
778 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
779 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
780 | x_libraries=$ac_optarg ;; |
781 | |
782 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
783 | Try \`$0 --help' for more information." >&2 |
784 | { (exit 1); exit 1; }; } |
785 | ;; |
786 | |
787 | *=*) |
788 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
789 | # Reject names that are not valid shell variable names. |
790 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
791 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
792 | { (exit 1); exit 1; }; } |
793 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
794 | eval "$ac_envvar='$ac_optarg'" |
795 | export $ac_envvar ;; |
796 | |
797 | *) |
798 | # FIXME: should be removed in autoconf 3.0. |
799 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
800 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
801 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
802 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
803 | ;; |
804 | |
805 | esac |
806 | done |
807 | |
808 | if test -n "$ac_prev"; then |
809 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
810 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
811 | { (exit 1); exit 1; }; } |
812 | fi |
813 | |
814 | # Be sure to have absolute paths. |
815 | for ac_var in exec_prefix prefix |
816 | do |
817 | eval ac_val=$`echo $ac_var` |
818 | case $ac_val in |
819 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
820 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
821 | { (exit 1); exit 1; }; };; |
822 | esac |
823 | done |
824 | |
825 | # Be sure to have absolute paths. |
826 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
827 | localstatedir libdir includedir oldincludedir infodir mandir |
828 | do |
829 | eval ac_val=$`echo $ac_var` |
830 | case $ac_val in |
831 | [\\/$]* | ?:[\\/]* ) ;; |
832 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
833 | { (exit 1); exit 1; }; };; |
834 | esac |
835 | done |
836 | |
837 | # There might be people who depend on the old broken behavior: `$host' |
838 | # used to hold the argument of --host etc. |
839 | # FIXME: To remove some day. |
840 | build=$build_alias |
841 | host=$host_alias |
842 | target=$target_alias |
843 | |
844 | # FIXME: To remove some day. |
845 | if test "x$host_alias" != x; then |
846 | if test "x$build_alias" = x; then |
847 | cross_compiling=maybe |
848 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
849 | If a cross compiler is detected then cross compile mode will be used." >&2 |
850 | elif test "x$build_alias" != "x$host_alias"; then |
851 | cross_compiling=yes |
852 | fi |
853 | fi |
854 | |
855 | ac_tool_prefix= |
856 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
857 | |
858 | test "$silent" = yes && exec 6>/dev/null |
859 | |
860 | |
861 | # Find the source files, if location was not specified. |
862 | if test -z "$srcdir"; then |
863 | ac_srcdir_defaulted=yes |
864 | # Try the directory containing this script, then its parent. |
865 | ac_confdir=`(dirname "$0") 2>/dev/null || |
866 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
867 | X"$0" : 'X\(//\)[^/]' \| \ |
868 | X"$0" : 'X\(//\)$' \| \ |
869 | X"$0" : 'X\(/\)' \| \ |
870 | . : '\(.\)' 2>/dev/null || |
871 | echo X"$0" | |
872 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
873 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
874 | /^X\(\/\/\)$/{ s//\1/; q; } |
875 | /^X\(\/\).*/{ s//\1/; q; } |
876 | s/.*/./; q'` |
877 | srcdir=$ac_confdir |
878 | if test ! -r $srcdir/$ac_unique_file; then |
879 | srcdir=.. |
880 | fi |
881 | else |
882 | ac_srcdir_defaulted=no |
883 | fi |
884 | if test ! -r $srcdir/$ac_unique_file; then |
885 | if test "$ac_srcdir_defaulted" = yes; then |
886 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
887 | { (exit 1); exit 1; }; } |
888 | else |
889 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
890 | { (exit 1); exit 1; }; } |
891 | fi |
892 | fi |
893 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
894 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
895 | { (exit 1); exit 1; }; } |
896 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
897 | ac_env_build_alias_set=${build_alias+set} |
898 | ac_env_build_alias_value=$build_alias |
899 | ac_cv_env_build_alias_set=${build_alias+set} |
900 | ac_cv_env_build_alias_value=$build_alias |
901 | ac_env_host_alias_set=${host_alias+set} |
902 | ac_env_host_alias_value=$host_alias |
903 | ac_cv_env_host_alias_set=${host_alias+set} |
904 | ac_cv_env_host_alias_value=$host_alias |
905 | ac_env_target_alias_set=${target_alias+set} |
906 | ac_env_target_alias_value=$target_alias |
907 | ac_cv_env_target_alias_set=${target_alias+set} |
908 | ac_cv_env_target_alias_value=$target_alias |
909 | ac_env_CC_set=${CC+set} |
910 | ac_env_CC_value=$CC |
911 | ac_cv_env_CC_set=${CC+set} |
912 | ac_cv_env_CC_value=$CC |
913 | ac_env_CFLAGS_set=${CFLAGS+set} |
914 | ac_env_CFLAGS_value=$CFLAGS |
915 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
916 | ac_cv_env_CFLAGS_value=$CFLAGS |
917 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
918 | ac_env_LDFLAGS_value=$LDFLAGS |
919 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
920 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
921 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
922 | ac_env_CPPFLAGS_value=$CPPFLAGS |
923 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
924 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
925 | ac_env_CPP_set=${CPP+set} |
926 | ac_env_CPP_value=$CPP |
927 | ac_cv_env_CPP_set=${CPP+set} |
928 | ac_cv_env_CPP_value=$CPP |
929 | ac_env_CXX_set=${CXX+set} |
930 | ac_env_CXX_value=$CXX |
931 | ac_cv_env_CXX_set=${CXX+set} |
932 | ac_cv_env_CXX_value=$CXX |
933 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
934 | ac_env_CXXFLAGS_value=$CXXFLAGS |
935 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
936 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
937 | ac_env_CXXCPP_set=${CXXCPP+set} |
938 | ac_env_CXXCPP_value=$CXXCPP |
939 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
940 | ac_cv_env_CXXCPP_value=$CXXCPP |
941 | ac_env_F77_set=${F77+set} |
942 | ac_env_F77_value=$F77 |
943 | ac_cv_env_F77_set=${F77+set} |
944 | ac_cv_env_F77_value=$F77 |
945 | ac_env_FFLAGS_set=${FFLAGS+set} |
946 | ac_env_FFLAGS_value=$FFLAGS |
947 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
948 | ac_cv_env_FFLAGS_value=$FFLAGS |
949 | |
950 | # |
951 | # Report the --help message. |
952 | # |
953 | if test "$ac_init_help" = "long"; then |
954 | # Omit some internal or obsolete options to make the list less imposing. |
955 | # This message is too long to be a string in the A/UX 3.1 sh. |
956 | cat <<_ACEOF |
957 | \`configure' configures rfc822lib 0.12 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 rfc822lib 0.12:";; |
1024 | esac |
1025 | cat <<\_ACEOF |
1026 | |
1027 | Optional Features: |
1028 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1029 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1030 | --disable-dependency-tracking speeds up one-time build |
1031 | --enable-dependency-tracking do not reject slow dependency extractors |
1032 | --enable-shared[=PKGS] |
1033 | build shared libraries [default=yes] |
1034 | --enable-static[=PKGS] |
1035 | build static libraries [default=yes] |
1036 | --enable-fast-install[=PKGS] |
1037 | optimize for fast installation [default=yes] |
1038 | --disable-libtool-lock avoid locking (might break parallel builds) |
1039 | |
1040 | Optional Packages: |
1041 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1042 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1043 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1044 | --with-pic try to use only PIC/non-PIC objects [default=use |
1045 | both] |
1046 | --with-tags[=TAGS] |
1047 | include additional configurations [automatic] |
1048 | |
1049 | Some influential environment variables: |
1050 | CC C compiler command |
1051 | CFLAGS C compiler flags |
1052 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1053 | nonstandard directory <lib dir> |
1054 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
1055 | headers in a nonstandard directory <include dir> |
1056 | CPP C preprocessor |
1057 | CXX C++ compiler command |
1058 | CXXFLAGS C++ compiler flags |
1059 | CXXCPP C++ preprocessor |
1060 | F77 Fortran 77 compiler command |
1061 | FFLAGS Fortran 77 compiler flags |
1062 | |
1063 | Use these variables to override the choices made by `configure' or to help |
1064 | it to find libraries and programs with nonstandard names/locations. |
1065 | |
1066 | Report bugs to <courier-users@lists.sourceforge.net>. |
1067 | _ACEOF |
1068 | fi |
1069 | |
1070 | if test "$ac_init_help" = "recursive"; then |
1071 | # If there are subdirs, report their specific --help. |
1072 | ac_popdir=`pwd` |
1073 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1074 | test -d $ac_dir || continue |
1075 | ac_builddir=. |
1076 | |
1077 | if test "$ac_dir" != .; then |
1078 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
1079 | # A "../" for each directory in $ac_dir_suffix. |
1080 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
1081 | else |
1082 | ac_dir_suffix= ac_top_builddir= |
1083 | fi |
1084 | |
1085 | case $srcdir in |
1086 | .) # No --srcdir option. We are building in place. |
1087 | ac_srcdir=. |
1088 | if test -z "$ac_top_builddir"; then |
1089 | ac_top_srcdir=. |
1090 | else |
1091 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
1092 | fi ;; |
1093 | [\\/]* | ?:[\\/]* ) # Absolute path. |
1094 | ac_srcdir=$srcdir$ac_dir_suffix; |
1095 | ac_top_srcdir=$srcdir ;; |
1096 | *) # Relative path. |
1097 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
1098 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
1099 | esac |
1100 | |
1101 | # Do not use `cd foo && pwd` to compute absolute paths, because |
1102 | # the directories may not exist. |
1103 | case `pwd` in |
1104 | .) ac_abs_builddir="$ac_dir";; |
1105 | *) |
1106 | case "$ac_dir" in |
1107 | .) ac_abs_builddir=`pwd`;; |
1108 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
1109 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
1110 | esac;; |
1111 | esac |
1112 | case $ac_abs_builddir in |
1113 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
1114 | *) |
1115 | case ${ac_top_builddir}. in |
1116 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
1117 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
1118 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
1119 | esac;; |
1120 | esac |
1121 | case $ac_abs_builddir in |
1122 | .) ac_abs_srcdir=$ac_srcdir;; |
1123 | *) |
1124 | case $ac_srcdir in |
1125 | .) ac_abs_srcdir=$ac_abs_builddir;; |
1126 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
1127 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
1128 | esac;; |
1129 | esac |
1130 | case $ac_abs_builddir in |
1131 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
1132 | *) |
1133 | case $ac_top_srcdir in |
1134 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
1135 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
1136 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
1137 | esac;; |
1138 | esac |
1139 | |
1140 | cd $ac_dir |
1141 | # Check for guested configure; otherwise get Cygnus style configure. |
1142 | if test -f $ac_srcdir/configure.gnu; then |
1143 | echo |
1144 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
1145 | elif test -f $ac_srcdir/configure; then |
1146 | echo |
1147 | $SHELL $ac_srcdir/configure --help=recursive |
1148 | elif test -f $ac_srcdir/configure.ac || |
1149 | test -f $ac_srcdir/configure.in; then |
1150 | echo |
1151 | $ac_configure --help |
1152 | else |
1153 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1154 | fi |
1155 | cd $ac_popdir |
1156 | done |
1157 | fi |
1158 | |
1159 | test -n "$ac_init_help" && exit 0 |
1160 | if $ac_init_version; then |
1161 | cat <<\_ACEOF |
1162 | rfc822lib configure 0.12 |
1163 | generated by GNU Autoconf 2.59 |
1164 | |
1165 | Copyright (C) 2003 Free Software Foundation, Inc. |
1166 | This configure script is free software; the Free Software Foundation |
1167 | gives unlimited permission to copy, distribute and modify it. |
1168 | _ACEOF |
1169 | exit 0 |
1170 | fi |
1171 | exec 5>config.log |
1172 | cat >&5 <<_ACEOF |
1173 | This file contains any messages produced by compilers while |
1174 | running configure, to aid debugging if configure makes a mistake. |
1175 | |
1176 | It was created by rfc822lib $as_me 0.12, which was |
1177 | generated by GNU Autoconf 2.59. Invocation command line was |
1178 | |
1179 | $ $0 $@ |
1180 | |
1181 | _ACEOF |
1182 | { |
1183 | cat <<_ASUNAME |
1184 | ## --------- ## |
1185 | ## Platform. ## |
1186 | ## --------- ## |
1187 | |
1188 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1189 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1190 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1191 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1192 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1193 | |
1194 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1195 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1196 | |
1197 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1198 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1199 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1200 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
1201 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1202 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1203 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1204 | |
1205 | _ASUNAME |
1206 | |
1207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1208 | for as_dir in $PATH |
1209 | do |
1210 | IFS=$as_save_IFS |
1211 | test -z "$as_dir" && as_dir=. |
1212 | echo "PATH: $as_dir" |
1213 | done |
1214 | |
1215 | } >&5 |
1216 | |
1217 | cat >&5 <<_ACEOF |
1218 | |
1219 | |
1220 | ## ----------- ## |
1221 | ## Core tests. ## |
1222 | ## ----------- ## |
1223 | |
1224 | _ACEOF |
1225 | |
1226 | |
1227 | # Keep a trace of the command line. |
1228 | # Strip out --no-create and --no-recursion so they do not pile up. |
1229 | # Strip out --silent because we don't want to record it for future runs. |
1230 | # Also quote any args containing shell meta-characters. |
1231 | # Make two passes to allow for proper duplicate-argument suppression. |
1232 | ac_configure_args= |
1233 | ac_configure_args0= |
1234 | ac_configure_args1= |
1235 | ac_sep= |
1236 | ac_must_keep_next=false |
1237 | for ac_pass in 1 2 |
1238 | do |
1239 | for ac_arg |
1240 | do |
1241 | case $ac_arg in |
1242 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1243 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1244 | | -silent | --silent | --silen | --sile | --sil) |
1245 | continue ;; |
1246 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1247 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1248 | esac |
1249 | case $ac_pass in |
1250 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1251 | 2) |
1252 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1253 | if test $ac_must_keep_next = true; then |
1254 | ac_must_keep_next=false # Got value, back to normal. |
1255 | else |
1256 | case $ac_arg in |
1257 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
1258 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1259 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1260 | | -with-* | --with-* | -without-* | --without-* | --x) |
1261 | case "$ac_configure_args0 " in |
1262 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1263 | esac |
1264 | ;; |
1265 | -* ) ac_must_keep_next=true ;; |
1266 | esac |
1267 | fi |
1268 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1269 | # Get rid of the leading space. |
1270 | ac_sep=" " |
1271 | ;; |
1272 | esac |
1273 | done |
1274 | done |
1275 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1276 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1277 | |
1278 | # When interrupted or exit'd, cleanup temporary files, and complete |
1279 | # config.log. We remove comments because anyway the quotes in there |
1280 | # would cause problems or look ugly. |
1281 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1282 | # such as our DU 5.0 friend, will then `close' the trap. |
1283 | trap 'exit_status=$? |
1284 | # Save into config.log some information that might help in debugging. |
1285 | { |
1286 | echo |
1287 | |
1288 | cat <<\_ASBOX |
1289 | ## ---------------- ## |
1290 | ## Cache variables. ## |
1291 | ## ---------------- ## |
1292 | _ASBOX |
1293 | echo |
1294 | # The following way of writing the cache mishandles newlines in values, |
1295 | { |
1296 | (set) 2>&1 | |
1297 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1298 | *ac_space=\ *) |
1299 | sed -n \ |
1300 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1301 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
1302 | ;; |
1303 | *) |
1304 | sed -n \ |
1305 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
1306 | ;; |
1307 | esac; |
1308 | } |
1309 | echo |
1310 | |
1311 | cat <<\_ASBOX |
1312 | ## ----------------- ## |
1313 | ## Output variables. ## |
1314 | ## ----------------- ## |
1315 | _ASBOX |
1316 | echo |
1317 | for ac_var in $ac_subst_vars |
1318 | do |
1319 | eval ac_val=$`echo $ac_var` |
1320 | echo "$ac_var='"'"'$ac_val'"'"'" |
1321 | done | sort |
1322 | echo |
1323 | |
1324 | if test -n "$ac_subst_files"; then |
1325 | cat <<\_ASBOX |
1326 | ## ------------- ## |
1327 | ## Output files. ## |
1328 | ## ------------- ## |
1329 | _ASBOX |
1330 | echo |
1331 | for ac_var in $ac_subst_files |
1332 | do |
1333 | eval ac_val=$`echo $ac_var` |
1334 | echo "$ac_var='"'"'$ac_val'"'"'" |
1335 | done | sort |
1336 | echo |
1337 | fi |
1338 | |
1339 | if test -s confdefs.h; then |
1340 | cat <<\_ASBOX |
1341 | ## ----------- ## |
1342 | ## confdefs.h. ## |
1343 | ## ----------- ## |
1344 | _ASBOX |
1345 | echo |
1346 | sed "/^$/d" confdefs.h | sort |
1347 | echo |
1348 | fi |
1349 | test "$ac_signal" != 0 && |
1350 | echo "$as_me: caught signal $ac_signal" |
1351 | echo "$as_me: exit $exit_status" |
1352 | } >&5 |
1353 | rm -f core *.core && |
1354 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1355 | exit $exit_status |
1356 | ' 0 |
1357 | for ac_signal in 1 2 13 15; do |
1358 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1359 | done |
1360 | ac_signal=0 |
1361 | |
1362 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
1363 | rm -rf conftest* confdefs.h |
1364 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
1365 | echo >confdefs.h |
1366 | |
1367 | # Predefined preprocessor variables. |
1368 | |
1369 | cat >>confdefs.h <<_ACEOF |
1370 | #define PACKAGE_NAME "$PACKAGE_NAME" |
1371 | _ACEOF |
1372 | |
1373 | |
1374 | cat >>confdefs.h <<_ACEOF |
1375 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1376 | _ACEOF |
1377 | |
1378 | |
1379 | cat >>confdefs.h <<_ACEOF |
1380 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
1381 | _ACEOF |
1382 | |
1383 | |
1384 | cat >>confdefs.h <<_ACEOF |
1385 | #define PACKAGE_STRING "$PACKAGE_STRING" |
1386 | _ACEOF |
1387 | |
1388 | |
1389 | cat >>confdefs.h <<_ACEOF |
1390 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1391 | _ACEOF |
1392 | |
1393 | |
1394 | # Let the site file select an alternate cache file if it wants to. |
1395 | # Prefer explicitly selected file to automatically selected ones. |
1396 | if test -z "$CONFIG_SITE"; then |
1397 | if test "x$prefix" != xNONE; then |
1398 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
1399 | else |
1400 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
1401 | fi |
1402 | fi |
1403 | for ac_site_file in $CONFIG_SITE; do |
1404 | if test -r "$ac_site_file"; then |
1405 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1406 | echo "$as_me: loading site script $ac_site_file" >&6;} |
1407 | sed 's/^/| /' "$ac_site_file" >&5 |
1408 | . "$ac_site_file" |
1409 | fi |
1410 | done |
1411 | |
1412 | if test -r "$cache_file"; then |
1413 | # Some versions of bash will fail to source /dev/null (special |
1414 | # files actually), so we avoid doing that. |
1415 | if test -f "$cache_file"; then |
1416 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1417 | echo "$as_me: loading cache $cache_file" >&6;} |
1418 | case $cache_file in |
1419 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
1420 | *) . ./$cache_file;; |
1421 | esac |
1422 | fi |
1423 | else |
1424 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1425 | echo "$as_me: creating cache $cache_file" >&6;} |
1426 | >$cache_file |
1427 | fi |
1428 | |
1429 | # Check that the precious variables saved in the cache have kept the same |
1430 | # value. |
1431 | ac_cache_corrupted=false |
1432 | for ac_var in `(set) 2>&1 | |
1433 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
1434 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1435 | eval ac_new_set=\$ac_env_${ac_var}_set |
1436 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1437 | eval ac_new_val="\$ac_env_${ac_var}_value" |
1438 | case $ac_old_set,$ac_new_set in |
1439 | set,) |
1440 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1441 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1442 | ac_cache_corrupted=: ;; |
1443 | ,set) |
1444 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1445 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1446 | ac_cache_corrupted=: ;; |
1447 | ,);; |
1448 | *) |
1449 | if test "x$ac_old_val" != "x$ac_new_val"; then |
1450 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1451 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1452 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1453 | echo "$as_me: former value: $ac_old_val" >&2;} |
1454 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1455 | echo "$as_me: current value: $ac_new_val" >&2;} |
1456 | ac_cache_corrupted=: |
1457 | fi;; |
1458 | esac |
1459 | # Pass precious variables to config.status. |
1460 | if test "$ac_new_set" = set; then |
1461 | case $ac_new_val in |
1462 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1463 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1464 | *) ac_arg=$ac_var=$ac_new_val ;; |
1465 | esac |
1466 | case " $ac_configure_args " in |
1467 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1468 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1469 | esac |
1470 | fi |
1471 | done |
1472 | if $ac_cache_corrupted; then |
1473 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1474 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1475 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1476 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1477 | { (exit 1); exit 1; }; } |
1478 | fi |
1479 | |
1480 | ac_ext=c |
1481 | ac_cpp='$CPP $CPPFLAGS' |
1482 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1483 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1484 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1485 | |
1486 | |
1487 | |
1488 | |
1489 | |
1490 | |
1491 | |
1492 | |
1493 | |
1494 | |
1495 | |
1496 | |
1497 | |
1498 | |
1499 | |
1500 | |
1501 | |
1502 | |
1503 | |
1504 | |
1505 | |
1506 | |
1507 | |
1508 | |
1509 | |
1510 | |
1511 | |
1512 | |
1513 | >confdefs.h # Kill PACKAGE_ macros |
1514 | |
1515 | |
1516 | am__api_version="1.9" |
1517 | ac_aux_dir= |
1518 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1519 | if test -f $ac_dir/install-sh; then |
1520 | ac_aux_dir=$ac_dir |
1521 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1522 | break |
1523 | elif test -f $ac_dir/install.sh; then |
1524 | ac_aux_dir=$ac_dir |
1525 | ac_install_sh="$ac_aux_dir/install.sh -c" |
1526 | break |
1527 | elif test -f $ac_dir/shtool; then |
1528 | ac_aux_dir=$ac_dir |
1529 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1530 | break |
1531 | fi |
1532 | done |
1533 | if test -z "$ac_aux_dir"; then |
1534 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1535 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1536 | { (exit 1); exit 1; }; } |
1537 | fi |
1538 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1539 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1540 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1541 | |
1542 | # Find a good install program. We prefer a C program (faster), |
1543 | # so one script is as good as another. But avoid the broken or |
1544 | # incompatible versions: |
1545 | # SysV /etc/install, /usr/sbin/install |
1546 | # SunOS /usr/etc/install |
1547 | # IRIX /sbin/install |
1548 | # AIX /bin/install |
1549 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
1550 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1551 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
1552 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
1553 | # OS/2's system install, which has a completely different semantic |
1554 | # ./install, which can be erroneously created by make from ./install.sh. |
1555 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1556 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
1557 | if test -z "$INSTALL"; then |
1558 | if test "${ac_cv_path_install+set}" = set; then |
1559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1560 | else |
1561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1562 | for as_dir in $PATH |
1563 | do |
1564 | IFS=$as_save_IFS |
1565 | test -z "$as_dir" && as_dir=. |
1566 | # Account for people who put trailing slashes in PATH elements. |
1567 | case $as_dir/ in |
1568 | ./ | .// | /cC/* | \ |
1569 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
1570 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
1571 | /usr/ucb/* ) ;; |
1572 | *) |
1573 | # OSF1 and SCO ODT 3.0 have their own names for install. |
1574 | # Don't use installbsd from OSF since it installs stuff as root |
1575 | # by default. |
1576 | for ac_prog in ginstall scoinst install; do |
1577 | for ac_exec_ext in '' $ac_executable_extensions; do |
1578 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
1579 | if test $ac_prog = install && |
1580 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
1581 | # AIX install. It has an incompatible calling convention. |
1582 | : |
1583 | elif test $ac_prog = install && |
1584 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
1585 | # program-specific install script used by HP pwplus--don't use. |
1586 | : |
1587 | else |
1588 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
1589 | break 3 |
1590 | fi |
1591 | fi |
1592 | done |
1593 | done |
1594 | ;; |
1595 | esac |
1596 | done |
1597 | |
1598 | |
1599 | fi |
1600 | if test "${ac_cv_path_install+set}" = set; then |
1601 | INSTALL=$ac_cv_path_install |
1602 | else |
1603 | # As a last resort, use the slow shell script. We don't cache a |
1604 | # path for INSTALL within a source directory, because that will |
1605 | # break other packages using the cache if that directory is |
1606 | # removed, or if the path is relative. |
1607 | INSTALL=$ac_install_sh |
1608 | fi |
1609 | fi |
1610 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
1611 | echo "${ECHO_T}$INSTALL" >&6 |
1612 | |
1613 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
1614 | # It thinks the first close brace ends the variable substitution. |
1615 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
1616 | |
1617 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
1618 | |
1619 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
1620 | |
1621 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
1622 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
1623 | # Just in case |
1624 | sleep 1 |
1625 | echo timestamp > conftest.file |
1626 | # Do `set' in a subshell so we don't clobber the current shell's |
1627 | # arguments. Must try -L first in case configure is actually a |
1628 | # symlink; some systems play weird games with the mod time of symlinks |
1629 | # (eg FreeBSD returns the mod time of the symlink's containing |
1630 | # directory). |
1631 | if ( |
1632 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
1633 | if test "$*" = "X"; then |
1634 | # -L didn't work. |
1635 | set X `ls -t $srcdir/configure conftest.file` |
1636 | fi |
1637 | rm -f conftest.file |
1638 | if test "$*" != "X $srcdir/configure conftest.file" \ |
1639 | && test "$*" != "X conftest.file $srcdir/configure"; then |
1640 | |
1641 | # If neither matched, then we have a broken ls. This can happen |
1642 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
1643 | # broken ls alias from the environment. This has actually |
1644 | # happened. Such a system could not be considered "sane". |
1645 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
1646 | alias in your environment" >&5 |
1647 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
1648 | alias in your environment" >&2;} |
1649 | { (exit 1); exit 1; }; } |
1650 | fi |
1651 | |
1652 | test "$2" = conftest.file |
1653 | ) |
1654 | then |
1655 | # Ok. |
1656 | : |
1657 | else |
1658 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
1659 | Check your system clock" >&5 |
1660 | echo "$as_me: error: newly created file is older than distributed files! |
1661 | Check your system clock" >&2;} |
1662 | { (exit 1); exit 1; }; } |
1663 | fi |
1664 | echo "$as_me:$LINENO: result: yes" >&5 |
1665 | echo "${ECHO_T}yes" >&6 |
1666 | test "$program_prefix" != NONE && |
1667 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
1668 | # Use a double $ so make ignores it. |
1669 | test "$program_suffix" != NONE && |
1670 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
1671 | # Double any \ or $. echo might interpret backslashes. |
1672 | # By default was `s,x,x', remove it if useless. |
1673 | cat <<\_ACEOF >conftest.sed |
1674 | s/[\\$]/&&/g;s/;s,x,x,$// |
1675 | _ACEOF |
1676 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
1677 | rm conftest.sed |
1678 | |
1679 | # expand $ac_aux_dir to an absolute path |
1680 | am_aux_dir=`cd $ac_aux_dir && pwd` |
1681 | |
1682 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
1683 | # Use eval to expand $SHELL |
1684 | if eval "$MISSING --run true"; then |
1685 | am_missing_run="$MISSING --run " |
1686 | else |
1687 | am_missing_run= |
1688 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
1689 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
1690 | fi |
1691 | |
1692 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
1693 | # We used to keeping the `.' as first argument, in order to |
1694 | # allow $(mkdir_p) to be used without argument. As in |
1695 | # $(mkdir_p) $(somedir) |
1696 | # where $(somedir) is conditionally defined. However this is wrong |
1697 | # for two reasons: |
1698 | # 1. if the package is installed by a user who cannot write `.' |
1699 | # make install will fail, |
1700 | # 2. the above comment should most certainly read |
1701 | # $(mkdir_p) $(DESTDIR)$(somedir) |
1702 | # so it does not work when $(somedir) is undefined and |
1703 | # $(DESTDIR) is not. |
1704 | # To support the latter case, we have to write |
1705 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
1706 | # so the `.' trick is pointless. |
1707 | mkdir_p='mkdir -p --' |
1708 | else |
1709 | # On NextStep and OpenStep, the `mkdir' command does not |
1710 | # recognize any option. It will interpret all options as |
1711 | # directories to create, and then abort because `.' already |
1712 | # exists. |
1713 | for d in ./-p ./--version; |
1714 | do |
1715 | test -d $d && rmdir $d |
1716 | done |
1717 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
1718 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
1719 | mkdir_p='$(mkinstalldirs)' |
1720 | else |
1721 | mkdir_p='$(install_sh) -d' |
1722 | fi |
1723 | fi |
1724 | |
1725 | for ac_prog in gawk mawk nawk awk |
1726 | do |
1727 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1728 | set dummy $ac_prog; ac_word=$2 |
1729 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1730 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1731 | if test "${ac_cv_prog_AWK+set}" = set; then |
1732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1733 | else |
1734 | if test -n "$AWK"; then |
1735 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
1736 | else |
1737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1738 | for as_dir in $PATH |
1739 | do |
1740 | IFS=$as_save_IFS |
1741 | test -z "$as_dir" && as_dir=. |
1742 | for ac_exec_ext in '' $ac_executable_extensions; do |
1743 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1744 | ac_cv_prog_AWK="$ac_prog" |
1745 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1746 | break 2 |
1747 | fi |
1748 | done |
1749 | done |
1750 | |
1751 | fi |
1752 | fi |
1753 | AWK=$ac_cv_prog_AWK |
1754 | if test -n "$AWK"; then |
1755 | echo "$as_me:$LINENO: result: $AWK" >&5 |
1756 | echo "${ECHO_T}$AWK" >&6 |
1757 | else |
1758 | echo "$as_me:$LINENO: result: no" >&5 |
1759 | echo "${ECHO_T}no" >&6 |
1760 | fi |
1761 | |
1762 | test -n "$AWK" && break |
1763 | done |
1764 | |
1765 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1766 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
1767 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
1768 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
1769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1770 | else |
1771 | cat >conftest.make <<\_ACEOF |
1772 | all: |
1773 | @echo 'ac_maketemp="$(MAKE)"' |
1774 | _ACEOF |
1775 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
1776 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
1777 | if test -n "$ac_maketemp"; then |
1778 | eval ac_cv_prog_make_${ac_make}_set=yes |
1779 | else |
1780 | eval ac_cv_prog_make_${ac_make}_set=no |
1781 | fi |
1782 | rm -f conftest.make |
1783 | fi |
1784 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
1785 | echo "$as_me:$LINENO: result: yes" >&5 |
1786 | echo "${ECHO_T}yes" >&6 |
1787 | SET_MAKE= |
1788 | else |
1789 | echo "$as_me:$LINENO: result: no" >&5 |
1790 | echo "${ECHO_T}no" >&6 |
1791 | SET_MAKE="MAKE=${MAKE-make}" |
1792 | fi |
1793 | |
1794 | rm -rf .tst 2>/dev/null |
1795 | mkdir .tst 2>/dev/null |
1796 | if test -d .tst; then |
1797 | am__leading_dot=. |
1798 | else |
1799 | am__leading_dot=_ |
1800 | fi |
1801 | rmdir .tst 2>/dev/null |
1802 | |
1803 | # test to see if srcdir already configured |
1804 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
1805 | test -f $srcdir/config.status; then |
1806 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
1807 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
1808 | { (exit 1); exit 1; }; } |
1809 | fi |
1810 | |
1811 | # test whether we have cygpath |
1812 | if test -z "$CYGPATH_W"; then |
1813 | if (cygpath --version) >/dev/null 2>/dev/null; then |
1814 | CYGPATH_W='cygpath -w' |
1815 | else |
1816 | CYGPATH_W=echo |
1817 | fi |
1818 | fi |
1819 | |
1820 | |
1821 | # Define the identity of the package. |
1822 | PACKAGE='rfc822lib' |
1823 | VERSION='0.12' |
1824 | |
1825 | |
1826 | # Some tools Automake needs. |
1827 | |
1828 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
1829 | |
1830 | |
1831 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
1832 | |
1833 | |
1834 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
1835 | |
1836 | |
1837 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
1838 | |
1839 | |
1840 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
1841 | |
1842 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
1843 | |
1844 | # Installed binaries are usually stripped using `strip' when the user |
1845 | # run `make install-strip'. However `strip' might not be the right |
1846 | # tool to use in cross-compilation environments, therefore Automake |
1847 | # will honor the `STRIP' environment variable to overrule this program. |
1848 | if test "$cross_compiling" != no; then |
1849 | if test -n "$ac_tool_prefix"; then |
1850 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
1851 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
1852 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1853 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1854 | if test "${ac_cv_prog_STRIP+set}" = set; then |
1855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1856 | else |
1857 | if test -n "$STRIP"; then |
1858 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
1859 | else |
1860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1861 | for as_dir in $PATH |
1862 | do |
1863 | IFS=$as_save_IFS |
1864 | test -z "$as_dir" && as_dir=. |
1865 | for ac_exec_ext in '' $ac_executable_extensions; do |
1866 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1867 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
1868 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1869 | break 2 |
1870 | fi |
1871 | done |
1872 | done |
1873 | |
1874 | fi |
1875 | fi |
1876 | STRIP=$ac_cv_prog_STRIP |
1877 | if test -n "$STRIP"; then |
1878 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
1879 | echo "${ECHO_T}$STRIP" >&6 |
1880 | else |
1881 | echo "$as_me:$LINENO: result: no" >&5 |
1882 | echo "${ECHO_T}no" >&6 |
1883 | fi |
1884 | |
1885 | fi |
1886 | if test -z "$ac_cv_prog_STRIP"; then |
1887 | ac_ct_STRIP=$STRIP |
1888 | # Extract the first word of "strip", so it can be a program name with args. |
1889 | set dummy strip; ac_word=$2 |
1890 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1891 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1892 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
1893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1894 | else |
1895 | if test -n "$ac_ct_STRIP"; then |
1896 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
1897 | else |
1898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1899 | for as_dir in $PATH |
1900 | do |
1901 | IFS=$as_save_IFS |
1902 | test -z "$as_dir" && as_dir=. |
1903 | for ac_exec_ext in '' $ac_executable_extensions; do |
1904 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1905 | ac_cv_prog_ac_ct_STRIP="strip" |
1906 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1907 | break 2 |
1908 | fi |
1909 | done |
1910 | done |
1911 | |
1912 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
1913 | fi |
1914 | fi |
1915 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
1916 | if test -n "$ac_ct_STRIP"; then |
1917 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
1918 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
1919 | else |
1920 | echo "$as_me:$LINENO: result: no" >&5 |
1921 | echo "${ECHO_T}no" >&6 |
1922 | fi |
1923 | |
1924 | STRIP=$ac_ct_STRIP |
1925 | else |
1926 | STRIP="$ac_cv_prog_STRIP" |
1927 | fi |
1928 | |
1929 | fi |
1930 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
1931 | |
1932 | # We need awk for the "check" target. The system "awk" is bad on |
1933 | # some platforms. |
1934 | # Always define AMTAR for backward compatibility. |
1935 | |
1936 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
1937 | |
1938 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
1939 | |
1940 | |
1941 | |
1942 | |
1943 | |
1944 | ac_config_headers="$ac_config_headers config.h" |
1945 | |
1946 | |
1947 | ac_ext=c |
1948 | ac_cpp='$CPP $CPPFLAGS' |
1949 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1950 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1951 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1952 | if test -n "$ac_tool_prefix"; then |
1953 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
1954 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
1955 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1956 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1957 | if test "${ac_cv_prog_CC+set}" = set; then |
1958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1959 | else |
1960 | if test -n "$CC"; then |
1961 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1962 | else |
1963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1964 | for as_dir in $PATH |
1965 | do |
1966 | IFS=$as_save_IFS |
1967 | test -z "$as_dir" && as_dir=. |
1968 | for ac_exec_ext in '' $ac_executable_extensions; do |
1969 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1970 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1971 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1972 | break 2 |
1973 | fi |
1974 | done |
1975 | done |
1976 | |
1977 | fi |
1978 | fi |
1979 | CC=$ac_cv_prog_CC |
1980 | if test -n "$CC"; then |
1981 | echo "$as_me:$LINENO: result: $CC" >&5 |
1982 | echo "${ECHO_T}$CC" >&6 |
1983 | else |
1984 | echo "$as_me:$LINENO: result: no" >&5 |
1985 | echo "${ECHO_T}no" >&6 |
1986 | fi |
1987 | |
1988 | fi |
1989 | if test -z "$ac_cv_prog_CC"; then |
1990 | ac_ct_CC=$CC |
1991 | # Extract the first word of "gcc", so it can be a program name with args. |
1992 | set dummy gcc; ac_word=$2 |
1993 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1994 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1995 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1997 | else |
1998 | if test -n "$ac_ct_CC"; then |
1999 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2000 | else |
2001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2002 | for as_dir in $PATH |
2003 | do |
2004 | IFS=$as_save_IFS |
2005 | test -z "$as_dir" && as_dir=. |
2006 | for ac_exec_ext in '' $ac_executable_extensions; do |
2007 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2008 | ac_cv_prog_ac_ct_CC="gcc" |
2009 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2010 | break 2 |
2011 | fi |
2012 | done |
2013 | done |
2014 | |
2015 | fi |
2016 | fi |
2017 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2018 | if test -n "$ac_ct_CC"; then |
2019 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2020 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2021 | else |
2022 | echo "$as_me:$LINENO: result: no" >&5 |
2023 | echo "${ECHO_T}no" >&6 |
2024 | fi |
2025 | |
2026 | CC=$ac_ct_CC |
2027 | else |
2028 | CC="$ac_cv_prog_CC" |
2029 | fi |
2030 | |
2031 | if test -z "$CC"; then |
2032 | if test -n "$ac_tool_prefix"; then |
2033 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
2034 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2035 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2036 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2037 | if test "${ac_cv_prog_CC+set}" = set; then |
2038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2039 | else |
2040 | if test -n "$CC"; then |
2041 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2042 | else |
2043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2044 | for as_dir in $PATH |
2045 | do |
2046 | IFS=$as_save_IFS |
2047 | test -z "$as_dir" && as_dir=. |
2048 | for ac_exec_ext in '' $ac_executable_extensions; do |
2049 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2050 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2051 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2052 | break 2 |
2053 | fi |
2054 | done |
2055 | done |
2056 | |
2057 | fi |
2058 | fi |
2059 | CC=$ac_cv_prog_CC |
2060 | if test -n "$CC"; then |
2061 | echo "$as_me:$LINENO: result: $CC" >&5 |
2062 | echo "${ECHO_T}$CC" >&6 |
2063 | else |
2064 | echo "$as_me:$LINENO: result: no" >&5 |
2065 | echo "${ECHO_T}no" >&6 |
2066 | fi |
2067 | |
2068 | fi |
2069 | if test -z "$ac_cv_prog_CC"; then |
2070 | ac_ct_CC=$CC |
2071 | # Extract the first word of "cc", so it can be a program name with args. |
2072 | set dummy cc; ac_word=$2 |
2073 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2074 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2075 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2077 | else |
2078 | if test -n "$ac_ct_CC"; then |
2079 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2080 | else |
2081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2082 | for as_dir in $PATH |
2083 | do |
2084 | IFS=$as_save_IFS |
2085 | test -z "$as_dir" && as_dir=. |
2086 | for ac_exec_ext in '' $ac_executable_extensions; do |
2087 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2088 | ac_cv_prog_ac_ct_CC="cc" |
2089 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2090 | break 2 |
2091 | fi |
2092 | done |
2093 | done |
2094 | |
2095 | fi |
2096 | fi |
2097 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2098 | if test -n "$ac_ct_CC"; then |
2099 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2100 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2101 | else |
2102 | echo "$as_me:$LINENO: result: no" >&5 |
2103 | echo "${ECHO_T}no" >&6 |
2104 | fi |
2105 | |
2106 | CC=$ac_ct_CC |
2107 | else |
2108 | CC="$ac_cv_prog_CC" |
2109 | fi |
2110 | |
2111 | fi |
2112 | if test -z "$CC"; then |
2113 | # Extract the first word of "cc", so it can be a program name with args. |
2114 | set dummy cc; ac_word=$2 |
2115 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2116 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2117 | if test "${ac_cv_prog_CC+set}" = set; then |
2118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2119 | else |
2120 | if test -n "$CC"; then |
2121 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2122 | else |
2123 | ac_prog_rejected=no |
2124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2125 | for as_dir in $PATH |
2126 | do |
2127 | IFS=$as_save_IFS |
2128 | test -z "$as_dir" && as_dir=. |
2129 | for ac_exec_ext in '' $ac_executable_extensions; do |
2130 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2131 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2132 | ac_prog_rejected=yes |
2133 | continue |
2134 | fi |
2135 | ac_cv_prog_CC="cc" |
2136 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2137 | break 2 |
2138 | fi |
2139 | done |
2140 | done |
2141 | |
2142 | if test $ac_prog_rejected = yes; then |
2143 | # We found a bogon in the path, so make sure we never use it. |
2144 | set dummy $ac_cv_prog_CC |
2145 | shift |
2146 | if test $# != 0; then |
2147 | # We chose a different compiler from the bogus one. |
2148 | # However, it has the same basename, so the bogon will be chosen |
2149 | # first if we set CC to just the basename; use the full file name. |
2150 | shift |
2151 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
2152 | fi |
2153 | fi |
2154 | fi |
2155 | fi |
2156 | CC=$ac_cv_prog_CC |
2157 | if test -n "$CC"; then |
2158 | echo "$as_me:$LINENO: result: $CC" >&5 |
2159 | echo "${ECHO_T}$CC" >&6 |
2160 | else |
2161 | echo "$as_me:$LINENO: result: no" >&5 |
2162 | echo "${ECHO_T}no" >&6 |
2163 | fi |
2164 | |
2165 | fi |
2166 | if test -z "$CC"; then |
2167 | if test -n "$ac_tool_prefix"; then |
2168 | for ac_prog in cl |
2169 | do |
2170 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2171 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2172 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2173 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2174 | if test "${ac_cv_prog_CC+set}" = set; then |
2175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2176 | else |
2177 | if test -n "$CC"; then |
2178 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2179 | else |
2180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2181 | for as_dir in $PATH |
2182 | do |
2183 | IFS=$as_save_IFS |
2184 | test -z "$as_dir" && as_dir=. |
2185 | for ac_exec_ext in '' $ac_executable_extensions; do |
2186 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2187 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2188 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2189 | break 2 |
2190 | fi |
2191 | done |
2192 | done |
2193 | |
2194 | fi |
2195 | fi |
2196 | CC=$ac_cv_prog_CC |
2197 | if test -n "$CC"; then |
2198 | echo "$as_me:$LINENO: result: $CC" >&5 |
2199 | echo "${ECHO_T}$CC" >&6 |
2200 | else |
2201 | echo "$as_me:$LINENO: result: no" >&5 |
2202 | echo "${ECHO_T}no" >&6 |
2203 | fi |
2204 | |
2205 | test -n "$CC" && break |
2206 | done |
2207 | fi |
2208 | if test -z "$CC"; then |
2209 | ac_ct_CC=$CC |
2210 | for ac_prog in cl |
2211 | do |
2212 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2213 | set dummy $ac_prog; ac_word=$2 |
2214 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2215 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2216 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2218 | else |
2219 | if test -n "$ac_ct_CC"; then |
2220 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2221 | else |
2222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2223 | for as_dir in $PATH |
2224 | do |
2225 | IFS=$as_save_IFS |
2226 | test -z "$as_dir" && as_dir=. |
2227 | for ac_exec_ext in '' $ac_executable_extensions; do |
2228 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2229 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2230 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2231 | break 2 |
2232 | fi |
2233 | done |
2234 | done |
2235 | |
2236 | fi |
2237 | fi |
2238 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2239 | if test -n "$ac_ct_CC"; then |
2240 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2241 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2242 | else |
2243 | echo "$as_me:$LINENO: result: no" >&5 |
2244 | echo "${ECHO_T}no" >&6 |
2245 | fi |
2246 | |
2247 | test -n "$ac_ct_CC" && break |
2248 | done |
2249 | |
2250 | CC=$ac_ct_CC |
2251 | fi |
2252 | |
2253 | fi |
2254 | |
2255 | |
2256 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2257 | See \`config.log' for more details." >&5 |
2258 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
2259 | See \`config.log' for more details." >&2;} |
2260 | { (exit 1); exit 1; }; } |
2261 | |
2262 | # Provide some information about the compiler. |
2263 | echo "$as_me:$LINENO:" \ |
2264 | "checking for C compiler version" >&5 |
2265 | ac_compiler=`set X $ac_compile; echo $2` |
2266 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
2267 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
2268 | ac_status=$? |
2269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2270 | (exit $ac_status); } |
2271 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
2272 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
2273 | ac_status=$? |
2274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2275 | (exit $ac_status); } |
2276 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
2277 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
2278 | ac_status=$? |
2279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2280 | (exit $ac_status); } |
2281 | |
2282 | cat >conftest.$ac_ext <<_ACEOF |
2283 | /* confdefs.h. */ |
2284 | _ACEOF |
2285 | cat confdefs.h >>conftest.$ac_ext |
2286 | cat >>conftest.$ac_ext <<_ACEOF |
2287 | /* end confdefs.h. */ |
2288 | |
2289 | int |
2290 | main () |
2291 | { |
2292 | |
2293 | ; |
2294 | return 0; |
2295 | } |
2296 | _ACEOF |
2297 | ac_clean_files_save=$ac_clean_files |
2298 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2299 | # Try to create an executable without -o first, disregard a.out. |
2300 | # It will help us diagnose broken compilers, and finding out an intuition |
2301 | # of exeext. |
2302 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2303 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
2304 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2305 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
2306 | (eval $ac_link_default) 2>&5 |
2307 | ac_status=$? |
2308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2309 | (exit $ac_status); }; then |
2310 | # Find the output, starting from the most likely. This scheme is |
2311 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
2312 | # resort. |
2313 | |
2314 | # Be careful to initialize this variable, since it used to be cached. |
2315 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
2316 | ac_cv_exeext= |
2317 | # b.out is created by i960 compilers. |
2318 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
2319 | do |
2320 | test -f "$ac_file" || continue |
2321 | case $ac_file in |
2322 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
2323 | ;; |
2324 | conftest.$ac_ext ) |
2325 | # This is the source file. |
2326 | ;; |
2327 | [ab].out ) |
2328 | # We found the default executable, but exeext='' is most |
2329 | # certainly right. |
2330 | break;; |
2331 | *.* ) |
2332 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2333 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
2334 | # but it would be cool to find out if it's true. Does anybody |
2335 | # maintain Libtool? --akim. |
2336 | export ac_cv_exeext |
2337 | break;; |
2338 | * ) |
2339 | break;; |
2340 | esac |
2341 | done |
2342 | else |
2343 | echo "$as_me: failed program was:" >&5 |
2344 | sed 's/^/| /' conftest.$ac_ext >&5 |
2345 | |
2346 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2347 | See \`config.log' for more details." >&5 |
2348 | echo "$as_me: error: C compiler cannot create executables |
2349 | See \`config.log' for more details." >&2;} |
2350 | { (exit 77); exit 77; }; } |
2351 | fi |
2352 | |
2353 | ac_exeext=$ac_cv_exeext |
2354 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
2355 | echo "${ECHO_T}$ac_file" >&6 |
2356 | |
2357 | # Check the compiler produces executables we can run. If not, either |
2358 | # the compiler is broken, or we cross compile. |
2359 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2360 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
2361 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2362 | # If not cross compiling, check that we can run a simple program. |
2363 | if test "$cross_compiling" != yes; then |
2364 | if { ac_try='./$ac_file' |
2365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2366 | (eval $ac_try) 2>&5 |
2367 | ac_status=$? |
2368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2369 | (exit $ac_status); }; }; then |
2370 | cross_compiling=no |
2371 | else |
2372 | if test "$cross_compiling" = maybe; then |
2373 | cross_compiling=yes |
2374 | else |
2375 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
2376 | If you meant to cross compile, use \`--host'. |
2377 | See \`config.log' for more details." >&5 |
2378 | echo "$as_me: error: cannot run C compiled programs. |
2379 | If you meant to cross compile, use \`--host'. |
2380 | See \`config.log' for more details." >&2;} |
2381 | { (exit 1); exit 1; }; } |
2382 | fi |
2383 | fi |
2384 | fi |
2385 | echo "$as_me:$LINENO: result: yes" >&5 |
2386 | echo "${ECHO_T}yes" >&6 |
2387 | |
2388 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2389 | ac_clean_files=$ac_clean_files_save |
2390 | # Check the compiler produces executables we can run. If not, either |
2391 | # the compiler is broken, or we cross compile. |
2392 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2393 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
2394 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2395 | echo "${ECHO_T}$cross_compiling" >&6 |
2396 | |
2397 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2398 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
2399 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2400 | (eval $ac_link) 2>&5 |
2401 | ac_status=$? |
2402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2403 | (exit $ac_status); }; then |
2404 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2405 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2406 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
2407 | # `rm'. |
2408 | for ac_file in conftest.exe conftest conftest.*; do |
2409 | test -f "$ac_file" || continue |
2410 | case $ac_file in |
2411 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
2412 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2413 | export ac_cv_exeext |
2414 | break;; |
2415 | * ) break;; |
2416 | esac |
2417 | done |
2418 | else |
2419 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2420 | See \`config.log' for more details." >&5 |
2421 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2422 | See \`config.log' for more details." >&2;} |
2423 | { (exit 1); exit 1; }; } |
2424 | fi |
2425 | |
2426 | rm -f conftest$ac_cv_exeext |
2427 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2428 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
2429 | |
2430 | rm -f conftest.$ac_ext |
2431 | EXEEXT=$ac_cv_exeext |
2432 | ac_exeext=$EXEEXT |
2433 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2434 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
2435 | if test "${ac_cv_objext+set}" = set; then |
2436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2437 | else |
2438 | cat >conftest.$ac_ext <<_ACEOF |
2439 | /* confdefs.h. */ |
2440 | _ACEOF |
2441 | cat confdefs.h >>conftest.$ac_ext |
2442 | cat >>conftest.$ac_ext <<_ACEOF |
2443 | /* end confdefs.h. */ |
2444 | |
2445 | int |
2446 | main () |
2447 | { |
2448 | |
2449 | ; |
2450 | return 0; |
2451 | } |
2452 | _ACEOF |
2453 | rm -f conftest.o conftest.obj |
2454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2455 | (eval $ac_compile) 2>&5 |
2456 | ac_status=$? |
2457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2458 | (exit $ac_status); }; then |
2459 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
2460 | case $ac_file in |
2461 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
2462 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2463 | break;; |
2464 | esac |
2465 | done |
2466 | else |
2467 | echo "$as_me: failed program was:" >&5 |
2468 | sed 's/^/| /' conftest.$ac_ext >&5 |
2469 | |
2470 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2471 | See \`config.log' for more details." >&5 |
2472 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
2473 | See \`config.log' for more details." >&2;} |
2474 | { (exit 1); exit 1; }; } |
2475 | fi |
2476 | |
2477 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2478 | fi |
2479 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2480 | echo "${ECHO_T}$ac_cv_objext" >&6 |
2481 | OBJEXT=$ac_cv_objext |
2482 | ac_objext=$OBJEXT |
2483 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2484 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
2485 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2487 | else |
2488 | cat >conftest.$ac_ext <<_ACEOF |
2489 | /* confdefs.h. */ |
2490 | _ACEOF |
2491 | cat confdefs.h >>conftest.$ac_ext |
2492 | cat >>conftest.$ac_ext <<_ACEOF |
2493 | /* end confdefs.h. */ |
2494 | |
2495 | int |
2496 | main () |
2497 | { |
2498 | #ifndef __GNUC__ |
2499 | choke me |
2500 | #endif |
2501 | |
2502 | ; |
2503 | return 0; |
2504 | } |
2505 | _ACEOF |
2506 | rm -f conftest.$ac_objext |
2507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2508 | (eval $ac_compile) 2>conftest.er1 |
2509 | ac_status=$? |
2510 | grep -v '^ *+' conftest.er1 >conftest.err |
2511 | rm -f conftest.er1 |
2512 | cat conftest.err >&5 |
2513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2514 | (exit $ac_status); } && |
2515 | { ac_try='test -z "$ac_c_werror_flag" |
2516 | || test ! -s conftest.err' |
2517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2518 | (eval $ac_try) 2>&5 |
2519 | ac_status=$? |
2520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2521 | (exit $ac_status); }; } && |
2522 | { ac_try='test -s conftest.$ac_objext' |
2523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2524 | (eval $ac_try) 2>&5 |
2525 | ac_status=$? |
2526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2527 | (exit $ac_status); }; }; then |
2528 | ac_compiler_gnu=yes |
2529 | else |
2530 | echo "$as_me: failed program was:" >&5 |
2531 | sed 's/^/| /' conftest.$ac_ext >&5 |
2532 | |
2533 | ac_compiler_gnu=no |
2534 | fi |
2535 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2536 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2537 | |
2538 | fi |
2539 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2540 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
2541 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2542 | ac_test_CFLAGS=${CFLAGS+set} |
2543 | ac_save_CFLAGS=$CFLAGS |
2544 | CFLAGS="-g" |
2545 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2546 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
2547 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2549 | else |
2550 | cat >conftest.$ac_ext <<_ACEOF |
2551 | /* confdefs.h. */ |
2552 | _ACEOF |
2553 | cat confdefs.h >>conftest.$ac_ext |
2554 | cat >>conftest.$ac_ext <<_ACEOF |
2555 | /* end confdefs.h. */ |
2556 | |
2557 | int |
2558 | main () |
2559 | { |
2560 | |
2561 | ; |
2562 | return 0; |
2563 | } |
2564 | _ACEOF |
2565 | rm -f conftest.$ac_objext |
2566 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2567 | (eval $ac_compile) 2>conftest.er1 |
2568 | ac_status=$? |
2569 | grep -v '^ *+' conftest.er1 >conftest.err |
2570 | rm -f conftest.er1 |
2571 | cat conftest.err >&5 |
2572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2573 | (exit $ac_status); } && |
2574 | { ac_try='test -z "$ac_c_werror_flag" |
2575 | || test ! -s conftest.err' |
2576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2577 | (eval $ac_try) 2>&5 |
2578 | ac_status=$? |
2579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2580 | (exit $ac_status); }; } && |
2581 | { ac_try='test -s conftest.$ac_objext' |
2582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2583 | (eval $ac_try) 2>&5 |
2584 | ac_status=$? |
2585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2586 | (exit $ac_status); }; }; then |
2587 | ac_cv_prog_cc_g=yes |
2588 | else |
2589 | echo "$as_me: failed program was:" >&5 |
2590 | sed 's/^/| /' conftest.$ac_ext >&5 |
2591 | |
2592 | ac_cv_prog_cc_g=no |
2593 | fi |
2594 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2595 | fi |
2596 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2597 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
2598 | if test "$ac_test_CFLAGS" = set; then |
2599 | CFLAGS=$ac_save_CFLAGS |
2600 | elif test $ac_cv_prog_cc_g = yes; then |
2601 | if test "$GCC" = yes; then |
2602 | CFLAGS="-g -O2" |
2603 | else |
2604 | CFLAGS="-g" |
2605 | fi |
2606 | else |
2607 | if test "$GCC" = yes; then |
2608 | CFLAGS="-O2" |
2609 | else |
2610 | CFLAGS= |
2611 | fi |
2612 | fi |
2613 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2614 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
2615 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
2616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2617 | else |
2618 | ac_cv_prog_cc_stdc=no |
2619 | ac_save_CC=$CC |
2620 | cat >conftest.$ac_ext <<_ACEOF |
2621 | /* confdefs.h. */ |
2622 | _ACEOF |
2623 | cat confdefs.h >>conftest.$ac_ext |
2624 | cat >>conftest.$ac_ext <<_ACEOF |
2625 | /* end confdefs.h. */ |
2626 | #include <stdarg.h> |
2627 | #include <stdio.h> |
2628 | #include <sys/types.h> |
2629 | #include <sys/stat.h> |
2630 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2631 | struct buf { int x; }; |
2632 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
2633 | static char *e (p, i) |
2634 | char **p; |
2635 | int i; |
2636 | { |
2637 | return p[i]; |
2638 | } |
2639 | static char *f (char * (*g) (char **, int), char **p, ...) |
2640 | { |
2641 | char *s; |
2642 | va_list v; |
2643 | va_start (v,p); |
2644 | s = g (p, va_arg (v,int)); |
2645 | va_end (v); |
2646 | return s; |
2647 | } |
2648 | |
2649 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2650 | function prototypes and stuff, but not '\xHH' hex character constants. |
2651 | These don't provoke an error unfortunately, instead are silently treated |
2652 | as 'x'. The following induces an error, until -std1 is added to get |
2653 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2654 | array size at least. It's necessary to write '\x00'==0 to get something |
2655 | that's true only with -std1. */ |
2656 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2657 | |
2658 | int test (int i, double x); |
2659 | struct s1 {int (*f) (int a);}; |
2660 | struct s2 {int (*f) (double a);}; |
2661 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
2662 | int argc; |
2663 | char **argv; |
2664 | int |
2665 | main () |
2666 | { |
2667 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2668 | ; |
2669 | return 0; |
2670 | } |
2671 | _ACEOF |
2672 | # Don't try gcc -ansi; that turns off useful extensions and |
2673 | # breaks some systems' header files. |
2674 | # AIX -qlanglvl=ansi |
2675 | # Ultrix and OSF/1 -std1 |
2676 | # HP-UX 10.20 and later -Ae |
2677 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
2678 | # SVR4 -Xc -D__EXTENSIONS__ |
2679 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2680 | do |
2681 | CC="$ac_save_CC $ac_arg" |
2682 | rm -f conftest.$ac_objext |
2683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2684 | (eval $ac_compile) 2>conftest.er1 |
2685 | ac_status=$? |
2686 | grep -v '^ *+' conftest.er1 >conftest.err |
2687 | rm -f conftest.er1 |
2688 | cat conftest.err >&5 |
2689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2690 | (exit $ac_status); } && |
2691 | { ac_try='test -z "$ac_c_werror_flag" |
2692 | || test ! -s conftest.err' |
2693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2694 | (eval $ac_try) 2>&5 |
2695 | ac_status=$? |
2696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2697 | (exit $ac_status); }; } && |
2698 | { ac_try='test -s conftest.$ac_objext' |
2699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2700 | (eval $ac_try) 2>&5 |
2701 | ac_status=$? |
2702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2703 | (exit $ac_status); }; }; then |
2704 | ac_cv_prog_cc_stdc=$ac_arg |
2705 | break |
2706 | else |
2707 | echo "$as_me: failed program was:" >&5 |
2708 | sed 's/^/| /' conftest.$ac_ext >&5 |
2709 | |
2710 | fi |
2711 | rm -f conftest.err conftest.$ac_objext |
2712 | done |
2713 | rm -f conftest.$ac_ext conftest.$ac_objext |
2714 | CC=$ac_save_CC |
2715 | |
2716 | fi |
2717 | |
2718 | case "x$ac_cv_prog_cc_stdc" in |
2719 | x|xno) |
2720 | echo "$as_me:$LINENO: result: none needed" >&5 |
2721 | echo "${ECHO_T}none needed" >&6 ;; |
2722 | *) |
2723 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2724 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
2725 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
2726 | esac |
2727 | |
2728 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2729 | # in C++ we need to declare it. In case someone uses the same compiler |
2730 | # for both compiling C and C++ we need to have the C++ compiler decide |
2731 | # the declaration of exit, since it's the most demanding environment. |
2732 | cat >conftest.$ac_ext <<_ACEOF |
2733 | #ifndef __cplusplus |
2734 | choke me |
2735 | #endif |
2736 | _ACEOF |
2737 | rm -f conftest.$ac_objext |
2738 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2739 | (eval $ac_compile) 2>conftest.er1 |
2740 | ac_status=$? |
2741 | grep -v '^ *+' conftest.er1 >conftest.err |
2742 | rm -f conftest.er1 |
2743 | cat conftest.err >&5 |
2744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2745 | (exit $ac_status); } && |
2746 | { ac_try='test -z "$ac_c_werror_flag" |
2747 | || test ! -s conftest.err' |
2748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2749 | (eval $ac_try) 2>&5 |
2750 | ac_status=$? |
2751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2752 | (exit $ac_status); }; } && |
2753 | { ac_try='test -s conftest.$ac_objext' |
2754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2755 | (eval $ac_try) 2>&5 |
2756 | ac_status=$? |
2757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2758 | (exit $ac_status); }; }; then |
2759 | for ac_declaration in \ |
2760 | '' \ |
2761 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2762 | 'extern "C" void std::exit (int); using std::exit;' \ |
2763 | 'extern "C" void exit (int) throw ();' \ |
2764 | 'extern "C" void exit (int);' \ |
2765 | 'void exit (int);' |
2766 | do |
2767 | cat >conftest.$ac_ext <<_ACEOF |
2768 | /* confdefs.h. */ |
2769 | _ACEOF |
2770 | cat confdefs.h >>conftest.$ac_ext |
2771 | cat >>conftest.$ac_ext <<_ACEOF |
2772 | /* end confdefs.h. */ |
2773 | $ac_declaration |
2774 | #include <stdlib.h> |
2775 | int |
2776 | main () |
2777 | { |
2778 | exit (42); |
2779 | ; |
2780 | return 0; |
2781 | } |
2782 | _ACEOF |
2783 | rm -f conftest.$ac_objext |
2784 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2785 | (eval $ac_compile) 2>conftest.er1 |
2786 | ac_status=$? |
2787 | grep -v '^ *+' conftest.er1 >conftest.err |
2788 | rm -f conftest.er1 |
2789 | cat conftest.err >&5 |
2790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2791 | (exit $ac_status); } && |
2792 | { ac_try='test -z "$ac_c_werror_flag" |
2793 | || test ! -s conftest.err' |
2794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2795 | (eval $ac_try) 2>&5 |
2796 | ac_status=$? |
2797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2798 | (exit $ac_status); }; } && |
2799 | { ac_try='test -s conftest.$ac_objext' |
2800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2801 | (eval $ac_try) 2>&5 |
2802 | ac_status=$? |
2803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2804 | (exit $ac_status); }; }; then |
2805 | : |
2806 | else |
2807 | echo "$as_me: failed program was:" >&5 |
2808 | sed 's/^/| /' conftest.$ac_ext >&5 |
2809 | |
2810 | continue |
2811 | fi |
2812 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2813 | cat >conftest.$ac_ext <<_ACEOF |
2814 | /* confdefs.h. */ |
2815 | _ACEOF |
2816 | cat confdefs.h >>conftest.$ac_ext |
2817 | cat >>conftest.$ac_ext <<_ACEOF |
2818 | /* end confdefs.h. */ |
2819 | $ac_declaration |
2820 | int |
2821 | main () |
2822 | { |
2823 | exit (42); |
2824 | ; |
2825 | return 0; |
2826 | } |
2827 | _ACEOF |
2828 | rm -f conftest.$ac_objext |
2829 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2830 | (eval $ac_compile) 2>conftest.er1 |
2831 | ac_status=$? |
2832 | grep -v '^ *+' conftest.er1 >conftest.err |
2833 | rm -f conftest.er1 |
2834 | cat conftest.err >&5 |
2835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2836 | (exit $ac_status); } && |
2837 | { ac_try='test -z "$ac_c_werror_flag" |
2838 | || test ! -s conftest.err' |
2839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2840 | (eval $ac_try) 2>&5 |
2841 | ac_status=$? |
2842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2843 | (exit $ac_status); }; } && |
2844 | { ac_try='test -s conftest.$ac_objext' |
2845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2846 | (eval $ac_try) 2>&5 |
2847 | ac_status=$? |
2848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2849 | (exit $ac_status); }; }; then |
2850 | break |
2851 | else |
2852 | echo "$as_me: failed program was:" >&5 |
2853 | sed 's/^/| /' conftest.$ac_ext >&5 |
2854 | |
2855 | fi |
2856 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2857 | done |
2858 | rm -f conftest* |
2859 | if test -n "$ac_declaration"; then |
2860 | echo '#ifdef __cplusplus' >>confdefs.h |
2861 | echo $ac_declaration >>confdefs.h |
2862 | echo '#endif' >>confdefs.h |
2863 | fi |
2864 | |
2865 | else |
2866 | echo "$as_me: failed program was:" >&5 |
2867 | sed 's/^/| /' conftest.$ac_ext >&5 |
2868 | |
2869 | fi |
2870 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2871 | ac_ext=c |
2872 | ac_cpp='$CPP $CPPFLAGS' |
2873 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2874 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2875 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2876 | DEPDIR="${am__leading_dot}deps" |
2877 | |
2878 | ac_config_commands="$ac_config_commands depfiles" |
2879 | |
2880 | |
2881 | am_make=${MAKE-make} |
2882 | cat > confinc << 'END' |
2883 | am__doit: |
2884 | @echo done |
2885 | .PHONY: am__doit |
2886 | END |
2887 | # If we don't find an include directive, just comment out the code. |
2888 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
2889 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
2890 | am__include="#" |
2891 | am__quote= |
2892 | _am_result=none |
2893 | # First try GNU make style include. |
2894 | echo "include confinc" > confmf |
2895 | # We grep out `Entering directory' and `Leaving directory' |
2896 | # messages which can occur if `w' ends up in MAKEFLAGS. |
2897 | # In particular we don't look at `^make:' because GNU make might |
2898 | # be invoked under some other name (usually "gmake"), in which |
2899 | # case it prints its new name instead of `make'. |
2900 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
2901 | am__include=include |
2902 | am__quote= |
2903 | _am_result=GNU |
2904 | fi |
2905 | # Now try BSD make style include. |
2906 | if test "$am__include" = "#"; then |
2907 | echo '.include "confinc"' > confmf |
2908 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
2909 | am__include=.include |
2910 | am__quote="\"" |
2911 | _am_result=BSD |
2912 | fi |
2913 | fi |
2914 | |
2915 | |
2916 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
2917 | echo "${ECHO_T}$_am_result" >&6 |
2918 | rm -f confinc confmf |
2919 | |
2920 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
2921 | if test "${enable_dependency_tracking+set}" = set; then |
2922 | enableval="$enable_dependency_tracking" |
2923 | |
2924 | fi; |
2925 | if test "x$enable_dependency_tracking" != xno; then |
2926 | am_depcomp="$ac_aux_dir/depcomp" |
2927 | AMDEPBACKSLASH='\' |
2928 | fi |
2929 | |
2930 | |
2931 | if test "x$enable_dependency_tracking" != xno; then |
2932 | AMDEP_TRUE= |
2933 | AMDEP_FALSE='#' |
2934 | else |
2935 | AMDEP_TRUE='#' |
2936 | AMDEP_FALSE= |
2937 | fi |
2938 | |
2939 | |
2940 | |
2941 | |
2942 | depcc="$CC" am_compiler_list= |
2943 | |
2944 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
2945 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
2946 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
2947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2948 | else |
2949 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
2950 | # We make a subdir and do the tests there. Otherwise we can end up |
2951 | # making bogus files that we don't know about and never remove. For |
2952 | # instance it was reported that on HP-UX the gcc test will end up |
2953 | # making a dummy file named `D' -- because `-MD' means `put the output |
2954 | # in D'. |
2955 | mkdir conftest.dir |
2956 | # Copy depcomp to subdir because otherwise we won't find it if we're |
2957 | # using a relative directory. |
2958 | cp "$am_depcomp" conftest.dir |
2959 | cd conftest.dir |
2960 | # We will build objects and dependencies in a subdirectory because |
2961 | # it helps to detect inapplicable dependency modes. For instance |
2962 | # both Tru64's cc and ICC support -MD to output dependencies as a |
2963 | # side effect of compilation, but ICC will put the dependencies in |
2964 | # the current directory while Tru64 will put them in the object |
2965 | # directory. |
2966 | mkdir sub |
2967 | |
2968 | am_cv_CC_dependencies_compiler_type=none |
2969 | if test "$am_compiler_list" = ""; then |
2970 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
2971 | fi |
2972 | for depmode in $am_compiler_list; do |
2973 | # Setup a source with many dependencies, because some compilers |
2974 | # like to wrap large dependency lists on column 80 (with \), and |
2975 | # we should not choose a depcomp mode which is confused by this. |
2976 | # |
2977 | # We need to recreate these files for each test, as the compiler may |
2978 | # overwrite some of them when testing with obscure command lines. |
2979 | # This happens at least with the AIX C compiler. |
2980 | : > sub/conftest.c |
2981 | for i in 1 2 3 4 5 6; do |
2982 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
2983 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
2984 | # Solaris 8's {/usr,}/bin/sh. |
2985 | touch sub/conftst$i.h |
2986 | done |
2987 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
2988 | |
2989 | case $depmode in |
2990 | nosideeffect) |
2991 | # after this tag, mechanisms are not by side-effect, so they'll |
2992 | # only be used when explicitly requested |
2993 | if test "x$enable_dependency_tracking" = xyes; then |
2994 | continue |
2995 | else |
2996 | break |
2997 | fi |
2998 | ;; |
2999 | none) break ;; |
3000 | esac |
3001 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3002 | # mode. It turns out that the SunPro C++ compiler does not properly |
3003 | # handle `-M -o', and we need to detect this. |
3004 | if depmode=$depmode \ |
3005 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
3006 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
3007 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
3008 | >/dev/null 2>conftest.err && |
3009 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3010 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
3011 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3012 | # icc doesn't choke on unknown options, it will just issue warnings |
3013 | # or remarks (even with -Werror). So we grep stderr for any message |
3014 | # that says an option was ignored or not supported. |
3015 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
3016 | # icc: Command line warning: ignoring option '-M'; no argument required |
3017 | # The diagnosis changed in icc 8.0: |
3018 | # icc: Command line remark: option '-MP' not supported |
3019 | if (grep 'ignoring option' conftest.err || |
3020 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
3021 | am_cv_CC_dependencies_compiler_type=$depmode |
3022 | break |
3023 | fi |
3024 | fi |
3025 | done |
3026 | |
3027 | cd .. |
3028 | rm -rf conftest.dir |
3029 | else |
3030 | am_cv_CC_dependencies_compiler_type=none |
3031 | fi |
3032 | |
3033 | fi |
3034 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3035 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
3036 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3037 | |
3038 | |
3039 | |
3040 | if |
3041 | test "x$enable_dependency_tracking" != xno \ |
3042 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
3043 | am__fastdepCC_TRUE= |
3044 | am__fastdepCC_FALSE='#' |
3045 | else |
3046 | am__fastdepCC_TRUE='#' |
3047 | am__fastdepCC_FALSE= |
3048 | fi |
3049 | |
3050 | |
3051 | |
3052 | |
3053 | echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 |
3054 | echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6 |
3055 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then |
3056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3057 | else |
3058 | ac_check_lib_save_LIBS=$LIBS |
3059 | LIBS="-lcposix $LIBS" |
3060 | cat >conftest.$ac_ext <<_ACEOF |
3061 | /* confdefs.h. */ |
3062 | _ACEOF |
3063 | cat confdefs.h >>conftest.$ac_ext |
3064 | cat >>conftest.$ac_ext <<_ACEOF |
3065 | /* end confdefs.h. */ |
3066 | |
3067 | /* Override any gcc2 internal prototype to avoid an error. */ |
3068 | #ifdef __cplusplus |
3069 | extern "C" |
3070 | #endif |
3071 | /* We use char because int might match the return type of a gcc2 |
3072 | builtin and then its argument prototype would still apply. */ |
3073 | char strerror (); |
3074 | int |
3075 | main () |
3076 | { |
3077 | strerror (); |
3078 | ; |
3079 | return 0; |
3080 | } |
3081 | _ACEOF |
3082 | rm -f conftest.$ac_objext conftest$ac_exeext |
3083 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3084 | (eval $ac_link) 2>conftest.er1 |
3085 | ac_status=$? |
3086 | grep -v '^ *+' conftest.er1 >conftest.err |
3087 | rm -f conftest.er1 |
3088 | cat conftest.err >&5 |
3089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3090 | (exit $ac_status); } && |
3091 | { ac_try='test -z "$ac_c_werror_flag" |
3092 | || test ! -s conftest.err' |
3093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3094 | (eval $ac_try) 2>&5 |
3095 | ac_status=$? |
3096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3097 | (exit $ac_status); }; } && |
3098 | { ac_try='test -s conftest$ac_exeext' |
3099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3100 | (eval $ac_try) 2>&5 |
3101 | ac_status=$? |
3102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3103 | (exit $ac_status); }; }; then |
3104 | ac_cv_lib_cposix_strerror=yes |
3105 | else |
3106 | echo "$as_me: failed program was:" >&5 |
3107 | sed 's/^/| /' conftest.$ac_ext >&5 |
3108 | |
3109 | ac_cv_lib_cposix_strerror=no |
3110 | fi |
3111 | rm -f conftest.err conftest.$ac_objext \ |
3112 | conftest$ac_exeext conftest.$ac_ext |
3113 | LIBS=$ac_check_lib_save_LIBS |
3114 | fi |
3115 | echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 |
3116 | echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6 |
3117 | if test $ac_cv_lib_cposix_strerror = yes; then |
3118 | LIBS="$LIBS -lcposix" |
3119 | fi |
3120 | |
3121 | |
3122 | |
3123 | ac_ext=c |
3124 | ac_cpp='$CPP $CPPFLAGS' |
3125 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3126 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3127 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3128 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3129 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
3130 | # On Suns, sometimes $CPP names a directory. |
3131 | if test -n "$CPP" && test -d "$CPP"; then |
3132 | CPP= |
3133 | fi |
3134 | if test -z "$CPP"; then |
3135 | if test "${ac_cv_prog_CPP+set}" = set; then |
3136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3137 | else |
3138 | # Double quotes because CPP needs to be expanded |
3139 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
3140 | do |
3141 | ac_preproc_ok=false |
3142 | for ac_c_preproc_warn_flag in '' yes |
3143 | do |
3144 | # Use a header file that comes with gcc, so configuring glibc |
3145 | # with a fresh cross-compiler works. |
3146 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3147 | # <limits.h> exists even on freestanding compilers. |
3148 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3149 | # not just through cpp. "Syntax error" is here to catch this case. |
3150 | cat >conftest.$ac_ext <<_ACEOF |
3151 | /* confdefs.h. */ |
3152 | _ACEOF |
3153 | cat confdefs.h >>conftest.$ac_ext |
3154 | cat >>conftest.$ac_ext <<_ACEOF |
3155 | /* end confdefs.h. */ |
3156 | #ifdef __STDC__ |
3157 | # include <limits.h> |
3158 | #else |
3159 | # include <assert.h> |
3160 | #endif |
3161 | Syntax error |
3162 | _ACEOF |
3163 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3164 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3165 | ac_status=$? |
3166 | grep -v '^ *+' conftest.er1 >conftest.err |
3167 | rm -f conftest.er1 |
3168 | cat conftest.err >&5 |
3169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3170 | (exit $ac_status); } >/dev/null; then |
3171 | if test -s conftest.err; then |
3172 | ac_cpp_err=$ac_c_preproc_warn_flag |
3173 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3174 | else |
3175 | ac_cpp_err= |
3176 | fi |
3177 | else |
3178 | ac_cpp_err=yes |
3179 | fi |
3180 | if test -z "$ac_cpp_err"; then |
3181 | : |
3182 | else |
3183 | echo "$as_me: failed program was:" >&5 |
3184 | sed 's/^/| /' conftest.$ac_ext >&5 |
3185 | |
3186 | # Broken: fails on valid input. |
3187 | continue |
3188 | fi |
3189 | rm -f conftest.err conftest.$ac_ext |
3190 | |
3191 | # OK, works on sane cases. Now check whether non-existent headers |
3192 | # can be detected and how. |
3193 | cat >conftest.$ac_ext <<_ACEOF |
3194 | /* confdefs.h. */ |
3195 | _ACEOF |
3196 | cat confdefs.h >>conftest.$ac_ext |
3197 | cat >>conftest.$ac_ext <<_ACEOF |
3198 | /* end confdefs.h. */ |
3199 | #include <ac_nonexistent.h> |
3200 | _ACEOF |
3201 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3202 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3203 | ac_status=$? |
3204 | grep -v '^ *+' conftest.er1 >conftest.err |
3205 | rm -f conftest.er1 |
3206 | cat conftest.err >&5 |
3207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3208 | (exit $ac_status); } >/dev/null; then |
3209 | if test -s conftest.err; then |
3210 | ac_cpp_err=$ac_c_preproc_warn_flag |
3211 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3212 | else |
3213 | ac_cpp_err= |
3214 | fi |
3215 | else |
3216 | ac_cpp_err=yes |
3217 | fi |
3218 | if test -z "$ac_cpp_err"; then |
3219 | # Broken: success on invalid input. |
3220 | continue |
3221 | else |
3222 | echo "$as_me: failed program was:" >&5 |
3223 | sed 's/^/| /' conftest.$ac_ext >&5 |
3224 | |
3225 | # Passes both tests. |
3226 | ac_preproc_ok=: |
3227 | break |
3228 | fi |
3229 | rm -f conftest.err conftest.$ac_ext |
3230 | |
3231 | done |
3232 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3233 | rm -f conftest.err conftest.$ac_ext |
3234 | if $ac_preproc_ok; then |
3235 | break |
3236 | fi |
3237 | |
3238 | done |
3239 | ac_cv_prog_CPP=$CPP |
3240 | |
3241 | fi |
3242 | CPP=$ac_cv_prog_CPP |
3243 | else |
3244 | ac_cv_prog_CPP=$CPP |
3245 | fi |
3246 | echo "$as_me:$LINENO: result: $CPP" >&5 |
3247 | echo "${ECHO_T}$CPP" >&6 |
3248 | ac_preproc_ok=false |
3249 | for ac_c_preproc_warn_flag in '' yes |
3250 | do |
3251 | # Use a header file that comes with gcc, so configuring glibc |
3252 | # with a fresh cross-compiler works. |
3253 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3254 | # <limits.h> exists even on freestanding compilers. |
3255 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3256 | # not just through cpp. "Syntax error" is here to catch this case. |
3257 | cat >conftest.$ac_ext <<_ACEOF |
3258 | /* confdefs.h. */ |
3259 | _ACEOF |
3260 | cat confdefs.h >>conftest.$ac_ext |
3261 | cat >>conftest.$ac_ext <<_ACEOF |
3262 | /* end confdefs.h. */ |
3263 | #ifdef __STDC__ |
3264 | # include <limits.h> |
3265 | #else |
3266 | # include <assert.h> |
3267 | #endif |
3268 | Syntax error |
3269 | _ACEOF |
3270 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3271 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3272 | ac_status=$? |
3273 | grep -v '^ *+' conftest.er1 >conftest.err |
3274 | rm -f conftest.er1 |
3275 | cat conftest.err >&5 |
3276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3277 | (exit $ac_status); } >/dev/null; then |
3278 | if test -s conftest.err; then |
3279 | ac_cpp_err=$ac_c_preproc_warn_flag |
3280 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3281 | else |
3282 | ac_cpp_err= |
3283 | fi |
3284 | else |
3285 | ac_cpp_err=yes |
3286 | fi |
3287 | if test -z "$ac_cpp_err"; then |
3288 | : |
3289 | else |
3290 | echo "$as_me: failed program was:" >&5 |
3291 | sed 's/^/| /' conftest.$ac_ext >&5 |
3292 | |
3293 | # Broken: fails on valid input. |
3294 | continue |
3295 | fi |
3296 | rm -f conftest.err conftest.$ac_ext |
3297 | |
3298 | # OK, works on sane cases. Now check whether non-existent headers |
3299 | # can be detected and how. |
3300 | cat >conftest.$ac_ext <<_ACEOF |
3301 | /* confdefs.h. */ |
3302 | _ACEOF |
3303 | cat confdefs.h >>conftest.$ac_ext |
3304 | cat >>conftest.$ac_ext <<_ACEOF |
3305 | /* end confdefs.h. */ |
3306 | #include <ac_nonexistent.h> |
3307 | _ACEOF |
3308 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3309 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3310 | ac_status=$? |
3311 | grep -v '^ *+' conftest.er1 >conftest.err |
3312 | rm -f conftest.er1 |
3313 | cat conftest.err >&5 |
3314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3315 | (exit $ac_status); } >/dev/null; then |
3316 | if test -s conftest.err; then |
3317 | ac_cpp_err=$ac_c_preproc_warn_flag |
3318 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3319 | else |
3320 | ac_cpp_err= |
3321 | fi |
3322 | else |
3323 | ac_cpp_err=yes |
3324 | fi |
3325 | if test -z "$ac_cpp_err"; then |
3326 | # Broken: success on invalid input. |
3327 | continue |
3328 | else |
3329 | echo "$as_me: failed program was:" >&5 |
3330 | sed 's/^/| /' conftest.$ac_ext >&5 |
3331 | |
3332 | # Passes both tests. |
3333 | ac_preproc_ok=: |
3334 | break |
3335 | fi |
3336 | rm -f conftest.err conftest.$ac_ext |
3337 | |
3338 | done |
3339 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3340 | rm -f conftest.err conftest.$ac_ext |
3341 | if $ac_preproc_ok; then |
3342 | : |
3343 | else |
3344 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3345 | See \`config.log' for more details." >&5 |
3346 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
3347 | See \`config.log' for more details." >&2;} |
3348 | { (exit 1); exit 1; }; } |
3349 | fi |
3350 | |
3351 | ac_ext=c |
3352 | ac_cpp='$CPP $CPPFLAGS' |
3353 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3354 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3355 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3356 | |
3357 | |
3358 | echo "$as_me:$LINENO: checking for egrep" >&5 |
3359 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
3360 | if test "${ac_cv_prog_egrep+set}" = set; then |
3361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3362 | else |
3363 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
3364 | then ac_cv_prog_egrep='grep -E' |
3365 | else ac_cv_prog_egrep='egrep' |
3366 | fi |
3367 | fi |
3368 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
3369 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
3370 | EGREP=$ac_cv_prog_egrep |
3371 | |
3372 | |
3373 | |
3374 | echo "$as_me:$LINENO: checking for AIX" >&5 |
3375 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
3376 | cat >conftest.$ac_ext <<_ACEOF |
3377 | /* confdefs.h. */ |
3378 | _ACEOF |
3379 | cat confdefs.h >>conftest.$ac_ext |
3380 | cat >>conftest.$ac_ext <<_ACEOF |
3381 | /* end confdefs.h. */ |
3382 | #ifdef _AIX |
3383 | yes |
3384 | #endif |
3385 | |
3386 | _ACEOF |
3387 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3388 | $EGREP "yes" >/dev/null 2>&1; then |
3389 | echo "$as_me:$LINENO: result: yes" >&5 |
3390 | echo "${ECHO_T}yes" >&6 |
3391 | cat >>confdefs.h <<\_ACEOF |
3392 | #define _ALL_SOURCE 1 |
3393 | _ACEOF |
3394 | |
3395 | else |
3396 | echo "$as_me:$LINENO: result: no" >&5 |
3397 | echo "${ECHO_T}no" >&6 |
3398 | fi |
3399 | rm -f conftest* |
3400 | |
3401 | |
3402 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
3403 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
3404 | if test "${ac_cv_header_stdc+set}" = set; then |
3405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3406 | else |
3407 | cat >conftest.$ac_ext <<_ACEOF |
3408 | /* confdefs.h. */ |
3409 | _ACEOF |
3410 | cat confdefs.h >>conftest.$ac_ext |
3411 | cat >>conftest.$ac_ext <<_ACEOF |
3412 | /* end confdefs.h. */ |
3413 | #include <stdlib.h> |
3414 | #include <stdarg.h> |
3415 | #include <string.h> |
3416 | #include <float.h> |
3417 | |
3418 | int |
3419 | main () |
3420 | { |
3421 | |
3422 | ; |
3423 | return 0; |
3424 | } |
3425 | _ACEOF |
3426 | rm -f conftest.$ac_objext |
3427 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3428 | (eval $ac_compile) 2>conftest.er1 |
3429 | ac_status=$? |
3430 | grep -v '^ *+' conftest.er1 >conftest.err |
3431 | rm -f conftest.er1 |
3432 | cat conftest.err >&5 |
3433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3434 | (exit $ac_status); } && |
3435 | { ac_try='test -z "$ac_c_werror_flag" |
3436 | || test ! -s conftest.err' |
3437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3438 | (eval $ac_try) 2>&5 |
3439 | ac_status=$? |
3440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3441 | (exit $ac_status); }; } && |
3442 | { ac_try='test -s conftest.$ac_objext' |
3443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3444 | (eval $ac_try) 2>&5 |
3445 | ac_status=$? |
3446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3447 | (exit $ac_status); }; }; then |
3448 | ac_cv_header_stdc=yes |
3449 | else |
3450 | echo "$as_me: failed program was:" >&5 |
3451 | sed 's/^/| /' conftest.$ac_ext >&5 |
3452 | |
3453 | ac_cv_header_stdc=no |
3454 | fi |
3455 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3456 | |
3457 | if test $ac_cv_header_stdc = yes; then |
3458 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
3459 | cat >conftest.$ac_ext <<_ACEOF |
3460 | /* confdefs.h. */ |
3461 | _ACEOF |
3462 | cat confdefs.h >>conftest.$ac_ext |
3463 | cat >>conftest.$ac_ext <<_ACEOF |
3464 | /* end confdefs.h. */ |
3465 | #include <string.h> |
3466 | |
3467 | _ACEOF |
3468 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3469 | $EGREP "memchr" >/dev/null 2>&1; then |
3470 | : |
3471 | else |
3472 | ac_cv_header_stdc=no |
3473 | fi |
3474 | rm -f conftest* |
3475 | |
3476 | fi |
3477 | |
3478 | if test $ac_cv_header_stdc = yes; then |
3479 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
3480 | cat >conftest.$ac_ext <<_ACEOF |
3481 | /* confdefs.h. */ |
3482 | _ACEOF |
3483 | cat confdefs.h >>conftest.$ac_ext |
3484 | cat >>conftest.$ac_ext <<_ACEOF |
3485 | /* end confdefs.h. */ |
3486 | #include <stdlib.h> |
3487 | |
3488 | _ACEOF |
3489 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3490 | $EGREP "free" >/dev/null 2>&1; then |
3491 | : |
3492 | else |
3493 | ac_cv_header_stdc=no |
3494 | fi |
3495 | rm -f conftest* |
3496 | |
3497 | fi |
3498 | |
3499 | if test $ac_cv_header_stdc = yes; then |
3500 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
3501 | if test "$cross_compiling" = yes; then |
3502 | : |
3503 | else |
3504 | cat >conftest.$ac_ext <<_ACEOF |
3505 | /* confdefs.h. */ |
3506 | _ACEOF |
3507 | cat confdefs.h >>conftest.$ac_ext |
3508 | cat >>conftest.$ac_ext <<_ACEOF |
3509 | /* end confdefs.h. */ |
3510 | #include <ctype.h> |
3511 | #if ((' ' & 0x0FF) == 0x020) |
3512 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
3513 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
3514 | #else |
3515 | # define ISLOWER(c) \ |
3516 | (('a' <= (c) && (c) <= 'i') \ |
3517 | || ('j' <= (c) && (c) <= 'r') \ |
3518 | || ('s' <= (c) && (c) <= 'z')) |
3519 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
3520 | #endif |
3521 | |
3522 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
3523 | int |
3524 | main () |
3525 | { |
3526 | int i; |
3527 | for (i = 0; i < 256; i++) |
3528 | if (XOR (islower (i), ISLOWER (i)) |
3529 | || toupper (i) != TOUPPER (i)) |
3530 | exit(2); |
3531 | exit (0); |
3532 | } |
3533 | _ACEOF |
3534 | rm -f conftest$ac_exeext |
3535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3536 | (eval $ac_link) 2>&5 |
3537 | ac_status=$? |
3538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3539 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3541 | (eval $ac_try) 2>&5 |
3542 | ac_status=$? |
3543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3544 | (exit $ac_status); }; }; then |
3545 | : |
3546 | else |
3547 | echo "$as_me: program exited with status $ac_status" >&5 |
3548 | echo "$as_me: failed program was:" >&5 |
3549 | sed 's/^/| /' conftest.$ac_ext >&5 |
3550 | |
3551 | ( exit $ac_status ) |
3552 | ac_cv_header_stdc=no |
3553 | fi |
3554 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
3555 | fi |
3556 | fi |
3557 | fi |
3558 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
3559 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
3560 | if test $ac_cv_header_stdc = yes; then |
3561 | |
3562 | cat >>confdefs.h <<\_ACEOF |
3563 | #define STDC_HEADERS 1 |
3564 | _ACEOF |
3565 | |
3566 | fi |
3567 | |
3568 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
3569 | |
3570 | |
3571 | |
3572 | |
3573 | |
3574 | |
3575 | |
3576 | |
3577 | |
3578 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
3579 | inttypes.h stdint.h unistd.h |
3580 | do |
3581 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3582 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3583 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
3584 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3586 | else |
3587 | cat >conftest.$ac_ext <<_ACEOF |
3588 | /* confdefs.h. */ |
3589 | _ACEOF |
3590 | cat confdefs.h >>conftest.$ac_ext |
3591 | cat >>conftest.$ac_ext <<_ACEOF |
3592 | /* end confdefs.h. */ |
3593 | $ac_includes_default |
3594 | |
3595 | #include <$ac_header> |
3596 | _ACEOF |
3597 | rm -f conftest.$ac_objext |
3598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3599 | (eval $ac_compile) 2>conftest.er1 |
3600 | ac_status=$? |
3601 | grep -v '^ *+' conftest.er1 >conftest.err |
3602 | rm -f conftest.er1 |
3603 | cat conftest.err >&5 |
3604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3605 | (exit $ac_status); } && |
3606 | { ac_try='test -z "$ac_c_werror_flag" |
3607 | || test ! -s conftest.err' |
3608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3609 | (eval $ac_try) 2>&5 |
3610 | ac_status=$? |
3611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3612 | (exit $ac_status); }; } && |
3613 | { ac_try='test -s conftest.$ac_objext' |
3614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3615 | (eval $ac_try) 2>&5 |
3616 | ac_status=$? |
3617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3618 | (exit $ac_status); }; }; then |
3619 | eval "$as_ac_Header=yes" |
3620 | else |
3621 | echo "$as_me: failed program was:" >&5 |
3622 | sed 's/^/| /' conftest.$ac_ext >&5 |
3623 | |
3624 | eval "$as_ac_Header=no" |
3625 | fi |
3626 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3627 | fi |
3628 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3629 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
3630 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
3631 | cat >>confdefs.h <<_ACEOF |
3632 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
3633 | _ACEOF |
3634 | |
3635 | fi |
3636 | |
3637 | done |
3638 | |
3639 | |
3640 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
3641 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
3642 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
3643 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
3644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3645 | fi |
3646 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
3647 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
3648 | else |
3649 | # Is the header compilable? |
3650 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
3651 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 |
3652 | cat >conftest.$ac_ext <<_ACEOF |
3653 | /* confdefs.h. */ |
3654 | _ACEOF |
3655 | cat confdefs.h >>conftest.$ac_ext |
3656 | cat >>conftest.$ac_ext <<_ACEOF |
3657 | /* end confdefs.h. */ |
3658 | $ac_includes_default |
3659 | #include <minix/config.h> |
3660 | _ACEOF |
3661 | rm -f conftest.$ac_objext |
3662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3663 | (eval $ac_compile) 2>conftest.er1 |
3664 | ac_status=$? |
3665 | grep -v '^ *+' conftest.er1 >conftest.err |
3666 | rm -f conftest.er1 |
3667 | cat conftest.err >&5 |
3668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3669 | (exit $ac_status); } && |
3670 | { ac_try='test -z "$ac_c_werror_flag" |
3671 | || test ! -s conftest.err' |
3672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3673 | (eval $ac_try) 2>&5 |
3674 | ac_status=$? |
3675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3676 | (exit $ac_status); }; } && |
3677 | { ac_try='test -s conftest.$ac_objext' |
3678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3679 | (eval $ac_try) 2>&5 |
3680 | ac_status=$? |
3681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3682 | (exit $ac_status); }; }; then |
3683 | ac_header_compiler=yes |
3684 | else |
3685 | echo "$as_me: failed program was:" >&5 |
3686 | sed 's/^/| /' conftest.$ac_ext >&5 |
3687 | |
3688 | ac_header_compiler=no |
3689 | fi |
3690 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3691 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3692 | echo "${ECHO_T}$ac_header_compiler" >&6 |
3693 | |
3694 | # Is the header present? |
3695 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
3696 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 |
3697 | cat >conftest.$ac_ext <<_ACEOF |
3698 | /* confdefs.h. */ |
3699 | _ACEOF |
3700 | cat confdefs.h >>conftest.$ac_ext |
3701 | cat >>conftest.$ac_ext <<_ACEOF |
3702 | /* end confdefs.h. */ |
3703 | #include <minix/config.h> |
3704 | _ACEOF |
3705 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3706 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3707 | ac_status=$? |
3708 | grep -v '^ *+' conftest.er1 >conftest.err |
3709 | rm -f conftest.er1 |
3710 | cat conftest.err >&5 |
3711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3712 | (exit $ac_status); } >/dev/null; then |
3713 | if test -s conftest.err; then |
3714 | ac_cpp_err=$ac_c_preproc_warn_flag |
3715 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3716 | else |
3717 | ac_cpp_err= |
3718 | fi |
3719 | else |
3720 | ac_cpp_err=yes |
3721 | fi |
3722 | if test -z "$ac_cpp_err"; then |
3723 | ac_header_preproc=yes |
3724 | else |
3725 | echo "$as_me: failed program was:" >&5 |
3726 | sed 's/^/| /' conftest.$ac_ext >&5 |
3727 | |
3728 | ac_header_preproc=no |
3729 | fi |
3730 | rm -f conftest.err conftest.$ac_ext |
3731 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3732 | echo "${ECHO_T}$ac_header_preproc" >&6 |
3733 | |
3734 | # So? What about this header? |
3735 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
3736 | yes:no: ) |
3737 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
3738 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
3739 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 |
3740 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} |
3741 | ac_header_preproc=yes |
3742 | ;; |
3743 | no:yes:* ) |
3744 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
3745 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
3746 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
3747 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
3748 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 |
3749 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} |
3750 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 |
3751 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} |
3752 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
3753 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} |
3754 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 |
3755 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} |
3756 | ( |
3757 | cat <<\_ASBOX |
3758 | ## -------------------------------------------------- ## |
3759 | ## Report this to courier-users@lists.sourceforge.net ## |
3760 | ## -------------------------------------------------- ## |
3761 | _ASBOX |
3762 | ) | |
3763 | sed "s/^/$as_me: WARNING: /" >&2 |
3764 | ;; |
3765 | esac |
3766 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
3767 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
3768 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
3769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3770 | else |
3771 | ac_cv_header_minix_config_h=$ac_header_preproc |
3772 | fi |
3773 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
3774 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
3775 | |
3776 | fi |
3777 | if test $ac_cv_header_minix_config_h = yes; then |
3778 | MINIX=yes |
3779 | else |
3780 | MINIX= |
3781 | fi |
3782 | |
3783 | |
3784 | if test "$MINIX" = yes; then |
3785 | |
3786 | cat >>confdefs.h <<\_ACEOF |
3787 | #define _POSIX_SOURCE 1 |
3788 | _ACEOF |
3789 | |
3790 | |
3791 | cat >>confdefs.h <<\_ACEOF |
3792 | #define _POSIX_1_SOURCE 2 |
3793 | _ACEOF |
3794 | |
3795 | |
3796 | cat >>confdefs.h <<\_ACEOF |
3797 | #define _MINIX 1 |
3798 | _ACEOF |
3799 | |
3800 | fi |
3801 | |
3802 | # Check whether --enable-shared or --disable-shared was given. |
3803 | if test "${enable_shared+set}" = set; then |
3804 | enableval="$enable_shared" |
3805 | p=${PACKAGE-default} |
3806 | case $enableval in |
3807 | yes) enable_shared=yes ;; |
3808 | no) enable_shared=no ;; |
3809 | *) |
3810 | enable_shared=no |
3811 | # Look at the argument we got. We use all the common list separators. |
3812 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3813 | for pkg in $enableval; do |
3814 | IFS="$lt_save_ifs" |
3815 | if test "X$pkg" = "X$p"; then |
3816 | enable_shared=yes |
3817 | fi |
3818 | done |
3819 | IFS="$lt_save_ifs" |
3820 | ;; |
3821 | esac |
3822 | else |
3823 | enable_shared=yes |
3824 | fi; |
3825 | |
3826 | # Check whether --enable-static or --disable-static was given. |
3827 | if test "${enable_static+set}" = set; then |
3828 | enableval="$enable_static" |
3829 | p=${PACKAGE-default} |
3830 | case $enableval in |
3831 | yes) enable_static=yes ;; |
3832 | no) enable_static=no ;; |
3833 | *) |
3834 | enable_static=no |
3835 | # Look at the argument we got. We use all the common list separators. |
3836 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3837 | for pkg in $enableval; do |
3838 | IFS="$lt_save_ifs" |
3839 | if test "X$pkg" = "X$p"; then |
3840 | enable_static=yes |
3841 | fi |
3842 | done |
3843 | IFS="$lt_save_ifs" |
3844 | ;; |
3845 | esac |
3846 | else |
3847 | enable_static=yes |
3848 | fi; |
3849 | |
3850 | # Check whether --enable-fast-install or --disable-fast-install was given. |
3851 | if test "${enable_fast_install+set}" = set; then |
3852 | enableval="$enable_fast_install" |
3853 | p=${PACKAGE-default} |
3854 | case $enableval in |
3855 | yes) enable_fast_install=yes ;; |
3856 | no) enable_fast_install=no ;; |
3857 | *) |
3858 | enable_fast_install=no |
3859 | # Look at the argument we got. We use all the common list separators. |
3860 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3861 | for pkg in $enableval; do |
3862 | IFS="$lt_save_ifs" |
3863 | if test "X$pkg" = "X$p"; then |
3864 | enable_fast_install=yes |
3865 | fi |
3866 | done |
3867 | IFS="$lt_save_ifs" |
3868 | ;; |
3869 | esac |
3870 | else |
3871 | enable_fast_install=yes |
3872 | fi; |
3873 | |
3874 | # Make sure we can run config.sub. |
3875 | $ac_config_sub sun4 >/dev/null 2>&1 || |
3876 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
3877 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
3878 | { (exit 1); exit 1; }; } |
3879 | |
3880 | echo "$as_me:$LINENO: checking build system type" >&5 |
3881 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
3882 | if test "${ac_cv_build+set}" = set; then |
3883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3884 | else |
3885 | ac_cv_build_alias=$build_alias |
3886 | test -z "$ac_cv_build_alias" && |
3887 | ac_cv_build_alias=`$ac_config_guess` |
3888 | test -z "$ac_cv_build_alias" && |
3889 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
3890 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
3891 | { (exit 1); exit 1; }; } |
3892 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
3893 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
3894 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
3895 | { (exit 1); exit 1; }; } |
3896 | |
3897 | fi |
3898 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
3899 | echo "${ECHO_T}$ac_cv_build" >&6 |
3900 | build=$ac_cv_build |
3901 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
3902 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
3903 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
3904 | |
3905 | |
3906 | echo "$as_me:$LINENO: checking host system type" >&5 |
3907 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
3908 | if test "${ac_cv_host+set}" = set; then |
3909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3910 | else |
3911 | ac_cv_host_alias=$host_alias |
3912 | test -z "$ac_cv_host_alias" && |
3913 | ac_cv_host_alias=$ac_cv_build_alias |
3914 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
3915 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
3916 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
3917 | { (exit 1); exit 1; }; } |
3918 | |
3919 | fi |
3920 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
3921 | echo "${ECHO_T}$ac_cv_host" >&6 |
3922 | host=$ac_cv_host |
3923 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
3924 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
3925 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
3926 | |
3927 | |
3928 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
3929 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
3930 | if test "${lt_cv_path_SED+set}" = set; then |
3931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3932 | else |
3933 | # Loop through the user's path and test for sed and gsed. |
3934 | # Then use that list of sed's as ones to test for truncation. |
3935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3936 | for as_dir in $PATH |
3937 | do |
3938 | IFS=$as_save_IFS |
3939 | test -z "$as_dir" && as_dir=. |
3940 | for lt_ac_prog in sed gsed; do |
3941 | for ac_exec_ext in '' $ac_executable_extensions; do |
3942 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
3943 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
3944 | fi |
3945 | done |
3946 | done |
3947 | done |
3948 | IFS=$as_save_IFS |
3949 | lt_ac_max=0 |
3950 | lt_ac_count=0 |
3951 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
3952 | # along with /bin/sed that truncates output. |
3953 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
3954 | test ! -f $lt_ac_sed && continue |
3955 | cat /dev/null > conftest.in |
3956 | lt_ac_count=0 |
3957 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
3958 | # Check for GNU sed and select it if it is found. |
3959 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
3960 | lt_cv_path_SED=$lt_ac_sed |
3961 | break |
3962 | fi |
3963 | while true; do |
3964 | cat conftest.in conftest.in >conftest.tmp |
3965 | mv conftest.tmp conftest.in |
3966 | cp conftest.in conftest.nl |
3967 | echo >>conftest.nl |
3968 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
3969 | cmp -s conftest.out conftest.nl || break |
3970 | # 10000 chars as input seems more than enough |
3971 | test $lt_ac_count -gt 10 && break |
3972 | lt_ac_count=`expr $lt_ac_count + 1` |
3973 | if test $lt_ac_count -gt $lt_ac_max; then |
3974 | lt_ac_max=$lt_ac_count |
3975 | lt_cv_path_SED=$lt_ac_sed |
3976 | fi |
3977 | done |
3978 | done |
3979 | |
3980 | fi |
3981 | |
3982 | SED=$lt_cv_path_SED |
3983 | |
3984 | echo "$as_me:$LINENO: result: $SED" >&5 |
3985 | echo "${ECHO_T}$SED" >&6 |
3986 | |
3987 | |
3988 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3989 | if test "${with_gnu_ld+set}" = set; then |
3990 | withval="$with_gnu_ld" |
3991 | test "$withval" = no || with_gnu_ld=yes |
3992 | else |
3993 | with_gnu_ld=no |
3994 | fi; |
3995 | ac_prog=ld |
3996 | if test "$GCC" = yes; then |
3997 | # Check if gcc -print-prog-name=ld gives a path. |
3998 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
3999 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
4000 | case $host in |
4001 | *-*-mingw*) |
4002 | # gcc leaves a trailing carriage return which upsets mingw |
4003 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4004 | *) |
4005 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
4006 | esac |
4007 | case $ac_prog in |
4008 | # Accept absolute paths. |
4009 | [\\/]* | ?:[\\/]*) |
4010 | re_direlt='/[^/][^/]*/\.\./' |
4011 | # Canonicalize the pathname of ld |
4012 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
4013 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
4014 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
4015 | done |
4016 | test -z "$LD" && LD="$ac_prog" |
4017 | ;; |
4018 | "") |
4019 | # If it fails, then pretend we aren't using GCC. |
4020 | ac_prog=ld |
4021 | ;; |
4022 | *) |
4023 | # If it is relative, then search for the first ld in PATH. |
4024 | with_gnu_ld=unknown |
4025 | ;; |
4026 | esac |
4027 | elif test "$with_gnu_ld" = yes; then |
4028 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
4029 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
4030 | else |
4031 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
4032 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
4033 | fi |
4034 | if test "${lt_cv_path_LD+set}" = set; then |
4035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4036 | else |
4037 | if test -z "$LD"; then |
4038 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4039 | for ac_dir in $PATH; do |
4040 | IFS="$lt_save_ifs" |
4041 | test -z "$ac_dir" && ac_dir=. |
4042 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
4043 | lt_cv_path_LD="$ac_dir/$ac_prog" |
4044 | # Check to see if the program is GNU ld. I'd rather use --version, |
4045 | # but apparently some variants of GNU ld only accept -v. |
4046 | # Break only if it was the GNU/non-GNU ld that we prefer. |
4047 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4048 | *GNU* | *'with BFD'*) |
4049 | test "$with_gnu_ld" != no && break |
4050 | ;; |
4051 | *) |
4052 | test "$with_gnu_ld" != yes && break |
4053 | ;; |
4054 | esac |
4055 | fi |
4056 | done |
4057 | IFS="$lt_save_ifs" |
4058 | else |
4059 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
4060 | fi |
4061 | fi |
4062 | |
4063 | LD="$lt_cv_path_LD" |
4064 | if test -n "$LD"; then |
4065 | echo "$as_me:$LINENO: result: $LD" >&5 |
4066 | echo "${ECHO_T}$LD" >&6 |
4067 | else |
4068 | echo "$as_me:$LINENO: result: no" >&5 |
4069 | echo "${ECHO_T}no" >&6 |
4070 | fi |
4071 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
4072 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
4073 | { (exit 1); exit 1; }; } |
4074 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
4075 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
4076 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
4077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4078 | else |
4079 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
4080 | case `$LD -v 2>&1 </dev/null` in |
4081 | *GNU* | *'with BFD'*) |
4082 | lt_cv_prog_gnu_ld=yes |
4083 | ;; |
4084 | *) |
4085 | lt_cv_prog_gnu_ld=no |
4086 | ;; |
4087 | esac |
4088 | fi |
4089 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4090 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
4091 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4092 | |
4093 | |
4094 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
4095 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
4096 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
4097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4098 | else |
4099 | lt_cv_ld_reload_flag='-r' |
4100 | fi |
4101 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
4102 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
4103 | reload_flag=$lt_cv_ld_reload_flag |
4104 | case $reload_flag in |
4105 | "" | " "*) ;; |
4106 | *) reload_flag=" $reload_flag" ;; |
4107 | esac |
4108 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4109 | case $host_os in |
4110 | darwin*) |
4111 | if test "$GCC" = yes; then |
4112 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
4113 | else |
4114 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4115 | fi |
4116 | ;; |
4117 | esac |
4118 | |
4119 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
4120 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
4121 | if test "${lt_cv_path_NM+set}" = set; then |
4122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4123 | else |
4124 | if test -n "$NM"; then |
4125 | # Let the user override the test. |
4126 | lt_cv_path_NM="$NM" |
4127 | else |
4128 | lt_nm_to_check="${ac_tool_prefix}nm" |
4129 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
4130 | lt_nm_to_check="$lt_nm_to_check nm" |
4131 | fi |
4132 | for lt_tmp_nm in $lt_nm_to_check; do |
4133 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4134 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
4135 | IFS="$lt_save_ifs" |
4136 | test -z "$ac_dir" && ac_dir=. |
4137 | tmp_nm="$ac_dir/$lt_tmp_nm" |
4138 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
4139 | # Check to see if the nm accepts a BSD-compat flag. |
4140 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
4141 | # nm: unknown option "B" ignored |
4142 | # Tru64's nm complains that /dev/null is an invalid object file |
4143 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
4144 | */dev/null* | *'Invalid file or object type'*) |
4145 | lt_cv_path_NM="$tmp_nm -B" |
4146 | break |
4147 | ;; |
4148 | *) |
4149 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
4150 | */dev/null*) |
4151 | lt_cv_path_NM="$tmp_nm -p" |
4152 | break |
4153 | ;; |
4154 | *) |
4155 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
4156 | continue # so that we can try to find one that supports BSD flags |
4157 | ;; |
4158 | esac |
4159 | ;; |
4160 | esac |
4161 | fi |
4162 | done |
4163 | IFS="$lt_save_ifs" |
4164 | done |
4165 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
4166 | fi |
4167 | fi |
4168 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4169 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
4170 | NM="$lt_cv_path_NM" |
4171 | |
4172 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4173 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
4174 | LN_S=$as_ln_s |
4175 | if test "$LN_S" = "ln -s"; then |
4176 | echo "$as_me:$LINENO: result: yes" >&5 |
4177 | echo "${ECHO_T}yes" >&6 |
4178 | else |
4179 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
4180 | echo "${ECHO_T}no, using $LN_S" >&6 |
4181 | fi |
4182 | |
4183 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
4184 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
4185 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
4186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4187 | else |
4188 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
4189 | lt_cv_file_magic_test_file= |
4190 | lt_cv_deplibs_check_method='unknown' |
4191 | # Need to set the preceding variable on all platforms that support |
4192 | # interlibrary dependencies. |
4193 | # 'none' -- dependencies not supported. |
4194 | # `unknown' -- same as none, but documents that we really don't know. |
4195 | # 'pass_all' -- all dependencies passed with no checks. |
4196 | # 'test_compile' -- check by making test program. |
4197 | # 'file_magic [[regex]]' -- check by looking for files in library path |
4198 | # which responds to the $file_magic_cmd with a given extended regex. |
4199 | # If you have `file' or equivalent on your system and you're not sure |
4200 | # whether `pass_all' will *always* work, you probably want this one. |
4201 | |
4202 | case $host_os in |
4203 | aix4* | aix5*) |
4204 | lt_cv_deplibs_check_method=pass_all |
4205 | ;; |
4206 | |
4207 | beos*) |
4208 | lt_cv_deplibs_check_method=pass_all |
4209 | ;; |
4210 | |
4211 | bsdi[45]*) |
4212 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
4213 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
4214 | lt_cv_file_magic_test_file=/shlib/libc.so |
4215 | ;; |
4216 | |
4217 | cygwin*) |
4218 | # func_win32_libid is a shell function defined in ltmain.sh |
4219 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4220 | lt_cv_file_magic_cmd='func_win32_libid' |
4221 | ;; |
4222 | |
4223 | mingw* | pw32*) |
4224 | # Base MSYS/MinGW do not provide the 'file' command needed by |
4225 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
4226 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
4227 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
4228 | ;; |
4229 | |
4230 | darwin* | rhapsody*) |
4231 | lt_cv_deplibs_check_method=pass_all |
4232 | ;; |
4233 | |
4234 | freebsd* | kfreebsd*-gnu | dragonfly*) |
4235 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4236 | case $host_cpu in |
4237 | i*86 ) |
4238 | # Not sure whether the presence of OpenBSD here was a mistake. |
4239 | # Let's accept both of them until this is cleared up. |
4240 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
4241 | lt_cv_file_magic_cmd=/usr/bin/file |
4242 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
4243 | ;; |
4244 | esac |
4245 | else |
4246 | lt_cv_deplibs_check_method=pass_all |
4247 | fi |
4248 | ;; |
4249 | |
4250 | gnu*) |
4251 | lt_cv_deplibs_check_method=pass_all |
4252 | ;; |
4253 | |
4254 | hpux10.20* | hpux11*) |
4255 | lt_cv_file_magic_cmd=/usr/bin/file |
4256 | case $host_cpu in |
4257 | ia64*) |
4258 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
4259 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
4260 | ;; |
4261 | hppa*64*) |
4262 | 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]' |
4263 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
4264 | ;; |
4265 | *) |
4266 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
4267 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
4268 | ;; |
4269 | esac |
4270 | ;; |
4271 | |
4272 | interix3*) |
4273 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
4274 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
4275 | ;; |
4276 | |
4277 | irix5* | irix6* | nonstopux*) |
4278 | case $LD in |
4279 | *-32|*"-32 ") libmagic=32-bit;; |
4280 | *-n32|*"-n32 ") libmagic=N32;; |
4281 | *-64|*"-64 ") libmagic=64-bit;; |
4282 | *) libmagic=never-match;; |
4283 | esac |
4284 | lt_cv_deplibs_check_method=pass_all |
4285 | ;; |
4286 | |
4287 | # This must be Linux ELF. |
4288 | linux*) |
4289 | lt_cv_deplibs_check_method=pass_all |
4290 | ;; |
4291 | |
4292 | netbsd*) |
4293 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4294 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4295 | else |
4296 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
4297 | fi |
4298 | ;; |
4299 | |
4300 | newos6*) |
4301 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
4302 | lt_cv_file_magic_cmd=/usr/bin/file |
4303 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
4304 | ;; |
4305 | |
4306 | nto-qnx*) |
4307 | lt_cv_deplibs_check_method=unknown |
4308 | ;; |
4309 | |
4310 | openbsd*) |
4311 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
4312 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
4313 | else |
4314 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4315 | fi |
4316 | ;; |
4317 | |
4318 | osf3* | osf4* | osf5*) |
4319 | lt_cv_deplibs_check_method=pass_all |
4320 | ;; |
4321 | |
4322 | solaris*) |
4323 | lt_cv_deplibs_check_method=pass_all |
4324 | ;; |
4325 | |
4326 | sysv4 | sysv4.3*) |
4327 | case $host_vendor in |
4328 | motorola) |
4329 | 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]' |
4330 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
4331 | ;; |
4332 | ncr) |
4333 | lt_cv_deplibs_check_method=pass_all |
4334 | ;; |
4335 | sequent) |
4336 | lt_cv_file_magic_cmd='/bin/file' |
4337 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
4338 | ;; |
4339 | sni) |
4340 | lt_cv_file_magic_cmd='/bin/file' |
4341 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
4342 | lt_cv_file_magic_test_file=/lib/libc.so |
4343 | ;; |
4344 | siemens) |
4345 | lt_cv_deplibs_check_method=pass_all |
4346 | ;; |
4347 | pc) |
4348 | lt_cv_deplibs_check_method=pass_all |
4349 | ;; |
4350 | esac |
4351 | ;; |
4352 | |
4353 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
4354 | lt_cv_deplibs_check_method=pass_all |
4355 | ;; |
4356 | esac |
4357 | |
4358 | fi |
4359 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
4360 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
4361 | file_magic_cmd=$lt_cv_file_magic_cmd |
4362 | deplibs_check_method=$lt_cv_deplibs_check_method |
4363 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
4364 | |
4365 | |
4366 | |
4367 | |
4368 | # If no C compiler was specified, use CC. |
4369 | LTCC=${LTCC-"$CC"} |
4370 | |
4371 | # If no C compiler flags were specified, use CFLAGS. |
4372 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
4373 | |
4374 | # Allow CC to be a program name with arguments. |
4375 | compiler=$CC |
4376 | |
4377 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
4378 | if test "${enable_libtool_lock+set}" = set; then |
4379 | enableval="$enable_libtool_lock" |
4380 | |
4381 | fi; |
4382 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
4383 | |
4384 | # Some flags need to be propagated to the compiler or linker for good |
4385 | # libtool support. |
4386 | case $host in |
4387 | ia64-*-hpux*) |
4388 | # Find out which ABI we are using. |
4389 | echo 'int i;' > conftest.$ac_ext |
4390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4391 | (eval $ac_compile) 2>&5 |
4392 | ac_status=$? |
4393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4394 | (exit $ac_status); }; then |
4395 | case `/usr/bin/file conftest.$ac_objext` in |
4396 | *ELF-32*) |
4397 | HPUX_IA64_MODE="32" |
4398 | ;; |
4399 | *ELF-64*) |
4400 | HPUX_IA64_MODE="64" |
4401 | ;; |
4402 | esac |
4403 | fi |
4404 | rm -rf conftest* |
4405 | ;; |
4406 | *-*-irix6*) |
4407 | # Find out which ABI we are using. |
4408 | echo '#line 4408 "configure"' > conftest.$ac_ext |
4409 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4410 | (eval $ac_compile) 2>&5 |
4411 | ac_status=$? |
4412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4413 | (exit $ac_status); }; then |
4414 | if test "$lt_cv_prog_gnu_ld" = yes; then |
4415 | case `/usr/bin/file conftest.$ac_objext` in |
4416 | *32-bit*) |
4417 | LD="${LD-ld} -melf32bsmip" |
4418 | ;; |
4419 | *N32*) |
4420 | LD="${LD-ld} -melf32bmipn32" |
4421 | ;; |
4422 | *64-bit*) |
4423 | LD="${LD-ld} -melf64bmip" |
4424 | ;; |
4425 | esac |
4426 | else |
4427 | case `/usr/bin/file conftest.$ac_objext` in |
4428 | *32-bit*) |
4429 | LD="${LD-ld} -32" |
4430 | ;; |
4431 | *N32*) |
4432 | LD="${LD-ld} -n32" |
4433 | ;; |
4434 | *64-bit*) |
4435 | LD="${LD-ld} -64" |
4436 | ;; |
4437 | esac |
4438 | fi |
4439 | fi |
4440 | rm -rf conftest* |
4441 | ;; |
4442 | |
4443 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
4444 | # Find out which ABI we are using. |
4445 | echo 'int i;' > conftest.$ac_ext |
4446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4447 | (eval $ac_compile) 2>&5 |
4448 | ac_status=$? |
4449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4450 | (exit $ac_status); }; then |
4451 | case `/usr/bin/file conftest.o` in |
4452 | *32-bit*) |
4453 | case $host in |
4454 | x86_64-*linux*) |
4455 | LD="${LD-ld} -m elf_i386" |
4456 | ;; |
4457 | ppc64-*linux*|powerpc64-*linux*) |
4458 | LD="${LD-ld} -m elf32ppclinux" |
4459 | ;; |
4460 | s390x-*linux*) |
4461 | LD="${LD-ld} -m elf_s390" |
4462 | ;; |
4463 | sparc64-*linux*) |
4464 | LD="${LD-ld} -m elf32_sparc" |
4465 | ;; |
4466 | esac |
4467 | ;; |
4468 | *64-bit*) |
4469 | case $host in |
4470 | x86_64-*linux*) |
4471 | LD="${LD-ld} -m elf_x86_64" |
4472 | ;; |
4473 | ppc*-*linux*|powerpc*-*linux*) |
4474 | LD="${LD-ld} -m elf64ppc" |
4475 | ;; |
4476 | s390*-*linux*) |
4477 | LD="${LD-ld} -m elf64_s390" |
4478 | ;; |
4479 | sparc*-*linux*) |
4480 | LD="${LD-ld} -m elf64_sparc" |
4481 | ;; |
4482 | esac |
4483 | ;; |
4484 | esac |
4485 | fi |
4486 | rm -rf conftest* |
4487 | ;; |
4488 | |
4489 | *-*-sco3.2v5*) |
4490 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
4491 | SAVE_CFLAGS="$CFLAGS" |
4492 | CFLAGS="$CFLAGS -belf" |
4493 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
4494 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
4495 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
4496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4497 | else |
4498 | ac_ext=c |
4499 | ac_cpp='$CPP $CPPFLAGS' |
4500 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4501 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4502 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4503 | |
4504 | cat >conftest.$ac_ext <<_ACEOF |
4505 | /* confdefs.h. */ |
4506 | _ACEOF |
4507 | cat confdefs.h >>conftest.$ac_ext |
4508 | cat >>conftest.$ac_ext <<_ACEOF |
4509 | /* end confdefs.h. */ |
4510 | |
4511 | int |
4512 | main () |
4513 | { |
4514 | |
4515 | ; |
4516 | return 0; |
4517 | } |
4518 | _ACEOF |
4519 | rm -f conftest.$ac_objext conftest$ac_exeext |
4520 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4521 | (eval $ac_link) 2>conftest.er1 |
4522 | ac_status=$? |
4523 | grep -v '^ *+' conftest.er1 >conftest.err |
4524 | rm -f conftest.er1 |
4525 | cat conftest.err >&5 |
4526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4527 | (exit $ac_status); } && |
4528 | { ac_try='test -z "$ac_c_werror_flag" |
4529 | || test ! -s conftest.err' |
4530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4531 | (eval $ac_try) 2>&5 |
4532 | ac_status=$? |
4533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4534 | (exit $ac_status); }; } && |
4535 | { ac_try='test -s conftest$ac_exeext' |
4536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4537 | (eval $ac_try) 2>&5 |
4538 | ac_status=$? |
4539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4540 | (exit $ac_status); }; }; then |
4541 | lt_cv_cc_needs_belf=yes |
4542 | else |
4543 | echo "$as_me: failed program was:" >&5 |
4544 | sed 's/^/| /' conftest.$ac_ext >&5 |
4545 | |
4546 | lt_cv_cc_needs_belf=no |
4547 | fi |
4548 | rm -f conftest.err conftest.$ac_objext \ |
4549 | conftest$ac_exeext conftest.$ac_ext |
4550 | ac_ext=c |
4551 | ac_cpp='$CPP $CPPFLAGS' |
4552 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4553 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4554 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4555 | |
4556 | fi |
4557 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4558 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
4559 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4560 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
4561 | CFLAGS="$SAVE_CFLAGS" |
4562 | fi |
4563 | ;; |
4564 | sparc*-*solaris*) |
4565 | # Find out which ABI we are using. |
4566 | echo 'int i;' > conftest.$ac_ext |
4567 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4568 | (eval $ac_compile) 2>&5 |
4569 | ac_status=$? |
4570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4571 | (exit $ac_status); }; then |
4572 | case `/usr/bin/file conftest.o` in |
4573 | *64-bit*) |
4574 | case $lt_cv_prog_gnu_ld in |
4575 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
4576 | *) LD="${LD-ld} -64" ;; |
4577 | esac |
4578 | ;; |
4579 | esac |
4580 | fi |
4581 | rm -rf conftest* |
4582 | ;; |
4583 | |
4584 | |
4585 | esac |
4586 | |
4587 | need_locks="$enable_libtool_lock" |
4588 | |
4589 | |
4590 | |
4591 | for ac_header in dlfcn.h |
4592 | do |
4593 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4594 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4595 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4596 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4597 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4599 | fi |
4600 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4601 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4602 | else |
4603 | # Is the header compilable? |
4604 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4605 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
4606 | cat >conftest.$ac_ext <<_ACEOF |
4607 | /* confdefs.h. */ |
4608 | _ACEOF |
4609 | cat confdefs.h >>conftest.$ac_ext |
4610 | cat >>conftest.$ac_ext <<_ACEOF |
4611 | /* end confdefs.h. */ |
4612 | $ac_includes_default |
4613 | #include <$ac_header> |
4614 | _ACEOF |
4615 | rm -f conftest.$ac_objext |
4616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4617 | (eval $ac_compile) 2>conftest.er1 |
4618 | ac_status=$? |
4619 | grep -v '^ *+' conftest.er1 >conftest.err |
4620 | rm -f conftest.er1 |
4621 | cat conftest.err >&5 |
4622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4623 | (exit $ac_status); } && |
4624 | { ac_try='test -z "$ac_c_werror_flag" |
4625 | || test ! -s conftest.err' |
4626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4627 | (eval $ac_try) 2>&5 |
4628 | ac_status=$? |
4629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4630 | (exit $ac_status); }; } && |
4631 | { ac_try='test -s conftest.$ac_objext' |
4632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4633 | (eval $ac_try) 2>&5 |
4634 | ac_status=$? |
4635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4636 | (exit $ac_status); }; }; then |
4637 | ac_header_compiler=yes |
4638 | else |
4639 | echo "$as_me: failed program was:" >&5 |
4640 | sed 's/^/| /' conftest.$ac_ext >&5 |
4641 | |
4642 | ac_header_compiler=no |
4643 | fi |
4644 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4645 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4646 | echo "${ECHO_T}$ac_header_compiler" >&6 |
4647 | |
4648 | # Is the header present? |
4649 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4650 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
4651 | cat >conftest.$ac_ext <<_ACEOF |
4652 | /* confdefs.h. */ |
4653 | _ACEOF |
4654 | cat confdefs.h >>conftest.$ac_ext |
4655 | cat >>conftest.$ac_ext <<_ACEOF |
4656 | /* end confdefs.h. */ |
4657 | #include <$ac_header> |
4658 | _ACEOF |
4659 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4660 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4661 | ac_status=$? |
4662 | grep -v '^ *+' conftest.er1 >conftest.err |
4663 | rm -f conftest.er1 |
4664 | cat conftest.err >&5 |
4665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4666 | (exit $ac_status); } >/dev/null; then |
4667 | if test -s conftest.err; then |
4668 | ac_cpp_err=$ac_c_preproc_warn_flag |
4669 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4670 | else |
4671 | ac_cpp_err= |
4672 | fi |
4673 | else |
4674 | ac_cpp_err=yes |
4675 | fi |
4676 | if test -z "$ac_cpp_err"; then |
4677 | ac_header_preproc=yes |
4678 | else |
4679 | echo "$as_me: failed program was:" >&5 |
4680 | sed 's/^/| /' conftest.$ac_ext >&5 |
4681 | |
4682 | ac_header_preproc=no |
4683 | fi |
4684 | rm -f conftest.err conftest.$ac_ext |
4685 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4686 | echo "${ECHO_T}$ac_header_preproc" >&6 |
4687 | |
4688 | # So? What about this header? |
4689 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4690 | yes:no: ) |
4691 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4692 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
4693 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4694 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
4695 | ac_header_preproc=yes |
4696 | ;; |
4697 | no:yes:* ) |
4698 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4699 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
4700 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4701 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
4702 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
4703 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
4704 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
4705 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
4706 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4707 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
4708 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4709 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
4710 | ( |
4711 | cat <<\_ASBOX |
4712 | ## -------------------------------------------------- ## |
4713 | ## Report this to courier-users@lists.sourceforge.net ## |
4714 | ## -------------------------------------------------- ## |
4715 | _ASBOX |
4716 | ) | |
4717 | sed "s/^/$as_me: WARNING: /" >&2 |
4718 | ;; |
4719 | esac |
4720 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4721 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4722 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4724 | else |
4725 | eval "$as_ac_Header=\$ac_header_preproc" |
4726 | fi |
4727 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4728 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4729 | |
4730 | fi |
4731 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4732 | cat >>confdefs.h <<_ACEOF |
4733 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4734 | _ACEOF |
4735 | |
4736 | fi |
4737 | |
4738 | done |
4739 | |
4740 | ac_ext=cc |
4741 | ac_cpp='$CXXCPP $CPPFLAGS' |
4742 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4743 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4744 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4745 | if test -n "$ac_tool_prefix"; then |
4746 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
4747 | do |
4748 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
4749 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
4750 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4751 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4752 | if test "${ac_cv_prog_CXX+set}" = set; then |
4753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4754 | else |
4755 | if test -n "$CXX"; then |
4756 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
4757 | else |
4758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4759 | for as_dir in $PATH |
4760 | do |
4761 | IFS=$as_save_IFS |
4762 | test -z "$as_dir" && as_dir=. |
4763 | for ac_exec_ext in '' $ac_executable_extensions; do |
4764 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4765 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
4766 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4767 | break 2 |
4768 | fi |
4769 | done |
4770 | done |
4771 | |
4772 | fi |
4773 | fi |
4774 | CXX=$ac_cv_prog_CXX |
4775 | if test -n "$CXX"; then |
4776 | echo "$as_me:$LINENO: result: $CXX" >&5 |
4777 | echo "${ECHO_T}$CXX" >&6 |
4778 | else |
4779 | echo "$as_me:$LINENO: result: no" >&5 |
4780 | echo "${ECHO_T}no" >&6 |
4781 | fi |
4782 | |
4783 | test -n "$CXX" && break |
4784 | done |
4785 | fi |
4786 | if test -z "$CXX"; then |
4787 | ac_ct_CXX=$CXX |
4788 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
4789 | do |
4790 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
4791 | set dummy $ac_prog; ac_word=$2 |
4792 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4793 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4794 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
4795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4796 | else |
4797 | if test -n "$ac_ct_CXX"; then |
4798 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
4799 | else |
4800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4801 | for as_dir in $PATH |
4802 | do |
4803 | IFS=$as_save_IFS |
4804 | test -z "$as_dir" && as_dir=. |
4805 | for ac_exec_ext in '' $ac_executable_extensions; do |
4806 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4807 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
4808 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4809 | break 2 |
4810 | fi |
4811 | done |
4812 | done |
4813 | |
4814 | fi |
4815 | fi |
4816 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4817 | if test -n "$ac_ct_CXX"; then |
4818 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
4819 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
4820 | else |
4821 | echo "$as_me:$LINENO: result: no" >&5 |
4822 | echo "${ECHO_T}no" >&6 |
4823 | fi |
4824 | |
4825 | test -n "$ac_ct_CXX" && break |
4826 | done |
4827 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
4828 | |
4829 | CXX=$ac_ct_CXX |
4830 | fi |
4831 | |
4832 | |
4833 | # Provide some information about the compiler. |
4834 | echo "$as_me:$LINENO:" \ |
4835 | "checking for C++ compiler version" >&5 |
4836 | ac_compiler=`set X $ac_compile; echo $2` |
4837 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
4838 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
4839 | ac_status=$? |
4840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4841 | (exit $ac_status); } |
4842 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
4843 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
4844 | ac_status=$? |
4845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4846 | (exit $ac_status); } |
4847 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
4848 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
4849 | ac_status=$? |
4850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4851 | (exit $ac_status); } |
4852 | |
4853 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
4854 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
4855 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
4856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4857 | else |
4858 | cat >conftest.$ac_ext <<_ACEOF |
4859 | /* confdefs.h. */ |
4860 | _ACEOF |
4861 | cat confdefs.h >>conftest.$ac_ext |
4862 | cat >>conftest.$ac_ext <<_ACEOF |
4863 | /* end confdefs.h. */ |
4864 | |
4865 | int |
4866 | main () |
4867 | { |
4868 | #ifndef __GNUC__ |
4869 | choke me |
4870 | #endif |
4871 | |
4872 | ; |
4873 | return 0; |
4874 | } |
4875 | _ACEOF |
4876 | rm -f conftest.$ac_objext |
4877 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4878 | (eval $ac_compile) 2>conftest.er1 |
4879 | ac_status=$? |
4880 | grep -v '^ *+' conftest.er1 >conftest.err |
4881 | rm -f conftest.er1 |
4882 | cat conftest.err >&5 |
4883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4884 | (exit $ac_status); } && |
4885 | { ac_try='test -z "$ac_cxx_werror_flag" |
4886 | || test ! -s conftest.err' |
4887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4888 | (eval $ac_try) 2>&5 |
4889 | ac_status=$? |
4890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4891 | (exit $ac_status); }; } && |
4892 | { ac_try='test -s conftest.$ac_objext' |
4893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4894 | (eval $ac_try) 2>&5 |
4895 | ac_status=$? |
4896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4897 | (exit $ac_status); }; }; then |
4898 | ac_compiler_gnu=yes |
4899 | else |
4900 | echo "$as_me: failed program was:" >&5 |
4901 | sed 's/^/| /' conftest.$ac_ext >&5 |
4902 | |
4903 | ac_compiler_gnu=no |
4904 | fi |
4905 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4906 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4907 | |
4908 | fi |
4909 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
4910 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
4911 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
4912 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4913 | ac_save_CXXFLAGS=$CXXFLAGS |
4914 | CXXFLAGS="-g" |
4915 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
4916 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
4917 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
4918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4919 | else |
4920 | cat >conftest.$ac_ext <<_ACEOF |
4921 | /* confdefs.h. */ |
4922 | _ACEOF |
4923 | cat confdefs.h >>conftest.$ac_ext |
4924 | cat >>conftest.$ac_ext <<_ACEOF |
4925 | /* end confdefs.h. */ |
4926 | |
4927 | int |
4928 | main () |
4929 | { |
4930 | |
4931 | ; |
4932 | return 0; |
4933 | } |
4934 | _ACEOF |
4935 | rm -f conftest.$ac_objext |
4936 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4937 | (eval $ac_compile) 2>conftest.er1 |
4938 | ac_status=$? |
4939 | grep -v '^ *+' conftest.er1 >conftest.err |
4940 | rm -f conftest.er1 |
4941 | cat conftest.err >&5 |
4942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4943 | (exit $ac_status); } && |
4944 | { ac_try='test -z "$ac_cxx_werror_flag" |
4945 | || test ! -s conftest.err' |
4946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4947 | (eval $ac_try) 2>&5 |
4948 | ac_status=$? |
4949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4950 | (exit $ac_status); }; } && |
4951 | { ac_try='test -s conftest.$ac_objext' |
4952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4953 | (eval $ac_try) 2>&5 |
4954 | ac_status=$? |
4955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4956 | (exit $ac_status); }; }; then |
4957 | ac_cv_prog_cxx_g=yes |
4958 | else |
4959 | echo "$as_me: failed program was:" >&5 |
4960 | sed 's/^/| /' conftest.$ac_ext >&5 |
4961 | |
4962 | ac_cv_prog_cxx_g=no |
4963 | fi |
4964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4965 | fi |
4966 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
4967 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
4968 | if test "$ac_test_CXXFLAGS" = set; then |
4969 | CXXFLAGS=$ac_save_CXXFLAGS |
4970 | elif test $ac_cv_prog_cxx_g = yes; then |
4971 | if test "$GXX" = yes; then |
4972 | CXXFLAGS="-g -O2" |
4973 | else |
4974 | CXXFLAGS="-g" |
4975 | fi |
4976 | else |
4977 | if test "$GXX" = yes; then |
4978 | CXXFLAGS="-O2" |
4979 | else |
4980 | CXXFLAGS= |
4981 | fi |
4982 | fi |
4983 | for ac_declaration in \ |
4984 | '' \ |
4985 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
4986 | 'extern "C" void std::exit (int); using std::exit;' \ |
4987 | 'extern "C" void exit (int) throw ();' \ |
4988 | 'extern "C" void exit (int);' \ |
4989 | 'void exit (int);' |
4990 | do |
4991 | cat >conftest.$ac_ext <<_ACEOF |
4992 | /* confdefs.h. */ |
4993 | _ACEOF |
4994 | cat confdefs.h >>conftest.$ac_ext |
4995 | cat >>conftest.$ac_ext <<_ACEOF |
4996 | /* end confdefs.h. */ |
4997 | $ac_declaration |
4998 | #include <stdlib.h> |
4999 | int |
5000 | main () |
5001 | { |
5002 | exit (42); |
5003 | ; |
5004 | return 0; |
5005 | } |
5006 | _ACEOF |
5007 | rm -f conftest.$ac_objext |
5008 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5009 | (eval $ac_compile) 2>conftest.er1 |
5010 | ac_status=$? |
5011 | grep -v '^ *+' conftest.er1 >conftest.err |
5012 | rm -f conftest.er1 |
5013 | cat conftest.err >&5 |
5014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5015 | (exit $ac_status); } && |
5016 | { ac_try='test -z "$ac_cxx_werror_flag" |
5017 | || test ! -s conftest.err' |
5018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5019 | (eval $ac_try) 2>&5 |
5020 | ac_status=$? |
5021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5022 | (exit $ac_status); }; } && |
5023 | { ac_try='test -s conftest.$ac_objext' |
5024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5025 | (eval $ac_try) 2>&5 |
5026 | ac_status=$? |
5027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5028 | (exit $ac_status); }; }; then |
5029 | : |
5030 | else |
5031 | echo "$as_me: failed program was:" >&5 |
5032 | sed 's/^/| /' conftest.$ac_ext >&5 |
5033 | |
5034 | continue |
5035 | fi |
5036 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5037 | cat >conftest.$ac_ext <<_ACEOF |
5038 | /* confdefs.h. */ |
5039 | _ACEOF |
5040 | cat confdefs.h >>conftest.$ac_ext |
5041 | cat >>conftest.$ac_ext <<_ACEOF |
5042 | /* end confdefs.h. */ |
5043 | $ac_declaration |
5044 | int |
5045 | main () |
5046 | { |
5047 | exit (42); |
5048 | ; |
5049 | return 0; |
5050 | } |
5051 | _ACEOF |
5052 | rm -f conftest.$ac_objext |
5053 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5054 | (eval $ac_compile) 2>conftest.er1 |
5055 | ac_status=$? |
5056 | grep -v '^ *+' conftest.er1 >conftest.err |
5057 | rm -f conftest.er1 |
5058 | cat conftest.err >&5 |
5059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5060 | (exit $ac_status); } && |
5061 | { ac_try='test -z "$ac_cxx_werror_flag" |
5062 | || test ! -s conftest.err' |
5063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5064 | (eval $ac_try) 2>&5 |
5065 | ac_status=$? |
5066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5067 | (exit $ac_status); }; } && |
5068 | { ac_try='test -s conftest.$ac_objext' |
5069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5070 | (eval $ac_try) 2>&5 |
5071 | ac_status=$? |
5072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5073 | (exit $ac_status); }; }; then |
5074 | break |
5075 | else |
5076 | echo "$as_me: failed program was:" >&5 |
5077 | sed 's/^/| /' conftest.$ac_ext >&5 |
5078 | |
5079 | fi |
5080 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5081 | done |
5082 | rm -f conftest* |
5083 | if test -n "$ac_declaration"; then |
5084 | echo '#ifdef __cplusplus' >>confdefs.h |
5085 | echo $ac_declaration >>confdefs.h |
5086 | echo '#endif' >>confdefs.h |
5087 | fi |
5088 | |
5089 | ac_ext=cc |
5090 | ac_cpp='$CXXCPP $CPPFLAGS' |
5091 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5092 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5093 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5094 | |
5095 | depcc="$CXX" am_compiler_list= |
5096 | |
5097 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
5098 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
5099 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
5100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5101 | else |
5102 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
5103 | # We make a subdir and do the tests there. Otherwise we can end up |
5104 | # making bogus files that we don't know about and never remove. For |
5105 | # instance it was reported that on HP-UX the gcc test will end up |
5106 | # making a dummy file named `D' -- because `-MD' means `put the output |
5107 | # in D'. |
5108 | mkdir conftest.dir |
5109 | # Copy depcomp to subdir because otherwise we won't find it if we're |
5110 | # using a relative directory. |
5111 | cp "$am_depcomp" conftest.dir |
5112 | cd conftest.dir |
5113 | # We will build objects and dependencies in a subdirectory because |
5114 | # it helps to detect inapplicable dependency modes. For instance |
5115 | # both Tru64's cc and ICC support -MD to output dependencies as a |
5116 | # side effect of compilation, but ICC will put the dependencies in |
5117 | # the current directory while Tru64 will put them in the object |
5118 | # directory. |
5119 | mkdir sub |
5120 | |
5121 | am_cv_CXX_dependencies_compiler_type=none |
5122 | if test "$am_compiler_list" = ""; then |
5123 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
5124 | fi |
5125 | for depmode in $am_compiler_list; do |
5126 | # Setup a source with many dependencies, because some compilers |
5127 | # like to wrap large dependency lists on column 80 (with \), and |
5128 | # we should not choose a depcomp mode which is confused by this. |
5129 | # |
5130 | # We need to recreate these files for each test, as the compiler may |
5131 | # overwrite some of them when testing with obscure command lines. |
5132 | # This happens at least with the AIX C compiler. |
5133 | : > sub/conftest.c |
5134 | for i in 1 2 3 4 5 6; do |
5135 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
5136 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
5137 | # Solaris 8's {/usr,}/bin/sh. |
5138 | touch sub/conftst$i.h |
5139 | done |
5140 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
5141 | |
5142 | case $depmode in |
5143 | nosideeffect) |
5144 | # after this tag, mechanisms are not by side-effect, so they'll |
5145 | # only be used when explicitly requested |
5146 | if test "x$enable_dependency_tracking" = xyes; then |
5147 | continue |
5148 | else |
5149 | break |
5150 | fi |
5151 | ;; |
5152 | none) break ;; |
5153 | esac |
5154 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5155 | # mode. It turns out that the SunPro C++ compiler does not properly |
5156 | # handle `-M -o', and we need to detect this. |
5157 | if depmode=$depmode \ |
5158 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
5159 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5160 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
5161 | >/dev/null 2>conftest.err && |
5162 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5163 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
5164 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5165 | # icc doesn't choke on unknown options, it will just issue warnings |
5166 | # or remarks (even with -Werror). So we grep stderr for any message |
5167 | # that says an option was ignored or not supported. |
5168 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
5169 | # icc: Command line warning: ignoring option '-M'; no argument required |
5170 | # The diagnosis changed in icc 8.0: |
5171 | # icc: Command line remark: option '-MP' not supported |
5172 | if (grep 'ignoring option' conftest.err || |
5173 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
5174 | am_cv_CXX_dependencies_compiler_type=$depmode |
5175 | break |
5176 | fi |
5177 | fi |
5178 | done |
5179 | |
5180 | cd .. |
5181 | rm -rf conftest.dir |
5182 | else |
5183 | am_cv_CXX_dependencies_compiler_type=none |
5184 | fi |
5185 | |
5186 | fi |
5187 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
5188 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
5189 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
5190 | |
5191 | |
5192 | |
5193 | if |
5194 | test "x$enable_dependency_tracking" != xno \ |
5195 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
5196 | am__fastdepCXX_TRUE= |
5197 | am__fastdepCXX_FALSE='#' |
5198 | else |
5199 | am__fastdepCXX_TRUE='#' |
5200 | am__fastdepCXX_FALSE= |
5201 | fi |
5202 | |
5203 | |
5204 | |
5205 | |
5206 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
5207 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
5208 | (test "X$CXX" != "Xg++"))) ; then |
5209 | ac_ext=cc |
5210 | ac_cpp='$CXXCPP $CPPFLAGS' |
5211 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5212 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5213 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5214 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
5215 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
5216 | if test -z "$CXXCPP"; then |
5217 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
5218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5219 | else |
5220 | # Double quotes because CXXCPP needs to be expanded |
5221 | for CXXCPP in "$CXX -E" "/lib/cpp" |
5222 | do |
5223 | ac_preproc_ok=false |
5224 | for ac_cxx_preproc_warn_flag in '' yes |
5225 | do |
5226 | # Use a header file that comes with gcc, so configuring glibc |
5227 | # with a fresh cross-compiler works. |
5228 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5229 | # <limits.h> exists even on freestanding compilers. |
5230 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5231 | # not just through cpp. "Syntax error" is here to catch this case. |
5232 | cat >conftest.$ac_ext <<_ACEOF |
5233 | /* confdefs.h. */ |
5234 | _ACEOF |
5235 | cat confdefs.h >>conftest.$ac_ext |
5236 | cat >>conftest.$ac_ext <<_ACEOF |
5237 | /* end confdefs.h. */ |
5238 | #ifdef __STDC__ |
5239 | # include <limits.h> |
5240 | #else |
5241 | # include <assert.h> |
5242 | #endif |
5243 | Syntax error |
5244 | _ACEOF |
5245 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5246 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5247 | ac_status=$? |
5248 | grep -v '^ *+' conftest.er1 >conftest.err |
5249 | rm -f conftest.er1 |
5250 | cat conftest.err >&5 |
5251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5252 | (exit $ac_status); } >/dev/null; then |
5253 | if test -s conftest.err; then |
5254 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5255 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5256 | else |
5257 | ac_cpp_err= |
5258 | fi |
5259 | else |
5260 | ac_cpp_err=yes |
5261 | fi |
5262 | if test -z "$ac_cpp_err"; then |
5263 | : |
5264 | else |
5265 | echo "$as_me: failed program was:" >&5 |
5266 | sed 's/^/| /' conftest.$ac_ext >&5 |
5267 | |
5268 | # Broken: fails on valid input. |
5269 | continue |
5270 | fi |
5271 | rm -f conftest.err conftest.$ac_ext |
5272 | |
5273 | # OK, works on sane cases. Now check whether non-existent headers |
5274 | # can be detected and how. |
5275 | cat >conftest.$ac_ext <<_ACEOF |
5276 | /* confdefs.h. */ |
5277 | _ACEOF |
5278 | cat confdefs.h >>conftest.$ac_ext |
5279 | cat >>conftest.$ac_ext <<_ACEOF |
5280 | /* end confdefs.h. */ |
5281 | #include <ac_nonexistent.h> |
5282 | _ACEOF |
5283 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5284 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5285 | ac_status=$? |
5286 | grep -v '^ *+' conftest.er1 >conftest.err |
5287 | rm -f conftest.er1 |
5288 | cat conftest.err >&5 |
5289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5290 | (exit $ac_status); } >/dev/null; then |
5291 | if test -s conftest.err; then |
5292 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5293 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5294 | else |
5295 | ac_cpp_err= |
5296 | fi |
5297 | else |
5298 | ac_cpp_err=yes |
5299 | fi |
5300 | if test -z "$ac_cpp_err"; then |
5301 | # Broken: success on invalid input. |
5302 | continue |
5303 | else |
5304 | echo "$as_me: failed program was:" >&5 |
5305 | sed 's/^/| /' conftest.$ac_ext >&5 |
5306 | |
5307 | # Passes both tests. |
5308 | ac_preproc_ok=: |
5309 | break |
5310 | fi |
5311 | rm -f conftest.err conftest.$ac_ext |
5312 | |
5313 | done |
5314 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5315 | rm -f conftest.err conftest.$ac_ext |
5316 | if $ac_preproc_ok; then |
5317 | break |
5318 | fi |
5319 | |
5320 | done |
5321 | ac_cv_prog_CXXCPP=$CXXCPP |
5322 | |
5323 | fi |
5324 | CXXCPP=$ac_cv_prog_CXXCPP |
5325 | else |
5326 | ac_cv_prog_CXXCPP=$CXXCPP |
5327 | fi |
5328 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
5329 | echo "${ECHO_T}$CXXCPP" >&6 |
5330 | ac_preproc_ok=false |
5331 | for ac_cxx_preproc_warn_flag in '' yes |
5332 | do |
5333 | # Use a header file that comes with gcc, so configuring glibc |
5334 | # with a fresh cross-compiler works. |
5335 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5336 | # <limits.h> exists even on freestanding compilers. |
5337 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5338 | # not just through cpp. "Syntax error" is here to catch this case. |
5339 | cat >conftest.$ac_ext <<_ACEOF |
5340 | /* confdefs.h. */ |
5341 | _ACEOF |
5342 | cat confdefs.h >>conftest.$ac_ext |
5343 | cat >>conftest.$ac_ext <<_ACEOF |
5344 | /* end confdefs.h. */ |
5345 | #ifdef __STDC__ |
5346 | # include <limits.h> |
5347 | #else |
5348 | # include <assert.h> |
5349 | #endif |
5350 | Syntax error |
5351 | _ACEOF |
5352 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5353 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5354 | ac_status=$? |
5355 | grep -v '^ *+' conftest.er1 >conftest.err |
5356 | rm -f conftest.er1 |
5357 | cat conftest.err >&5 |
5358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5359 | (exit $ac_status); } >/dev/null; then |
5360 | if test -s conftest.err; then |
5361 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5362 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5363 | else |
5364 | ac_cpp_err= |
5365 | fi |
5366 | else |
5367 | ac_cpp_err=yes |
5368 | fi |
5369 | if test -z "$ac_cpp_err"; then |
5370 | : |
5371 | else |
5372 | echo "$as_me: failed program was:" >&5 |
5373 | sed 's/^/| /' conftest.$ac_ext >&5 |
5374 | |
5375 | # Broken: fails on valid input. |
5376 | continue |
5377 | fi |
5378 | rm -f conftest.err conftest.$ac_ext |
5379 | |
5380 | # OK, works on sane cases. Now check whether non-existent headers |
5381 | # can be detected and how. |
5382 | cat >conftest.$ac_ext <<_ACEOF |
5383 | /* confdefs.h. */ |
5384 | _ACEOF |
5385 | cat confdefs.h >>conftest.$ac_ext |
5386 | cat >>conftest.$ac_ext <<_ACEOF |
5387 | /* end confdefs.h. */ |
5388 | #include <ac_nonexistent.h> |
5389 | _ACEOF |
5390 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5391 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5392 | ac_status=$? |
5393 | grep -v '^ *+' conftest.er1 >conftest.err |
5394 | rm -f conftest.er1 |
5395 | cat conftest.err >&5 |
5396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5397 | (exit $ac_status); } >/dev/null; then |
5398 | if test -s conftest.err; then |
5399 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5400 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5401 | else |
5402 | ac_cpp_err= |
5403 | fi |
5404 | else |
5405 | ac_cpp_err=yes |
5406 | fi |
5407 | if test -z "$ac_cpp_err"; then |
5408 | # Broken: success on invalid input. |
5409 | continue |
5410 | else |
5411 | echo "$as_me: failed program was:" >&5 |
5412 | sed 's/^/| /' conftest.$ac_ext >&5 |
5413 | |
5414 | # Passes both tests. |
5415 | ac_preproc_ok=: |
5416 | break |
5417 | fi |
5418 | rm -f conftest.err conftest.$ac_ext |
5419 | |
5420 | done |
5421 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5422 | rm -f conftest.err conftest.$ac_ext |
5423 | if $ac_preproc_ok; then |
5424 | : |
5425 | else |
5426 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5427 | See \`config.log' for more details." >&5 |
5428 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5429 | See \`config.log' for more details." >&2;} |
5430 | { (exit 1); exit 1; }; } |
5431 | fi |
5432 | |
5433 | ac_ext=cc |
5434 | ac_cpp='$CXXCPP $CPPFLAGS' |
5435 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5436 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5437 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5438 | |
5439 | fi |
5440 | |
5441 | |
5442 | ac_ext=f |
5443 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
5444 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5445 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
5446 | if test -n "$ac_tool_prefix"; then |
5447 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
5448 | do |
5449 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5450 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
5451 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5452 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5453 | if test "${ac_cv_prog_F77+set}" = set; then |
5454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5455 | else |
5456 | if test -n "$F77"; then |
5457 | ac_cv_prog_F77="$F77" # Let the user override the test. |
5458 | else |
5459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5460 | for as_dir in $PATH |
5461 | do |
5462 | IFS=$as_save_IFS |
5463 | test -z "$as_dir" && as_dir=. |
5464 | for ac_exec_ext in '' $ac_executable_extensions; do |
5465 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5466 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
5467 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5468 | break 2 |
5469 | fi |
5470 | done |
5471 | done |
5472 | |
5473 | fi |
5474 | fi |
5475 | F77=$ac_cv_prog_F77 |
5476 | if test -n "$F77"; then |
5477 | echo "$as_me:$LINENO: result: $F77" >&5 |
5478 | echo "${ECHO_T}$F77" >&6 |
5479 | else |
5480 | echo "$as_me:$LINENO: result: no" >&5 |
5481 | echo "${ECHO_T}no" >&6 |
5482 | fi |
5483 | |
5484 | test -n "$F77" && break |
5485 | done |
5486 | fi |
5487 | if test -z "$F77"; then |
5488 | ac_ct_F77=$F77 |
5489 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
5490 | do |
5491 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5492 | set dummy $ac_prog; ac_word=$2 |
5493 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5494 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5495 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
5496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5497 | else |
5498 | if test -n "$ac_ct_F77"; then |
5499 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
5500 | else |
5501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5502 | for as_dir in $PATH |
5503 | do |
5504 | IFS=$as_save_IFS |
5505 | test -z "$as_dir" && as_dir=. |
5506 | for ac_exec_ext in '' $ac_executable_extensions; do |
5507 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5508 | ac_cv_prog_ac_ct_F77="$ac_prog" |
5509 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5510 | break 2 |
5511 | fi |
5512 | done |
5513 | done |
5514 | |
5515 | fi |
5516 | fi |
5517 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
5518 | if test -n "$ac_ct_F77"; then |
5519 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
5520 | echo "${ECHO_T}$ac_ct_F77" >&6 |
5521 | else |
5522 | echo "$as_me:$LINENO: result: no" >&5 |
5523 | echo "${ECHO_T}no" >&6 |
5524 | fi |
5525 | |
5526 | test -n "$ac_ct_F77" && break |
5527 | done |
5528 | |
5529 | F77=$ac_ct_F77 |
5530 | fi |
5531 | |
5532 | |
5533 | # Provide some information about the compiler. |
5534 | echo "$as_me:5534:" \ |
5535 | "checking for Fortran 77 compiler version" >&5 |
5536 | ac_compiler=`set X $ac_compile; echo $2` |
5537 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
5538 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
5539 | ac_status=$? |
5540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5541 | (exit $ac_status); } |
5542 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
5543 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
5544 | ac_status=$? |
5545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5546 | (exit $ac_status); } |
5547 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
5548 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
5549 | ac_status=$? |
5550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5551 | (exit $ac_status); } |
5552 | rm -f a.out |
5553 | |
5554 | # If we don't use `.F' as extension, the preprocessor is not run on the |
5555 | # input file. (Note that this only needs to work for GNU compilers.) |
5556 | ac_save_ext=$ac_ext |
5557 | ac_ext=F |
5558 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
5559 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
5560 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
5561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5562 | else |
5563 | cat >conftest.$ac_ext <<_ACEOF |
5564 | program main |
5565 | #ifndef __GNUC__ |
5566 | choke me |
5567 | #endif |
5568 | |
5569 | end |
5570 | _ACEOF |
5571 | rm -f conftest.$ac_objext |
5572 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5573 | (eval $ac_compile) 2>conftest.er1 |
5574 | ac_status=$? |
5575 | grep -v '^ *+' conftest.er1 >conftest.err |
5576 | rm -f conftest.er1 |
5577 | cat conftest.err >&5 |
5578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5579 | (exit $ac_status); } && |
5580 | { ac_try='test -z "$ac_f77_werror_flag" |
5581 | || test ! -s conftest.err' |
5582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5583 | (eval $ac_try) 2>&5 |
5584 | ac_status=$? |
5585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5586 | (exit $ac_status); }; } && |
5587 | { ac_try='test -s conftest.$ac_objext' |
5588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5589 | (eval $ac_try) 2>&5 |
5590 | ac_status=$? |
5591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5592 | (exit $ac_status); }; }; then |
5593 | ac_compiler_gnu=yes |
5594 | else |
5595 | echo "$as_me: failed program was:" >&5 |
5596 | sed 's/^/| /' conftest.$ac_ext >&5 |
5597 | |
5598 | ac_compiler_gnu=no |
5599 | fi |
5600 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5601 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
5602 | |
5603 | fi |
5604 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
5605 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
5606 | ac_ext=$ac_save_ext |
5607 | ac_test_FFLAGS=${FFLAGS+set} |
5608 | ac_save_FFLAGS=$FFLAGS |
5609 | FFLAGS= |
5610 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
5611 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
5612 | if test "${ac_cv_prog_f77_g+set}" = set; then |
5613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5614 | else |
5615 | FFLAGS=-g |
5616 | cat >conftest.$ac_ext <<_ACEOF |
5617 | program main |
5618 | |
5619 | end |
5620 | _ACEOF |
5621 | rm -f conftest.$ac_objext |
5622 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5623 | (eval $ac_compile) 2>conftest.er1 |
5624 | ac_status=$? |
5625 | grep -v '^ *+' conftest.er1 >conftest.err |
5626 | rm -f conftest.er1 |
5627 | cat conftest.err >&5 |
5628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5629 | (exit $ac_status); } && |
5630 | { ac_try='test -z "$ac_f77_werror_flag" |
5631 | || test ! -s conftest.err' |
5632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5633 | (eval $ac_try) 2>&5 |
5634 | ac_status=$? |
5635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5636 | (exit $ac_status); }; } && |
5637 | { ac_try='test -s conftest.$ac_objext' |
5638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5639 | (eval $ac_try) 2>&5 |
5640 | ac_status=$? |
5641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5642 | (exit $ac_status); }; }; then |
5643 | ac_cv_prog_f77_g=yes |
5644 | else |
5645 | echo "$as_me: failed program was:" >&5 |
5646 | sed 's/^/| /' conftest.$ac_ext >&5 |
5647 | |
5648 | ac_cv_prog_f77_g=no |
5649 | fi |
5650 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5651 | |
5652 | fi |
5653 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
5654 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
5655 | if test "$ac_test_FFLAGS" = set; then |
5656 | FFLAGS=$ac_save_FFLAGS |
5657 | elif test $ac_cv_prog_f77_g = yes; then |
5658 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
5659 | FFLAGS="-g -O2" |
5660 | else |
5661 | FFLAGS="-g" |
5662 | fi |
5663 | else |
5664 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
5665 | FFLAGS="-O2" |
5666 | else |
5667 | FFLAGS= |
5668 | fi |
5669 | fi |
5670 | |
5671 | G77=`test $ac_compiler_gnu = yes && echo yes` |
5672 | ac_ext=c |
5673 | ac_cpp='$CPP $CPPFLAGS' |
5674 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5675 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5676 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5677 | |
5678 | |
5679 | |
5680 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
5681 | |
5682 | # find the maximum length of command line arguments |
5683 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
5684 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
5685 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
5686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5687 | else |
5688 | i=0 |
5689 | teststring="ABCD" |
5690 | |
5691 | case $build_os in |
5692 | msdosdjgpp*) |
5693 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
5694 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
5695 | # during glob expansion). Even if it were fixed, the result of this |
5696 | # check would be larger than it should be. |
5697 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
5698 | ;; |
5699 | |
5700 | gnu*) |
5701 | # Under GNU Hurd, this test is not required because there is |
5702 | # no limit to the length of command line arguments. |
5703 | # Libtool will interpret -1 as no limit whatsoever |
5704 | lt_cv_sys_max_cmd_len=-1; |
5705 | ;; |
5706 | |
5707 | cygwin* | mingw*) |
5708 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5709 | # about 5 minutes as the teststring grows exponentially. |
5710 | # Worse, since 9x/ME are not pre-emptively multitasking, |
5711 | # you end up with a "frozen" computer, even though with patience |
5712 | # the test eventually succeeds (with a max line length of 256k). |
5713 | # Instead, let's just punt: use the minimum linelength reported by |
5714 | # all of the supported platforms: 8192 (on NT/2K/XP). |
5715 | lt_cv_sys_max_cmd_len=8192; |
5716 | ;; |
5717 | |
5718 | amigaos*) |
5719 | # On AmigaOS with pdksh, this test takes hours, literally. |
5720 | # So we just punt and use a minimum line length of 8192. |
5721 | lt_cv_sys_max_cmd_len=8192; |
5722 | ;; |
5723 | |
5724 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
5725 | # This has been around since 386BSD, at least. Likely further. |
5726 | if test -x /sbin/sysctl; then |
5727 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
5728 | elif test -x /usr/sbin/sysctl; then |
5729 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
5730 | else |
5731 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
5732 | fi |
5733 | # And add a safety zone |
5734 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5735 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
5736 | ;; |
5737 | |
5738 | interix*) |
5739 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
5740 | lt_cv_sys_max_cmd_len=196608 |
5741 | ;; |
5742 | |
5743 | osf*) |
5744 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
5745 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
5746 | # nice to cause kernel panics so lets avoid the loop below. |
5747 | # First set a reasonable default. |
5748 | lt_cv_sys_max_cmd_len=16384 |
5749 | # |
5750 | if test -x /sbin/sysconfig; then |
5751 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
5752 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
5753 | esac |
5754 | fi |
5755 | ;; |
5756 | sco3.2v5*) |
5757 | lt_cv_sys_max_cmd_len=102400 |
5758 | ;; |
5759 | sysv5* | sco5v6* | sysv4.2uw2*) |
5760 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
5761 | if test -n "$kargmax"; then |
5762 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
5763 | else |
5764 | lt_cv_sys_max_cmd_len=32768 |
5765 | fi |
5766 | ;; |
5767 | *) |
5768 | # If test is not a shell built-in, we'll probably end up computing a |
5769 | # maximum length that is only half of the actual maximum length, but |
5770 | # we can't tell. |
5771 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
5772 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
5773 | = "XX$teststring") >/dev/null 2>&1 && |
5774 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
5775 | lt_cv_sys_max_cmd_len=$new_result && |
5776 | test $i != 17 # 1/2 MB should be enough |
5777 | do |
5778 | i=`expr $i + 1` |
5779 | teststring=$teststring$teststring |
5780 | done |
5781 | teststring= |
5782 | # Add a significant safety factor because C++ compilers can tack on massive |
5783 | # amounts of additional arguments before passing them to the linker. |
5784 | # It appears as though 1/2 is a usable value. |
5785 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
5786 | ;; |
5787 | esac |
5788 | |
5789 | fi |
5790 | |
5791 | if test -n $lt_cv_sys_max_cmd_len ; then |
5792 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
5793 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
5794 | else |
5795 | echo "$as_me:$LINENO: result: none" >&5 |
5796 | echo "${ECHO_T}none" >&6 |
5797 | fi |
5798 | |
5799 | |
5800 | |
5801 | |
5802 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
5803 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
5804 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
5805 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
5806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5807 | else |
5808 | |
5809 | # These are sane defaults that work on at least a few old systems. |
5810 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
5811 | |
5812 | # Character class describing NM global symbol codes. |
5813 | symcode='[BCDEGRST]' |
5814 | |
5815 | # Regexp to match symbols that can be accessed directly from C. |
5816 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
5817 | |
5818 | # Transform an extracted symbol line into a proper C declaration |
5819 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
5820 | |
5821 | # Transform an extracted symbol line into symbol name and symbol address |
5822 | 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'" |
5823 | |
5824 | # Define system-specific variables. |
5825 | case $host_os in |
5826 | aix*) |
5827 | symcode='[BCDT]' |
5828 | ;; |
5829 | cygwin* | mingw* | pw32*) |
5830 | symcode='[ABCDGISTW]' |
5831 | ;; |
5832 | hpux*) # Its linker distinguishes data from code symbols |
5833 | if test "$host_cpu" = ia64; then |
5834 | symcode='[ABCDEGRST]' |
5835 | fi |
5836 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
5837 | 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'" |
5838 | ;; |
5839 | linux*) |
5840 | if test "$host_cpu" = ia64; then |
5841 | symcode='[ABCDGIRSTW]' |
5842 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
5843 | 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'" |
5844 | fi |
5845 | ;; |
5846 | irix* | nonstopux*) |
5847 | symcode='[BCDEGRST]' |
5848 | ;; |
5849 | osf*) |
5850 | symcode='[BCDEGQRST]' |
5851 | ;; |
5852 | solaris*) |
5853 | symcode='[BDRT]' |
5854 | ;; |
5855 | sco3.2v5*) |
5856 | symcode='[DT]' |
5857 | ;; |
5858 | sysv4.2uw2*) |
5859 | symcode='[DT]' |
5860 | ;; |
5861 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
5862 | symcode='[ABDT]' |
5863 | ;; |
5864 | sysv4) |
5865 | symcode='[DFNSTU]' |
5866 | ;; |
5867 | esac |
5868 | |
5869 | # Handle CRLF in mingw tool chain |
5870 | opt_cr= |
5871 | case $build_os in |
5872 | mingw*) |
5873 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
5874 | ;; |
5875 | esac |
5876 | |
5877 | # If we're using GNU nm, then use its standard symbol codes. |
5878 | case `$NM -V 2>&1` in |
5879 | *GNU* | *'with BFD'*) |
5880 | symcode='[ABCDGIRSTW]' ;; |
5881 | esac |
5882 | |
5883 | # Try without a prefix undercore, then with it. |
5884 | for ac_symprfx in "" "_"; do |
5885 | |
5886 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
5887 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
5888 | |
5889 | # Write the raw and C identifiers. |
5890 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
5891 | |
5892 | # Check to see that the pipe works correctly. |
5893 | pipe_works=no |
5894 | |
5895 | rm -f conftest* |
5896 | cat > conftest.$ac_ext <<EOF |
5897 | #ifdef __cplusplus |
5898 | extern "C" { |
5899 | #endif |
5900 | char nm_test_var; |
5901 | void nm_test_func(){} |
5902 | #ifdef __cplusplus |
5903 | } |
5904 | #endif |
5905 | int main(){nm_test_var='a';nm_test_func();return(0);} |
5906 | EOF |
5907 | |
5908 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5909 | (eval $ac_compile) 2>&5 |
5910 | ac_status=$? |
5911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5912 | (exit $ac_status); }; then |
5913 | # Now try to grab the symbols. |
5914 | nlist=conftest.nm |
5915 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
5916 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
5917 | ac_status=$? |
5918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5919 | (exit $ac_status); } && test -s "$nlist"; then |
5920 | # Try sorting and uniquifying the output. |
5921 | if sort "$nlist" | uniq > "$nlist"T; then |
5922 | mv -f "$nlist"T "$nlist" |
5923 | else |
5924 | rm -f "$nlist"T |
5925 | fi |
5926 | |
5927 | # Make sure that we snagged all the symbols we need. |
5928 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
5929 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
5930 | cat <<EOF > conftest.$ac_ext |
5931 | #ifdef __cplusplus |
5932 | extern "C" { |
5933 | #endif |
5934 | |
5935 | EOF |
5936 | # Now generate the symbol file. |
5937 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
5938 | |
5939 | cat <<EOF >> conftest.$ac_ext |
5940 | #if defined (__STDC__) && __STDC__ |
5941 | # define lt_ptr_t void * |
5942 | #else |
5943 | # define lt_ptr_t char * |
5944 | # define const |
5945 | #endif |
5946 | |
5947 | /* The mapping between symbol names and symbols. */ |
5948 | const struct { |
5949 | const char *name; |
5950 | lt_ptr_t address; |
5951 | } |
5952 | lt_preloaded_symbols[] = |
5953 | { |
5954 | EOF |
5955 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
5956 | cat <<\EOF >> conftest.$ac_ext |
5957 | {0, (lt_ptr_t) 0} |
5958 | }; |
5959 | |
5960 | #ifdef __cplusplus |
5961 | } |
5962 | #endif |
5963 | EOF |
5964 | # Now try linking the two files. |
5965 | mv conftest.$ac_objext conftstm.$ac_objext |
5966 | lt_save_LIBS="$LIBS" |
5967 | lt_save_CFLAGS="$CFLAGS" |
5968 | LIBS="conftstm.$ac_objext" |
5969 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
5970 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5971 | (eval $ac_link) 2>&5 |
5972 | ac_status=$? |
5973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5974 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
5975 | pipe_works=yes |
5976 | fi |
5977 | LIBS="$lt_save_LIBS" |
5978 | CFLAGS="$lt_save_CFLAGS" |
5979 | else |
5980 | echo "cannot find nm_test_func in $nlist" >&5 |
5981 | fi |
5982 | else |
5983 | echo "cannot find nm_test_var in $nlist" >&5 |
5984 | fi |
5985 | else |
5986 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
5987 | fi |
5988 | else |
5989 | echo "$progname: failed program was:" >&5 |
5990 | cat conftest.$ac_ext >&5 |
5991 | fi |
5992 | rm -f conftest* conftst* |
5993 | |
5994 | # Do not use the global_symbol_pipe unless it works. |
5995 | if test "$pipe_works" = yes; then |
5996 | break |
5997 | else |
5998 | lt_cv_sys_global_symbol_pipe= |
5999 | fi |
6000 | done |
6001 | |
6002 | fi |
6003 | |
6004 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
6005 | lt_cv_sys_global_symbol_to_cdecl= |
6006 | fi |
6007 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
6008 | echo "$as_me:$LINENO: result: failed" >&5 |
6009 | echo "${ECHO_T}failed" >&6 |
6010 | else |
6011 | echo "$as_me:$LINENO: result: ok" >&5 |
6012 | echo "${ECHO_T}ok" >&6 |
6013 | fi |
6014 | |
6015 | echo "$as_me:$LINENO: checking for objdir" >&5 |
6016 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
6017 | if test "${lt_cv_objdir+set}" = set; then |
6018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6019 | else |
6020 | rm -f .libs 2>/dev/null |
6021 | mkdir .libs 2>/dev/null |
6022 | if test -d .libs; then |
6023 | lt_cv_objdir=.libs |
6024 | else |
6025 | # MS-DOS does not allow filenames that begin with a dot. |
6026 | lt_cv_objdir=_libs |
6027 | fi |
6028 | rmdir .libs 2>/dev/null |
6029 | fi |
6030 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
6031 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
6032 | objdir=$lt_cv_objdir |
6033 | |
6034 | |
6035 | |
6036 | |
6037 | |
6038 | case $host_os in |
6039 | aix3*) |
6040 | # AIX sometimes has problems with the GCC collect2 program. For some |
6041 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
6042 | # vanish in a puff of smoke. |
6043 | if test "X${COLLECT_NAMES+set}" != Xset; then |
6044 | COLLECT_NAMES= |
6045 | export COLLECT_NAMES |
6046 | fi |
6047 | ;; |
6048 | esac |
6049 | |
6050 | # Sed substitution that helps us do robust quoting. It backslashifies |
6051 | # metacharacters that are still active within double-quoted strings. |
6052 | Xsed='sed -e 1s/^X//' |
6053 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
6054 | |
6055 | # Same as above, but do not quote variable references. |
6056 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
6057 | |
6058 | # Sed substitution to delay expansion of an escaped shell variable in a |
6059 | # double_quote_subst'ed string. |
6060 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
6061 | |
6062 | # Sed substitution to avoid accidental globbing in evaled expressions |
6063 | no_glob_subst='s/\*/\\\*/g' |
6064 | |
6065 | # Constants: |
6066 | rm="rm -f" |
6067 | |
6068 | # Global variables: |
6069 | default_ofile=libtool |
6070 | can_build_shared=yes |
6071 | |
6072 | # All known linkers require a `.a' archive for static linking (except MSVC, |
6073 | # which needs '.lib'). |
6074 | libext=a |
6075 | ltmain="$ac_aux_dir/ltmain.sh" |
6076 | ofile="$default_ofile" |
6077 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
6078 | |
6079 | if test -n "$ac_tool_prefix"; then |
6080 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
6081 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
6082 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6083 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6084 | if test "${ac_cv_prog_AR+set}" = set; then |
6085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6086 | else |
6087 | if test -n "$AR"; then |
6088 | ac_cv_prog_AR="$AR" # Let the user override the test. |
6089 | else |
6090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6091 | for as_dir in $PATH |
6092 | do |
6093 | IFS=$as_save_IFS |
6094 | test -z "$as_dir" && as_dir=. |
6095 | for ac_exec_ext in '' $ac_executable_extensions; do |
6096 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6097 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6098 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6099 | break 2 |
6100 | fi |
6101 | done |
6102 | done |
6103 | |
6104 | fi |
6105 | fi |
6106 | AR=$ac_cv_prog_AR |
6107 | if test -n "$AR"; then |
6108 | echo "$as_me:$LINENO: result: $AR" >&5 |
6109 | echo "${ECHO_T}$AR" >&6 |
6110 | else |
6111 | echo "$as_me:$LINENO: result: no" >&5 |
6112 | echo "${ECHO_T}no" >&6 |
6113 | fi |
6114 | |
6115 | fi |
6116 | if test -z "$ac_cv_prog_AR"; then |
6117 | ac_ct_AR=$AR |
6118 | # Extract the first word of "ar", so it can be a program name with args. |
6119 | set dummy ar; ac_word=$2 |
6120 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6121 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6122 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
6123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6124 | else |
6125 | if test -n "$ac_ct_AR"; then |
6126 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
6127 | else |
6128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6129 | for as_dir in $PATH |
6130 | do |
6131 | IFS=$as_save_IFS |
6132 | test -z "$as_dir" && as_dir=. |
6133 | for ac_exec_ext in '' $ac_executable_extensions; do |
6134 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6135 | ac_cv_prog_ac_ct_AR="ar" |
6136 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6137 | break 2 |
6138 | fi |
6139 | done |
6140 | done |
6141 | |
6142 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
6143 | fi |
6144 | fi |
6145 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6146 | if test -n "$ac_ct_AR"; then |
6147 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
6148 | echo "${ECHO_T}$ac_ct_AR" >&6 |
6149 | else |
6150 | echo "$as_me:$LINENO: result: no" >&5 |
6151 | echo "${ECHO_T}no" >&6 |
6152 | fi |
6153 | |
6154 | AR=$ac_ct_AR |
6155 | else |
6156 | AR="$ac_cv_prog_AR" |
6157 | fi |
6158 | |
6159 | if test -n "$ac_tool_prefix"; then |
6160 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
6161 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
6162 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6163 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6164 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
6165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6166 | else |
6167 | if test -n "$RANLIB"; then |
6168 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
6169 | else |
6170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6171 | for as_dir in $PATH |
6172 | do |
6173 | IFS=$as_save_IFS |
6174 | test -z "$as_dir" && as_dir=. |
6175 | for ac_exec_ext in '' $ac_executable_extensions; do |
6176 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6177 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6178 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6179 | break 2 |
6180 | fi |
6181 | done |
6182 | done |
6183 | |
6184 | fi |
6185 | fi |
6186 | RANLIB=$ac_cv_prog_RANLIB |
6187 | if test -n "$RANLIB"; then |
6188 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6189 | echo "${ECHO_T}$RANLIB" >&6 |
6190 | else |
6191 | echo "$as_me:$LINENO: result: no" >&5 |
6192 | echo "${ECHO_T}no" >&6 |
6193 | fi |
6194 | |
6195 | fi |
6196 | if test -z "$ac_cv_prog_RANLIB"; then |
6197 | ac_ct_RANLIB=$RANLIB |
6198 | # Extract the first word of "ranlib", so it can be a program name with args. |
6199 | set dummy ranlib; ac_word=$2 |
6200 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6201 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6202 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
6203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6204 | else |
6205 | if test -n "$ac_ct_RANLIB"; then |
6206 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
6207 | else |
6208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6209 | for as_dir in $PATH |
6210 | do |
6211 | IFS=$as_save_IFS |
6212 | test -z "$as_dir" && as_dir=. |
6213 | for ac_exec_ext in '' $ac_executable_extensions; do |
6214 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6215 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6216 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6217 | break 2 |
6218 | fi |
6219 | done |
6220 | done |
6221 | |
6222 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
6223 | fi |
6224 | fi |
6225 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6226 | if test -n "$ac_ct_RANLIB"; then |
6227 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
6228 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
6229 | else |
6230 | echo "$as_me:$LINENO: result: no" >&5 |
6231 | echo "${ECHO_T}no" >&6 |
6232 | fi |
6233 | |
6234 | RANLIB=$ac_ct_RANLIB |
6235 | else |
6236 | RANLIB="$ac_cv_prog_RANLIB" |
6237 | fi |
6238 | |
6239 | if test -n "$ac_tool_prefix"; then |
6240 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6241 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
6242 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6243 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6244 | if test "${ac_cv_prog_STRIP+set}" = set; then |
6245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6246 | else |
6247 | if test -n "$STRIP"; then |
6248 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
6249 | else |
6250 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6251 | for as_dir in $PATH |
6252 | do |
6253 | IFS=$as_save_IFS |
6254 | test -z "$as_dir" && as_dir=. |
6255 | for ac_exec_ext in '' $ac_executable_extensions; do |
6256 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6257 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6258 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6259 | break 2 |
6260 | fi |
6261 | done |
6262 | done |
6263 | |
6264 | fi |
6265 | fi |
6266 | STRIP=$ac_cv_prog_STRIP |
6267 | if test -n "$STRIP"; then |
6268 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
6269 | echo "${ECHO_T}$STRIP" >&6 |
6270 | else |
6271 | echo "$as_me:$LINENO: result: no" >&5 |
6272 | echo "${ECHO_T}no" >&6 |
6273 | fi |
6274 | |
6275 | fi |
6276 | if test -z "$ac_cv_prog_STRIP"; then |
6277 | ac_ct_STRIP=$STRIP |
6278 | # Extract the first word of "strip", so it can be a program name with args. |
6279 | set dummy strip; ac_word=$2 |
6280 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6281 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6282 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
6283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6284 | else |
6285 | if test -n "$ac_ct_STRIP"; then |
6286 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
6287 | else |
6288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6289 | for as_dir in $PATH |
6290 | do |
6291 | IFS=$as_save_IFS |
6292 | test -z "$as_dir" && as_dir=. |
6293 | for ac_exec_ext in '' $ac_executable_extensions; do |
6294 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6295 | ac_cv_prog_ac_ct_STRIP="strip" |
6296 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6297 | break 2 |
6298 | fi |
6299 | done |
6300 | done |
6301 | |
6302 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
6303 | fi |
6304 | fi |
6305 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6306 | if test -n "$ac_ct_STRIP"; then |
6307 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
6308 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
6309 | else |
6310 | echo "$as_me:$LINENO: result: no" >&5 |
6311 | echo "${ECHO_T}no" >&6 |
6312 | fi |
6313 | |
6314 | STRIP=$ac_ct_STRIP |
6315 | else |
6316 | STRIP="$ac_cv_prog_STRIP" |
6317 | fi |
6318 | |
6319 | |
6320 | old_CC="$CC" |
6321 | old_CFLAGS="$CFLAGS" |
6322 | |
6323 | # Set sane defaults for various variables |
6324 | test -z "$AR" && AR=ar |
6325 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
6326 | test -z "$AS" && AS=as |
6327 | test -z "$CC" && CC=cc |
6328 | test -z "$LTCC" && LTCC=$CC |
6329 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
6330 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
6331 | test -z "$LD" && LD=ld |
6332 | test -z "$LN_S" && LN_S="ln -s" |
6333 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
6334 | test -z "$NM" && NM=nm |
6335 | test -z "$SED" && SED=sed |
6336 | test -z "$OBJDUMP" && OBJDUMP=objdump |
6337 | test -z "$RANLIB" && RANLIB=: |
6338 | test -z "$STRIP" && STRIP=: |
6339 | test -z "$ac_objext" && ac_objext=o |
6340 | |
6341 | # Determine commands to create old-style static archives. |
6342 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
6343 | old_postinstall_cmds='chmod 644 $oldlib' |
6344 | old_postuninstall_cmds= |
6345 | |
6346 | if test -n "$RANLIB"; then |
6347 | case $host_os in |
6348 | openbsd*) |
6349 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
6350 | ;; |
6351 | *) |
6352 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
6353 | ;; |
6354 | esac |
6355 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
6356 | fi |
6357 | |
6358 | for cc_temp in $compiler""; do |
6359 | case $cc_temp in |
6360 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
6361 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
6362 | \-*) ;; |
6363 | *) break;; |
6364 | esac |
6365 | done |
6366 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
6367 | |
6368 | |
6369 | # Only perform the check for file, if the check method requires it |
6370 | case $deplibs_check_method in |
6371 | file_magic*) |
6372 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
6373 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
6374 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
6375 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
6376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6377 | else |
6378 | case $MAGIC_CMD in |
6379 | [\\/*] | ?:[\\/]*) |
6380 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6381 | ;; |
6382 | *) |
6383 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
6384 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6385 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
6386 | for ac_dir in $ac_dummy; do |
6387 | IFS="$lt_save_ifs" |
6388 | test -z "$ac_dir" && ac_dir=. |
6389 | if test -f $ac_dir/${ac_tool_prefix}file; then |
6390 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
6391 | if test -n "$file_magic_test_file"; then |
6392 | case $deplibs_check_method in |
6393 | "file_magic "*) |
6394 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
6395 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6396 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6397 | $EGREP "$file_magic_regex" > /dev/null; then |
6398 | : |
6399 | else |
6400 | cat <<EOF 1>&2 |
6401 | |
6402 | *** Warning: the command libtool uses to detect shared libraries, |
6403 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
6404 | *** The result is that libtool may fail to recognize shared libraries |
6405 | *** as such. This will affect the creation of libtool libraries that |
6406 | *** depend on shared libraries, but programs linked with such libtool |
6407 | *** libraries will work regardless of this problem. Nevertheless, you |
6408 | *** may want to report the problem to your system manager and/or to |
6409 | *** bug-libtool@gnu.org |
6410 | |
6411 | EOF |
6412 | fi ;; |
6413 | esac |
6414 | fi |
6415 | break |
6416 | fi |
6417 | done |
6418 | IFS="$lt_save_ifs" |
6419 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
6420 | ;; |
6421 | esac |
6422 | fi |
6423 | |
6424 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6425 | if test -n "$MAGIC_CMD"; then |
6426 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
6427 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
6428 | else |
6429 | echo "$as_me:$LINENO: result: no" >&5 |
6430 | echo "${ECHO_T}no" >&6 |
6431 | fi |
6432 | |
6433 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
6434 | if test -n "$ac_tool_prefix"; then |
6435 | echo "$as_me:$LINENO: checking for file" >&5 |
6436 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
6437 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
6438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6439 | else |
6440 | case $MAGIC_CMD in |
6441 | [\\/*] | ?:[\\/]*) |
6442 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6443 | ;; |
6444 | *) |
6445 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
6446 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6447 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
6448 | for ac_dir in $ac_dummy; do |
6449 | IFS="$lt_save_ifs" |
6450 | test -z "$ac_dir" && ac_dir=. |
6451 | if test -f $ac_dir/file; then |
6452 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
6453 | if test -n "$file_magic_test_file"; then |
6454 | case $deplibs_check_method in |
6455 | "file_magic "*) |
6456 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
6457 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6458 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6459 | $EGREP "$file_magic_regex" > /dev/null; then |
6460 | : |
6461 | else |
6462 | cat <<EOF 1>&2 |
6463 | |
6464 | *** Warning: the command libtool uses to detect shared libraries, |
6465 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
6466 | *** The result is that libtool may fail to recognize shared libraries |
6467 | *** as such. This will affect the creation of libtool libraries that |
6468 | *** depend on shared libraries, but programs linked with such libtool |
6469 | *** libraries will work regardless of this problem. Nevertheless, you |
6470 | *** may want to report the problem to your system manager and/or to |
6471 | *** bug-libtool@gnu.org |
6472 | |
6473 | EOF |
6474 | fi ;; |
6475 | esac |
6476 | fi |
6477 | break |
6478 | fi |
6479 | done |
6480 | IFS="$lt_save_ifs" |
6481 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
6482 | ;; |
6483 | esac |
6484 | fi |
6485 | |
6486 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6487 | if test -n "$MAGIC_CMD"; then |
6488 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
6489 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
6490 | else |
6491 | echo "$as_me:$LINENO: result: no" >&5 |
6492 | echo "${ECHO_T}no" >&6 |
6493 | fi |
6494 | |
6495 | else |
6496 | MAGIC_CMD=: |
6497 | fi |
6498 | fi |
6499 | |
6500 | fi |
6501 | ;; |
6502 | esac |
6503 | |
6504 | enable_dlopen=no |
6505 | enable_win32_dll=no |
6506 | |
6507 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
6508 | if test "${enable_libtool_lock+set}" = set; then |
6509 | enableval="$enable_libtool_lock" |
6510 | |
6511 | fi; |
6512 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6513 | |
6514 | |
6515 | # Check whether --with-pic or --without-pic was given. |
6516 | if test "${with_pic+set}" = set; then |
6517 | withval="$with_pic" |
6518 | pic_mode="$withval" |
6519 | else |
6520 | pic_mode=default |
6521 | fi; |
6522 | test -z "$pic_mode" && pic_mode=default |
6523 | |
6524 | # Use C for the default configuration in the libtool script |
6525 | tagname= |
6526 | lt_save_CC="$CC" |
6527 | ac_ext=c |
6528 | ac_cpp='$CPP $CPPFLAGS' |
6529 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6530 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6531 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6532 | |
6533 | |
6534 | # Source file extension for C test sources. |
6535 | ac_ext=c |
6536 | |
6537 | # Object file extension for compiled C test sources. |
6538 | objext=o |
6539 | objext=$objext |
6540 | |
6541 | # Code to be used in simple compile tests |
6542 | lt_simple_compile_test_code="int some_variable = 0;\n" |
6543 | |
6544 | # Code to be used in simple link tests |
6545 | lt_simple_link_test_code='int main(){return(0);}\n' |
6546 | |
6547 | |
6548 | # If no C compiler was specified, use CC. |
6549 | LTCC=${LTCC-"$CC"} |
6550 | |
6551 | # If no C compiler flags were specified, use CFLAGS. |
6552 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
6553 | |
6554 | # Allow CC to be a program name with arguments. |
6555 | compiler=$CC |
6556 | |
6557 | |
6558 | # save warnings/boilerplate of simple test code |
6559 | ac_outfile=conftest.$ac_objext |
6560 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
6561 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
6562 | _lt_compiler_boilerplate=`cat conftest.err` |
6563 | $rm conftest* |
6564 | |
6565 | ac_outfile=conftest.$ac_objext |
6566 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
6567 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
6568 | _lt_linker_boilerplate=`cat conftest.err` |
6569 | $rm conftest* |
6570 | |
6571 | |
6572 | |
6573 | lt_prog_compiler_no_builtin_flag= |
6574 | |
6575 | if test "$GCC" = yes; then |
6576 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
6577 | |
6578 | |
6579 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
6580 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
6581 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
6582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6583 | else |
6584 | lt_cv_prog_compiler_rtti_exceptions=no |
6585 | ac_outfile=conftest.$ac_objext |
6586 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6587 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
6588 | # Insert the option either (1) after the last *FLAGS variable, or |
6589 | # (2) before a word containing "conftest.", or (3) at the end. |
6590 | # Note that $ac_compile itself does not contain backslashes and begins |
6591 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
6592 | # The option is referenced via a variable to avoid confusing sed. |
6593 | lt_compile=`echo "$ac_compile" | $SED \ |
6594 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
6595 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6596 | -e 's:$: $lt_compiler_flag:'` |
6597 | (eval echo "\"\$as_me:6597: $lt_compile\"" >&5) |
6598 | (eval "$lt_compile" 2>conftest.err) |
6599 | ac_status=$? |
6600 | cat conftest.err >&5 |
6601 | echo "$as_me:6601: \$? = $ac_status" >&5 |
6602 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6603 | # The compiler can only warn and ignore the option if not recognized |
6604 | # So say no if there are warnings other than the usual output. |
6605 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
6606 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
6607 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
6608 | lt_cv_prog_compiler_rtti_exceptions=yes |
6609 | fi |
6610 | fi |
6611 | $rm conftest* |
6612 | |
6613 | fi |
6614 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
6615 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
6616 | |
6617 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
6618 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
6619 | else |
6620 | : |
6621 | fi |
6622 | |
6623 | fi |
6624 | |
6625 | lt_prog_compiler_wl= |
6626 | lt_prog_compiler_pic= |
6627 | lt_prog_compiler_static= |
6628 | |
6629 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
6630 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
6631 | |
6632 | if test "$GCC" = yes; then |
6633 | lt_prog_compiler_wl='-Wl,' |
6634 | lt_prog_compiler_static='-static' |
6635 | |
6636 | case $host_os in |
6637 | aix*) |
6638 | # All AIX code is PIC. |
6639 | if test "$host_cpu" = ia64; then |
6640 | # AIX 5 now supports IA64 processor |
6641 | lt_prog_compiler_static='-Bstatic' |
6642 | fi |
6643 | ;; |
6644 | |
6645 | amigaos*) |
6646 | # FIXME: we need at least 68020 code to build shared libraries, but |
6647 | # adding the `-m68020' flag to GCC prevents building anything better, |
6648 | # like `-m68040'. |
6649 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
6650 | ;; |
6651 | |
6652 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
6653 | # PIC is the default for these OSes. |
6654 | ;; |
6655 | |
6656 | mingw* | pw32* | os2*) |
6657 | # This hack is so that the source file can tell whether it is being |
6658 | # built for inclusion in a dll (and should export symbols for example). |
6659 | lt_prog_compiler_pic='-DDLL_EXPORT' |
6660 | ;; |
6661 | |
6662 | darwin* | rhapsody*) |
6663 | # PIC is the default on this platform |
6664 | # Common symbols not allowed in MH_DYLIB files |
6665 | lt_prog_compiler_pic='-fno-common' |
6666 | ;; |
6667 | |
6668 | interix3*) |
6669 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
6670 | # Instead, we relocate shared libraries at runtime. |
6671 | ;; |
6672 | |
6673 | msdosdjgpp*) |
6674 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
6675 | # on systems that don't support them. |
6676 | lt_prog_compiler_can_build_shared=no |
6677 | enable_shared=no |
6678 | ;; |
6679 | |
6680 | sysv4*MP*) |
6681 | if test -d /usr/nec; then |
6682 | lt_prog_compiler_pic=-Kconform_pic |
6683 | fi |
6684 | ;; |
6685 | |
6686 | hpux*) |
6687 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
6688 | # not for PA HP-UX. |
6689 | case $host_cpu in |
6690 | hppa*64*|ia64*) |
6691 | # +Z the default |
6692 | ;; |
6693 | *) |
6694 | lt_prog_compiler_pic='-fPIC' |
6695 | ;; |
6696 | esac |
6697 | ;; |
6698 | |
6699 | *) |
6700 | lt_prog_compiler_pic='-fPIC' |
6701 | ;; |
6702 | esac |
6703 | else |
6704 | # PORTME Check for flag to pass linker flags through the system compiler. |
6705 | case $host_os in |
6706 | aix*) |
6707 | lt_prog_compiler_wl='-Wl,' |
6708 | if test "$host_cpu" = ia64; then |
6709 | # AIX 5 now supports IA64 processor |
6710 | lt_prog_compiler_static='-Bstatic' |
6711 | else |
6712 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
6713 | fi |
6714 | ;; |
6715 | darwin*) |
6716 | # PIC is the default on this platform |
6717 | # Common symbols not allowed in MH_DYLIB files |
6718 | case $cc_basename in |
6719 | xlc*) |
6720 | lt_prog_compiler_pic='-qnocommon' |
6721 | lt_prog_compiler_wl='-Wl,' |
6722 | ;; |
6723 | esac |
6724 | ;; |
6725 | |
6726 | mingw* | pw32* | os2*) |
6727 | # This hack is so that the source file can tell whether it is being |
6728 | # built for inclusion in a dll (and should export symbols for example). |
6729 | lt_prog_compiler_pic='-DDLL_EXPORT' |
6730 | ;; |
6731 | |
6732 | hpux9* | hpux10* | hpux11*) |
6733 | lt_prog_compiler_wl='-Wl,' |
6734 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
6735 | # not for PA HP-UX. |
6736 | case $host_cpu in |
6737 | hppa*64*|ia64*) |
6738 | # +Z the default |
6739 | ;; |
6740 | *) |
6741 | lt_prog_compiler_pic='+Z' |
6742 | ;; |
6743 | esac |
6744 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
6745 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
6746 | ;; |
6747 | |
6748 | irix5* | irix6* | nonstopux*) |
6749 | lt_prog_compiler_wl='-Wl,' |
6750 | # PIC (with -KPIC) is the default. |
6751 | lt_prog_compiler_static='-non_shared' |
6752 | ;; |
6753 | |
6754 | newsos6) |
6755 | lt_prog_compiler_pic='-KPIC' |
6756 | lt_prog_compiler_static='-Bstatic' |
6757 | ;; |
6758 | |
6759 | linux*) |
6760 | case $cc_basename in |
6761 | icc* | ecc*) |
6762 | lt_prog_compiler_wl='-Wl,' |
6763 | lt_prog_compiler_pic='-KPIC' |
6764 | lt_prog_compiler_static='-static' |
6765 | ;; |
6766 | pgcc* | pgf77* | pgf90* | pgf95*) |
6767 | # Portland Group compilers (*not* the Pentium gcc compiler, |
6768 | # which looks to be a dead project) |
6769 | lt_prog_compiler_wl='-Wl,' |
6770 | lt_prog_compiler_pic='-fpic' |
6771 | lt_prog_compiler_static='-Bstatic' |
6772 | ;; |
6773 | ccc*) |
6774 | lt_prog_compiler_wl='-Wl,' |
6775 | # All Alpha code is PIC. |
6776 | lt_prog_compiler_static='-non_shared' |
6777 | ;; |
6778 | esac |
6779 | ;; |
6780 | |
6781 | osf3* | osf4* | osf5*) |
6782 | lt_prog_compiler_wl='-Wl,' |
6783 | # All OSF/1 code is PIC. |
6784 | lt_prog_compiler_static='-non_shared' |
6785 | ;; |
6786 | |
6787 | solaris*) |
6788 | lt_prog_compiler_pic='-KPIC' |
6789 | lt_prog_compiler_static='-Bstatic' |
6790 | case $cc_basename in |
6791 | f77* | f90* | f95*) |
6792 | lt_prog_compiler_wl='-Qoption ld ';; |
6793 | *) |
6794 | lt_prog_compiler_wl='-Wl,';; |
6795 | esac |
6796 | ;; |
6797 | |
6798 | sunos4*) |
6799 | lt_prog_compiler_wl='-Qoption ld ' |
6800 | lt_prog_compiler_pic='-PIC' |
6801 | lt_prog_compiler_static='-Bstatic' |
6802 | ;; |
6803 | |
6804 | sysv4 | sysv4.2uw2* | sysv4.3*) |
6805 | lt_prog_compiler_wl='-Wl,' |
6806 | lt_prog_compiler_pic='-KPIC' |
6807 | lt_prog_compiler_static='-Bstatic' |
6808 | ;; |
6809 | |
6810 | sysv4*MP*) |
6811 | if test -d /usr/nec ;then |
6812 | lt_prog_compiler_pic='-Kconform_pic' |
6813 | lt_prog_compiler_static='-Bstatic' |
6814 | fi |
6815 | ;; |
6816 | |
6817 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
6818 | lt_prog_compiler_wl='-Wl,' |
6819 | lt_prog_compiler_pic='-KPIC' |
6820 | lt_prog_compiler_static='-Bstatic' |
6821 | ;; |
6822 | |
6823 | unicos*) |
6824 | lt_prog_compiler_wl='-Wl,' |
6825 | lt_prog_compiler_can_build_shared=no |
6826 | ;; |
6827 | |
6828 | uts4*) |
6829 | lt_prog_compiler_pic='-pic' |
6830 | lt_prog_compiler_static='-Bstatic' |
6831 | ;; |
6832 | |
6833 | *) |
6834 | lt_prog_compiler_can_build_shared=no |
6835 | ;; |
6836 | esac |
6837 | fi |
6838 | |
6839 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
6840 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
6841 | |
6842 | # |
6843 | # Check to make sure the PIC flag actually works. |
6844 | # |
6845 | if test -n "$lt_prog_compiler_pic"; then |
6846 | |
6847 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
6848 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
6849 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
6850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6851 | else |
6852 | lt_prog_compiler_pic_works=no |
6853 | ac_outfile=conftest.$ac_objext |
6854 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6855 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
6856 | # Insert the option either (1) after the last *FLAGS variable, or |
6857 | # (2) before a word containing "conftest.", or (3) at the end. |
6858 | # Note that $ac_compile itself does not contain backslashes and begins |
6859 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
6860 | # The option is referenced via a variable to avoid confusing sed. |
6861 | lt_compile=`echo "$ac_compile" | $SED \ |
6862 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
6863 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6864 | -e 's:$: $lt_compiler_flag:'` |
6865 | (eval echo "\"\$as_me:6865: $lt_compile\"" >&5) |
6866 | (eval "$lt_compile" 2>conftest.err) |
6867 | ac_status=$? |
6868 | cat conftest.err >&5 |
6869 | echo "$as_me:6869: \$? = $ac_status" >&5 |
6870 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6871 | # The compiler can only warn and ignore the option if not recognized |
6872 | # So say no if there are warnings other than the usual output. |
6873 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
6874 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
6875 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
6876 | lt_prog_compiler_pic_works=yes |
6877 | fi |
6878 | fi |
6879 | $rm conftest* |
6880 | |
6881 | fi |
6882 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
6883 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
6884 | |
6885 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
6886 | case $lt_prog_compiler_pic in |
6887 | "" | " "*) ;; |
6888 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
6889 | esac |
6890 | else |
6891 | lt_prog_compiler_pic= |
6892 | lt_prog_compiler_can_build_shared=no |
6893 | fi |
6894 | |
6895 | fi |
6896 | case $host_os in |
6897 | # For platforms which do not support PIC, -DPIC is meaningless: |
6898 | *djgpp*) |
6899 | lt_prog_compiler_pic= |
6900 | ;; |
6901 | *) |
6902 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
6903 | ;; |
6904 | esac |
6905 | |
6906 | # |
6907 | # Check to make sure the static flag actually works. |
6908 | # |
6909 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
6910 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
6911 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
6912 | if test "${lt_prog_compiler_static_works+set}" = set; then |
6913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6914 | else |
6915 | lt_prog_compiler_static_works=no |
6916 | save_LDFLAGS="$LDFLAGS" |
6917 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
6918 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
6919 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
6920 | # The linker can only warn and ignore the option if not recognized |
6921 | # So say no if there are warnings |
6922 | if test -s conftest.err; then |
6923 | # Append any errors to the config.log. |
6924 | cat conftest.err 1>&5 |
6925 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
6926 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
6927 | if diff conftest.exp conftest.er2 >/dev/null; then |
6928 | lt_prog_compiler_static_works=yes |
6929 | fi |
6930 | else |
6931 | lt_prog_compiler_static_works=yes |
6932 | fi |
6933 | fi |
6934 | $rm conftest* |
6935 | LDFLAGS="$save_LDFLAGS" |
6936 | |
6937 | fi |
6938 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
6939 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
6940 | |
6941 | if test x"$lt_prog_compiler_static_works" = xyes; then |
6942 | : |
6943 | else |
6944 | lt_prog_compiler_static= |
6945 | fi |
6946 | |
6947 | |
6948 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
6949 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
6950 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
6951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6952 | else |
6953 | lt_cv_prog_compiler_c_o=no |
6954 | $rm -r conftest 2>/dev/null |
6955 | mkdir conftest |
6956 | cd conftest |
6957 | mkdir out |
6958 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6959 | |
6960 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
6961 | # Insert the option either (1) after the last *FLAGS variable, or |
6962 | # (2) before a word containing "conftest.", or (3) at the end. |
6963 | # Note that $ac_compile itself does not contain backslashes and begins |
6964 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
6965 | lt_compile=`echo "$ac_compile" | $SED \ |
6966 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
6967 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6968 | -e 's:$: $lt_compiler_flag:'` |
6969 | (eval echo "\"\$as_me:6969: $lt_compile\"" >&5) |
6970 | (eval "$lt_compile" 2>out/conftest.err) |
6971 | ac_status=$? |
6972 | cat out/conftest.err >&5 |
6973 | echo "$as_me:6973: \$? = $ac_status" >&5 |
6974 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
6975 | then |
6976 | # The compiler can only warn and ignore the option if not recognized |
6977 | # So say no if there are warnings |
6978 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
6979 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
6980 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
6981 | lt_cv_prog_compiler_c_o=yes |
6982 | fi |
6983 | fi |
6984 | chmod u+w . 2>&5 |
6985 | $rm conftest* |
6986 | # SGI C++ compiler will create directory out/ii_files/ for |
6987 | # template instantiation |
6988 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
6989 | $rm out/* && rmdir out |
6990 | cd .. |
6991 | rmdir conftest |
6992 | $rm conftest* |
6993 | |
6994 | fi |
6995 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
6996 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
6997 | |
6998 | |
6999 | hard_links="nottested" |
7000 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
7001 | # do not overwrite the value of need_locks provided by the user |
7002 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
7003 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
7004 | hard_links=yes |
7005 | $rm conftest* |
7006 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
7007 | touch conftest.a |
7008 | ln conftest.a conftest.b 2>&5 || hard_links=no |
7009 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
7010 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
7011 | echo "${ECHO_T}$hard_links" >&6 |
7012 | if test "$hard_links" = no; then |
7013 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
7014 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
7015 | need_locks=warn |
7016 | fi |
7017 | else |
7018 | need_locks=no |
7019 | fi |
7020 | |
7021 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
7022 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
7023 | |
7024 | runpath_var= |
7025 | allow_undefined_flag= |
7026 | enable_shared_with_static_runtimes=no |
7027 | archive_cmds= |
7028 | archive_expsym_cmds= |
7029 | old_archive_From_new_cmds= |
7030 | old_archive_from_expsyms_cmds= |
7031 | export_dynamic_flag_spec= |
7032 | whole_archive_flag_spec= |
7033 | thread_safe_flag_spec= |
7034 | hardcode_libdir_flag_spec= |
7035 | hardcode_libdir_flag_spec_ld= |
7036 | hardcode_libdir_separator= |
7037 | hardcode_direct=no |
7038 | hardcode_minus_L=no |
7039 | hardcode_shlibpath_var=unsupported |
7040 | link_all_deplibs=unknown |
7041 | hardcode_automatic=no |
7042 | module_cmds= |
7043 | module_expsym_cmds= |
7044 | always_export_symbols=no |
7045 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
7046 | # include_expsyms should be a list of space-separated symbols to be *always* |
7047 | # included in the symbol list |
7048 | include_expsyms= |
7049 | # exclude_expsyms can be an extended regexp of symbols to exclude |
7050 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
7051 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
7052 | # as well as any symbol that contains `d'. |
7053 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
7054 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
7055 | # platforms (ab)use it in PIC code, but their linkers get confused if |
7056 | # the symbol is explicitly referenced. Since portable code cannot |
7057 | # rely on this symbol name, it's probably fine to never include it in |
7058 | # preloaded symbol tables. |
7059 | extract_expsyms_cmds= |
7060 | # Just being paranoid about ensuring that cc_basename is set. |
7061 | for cc_temp in $compiler""; do |
7062 | case $cc_temp in |
7063 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
7064 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
7065 | \-*) ;; |
7066 | *) break;; |
7067 | esac |
7068 | done |
7069 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
7070 | |
7071 | case $host_os in |
7072 | cygwin* | mingw* | pw32*) |
7073 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
7074 | # When not using gcc, we currently assume that we are using |
7075 | # Microsoft Visual C++. |
7076 | if test "$GCC" != yes; then |
7077 | with_gnu_ld=no |
7078 | fi |
7079 | ;; |
7080 | interix*) |
7081 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
7082 | with_gnu_ld=yes |
7083 | ;; |
7084 | openbsd*) |
7085 | with_gnu_ld=no |
7086 | ;; |
7087 | esac |
7088 | |
7089 | ld_shlibs=yes |
7090 | if test "$with_gnu_ld" = yes; then |
7091 | # If archive_cmds runs LD, not CC, wlarc should be empty |
7092 | wlarc='${wl}' |
7093 | |
7094 | # Set some defaults for GNU ld with shared library support. These |
7095 | # are reset later if shared libraries are not supported. Putting them |
7096 | # here allows them to be overridden if necessary. |
7097 | runpath_var=LD_RUN_PATH |
7098 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
7099 | export_dynamic_flag_spec='${wl}--export-dynamic' |
7100 | # ancient GNU ld didn't support --whole-archive et. al. |
7101 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
7102 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
7103 | else |
7104 | whole_archive_flag_spec= |
7105 | fi |
7106 | supports_anon_versioning=no |
7107 | case `$LD -v 2>/dev/null` in |
7108 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
7109 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
7110 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
7111 | *\ 2.11.*) ;; # other 2.11 versions |
7112 | *) supports_anon_versioning=yes ;; |
7113 | esac |
7114 | |
7115 | # See if GNU ld supports shared libraries. |
7116 | case $host_os in |
7117 | aix3* | aix4* | aix5*) |
7118 | # On AIX/PPC, the GNU linker is very broken |
7119 | if test "$host_cpu" != ia64; then |
7120 | ld_shlibs=no |
7121 | cat <<EOF 1>&2 |
7122 | |
7123 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
7124 | *** to be unable to reliably create shared libraries on AIX. |
7125 | *** Therefore, libtool is disabling shared libraries support. If you |
7126 | *** really care for shared libraries, you may want to modify your PATH |
7127 | *** so that a non-GNU linker is found, and then restart. |
7128 | |
7129 | EOF |
7130 | fi |
7131 | ;; |
7132 | |
7133 | amigaos*) |
7134 | 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)' |
7135 | hardcode_libdir_flag_spec='-L$libdir' |
7136 | hardcode_minus_L=yes |
7137 | |
7138 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
7139 | # that the semantics of dynamic libraries on AmigaOS, at least up |
7140 | # to version 4, is to share data among multiple programs linked |
7141 | # with the same dynamic library. Since this doesn't match the |
7142 | # behavior of shared libraries on other platforms, we can't use |
7143 | # them. |
7144 | ld_shlibs=no |
7145 | ;; |
7146 | |
7147 | beos*) |
7148 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7149 | allow_undefined_flag=unsupported |
7150 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
7151 | # support --undefined. This deserves some investigation. FIXME |
7152 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7153 | else |
7154 | ld_shlibs=no |
7155 | fi |
7156 | ;; |
7157 | |
7158 | cygwin* | mingw* | pw32*) |
7159 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
7160 | # as there is no search path for DLLs. |
7161 | hardcode_libdir_flag_spec='-L$libdir' |
7162 | allow_undefined_flag=unsupported |
7163 | always_export_symbols=no |
7164 | enable_shared_with_static_runtimes=yes |
7165 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
7166 | |
7167 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
7168 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7169 | # If the export-symbols file already is a .def file (1st line |
7170 | # is EXPORTS), use it as is; otherwise, prepend... |
7171 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
7172 | cp $export_symbols $output_objdir/$soname.def; |
7173 | else |
7174 | echo EXPORTS > $output_objdir/$soname.def; |
7175 | cat $export_symbols >> $output_objdir/$soname.def; |
7176 | fi~ |
7177 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7178 | else |
7179 | ld_shlibs=no |
7180 | fi |
7181 | ;; |
7182 | |
7183 | interix3*) |
7184 | hardcode_direct=no |
7185 | hardcode_shlibpath_var=no |
7186 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7187 | export_dynamic_flag_spec='${wl}-E' |
7188 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
7189 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
7190 | # default) and relocated if they conflict, which is a slow very memory |
7191 | # consuming and fragmenting process. To avoid this, we pick a random, |
7192 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
7193 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
7194 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
7195 | 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' |
7196 | ;; |
7197 | |
7198 | linux*) |
7199 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7200 | tmp_addflag= |
7201 | case $cc_basename,$host_cpu in |
7202 | pgcc*) # Portland Group C compiler |
7203 | 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' |
7204 | tmp_addflag=' $pic_flag' |
7205 | ;; |
7206 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
7207 | 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' |
7208 | tmp_addflag=' $pic_flag -Mnomain' ;; |
7209 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
7210 | tmp_addflag=' -i_dynamic' ;; |
7211 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
7212 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
7213 | ifc* | ifort*) # Intel Fortran compiler |
7214 | tmp_addflag=' -nofor_main' ;; |
7215 | esac |
7216 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7217 | |
7218 | if test $supports_anon_versioning = yes; then |
7219 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
7220 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
7221 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
7222 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
7223 | fi |
7224 | else |
7225 | ld_shlibs=no |
7226 | fi |
7227 | ;; |
7228 | |
7229 | netbsd*) |
7230 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7231 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
7232 | wlarc= |
7233 | else |
7234 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7235 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7236 | fi |
7237 | ;; |
7238 | |
7239 | solaris*) |
7240 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
7241 | ld_shlibs=no |
7242 | cat <<EOF 1>&2 |
7243 | |
7244 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
7245 | *** create shared libraries on Solaris systems. Therefore, libtool |
7246 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7247 | *** binutils to release 2.9.1 or newer. Another option is to modify |
7248 | *** your PATH or compiler configuration so that the native linker is |
7249 | *** used, and then restart. |
7250 | |
7251 | EOF |
7252 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7253 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7254 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7255 | else |
7256 | ld_shlibs=no |
7257 | fi |
7258 | ;; |
7259 | |
7260 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
7261 | case `$LD -v 2>&1` in |
7262 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
7263 | ld_shlibs=no |
7264 | cat <<_LT_EOF 1>&2 |
7265 | |
7266 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
7267 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
7268 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7269 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
7270 | *** your PATH or compiler configuration so that the native linker is |
7271 | *** used, and then restart. |
7272 | |
7273 | _LT_EOF |
7274 | ;; |
7275 | *) |
7276 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7277 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
7278 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
7279 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
7280 | else |
7281 | ld_shlibs=no |
7282 | fi |
7283 | ;; |
7284 | esac |
7285 | ;; |
7286 | |
7287 | sunos4*) |
7288 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7289 | wlarc= |
7290 | hardcode_direct=yes |
7291 | hardcode_shlibpath_var=no |
7292 | ;; |
7293 | |
7294 | *) |
7295 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7296 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7297 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7298 | else |
7299 | ld_shlibs=no |
7300 | fi |
7301 | ;; |
7302 | esac |
7303 | |
7304 | if test "$ld_shlibs" = no; then |
7305 | runpath_var= |
7306 | hardcode_libdir_flag_spec= |
7307 | export_dynamic_flag_spec= |
7308 | whole_archive_flag_spec= |
7309 | fi |
7310 | else |
7311 | # PORTME fill in a description of your system's linker (not GNU ld) |
7312 | case $host_os in |
7313 | aix3*) |
7314 | allow_undefined_flag=unsupported |
7315 | always_export_symbols=yes |
7316 | 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' |
7317 | # Note: this linker hardcodes the directories in LIBPATH if there |
7318 | # are no directories specified by -L. |
7319 | hardcode_minus_L=yes |
7320 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
7321 | # Neither direct hardcoding nor static linking is supported with a |
7322 | # broken collect2. |
7323 | hardcode_direct=unsupported |
7324 | fi |
7325 | ;; |
7326 | |
7327 | aix4* | aix5*) |
7328 | if test "$host_cpu" = ia64; then |
7329 | # On IA64, the linker does run time linking by default, so we don't |
7330 | # have to do anything special. |
7331 | aix_use_runtimelinking=no |
7332 | exp_sym_flag='-Bexport' |
7333 | no_entry_flag="" |
7334 | else |
7335 | # If we're using GNU nm, then we don't want the "-C" option. |
7336 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
7337 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
7338 | 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' |
7339 | else |
7340 | 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' |
7341 | fi |
7342 | aix_use_runtimelinking=no |
7343 | |
7344 | # Test if we are trying to use run time linking or normal |
7345 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
7346 | # need to do runtime linking. |
7347 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
7348 | for ld_flag in $LDFLAGS; do |
7349 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
7350 | aix_use_runtimelinking=yes |
7351 | break |
7352 | fi |
7353 | done |
7354 | ;; |
7355 | esac |
7356 | |
7357 | exp_sym_flag='-bexport' |
7358 | no_entry_flag='-bnoentry' |
7359 | fi |
7360 | |
7361 | # When large executables or shared objects are built, AIX ld can |
7362 | # have problems creating the table of contents. If linking a library |
7363 | # or program results in "error TOC overflow" add -mminimal-toc to |
7364 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
7365 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
7366 | |
7367 | archive_cmds='' |
7368 | hardcode_direct=yes |
7369 | hardcode_libdir_separator=':' |
7370 | link_all_deplibs=yes |
7371 | |
7372 | if test "$GCC" = yes; then |
7373 | case $host_os in aix4.[012]|aix4.[012].*) |
7374 | # We only want to do this on AIX 4.2 and lower, the check |
7375 | # below for broken collect2 doesn't work under 4.3+ |
7376 | collect2name=`${CC} -print-prog-name=collect2` |
7377 | if test -f "$collect2name" && \ |
7378 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
7379 | then |
7380 | # We have reworked collect2 |
7381 | hardcode_direct=yes |
7382 | else |
7383 | # We have old collect2 |
7384 | hardcode_direct=unsupported |
7385 | # It fails to find uninstalled libraries when the uninstalled |
7386 | # path is not listed in the libpath. Setting hardcode_minus_L |
7387 | # to unsupported forces relinking |
7388 | hardcode_minus_L=yes |
7389 | hardcode_libdir_flag_spec='-L$libdir' |
7390 | hardcode_libdir_separator= |
7391 | fi |
7392 | ;; |
7393 | esac |
7394 | shared_flag='-shared' |
7395 | if test "$aix_use_runtimelinking" = yes; then |
7396 | shared_flag="$shared_flag "'${wl}-G' |
7397 | fi |
7398 | else |
7399 | # not using gcc |
7400 | if test "$host_cpu" = ia64; then |
7401 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
7402 | # chokes on -Wl,-G. The following line is correct: |
7403 | shared_flag='-G' |
7404 | else |
7405 | if test "$aix_use_runtimelinking" = yes; then |
7406 | shared_flag='${wl}-G' |
7407 | else |
7408 | shared_flag='${wl}-bM:SRE' |
7409 | fi |
7410 | fi |
7411 | fi |
7412 | |
7413 | # It seems that -bexpall does not export symbols beginning with |
7414 | # underscore (_), so it is better to generate a list of symbols to export. |
7415 | always_export_symbols=yes |
7416 | if test "$aix_use_runtimelinking" = yes; then |
7417 | # Warning - without using the other runtime loading flags (-brtl), |
7418 | # -berok will link without error, but may produce a broken library. |
7419 | allow_undefined_flag='-berok' |
7420 | # Determine the default libpath from the value encoded in an empty executable. |
7421 | cat >conftest.$ac_ext <<_ACEOF |
7422 | /* confdefs.h. */ |
7423 | _ACEOF |
7424 | cat confdefs.h >>conftest.$ac_ext |
7425 | cat >>conftest.$ac_ext <<_ACEOF |
7426 | /* end confdefs.h. */ |
7427 | |
7428 | int |
7429 | main () |
7430 | { |
7431 | |
7432 | ; |
7433 | return 0; |
7434 | } |
7435 | _ACEOF |
7436 | rm -f conftest.$ac_objext conftest$ac_exeext |
7437 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7438 | (eval $ac_link) 2>conftest.er1 |
7439 | ac_status=$? |
7440 | grep -v '^ *+' conftest.er1 >conftest.err |
7441 | rm -f conftest.er1 |
7442 | cat conftest.err >&5 |
7443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7444 | (exit $ac_status); } && |
7445 | { ac_try='test -z "$ac_c_werror_flag" |
7446 | || test ! -s conftest.err' |
7447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7448 | (eval $ac_try) 2>&5 |
7449 | ac_status=$? |
7450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7451 | (exit $ac_status); }; } && |
7452 | { ac_try='test -s conftest$ac_exeext' |
7453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7454 | (eval $ac_try) 2>&5 |
7455 | ac_status=$? |
7456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7457 | (exit $ac_status); }; }; then |
7458 | |
7459 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
7460 | }'` |
7461 | # Check for a 64-bit object if we didn't find anything. |
7462 | 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; } |
7463 | }'`; fi |
7464 | else |
7465 | echo "$as_me: failed program was:" >&5 |
7466 | sed 's/^/| /' conftest.$ac_ext >&5 |
7467 | |
7468 | fi |
7469 | rm -f conftest.err conftest.$ac_objext \ |
7470 | conftest$ac_exeext conftest.$ac_ext |
7471 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
7472 | |
7473 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
7474 | 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" |
7475 | else |
7476 | if test "$host_cpu" = ia64; then |
7477 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
7478 | allow_undefined_flag="-z nodefs" |
7479 | 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" |
7480 | else |
7481 | # Determine the default libpath from the value encoded in an empty executable. |
7482 | cat >conftest.$ac_ext <<_ACEOF |
7483 | /* confdefs.h. */ |
7484 | _ACEOF |
7485 | cat confdefs.h >>conftest.$ac_ext |
7486 | cat >>conftest.$ac_ext <<_ACEOF |
7487 | /* end confdefs.h. */ |
7488 | |
7489 | int |
7490 | main () |
7491 | { |
7492 | |
7493 | ; |
7494 | return 0; |
7495 | } |
7496 | _ACEOF |
7497 | rm -f conftest.$ac_objext conftest$ac_exeext |
7498 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7499 | (eval $ac_link) 2>conftest.er1 |
7500 | ac_status=$? |
7501 | grep -v '^ *+' conftest.er1 >conftest.err |
7502 | rm -f conftest.er1 |
7503 | cat conftest.err >&5 |
7504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7505 | (exit $ac_status); } && |
7506 | { ac_try='test -z "$ac_c_werror_flag" |
7507 | || test ! -s conftest.err' |
7508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7509 | (eval $ac_try) 2>&5 |
7510 | ac_status=$? |
7511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7512 | (exit $ac_status); }; } && |
7513 | { ac_try='test -s conftest$ac_exeext' |
7514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7515 | (eval $ac_try) 2>&5 |
7516 | ac_status=$? |
7517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7518 | (exit $ac_status); }; }; then |
7519 | |
7520 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
7521 | }'` |
7522 | # Check for a 64-bit object if we didn't find anything. |
7523 | 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; } |
7524 | }'`; fi |
7525 | else |
7526 | echo "$as_me: failed program was:" >&5 |
7527 | sed 's/^/| /' conftest.$ac_ext >&5 |
7528 | |
7529 | fi |
7530 | rm -f conftest.err conftest.$ac_objext \ |
7531 | conftest$ac_exeext conftest.$ac_ext |
7532 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
7533 | |
7534 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
7535 | # Warning - without using the other run time loading flags, |
7536 | # -berok will link without error, but may produce a broken library. |
7537 | no_undefined_flag=' ${wl}-bernotok' |
7538 | allow_undefined_flag=' ${wl}-berok' |
7539 | # Exported symbols can be pulled into shared objects from archives |
7540 | whole_archive_flag_spec='$convenience' |
7541 | archive_cmds_need_lc=yes |
7542 | # This is similar to how AIX traditionally builds its shared libraries. |
7543 | 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' |
7544 | fi |
7545 | fi |
7546 | ;; |
7547 | |
7548 | amigaos*) |
7549 | 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)' |
7550 | hardcode_libdir_flag_spec='-L$libdir' |
7551 | hardcode_minus_L=yes |
7552 | # see comment about different semantics on the GNU ld section |
7553 | ld_shlibs=no |
7554 | ;; |
7555 | |
7556 | bsdi[45]*) |
7557 | export_dynamic_flag_spec=-rdynamic |
7558 | ;; |
7559 | |
7560 | cygwin* | mingw* | pw32*) |
7561 | # When not using gcc, we currently assume that we are using |
7562 | # Microsoft Visual C++. |
7563 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
7564 | # no search path for DLLs. |
7565 | hardcode_libdir_flag_spec=' ' |
7566 | allow_undefined_flag=unsupported |
7567 | # Tell ltmain to make .lib files, not .a files. |
7568 | libext=lib |
7569 | # Tell ltmain to make .dll files, not .so files. |
7570 | shrext_cmds=".dll" |
7571 | # FIXME: Setting linknames here is a bad hack. |
7572 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
7573 | # The linker will automatically build a .lib file if we build a DLL. |
7574 | old_archive_From_new_cmds='true' |
7575 | # FIXME: Should let the user specify the lib program. |
7576 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
7577 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
7578 | enable_shared_with_static_runtimes=yes |
7579 | ;; |
7580 | |
7581 | darwin* | rhapsody*) |
7582 | case $host_os in |
7583 | rhapsody* | darwin1.[012]) |
7584 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
7585 | ;; |
7586 | *) # Darwin 1.3 on |
7587 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
7588 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
7589 | else |
7590 | case ${MACOSX_DEPLOYMENT_TARGET} in |
7591 | 10.[012]) |
7592 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
7593 | ;; |
7594 | 10.*) |
7595 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
7596 | ;; |
7597 | esac |
7598 | fi |
7599 | ;; |
7600 | esac |
7601 | archive_cmds_need_lc=no |
7602 | hardcode_direct=no |
7603 | hardcode_automatic=yes |
7604 | hardcode_shlibpath_var=unsupported |
7605 | whole_archive_flag_spec='' |
7606 | link_all_deplibs=yes |
7607 | if test "$GCC" = yes ; then |
7608 | output_verbose_link_cmd='echo' |
7609 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
7610 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
7611 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
7612 | 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}' |
7613 | 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}' |
7614 | else |
7615 | case $cc_basename in |
7616 | xlc*) |
7617 | output_verbose_link_cmd='echo' |
7618 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
7619 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
7620 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
7621 | 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}' |
7622 | 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}' |
7623 | ;; |
7624 | *) |
7625 | ld_shlibs=no |
7626 | ;; |
7627 | esac |
7628 | fi |
7629 | ;; |
7630 | |
7631 | dgux*) |
7632 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7633 | hardcode_libdir_flag_spec='-L$libdir' |
7634 | hardcode_shlibpath_var=no |
7635 | ;; |
7636 | |
7637 | freebsd1*) |
7638 | ld_shlibs=no |
7639 | ;; |
7640 | |
7641 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
7642 | # support. Future versions do this automatically, but an explicit c++rt0.o |
7643 | # does not break anything, and helps significantly (at the cost of a little |
7644 | # extra space). |
7645 | freebsd2.2*) |
7646 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
7647 | hardcode_libdir_flag_spec='-R$libdir' |
7648 | hardcode_direct=yes |
7649 | hardcode_shlibpath_var=no |
7650 | ;; |
7651 | |
7652 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
7653 | freebsd2*) |
7654 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7655 | hardcode_direct=yes |
7656 | hardcode_minus_L=yes |
7657 | hardcode_shlibpath_var=no |
7658 | ;; |
7659 | |
7660 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
7661 | freebsd* | kfreebsd*-gnu | dragonfly*) |
7662 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
7663 | hardcode_libdir_flag_spec='-R$libdir' |
7664 | hardcode_direct=yes |
7665 | hardcode_shlibpath_var=no |
7666 | ;; |
7667 | |
7668 | hpux9*) |
7669 | if test "$GCC" = yes; then |
7670 | 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' |
7671 | else |
7672 | 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' |
7673 | fi |
7674 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7675 | hardcode_libdir_separator=: |
7676 | hardcode_direct=yes |
7677 | |
7678 | # hardcode_minus_L: Not really in the search PATH, |
7679 | # but as the default location of the library. |
7680 | hardcode_minus_L=yes |
7681 | export_dynamic_flag_spec='${wl}-E' |
7682 | ;; |
7683 | |
7684 | hpux10*) |
7685 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
7686 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
7687 | else |
7688 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
7689 | fi |
7690 | if test "$with_gnu_ld" = no; then |
7691 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7692 | hardcode_libdir_separator=: |
7693 | |
7694 | hardcode_direct=yes |
7695 | export_dynamic_flag_spec='${wl}-E' |
7696 | |
7697 | # hardcode_minus_L: Not really in the search PATH, |
7698 | # but as the default location of the library. |
7699 | hardcode_minus_L=yes |
7700 | fi |
7701 | ;; |
7702 | |
7703 | hpux11*) |
7704 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
7705 | case $host_cpu in |
7706 | hppa*64*) |
7707 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7708 | ;; |
7709 | ia64*) |
7710 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
7711 | ;; |
7712 | *) |
7713 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
7714 | ;; |
7715 | esac |
7716 | else |
7717 | case $host_cpu in |
7718 | hppa*64*) |
7719 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7720 | ;; |
7721 | ia64*) |
7722 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
7723 | ;; |
7724 | *) |
7725 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
7726 | ;; |
7727 | esac |
7728 | fi |
7729 | if test "$with_gnu_ld" = no; then |
7730 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7731 | hardcode_libdir_separator=: |
7732 | |
7733 | case $host_cpu in |
7734 | hppa*64*|ia64*) |
7735 | hardcode_libdir_flag_spec_ld='+b $libdir' |
7736 | hardcode_direct=no |
7737 | hardcode_shlibpath_var=no |
7738 | ;; |
7739 | *) |
7740 | hardcode_direct=yes |
7741 | export_dynamic_flag_spec='${wl}-E' |
7742 | |
7743 | # hardcode_minus_L: Not really in the search PATH, |
7744 | # but as the default location of the library. |
7745 | hardcode_minus_L=yes |
7746 | ;; |
7747 | esac |
7748 | fi |
7749 | ;; |
7750 | |
7751 | irix5* | irix6* | nonstopux*) |
7752 | if test "$GCC" = yes; then |
7753 | 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' |
7754 | else |
7755 | 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' |
7756 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
7757 | fi |
7758 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7759 | hardcode_libdir_separator=: |
7760 | link_all_deplibs=yes |
7761 | ;; |
7762 | |
7763 | netbsd*) |
7764 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7765 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
7766 | else |
7767 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
7768 | fi |
7769 | hardcode_libdir_flag_spec='-R$libdir' |
7770 | hardcode_direct=yes |
7771 | hardcode_shlibpath_var=no |
7772 | ;; |
7773 | |
7774 | newsos6) |
7775 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7776 | hardcode_direct=yes |
7777 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7778 | hardcode_libdir_separator=: |
7779 | hardcode_shlibpath_var=no |
7780 | ;; |
7781 | |
7782 | openbsd*) |
7783 | hardcode_direct=yes |
7784 | hardcode_shlibpath_var=no |
7785 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
7786 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
7787 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
7788 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7789 | export_dynamic_flag_spec='${wl}-E' |
7790 | else |
7791 | case $host_os in |
7792 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
7793 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7794 | hardcode_libdir_flag_spec='-R$libdir' |
7795 | ;; |
7796 | *) |
7797 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
7798 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7799 | ;; |
7800 | esac |
7801 | fi |
7802 | ;; |
7803 | |
7804 | os2*) |
7805 | hardcode_libdir_flag_spec='-L$libdir' |
7806 | hardcode_minus_L=yes |
7807 | allow_undefined_flag=unsupported |
7808 | 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' |
7809 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
7810 | ;; |
7811 | |
7812 | osf3*) |
7813 | if test "$GCC" = yes; then |
7814 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
7815 | 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' |
7816 | else |
7817 | allow_undefined_flag=' -expect_unresolved \*' |
7818 | 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' |
7819 | fi |
7820 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7821 | hardcode_libdir_separator=: |
7822 | ;; |
7823 | |
7824 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
7825 | if test "$GCC" = yes; then |
7826 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
7827 | 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' |
7828 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7829 | else |
7830 | allow_undefined_flag=' -expect_unresolved \*' |
7831 | 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' |
7832 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
7833 | $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' |
7834 | |
7835 | # Both c and cxx compiler support -rpath directly |
7836 | hardcode_libdir_flag_spec='-rpath $libdir' |
7837 | fi |
7838 | hardcode_libdir_separator=: |
7839 | ;; |
7840 | |
7841 | solaris*) |
7842 | no_undefined_flag=' -z text' |
7843 | if test "$GCC" = yes; then |
7844 | wlarc='${wl}' |
7845 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7846 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
7847 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
7848 | else |
7849 | wlarc='' |
7850 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7851 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
7852 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
7853 | fi |
7854 | hardcode_libdir_flag_spec='-R$libdir' |
7855 | hardcode_shlibpath_var=no |
7856 | case $host_os in |
7857 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
7858 | *) |
7859 | # The compiler driver will combine linker options so we |
7860 | # cannot just pass the convience library names through |
7861 | # without $wl, iff we do not link with $LD. |
7862 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
7863 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
7864 | case $wlarc in |
7865 | '') |
7866 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
7867 | *) |
7868 | 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' ;; |
7869 | esac ;; |
7870 | esac |
7871 | link_all_deplibs=yes |
7872 | ;; |
7873 | |
7874 | sunos4*) |
7875 | if test "x$host_vendor" = xsequent; then |
7876 | # Use $CC to link under sequent, because it throws in some extra .o |
7877 | # files that make .init and .fini sections work. |
7878 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
7879 | else |
7880 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
7881 | fi |
7882 | hardcode_libdir_flag_spec='-L$libdir' |
7883 | hardcode_direct=yes |
7884 | hardcode_minus_L=yes |
7885 | hardcode_shlibpath_var=no |
7886 | ;; |
7887 | |
7888 | sysv4) |
7889 | case $host_vendor in |
7890 | sni) |
7891 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7892 | hardcode_direct=yes # is this really true??? |
7893 | ;; |
7894 | siemens) |
7895 | ## LD is ld it makes a PLAMLIB |
7896 | ## CC just makes a GrossModule. |
7897 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
7898 | reload_cmds='$CC -r -o $output$reload_objs' |
7899 | hardcode_direct=no |
7900 | ;; |
7901 | motorola) |
7902 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7903 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
7904 | ;; |
7905 | esac |
7906 | runpath_var='LD_RUN_PATH' |
7907 | hardcode_shlibpath_var=no |
7908 | ;; |
7909 | |
7910 | sysv4.3*) |
7911 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7912 | hardcode_shlibpath_var=no |
7913 | export_dynamic_flag_spec='-Bexport' |
7914 | ;; |
7915 | |
7916 | sysv4*MP*) |
7917 | if test -d /usr/nec; then |
7918 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7919 | hardcode_shlibpath_var=no |
7920 | runpath_var=LD_RUN_PATH |
7921 | hardcode_runpath_var=yes |
7922 | ld_shlibs=yes |
7923 | fi |
7924 | ;; |
7925 | |
7926 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
7927 | no_undefined_flag='${wl}-z,text' |
7928 | archive_cmds_need_lc=no |
7929 | hardcode_shlibpath_var=no |
7930 | runpath_var='LD_RUN_PATH' |
7931 | |
7932 | if test "$GCC" = yes; then |
7933 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7934 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7935 | else |
7936 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7937 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7938 | fi |
7939 | ;; |
7940 | |
7941 | sysv5* | sco3.2v5* | sco5v6*) |
7942 | # Note: We can NOT use -z defs as we might desire, because we do not |
7943 | # link with -lc, and that would cause any symbols used from libc to |
7944 | # always be unresolved, which means just about no library would |
7945 | # ever link correctly. If we're not using GNU ld we use -z text |
7946 | # though, which does catch some bad symbols but isn't as heavy-handed |
7947 | # as -z defs. |
7948 | no_undefined_flag='${wl}-z,text' |
7949 | allow_undefined_flag='${wl}-z,nodefs' |
7950 | archive_cmds_need_lc=no |
7951 | hardcode_shlibpath_var=no |
7952 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
7953 | hardcode_libdir_separator=':' |
7954 | link_all_deplibs=yes |
7955 | export_dynamic_flag_spec='${wl}-Bexport' |
7956 | runpath_var='LD_RUN_PATH' |
7957 | |
7958 | if test "$GCC" = yes; then |
7959 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7960 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7961 | else |
7962 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7963 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7964 | fi |
7965 | ;; |
7966 | |
7967 | uts4*) |
7968 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7969 | hardcode_libdir_flag_spec='-L$libdir' |
7970 | hardcode_shlibpath_var=no |
7971 | ;; |
7972 | |
7973 | *) |
7974 | ld_shlibs=no |
7975 | ;; |
7976 | esac |
7977 | fi |
7978 | |
7979 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
7980 | echo "${ECHO_T}$ld_shlibs" >&6 |
7981 | test "$ld_shlibs" = no && can_build_shared=no |
7982 | |
7983 | # |
7984 | # Do we need to explicitly link libc? |
7985 | # |
7986 | case "x$archive_cmds_need_lc" in |
7987 | x|xyes) |
7988 | # Assume -lc should be added |
7989 | archive_cmds_need_lc=yes |
7990 | |
7991 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
7992 | case $archive_cmds in |
7993 | *'~'*) |
7994 | # FIXME: we may have to deal with multi-command sequences. |
7995 | ;; |
7996 | '$CC '*) |
7997 | # Test whether the compiler implicitly links with -lc since on some |
7998 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
7999 | # to ld, don't add -lc before -lgcc. |
8000 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
8001 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
8002 | $rm conftest* |
8003 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
8004 | |
8005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8006 | (eval $ac_compile) 2>&5 |
8007 | ac_status=$? |
8008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8009 | (exit $ac_status); } 2>conftest.err; then |
8010 | soname=conftest |
8011 | lib=conftest |
8012 | libobjs=conftest.$ac_objext |
8013 | deplibs= |
8014 | wl=$lt_prog_compiler_wl |
8015 | pic_flag=$lt_prog_compiler_pic |
8016 | compiler_flags=-v |
8017 | linker_flags=-v |
8018 | verstring= |
8019 | output_objdir=. |
8020 | libname=conftest |
8021 | lt_save_allow_undefined_flag=$allow_undefined_flag |
8022 | allow_undefined_flag= |
8023 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
8024 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
8025 | ac_status=$? |
8026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8027 | (exit $ac_status); } |
8028 | then |
8029 | archive_cmds_need_lc=no |
8030 | else |
8031 | archive_cmds_need_lc=yes |
8032 | fi |
8033 | allow_undefined_flag=$lt_save_allow_undefined_flag |
8034 | else |
8035 | cat conftest.err 1>&5 |
8036 | fi |
8037 | $rm conftest* |
8038 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
8039 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
8040 | ;; |
8041 | esac |
8042 | fi |
8043 | ;; |
8044 | esac |
8045 | |
8046 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
8047 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
8048 | library_names_spec= |
8049 | libname_spec='lib$name' |
8050 | soname_spec= |
8051 | shrext_cmds=".so" |
8052 | postinstall_cmds= |
8053 | postuninstall_cmds= |
8054 | finish_cmds= |
8055 | finish_eval= |
8056 | shlibpath_var= |
8057 | shlibpath_overrides_runpath=unknown |
8058 | version_type=none |
8059 | dynamic_linker="$host_os ld.so" |
8060 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
8061 | if test "$GCC" = yes; then |
8062 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8063 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
8064 | # if the path contains ";" then we assume it to be the separator |
8065 | # otherwise default to the standard path separator (i.e. ":") - it is |
8066 | # assumed that no part of a normal pathname contains ";" but that should |
8067 | # okay in the real world where ";" in dirpaths is itself problematic. |
8068 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
8069 | else |
8070 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8071 | fi |
8072 | else |
8073 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
8074 | fi |
8075 | need_lib_prefix=unknown |
8076 | hardcode_into_libs=no |
8077 | |
8078 | # when you set need_version to no, make sure it does not cause -set_version |
8079 | # flags to be left without arguments |
8080 | need_version=unknown |
8081 | |
8082 | case $host_os in |
8083 | aix3*) |
8084 | version_type=linux |
8085 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
8086 | shlibpath_var=LIBPATH |
8087 | |
8088 | # AIX 3 has no versioning support, so we append a major version to the name. |
8089 | soname_spec='${libname}${release}${shared_ext}$major' |
8090 | ;; |
8091 | |
8092 | aix4* | aix5*) |
8093 | version_type=linux |
8094 | need_lib_prefix=no |
8095 | need_version=no |
8096 | hardcode_into_libs=yes |
8097 | if test "$host_cpu" = ia64; then |
8098 | # AIX 5 supports IA64 |
8099 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
8100 | shlibpath_var=LD_LIBRARY_PATH |
8101 | else |
8102 | # With GCC up to 2.95.x, collect2 would create an import file |
8103 | # for dependence libraries. The import file would start with |
8104 | # the line `#! .'. This would cause the generated library to |
8105 | # depend on `.', always an invalid library. This was fixed in |
8106 | # development snapshots of GCC prior to 3.0. |
8107 | case $host_os in |
8108 | aix4 | aix4.[01] | aix4.[01].*) |
8109 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
8110 | echo ' yes ' |
8111 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
8112 | : |
8113 | else |
8114 | can_build_shared=no |
8115 | fi |
8116 | ;; |
8117 | esac |
8118 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
8119 | # soname into executable. Probably we can add versioning support to |
8120 | # collect2, so additional links can be useful in future. |
8121 | if test "$aix_use_runtimelinking" = yes; then |
8122 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
8123 | # instead of lib<name>.a to let people know that these are not |
8124 | # typical AIX shared libraries. |
8125 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8126 | else |
8127 | # We preserve .a as extension for shared libraries through AIX4.2 |
8128 | # and later when we are not doing run time linking. |
8129 | library_names_spec='${libname}${release}.a $libname.a' |
8130 | soname_spec='${libname}${release}${shared_ext}$major' |
8131 | fi |
8132 | shlibpath_var=LIBPATH |
8133 | fi |
8134 | ;; |
8135 | |
8136 | amigaos*) |
8137 | library_names_spec='$libname.ixlibrary $libname.a' |
8138 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
8139 | 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' |
8140 | ;; |
8141 | |
8142 | beos*) |
8143 | library_names_spec='${libname}${shared_ext}' |
8144 | dynamic_linker="$host_os ld.so" |
8145 | shlibpath_var=LIBRARY_PATH |
8146 | ;; |
8147 | |
8148 | bsdi[45]*) |
8149 | version_type=linux |
8150 | need_version=no |
8151 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8152 | soname_spec='${libname}${release}${shared_ext}$major' |
8153 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
8154 | shlibpath_var=LD_LIBRARY_PATH |
8155 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
8156 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
8157 | # the default ld.so.conf also contains /usr/contrib/lib and |
8158 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
8159 | # libtool to hard-code these into programs |
8160 | ;; |
8161 | |
8162 | cygwin* | mingw* | pw32*) |
8163 | version_type=windows |
8164 | shrext_cmds=".dll" |
8165 | need_version=no |
8166 | need_lib_prefix=no |
8167 | |
8168 | case $GCC,$host_os in |
8169 | yes,cygwin* | yes,mingw* | yes,pw32*) |
8170 | library_names_spec='$libname.dll.a' |
8171 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
8172 | postinstall_cmds='base_file=`basename \${file}`~ |
8173 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
8174 | dldir=$destdir/`dirname \$dlpath`~ |
8175 | test -d \$dldir || mkdir -p \$dldir~ |
8176 | $install_prog $dir/$dlname \$dldir/$dlname~ |
8177 | chmod a+x \$dldir/$dlname' |
8178 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
8179 | dlpath=$dir/\$dldll~ |
8180 | $rm \$dlpath' |
8181 | shlibpath_overrides_runpath=yes |
8182 | |
8183 | case $host_os in |
8184 | cygwin*) |
8185 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
8186 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8187 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
8188 | ;; |
8189 | mingw*) |
8190 | # MinGW DLLs use traditional 'lib' prefix |
8191 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8192 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8193 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
8194 | # It is most probably a Windows format PATH printed by |
8195 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
8196 | # path with ; separators, and with drive letters. We can handle the |
8197 | # drive letters (cygwin fileutils understands them), so leave them, |
8198 | # especially as we might pass files found there to a mingw objdump, |
8199 | # which wouldn't understand a cygwinified path. Ahh. |
8200 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
8201 | else |
8202 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8203 | fi |
8204 | ;; |
8205 | pw32*) |
8206 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
8207 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8208 | ;; |
8209 | esac |
8210 | ;; |
8211 | |
8212 | *) |
8213 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
8214 | ;; |
8215 | esac |
8216 | dynamic_linker='Win32 ld.exe' |
8217 | # FIXME: first we should search . and the directory the executable is in |
8218 | shlibpath_var=PATH |
8219 | ;; |
8220 | |
8221 | darwin* | rhapsody*) |
8222 | dynamic_linker="$host_os dyld" |
8223 | version_type=darwin |
8224 | need_lib_prefix=no |
8225 | need_version=no |
8226 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
8227 | soname_spec='${libname}${release}${major}$shared_ext' |
8228 | shlibpath_overrides_runpath=yes |
8229 | shlibpath_var=DYLD_LIBRARY_PATH |
8230 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
8231 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
8232 | if test "$GCC" = yes; then |
8233 | 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"` |
8234 | else |
8235 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
8236 | fi |
8237 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
8238 | ;; |
8239 | |
8240 | dgux*) |
8241 | version_type=linux |
8242 | need_lib_prefix=no |
8243 | need_version=no |
8244 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
8245 | soname_spec='${libname}${release}${shared_ext}$major' |
8246 | shlibpath_var=LD_LIBRARY_PATH |
8247 | ;; |
8248 | |
8249 | freebsd1*) |
8250 | dynamic_linker=no |
8251 | ;; |
8252 | |
8253 | kfreebsd*-gnu) |
8254 | version_type=linux |
8255 | need_lib_prefix=no |
8256 | need_version=no |
8257 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8258 | soname_spec='${libname}${release}${shared_ext}$major' |
8259 | shlibpath_var=LD_LIBRARY_PATH |
8260 | shlibpath_overrides_runpath=no |
8261 | hardcode_into_libs=yes |
8262 | dynamic_linker='GNU ld.so' |
8263 | ;; |
8264 | |
8265 | freebsd* | dragonfly*) |
8266 | # DragonFly does not have aout. When/if they implement a new |
8267 | # versioning mechanism, adjust this. |
8268 | if test -x /usr/bin/objformat; then |
8269 | objformat=`/usr/bin/objformat` |
8270 | else |
8271 | case $host_os in |
8272 | freebsd[123]*) objformat=aout ;; |
8273 | *) objformat=elf ;; |
8274 | esac |
8275 | fi |
8276 | version_type=freebsd-$objformat |
8277 | case $version_type in |
8278 | freebsd-elf*) |
8279 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
8280 | need_version=no |
8281 | need_lib_prefix=no |
8282 | ;; |
8283 | freebsd-*) |
8284 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
8285 | need_version=yes |
8286 | ;; |
8287 | esac |
8288 | shlibpath_var=LD_LIBRARY_PATH |
8289 | case $host_os in |
8290 | freebsd2*) |
8291 | shlibpath_overrides_runpath=yes |
8292 | ;; |
8293 | freebsd3.[01]* | freebsdelf3.[01]*) |
8294 | shlibpath_overrides_runpath=yes |
8295 | hardcode_into_libs=yes |
8296 | ;; |
8297 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
8298 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
8299 | shlibpath_overrides_runpath=no |
8300 | hardcode_into_libs=yes |
8301 | ;; |
8302 | freebsd*) # from 4.6 on |
8303 | shlibpath_overrides_runpath=yes |
8304 | hardcode_into_libs=yes |
8305 | ;; |
8306 | esac |
8307 | ;; |
8308 | |
8309 | gnu*) |
8310 | version_type=linux |
8311 | need_lib_prefix=no |
8312 | need_version=no |
8313 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
8314 | soname_spec='${libname}${release}${shared_ext}$major' |
8315 | shlibpath_var=LD_LIBRARY_PATH |
8316 | hardcode_into_libs=yes |
8317 | ;; |
8318 | |
8319 | hpux9* | hpux10* | hpux11*) |
8320 | # Give a soname corresponding to the major version so that dld.sl refuses to |
8321 | # link against other versions. |
8322 | version_type=sunos |
8323 | need_lib_prefix=no |
8324 | need_version=no |
8325 | case $host_cpu in |
8326 | ia64*) |
8327 | shrext_cmds='.so' |
8328 | hardcode_into_libs=yes |
8329 | dynamic_linker="$host_os dld.so" |
8330 | shlibpath_var=LD_LIBRARY_PATH |
8331 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8332 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8333 | soname_spec='${libname}${release}${shared_ext}$major' |
8334 | if test "X$HPUX_IA64_MODE" = X32; then |
8335 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
8336 | else |
8337 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
8338 | fi |
8339 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8340 | ;; |
8341 | hppa*64*) |
8342 | shrext_cmds='.sl' |
8343 | hardcode_into_libs=yes |
8344 | dynamic_linker="$host_os dld.sl" |
8345 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
8346 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8347 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8348 | soname_spec='${libname}${release}${shared_ext}$major' |
8349 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
8350 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8351 | ;; |
8352 | *) |
8353 | shrext_cmds='.sl' |
8354 | dynamic_linker="$host_os dld.sl" |
8355 | shlibpath_var=SHLIB_PATH |
8356 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
8357 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8358 | soname_spec='${libname}${release}${shared_ext}$major' |
8359 | ;; |
8360 | esac |
8361 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
8362 | postinstall_cmds='chmod 555 $lib' |
8363 | ;; |
8364 | |
8365 | interix3*) |
8366 | version_type=linux |
8367 | need_lib_prefix=no |
8368 | need_version=no |
8369 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8370 | soname_spec='${libname}${release}${shared_ext}$major' |
8371 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
8372 | shlibpath_var=LD_LIBRARY_PATH |
8373 | shlibpath_overrides_runpath=no |
8374 | hardcode_into_libs=yes |
8375 | ;; |
8376 | |
8377 | irix5* | irix6* | nonstopux*) |
8378 | case $host_os in |
8379 | nonstopux*) version_type=nonstopux ;; |
8380 | *) |
8381 | if test "$lt_cv_prog_gnu_ld" = yes; then |
8382 | version_type=linux |
8383 | else |
8384 | version_type=irix |
8385 | fi ;; |
8386 | esac |
8387 | need_lib_prefix=no |
8388 | need_version=no |
8389 | soname_spec='${libname}${release}${shared_ext}$major' |
8390 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
8391 | case $host_os in |
8392 | irix5* | nonstopux*) |
8393 | libsuff= shlibsuff= |
8394 | ;; |
8395 | *) |
8396 | case $LD in # libtool.m4 will add one of these switches to LD |
8397 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
8398 | libsuff= shlibsuff= libmagic=32-bit;; |
8399 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
8400 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
8401 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
8402 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
8403 | *) libsuff= shlibsuff= libmagic=never-match;; |
8404 | esac |
8405 | ;; |
8406 | esac |
8407 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
8408 | shlibpath_overrides_runpath=no |
8409 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
8410 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
8411 | hardcode_into_libs=yes |
8412 | ;; |
8413 | |
8414 | # No shared lib support for Linux oldld, aout, or coff. |
8415 | linux*oldld* | linux*aout* | linux*coff*) |
8416 | dynamic_linker=no |
8417 | ;; |
8418 | |
8419 | # This must be Linux ELF. |
8420 | linux*) |
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 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
8427 | shlibpath_var=LD_LIBRARY_PATH |
8428 | shlibpath_overrides_runpath=no |
8429 | # This implies no fast_install, which is unacceptable. |
8430 | # Some rework will be needed to allow for fast_install |
8431 | # before this can be enabled. |
8432 | hardcode_into_libs=yes |
8433 | |
8434 | # find out which ABI we are using |
8435 | libsuff= |
8436 | case "$host_cpu" in |
8437 | x86_64*|s390x*|powerpc64*) |
8438 | echo '#line 8438 "configure"' > conftest.$ac_ext |
8439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8440 | (eval $ac_compile) 2>&5 |
8441 | ac_status=$? |
8442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8443 | (exit $ac_status); }; then |
8444 | case `/usr/bin/file conftest.$ac_objext` in |
8445 | *64-bit*) |
8446 | libsuff=64 |
8447 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
8448 | ;; |
8449 | esac |
8450 | fi |
8451 | rm -rf conftest* |
8452 | ;; |
8453 | esac |
8454 | |
8455 | # Append ld.so.conf contents to the search path |
8456 | if test -f /etc/ld.so.conf; then |
8457 | 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' ' '` |
8458 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
8459 | fi |
8460 | |
8461 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
8462 | # powerpc, because MkLinux only supported shared libraries with the |
8463 | # GNU dynamic linker. Since this was broken with cross compilers, |
8464 | # most powerpc-linux boxes support dynamic linking these days and |
8465 | # people can always --disable-shared, the test was removed, and we |
8466 | # assume the GNU/Linux dynamic linker is in use. |
8467 | dynamic_linker='GNU/Linux ld.so' |
8468 | ;; |
8469 | |
8470 | knetbsd*-gnu) |
8471 | version_type=linux |
8472 | need_lib_prefix=no |
8473 | need_version=no |
8474 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8475 | soname_spec='${libname}${release}${shared_ext}$major' |
8476 | shlibpath_var=LD_LIBRARY_PATH |
8477 | shlibpath_overrides_runpath=no |
8478 | hardcode_into_libs=yes |
8479 | dynamic_linker='GNU ld.so' |
8480 | ;; |
8481 | |
8482 | netbsd*) |
8483 | version_type=sunos |
8484 | need_lib_prefix=no |
8485 | need_version=no |
8486 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8487 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8488 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
8489 | dynamic_linker='NetBSD (a.out) ld.so' |
8490 | else |
8491 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8492 | soname_spec='${libname}${release}${shared_ext}$major' |
8493 | dynamic_linker='NetBSD ld.elf_so' |
8494 | fi |
8495 | shlibpath_var=LD_LIBRARY_PATH |
8496 | shlibpath_overrides_runpath=yes |
8497 | hardcode_into_libs=yes |
8498 | ;; |
8499 | |
8500 | newsos6) |
8501 | version_type=linux |
8502 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8503 | shlibpath_var=LD_LIBRARY_PATH |
8504 | shlibpath_overrides_runpath=yes |
8505 | ;; |
8506 | |
8507 | nto-qnx*) |
8508 | version_type=linux |
8509 | need_lib_prefix=no |
8510 | need_version=no |
8511 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8512 | soname_spec='${libname}${release}${shared_ext}$major' |
8513 | shlibpath_var=LD_LIBRARY_PATH |
8514 | shlibpath_overrides_runpath=yes |
8515 | ;; |
8516 | |
8517 | openbsd*) |
8518 | version_type=sunos |
8519 | sys_lib_dlsearch_path_spec="/usr/lib" |
8520 | need_lib_prefix=no |
8521 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
8522 | case $host_os in |
8523 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
8524 | *) need_version=no ;; |
8525 | esac |
8526 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8527 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
8528 | shlibpath_var=LD_LIBRARY_PATH |
8529 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
8530 | case $host_os in |
8531 | openbsd2.[89] | openbsd2.[89].*) |
8532 | shlibpath_overrides_runpath=no |
8533 | ;; |
8534 | *) |
8535 | shlibpath_overrides_runpath=yes |
8536 | ;; |
8537 | esac |
8538 | else |
8539 | shlibpath_overrides_runpath=yes |
8540 | fi |
8541 | ;; |
8542 | |
8543 | os2*) |
8544 | libname_spec='$name' |
8545 | shrext_cmds=".dll" |
8546 | need_lib_prefix=no |
8547 | library_names_spec='$libname${shared_ext} $libname.a' |
8548 | dynamic_linker='OS/2 ld.exe' |
8549 | shlibpath_var=LIBPATH |
8550 | ;; |
8551 | |
8552 | osf3* | osf4* | osf5*) |
8553 | version_type=osf |
8554 | need_lib_prefix=no |
8555 | need_version=no |
8556 | soname_spec='${libname}${release}${shared_ext}$major' |
8557 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8558 | shlibpath_var=LD_LIBRARY_PATH |
8559 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
8560 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
8561 | ;; |
8562 | |
8563 | solaris*) |
8564 | version_type=linux |
8565 | need_lib_prefix=no |
8566 | need_version=no |
8567 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8568 | soname_spec='${libname}${release}${shared_ext}$major' |
8569 | shlibpath_var=LD_LIBRARY_PATH |
8570 | shlibpath_overrides_runpath=yes |
8571 | hardcode_into_libs=yes |
8572 | # ldd complains unless libraries are executable |
8573 | postinstall_cmds='chmod +x $lib' |
8574 | ;; |
8575 | |
8576 | sunos4*) |
8577 | version_type=sunos |
8578 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8579 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
8580 | shlibpath_var=LD_LIBRARY_PATH |
8581 | shlibpath_overrides_runpath=yes |
8582 | if test "$with_gnu_ld" = yes; then |
8583 | need_lib_prefix=no |
8584 | fi |
8585 | need_version=yes |
8586 | ;; |
8587 | |
8588 | sysv4 | sysv4.3*) |
8589 | version_type=linux |
8590 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8591 | soname_spec='${libname}${release}${shared_ext}$major' |
8592 | shlibpath_var=LD_LIBRARY_PATH |
8593 | case $host_vendor in |
8594 | sni) |
8595 | shlibpath_overrides_runpath=no |
8596 | need_lib_prefix=no |
8597 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
8598 | runpath_var=LD_RUN_PATH |
8599 | ;; |
8600 | siemens) |
8601 | need_lib_prefix=no |
8602 | ;; |
8603 | motorola) |
8604 | need_lib_prefix=no |
8605 | need_version=no |
8606 | shlibpath_overrides_runpath=no |
8607 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
8608 | ;; |
8609 | esac |
8610 | ;; |
8611 | |
8612 | sysv4*MP*) |
8613 | if test -d /usr/nec ;then |
8614 | version_type=linux |
8615 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
8616 | soname_spec='$libname${shared_ext}.$major' |
8617 | shlibpath_var=LD_LIBRARY_PATH |
8618 | fi |
8619 | ;; |
8620 | |
8621 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
8622 | version_type=freebsd-elf |
8623 | need_lib_prefix=no |
8624 | need_version=no |
8625 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
8626 | soname_spec='${libname}${release}${shared_ext}$major' |
8627 | shlibpath_var=LD_LIBRARY_PATH |
8628 | hardcode_into_libs=yes |
8629 | if test "$with_gnu_ld" = yes; then |
8630 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
8631 | shlibpath_overrides_runpath=no |
8632 | else |
8633 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
8634 | shlibpath_overrides_runpath=yes |
8635 | case $host_os in |
8636 | sco3.2v5*) |
8637 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
8638 | ;; |
8639 | esac |
8640 | fi |
8641 | sys_lib_dlsearch_path_spec='/usr/lib' |
8642 | ;; |
8643 | |
8644 | uts4*) |
8645 | version_type=linux |
8646 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8647 | soname_spec='${libname}${release}${shared_ext}$major' |
8648 | shlibpath_var=LD_LIBRARY_PATH |
8649 | ;; |
8650 | |
8651 | *) |
8652 | dynamic_linker=no |
8653 | ;; |
8654 | esac |
8655 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
8656 | echo "${ECHO_T}$dynamic_linker" >&6 |
8657 | test "$dynamic_linker" = no && can_build_shared=no |
8658 | |
8659 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
8660 | if test "$GCC" = yes; then |
8661 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
8662 | fi |
8663 | |
8664 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
8665 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
8666 | hardcode_action= |
8667 | if test -n "$hardcode_libdir_flag_spec" || \ |
8668 | test -n "$runpath_var" || \ |
8669 | test "X$hardcode_automatic" = "Xyes" ; then |
8670 | |
8671 | # We can hardcode non-existant directories. |
8672 | if test "$hardcode_direct" != no && |
8673 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
8674 | # have to relink, otherwise we might link with an installed library |
8675 | # when we should be linking with a yet-to-be-installed one |
8676 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
8677 | test "$hardcode_minus_L" != no; then |
8678 | # Linking always hardcodes the temporary library directory. |
8679 | hardcode_action=relink |
8680 | else |
8681 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
8682 | hardcode_action=immediate |
8683 | fi |
8684 | else |
8685 | # We cannot hardcode anything, or else we can only hardcode existing |
8686 | # directories. |
8687 | hardcode_action=unsupported |
8688 | fi |
8689 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
8690 | echo "${ECHO_T}$hardcode_action" >&6 |
8691 | |
8692 | if test "$hardcode_action" = relink; then |
8693 | # Fast installation is not supported |
8694 | enable_fast_install=no |
8695 | elif test "$shlibpath_overrides_runpath" = yes || |
8696 | test "$enable_shared" = no; then |
8697 | # Fast installation is not necessary |
8698 | enable_fast_install=needless |
8699 | fi |
8700 | |
8701 | striplib= |
8702 | old_striplib= |
8703 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
8704 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
8705 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
8706 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
8707 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
8708 | echo "$as_me:$LINENO: result: yes" >&5 |
8709 | echo "${ECHO_T}yes" >&6 |
8710 | else |
8711 | # FIXME - insert some real tests, host_os isn't really good enough |
8712 | case $host_os in |
8713 | darwin*) |
8714 | if test -n "$STRIP" ; then |
8715 | striplib="$STRIP -x" |
8716 | echo "$as_me:$LINENO: result: yes" >&5 |
8717 | echo "${ECHO_T}yes" >&6 |
8718 | else |
8719 | echo "$as_me:$LINENO: result: no" >&5 |
8720 | echo "${ECHO_T}no" >&6 |
8721 | fi |
8722 | ;; |
8723 | *) |
8724 | echo "$as_me:$LINENO: result: no" >&5 |
8725 | echo "${ECHO_T}no" >&6 |
8726 | ;; |
8727 | esac |
8728 | fi |
8729 | |
8730 | if test "x$enable_dlopen" != xyes; then |
8731 | enable_dlopen=unknown |
8732 | enable_dlopen_self=unknown |
8733 | enable_dlopen_self_static=unknown |
8734 | else |
8735 | lt_cv_dlopen=no |
8736 | lt_cv_dlopen_libs= |
8737 | |
8738 | case $host_os in |
8739 | beos*) |
8740 | lt_cv_dlopen="load_add_on" |
8741 | lt_cv_dlopen_libs= |
8742 | lt_cv_dlopen_self=yes |
8743 | ;; |
8744 | |
8745 | mingw* | pw32*) |
8746 | lt_cv_dlopen="LoadLibrary" |
8747 | lt_cv_dlopen_libs= |
8748 | ;; |
8749 | |
8750 | cygwin*) |
8751 | lt_cv_dlopen="dlopen" |
8752 | lt_cv_dlopen_libs= |
8753 | ;; |
8754 | |
8755 | darwin*) |
8756 | # if libdl is installed we need to link against it |
8757 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
8758 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
8759 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
8760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8761 | else |
8762 | ac_check_lib_save_LIBS=$LIBS |
8763 | LIBS="-ldl $LIBS" |
8764 | cat >conftest.$ac_ext <<_ACEOF |
8765 | /* confdefs.h. */ |
8766 | _ACEOF |
8767 | cat confdefs.h >>conftest.$ac_ext |
8768 | cat >>conftest.$ac_ext <<_ACEOF |
8769 | /* end confdefs.h. */ |
8770 | |
8771 | /* Override any gcc2 internal prototype to avoid an error. */ |
8772 | #ifdef __cplusplus |
8773 | extern "C" |
8774 | #endif |
8775 | /* We use char because int might match the return type of a gcc2 |
8776 | builtin and then its argument prototype would still apply. */ |
8777 | char dlopen (); |
8778 | int |
8779 | main () |
8780 | { |
8781 | dlopen (); |
8782 | ; |
8783 | return 0; |
8784 | } |
8785 | _ACEOF |
8786 | rm -f conftest.$ac_objext conftest$ac_exeext |
8787 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8788 | (eval $ac_link) 2>conftest.er1 |
8789 | ac_status=$? |
8790 | grep -v '^ *+' conftest.er1 >conftest.err |
8791 | rm -f conftest.er1 |
8792 | cat conftest.err >&5 |
8793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8794 | (exit $ac_status); } && |
8795 | { ac_try='test -z "$ac_c_werror_flag" |
8796 | || test ! -s conftest.err' |
8797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8798 | (eval $ac_try) 2>&5 |
8799 | ac_status=$? |
8800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8801 | (exit $ac_status); }; } && |
8802 | { ac_try='test -s conftest$ac_exeext' |
8803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8804 | (eval $ac_try) 2>&5 |
8805 | ac_status=$? |
8806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8807 | (exit $ac_status); }; }; then |
8808 | ac_cv_lib_dl_dlopen=yes |
8809 | else |
8810 | echo "$as_me: failed program was:" >&5 |
8811 | sed 's/^/| /' conftest.$ac_ext >&5 |
8812 | |
8813 | ac_cv_lib_dl_dlopen=no |
8814 | fi |
8815 | rm -f conftest.err conftest.$ac_objext \ |
8816 | conftest$ac_exeext conftest.$ac_ext |
8817 | LIBS=$ac_check_lib_save_LIBS |
8818 | fi |
8819 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
8820 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
8821 | if test $ac_cv_lib_dl_dlopen = yes; then |
8822 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
8823 | else |
8824 | |
8825 | lt_cv_dlopen="dyld" |
8826 | lt_cv_dlopen_libs= |
8827 | lt_cv_dlopen_self=yes |
8828 | |
8829 | fi |
8830 | |
8831 | ;; |
8832 | |
8833 | *) |
8834 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
8835 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
8836 | if test "${ac_cv_func_shl_load+set}" = set; then |
8837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8838 | else |
8839 | cat >conftest.$ac_ext <<_ACEOF |
8840 | /* confdefs.h. */ |
8841 | _ACEOF |
8842 | cat confdefs.h >>conftest.$ac_ext |
8843 | cat >>conftest.$ac_ext <<_ACEOF |
8844 | /* end confdefs.h. */ |
8845 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
8846 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8847 | #define shl_load innocuous_shl_load |
8848 | |
8849 | /* System header to define __stub macros and hopefully few prototypes, |
8850 | which can conflict with char shl_load (); below. |
8851 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8852 | <limits.h> exists even on freestanding compilers. */ |
8853 | |
8854 | #ifdef __STDC__ |
8855 | # include <limits.h> |
8856 | #else |
8857 | # include <assert.h> |
8858 | #endif |
8859 | |
8860 | #undef shl_load |
8861 | |
8862 | /* Override any gcc2 internal prototype to avoid an error. */ |
8863 | #ifdef __cplusplus |
8864 | extern "C" |
8865 | { |
8866 | #endif |
8867 | /* We use char because int might match the return type of a gcc2 |
8868 | builtin and then its argument prototype would still apply. */ |
8869 | char shl_load (); |
8870 | /* The GNU C library defines this for functions which it implements |
8871 | to always fail with ENOSYS. Some functions are actually named |
8872 | something starting with __ and the normal name is an alias. */ |
8873 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
8874 | choke me |
8875 | #else |
8876 | char (*f) () = shl_load; |
8877 | #endif |
8878 | #ifdef __cplusplus |
8879 | } |
8880 | #endif |
8881 | |
8882 | int |
8883 | main () |
8884 | { |
8885 | return f != shl_load; |
8886 | ; |
8887 | return 0; |
8888 | } |
8889 | _ACEOF |
8890 | rm -f conftest.$ac_objext conftest$ac_exeext |
8891 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8892 | (eval $ac_link) 2>conftest.er1 |
8893 | ac_status=$? |
8894 | grep -v '^ *+' conftest.er1 >conftest.err |
8895 | rm -f conftest.er1 |
8896 | cat conftest.err >&5 |
8897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8898 | (exit $ac_status); } && |
8899 | { ac_try='test -z "$ac_c_werror_flag" |
8900 | || test ! -s conftest.err' |
8901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8902 | (eval $ac_try) 2>&5 |
8903 | ac_status=$? |
8904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8905 | (exit $ac_status); }; } && |
8906 | { ac_try='test -s conftest$ac_exeext' |
8907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8908 | (eval $ac_try) 2>&5 |
8909 | ac_status=$? |
8910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8911 | (exit $ac_status); }; }; then |
8912 | ac_cv_func_shl_load=yes |
8913 | else |
8914 | echo "$as_me: failed program was:" >&5 |
8915 | sed 's/^/| /' conftest.$ac_ext >&5 |
8916 | |
8917 | ac_cv_func_shl_load=no |
8918 | fi |
8919 | rm -f conftest.err conftest.$ac_objext \ |
8920 | conftest$ac_exeext conftest.$ac_ext |
8921 | fi |
8922 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
8923 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
8924 | if test $ac_cv_func_shl_load = yes; then |
8925 | lt_cv_dlopen="shl_load" |
8926 | else |
8927 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
8928 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
8929 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
8930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8931 | else |
8932 | ac_check_lib_save_LIBS=$LIBS |
8933 | LIBS="-ldld $LIBS" |
8934 | cat >conftest.$ac_ext <<_ACEOF |
8935 | /* confdefs.h. */ |
8936 | _ACEOF |
8937 | cat confdefs.h >>conftest.$ac_ext |
8938 | cat >>conftest.$ac_ext <<_ACEOF |
8939 | /* end confdefs.h. */ |
8940 | |
8941 | /* Override any gcc2 internal prototype to avoid an error. */ |
8942 | #ifdef __cplusplus |
8943 | extern "C" |
8944 | #endif |
8945 | /* We use char because int might match the return type of a gcc2 |
8946 | builtin and then its argument prototype would still apply. */ |
8947 | char shl_load (); |
8948 | int |
8949 | main () |
8950 | { |
8951 | shl_load (); |
8952 | ; |
8953 | return 0; |
8954 | } |
8955 | _ACEOF |
8956 | rm -f conftest.$ac_objext conftest$ac_exeext |
8957 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8958 | (eval $ac_link) 2>conftest.er1 |
8959 | ac_status=$? |
8960 | grep -v '^ *+' conftest.er1 >conftest.err |
8961 | rm -f conftest.er1 |
8962 | cat conftest.err >&5 |
8963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8964 | (exit $ac_status); } && |
8965 | { ac_try='test -z "$ac_c_werror_flag" |
8966 | || test ! -s conftest.err' |
8967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8968 | (eval $ac_try) 2>&5 |
8969 | ac_status=$? |
8970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8971 | (exit $ac_status); }; } && |
8972 | { ac_try='test -s conftest$ac_exeext' |
8973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8974 | (eval $ac_try) 2>&5 |
8975 | ac_status=$? |
8976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8977 | (exit $ac_status); }; }; then |
8978 | ac_cv_lib_dld_shl_load=yes |
8979 | else |
8980 | echo "$as_me: failed program was:" >&5 |
8981 | sed 's/^/| /' conftest.$ac_ext >&5 |
8982 | |
8983 | ac_cv_lib_dld_shl_load=no |
8984 | fi |
8985 | rm -f conftest.err conftest.$ac_objext \ |
8986 | conftest$ac_exeext conftest.$ac_ext |
8987 | LIBS=$ac_check_lib_save_LIBS |
8988 | fi |
8989 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
8990 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
8991 | if test $ac_cv_lib_dld_shl_load = yes; then |
8992 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
8993 | else |
8994 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
8995 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
8996 | if test "${ac_cv_func_dlopen+set}" = set; then |
8997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8998 | else |
8999 | cat >conftest.$ac_ext <<_ACEOF |
9000 | /* confdefs.h. */ |
9001 | _ACEOF |
9002 | cat confdefs.h >>conftest.$ac_ext |
9003 | cat >>conftest.$ac_ext <<_ACEOF |
9004 | /* end confdefs.h. */ |
9005 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
9006 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9007 | #define dlopen innocuous_dlopen |
9008 | |
9009 | /* System header to define __stub macros and hopefully few prototypes, |
9010 | which can conflict with char dlopen (); below. |
9011 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9012 | <limits.h> exists even on freestanding compilers. */ |
9013 | |
9014 | #ifdef __STDC__ |
9015 | # include <limits.h> |
9016 | #else |
9017 | # include <assert.h> |
9018 | #endif |
9019 | |
9020 | #undef dlopen |
9021 | |
9022 | /* Override any gcc2 internal prototype to avoid an error. */ |
9023 | #ifdef __cplusplus |
9024 | extern "C" |
9025 | { |
9026 | #endif |
9027 | /* We use char because int might match the return type of a gcc2 |
9028 | builtin and then its argument prototype would still apply. */ |
9029 | char dlopen (); |
9030 | /* The GNU C library defines this for functions which it implements |
9031 | to always fail with ENOSYS. Some functions are actually named |
9032 | something starting with __ and the normal name is an alias. */ |
9033 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
9034 | choke me |
9035 | #else |
9036 | char (*f) () = dlopen; |
9037 | #endif |
9038 | #ifdef __cplusplus |
9039 | } |
9040 | #endif |
9041 | |
9042 | int |
9043 | main () |
9044 | { |
9045 | return f != dlopen; |
9046 | ; |
9047 | return 0; |
9048 | } |
9049 | _ACEOF |
9050 | rm -f conftest.$ac_objext conftest$ac_exeext |
9051 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9052 | (eval $ac_link) 2>conftest.er1 |
9053 | ac_status=$? |
9054 | grep -v '^ *+' conftest.er1 >conftest.err |
9055 | rm -f conftest.er1 |
9056 | cat conftest.err >&5 |
9057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9058 | (exit $ac_status); } && |
9059 | { ac_try='test -z "$ac_c_werror_flag" |
9060 | || test ! -s conftest.err' |
9061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9062 | (eval $ac_try) 2>&5 |
9063 | ac_status=$? |
9064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9065 | (exit $ac_status); }; } && |
9066 | { ac_try='test -s conftest$ac_exeext' |
9067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9068 | (eval $ac_try) 2>&5 |
9069 | ac_status=$? |
9070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9071 | (exit $ac_status); }; }; then |
9072 | ac_cv_func_dlopen=yes |
9073 | else |
9074 | echo "$as_me: failed program was:" >&5 |
9075 | sed 's/^/| /' conftest.$ac_ext >&5 |
9076 | |
9077 | ac_cv_func_dlopen=no |
9078 | fi |
9079 | rm -f conftest.err conftest.$ac_objext \ |
9080 | conftest$ac_exeext conftest.$ac_ext |
9081 | fi |
9082 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
9083 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
9084 | if test $ac_cv_func_dlopen = yes; then |
9085 | lt_cv_dlopen="dlopen" |
9086 | else |
9087 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9088 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
9089 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9091 | else |
9092 | ac_check_lib_save_LIBS=$LIBS |
9093 | LIBS="-ldl $LIBS" |
9094 | cat >conftest.$ac_ext <<_ACEOF |
9095 | /* confdefs.h. */ |
9096 | _ACEOF |
9097 | cat confdefs.h >>conftest.$ac_ext |
9098 | cat >>conftest.$ac_ext <<_ACEOF |
9099 | /* end confdefs.h. */ |
9100 | |
9101 | /* Override any gcc2 internal prototype to avoid an error. */ |
9102 | #ifdef __cplusplus |
9103 | extern "C" |
9104 | #endif |
9105 | /* We use char because int might match the return type of a gcc2 |
9106 | builtin and then its argument prototype would still apply. */ |
9107 | char dlopen (); |
9108 | int |
9109 | main () |
9110 | { |
9111 | dlopen (); |
9112 | ; |
9113 | return 0; |
9114 | } |
9115 | _ACEOF |
9116 | rm -f conftest.$ac_objext conftest$ac_exeext |
9117 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9118 | (eval $ac_link) 2>conftest.er1 |
9119 | ac_status=$? |
9120 | grep -v '^ *+' conftest.er1 >conftest.err |
9121 | rm -f conftest.er1 |
9122 | cat conftest.err >&5 |
9123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9124 | (exit $ac_status); } && |
9125 | { ac_try='test -z "$ac_c_werror_flag" |
9126 | || test ! -s conftest.err' |
9127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9128 | (eval $ac_try) 2>&5 |
9129 | ac_status=$? |
9130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9131 | (exit $ac_status); }; } && |
9132 | { ac_try='test -s conftest$ac_exeext' |
9133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9134 | (eval $ac_try) 2>&5 |
9135 | ac_status=$? |
9136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9137 | (exit $ac_status); }; }; then |
9138 | ac_cv_lib_dl_dlopen=yes |
9139 | else |
9140 | echo "$as_me: failed program was:" >&5 |
9141 | sed 's/^/| /' conftest.$ac_ext >&5 |
9142 | |
9143 | ac_cv_lib_dl_dlopen=no |
9144 | fi |
9145 | rm -f conftest.err conftest.$ac_objext \ |
9146 | conftest$ac_exeext conftest.$ac_ext |
9147 | LIBS=$ac_check_lib_save_LIBS |
9148 | fi |
9149 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9150 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
9151 | if test $ac_cv_lib_dl_dlopen = yes; then |
9152 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9153 | else |
9154 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
9155 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
9156 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
9157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9158 | else |
9159 | ac_check_lib_save_LIBS=$LIBS |
9160 | LIBS="-lsvld $LIBS" |
9161 | cat >conftest.$ac_ext <<_ACEOF |
9162 | /* confdefs.h. */ |
9163 | _ACEOF |
9164 | cat confdefs.h >>conftest.$ac_ext |
9165 | cat >>conftest.$ac_ext <<_ACEOF |
9166 | /* end confdefs.h. */ |
9167 | |
9168 | /* Override any gcc2 internal prototype to avoid an error. */ |
9169 | #ifdef __cplusplus |
9170 | extern "C" |
9171 | #endif |
9172 | /* We use char because int might match the return type of a gcc2 |
9173 | builtin and then its argument prototype would still apply. */ |
9174 | char dlopen (); |
9175 | int |
9176 | main () |
9177 | { |
9178 | dlopen (); |
9179 | ; |
9180 | return 0; |
9181 | } |
9182 | _ACEOF |
9183 | rm -f conftest.$ac_objext conftest$ac_exeext |
9184 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9185 | (eval $ac_link) 2>conftest.er1 |
9186 | ac_status=$? |
9187 | grep -v '^ *+' conftest.er1 >conftest.err |
9188 | rm -f conftest.er1 |
9189 | cat conftest.err >&5 |
9190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9191 | (exit $ac_status); } && |
9192 | { ac_try='test -z "$ac_c_werror_flag" |
9193 | || test ! -s conftest.err' |
9194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9195 | (eval $ac_try) 2>&5 |
9196 | ac_status=$? |
9197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9198 | (exit $ac_status); }; } && |
9199 | { ac_try='test -s conftest$ac_exeext' |
9200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9201 | (eval $ac_try) 2>&5 |
9202 | ac_status=$? |
9203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9204 | (exit $ac_status); }; }; then |
9205 | ac_cv_lib_svld_dlopen=yes |
9206 | else |
9207 | echo "$as_me: failed program was:" >&5 |
9208 | sed 's/^/| /' conftest.$ac_ext >&5 |
9209 | |
9210 | ac_cv_lib_svld_dlopen=no |
9211 | fi |
9212 | rm -f conftest.err conftest.$ac_objext \ |
9213 | conftest$ac_exeext conftest.$ac_ext |
9214 | LIBS=$ac_check_lib_save_LIBS |
9215 | fi |
9216 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
9217 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
9218 | if test $ac_cv_lib_svld_dlopen = yes; then |
9219 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
9220 | else |
9221 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
9222 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
9223 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
9224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9225 | else |
9226 | ac_check_lib_save_LIBS=$LIBS |
9227 | LIBS="-ldld $LIBS" |
9228 | cat >conftest.$ac_ext <<_ACEOF |
9229 | /* confdefs.h. */ |
9230 | _ACEOF |
9231 | cat confdefs.h >>conftest.$ac_ext |
9232 | cat >>conftest.$ac_ext <<_ACEOF |
9233 | /* end confdefs.h. */ |
9234 | |
9235 | /* Override any gcc2 internal prototype to avoid an error. */ |
9236 | #ifdef __cplusplus |
9237 | extern "C" |
9238 | #endif |
9239 | /* We use char because int might match the return type of a gcc2 |
9240 | builtin and then its argument prototype would still apply. */ |
9241 | char dld_link (); |
9242 | int |
9243 | main () |
9244 | { |
9245 | dld_link (); |
9246 | ; |
9247 | return 0; |
9248 | } |
9249 | _ACEOF |
9250 | rm -f conftest.$ac_objext conftest$ac_exeext |
9251 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9252 | (eval $ac_link) 2>conftest.er1 |
9253 | ac_status=$? |
9254 | grep -v '^ *+' conftest.er1 >conftest.err |
9255 | rm -f conftest.er1 |
9256 | cat conftest.err >&5 |
9257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9258 | (exit $ac_status); } && |
9259 | { ac_try='test -z "$ac_c_werror_flag" |
9260 | || test ! -s conftest.err' |
9261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9262 | (eval $ac_try) 2>&5 |
9263 | ac_status=$? |
9264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9265 | (exit $ac_status); }; } && |
9266 | { ac_try='test -s conftest$ac_exeext' |
9267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9268 | (eval $ac_try) 2>&5 |
9269 | ac_status=$? |
9270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9271 | (exit $ac_status); }; }; then |
9272 | ac_cv_lib_dld_dld_link=yes |
9273 | else |
9274 | echo "$as_me: failed program was:" >&5 |
9275 | sed 's/^/| /' conftest.$ac_ext >&5 |
9276 | |
9277 | ac_cv_lib_dld_dld_link=no |
9278 | fi |
9279 | rm -f conftest.err conftest.$ac_objext \ |
9280 | conftest$ac_exeext conftest.$ac_ext |
9281 | LIBS=$ac_check_lib_save_LIBS |
9282 | fi |
9283 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
9284 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
9285 | if test $ac_cv_lib_dld_dld_link = yes; then |
9286 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
9287 | fi |
9288 | |
9289 | |
9290 | fi |
9291 | |
9292 | |
9293 | fi |
9294 | |
9295 | |
9296 | fi |
9297 | |
9298 | |
9299 | fi |
9300 | |
9301 | |
9302 | fi |
9303 | |
9304 | ;; |
9305 | esac |
9306 | |
9307 | if test "x$lt_cv_dlopen" != xno; then |
9308 | enable_dlopen=yes |
9309 | else |
9310 | enable_dlopen=no |
9311 | fi |
9312 | |
9313 | case $lt_cv_dlopen in |
9314 | dlopen) |
9315 | save_CPPFLAGS="$CPPFLAGS" |
9316 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
9317 | |
9318 | save_LDFLAGS="$LDFLAGS" |
9319 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
9320 | |
9321 | save_LIBS="$LIBS" |
9322 | LIBS="$lt_cv_dlopen_libs $LIBS" |
9323 | |
9324 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
9325 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
9326 | if test "${lt_cv_dlopen_self+set}" = set; then |
9327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9328 | else |
9329 | if test "$cross_compiling" = yes; then : |
9330 | lt_cv_dlopen_self=cross |
9331 | else |
9332 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9333 | lt_status=$lt_dlunknown |
9334 | cat > conftest.$ac_ext <<EOF |
9335 | #line 9335 "configure" |
9336 | #include "confdefs.h" |
9337 | |
9338 | #if HAVE_DLFCN_H |
9339 | #include <dlfcn.h> |
9340 | #endif |
9341 | |
9342 | #include <stdio.h> |
9343 | |
9344 | #ifdef RTLD_GLOBAL |
9345 | # define LT_DLGLOBAL RTLD_GLOBAL |
9346 | #else |
9347 | # ifdef DL_GLOBAL |
9348 | # define LT_DLGLOBAL DL_GLOBAL |
9349 | # else |
9350 | # define LT_DLGLOBAL 0 |
9351 | # endif |
9352 | #endif |
9353 | |
9354 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9355 | find out it does not work in some platform. */ |
9356 | #ifndef LT_DLLAZY_OR_NOW |
9357 | # ifdef RTLD_LAZY |
9358 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
9359 | # else |
9360 | # ifdef DL_LAZY |
9361 | # define LT_DLLAZY_OR_NOW DL_LAZY |
9362 | # else |
9363 | # ifdef RTLD_NOW |
9364 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
9365 | # else |
9366 | # ifdef DL_NOW |
9367 | # define LT_DLLAZY_OR_NOW DL_NOW |
9368 | # else |
9369 | # define LT_DLLAZY_OR_NOW 0 |
9370 | # endif |
9371 | # endif |
9372 | # endif |
9373 | # endif |
9374 | #endif |
9375 | |
9376 | #ifdef __cplusplus |
9377 | extern "C" void exit (int); |
9378 | #endif |
9379 | |
9380 | void fnord() { int i=42;} |
9381 | int main () |
9382 | { |
9383 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
9384 | int status = $lt_dlunknown; |
9385 | |
9386 | if (self) |
9387 | { |
9388 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9389 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9390 | /* dlclose (self); */ |
9391 | } |
9392 | else |
9393 | puts (dlerror ()); |
9394 | |
9395 | exit (status); |
9396 | } |
9397 | EOF |
9398 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9399 | (eval $ac_link) 2>&5 |
9400 | ac_status=$? |
9401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9402 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9403 | (./conftest; exit; ) >&5 2>/dev/null |
9404 | lt_status=$? |
9405 | case x$lt_status in |
9406 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
9407 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
9408 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
9409 | esac |
9410 | else : |
9411 | # compilation failed |
9412 | lt_cv_dlopen_self=no |
9413 | fi |
9414 | fi |
9415 | rm -fr conftest* |
9416 | |
9417 | |
9418 | fi |
9419 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
9420 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
9421 | |
9422 | if test "x$lt_cv_dlopen_self" = xyes; then |
9423 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
9424 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
9425 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
9426 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
9427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9428 | else |
9429 | if test "$cross_compiling" = yes; then : |
9430 | lt_cv_dlopen_self_static=cross |
9431 | else |
9432 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9433 | lt_status=$lt_dlunknown |
9434 | cat > conftest.$ac_ext <<EOF |
9435 | #line 9435 "configure" |
9436 | #include "confdefs.h" |
9437 | |
9438 | #if HAVE_DLFCN_H |
9439 | #include <dlfcn.h> |
9440 | #endif |
9441 | |
9442 | #include <stdio.h> |
9443 | |
9444 | #ifdef RTLD_GLOBAL |
9445 | # define LT_DLGLOBAL RTLD_GLOBAL |
9446 | #else |
9447 | # ifdef DL_GLOBAL |
9448 | # define LT_DLGLOBAL DL_GLOBAL |
9449 | # else |
9450 | # define LT_DLGLOBAL 0 |
9451 | # endif |
9452 | #endif |
9453 | |
9454 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9455 | find out it does not work in some platform. */ |
9456 | #ifndef LT_DLLAZY_OR_NOW |
9457 | # ifdef RTLD_LAZY |
9458 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
9459 | # else |
9460 | # ifdef DL_LAZY |
9461 | # define LT_DLLAZY_OR_NOW DL_LAZY |
9462 | # else |
9463 | # ifdef RTLD_NOW |
9464 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
9465 | # else |
9466 | # ifdef DL_NOW |
9467 | # define LT_DLLAZY_OR_NOW DL_NOW |
9468 | # else |
9469 | # define LT_DLLAZY_OR_NOW 0 |
9470 | # endif |
9471 | # endif |
9472 | # endif |
9473 | # endif |
9474 | #endif |
9475 | |
9476 | #ifdef __cplusplus |
9477 | extern "C" void exit (int); |
9478 | #endif |
9479 | |
9480 | void fnord() { int i=42;} |
9481 | int main () |
9482 | { |
9483 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
9484 | int status = $lt_dlunknown; |
9485 | |
9486 | if (self) |
9487 | { |
9488 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9489 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9490 | /* dlclose (self); */ |
9491 | } |
9492 | else |
9493 | puts (dlerror ()); |
9494 | |
9495 | exit (status); |
9496 | } |
9497 | EOF |
9498 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9499 | (eval $ac_link) 2>&5 |
9500 | ac_status=$? |
9501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9502 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9503 | (./conftest; exit; ) >&5 2>/dev/null |
9504 | lt_status=$? |
9505 | case x$lt_status in |
9506 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
9507 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
9508 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
9509 | esac |
9510 | else : |
9511 | # compilation failed |
9512 | lt_cv_dlopen_self_static=no |
9513 | fi |
9514 | fi |
9515 | rm -fr conftest* |
9516 | |
9517 | |
9518 | fi |
9519 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
9520 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
9521 | fi |
9522 | |
9523 | CPPFLAGS="$save_CPPFLAGS" |
9524 | LDFLAGS="$save_LDFLAGS" |
9525 | LIBS="$save_LIBS" |
9526 | ;; |
9527 | esac |
9528 | |
9529 | case $lt_cv_dlopen_self in |
9530 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
9531 | *) enable_dlopen_self=unknown ;; |
9532 | esac |
9533 | |
9534 | case $lt_cv_dlopen_self_static in |
9535 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
9536 | *) enable_dlopen_self_static=unknown ;; |
9537 | esac |
9538 | fi |
9539 | |
9540 | |
9541 | # Report which library types will actually be built |
9542 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
9543 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
9544 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
9545 | echo "${ECHO_T}$can_build_shared" >&6 |
9546 | |
9547 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
9548 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
9549 | test "$can_build_shared" = "no" && enable_shared=no |
9550 | |
9551 | # On AIX, shared libraries and static libraries use the same namespace, and |
9552 | # are all built from PIC. |
9553 | case $host_os in |
9554 | aix3*) |
9555 | test "$enable_shared" = yes && enable_static=no |
9556 | if test -n "$RANLIB"; then |
9557 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
9558 | postinstall_cmds='$RANLIB $lib' |
9559 | fi |
9560 | ;; |
9561 | |
9562 | aix4* | aix5*) |
9563 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
9564 | test "$enable_shared" = yes && enable_static=no |
9565 | fi |
9566 | ;; |
9567 | esac |
9568 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
9569 | echo "${ECHO_T}$enable_shared" >&6 |
9570 | |
9571 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
9572 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
9573 | # Make sure either enable_shared or enable_static is yes. |
9574 | test "$enable_shared" = yes || enable_static=yes |
9575 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
9576 | echo "${ECHO_T}$enable_static" >&6 |
9577 | |
9578 | # The else clause should only fire when bootstrapping the |
9579 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
9580 | # with your package, and you will get complaints that there are |
9581 | # no rules to generate ltmain.sh. |
9582 | if test -f "$ltmain"; then |
9583 | # See if we are running on zsh, and set the options which allow our commands through |
9584 | # without removal of \ escapes. |
9585 | if test -n "${ZSH_VERSION+set}" ; then |
9586 | setopt NO_GLOB_SUBST |
9587 | fi |
9588 | # Now quote all the things that may contain metacharacters while being |
9589 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
9590 | # variables and quote the copies for generation of the libtool script. |
9591 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
9592 | SED SHELL STRIP \ |
9593 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
9594 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
9595 | deplibs_check_method reload_flag reload_cmds need_locks \ |
9596 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
9597 | lt_cv_sys_global_symbol_to_c_name_address \ |
9598 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
9599 | old_postinstall_cmds old_postuninstall_cmds \ |
9600 | compiler \ |
9601 | CC \ |
9602 | LD \ |
9603 | lt_prog_compiler_wl \ |
9604 | lt_prog_compiler_pic \ |
9605 | lt_prog_compiler_static \ |
9606 | lt_prog_compiler_no_builtin_flag \ |
9607 | export_dynamic_flag_spec \ |
9608 | thread_safe_flag_spec \ |
9609 | whole_archive_flag_spec \ |
9610 | enable_shared_with_static_runtimes \ |
9611 | old_archive_cmds \ |
9612 | old_archive_from_new_cmds \ |
9613 | predep_objects \ |
9614 | postdep_objects \ |
9615 | predeps \ |
9616 | postdeps \ |
9617 | compiler_lib_search_path \ |
9618 | archive_cmds \ |
9619 | archive_expsym_cmds \ |
9620 | postinstall_cmds \ |
9621 | postuninstall_cmds \ |
9622 | old_archive_from_expsyms_cmds \ |
9623 | allow_undefined_flag \ |
9624 | no_undefined_flag \ |
9625 | export_symbols_cmds \ |
9626 | hardcode_libdir_flag_spec \ |
9627 | hardcode_libdir_flag_spec_ld \ |
9628 | hardcode_libdir_separator \ |
9629 | hardcode_automatic \ |
9630 | module_cmds \ |
9631 | module_expsym_cmds \ |
9632 | lt_cv_prog_compiler_c_o \ |
9633 | exclude_expsyms \ |
9634 | include_expsyms; do |
9635 | |
9636 | case $var in |
9637 | old_archive_cmds | \ |
9638 | old_archive_from_new_cmds | \ |
9639 | archive_cmds | \ |
9640 | archive_expsym_cmds | \ |
9641 | module_cmds | \ |
9642 | module_expsym_cmds | \ |
9643 | old_archive_from_expsyms_cmds | \ |
9644 | export_symbols_cmds | \ |
9645 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
9646 | postinstall_cmds | postuninstall_cmds | \ |
9647 | old_postinstall_cmds | old_postuninstall_cmds | \ |
9648 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
9649 | # Double-quote double-evaled strings. |
9650 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
9651 | ;; |
9652 | *) |
9653 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
9654 | ;; |
9655 | esac |
9656 | done |
9657 | |
9658 | case $lt_echo in |
9659 | *'\$0 --fallback-echo"') |
9660 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
9661 | ;; |
9662 | esac |
9663 | |
9664 | cfgfile="${ofile}T" |
9665 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
9666 | $rm -f "$cfgfile" |
9667 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
9668 | echo "$as_me: creating $ofile" >&6;} |
9669 | |
9670 | cat <<__EOF__ >> "$cfgfile" |
9671 | #! $SHELL |
9672 | |
9673 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
9674 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
9675 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
9676 | # |
9677 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
9678 | # Free Software Foundation, Inc. |
9679 | # |
9680 | # This file is part of GNU Libtool: |
9681 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
9682 | # |
9683 | # This program is free software; you can redistribute it and/or modify |
9684 | # it under the terms of the GNU General Public License as published by |
9685 | # the Free Software Foundation; either version 2 of the License, or |
9686 | # (at your option) any later version. |
9687 | # |
9688 | # This program is distributed in the hope that it will be useful, but |
9689 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
9690 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
9691 | # General Public License for more details. |
9692 | # |
9693 | # You should have received a copy of the GNU General Public License |
9694 | # along with this program; if not, write to the Free Software |
9695 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
9696 | # |
9697 | # As a special exception to the GNU General Public License, if you |
9698 | # distribute this file as part of a program that contains a |
9699 | # configuration script generated by Autoconf, you may include it under |
9700 | # the same distribution terms that you use for the rest of that program. |
9701 | |
9702 | # A sed program that does not truncate output. |
9703 | SED=$lt_SED |
9704 | |
9705 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
9706 | Xsed="$SED -e 1s/^X//" |
9707 | |
9708 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
9709 | # if CDPATH is set. |
9710 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
9711 | |
9712 | # The names of the tagged configurations supported by this script. |
9713 | available_tags= |
9714 | |
9715 | # ### BEGIN LIBTOOL CONFIG |
9716 | |
9717 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
9718 | |
9719 | # Shell to use when invoking shell scripts. |
9720 | SHELL=$lt_SHELL |
9721 | |
9722 | # Whether or not to build shared libraries. |
9723 | build_libtool_libs=$enable_shared |
9724 | |
9725 | # Whether or not to build static libraries. |
9726 | build_old_libs=$enable_static |
9727 | |
9728 | # Whether or not to add -lc for building shared libraries. |
9729 | build_libtool_need_lc=$archive_cmds_need_lc |
9730 | |
9731 | # Whether or not to disallow shared libs when runtime libs are static |
9732 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
9733 | |
9734 | # Whether or not to optimize for fast installation. |
9735 | fast_install=$enable_fast_install |
9736 | |
9737 | # The host system. |
9738 | host_alias=$host_alias |
9739 | host=$host |
9740 | host_os=$host_os |
9741 | |
9742 | # The build system. |
9743 | build_alias=$build_alias |
9744 | build=$build |
9745 | build_os=$build_os |
9746 | |
9747 | # An echo program that does not interpret backslashes. |
9748 | echo=$lt_echo |
9749 | |
9750 | # The archiver. |
9751 | AR=$lt_AR |
9752 | AR_FLAGS=$lt_AR_FLAGS |
9753 | |
9754 | # A C compiler. |
9755 | LTCC=$lt_LTCC |
9756 | |
9757 | # LTCC compiler flags. |
9758 | LTCFLAGS=$lt_LTCFLAGS |
9759 | |
9760 | # A language-specific compiler. |
9761 | CC=$lt_compiler |
9762 | |
9763 | # Is the compiler the GNU C compiler? |
9764 | with_gcc=$GCC |
9765 | |
9766 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
9767 | gcc_ver=\`gcc -dumpversion\` |
9768 | |
9769 | # An ERE matcher. |
9770 | EGREP=$lt_EGREP |
9771 | |
9772 | # The linker used to build libraries. |
9773 | LD=$lt_LD |
9774 | |
9775 | # Whether we need hard or soft links. |
9776 | LN_S=$lt_LN_S |
9777 | |
9778 | # A BSD-compatible nm program. |
9779 | NM=$lt_NM |
9780 | |
9781 | # A symbol stripping program |
9782 | STRIP=$lt_STRIP |
9783 | |
9784 | # Used to examine libraries when file_magic_cmd begins "file" |
9785 | MAGIC_CMD=$MAGIC_CMD |
9786 | |
9787 | # Used on cygwin: DLL creation program. |
9788 | DLLTOOL="$DLLTOOL" |
9789 | |
9790 | # Used on cygwin: object dumper. |
9791 | OBJDUMP="$OBJDUMP" |
9792 | |
9793 | # Used on cygwin: assembler. |
9794 | AS="$AS" |
9795 | |
9796 | # The name of the directory that contains temporary libtool files. |
9797 | objdir=$objdir |
9798 | |
9799 | # How to create reloadable object files. |
9800 | reload_flag=$lt_reload_flag |
9801 | reload_cmds=$lt_reload_cmds |
9802 | |
9803 | # How to pass a linker flag through the compiler. |
9804 | wl=$lt_lt_prog_compiler_wl |
9805 | |
9806 | # Object file suffix (normally "o"). |
9807 | objext="$ac_objext" |
9808 | |
9809 | # Old archive suffix (normally "a"). |
9810 | libext="$libext" |
9811 | |
9812 | # Shared library suffix (normally ".so"). |
9813 | shrext_cmds='$shrext_cmds' |
9814 | |
9815 | # Executable file suffix (normally ""). |
9816 | exeext="$exeext" |
9817 | |
9818 | # Additional compiler flags for building library objects. |
9819 | pic_flag=$lt_lt_prog_compiler_pic |
9820 | pic_mode=$pic_mode |
9821 | |
9822 | # What is the maximum length of a command? |
9823 | max_cmd_len=$lt_cv_sys_max_cmd_len |
9824 | |
9825 | # Does compiler simultaneously support -c and -o options? |
9826 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
9827 | |
9828 | # Must we lock files when doing compilation? |
9829 | need_locks=$lt_need_locks |
9830 | |
9831 | # Do we need the lib prefix for modules? |
9832 | need_lib_prefix=$need_lib_prefix |
9833 | |
9834 | # Do we need a version for libraries? |
9835 | need_version=$need_version |
9836 | |
9837 | # Whether dlopen is supported. |
9838 | dlopen_support=$enable_dlopen |
9839 | |
9840 | # Whether dlopen of programs is supported. |
9841 | dlopen_self=$enable_dlopen_self |
9842 | |
9843 | # Whether dlopen of statically linked programs is supported. |
9844 | dlopen_self_static=$enable_dlopen_self_static |
9845 | |
9846 | # Compiler flag to prevent dynamic linking. |
9847 | link_static_flag=$lt_lt_prog_compiler_static |
9848 | |
9849 | # Compiler flag to turn off builtin functions. |
9850 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
9851 | |
9852 | # Compiler flag to allow reflexive dlopens. |
9853 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
9854 | |
9855 | # Compiler flag to generate shared objects directly from archives. |
9856 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
9857 | |
9858 | # Compiler flag to generate thread-safe objects. |
9859 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
9860 | |
9861 | # Library versioning type. |
9862 | version_type=$version_type |
9863 | |
9864 | # Format of library name prefix. |
9865 | libname_spec=$lt_libname_spec |
9866 | |
9867 | # List of archive names. First name is the real one, the rest are links. |
9868 | # The last name is the one that the linker finds with -lNAME. |
9869 | library_names_spec=$lt_library_names_spec |
9870 | |
9871 | # The coded name of the library, if different from the real name. |
9872 | soname_spec=$lt_soname_spec |
9873 | |
9874 | # Commands used to build and install an old-style archive. |
9875 | RANLIB=$lt_RANLIB |
9876 | old_archive_cmds=$lt_old_archive_cmds |
9877 | old_postinstall_cmds=$lt_old_postinstall_cmds |
9878 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
9879 | |
9880 | # Create an old-style archive from a shared archive. |
9881 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
9882 | |
9883 | # Create a temporary old-style archive to link instead of a shared archive. |
9884 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
9885 | |
9886 | # Commands used to build and install a shared archive. |
9887 | archive_cmds=$lt_archive_cmds |
9888 | archive_expsym_cmds=$lt_archive_expsym_cmds |
9889 | postinstall_cmds=$lt_postinstall_cmds |
9890 | postuninstall_cmds=$lt_postuninstall_cmds |
9891 | |
9892 | # Commands used to build a loadable module (assumed same as above if empty) |
9893 | module_cmds=$lt_module_cmds |
9894 | module_expsym_cmds=$lt_module_expsym_cmds |
9895 | |
9896 | # Commands to strip libraries. |
9897 | old_striplib=$lt_old_striplib |
9898 | striplib=$lt_striplib |
9899 | |
9900 | # Dependencies to place before the objects being linked to create a |
9901 | # shared library. |
9902 | predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
9903 | |
9904 | # Dependencies to place after the objects being linked to create a |
9905 | # shared library. |
9906 | postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
9907 | |
9908 | # Dependencies to place before the objects being linked to create a |
9909 | # shared library. |
9910 | predeps=$lt_predeps |
9911 | |
9912 | # Dependencies to place after the objects being linked to create a |
9913 | # shared library. |
9914 | postdeps=$lt_postdeps |
9915 | |
9916 | # The library search path used internally by the compiler when linking |
9917 | # a shared library. |
9918 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
9919 | |
9920 | # Method to check whether dependent libraries are shared objects. |
9921 | deplibs_check_method=$lt_deplibs_check_method |
9922 | |
9923 | # Command to use when deplibs_check_method == file_magic. |
9924 | file_magic_cmd=$lt_file_magic_cmd |
9925 | |
9926 | # Flag that allows shared libraries with undefined symbols to be built. |
9927 | allow_undefined_flag=$lt_allow_undefined_flag |
9928 | |
9929 | # Flag that forces no undefined symbols. |
9930 | no_undefined_flag=$lt_no_undefined_flag |
9931 | |
9932 | # Commands used to finish a libtool library installation in a directory. |
9933 | finish_cmds=$lt_finish_cmds |
9934 | |
9935 | # Same as above, but a single script fragment to be evaled but not shown. |
9936 | finish_eval=$lt_finish_eval |
9937 | |
9938 | # Take the output of nm and produce a listing of raw symbols and C names. |
9939 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
9940 | |
9941 | # Transform the output of nm in a proper C declaration |
9942 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
9943 | |
9944 | # Transform the output of nm in a C name address pair |
9945 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
9946 | |
9947 | # This is the shared library runtime path variable. |
9948 | runpath_var=$runpath_var |
9949 | |
9950 | # This is the shared library path variable. |
9951 | shlibpath_var=$shlibpath_var |
9952 | |
9953 | # Is shlibpath searched before the hard-coded library search path? |
9954 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
9955 | |
9956 | # How to hardcode a shared library path into an executable. |
9957 | hardcode_action=$hardcode_action |
9958 | |
9959 | # Whether we should hardcode library paths into libraries. |
9960 | hardcode_into_libs=$hardcode_into_libs |
9961 | |
9962 | # Flag to hardcode \$libdir into a binary during linking. |
9963 | # This must work even if \$libdir does not exist. |
9964 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
9965 | |
9966 | # If ld is used when linking, flag to hardcode \$libdir into |
9967 | # a binary during linking. This must work even if \$libdir does |
9968 | # not exist. |
9969 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
9970 | |
9971 | # Whether we need a single -rpath flag with a separated argument. |
9972 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
9973 | |
9974 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
9975 | # resulting binary. |
9976 | hardcode_direct=$hardcode_direct |
9977 | |
9978 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
9979 | # resulting binary. |
9980 | hardcode_minus_L=$hardcode_minus_L |
9981 | |
9982 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
9983 | # the resulting binary. |
9984 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
9985 | |
9986 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
9987 | # and all subsequent libraries and executables linked against it. |
9988 | hardcode_automatic=$hardcode_automatic |
9989 | |
9990 | # Variables whose values should be saved in libtool wrapper scripts and |
9991 | # restored at relink time. |
9992 | variables_saved_for_relink="$variables_saved_for_relink" |
9993 | |
9994 | # Whether libtool must link a program against all its dependency libraries. |
9995 | link_all_deplibs=$link_all_deplibs |
9996 | |
9997 | # Compile-time system search path for libraries |
9998 | 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"\` |
9999 | |
10000 | # Run-time system search path for libraries |
10001 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
10002 | |
10003 | # Fix the shell variable \$srcfile for the compiler. |
10004 | fix_srcfile_path="$fix_srcfile_path" |
10005 | |
10006 | # Set to yes if exported symbols are required. |
10007 | always_export_symbols=$always_export_symbols |
10008 | |
10009 | # The commands to list exported symbols. |
10010 | export_symbols_cmds=$lt_export_symbols_cmds |
10011 | |
10012 | # The commands to extract the exported symbol list from a shared archive. |
10013 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
10014 | |
10015 | # Symbols that should not be listed in the preloaded symbols. |
10016 | exclude_expsyms=$lt_exclude_expsyms |
10017 | |
10018 | # Symbols that must always be exported. |
10019 | include_expsyms=$lt_include_expsyms |
10020 | |
10021 | # ### END LIBTOOL CONFIG |
10022 | |
10023 | __EOF__ |
10024 | |
10025 | |
10026 | case $host_os in |
10027 | aix3*) |
10028 | cat <<\EOF >> "$cfgfile" |
10029 | |
10030 | # AIX sometimes has problems with the GCC collect2 program. For some |
10031 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
10032 | # vanish in a puff of smoke. |
10033 | if test "X${COLLECT_NAMES+set}" != Xset; then |
10034 | COLLECT_NAMES= |
10035 | export COLLECT_NAMES |
10036 | fi |
10037 | EOF |
10038 | ;; |
10039 | esac |
10040 | |
10041 | # We use sed instead of cat because bash on DJGPP gets confused if |
10042 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
10043 | # text mode, it properly converts lines to CR/LF. This bash problem |
10044 | # is reportedly fixed, but why not run on old versions too? |
10045 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
10046 | |
10047 | mv -f "$cfgfile" "$ofile" || \ |
10048 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
10049 | chmod +x "$ofile" |
10050 | |
10051 | else |
10052 | # If there is no Makefile yet, we rely on a make rule to execute |
10053 | # `config.status --recheck' to rerun these tests and create the |
10054 | # libtool script then. |
10055 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
10056 | if test -f "$ltmain_in"; then |
10057 | test -f Makefile && make "$ltmain" |
10058 | fi |
10059 | fi |
10060 | |
10061 | |
10062 | ac_ext=c |
10063 | ac_cpp='$CPP $CPPFLAGS' |
10064 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10065 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10066 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
10067 | |
10068 | CC="$lt_save_CC" |
10069 | |
10070 | |
10071 | # Check whether --with-tags or --without-tags was given. |
10072 | if test "${with_tags+set}" = set; then |
10073 | withval="$with_tags" |
10074 | tagnames="$withval" |
10075 | fi; |
10076 | |
10077 | if test -f "$ltmain" && test -n "$tagnames"; then |
10078 | if test ! -f "${ofile}"; then |
10079 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
10080 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
10081 | fi |
10082 | |
10083 | if test -z "$LTCC"; then |
10084 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
10085 | if test -z "$LTCC"; then |
10086 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
10087 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
10088 | else |
10089 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
10090 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
10091 | fi |
10092 | fi |
10093 | if test -z "$LTCFLAGS"; then |
10094 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
10095 | fi |
10096 | |
10097 | # Extract list of available tagged configurations in $ofile. |
10098 | # Note that this assumes the entire list is on one line. |
10099 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
10100 | |
10101 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
10102 | for tagname in $tagnames; do |
10103 | IFS="$lt_save_ifs" |
10104 | # Check whether tagname contains only valid characters |
10105 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
10106 | "") ;; |
10107 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
10108 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
10109 | { (exit 1); exit 1; }; } |
10110 | ;; |
10111 | esac |
10112 | |
10113 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
10114 | then |
10115 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
10116 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
10117 | { (exit 1); exit 1; }; } |
10118 | fi |
10119 | |
10120 | # Update the list of available tags. |
10121 | if test -n "$tagname"; then |
10122 | echo appending configuration tag \"$tagname\" to $ofile |
10123 | |
10124 | case $tagname in |
10125 | CXX) |
10126 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
10127 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
10128 | (test "X$CXX" != "Xg++"))) ; then |
10129 | ac_ext=cc |
10130 | ac_cpp='$CXXCPP $CPPFLAGS' |
10131 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10132 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10133 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10134 | |
10135 | |
10136 | |
10137 | |
10138 | archive_cmds_need_lc_CXX=no |
10139 | allow_undefined_flag_CXX= |
10140 | always_export_symbols_CXX=no |
10141 | archive_expsym_cmds_CXX= |
10142 | export_dynamic_flag_spec_CXX= |
10143 | hardcode_direct_CXX=no |
10144 | hardcode_libdir_flag_spec_CXX= |
10145 | hardcode_libdir_flag_spec_ld_CXX= |
10146 | hardcode_libdir_separator_CXX= |
10147 | hardcode_minus_L_CXX=no |
10148 | hardcode_shlibpath_var_CXX=unsupported |
10149 | hardcode_automatic_CXX=no |
10150 | module_cmds_CXX= |
10151 | module_expsym_cmds_CXX= |
10152 | link_all_deplibs_CXX=unknown |
10153 | old_archive_cmds_CXX=$old_archive_cmds |
10154 | no_undefined_flag_CXX= |
10155 | whole_archive_flag_spec_CXX= |
10156 | enable_shared_with_static_runtimes_CXX=no |
10157 | |
10158 | # Dependencies to place before and after the object being linked: |
10159 | predep_objects_CXX= |
10160 | postdep_objects_CXX= |
10161 | predeps_CXX= |
10162 | postdeps_CXX= |
10163 | compiler_lib_search_path_CXX= |
10164 | |
10165 | # Source file extension for C++ test sources. |
10166 | ac_ext=cpp |
10167 | |
10168 | # Object file extension for compiled C++ test sources. |
10169 | objext=o |
10170 | objext_CXX=$objext |
10171 | |
10172 | # Code to be used in simple compile tests |
10173 | lt_simple_compile_test_code="int some_variable = 0;\n" |
10174 | |
10175 | # Code to be used in simple link tests |
10176 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
10177 | |
10178 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
10179 | |
10180 | # If no C compiler was specified, use CC. |
10181 | LTCC=${LTCC-"$CC"} |
10182 | |
10183 | # If no C compiler flags were specified, use CFLAGS. |
10184 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
10185 | |
10186 | # Allow CC to be a program name with arguments. |
10187 | compiler=$CC |
10188 | |
10189 | |
10190 | # save warnings/boilerplate of simple test code |
10191 | ac_outfile=conftest.$ac_objext |
10192 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
10193 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10194 | _lt_compiler_boilerplate=`cat conftest.err` |
10195 | $rm conftest* |
10196 | |
10197 | ac_outfile=conftest.$ac_objext |
10198 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
10199 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10200 | _lt_linker_boilerplate=`cat conftest.err` |
10201 | $rm conftest* |
10202 | |
10203 | |
10204 | # Allow CC to be a program name with arguments. |
10205 | lt_save_CC=$CC |
10206 | lt_save_LD=$LD |
10207 | lt_save_GCC=$GCC |
10208 | GCC=$GXX |
10209 | lt_save_with_gnu_ld=$with_gnu_ld |
10210 | lt_save_path_LD=$lt_cv_path_LD |
10211 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
10212 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
10213 | else |
10214 | $as_unset lt_cv_prog_gnu_ld |
10215 | fi |
10216 | if test -n "${lt_cv_path_LDCXX+set}"; then |
10217 | lt_cv_path_LD=$lt_cv_path_LDCXX |
10218 | else |
10219 | $as_unset lt_cv_path_LD |
10220 | fi |
10221 | test -z "${LDCXX+set}" || LD=$LDCXX |
10222 | CC=${CXX-"c++"} |
10223 | compiler=$CC |
10224 | compiler_CXX=$CC |
10225 | for cc_temp in $compiler""; do |
10226 | case $cc_temp in |
10227 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
10228 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
10229 | \-*) ;; |
10230 | *) break;; |
10231 | esac |
10232 | done |
10233 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
10234 | |
10235 | |
10236 | # We don't want -fno-exception wen compiling C++ code, so set the |
10237 | # no_builtin_flag separately |
10238 | if test "$GXX" = yes; then |
10239 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
10240 | else |
10241 | lt_prog_compiler_no_builtin_flag_CXX= |
10242 | fi |
10243 | |
10244 | if test "$GXX" = yes; then |
10245 | # Set up default GNU C++ configuration |
10246 | |
10247 | |
10248 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
10249 | if test "${with_gnu_ld+set}" = set; then |
10250 | withval="$with_gnu_ld" |
10251 | test "$withval" = no || with_gnu_ld=yes |
10252 | else |
10253 | with_gnu_ld=no |
10254 | fi; |
10255 | ac_prog=ld |
10256 | if test "$GCC" = yes; then |
10257 | # Check if gcc -print-prog-name=ld gives a path. |
10258 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
10259 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
10260 | case $host in |
10261 | *-*-mingw*) |
10262 | # gcc leaves a trailing carriage return which upsets mingw |
10263 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
10264 | *) |
10265 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
10266 | esac |
10267 | case $ac_prog in |
10268 | # Accept absolute paths. |
10269 | [\\/]* | ?:[\\/]*) |
10270 | re_direlt='/[^/][^/]*/\.\./' |
10271 | # Canonicalize the pathname of ld |
10272 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
10273 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
10274 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
10275 | done |
10276 | test -z "$LD" && LD="$ac_prog" |
10277 | ;; |
10278 | "") |
10279 | # If it fails, then pretend we aren't using GCC. |
10280 | ac_prog=ld |
10281 | ;; |
10282 | *) |
10283 | # If it is relative, then search for the first ld in PATH. |
10284 | with_gnu_ld=unknown |
10285 | ;; |
10286 | esac |
10287 | elif test "$with_gnu_ld" = yes; then |
10288 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
10289 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
10290 | else |
10291 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
10292 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
10293 | fi |
10294 | if test "${lt_cv_path_LD+set}" = set; then |
10295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10296 | else |
10297 | if test -z "$LD"; then |
10298 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
10299 | for ac_dir in $PATH; do |
10300 | IFS="$lt_save_ifs" |
10301 | test -z "$ac_dir" && ac_dir=. |
10302 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
10303 | lt_cv_path_LD="$ac_dir/$ac_prog" |
10304 | # Check to see if the program is GNU ld. I'd rather use --version, |
10305 | # but apparently some variants of GNU ld only accept -v. |
10306 | # Break only if it was the GNU/non-GNU ld that we prefer. |
10307 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
10308 | *GNU* | *'with BFD'*) |
10309 | test "$with_gnu_ld" != no && break |
10310 | ;; |
10311 | *) |
10312 | test "$with_gnu_ld" != yes && break |
10313 | ;; |
10314 | esac |
10315 | fi |
10316 | done |
10317 | IFS="$lt_save_ifs" |
10318 | else |
10319 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
10320 | fi |
10321 | fi |
10322 | |
10323 | LD="$lt_cv_path_LD" |
10324 | if test -n "$LD"; then |
10325 | echo "$as_me:$LINENO: result: $LD" >&5 |
10326 | echo "${ECHO_T}$LD" >&6 |
10327 | else |
10328 | echo "$as_me:$LINENO: result: no" >&5 |
10329 | echo "${ECHO_T}no" >&6 |
10330 | fi |
10331 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
10332 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
10333 | { (exit 1); exit 1; }; } |
10334 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
10335 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
10336 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
10337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10338 | else |
10339 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
10340 | case `$LD -v 2>&1 </dev/null` in |
10341 | *GNU* | *'with BFD'*) |
10342 | lt_cv_prog_gnu_ld=yes |
10343 | ;; |
10344 | *) |
10345 | lt_cv_prog_gnu_ld=no |
10346 | ;; |
10347 | esac |
10348 | fi |
10349 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
10350 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
10351 | with_gnu_ld=$lt_cv_prog_gnu_ld |
10352 | |
10353 | |
10354 | |
10355 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
10356 | # archiving commands below assume that GNU ld is being used. |
10357 | if test "$with_gnu_ld" = yes; then |
10358 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10359 | 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' |
10360 | |
10361 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
10362 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10363 | |
10364 | # If archive_cmds runs LD, not CC, wlarc should be empty |
10365 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
10366 | # investigate it a little bit more. (MM) |
10367 | wlarc='${wl}' |
10368 | |
10369 | # ancient GNU ld didn't support --whole-archive et. al. |
10370 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
10371 | grep 'no-whole-archive' > /dev/null; then |
10372 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
10373 | else |
10374 | whole_archive_flag_spec_CXX= |
10375 | fi |
10376 | else |
10377 | with_gnu_ld=no |
10378 | wlarc= |
10379 | |
10380 | # A generic and very simple default shared library creation |
10381 | # command for GNU C++ for the case where it uses the native |
10382 | # linker, instead of GNU ld. If possible, this setting should |
10383 | # overridden to take advantage of the native linker features on |
10384 | # the platform it is being used on. |
10385 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
10386 | fi |
10387 | |
10388 | # Commands to make compiler produce verbose output that lists |
10389 | # what "hidden" libraries, object files and flags are used when |
10390 | # linking a shared library. |
10391 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
10392 | |
10393 | else |
10394 | GXX=no |
10395 | with_gnu_ld=no |
10396 | wlarc= |
10397 | fi |
10398 | |
10399 | # PORTME: fill in a description of your system's C++ link characteristics |
10400 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
10401 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
10402 | ld_shlibs_CXX=yes |
10403 | case $host_os in |
10404 | aix3*) |
10405 | # FIXME: insert proper C++ library support |
10406 | ld_shlibs_CXX=no |
10407 | ;; |
10408 | aix4* | aix5*) |
10409 | if test "$host_cpu" = ia64; then |
10410 | # On IA64, the linker does run time linking by default, so we don't |
10411 | # have to do anything special. |
10412 | aix_use_runtimelinking=no |
10413 | exp_sym_flag='-Bexport' |
10414 | no_entry_flag="" |
10415 | else |
10416 | aix_use_runtimelinking=no |
10417 | |
10418 | # Test if we are trying to use run time linking or normal |
10419 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
10420 | # need to do runtime linking. |
10421 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
10422 | for ld_flag in $LDFLAGS; do |
10423 | case $ld_flag in |
10424 | *-brtl*) |
10425 | aix_use_runtimelinking=yes |
10426 | break |
10427 | ;; |
10428 | esac |
10429 | done |
10430 | ;; |
10431 | esac |
10432 | |
10433 | exp_sym_flag='-bexport' |
10434 | no_entry_flag='-bnoentry' |
10435 | fi |
10436 | |
10437 | # When large executables or shared objects are built, AIX ld can |
10438 | # have problems creating the table of contents. If linking a library |
10439 | # or program results in "error TOC overflow" add -mminimal-toc to |
10440 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
10441 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
10442 | |
10443 | archive_cmds_CXX='' |
10444 | hardcode_direct_CXX=yes |
10445 | hardcode_libdir_separator_CXX=':' |
10446 | link_all_deplibs_CXX=yes |
10447 | |
10448 | if test "$GXX" = yes; then |
10449 | case $host_os in aix4.[012]|aix4.[012].*) |
10450 | # We only want to do this on AIX 4.2 and lower, the check |
10451 | # below for broken collect2 doesn't work under 4.3+ |
10452 | collect2name=`${CC} -print-prog-name=collect2` |
10453 | if test -f "$collect2name" && \ |
10454 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
10455 | then |
10456 | # We have reworked collect2 |
10457 | hardcode_direct_CXX=yes |
10458 | else |
10459 | # We have old collect2 |
10460 | hardcode_direct_CXX=unsupported |
10461 | # It fails to find uninstalled libraries when the uninstalled |
10462 | # path is not listed in the libpath. Setting hardcode_minus_L |
10463 | # to unsupported forces relinking |
10464 | hardcode_minus_L_CXX=yes |
10465 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
10466 | hardcode_libdir_separator_CXX= |
10467 | fi |
10468 | ;; |
10469 | esac |
10470 | shared_flag='-shared' |
10471 | if test "$aix_use_runtimelinking" = yes; then |
10472 | shared_flag="$shared_flag "'${wl}-G' |
10473 | fi |
10474 | else |
10475 | # not using gcc |
10476 | if test "$host_cpu" = ia64; then |
10477 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
10478 | # chokes on -Wl,-G. The following line is correct: |
10479 | shared_flag='-G' |
10480 | else |
10481 | if test "$aix_use_runtimelinking" = yes; then |
10482 | shared_flag='${wl}-G' |
10483 | else |
10484 | shared_flag='${wl}-bM:SRE' |
10485 | fi |
10486 | fi |
10487 | fi |
10488 | |
10489 | # It seems that -bexpall does not export symbols beginning with |
10490 | # underscore (_), so it is better to generate a list of symbols to export. |
10491 | always_export_symbols_CXX=yes |
10492 | if test "$aix_use_runtimelinking" = yes; then |
10493 | # Warning - without using the other runtime loading flags (-brtl), |
10494 | # -berok will link without error, but may produce a broken library. |
10495 | allow_undefined_flag_CXX='-berok' |
10496 | # Determine the default libpath from the value encoded in an empty executable. |
10497 | cat >conftest.$ac_ext <<_ACEOF |
10498 | /* confdefs.h. */ |
10499 | _ACEOF |
10500 | cat confdefs.h >>conftest.$ac_ext |
10501 | cat >>conftest.$ac_ext <<_ACEOF |
10502 | /* end confdefs.h. */ |
10503 | |
10504 | int |
10505 | main () |
10506 | { |
10507 | |
10508 | ; |
10509 | return 0; |
10510 | } |
10511 | _ACEOF |
10512 | rm -f conftest.$ac_objext conftest$ac_exeext |
10513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10514 | (eval $ac_link) 2>conftest.er1 |
10515 | ac_status=$? |
10516 | grep -v '^ *+' conftest.er1 >conftest.err |
10517 | rm -f conftest.er1 |
10518 | cat conftest.err >&5 |
10519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10520 | (exit $ac_status); } && |
10521 | { ac_try='test -z "$ac_cxx_werror_flag" |
10522 | || test ! -s conftest.err' |
10523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10524 | (eval $ac_try) 2>&5 |
10525 | ac_status=$? |
10526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10527 | (exit $ac_status); }; } && |
10528 | { ac_try='test -s conftest$ac_exeext' |
10529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10530 | (eval $ac_try) 2>&5 |
10531 | ac_status=$? |
10532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10533 | (exit $ac_status); }; }; then |
10534 | |
10535 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
10536 | }'` |
10537 | # Check for a 64-bit object if we didn't find anything. |
10538 | 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; } |
10539 | }'`; fi |
10540 | else |
10541 | echo "$as_me: failed program was:" >&5 |
10542 | sed 's/^/| /' conftest.$ac_ext >&5 |
10543 | |
10544 | fi |
10545 | rm -f conftest.err conftest.$ac_objext \ |
10546 | conftest$ac_exeext conftest.$ac_ext |
10547 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10548 | |
10549 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
10550 | |
10551 | 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" |
10552 | else |
10553 | if test "$host_cpu" = ia64; then |
10554 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
10555 | allow_undefined_flag_CXX="-z nodefs" |
10556 | 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" |
10557 | else |
10558 | # Determine the default libpath from the value encoded in an empty executable. |
10559 | cat >conftest.$ac_ext <<_ACEOF |
10560 | /* confdefs.h. */ |
10561 | _ACEOF |
10562 | cat confdefs.h >>conftest.$ac_ext |
10563 | cat >>conftest.$ac_ext <<_ACEOF |
10564 | /* end confdefs.h. */ |
10565 | |
10566 | int |
10567 | main () |
10568 | { |
10569 | |
10570 | ; |
10571 | return 0; |
10572 | } |
10573 | _ACEOF |
10574 | rm -f conftest.$ac_objext conftest$ac_exeext |
10575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10576 | (eval $ac_link) 2>conftest.er1 |
10577 | ac_status=$? |
10578 | grep -v '^ *+' conftest.er1 >conftest.err |
10579 | rm -f conftest.er1 |
10580 | cat conftest.err >&5 |
10581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10582 | (exit $ac_status); } && |
10583 | { ac_try='test -z "$ac_cxx_werror_flag" |
10584 | || test ! -s conftest.err' |
10585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10586 | (eval $ac_try) 2>&5 |
10587 | ac_status=$? |
10588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10589 | (exit $ac_status); }; } && |
10590 | { ac_try='test -s conftest$ac_exeext' |
10591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10592 | (eval $ac_try) 2>&5 |
10593 | ac_status=$? |
10594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10595 | (exit $ac_status); }; }; then |
10596 | |
10597 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
10598 | }'` |
10599 | # Check for a 64-bit object if we didn't find anything. |
10600 | 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; } |
10601 | }'`; fi |
10602 | else |
10603 | echo "$as_me: failed program was:" >&5 |
10604 | sed 's/^/| /' conftest.$ac_ext >&5 |
10605 | |
10606 | fi |
10607 | rm -f conftest.err conftest.$ac_objext \ |
10608 | conftest$ac_exeext conftest.$ac_ext |
10609 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10610 | |
10611 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
10612 | # Warning - without using the other run time loading flags, |
10613 | # -berok will link without error, but may produce a broken library. |
10614 | no_undefined_flag_CXX=' ${wl}-bernotok' |
10615 | allow_undefined_flag_CXX=' ${wl}-berok' |
10616 | # Exported symbols can be pulled into shared objects from archives |
10617 | whole_archive_flag_spec_CXX='$convenience' |
10618 | archive_cmds_need_lc_CXX=yes |
10619 | # This is similar to how AIX traditionally builds its shared libraries. |
10620 | 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' |
10621 | fi |
10622 | fi |
10623 | ;; |
10624 | |
10625 | beos*) |
10626 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
10627 | allow_undefined_flag_CXX=unsupported |
10628 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
10629 | # support --undefined. This deserves some investigation. FIXME |
10630 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10631 | else |
10632 | ld_shlibs_CXX=no |
10633 | fi |
10634 | ;; |
10635 | |
10636 | chorus*) |
10637 | case $cc_basename in |
10638 | *) |
10639 | # FIXME: insert proper C++ library support |
10640 | ld_shlibs_CXX=no |
10641 | ;; |
10642 | esac |
10643 | ;; |
10644 | |
10645 | cygwin* | mingw* | pw32*) |
10646 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
10647 | # as there is no search path for DLLs. |
10648 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
10649 | allow_undefined_flag_CXX=unsupported |
10650 | always_export_symbols_CXX=no |
10651 | enable_shared_with_static_runtimes_CXX=yes |
10652 | |
10653 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
10654 | 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' |
10655 | # If the export-symbols file already is a .def file (1st line |
10656 | # is EXPORTS), use it as is; otherwise, prepend... |
10657 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
10658 | cp $export_symbols $output_objdir/$soname.def; |
10659 | else |
10660 | echo EXPORTS > $output_objdir/$soname.def; |
10661 | cat $export_symbols >> $output_objdir/$soname.def; |
10662 | fi~ |
10663 | $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' |
10664 | else |
10665 | ld_shlibs_CXX=no |
10666 | fi |
10667 | ;; |
10668 | darwin* | rhapsody*) |
10669 | case $host_os in |
10670 | rhapsody* | darwin1.[012]) |
10671 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
10672 | ;; |
10673 | *) # Darwin 1.3 on |
10674 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
10675 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
10676 | else |
10677 | case ${MACOSX_DEPLOYMENT_TARGET} in |
10678 | 10.[012]) |
10679 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
10680 | ;; |
10681 | 10.*) |
10682 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
10683 | ;; |
10684 | esac |
10685 | fi |
10686 | ;; |
10687 | esac |
10688 | archive_cmds_need_lc_CXX=no |
10689 | hardcode_direct_CXX=no |
10690 | hardcode_automatic_CXX=yes |
10691 | hardcode_shlibpath_var_CXX=unsupported |
10692 | whole_archive_flag_spec_CXX='' |
10693 | link_all_deplibs_CXX=yes |
10694 | |
10695 | if test "$GXX" = yes ; then |
10696 | lt_int_apple_cc_single_mod=no |
10697 | output_verbose_link_cmd='echo' |
10698 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
10699 | lt_int_apple_cc_single_mod=yes |
10700 | fi |
10701 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
10702 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
10703 | else |
10704 | 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' |
10705 | fi |
10706 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
10707 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
10708 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
10709 | 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}' |
10710 | else |
10711 | 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}' |
10712 | fi |
10713 | 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}' |
10714 | else |
10715 | case $cc_basename in |
10716 | xlc*) |
10717 | output_verbose_link_cmd='echo' |
10718 | 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' |
10719 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
10720 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
10721 | 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}' |
10722 | 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}' |
10723 | ;; |
10724 | *) |
10725 | ld_shlibs_CXX=no |
10726 | ;; |
10727 | esac |
10728 | fi |
10729 | ;; |
10730 | |
10731 | dgux*) |
10732 | case $cc_basename in |
10733 | ec++*) |
10734 | # FIXME: insert proper C++ library support |
10735 | ld_shlibs_CXX=no |
10736 | ;; |
10737 | ghcx*) |
10738 | # Green Hills C++ Compiler |
10739 | # FIXME: insert proper C++ library support |
10740 | ld_shlibs_CXX=no |
10741 | ;; |
10742 | *) |
10743 | # FIXME: insert proper C++ library support |
10744 | ld_shlibs_CXX=no |
10745 | ;; |
10746 | esac |
10747 | ;; |
10748 | freebsd[12]*) |
10749 | # C++ shared libraries reported to be fairly broken before switch to ELF |
10750 | ld_shlibs_CXX=no |
10751 | ;; |
10752 | freebsd-elf*) |
10753 | archive_cmds_need_lc_CXX=no |
10754 | ;; |
10755 | freebsd* | kfreebsd*-gnu | dragonfly*) |
10756 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
10757 | # conventions |
10758 | ld_shlibs_CXX=yes |
10759 | ;; |
10760 | gnu*) |
10761 | ;; |
10762 | hpux9*) |
10763 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
10764 | hardcode_libdir_separator_CXX=: |
10765 | export_dynamic_flag_spec_CXX='${wl}-E' |
10766 | hardcode_direct_CXX=yes |
10767 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
10768 | # but as the default |
10769 | # location of the library. |
10770 | |
10771 | case $cc_basename in |
10772 | CC*) |
10773 | # FIXME: insert proper C++ library support |
10774 | ld_shlibs_CXX=no |
10775 | ;; |
10776 | aCC*) |
10777 | 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' |
10778 | # Commands to make compiler produce verbose output that lists |
10779 | # what "hidden" libraries, object files and flags are used when |
10780 | # linking a shared library. |
10781 | # |
10782 | # There doesn't appear to be a way to prevent this compiler from |
10783 | # explicitly linking system object files so we need to strip them |
10784 | # from the output so that they don't get included in the library |
10785 | # dependencies. |
10786 | 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' |
10787 | ;; |
10788 | *) |
10789 | if test "$GXX" = yes; then |
10790 | 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' |
10791 | else |
10792 | # FIXME: insert proper C++ library support |
10793 | ld_shlibs_CXX=no |
10794 | fi |
10795 | ;; |
10796 | esac |
10797 | ;; |
10798 | hpux10*|hpux11*) |
10799 | if test $with_gnu_ld = no; then |
10800 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
10801 | hardcode_libdir_separator_CXX=: |
10802 | |
10803 | case $host_cpu in |
10804 | hppa*64*|ia64*) |
10805 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
10806 | ;; |
10807 | *) |
10808 | export_dynamic_flag_spec_CXX='${wl}-E' |
10809 | ;; |
10810 | esac |
10811 | fi |
10812 | case $host_cpu in |
10813 | hppa*64*|ia64*) |
10814 | hardcode_direct_CXX=no |
10815 | hardcode_shlibpath_var_CXX=no |
10816 | ;; |
10817 | *) |
10818 | hardcode_direct_CXX=yes |
10819 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
10820 | # but as the default |
10821 | # location of the library. |
10822 | ;; |
10823 | esac |
10824 | |
10825 | case $cc_basename in |
10826 | CC*) |
10827 | # FIXME: insert proper C++ library support |
10828 | ld_shlibs_CXX=no |
10829 | ;; |
10830 | aCC*) |
10831 | case $host_cpu in |
10832 | hppa*64*) |
10833 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10834 | ;; |
10835 | ia64*) |
10836 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10837 | ;; |
10838 | *) |
10839 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10840 | ;; |
10841 | esac |
10842 | # Commands to make compiler produce verbose output that lists |
10843 | # what "hidden" libraries, object files and flags are used when |
10844 | # linking a shared library. |
10845 | # |
10846 | # There doesn't appear to be a way to prevent this compiler from |
10847 | # explicitly linking system object files so we need to strip them |
10848 | # from the output so that they don't get included in the library |
10849 | # dependencies. |
10850 | 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' |
10851 | ;; |
10852 | *) |
10853 | if test "$GXX" = yes; then |
10854 | if test $with_gnu_ld = no; then |
10855 | case $host_cpu in |
10856 | hppa*64*) |
10857 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10858 | ;; |
10859 | ia64*) |
10860 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10861 | ;; |
10862 | *) |
10863 | 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' |
10864 | ;; |
10865 | esac |
10866 | fi |
10867 | else |
10868 | # FIXME: insert proper C++ library support |
10869 | ld_shlibs_CXX=no |
10870 | fi |
10871 | ;; |
10872 | esac |
10873 | ;; |
10874 | interix3*) |
10875 | hardcode_direct_CXX=no |
10876 | hardcode_shlibpath_var_CXX=no |
10877 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10878 | export_dynamic_flag_spec_CXX='${wl}-E' |
10879 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
10880 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
10881 | # default) and relocated if they conflict, which is a slow very memory |
10882 | # consuming and fragmenting process. To avoid this, we pick a random, |
10883 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
10884 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
10885 | 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' |
10886 | 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' |
10887 | ;; |
10888 | irix5* | irix6*) |
10889 | case $cc_basename in |
10890 | CC*) |
10891 | # SGI C++ |
10892 | 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' |
10893 | |
10894 | # Archives containing C++ object files must be created using |
10895 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
10896 | # necessary to make sure instantiated templates are included |
10897 | # in the archive. |
10898 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
10899 | ;; |
10900 | *) |
10901 | if test "$GXX" = yes; then |
10902 | if test "$with_gnu_ld" = no; then |
10903 | 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' |
10904 | else |
10905 | 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' |
10906 | fi |
10907 | fi |
10908 | link_all_deplibs_CXX=yes |
10909 | ;; |
10910 | esac |
10911 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
10912 | hardcode_libdir_separator_CXX=: |
10913 | ;; |
10914 | linux*) |
10915 | case $cc_basename in |
10916 | KCC*) |
10917 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
10918 | |
10919 | # KCC will only create a shared library if the output file |
10920 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
10921 | # to its proper name (with version) after linking. |
10922 | 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' |
10923 | 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' |
10924 | # Commands to make compiler produce verbose output that lists |
10925 | # what "hidden" libraries, object files and flags are used when |
10926 | # linking a shared library. |
10927 | # |
10928 | # There doesn't appear to be a way to prevent this compiler from |
10929 | # explicitly linking system object files so we need to strip them |
10930 | # from the output so that they don't get included in the library |
10931 | # dependencies. |
10932 | 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' |
10933 | |
10934 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
10935 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10936 | |
10937 | # Archives containing C++ object files must be created using |
10938 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
10939 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
10940 | ;; |
10941 | icpc*) |
10942 | # Intel C++ |
10943 | with_gnu_ld=yes |
10944 | # version 8.0 and above of icpc choke on multiply defined symbols |
10945 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
10946 | # earlier do not add the objects themselves. |
10947 | case `$CC -V 2>&1` in |
10948 | *"Version 7."*) |
10949 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10950 | 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' |
10951 | ;; |
10952 | *) # Version 8.0 or newer |
10953 | tmp_idyn= |
10954 | case $host_cpu in |
10955 | ia64*) tmp_idyn=' -i_dynamic';; |
10956 | esac |
10957 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10958 | 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' |
10959 | ;; |
10960 | esac |
10961 | archive_cmds_need_lc_CXX=no |
10962 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10963 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10964 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
10965 | ;; |
10966 | pgCC*) |
10967 | # Portland Group C++ compiler |
10968 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
10969 | 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' |
10970 | |
10971 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
10972 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10973 | 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' |
10974 | ;; |
10975 | cxx*) |
10976 | # Compaq C++ |
10977 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10978 | 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' |
10979 | |
10980 | runpath_var=LD_RUN_PATH |
10981 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
10982 | hardcode_libdir_separator_CXX=: |
10983 | |
10984 | # Commands to make compiler produce verbose output that lists |
10985 | # what "hidden" libraries, object files and flags are used when |
10986 | # linking a shared library. |
10987 | # |
10988 | # There doesn't appear to be a way to prevent this compiler from |
10989 | # explicitly linking system object files so we need to strip them |
10990 | # from the output so that they don't get included in the library |
10991 | # dependencies. |
10992 | 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' |
10993 | ;; |
10994 | esac |
10995 | ;; |
10996 | lynxos*) |
10997 | # FIXME: insert proper C++ library support |
10998 | ld_shlibs_CXX=no |
10999 | ;; |
11000 | m88k*) |
11001 | # FIXME: insert proper C++ library support |
11002 | ld_shlibs_CXX=no |
11003 | ;; |
11004 | mvs*) |
11005 | case $cc_basename in |
11006 | cxx*) |
11007 | # FIXME: insert proper C++ library support |
11008 | ld_shlibs_CXX=no |
11009 | ;; |
11010 | *) |
11011 | # FIXME: insert proper C++ library support |
11012 | ld_shlibs_CXX=no |
11013 | ;; |
11014 | esac |
11015 | ;; |
11016 | netbsd*) |
11017 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
11018 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
11019 | wlarc= |
11020 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11021 | hardcode_direct_CXX=yes |
11022 | hardcode_shlibpath_var_CXX=no |
11023 | fi |
11024 | # Workaround some broken pre-1.5 toolchains |
11025 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
11026 | ;; |
11027 | openbsd2*) |
11028 | # C++ shared libraries are fairly broken |
11029 | ld_shlibs_CXX=no |
11030 | ;; |
11031 | openbsd*) |
11032 | hardcode_direct_CXX=yes |
11033 | hardcode_shlibpath_var_CXX=no |
11034 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
11035 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11036 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
11037 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
11038 | export_dynamic_flag_spec_CXX='${wl}-E' |
11039 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
11040 | fi |
11041 | output_verbose_link_cmd='echo' |
11042 | ;; |
11043 | osf3*) |
11044 | case $cc_basename in |
11045 | KCC*) |
11046 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11047 | |
11048 | # KCC will only create a shared library if the output file |
11049 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11050 | # to its proper name (with version) after linking. |
11051 | 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' |
11052 | |
11053 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11054 | hardcode_libdir_separator_CXX=: |
11055 | |
11056 | # Archives containing C++ object files must be created using |
11057 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11058 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11059 | |
11060 | ;; |
11061 | RCC*) |
11062 | # Rational C++ 2.4.1 |
11063 | # FIXME: insert proper C++ library support |
11064 | ld_shlibs_CXX=no |
11065 | ;; |
11066 | cxx*) |
11067 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11068 | 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' |
11069 | |
11070 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11071 | hardcode_libdir_separator_CXX=: |
11072 | |
11073 | # Commands to make compiler produce verbose output that lists |
11074 | # what "hidden" libraries, object files and flags are used when |
11075 | # linking a shared library. |
11076 | # |
11077 | # There doesn't appear to be a way to prevent this compiler from |
11078 | # explicitly linking system object files so we need to strip them |
11079 | # from the output so that they don't get included in the library |
11080 | # dependencies. |
11081 | 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' |
11082 | ;; |
11083 | *) |
11084 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11085 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11086 | 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' |
11087 | |
11088 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11089 | hardcode_libdir_separator_CXX=: |
11090 | |
11091 | # Commands to make compiler produce verbose output that lists |
11092 | # what "hidden" libraries, object files and flags are used when |
11093 | # linking a shared library. |
11094 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11095 | |
11096 | else |
11097 | # FIXME: insert proper C++ library support |
11098 | ld_shlibs_CXX=no |
11099 | fi |
11100 | ;; |
11101 | esac |
11102 | ;; |
11103 | osf4* | osf5*) |
11104 | case $cc_basename in |
11105 | KCC*) |
11106 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11107 | |
11108 | # KCC will only create a shared library if the output file |
11109 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11110 | # to its proper name (with version) after linking. |
11111 | 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' |
11112 | |
11113 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11114 | hardcode_libdir_separator_CXX=: |
11115 | |
11116 | # Archives containing C++ object files must be created using |
11117 | # the KAI C++ compiler. |
11118 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
11119 | ;; |
11120 | RCC*) |
11121 | # Rational C++ 2.4.1 |
11122 | # FIXME: insert proper C++ library support |
11123 | ld_shlibs_CXX=no |
11124 | ;; |
11125 | cxx*) |
11126 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
11127 | 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' |
11128 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
11129 | echo "-hidden">> $lib.exp~ |
11130 | $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~ |
11131 | $rm $lib.exp' |
11132 | |
11133 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11134 | hardcode_libdir_separator_CXX=: |
11135 | |
11136 | # Commands to make compiler produce verbose output that lists |
11137 | # what "hidden" libraries, object files and flags are used when |
11138 | # linking a shared library. |
11139 | # |
11140 | # There doesn't appear to be a way to prevent this compiler from |
11141 | # explicitly linking system object files so we need to strip them |
11142 | # from the output so that they don't get included in the library |
11143 | # dependencies. |
11144 | 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' |
11145 | ;; |
11146 | *) |
11147 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11148 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11149 | 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' |
11150 | |
11151 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11152 | hardcode_libdir_separator_CXX=: |
11153 | |
11154 | # Commands to make compiler produce verbose output that lists |
11155 | # what "hidden" libraries, object files and flags are used when |
11156 | # linking a shared library. |
11157 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11158 | |
11159 | else |
11160 | # FIXME: insert proper C++ library support |
11161 | ld_shlibs_CXX=no |
11162 | fi |
11163 | ;; |
11164 | esac |
11165 | ;; |
11166 | psos*) |
11167 | # FIXME: insert proper C++ library support |
11168 | ld_shlibs_CXX=no |
11169 | ;; |
11170 | sunos4*) |
11171 | case $cc_basename in |
11172 | CC*) |
11173 | # Sun C++ 4.x |
11174 | # FIXME: insert proper C++ library support |
11175 | ld_shlibs_CXX=no |
11176 | ;; |
11177 | lcc*) |
11178 | # Lucid |
11179 | # FIXME: insert proper C++ library support |
11180 | ld_shlibs_CXX=no |
11181 | ;; |
11182 | *) |
11183 | # FIXME: insert proper C++ library support |
11184 | ld_shlibs_CXX=no |
11185 | ;; |
11186 | esac |
11187 | ;; |
11188 | solaris*) |
11189 | case $cc_basename in |
11190 | CC*) |
11191 | # Sun C++ 4.2, 5.x and Centerline C++ |
11192 | archive_cmds_need_lc_CXX=yes |
11193 | no_undefined_flag_CXX=' -zdefs' |
11194 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11195 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11196 | $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' |
11197 | |
11198 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11199 | hardcode_shlibpath_var_CXX=no |
11200 | case $host_os in |
11201 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
11202 | *) |
11203 | # The C++ compiler is used as linker so we must use $wl |
11204 | # flag to pass the commands to the underlying system |
11205 | # linker. We must also pass each convience library through |
11206 | # to the system linker between allextract/defaultextract. |
11207 | # The C++ compiler will combine linker options so we |
11208 | # cannot just pass the convience library names through |
11209 | # without $wl. |
11210 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
11211 | 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' |
11212 | ;; |
11213 | esac |
11214 | link_all_deplibs_CXX=yes |
11215 | |
11216 | output_verbose_link_cmd='echo' |
11217 | |
11218 | # Archives containing C++ object files must be created using |
11219 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
11220 | # necessary to make sure instantiated templates are included |
11221 | # in the archive. |
11222 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
11223 | ;; |
11224 | gcx*) |
11225 | # Green Hills C++ Compiler |
11226 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11227 | |
11228 | # The C++ compiler must be used to create the archive. |
11229 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
11230 | ;; |
11231 | *) |
11232 | # GNU C++ compiler with Solaris linker |
11233 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11234 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
11235 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
11236 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11237 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11238 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11239 | |
11240 | # Commands to make compiler produce verbose output that lists |
11241 | # what "hidden" libraries, object files and flags are used when |
11242 | # linking a shared library. |
11243 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11244 | else |
11245 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
11246 | # platform. |
11247 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11248 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11249 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11250 | |
11251 | # Commands to make compiler produce verbose output that lists |
11252 | # what "hidden" libraries, object files and flags are used when |
11253 | # linking a shared library. |
11254 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11255 | fi |
11256 | |
11257 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
11258 | fi |
11259 | ;; |
11260 | esac |
11261 | ;; |
11262 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
11263 | no_undefined_flag_CXX='${wl}-z,text' |
11264 | archive_cmds_need_lc_CXX=no |
11265 | hardcode_shlibpath_var_CXX=no |
11266 | runpath_var='LD_RUN_PATH' |
11267 | |
11268 | case $cc_basename in |
11269 | CC*) |
11270 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11271 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11272 | ;; |
11273 | *) |
11274 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11275 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11276 | ;; |
11277 | esac |
11278 | ;; |
11279 | sysv5* | sco3.2v5* | sco5v6*) |
11280 | # Note: We can NOT use -z defs as we might desire, because we do not |
11281 | # link with -lc, and that would cause any symbols used from libc to |
11282 | # always be unresolved, which means just about no library would |
11283 | # ever link correctly. If we're not using GNU ld we use -z text |
11284 | # though, which does catch some bad symbols but isn't as heavy-handed |
11285 | # as -z defs. |
11286 | # For security reasons, it is highly recommended that you always |
11287 | # use absolute paths for naming shared libraries, and exclude the |
11288 | # DT_RUNPATH tag from executables and libraries. But doing so |
11289 | # requires that you compile everything twice, which is a pain. |
11290 | # So that behaviour is only enabled if SCOABSPATH is set to a |
11291 | # non-empty value in the environment. Most likely only useful for |
11292 | # creating official distributions of packages. |
11293 | # This is a hack until libtool officially supports absolute path |
11294 | # names for shared libraries. |
11295 | no_undefined_flag_CXX='${wl}-z,text' |
11296 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
11297 | archive_cmds_need_lc_CXX=no |
11298 | hardcode_shlibpath_var_CXX=no |
11299 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
11300 | hardcode_libdir_separator_CXX=':' |
11301 | link_all_deplibs_CXX=yes |
11302 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
11303 | runpath_var='LD_RUN_PATH' |
11304 | |
11305 | case $cc_basename in |
11306 | CC*) |
11307 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11308 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11309 | ;; |
11310 | *) |
11311 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11312 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11313 | ;; |
11314 | esac |
11315 | ;; |
11316 | tandem*) |
11317 | case $cc_basename in |
11318 | NCC*) |
11319 | # NonStop-UX NCC 3.20 |
11320 | # FIXME: insert proper C++ library support |
11321 | ld_shlibs_CXX=no |
11322 | ;; |
11323 | *) |
11324 | # FIXME: insert proper C++ library support |
11325 | ld_shlibs_CXX=no |
11326 | ;; |
11327 | esac |
11328 | ;; |
11329 | vxworks*) |
11330 | # FIXME: insert proper C++ library support |
11331 | ld_shlibs_CXX=no |
11332 | ;; |
11333 | *) |
11334 | # FIXME: insert proper C++ library support |
11335 | ld_shlibs_CXX=no |
11336 | ;; |
11337 | esac |
11338 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
11339 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
11340 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
11341 | |
11342 | GCC_CXX="$GXX" |
11343 | LD_CXX="$LD" |
11344 | |
11345 | |
11346 | cat > conftest.$ac_ext <<EOF |
11347 | class Foo |
11348 | { |
11349 | public: |
11350 | Foo (void) { a = 0; } |
11351 | private: |
11352 | int a; |
11353 | }; |
11354 | EOF |
11355 | |
11356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11357 | (eval $ac_compile) 2>&5 |
11358 | ac_status=$? |
11359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11360 | (exit $ac_status); }; then |
11361 | # Parse the compiler output and extract the necessary |
11362 | # objects, libraries and library flags. |
11363 | |
11364 | # Sentinel used to keep track of whether or not we are before |
11365 | # the conftest object file. |
11366 | pre_test_object_deps_done=no |
11367 | |
11368 | # The `*' in the case matches for architectures that use `case' in |
11369 | # $output_verbose_cmd can trigger glob expansion during the loop |
11370 | # eval without this substitution. |
11371 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
11372 | |
11373 | for p in `eval $output_verbose_link_cmd`; do |
11374 | case $p in |
11375 | |
11376 | -L* | -R* | -l*) |
11377 | # Some compilers place space between "-{L,R}" and the path. |
11378 | # Remove the space. |
11379 | if test $p = "-L" \ |
11380 | || test $p = "-R"; then |
11381 | prev=$p |
11382 | continue |
11383 | else |
11384 | prev= |
11385 | fi |
11386 | |
11387 | if test "$pre_test_object_deps_done" = no; then |
11388 | case $p in |
11389 | -L* | -R*) |
11390 | # Internal compiler library paths should come after those |
11391 | # provided the user. The postdeps already come after the |
11392 | # user supplied libs so there is no need to process them. |
11393 | if test -z "$compiler_lib_search_path_CXX"; then |
11394 | compiler_lib_search_path_CXX="${prev}${p}" |
11395 | else |
11396 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
11397 | fi |
11398 | ;; |
11399 | # The "-l" case would never come before the object being |
11400 | # linked, so don't bother handling this case. |
11401 | esac |
11402 | else |
11403 | if test -z "$postdeps_CXX"; then |
11404 | postdeps_CXX="${prev}${p}" |
11405 | else |
11406 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
11407 | fi |
11408 | fi |
11409 | ;; |
11410 | |
11411 | *.$objext) |
11412 | # This assumes that the test object file only shows up |
11413 | # once in the compiler output. |
11414 | if test "$p" = "conftest.$objext"; then |
11415 | pre_test_object_deps_done=yes |
11416 | continue |
11417 | fi |
11418 | |
11419 | if test "$pre_test_object_deps_done" = no; then |
11420 | if test -z "$predep_objects_CXX"; then |
11421 | predep_objects_CXX="$p" |
11422 | else |
11423 | predep_objects_CXX="$predep_objects_CXX $p" |
11424 | fi |
11425 | else |
11426 | if test -z "$postdep_objects_CXX"; then |
11427 | postdep_objects_CXX="$p" |
11428 | else |
11429 | postdep_objects_CXX="$postdep_objects_CXX $p" |
11430 | fi |
11431 | fi |
11432 | ;; |
11433 | |
11434 | *) ;; # Ignore the rest. |
11435 | |
11436 | esac |
11437 | done |
11438 | |
11439 | # Clean up. |
11440 | rm -f a.out a.exe |
11441 | else |
11442 | echo "libtool.m4: error: problem compiling CXX test program" |
11443 | fi |
11444 | |
11445 | $rm -f confest.$objext |
11446 | |
11447 | # PORTME: override above test on systems where it is broken |
11448 | case $host_os in |
11449 | interix3*) |
11450 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
11451 | # hack all around it, let's just trust "g++" to DTRT. |
11452 | predep_objects_CXX= |
11453 | postdep_objects_CXX= |
11454 | postdeps_CXX= |
11455 | ;; |
11456 | |
11457 | solaris*) |
11458 | case $cc_basename in |
11459 | CC*) |
11460 | # Adding this requires a known-good setup of shared libraries for |
11461 | # Sun compiler versions before 5.6, else PIC objects from an old |
11462 | # archive will be linked into the output, leading to subtle bugs. |
11463 | postdeps_CXX='-lCstd -lCrun' |
11464 | ;; |
11465 | esac |
11466 | ;; |
11467 | esac |
11468 | |
11469 | |
11470 | case " $postdeps_CXX " in |
11471 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
11472 | esac |
11473 | |
11474 | lt_prog_compiler_wl_CXX= |
11475 | lt_prog_compiler_pic_CXX= |
11476 | lt_prog_compiler_static_CXX= |
11477 | |
11478 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
11479 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
11480 | |
11481 | # C++ specific cases for pic, static, wl, etc. |
11482 | if test "$GXX" = yes; then |
11483 | lt_prog_compiler_wl_CXX='-Wl,' |
11484 | lt_prog_compiler_static_CXX='-static' |
11485 | |
11486 | case $host_os in |
11487 | aix*) |
11488 | # All AIX code is PIC. |
11489 | if test "$host_cpu" = ia64; then |
11490 | # AIX 5 now supports IA64 processor |
11491 | lt_prog_compiler_static_CXX='-Bstatic' |
11492 | fi |
11493 | ;; |
11494 | amigaos*) |
11495 | # FIXME: we need at least 68020 code to build shared libraries, but |
11496 | # adding the `-m68020' flag to GCC prevents building anything better, |
11497 | # like `-m68040'. |
11498 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
11499 | ;; |
11500 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
11501 | # PIC is the default for these OSes. |
11502 | ;; |
11503 | mingw* | os2* | pw32*) |
11504 | # This hack is so that the source file can tell whether it is being |
11505 | # built for inclusion in a dll (and should export symbols for example). |
11506 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
11507 | ;; |
11508 | darwin* | rhapsody*) |
11509 | # PIC is the default on this platform |
11510 | # Common symbols not allowed in MH_DYLIB files |
11511 | lt_prog_compiler_pic_CXX='-fno-common' |
11512 | ;; |
11513 | *djgpp*) |
11514 | # DJGPP does not support shared libraries at all |
11515 | lt_prog_compiler_pic_CXX= |
11516 | ;; |
11517 | interix3*) |
11518 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
11519 | # Instead, we relocate shared libraries at runtime. |
11520 | ;; |
11521 | sysv4*MP*) |
11522 | if test -d /usr/nec; then |
11523 | lt_prog_compiler_pic_CXX=-Kconform_pic |
11524 | fi |
11525 | ;; |
11526 | hpux*) |
11527 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
11528 | # not for PA HP-UX. |
11529 | case $host_cpu in |
11530 | hppa*64*|ia64*) |
11531 | ;; |
11532 | *) |
11533 | lt_prog_compiler_pic_CXX='-fPIC' |
11534 | ;; |
11535 | esac |
11536 | ;; |
11537 | *) |
11538 | lt_prog_compiler_pic_CXX='-fPIC' |
11539 | ;; |
11540 | esac |
11541 | else |
11542 | case $host_os in |
11543 | aix4* | aix5*) |
11544 | # All AIX code is PIC. |
11545 | if test "$host_cpu" = ia64; then |
11546 | # AIX 5 now supports IA64 processor |
11547 | lt_prog_compiler_static_CXX='-Bstatic' |
11548 | else |
11549 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
11550 | fi |
11551 | ;; |
11552 | chorus*) |
11553 | case $cc_basename in |
11554 | cxch68*) |
11555 | # Green Hills C++ Compiler |
11556 | # _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" |
11557 | ;; |
11558 | esac |
11559 | ;; |
11560 | darwin*) |
11561 | # PIC is the default on this platform |
11562 | # Common symbols not allowed in MH_DYLIB files |
11563 | case $cc_basename in |
11564 | xlc*) |
11565 | lt_prog_compiler_pic_CXX='-qnocommon' |
11566 | lt_prog_compiler_wl_CXX='-Wl,' |
11567 | ;; |
11568 | esac |
11569 | ;; |
11570 | dgux*) |
11571 | case $cc_basename in |
11572 | ec++*) |
11573 | lt_prog_compiler_pic_CXX='-KPIC' |
11574 | ;; |
11575 | ghcx*) |
11576 | # Green Hills C++ Compiler |
11577 | lt_prog_compiler_pic_CXX='-pic' |
11578 | ;; |
11579 | *) |
11580 | ;; |
11581 | esac |
11582 | ;; |
11583 | freebsd* | kfreebsd*-gnu | dragonfly*) |
11584 | # FreeBSD uses GNU C++ |
11585 | ;; |
11586 | hpux9* | hpux10* | hpux11*) |
11587 | case $cc_basename in |
11588 | CC*) |
11589 | lt_prog_compiler_wl_CXX='-Wl,' |
11590 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
11591 | if test "$host_cpu" != ia64; then |
11592 | lt_prog_compiler_pic_CXX='+Z' |
11593 | fi |
11594 | ;; |
11595 | aCC*) |
11596 | lt_prog_compiler_wl_CXX='-Wl,' |
11597 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
11598 | case $host_cpu in |
11599 | hppa*64*|ia64*) |
11600 | # +Z the default |
11601 | ;; |
11602 | *) |
11603 | lt_prog_compiler_pic_CXX='+Z' |
11604 | ;; |
11605 | esac |
11606 | ;; |
11607 | *) |
11608 | ;; |
11609 | esac |
11610 | ;; |
11611 | interix*) |
11612 | # This is c89, which is MS Visual C++ (no shared libs) |
11613 | # Anyone wants to do a port? |
11614 | ;; |
11615 | irix5* | irix6* | nonstopux*) |
11616 | case $cc_basename in |
11617 | CC*) |
11618 | lt_prog_compiler_wl_CXX='-Wl,' |
11619 | lt_prog_compiler_static_CXX='-non_shared' |
11620 | # CC pic flag -KPIC is the default. |
11621 | ;; |
11622 | *) |
11623 | ;; |
11624 | esac |
11625 | ;; |
11626 | linux*) |
11627 | case $cc_basename in |
11628 | KCC*) |
11629 | # KAI C++ Compiler |
11630 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
11631 | lt_prog_compiler_pic_CXX='-fPIC' |
11632 | ;; |
11633 | icpc* | ecpc*) |
11634 | # Intel C++ |
11635 | lt_prog_compiler_wl_CXX='-Wl,' |
11636 | lt_prog_compiler_pic_CXX='-KPIC' |
11637 | lt_prog_compiler_static_CXX='-static' |
11638 | ;; |
11639 | pgCC*) |
11640 | # Portland Group C++ compiler. |
11641 | lt_prog_compiler_wl_CXX='-Wl,' |
11642 | lt_prog_compiler_pic_CXX='-fpic' |
11643 | lt_prog_compiler_static_CXX='-Bstatic' |
11644 | ;; |
11645 | cxx*) |
11646 | # Compaq C++ |
11647 | # Make sure the PIC flag is empty. It appears that all Alpha |
11648 | # Linux and Compaq Tru64 Unix objects are PIC. |
11649 | lt_prog_compiler_pic_CXX= |
11650 | lt_prog_compiler_static_CXX='-non_shared' |
11651 | ;; |
11652 | *) |
11653 | ;; |
11654 | esac |
11655 | ;; |
11656 | lynxos*) |
11657 | ;; |
11658 | m88k*) |
11659 | ;; |
11660 | mvs*) |
11661 | case $cc_basename in |
11662 | cxx*) |
11663 | lt_prog_compiler_pic_CXX='-W c,exportall' |
11664 | ;; |
11665 | *) |
11666 | ;; |
11667 | esac |
11668 | ;; |
11669 | netbsd*) |
11670 | ;; |
11671 | osf3* | osf4* | osf5*) |
11672 | case $cc_basename in |
11673 | KCC*) |
11674 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
11675 | ;; |
11676 | RCC*) |
11677 | # Rational C++ 2.4.1 |
11678 | lt_prog_compiler_pic_CXX='-pic' |
11679 | ;; |
11680 | cxx*) |
11681 | # Digital/Compaq C++ |
11682 | lt_prog_compiler_wl_CXX='-Wl,' |
11683 | # Make sure the PIC flag is empty. It appears that all Alpha |
11684 | # Linux and Compaq Tru64 Unix objects are PIC. |
11685 | lt_prog_compiler_pic_CXX= |
11686 | lt_prog_compiler_static_CXX='-non_shared' |
11687 | ;; |
11688 | *) |
11689 | ;; |
11690 | esac |
11691 | ;; |
11692 | psos*) |
11693 | ;; |
11694 | solaris*) |
11695 | case $cc_basename in |
11696 | CC*) |
11697 | # Sun C++ 4.2, 5.x and Centerline C++ |
11698 | lt_prog_compiler_pic_CXX='-KPIC' |
11699 | lt_prog_compiler_static_CXX='-Bstatic' |
11700 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
11701 | ;; |
11702 | gcx*) |
11703 | # Green Hills C++ Compiler |
11704 | lt_prog_compiler_pic_CXX='-PIC' |
11705 | ;; |
11706 | *) |
11707 | ;; |
11708 | esac |
11709 | ;; |
11710 | sunos4*) |
11711 | case $cc_basename in |
11712 | CC*) |
11713 | # Sun C++ 4.x |
11714 | lt_prog_compiler_pic_CXX='-pic' |
11715 | lt_prog_compiler_static_CXX='-Bstatic' |
11716 | ;; |
11717 | lcc*) |
11718 | # Lucid |
11719 | lt_prog_compiler_pic_CXX='-pic' |
11720 | ;; |
11721 | *) |
11722 | ;; |
11723 | esac |
11724 | ;; |
11725 | tandem*) |
11726 | case $cc_basename in |
11727 | NCC*) |
11728 | # NonStop-UX NCC 3.20 |
11729 | lt_prog_compiler_pic_CXX='-KPIC' |
11730 | ;; |
11731 | *) |
11732 | ;; |
11733 | esac |
11734 | ;; |
11735 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
11736 | case $cc_basename in |
11737 | CC*) |
11738 | lt_prog_compiler_wl_CXX='-Wl,' |
11739 | lt_prog_compiler_pic_CXX='-KPIC' |
11740 | lt_prog_compiler_static_CXX='-Bstatic' |
11741 | ;; |
11742 | esac |
11743 | ;; |
11744 | vxworks*) |
11745 | ;; |
11746 | *) |
11747 | lt_prog_compiler_can_build_shared_CXX=no |
11748 | ;; |
11749 | esac |
11750 | fi |
11751 | |
11752 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
11753 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
11754 | |
11755 | # |
11756 | # Check to make sure the PIC flag actually works. |
11757 | # |
11758 | if test -n "$lt_prog_compiler_pic_CXX"; then |
11759 | |
11760 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
11761 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
11762 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
11763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11764 | else |
11765 | lt_prog_compiler_pic_works_CXX=no |
11766 | ac_outfile=conftest.$ac_objext |
11767 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
11768 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
11769 | # Insert the option either (1) after the last *FLAGS variable, or |
11770 | # (2) before a word containing "conftest.", or (3) at the end. |
11771 | # Note that $ac_compile itself does not contain backslashes and begins |
11772 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
11773 | # The option is referenced via a variable to avoid confusing sed. |
11774 | lt_compile=`echo "$ac_compile" | $SED \ |
11775 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
11776 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
11777 | -e 's:$: $lt_compiler_flag:'` |
11778 | (eval echo "\"\$as_me:11778: $lt_compile\"" >&5) |
11779 | (eval "$lt_compile" 2>conftest.err) |
11780 | ac_status=$? |
11781 | cat conftest.err >&5 |
11782 | echo "$as_me:11782: \$? = $ac_status" >&5 |
11783 | if (exit $ac_status) && test -s "$ac_outfile"; then |
11784 | # The compiler can only warn and ignore the option if not recognized |
11785 | # So say no if there are warnings other than the usual output. |
11786 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
11787 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
11788 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
11789 | lt_prog_compiler_pic_works_CXX=yes |
11790 | fi |
11791 | fi |
11792 | $rm conftest* |
11793 | |
11794 | fi |
11795 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
11796 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
11797 | |
11798 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
11799 | case $lt_prog_compiler_pic_CXX in |
11800 | "" | " "*) ;; |
11801 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
11802 | esac |
11803 | else |
11804 | lt_prog_compiler_pic_CXX= |
11805 | lt_prog_compiler_can_build_shared_CXX=no |
11806 | fi |
11807 | |
11808 | fi |
11809 | case $host_os in |
11810 | # For platforms which do not support PIC, -DPIC is meaningless: |
11811 | *djgpp*) |
11812 | lt_prog_compiler_pic_CXX= |
11813 | ;; |
11814 | *) |
11815 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
11816 | ;; |
11817 | esac |
11818 | |
11819 | # |
11820 | # Check to make sure the static flag actually works. |
11821 | # |
11822 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
11823 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
11824 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
11825 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
11826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11827 | else |
11828 | lt_prog_compiler_static_works_CXX=no |
11829 | save_LDFLAGS="$LDFLAGS" |
11830 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
11831 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
11832 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
11833 | # The linker can only warn and ignore the option if not recognized |
11834 | # So say no if there are warnings |
11835 | if test -s conftest.err; then |
11836 | # Append any errors to the config.log. |
11837 | cat conftest.err 1>&5 |
11838 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
11839 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
11840 | if diff conftest.exp conftest.er2 >/dev/null; then |
11841 | lt_prog_compiler_static_works_CXX=yes |
11842 | fi |
11843 | else |
11844 | lt_prog_compiler_static_works_CXX=yes |
11845 | fi |
11846 | fi |
11847 | $rm conftest* |
11848 | LDFLAGS="$save_LDFLAGS" |
11849 | |
11850 | fi |
11851 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
11852 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 |
11853 | |
11854 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
11855 | : |
11856 | else |
11857 | lt_prog_compiler_static_CXX= |
11858 | fi |
11859 | |
11860 | |
11861 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
11862 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
11863 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
11864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11865 | else |
11866 | lt_cv_prog_compiler_c_o_CXX=no |
11867 | $rm -r conftest 2>/dev/null |
11868 | mkdir conftest |
11869 | cd conftest |
11870 | mkdir out |
11871 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
11872 | |
11873 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
11874 | # Insert the option either (1) after the last *FLAGS variable, or |
11875 | # (2) before a word containing "conftest.", or (3) at the end. |
11876 | # Note that $ac_compile itself does not contain backslashes and begins |
11877 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
11878 | lt_compile=`echo "$ac_compile" | $SED \ |
11879 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
11880 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
11881 | -e 's:$: $lt_compiler_flag:'` |
11882 | (eval echo "\"\$as_me:11882: $lt_compile\"" >&5) |
11883 | (eval "$lt_compile" 2>out/conftest.err) |
11884 | ac_status=$? |
11885 | cat out/conftest.err >&5 |
11886 | echo "$as_me:11886: \$? = $ac_status" >&5 |
11887 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
11888 | then |
11889 | # The compiler can only warn and ignore the option if not recognized |
11890 | # So say no if there are warnings |
11891 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
11892 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
11893 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
11894 | lt_cv_prog_compiler_c_o_CXX=yes |
11895 | fi |
11896 | fi |
11897 | chmod u+w . 2>&5 |
11898 | $rm conftest* |
11899 | # SGI C++ compiler will create directory out/ii_files/ for |
11900 | # template instantiation |
11901 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
11902 | $rm out/* && rmdir out |
11903 | cd .. |
11904 | rmdir conftest |
11905 | $rm conftest* |
11906 | |
11907 | fi |
11908 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
11909 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
11910 | |
11911 | |
11912 | hard_links="nottested" |
11913 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
11914 | # do not overwrite the value of need_locks provided by the user |
11915 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
11916 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
11917 | hard_links=yes |
11918 | $rm conftest* |
11919 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
11920 | touch conftest.a |
11921 | ln conftest.a conftest.b 2>&5 || hard_links=no |
11922 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
11923 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
11924 | echo "${ECHO_T}$hard_links" >&6 |
11925 | if test "$hard_links" = no; then |
11926 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
11927 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
11928 | need_locks=warn |
11929 | fi |
11930 | else |
11931 | need_locks=no |
11932 | fi |
11933 | |
11934 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
11935 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
11936 | |
11937 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
11938 | case $host_os in |
11939 | aix4* | aix5*) |
11940 | # If we're using GNU nm, then we don't want the "-C" option. |
11941 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
11942 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
11943 | 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' |
11944 | else |
11945 | 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' |
11946 | fi |
11947 | ;; |
11948 | pw32*) |
11949 | export_symbols_cmds_CXX="$ltdll_cmds" |
11950 | ;; |
11951 | cygwin* | mingw*) |
11952 | 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' |
11953 | ;; |
11954 | *) |
11955 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
11956 | ;; |
11957 | esac |
11958 | |
11959 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
11960 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
11961 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
11962 | |
11963 | # |
11964 | # Do we need to explicitly link libc? |
11965 | # |
11966 | case "x$archive_cmds_need_lc_CXX" in |
11967 | x|xyes) |
11968 | # Assume -lc should be added |
11969 | archive_cmds_need_lc_CXX=yes |
11970 | |
11971 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
11972 | case $archive_cmds_CXX in |
11973 | *'~'*) |
11974 | # FIXME: we may have to deal with multi-command sequences. |
11975 | ;; |
11976 | '$CC '*) |
11977 | # Test whether the compiler implicitly links with -lc since on some |
11978 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
11979 | # to ld, don't add -lc before -lgcc. |
11980 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
11981 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
11982 | $rm conftest* |
11983 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
11984 | |
11985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11986 | (eval $ac_compile) 2>&5 |
11987 | ac_status=$? |
11988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11989 | (exit $ac_status); } 2>conftest.err; then |
11990 | soname=conftest |
11991 | lib=conftest |
11992 | libobjs=conftest.$ac_objext |
11993 | deplibs= |
11994 | wl=$lt_prog_compiler_wl_CXX |
11995 | pic_flag=$lt_prog_compiler_pic_CXX |
11996 | compiler_flags=-v |
11997 | linker_flags=-v |
11998 | verstring= |
11999 | output_objdir=. |
12000 | libname=conftest |
12001 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
12002 | allow_undefined_flag_CXX= |
12003 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
12004 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
12005 | ac_status=$? |
12006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12007 | (exit $ac_status); } |
12008 | then |
12009 | archive_cmds_need_lc_CXX=no |
12010 | else |
12011 | archive_cmds_need_lc_CXX=yes |
12012 | fi |
12013 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
12014 | else |
12015 | cat conftest.err 1>&5 |
12016 | fi |
12017 | $rm conftest* |
12018 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
12019 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
12020 | ;; |
12021 | esac |
12022 | fi |
12023 | ;; |
12024 | esac |
12025 | |
12026 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
12027 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
12028 | library_names_spec= |
12029 | libname_spec='lib$name' |
12030 | soname_spec= |
12031 | shrext_cmds=".so" |
12032 | postinstall_cmds= |
12033 | postuninstall_cmds= |
12034 | finish_cmds= |
12035 | finish_eval= |
12036 | shlibpath_var= |
12037 | shlibpath_overrides_runpath=unknown |
12038 | version_type=none |
12039 | dynamic_linker="$host_os ld.so" |
12040 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
12041 | if test "$GCC" = yes; then |
12042 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
12043 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
12044 | # if the path contains ";" then we assume it to be the separator |
12045 | # otherwise default to the standard path separator (i.e. ":") - it is |
12046 | # assumed that no part of a normal pathname contains ";" but that should |
12047 | # okay in the real world where ";" in dirpaths is itself problematic. |
12048 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
12049 | else |
12050 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12051 | fi |
12052 | else |
12053 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
12054 | fi |
12055 | need_lib_prefix=unknown |
12056 | hardcode_into_libs=no |
12057 | |
12058 | # when you set need_version to no, make sure it does not cause -set_version |
12059 | # flags to be left without arguments |
12060 | need_version=unknown |
12061 | |
12062 | case $host_os in |
12063 | aix3*) |
12064 | version_type=linux |
12065 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
12066 | shlibpath_var=LIBPATH |
12067 | |
12068 | # AIX 3 has no versioning support, so we append a major version to the name. |
12069 | soname_spec='${libname}${release}${shared_ext}$major' |
12070 | ;; |
12071 | |
12072 | aix4* | aix5*) |
12073 | version_type=linux |
12074 | need_lib_prefix=no |
12075 | need_version=no |
12076 | hardcode_into_libs=yes |
12077 | if test "$host_cpu" = ia64; then |
12078 | # AIX 5 supports IA64 |
12079 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
12080 | shlibpath_var=LD_LIBRARY_PATH |
12081 | else |
12082 | # With GCC up to 2.95.x, collect2 would create an import file |
12083 | # for dependence libraries. The import file would start with |
12084 | # the line `#! .'. This would cause the generated library to |
12085 | # depend on `.', always an invalid library. This was fixed in |
12086 | # development snapshots of GCC prior to 3.0. |
12087 | case $host_os in |
12088 | aix4 | aix4.[01] | aix4.[01].*) |
12089 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
12090 | echo ' yes ' |
12091 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
12092 | : |
12093 | else |
12094 | can_build_shared=no |
12095 | fi |
12096 | ;; |
12097 | esac |
12098 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
12099 | # soname into executable. Probably we can add versioning support to |
12100 | # collect2, so additional links can be useful in future. |
12101 | if test "$aix_use_runtimelinking" = yes; then |
12102 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
12103 | # instead of lib<name>.a to let people know that these are not |
12104 | # typical AIX shared libraries. |
12105 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12106 | else |
12107 | # We preserve .a as extension for shared libraries through AIX4.2 |
12108 | # and later when we are not doing run time linking. |
12109 | library_names_spec='${libname}${release}.a $libname.a' |
12110 | soname_spec='${libname}${release}${shared_ext}$major' |
12111 | fi |
12112 | shlibpath_var=LIBPATH |
12113 | fi |
12114 | ;; |
12115 | |
12116 | amigaos*) |
12117 | library_names_spec='$libname.ixlibrary $libname.a' |
12118 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
12119 | 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' |
12120 | ;; |
12121 | |
12122 | beos*) |
12123 | library_names_spec='${libname}${shared_ext}' |
12124 | dynamic_linker="$host_os ld.so" |
12125 | shlibpath_var=LIBRARY_PATH |
12126 | ;; |
12127 | |
12128 | bsdi[45]*) |
12129 | version_type=linux |
12130 | need_version=no |
12131 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12132 | soname_spec='${libname}${release}${shared_ext}$major' |
12133 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
12134 | shlibpath_var=LD_LIBRARY_PATH |
12135 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
12136 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
12137 | # the default ld.so.conf also contains /usr/contrib/lib and |
12138 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
12139 | # libtool to hard-code these into programs |
12140 | ;; |
12141 | |
12142 | cygwin* | mingw* | pw32*) |
12143 | version_type=windows |
12144 | shrext_cmds=".dll" |
12145 | need_version=no |
12146 | need_lib_prefix=no |
12147 | |
12148 | case $GCC,$host_os in |
12149 | yes,cygwin* | yes,mingw* | yes,pw32*) |
12150 | library_names_spec='$libname.dll.a' |
12151 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
12152 | postinstall_cmds='base_file=`basename \${file}`~ |
12153 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
12154 | dldir=$destdir/`dirname \$dlpath`~ |
12155 | test -d \$dldir || mkdir -p \$dldir~ |
12156 | $install_prog $dir/$dlname \$dldir/$dlname~ |
12157 | chmod a+x \$dldir/$dlname' |
12158 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
12159 | dlpath=$dir/\$dldll~ |
12160 | $rm \$dlpath' |
12161 | shlibpath_overrides_runpath=yes |
12162 | |
12163 | case $host_os in |
12164 | cygwin*) |
12165 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
12166 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12167 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
12168 | ;; |
12169 | mingw*) |
12170 | # MinGW DLLs use traditional 'lib' prefix |
12171 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12172 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
12173 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
12174 | # It is most probably a Windows format PATH printed by |
12175 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
12176 | # path with ; separators, and with drive letters. We can handle the |
12177 | # drive letters (cygwin fileutils understands them), so leave them, |
12178 | # especially as we might pass files found there to a mingw objdump, |
12179 | # which wouldn't understand a cygwinified path. Ahh. |
12180 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
12181 | else |
12182 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12183 | fi |
12184 | ;; |
12185 | pw32*) |
12186 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
12187 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12188 | ;; |
12189 | esac |
12190 | ;; |
12191 | |
12192 | *) |
12193 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
12194 | ;; |
12195 | esac |
12196 | dynamic_linker='Win32 ld.exe' |
12197 | # FIXME: first we should search . and the directory the executable is in |
12198 | shlibpath_var=PATH |
12199 | ;; |
12200 | |
12201 | darwin* | rhapsody*) |
12202 | dynamic_linker="$host_os dyld" |
12203 | version_type=darwin |
12204 | need_lib_prefix=no |
12205 | need_version=no |
12206 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
12207 | soname_spec='${libname}${release}${major}$shared_ext' |
12208 | shlibpath_overrides_runpath=yes |
12209 | shlibpath_var=DYLD_LIBRARY_PATH |
12210 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
12211 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
12212 | if test "$GCC" = yes; then |
12213 | 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"` |
12214 | else |
12215 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
12216 | fi |
12217 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
12218 | ;; |
12219 | |
12220 | dgux*) |
12221 | version_type=linux |
12222 | need_lib_prefix=no |
12223 | need_version=no |
12224 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
12225 | soname_spec='${libname}${release}${shared_ext}$major' |
12226 | shlibpath_var=LD_LIBRARY_PATH |
12227 | ;; |
12228 | |
12229 | freebsd1*) |
12230 | dynamic_linker=no |
12231 | ;; |
12232 | |
12233 | kfreebsd*-gnu) |
12234 | version_type=linux |
12235 | need_lib_prefix=no |
12236 | need_version=no |
12237 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12238 | soname_spec='${libname}${release}${shared_ext}$major' |
12239 | shlibpath_var=LD_LIBRARY_PATH |
12240 | shlibpath_overrides_runpath=no |
12241 | hardcode_into_libs=yes |
12242 | dynamic_linker='GNU ld.so' |
12243 | ;; |
12244 | |
12245 | freebsd* | dragonfly*) |
12246 | # DragonFly does not have aout. When/if they implement a new |
12247 | # versioning mechanism, adjust this. |
12248 | if test -x /usr/bin/objformat; then |
12249 | objformat=`/usr/bin/objformat` |
12250 | else |
12251 | case $host_os in |
12252 | freebsd[123]*) objformat=aout ;; |
12253 | *) objformat=elf ;; |
12254 | esac |
12255 | fi |
12256 | version_type=freebsd-$objformat |
12257 | case $version_type in |
12258 | freebsd-elf*) |
12259 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
12260 | need_version=no |
12261 | need_lib_prefix=no |
12262 | ;; |
12263 | freebsd-*) |
12264 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
12265 | need_version=yes |
12266 | ;; |
12267 | esac |
12268 | shlibpath_var=LD_LIBRARY_PATH |
12269 | case $host_os in |
12270 | freebsd2*) |
12271 | shlibpath_overrides_runpath=yes |
12272 | ;; |
12273 | freebsd3.[01]* | freebsdelf3.[01]*) |
12274 | shlibpath_overrides_runpath=yes |
12275 | hardcode_into_libs=yes |
12276 | ;; |
12277 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
12278 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
12279 | shlibpath_overrides_runpath=no |
12280 | hardcode_into_libs=yes |
12281 | ;; |
12282 | freebsd*) # from 4.6 on |
12283 | shlibpath_overrides_runpath=yes |
12284 | hardcode_into_libs=yes |
12285 | ;; |
12286 | esac |
12287 | ;; |
12288 | |
12289 | gnu*) |
12290 | version_type=linux |
12291 | need_lib_prefix=no |
12292 | need_version=no |
12293 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
12294 | soname_spec='${libname}${release}${shared_ext}$major' |
12295 | shlibpath_var=LD_LIBRARY_PATH |
12296 | hardcode_into_libs=yes |
12297 | ;; |
12298 | |
12299 | hpux9* | hpux10* | hpux11*) |
12300 | # Give a soname corresponding to the major version so that dld.sl refuses to |
12301 | # link against other versions. |
12302 | version_type=sunos |
12303 | need_lib_prefix=no |
12304 | need_version=no |
12305 | case $host_cpu in |
12306 | ia64*) |
12307 | shrext_cmds='.so' |
12308 | hardcode_into_libs=yes |
12309 | dynamic_linker="$host_os dld.so" |
12310 | shlibpath_var=LD_LIBRARY_PATH |
12311 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12312 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12313 | soname_spec='${libname}${release}${shared_ext}$major' |
12314 | if test "X$HPUX_IA64_MODE" = X32; then |
12315 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
12316 | else |
12317 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
12318 | fi |
12319 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12320 | ;; |
12321 | hppa*64*) |
12322 | shrext_cmds='.sl' |
12323 | hardcode_into_libs=yes |
12324 | dynamic_linker="$host_os dld.sl" |
12325 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
12326 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12327 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12328 | soname_spec='${libname}${release}${shared_ext}$major' |
12329 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
12330 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12331 | ;; |
12332 | *) |
12333 | shrext_cmds='.sl' |
12334 | dynamic_linker="$host_os dld.sl" |
12335 | shlibpath_var=SHLIB_PATH |
12336 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
12337 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12338 | soname_spec='${libname}${release}${shared_ext}$major' |
12339 | ;; |
12340 | esac |
12341 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
12342 | postinstall_cmds='chmod 555 $lib' |
12343 | ;; |
12344 | |
12345 | interix3*) |
12346 | version_type=linux |
12347 | need_lib_prefix=no |
12348 | need_version=no |
12349 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12350 | soname_spec='${libname}${release}${shared_ext}$major' |
12351 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
12352 | shlibpath_var=LD_LIBRARY_PATH |
12353 | shlibpath_overrides_runpath=no |
12354 | hardcode_into_libs=yes |
12355 | ;; |
12356 | |
12357 | irix5* | irix6* | nonstopux*) |
12358 | case $host_os in |
12359 | nonstopux*) version_type=nonstopux ;; |
12360 | *) |
12361 | if test "$lt_cv_prog_gnu_ld" = yes; then |
12362 | version_type=linux |
12363 | else |
12364 | version_type=irix |
12365 | fi ;; |
12366 | esac |
12367 | need_lib_prefix=no |
12368 | need_version=no |
12369 | soname_spec='${libname}${release}${shared_ext}$major' |
12370 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
12371 | case $host_os in |
12372 | irix5* | nonstopux*) |
12373 | libsuff= shlibsuff= |
12374 | ;; |
12375 | *) |
12376 | case $LD in # libtool.m4 will add one of these switches to LD |
12377 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
12378 | libsuff= shlibsuff= libmagic=32-bit;; |
12379 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
12380 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
12381 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
12382 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
12383 | *) libsuff= shlibsuff= libmagic=never-match;; |
12384 | esac |
12385 | ;; |
12386 | esac |
12387 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
12388 | shlibpath_overrides_runpath=no |
12389 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
12390 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
12391 | hardcode_into_libs=yes |
12392 | ;; |
12393 | |
12394 | # No shared lib support for Linux oldld, aout, or coff. |
12395 | linux*oldld* | linux*aout* | linux*coff*) |
12396 | dynamic_linker=no |
12397 | ;; |
12398 | |
12399 | # This must be Linux ELF. |
12400 | linux*) |
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 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
12407 | shlibpath_var=LD_LIBRARY_PATH |
12408 | shlibpath_overrides_runpath=no |
12409 | # This implies no fast_install, which is unacceptable. |
12410 | # Some rework will be needed to allow for fast_install |
12411 | # before this can be enabled. |
12412 | hardcode_into_libs=yes |
12413 | |
12414 | # find out which ABI we are using |
12415 | libsuff= |
12416 | case "$host_cpu" in |
12417 | x86_64*|s390x*|powerpc64*) |
12418 | echo '#line 12418 "configure"' > conftest.$ac_ext |
12419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12420 | (eval $ac_compile) 2>&5 |
12421 | ac_status=$? |
12422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12423 | (exit $ac_status); }; then |
12424 | case `/usr/bin/file conftest.$ac_objext` in |
12425 | *64-bit*) |
12426 | libsuff=64 |
12427 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
12428 | ;; |
12429 | esac |
12430 | fi |
12431 | rm -rf conftest* |
12432 | ;; |
12433 | esac |
12434 | |
12435 | # Append ld.so.conf contents to the search path |
12436 | if test -f /etc/ld.so.conf; then |
12437 | 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' ' '` |
12438 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
12439 | fi |
12440 | |
12441 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
12442 | # powerpc, because MkLinux only supported shared libraries with the |
12443 | # GNU dynamic linker. Since this was broken with cross compilers, |
12444 | # most powerpc-linux boxes support dynamic linking these days and |
12445 | # people can always --disable-shared, the test was removed, and we |
12446 | # assume the GNU/Linux dynamic linker is in use. |
12447 | dynamic_linker='GNU/Linux ld.so' |
12448 | ;; |
12449 | |
12450 | knetbsd*-gnu) |
12451 | version_type=linux |
12452 | need_lib_prefix=no |
12453 | need_version=no |
12454 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12455 | soname_spec='${libname}${release}${shared_ext}$major' |
12456 | shlibpath_var=LD_LIBRARY_PATH |
12457 | shlibpath_overrides_runpath=no |
12458 | hardcode_into_libs=yes |
12459 | dynamic_linker='GNU ld.so' |
12460 | ;; |
12461 | |
12462 | netbsd*) |
12463 | version_type=sunos |
12464 | need_lib_prefix=no |
12465 | need_version=no |
12466 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
12467 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12468 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
12469 | dynamic_linker='NetBSD (a.out) ld.so' |
12470 | else |
12471 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12472 | soname_spec='${libname}${release}${shared_ext}$major' |
12473 | dynamic_linker='NetBSD ld.elf_so' |
12474 | fi |
12475 | shlibpath_var=LD_LIBRARY_PATH |
12476 | shlibpath_overrides_runpath=yes |
12477 | hardcode_into_libs=yes |
12478 | ;; |
12479 | |
12480 | newsos6) |
12481 | version_type=linux |
12482 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12483 | shlibpath_var=LD_LIBRARY_PATH |
12484 | shlibpath_overrides_runpath=yes |
12485 | ;; |
12486 | |
12487 | nto-qnx*) |
12488 | version_type=linux |
12489 | need_lib_prefix=no |
12490 | need_version=no |
12491 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12492 | soname_spec='${libname}${release}${shared_ext}$major' |
12493 | shlibpath_var=LD_LIBRARY_PATH |
12494 | shlibpath_overrides_runpath=yes |
12495 | ;; |
12496 | |
12497 | openbsd*) |
12498 | version_type=sunos |
12499 | sys_lib_dlsearch_path_spec="/usr/lib" |
12500 | need_lib_prefix=no |
12501 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
12502 | case $host_os in |
12503 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
12504 | *) need_version=no ;; |
12505 | esac |
12506 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12507 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
12508 | shlibpath_var=LD_LIBRARY_PATH |
12509 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
12510 | case $host_os in |
12511 | openbsd2.[89] | openbsd2.[89].*) |
12512 | shlibpath_overrides_runpath=no |
12513 | ;; |
12514 | *) |
12515 | shlibpath_overrides_runpath=yes |
12516 | ;; |
12517 | esac |
12518 | else |
12519 | shlibpath_overrides_runpath=yes |
12520 | fi |
12521 | ;; |
12522 | |
12523 | os2*) |
12524 | libname_spec='$name' |
12525 | shrext_cmds=".dll" |
12526 | need_lib_prefix=no |
12527 | library_names_spec='$libname${shared_ext} $libname.a' |
12528 | dynamic_linker='OS/2 ld.exe' |
12529 | shlibpath_var=LIBPATH |
12530 | ;; |
12531 | |
12532 | osf3* | osf4* | osf5*) |
12533 | version_type=osf |
12534 | need_lib_prefix=no |
12535 | need_version=no |
12536 | soname_spec='${libname}${release}${shared_ext}$major' |
12537 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12538 | shlibpath_var=LD_LIBRARY_PATH |
12539 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
12540 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
12541 | ;; |
12542 | |
12543 | solaris*) |
12544 | version_type=linux |
12545 | need_lib_prefix=no |
12546 | need_version=no |
12547 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12548 | soname_spec='${libname}${release}${shared_ext}$major' |
12549 | shlibpath_var=LD_LIBRARY_PATH |
12550 | shlibpath_overrides_runpath=yes |
12551 | hardcode_into_libs=yes |
12552 | # ldd complains unless libraries are executable |
12553 | postinstall_cmds='chmod +x $lib' |
12554 | ;; |
12555 | |
12556 | sunos4*) |
12557 | version_type=sunos |
12558 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12559 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
12560 | shlibpath_var=LD_LIBRARY_PATH |
12561 | shlibpath_overrides_runpath=yes |
12562 | if test "$with_gnu_ld" = yes; then |
12563 | need_lib_prefix=no |
12564 | fi |
12565 | need_version=yes |
12566 | ;; |
12567 | |
12568 | sysv4 | sysv4.3*) |
12569 | version_type=linux |
12570 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12571 | soname_spec='${libname}${release}${shared_ext}$major' |
12572 | shlibpath_var=LD_LIBRARY_PATH |
12573 | case $host_vendor in |
12574 | sni) |
12575 | shlibpath_overrides_runpath=no |
12576 | need_lib_prefix=no |
12577 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
12578 | runpath_var=LD_RUN_PATH |
12579 | ;; |
12580 | siemens) |
12581 | need_lib_prefix=no |
12582 | ;; |
12583 | motorola) |
12584 | need_lib_prefix=no |
12585 | need_version=no |
12586 | shlibpath_overrides_runpath=no |
12587 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
12588 | ;; |
12589 | esac |
12590 | ;; |
12591 | |
12592 | sysv4*MP*) |
12593 | if test -d /usr/nec ;then |
12594 | version_type=linux |
12595 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
12596 | soname_spec='$libname${shared_ext}.$major' |
12597 | shlibpath_var=LD_LIBRARY_PATH |
12598 | fi |
12599 | ;; |
12600 | |
12601 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
12602 | version_type=freebsd-elf |
12603 | need_lib_prefix=no |
12604 | need_version=no |
12605 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
12606 | soname_spec='${libname}${release}${shared_ext}$major' |
12607 | shlibpath_var=LD_LIBRARY_PATH |
12608 | hardcode_into_libs=yes |
12609 | if test "$with_gnu_ld" = yes; then |
12610 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
12611 | shlibpath_overrides_runpath=no |
12612 | else |
12613 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
12614 | shlibpath_overrides_runpath=yes |
12615 | case $host_os in |
12616 | sco3.2v5*) |
12617 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
12618 | ;; |
12619 | esac |
12620 | fi |
12621 | sys_lib_dlsearch_path_spec='/usr/lib' |
12622 | ;; |
12623 | |
12624 | uts4*) |
12625 | version_type=linux |
12626 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12627 | soname_spec='${libname}${release}${shared_ext}$major' |
12628 | shlibpath_var=LD_LIBRARY_PATH |
12629 | ;; |
12630 | |
12631 | *) |
12632 | dynamic_linker=no |
12633 | ;; |
12634 | esac |
12635 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
12636 | echo "${ECHO_T}$dynamic_linker" >&6 |
12637 | test "$dynamic_linker" = no && can_build_shared=no |
12638 | |
12639 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
12640 | if test "$GCC" = yes; then |
12641 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
12642 | fi |
12643 | |
12644 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
12645 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
12646 | hardcode_action_CXX= |
12647 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
12648 | test -n "$runpath_var_CXX" || \ |
12649 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
12650 | |
12651 | # We can hardcode non-existant directories. |
12652 | if test "$hardcode_direct_CXX" != no && |
12653 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
12654 | # have to relink, otherwise we might link with an installed library |
12655 | # when we should be linking with a yet-to-be-installed one |
12656 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
12657 | test "$hardcode_minus_L_CXX" != no; then |
12658 | # Linking always hardcodes the temporary library directory. |
12659 | hardcode_action_CXX=relink |
12660 | else |
12661 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
12662 | hardcode_action_CXX=immediate |
12663 | fi |
12664 | else |
12665 | # We cannot hardcode anything, or else we can only hardcode existing |
12666 | # directories. |
12667 | hardcode_action_CXX=unsupported |
12668 | fi |
12669 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
12670 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
12671 | |
12672 | if test "$hardcode_action_CXX" = relink; then |
12673 | # Fast installation is not supported |
12674 | enable_fast_install=no |
12675 | elif test "$shlibpath_overrides_runpath" = yes || |
12676 | test "$enable_shared" = no; then |
12677 | # Fast installation is not necessary |
12678 | enable_fast_install=needless |
12679 | fi |
12680 | |
12681 | |
12682 | # The else clause should only fire when bootstrapping the |
12683 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
12684 | # with your package, and you will get complaints that there are |
12685 | # no rules to generate ltmain.sh. |
12686 | if test -f "$ltmain"; then |
12687 | # See if we are running on zsh, and set the options which allow our commands through |
12688 | # without removal of \ escapes. |
12689 | if test -n "${ZSH_VERSION+set}" ; then |
12690 | setopt NO_GLOB_SUBST |
12691 | fi |
12692 | # Now quote all the things that may contain metacharacters while being |
12693 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
12694 | # variables and quote the copies for generation of the libtool script. |
12695 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
12696 | SED SHELL STRIP \ |
12697 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
12698 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
12699 | deplibs_check_method reload_flag reload_cmds need_locks \ |
12700 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
12701 | lt_cv_sys_global_symbol_to_c_name_address \ |
12702 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
12703 | old_postinstall_cmds old_postuninstall_cmds \ |
12704 | compiler_CXX \ |
12705 | CC_CXX \ |
12706 | LD_CXX \ |
12707 | lt_prog_compiler_wl_CXX \ |
12708 | lt_prog_compiler_pic_CXX \ |
12709 | lt_prog_compiler_static_CXX \ |
12710 | lt_prog_compiler_no_builtin_flag_CXX \ |
12711 | export_dynamic_flag_spec_CXX \ |
12712 | thread_safe_flag_spec_CXX \ |
12713 | whole_archive_flag_spec_CXX \ |
12714 | enable_shared_with_static_runtimes_CXX \ |
12715 | old_archive_cmds_CXX \ |
12716 | old_archive_from_new_cmds_CXX \ |
12717 | predep_objects_CXX \ |
12718 | postdep_objects_CXX \ |
12719 | predeps_CXX \ |
12720 | postdeps_CXX \ |
12721 | compiler_lib_search_path_CXX \ |
12722 | archive_cmds_CXX \ |
12723 | archive_expsym_cmds_CXX \ |
12724 | postinstall_cmds_CXX \ |
12725 | postuninstall_cmds_CXX \ |
12726 | old_archive_from_expsyms_cmds_CXX \ |
12727 | allow_undefined_flag_CXX \ |
12728 | no_undefined_flag_CXX \ |
12729 | export_symbols_cmds_CXX \ |
12730 | hardcode_libdir_flag_spec_CXX \ |
12731 | hardcode_libdir_flag_spec_ld_CXX \ |
12732 | hardcode_libdir_separator_CXX \ |
12733 | hardcode_automatic_CXX \ |
12734 | module_cmds_CXX \ |
12735 | module_expsym_cmds_CXX \ |
12736 | lt_cv_prog_compiler_c_o_CXX \ |
12737 | exclude_expsyms_CXX \ |
12738 | include_expsyms_CXX; do |
12739 | |
12740 | case $var in |
12741 | old_archive_cmds_CXX | \ |
12742 | old_archive_from_new_cmds_CXX | \ |
12743 | archive_cmds_CXX | \ |
12744 | archive_expsym_cmds_CXX | \ |
12745 | module_cmds_CXX | \ |
12746 | module_expsym_cmds_CXX | \ |
12747 | old_archive_from_expsyms_cmds_CXX | \ |
12748 | export_symbols_cmds_CXX | \ |
12749 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
12750 | postinstall_cmds | postuninstall_cmds | \ |
12751 | old_postinstall_cmds | old_postuninstall_cmds | \ |
12752 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
12753 | # Double-quote double-evaled strings. |
12754 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
12755 | ;; |
12756 | *) |
12757 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
12758 | ;; |
12759 | esac |
12760 | done |
12761 | |
12762 | case $lt_echo in |
12763 | *'\$0 --fallback-echo"') |
12764 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
12765 | ;; |
12766 | esac |
12767 | |
12768 | cfgfile="$ofile" |
12769 | |
12770 | cat <<__EOF__ >> "$cfgfile" |
12771 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
12772 | |
12773 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
12774 | |
12775 | # Shell to use when invoking shell scripts. |
12776 | SHELL=$lt_SHELL |
12777 | |
12778 | # Whether or not to build shared libraries. |
12779 | build_libtool_libs=$enable_shared |
12780 | |
12781 | # Whether or not to build static libraries. |
12782 | build_old_libs=$enable_static |
12783 | |
12784 | # Whether or not to add -lc for building shared libraries. |
12785 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
12786 | |
12787 | # Whether or not to disallow shared libs when runtime libs are static |
12788 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
12789 | |
12790 | # Whether or not to optimize for fast installation. |
12791 | fast_install=$enable_fast_install |
12792 | |
12793 | # The host system. |
12794 | host_alias=$host_alias |
12795 | host=$host |
12796 | host_os=$host_os |
12797 | |
12798 | # The build system. |
12799 | build_alias=$build_alias |
12800 | build=$build |
12801 | build_os=$build_os |
12802 | |
12803 | # An echo program that does not interpret backslashes. |
12804 | echo=$lt_echo |
12805 | |
12806 | # The archiver. |
12807 | AR=$lt_AR |
12808 | AR_FLAGS=$lt_AR_FLAGS |
12809 | |
12810 | # A C compiler. |
12811 | LTCC=$lt_LTCC |
12812 | |
12813 | # LTCC compiler flags. |
12814 | LTCFLAGS=$lt_LTCFLAGS |
12815 | |
12816 | # A language-specific compiler. |
12817 | CC=$lt_compiler_CXX |
12818 | |
12819 | # Is the compiler the GNU C compiler? |
12820 | with_gcc=$GCC_CXX |
12821 | |
12822 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
12823 | gcc_ver=\`gcc -dumpversion\` |
12824 | |
12825 | # An ERE matcher. |
12826 | EGREP=$lt_EGREP |
12827 | |
12828 | # The linker used to build libraries. |
12829 | LD=$lt_LD_CXX |
12830 | |
12831 | # Whether we need hard or soft links. |
12832 | LN_S=$lt_LN_S |
12833 | |
12834 | # A BSD-compatible nm program. |
12835 | NM=$lt_NM |
12836 | |
12837 | # A symbol stripping program |
12838 | STRIP=$lt_STRIP |
12839 | |
12840 | # Used to examine libraries when file_magic_cmd begins "file" |
12841 | MAGIC_CMD=$MAGIC_CMD |
12842 | |
12843 | # Used on cygwin: DLL creation program. |
12844 | DLLTOOL="$DLLTOOL" |
12845 | |
12846 | # Used on cygwin: object dumper. |
12847 | OBJDUMP="$OBJDUMP" |
12848 | |
12849 | # Used on cygwin: assembler. |
12850 | AS="$AS" |
12851 | |
12852 | # The name of the directory that contains temporary libtool files. |
12853 | objdir=$objdir |
12854 | |
12855 | # How to create reloadable object files. |
12856 | reload_flag=$lt_reload_flag |
12857 | reload_cmds=$lt_reload_cmds |
12858 | |
12859 | # How to pass a linker flag through the compiler. |
12860 | wl=$lt_lt_prog_compiler_wl_CXX |
12861 | |
12862 | # Object file suffix (normally "o"). |
12863 | objext="$ac_objext" |
12864 | |
12865 | # Old archive suffix (normally "a"). |
12866 | libext="$libext" |
12867 | |
12868 | # Shared library suffix (normally ".so"). |
12869 | shrext_cmds='$shrext_cmds' |
12870 | |
12871 | # Executable file suffix (normally ""). |
12872 | exeext="$exeext" |
12873 | |
12874 | # Additional compiler flags for building library objects. |
12875 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
12876 | pic_mode=$pic_mode |
12877 | |
12878 | # What is the maximum length of a command? |
12879 | max_cmd_len=$lt_cv_sys_max_cmd_len |
12880 | |
12881 | # Does compiler simultaneously support -c and -o options? |
12882 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
12883 | |
12884 | # Must we lock files when doing compilation? |
12885 | need_locks=$lt_need_locks |
12886 | |
12887 | # Do we need the lib prefix for modules? |
12888 | need_lib_prefix=$need_lib_prefix |
12889 | |
12890 | # Do we need a version for libraries? |
12891 | need_version=$need_version |
12892 | |
12893 | # Whether dlopen is supported. |
12894 | dlopen_support=$enable_dlopen |
12895 | |
12896 | # Whether dlopen of programs is supported. |
12897 | dlopen_self=$enable_dlopen_self |
12898 | |
12899 | # Whether dlopen of statically linked programs is supported. |
12900 | dlopen_self_static=$enable_dlopen_self_static |
12901 | |
12902 | # Compiler flag to prevent dynamic linking. |
12903 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
12904 | |
12905 | # Compiler flag to turn off builtin functions. |
12906 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
12907 | |
12908 | # Compiler flag to allow reflexive dlopens. |
12909 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
12910 | |
12911 | # Compiler flag to generate shared objects directly from archives. |
12912 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
12913 | |
12914 | # Compiler flag to generate thread-safe objects. |
12915 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
12916 | |
12917 | # Library versioning type. |
12918 | version_type=$version_type |
12919 | |
12920 | # Format of library name prefix. |
12921 | libname_spec=$lt_libname_spec |
12922 | |
12923 | # List of archive names. First name is the real one, the rest are links. |
12924 | # The last name is the one that the linker finds with -lNAME. |
12925 | library_names_spec=$lt_library_names_spec |
12926 | |
12927 | # The coded name of the library, if different from the real name. |
12928 | soname_spec=$lt_soname_spec |
12929 | |
12930 | # Commands used to build and install an old-style archive. |
12931 | RANLIB=$lt_RANLIB |
12932 | old_archive_cmds=$lt_old_archive_cmds_CXX |
12933 | old_postinstall_cmds=$lt_old_postinstall_cmds |
12934 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
12935 | |
12936 | # Create an old-style archive from a shared archive. |
12937 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
12938 | |
12939 | # Create a temporary old-style archive to link instead of a shared archive. |
12940 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
12941 | |
12942 | # Commands used to build and install a shared archive. |
12943 | archive_cmds=$lt_archive_cmds_CXX |
12944 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
12945 | postinstall_cmds=$lt_postinstall_cmds |
12946 | postuninstall_cmds=$lt_postuninstall_cmds |
12947 | |
12948 | # Commands used to build a loadable module (assumed same as above if empty) |
12949 | module_cmds=$lt_module_cmds_CXX |
12950 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
12951 | |
12952 | # Commands to strip libraries. |
12953 | old_striplib=$lt_old_striplib |
12954 | striplib=$lt_striplib |
12955 | |
12956 | # Dependencies to place before the objects being linked to create a |
12957 | # shared library. |
12958 | predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
12959 | |
12960 | # Dependencies to place after the objects being linked to create a |
12961 | # shared library. |
12962 | postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
12963 | |
12964 | # Dependencies to place before the objects being linked to create a |
12965 | # shared library. |
12966 | predeps=$lt_predeps_CXX |
12967 | |
12968 | # Dependencies to place after the objects being linked to create a |
12969 | # shared library. |
12970 | postdeps=$lt_postdeps_CXX |
12971 | |
12972 | # The library search path used internally by the compiler when linking |
12973 | # a shared library. |
12974 | 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"\` |
12975 | |
12976 | # Method to check whether dependent libraries are shared objects. |
12977 | deplibs_check_method=$lt_deplibs_check_method |
12978 | |
12979 | # Command to use when deplibs_check_method == file_magic. |
12980 | file_magic_cmd=$lt_file_magic_cmd |
12981 | |
12982 | # Flag that allows shared libraries with undefined symbols to be built. |
12983 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
12984 | |
12985 | # Flag that forces no undefined symbols. |
12986 | no_undefined_flag=$lt_no_undefined_flag_CXX |
12987 | |
12988 | # Commands used to finish a libtool library installation in a directory. |
12989 | finish_cmds=$lt_finish_cmds |
12990 | |
12991 | # Same as above, but a single script fragment to be evaled but not shown. |
12992 | finish_eval=$lt_finish_eval |
12993 | |
12994 | # Take the output of nm and produce a listing of raw symbols and C names. |
12995 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
12996 | |
12997 | # Transform the output of nm in a proper C declaration |
12998 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
12999 | |
13000 | # Transform the output of nm in a C name address pair |
13001 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
13002 | |
13003 | # This is the shared library runtime path variable. |
13004 | runpath_var=$runpath_var |
13005 | |
13006 | # This is the shared library path variable. |
13007 | shlibpath_var=$shlibpath_var |
13008 | |
13009 | # Is shlibpath searched before the hard-coded library search path? |
13010 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
13011 | |
13012 | # How to hardcode a shared library path into an executable. |
13013 | hardcode_action=$hardcode_action_CXX |
13014 | |
13015 | # Whether we should hardcode library paths into libraries. |
13016 | hardcode_into_libs=$hardcode_into_libs |
13017 | |
13018 | # Flag to hardcode \$libdir into a binary during linking. |
13019 | # This must work even if \$libdir does not exist. |
13020 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
13021 | |
13022 | # If ld is used when linking, flag to hardcode \$libdir into |
13023 | # a binary during linking. This must work even if \$libdir does |
13024 | # not exist. |
13025 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
13026 | |
13027 | # Whether we need a single -rpath flag with a separated argument. |
13028 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
13029 | |
13030 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
13031 | # resulting binary. |
13032 | hardcode_direct=$hardcode_direct_CXX |
13033 | |
13034 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
13035 | # resulting binary. |
13036 | hardcode_minus_L=$hardcode_minus_L_CXX |
13037 | |
13038 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
13039 | # the resulting binary. |
13040 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
13041 | |
13042 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
13043 | # and all subsequent libraries and executables linked against it. |
13044 | hardcode_automatic=$hardcode_automatic_CXX |
13045 | |
13046 | # Variables whose values should be saved in libtool wrapper scripts and |
13047 | # restored at relink time. |
13048 | variables_saved_for_relink="$variables_saved_for_relink" |
13049 | |
13050 | # Whether libtool must link a program against all its dependency libraries. |
13051 | link_all_deplibs=$link_all_deplibs_CXX |
13052 | |
13053 | # Compile-time system search path for libraries |
13054 | 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"\` |
13055 | |
13056 | # Run-time system search path for libraries |
13057 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
13058 | |
13059 | # Fix the shell variable \$srcfile for the compiler. |
13060 | fix_srcfile_path="$fix_srcfile_path_CXX" |
13061 | |
13062 | # Set to yes if exported symbols are required. |
13063 | always_export_symbols=$always_export_symbols_CXX |
13064 | |
13065 | # The commands to list exported symbols. |
13066 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
13067 | |
13068 | # The commands to extract the exported symbol list from a shared archive. |
13069 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
13070 | |
13071 | # Symbols that should not be listed in the preloaded symbols. |
13072 | exclude_expsyms=$lt_exclude_expsyms_CXX |
13073 | |
13074 | # Symbols that must always be exported. |
13075 | include_expsyms=$lt_include_expsyms_CXX |
13076 | |
13077 | # ### END LIBTOOL TAG CONFIG: $tagname |
13078 | |
13079 | __EOF__ |
13080 | |
13081 | |
13082 | else |
13083 | # If there is no Makefile yet, we rely on a make rule to execute |
13084 | # `config.status --recheck' to rerun these tests and create the |
13085 | # libtool script then. |
13086 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
13087 | if test -f "$ltmain_in"; then |
13088 | test -f Makefile && make "$ltmain" |
13089 | fi |
13090 | fi |
13091 | |
13092 | |
13093 | ac_ext=c |
13094 | ac_cpp='$CPP $CPPFLAGS' |
13095 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
13096 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13097 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
13098 | |
13099 | CC=$lt_save_CC |
13100 | LDCXX=$LD |
13101 | LD=$lt_save_LD |
13102 | GCC=$lt_save_GCC |
13103 | with_gnu_ldcxx=$with_gnu_ld |
13104 | with_gnu_ld=$lt_save_with_gnu_ld |
13105 | lt_cv_path_LDCXX=$lt_cv_path_LD |
13106 | lt_cv_path_LD=$lt_save_path_LD |
13107 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
13108 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
13109 | |
13110 | else |
13111 | tagname="" |
13112 | fi |
13113 | ;; |
13114 | |
13115 | F77) |
13116 | if test -n "$F77" && test "X$F77" != "Xno"; then |
13117 | |
13118 | ac_ext=f |
13119 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
13120 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13121 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
13122 | |
13123 | |
13124 | archive_cmds_need_lc_F77=no |
13125 | allow_undefined_flag_F77= |
13126 | always_export_symbols_F77=no |
13127 | archive_expsym_cmds_F77= |
13128 | export_dynamic_flag_spec_F77= |
13129 | hardcode_direct_F77=no |
13130 | hardcode_libdir_flag_spec_F77= |
13131 | hardcode_libdir_flag_spec_ld_F77= |
13132 | hardcode_libdir_separator_F77= |
13133 | hardcode_minus_L_F77=no |
13134 | hardcode_automatic_F77=no |
13135 | module_cmds_F77= |
13136 | module_expsym_cmds_F77= |
13137 | link_all_deplibs_F77=unknown |
13138 | old_archive_cmds_F77=$old_archive_cmds |
13139 | no_undefined_flag_F77= |
13140 | whole_archive_flag_spec_F77= |
13141 | enable_shared_with_static_runtimes_F77=no |
13142 | |
13143 | # Source file extension for f77 test sources. |
13144 | ac_ext=f |
13145 | |
13146 | # Object file extension for compiled f77 test sources. |
13147 | objext=o |
13148 | objext_F77=$objext |
13149 | |
13150 | # Code to be used in simple compile tests |
13151 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
13152 | |
13153 | # Code to be used in simple link tests |
13154 | lt_simple_link_test_code=" program t\n end\n" |
13155 | |
13156 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
13157 | |
13158 | # If no C compiler was specified, use CC. |
13159 | LTCC=${LTCC-"$CC"} |
13160 | |
13161 | # If no C compiler flags were specified, use CFLAGS. |
13162 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
13163 | |
13164 | # Allow CC to be a program name with arguments. |
13165 | compiler=$CC |
13166 | |
13167 | |
13168 | # save warnings/boilerplate of simple test code |
13169 | ac_outfile=conftest.$ac_objext |
13170 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
13171 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13172 | _lt_compiler_boilerplate=`cat conftest.err` |
13173 | $rm conftest* |
13174 | |
13175 | ac_outfile=conftest.$ac_objext |
13176 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
13177 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13178 | _lt_linker_boilerplate=`cat conftest.err` |
13179 | $rm conftest* |
13180 | |
13181 | |
13182 | # Allow CC to be a program name with arguments. |
13183 | lt_save_CC="$CC" |
13184 | CC=${F77-"f77"} |
13185 | compiler=$CC |
13186 | compiler_F77=$CC |
13187 | for cc_temp in $compiler""; do |
13188 | case $cc_temp in |
13189 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
13190 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
13191 | \-*) ;; |
13192 | *) break;; |
13193 | esac |
13194 | done |
13195 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
13196 | |
13197 | |
13198 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
13199 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
13200 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
13201 | echo "${ECHO_T}$can_build_shared" >&6 |
13202 | |
13203 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
13204 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
13205 | test "$can_build_shared" = "no" && enable_shared=no |
13206 | |
13207 | # On AIX, shared libraries and static libraries use the same namespace, and |
13208 | # are all built from PIC. |
13209 | case $host_os in |
13210 | aix3*) |
13211 | test "$enable_shared" = yes && enable_static=no |
13212 | if test -n "$RANLIB"; then |
13213 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
13214 | postinstall_cmds='$RANLIB $lib' |
13215 | fi |
13216 | ;; |
13217 | aix4* | aix5*) |
13218 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13219 | test "$enable_shared" = yes && enable_static=no |
13220 | fi |
13221 | ;; |
13222 | esac |
13223 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
13224 | echo "${ECHO_T}$enable_shared" >&6 |
13225 | |
13226 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
13227 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
13228 | # Make sure either enable_shared or enable_static is yes. |
13229 | test "$enable_shared" = yes || enable_static=yes |
13230 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
13231 | echo "${ECHO_T}$enable_static" >&6 |
13232 | |
13233 | GCC_F77="$G77" |
13234 | LD_F77="$LD" |
13235 | |
13236 | lt_prog_compiler_wl_F77= |
13237 | lt_prog_compiler_pic_F77= |
13238 | lt_prog_compiler_static_F77= |
13239 | |
13240 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
13241 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
13242 | |
13243 | if test "$GCC" = yes; then |
13244 | lt_prog_compiler_wl_F77='-Wl,' |
13245 | lt_prog_compiler_static_F77='-static' |
13246 | |
13247 | case $host_os in |
13248 | aix*) |
13249 | # All AIX code is PIC. |
13250 | if test "$host_cpu" = ia64; then |
13251 | # AIX 5 now supports IA64 processor |
13252 | lt_prog_compiler_static_F77='-Bstatic' |
13253 | fi |
13254 | ;; |
13255 | |
13256 | amigaos*) |
13257 | # FIXME: we need at least 68020 code to build shared libraries, but |
13258 | # adding the `-m68020' flag to GCC prevents building anything better, |
13259 | # like `-m68040'. |
13260 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
13261 | ;; |
13262 | |
13263 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
13264 | # PIC is the default for these OSes. |
13265 | ;; |
13266 | |
13267 | mingw* | pw32* | os2*) |
13268 | # This hack is so that the source file can tell whether it is being |
13269 | # built for inclusion in a dll (and should export symbols for example). |
13270 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13271 | ;; |
13272 | |
13273 | darwin* | rhapsody*) |
13274 | # PIC is the default on this platform |
13275 | # Common symbols not allowed in MH_DYLIB files |
13276 | lt_prog_compiler_pic_F77='-fno-common' |
13277 | ;; |
13278 | |
13279 | interix3*) |
13280 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
13281 | # Instead, we relocate shared libraries at runtime. |
13282 | ;; |
13283 | |
13284 | msdosdjgpp*) |
13285 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
13286 | # on systems that don't support them. |
13287 | lt_prog_compiler_can_build_shared_F77=no |
13288 | enable_shared=no |
13289 | ;; |
13290 | |
13291 | sysv4*MP*) |
13292 | if test -d /usr/nec; then |
13293 | lt_prog_compiler_pic_F77=-Kconform_pic |
13294 | fi |
13295 | ;; |
13296 | |
13297 | hpux*) |
13298 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13299 | # not for PA HP-UX. |
13300 | case $host_cpu in |
13301 | hppa*64*|ia64*) |
13302 | # +Z the default |
13303 | ;; |
13304 | *) |
13305 | lt_prog_compiler_pic_F77='-fPIC' |
13306 | ;; |
13307 | esac |
13308 | ;; |
13309 | |
13310 | *) |
13311 | lt_prog_compiler_pic_F77='-fPIC' |
13312 | ;; |
13313 | esac |
13314 | else |
13315 | # PORTME Check for flag to pass linker flags through the system compiler. |
13316 | case $host_os in |
13317 | aix*) |
13318 | lt_prog_compiler_wl_F77='-Wl,' |
13319 | if test "$host_cpu" = ia64; then |
13320 | # AIX 5 now supports IA64 processor |
13321 | lt_prog_compiler_static_F77='-Bstatic' |
13322 | else |
13323 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
13324 | fi |
13325 | ;; |
13326 | darwin*) |
13327 | # PIC is the default on this platform |
13328 | # Common symbols not allowed in MH_DYLIB files |
13329 | case $cc_basename in |
13330 | xlc*) |
13331 | lt_prog_compiler_pic_F77='-qnocommon' |
13332 | lt_prog_compiler_wl_F77='-Wl,' |
13333 | ;; |
13334 | esac |
13335 | ;; |
13336 | |
13337 | mingw* | pw32* | os2*) |
13338 | # This hack is so that the source file can tell whether it is being |
13339 | # built for inclusion in a dll (and should export symbols for example). |
13340 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13341 | ;; |
13342 | |
13343 | hpux9* | hpux10* | hpux11*) |
13344 | lt_prog_compiler_wl_F77='-Wl,' |
13345 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13346 | # not for PA HP-UX. |
13347 | case $host_cpu in |
13348 | hppa*64*|ia64*) |
13349 | # +Z the default |
13350 | ;; |
13351 | *) |
13352 | lt_prog_compiler_pic_F77='+Z' |
13353 | ;; |
13354 | esac |
13355 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
13356 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
13357 | ;; |
13358 | |
13359 | irix5* | irix6* | nonstopux*) |
13360 | lt_prog_compiler_wl_F77='-Wl,' |
13361 | # PIC (with -KPIC) is the default. |
13362 | lt_prog_compiler_static_F77='-non_shared' |
13363 | ;; |
13364 | |
13365 | newsos6) |
13366 | lt_prog_compiler_pic_F77='-KPIC' |
13367 | lt_prog_compiler_static_F77='-Bstatic' |
13368 | ;; |
13369 | |
13370 | linux*) |
13371 | case $cc_basename in |
13372 | icc* | ecc*) |
13373 | lt_prog_compiler_wl_F77='-Wl,' |
13374 | lt_prog_compiler_pic_F77='-KPIC' |
13375 | lt_prog_compiler_static_F77='-static' |
13376 | ;; |
13377 | pgcc* | pgf77* | pgf90* | pgf95*) |
13378 | # Portland Group compilers (*not* the Pentium gcc compiler, |
13379 | # which looks to be a dead project) |
13380 | lt_prog_compiler_wl_F77='-Wl,' |
13381 | lt_prog_compiler_pic_F77='-fpic' |
13382 | lt_prog_compiler_static_F77='-Bstatic' |
13383 | ;; |
13384 | ccc*) |
13385 | lt_prog_compiler_wl_F77='-Wl,' |
13386 | # All Alpha code is PIC. |
13387 | lt_prog_compiler_static_F77='-non_shared' |
13388 | ;; |
13389 | esac |
13390 | ;; |
13391 | |
13392 | osf3* | osf4* | osf5*) |
13393 | lt_prog_compiler_wl_F77='-Wl,' |
13394 | # All OSF/1 code is PIC. |
13395 | lt_prog_compiler_static_F77='-non_shared' |
13396 | ;; |
13397 | |
13398 | solaris*) |
13399 | lt_prog_compiler_pic_F77='-KPIC' |
13400 | lt_prog_compiler_static_F77='-Bstatic' |
13401 | case $cc_basename in |
13402 | f77* | f90* | f95*) |
13403 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
13404 | *) |
13405 | lt_prog_compiler_wl_F77='-Wl,';; |
13406 | esac |
13407 | ;; |
13408 | |
13409 | sunos4*) |
13410 | lt_prog_compiler_wl_F77='-Qoption ld ' |
13411 | lt_prog_compiler_pic_F77='-PIC' |
13412 | lt_prog_compiler_static_F77='-Bstatic' |
13413 | ;; |
13414 | |
13415 | sysv4 | sysv4.2uw2* | sysv4.3*) |
13416 | lt_prog_compiler_wl_F77='-Wl,' |
13417 | lt_prog_compiler_pic_F77='-KPIC' |
13418 | lt_prog_compiler_static_F77='-Bstatic' |
13419 | ;; |
13420 | |
13421 | sysv4*MP*) |
13422 | if test -d /usr/nec ;then |
13423 | lt_prog_compiler_pic_F77='-Kconform_pic' |
13424 | lt_prog_compiler_static_F77='-Bstatic' |
13425 | fi |
13426 | ;; |
13427 | |
13428 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
13429 | lt_prog_compiler_wl_F77='-Wl,' |
13430 | lt_prog_compiler_pic_F77='-KPIC' |
13431 | lt_prog_compiler_static_F77='-Bstatic' |
13432 | ;; |
13433 | |
13434 | unicos*) |
13435 | lt_prog_compiler_wl_F77='-Wl,' |
13436 | lt_prog_compiler_can_build_shared_F77=no |
13437 | ;; |
13438 | |
13439 | uts4*) |
13440 | lt_prog_compiler_pic_F77='-pic' |
13441 | lt_prog_compiler_static_F77='-Bstatic' |
13442 | ;; |
13443 | |
13444 | *) |
13445 | lt_prog_compiler_can_build_shared_F77=no |
13446 | ;; |
13447 | esac |
13448 | fi |
13449 | |
13450 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
13451 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
13452 | |
13453 | # |
13454 | # Check to make sure the PIC flag actually works. |
13455 | # |
13456 | if test -n "$lt_prog_compiler_pic_F77"; then |
13457 | |
13458 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
13459 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
13460 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
13461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13462 | else |
13463 | lt_prog_compiler_pic_works_F77=no |
13464 | ac_outfile=conftest.$ac_objext |
13465 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
13466 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
13467 | # Insert the option either (1) after the last *FLAGS variable, or |
13468 | # (2) before a word containing "conftest.", or (3) at the end. |
13469 | # Note that $ac_compile itself does not contain backslashes and begins |
13470 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
13471 | # The option is referenced via a variable to avoid confusing sed. |
13472 | lt_compile=`echo "$ac_compile" | $SED \ |
13473 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
13474 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
13475 | -e 's:$: $lt_compiler_flag:'` |
13476 | (eval echo "\"\$as_me:13476: $lt_compile\"" >&5) |
13477 | (eval "$lt_compile" 2>conftest.err) |
13478 | ac_status=$? |
13479 | cat conftest.err >&5 |
13480 | echo "$as_me:13480: \$? = $ac_status" >&5 |
13481 | if (exit $ac_status) && test -s "$ac_outfile"; then |
13482 | # The compiler can only warn and ignore the option if not recognized |
13483 | # So say no if there are warnings other than the usual output. |
13484 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
13485 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
13486 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
13487 | lt_prog_compiler_pic_works_F77=yes |
13488 | fi |
13489 | fi |
13490 | $rm conftest* |
13491 | |
13492 | fi |
13493 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
13494 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
13495 | |
13496 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
13497 | case $lt_prog_compiler_pic_F77 in |
13498 | "" | " "*) ;; |
13499 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
13500 | esac |
13501 | else |
13502 | lt_prog_compiler_pic_F77= |
13503 | lt_prog_compiler_can_build_shared_F77=no |
13504 | fi |
13505 | |
13506 | fi |
13507 | case $host_os in |
13508 | # For platforms which do not support PIC, -DPIC is meaningless: |
13509 | *djgpp*) |
13510 | lt_prog_compiler_pic_F77= |
13511 | ;; |
13512 | *) |
13513 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
13514 | ;; |
13515 | esac |
13516 | |
13517 | # |
13518 | # Check to make sure the static flag actually works. |
13519 | # |
13520 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
13521 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
13522 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
13523 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
13524 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13525 | else |
13526 | lt_prog_compiler_static_works_F77=no |
13527 | save_LDFLAGS="$LDFLAGS" |
13528 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
13529 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
13530 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
13531 | # The linker can only warn and ignore the option if not recognized |
13532 | # So say no if there are warnings |
13533 | if test -s conftest.err; then |
13534 | # Append any errors to the config.log. |
13535 | cat conftest.err 1>&5 |
13536 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
13537 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
13538 | if diff conftest.exp conftest.er2 >/dev/null; then |
13539 | lt_prog_compiler_static_works_F77=yes |
13540 | fi |
13541 | else |
13542 | lt_prog_compiler_static_works_F77=yes |
13543 | fi |
13544 | fi |
13545 | $rm conftest* |
13546 | LDFLAGS="$save_LDFLAGS" |
13547 | |
13548 | fi |
13549 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
13550 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 |
13551 | |
13552 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
13553 | : |
13554 | else |
13555 | lt_prog_compiler_static_F77= |
13556 | fi |
13557 | |
13558 | |
13559 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
13560 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
13561 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
13562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13563 | else |
13564 | lt_cv_prog_compiler_c_o_F77=no |
13565 | $rm -r conftest 2>/dev/null |
13566 | mkdir conftest |
13567 | cd conftest |
13568 | mkdir out |
13569 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
13570 | |
13571 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
13572 | # Insert the option either (1) after the last *FLAGS variable, or |
13573 | # (2) before a word containing "conftest.", or (3) at the end. |
13574 | # Note that $ac_compile itself does not contain backslashes and begins |
13575 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
13576 | lt_compile=`echo "$ac_compile" | $SED \ |
13577 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
13578 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
13579 | -e 's:$: $lt_compiler_flag:'` |
13580 | (eval echo "\"\$as_me:13580: $lt_compile\"" >&5) |
13581 | (eval "$lt_compile" 2>out/conftest.err) |
13582 | ac_status=$? |
13583 | cat out/conftest.err >&5 |
13584 | echo "$as_me:13584: \$? = $ac_status" >&5 |
13585 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13586 | then |
13587 | # The compiler can only warn and ignore the option if not recognized |
13588 | # So say no if there are warnings |
13589 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
13590 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
13591 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
13592 | lt_cv_prog_compiler_c_o_F77=yes |
13593 | fi |
13594 | fi |
13595 | chmod u+w . 2>&5 |
13596 | $rm conftest* |
13597 | # SGI C++ compiler will create directory out/ii_files/ for |
13598 | # template instantiation |
13599 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
13600 | $rm out/* && rmdir out |
13601 | cd .. |
13602 | rmdir conftest |
13603 | $rm conftest* |
13604 | |
13605 | fi |
13606 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
13607 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
13608 | |
13609 | |
13610 | hard_links="nottested" |
13611 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
13612 | # do not overwrite the value of need_locks provided by the user |
13613 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
13614 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
13615 | hard_links=yes |
13616 | $rm conftest* |
13617 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
13618 | touch conftest.a |
13619 | ln conftest.a conftest.b 2>&5 || hard_links=no |
13620 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
13621 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
13622 | echo "${ECHO_T}$hard_links" >&6 |
13623 | if test "$hard_links" = no; then |
13624 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
13625 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
13626 | need_locks=warn |
13627 | fi |
13628 | else |
13629 | need_locks=no |
13630 | fi |
13631 | |
13632 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
13633 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
13634 | |
13635 | runpath_var= |
13636 | allow_undefined_flag_F77= |
13637 | enable_shared_with_static_runtimes_F77=no |
13638 | archive_cmds_F77= |
13639 | archive_expsym_cmds_F77= |
13640 | old_archive_From_new_cmds_F77= |
13641 | old_archive_from_expsyms_cmds_F77= |
13642 | export_dynamic_flag_spec_F77= |
13643 | whole_archive_flag_spec_F77= |
13644 | thread_safe_flag_spec_F77= |
13645 | hardcode_libdir_flag_spec_F77= |
13646 | hardcode_libdir_flag_spec_ld_F77= |
13647 | hardcode_libdir_separator_F77= |
13648 | hardcode_direct_F77=no |
13649 | hardcode_minus_L_F77=no |
13650 | hardcode_shlibpath_var_F77=unsupported |
13651 | link_all_deplibs_F77=unknown |
13652 | hardcode_automatic_F77=no |
13653 | module_cmds_F77= |
13654 | module_expsym_cmds_F77= |
13655 | always_export_symbols_F77=no |
13656 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
13657 | # include_expsyms should be a list of space-separated symbols to be *always* |
13658 | # included in the symbol list |
13659 | include_expsyms_F77= |
13660 | # exclude_expsyms can be an extended regexp of symbols to exclude |
13661 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
13662 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
13663 | # as well as any symbol that contains `d'. |
13664 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
13665 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
13666 | # platforms (ab)use it in PIC code, but their linkers get confused if |
13667 | # the symbol is explicitly referenced. Since portable code cannot |
13668 | # rely on this symbol name, it's probably fine to never include it in |
13669 | # preloaded symbol tables. |
13670 | extract_expsyms_cmds= |
13671 | # Just being paranoid about ensuring that cc_basename is set. |
13672 | for cc_temp in $compiler""; do |
13673 | case $cc_temp in |
13674 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
13675 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
13676 | \-*) ;; |
13677 | *) break;; |
13678 | esac |
13679 | done |
13680 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
13681 | |
13682 | case $host_os in |
13683 | cygwin* | mingw* | pw32*) |
13684 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
13685 | # When not using gcc, we currently assume that we are using |
13686 | # Microsoft Visual C++. |
13687 | if test "$GCC" != yes; then |
13688 | with_gnu_ld=no |
13689 | fi |
13690 | ;; |
13691 | interix*) |
13692 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
13693 | with_gnu_ld=yes |
13694 | ;; |
13695 | openbsd*) |
13696 | with_gnu_ld=no |
13697 | ;; |
13698 | esac |
13699 | |
13700 | ld_shlibs_F77=yes |
13701 | if test "$with_gnu_ld" = yes; then |
13702 | # If archive_cmds runs LD, not CC, wlarc should be empty |
13703 | wlarc='${wl}' |
13704 | |
13705 | # Set some defaults for GNU ld with shared library support. These |
13706 | # are reset later if shared libraries are not supported. Putting them |
13707 | # here allows them to be overridden if necessary. |
13708 | runpath_var=LD_RUN_PATH |
13709 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
13710 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
13711 | # ancient GNU ld didn't support --whole-archive et. al. |
13712 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
13713 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
13714 | else |
13715 | whole_archive_flag_spec_F77= |
13716 | fi |
13717 | supports_anon_versioning=no |
13718 | case `$LD -v 2>/dev/null` in |
13719 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
13720 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
13721 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
13722 | *\ 2.11.*) ;; # other 2.11 versions |
13723 | *) supports_anon_versioning=yes ;; |
13724 | esac |
13725 | |
13726 | # See if GNU ld supports shared libraries. |
13727 | case $host_os in |
13728 | aix3* | aix4* | aix5*) |
13729 | # On AIX/PPC, the GNU linker is very broken |
13730 | if test "$host_cpu" != ia64; then |
13731 | ld_shlibs_F77=no |
13732 | cat <<EOF 1>&2 |
13733 | |
13734 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
13735 | *** to be unable to reliably create shared libraries on AIX. |
13736 | *** Therefore, libtool is disabling shared libraries support. If you |
13737 | *** really care for shared libraries, you may want to modify your PATH |
13738 | *** so that a non-GNU linker is found, and then restart. |
13739 | |
13740 | EOF |
13741 | fi |
13742 | ;; |
13743 | |
13744 | amigaos*) |
13745 | 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)' |
13746 | hardcode_libdir_flag_spec_F77='-L$libdir' |
13747 | hardcode_minus_L_F77=yes |
13748 | |
13749 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
13750 | # that the semantics of dynamic libraries on AmigaOS, at least up |
13751 | # to version 4, is to share data among multiple programs linked |
13752 | # with the same dynamic library. Since this doesn't match the |
13753 | # behavior of shared libraries on other platforms, we can't use |
13754 | # them. |
13755 | ld_shlibs_F77=no |
13756 | ;; |
13757 | |
13758 | beos*) |
13759 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13760 | allow_undefined_flag_F77=unsupported |
13761 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
13762 | # support --undefined. This deserves some investigation. FIXME |
13763 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13764 | else |
13765 | ld_shlibs_F77=no |
13766 | fi |
13767 | ;; |
13768 | |
13769 | cygwin* | mingw* | pw32*) |
13770 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
13771 | # as there is no search path for DLLs. |
13772 | hardcode_libdir_flag_spec_F77='-L$libdir' |
13773 | allow_undefined_flag_F77=unsupported |
13774 | always_export_symbols_F77=no |
13775 | enable_shared_with_static_runtimes_F77=yes |
13776 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
13777 | |
13778 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
13779 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
13780 | # If the export-symbols file already is a .def file (1st line |
13781 | # is EXPORTS), use it as is; otherwise, prepend... |
13782 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
13783 | cp $export_symbols $output_objdir/$soname.def; |
13784 | else |
13785 | echo EXPORTS > $output_objdir/$soname.def; |
13786 | cat $export_symbols >> $output_objdir/$soname.def; |
13787 | fi~ |
13788 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
13789 | else |
13790 | ld_shlibs_F77=no |
13791 | fi |
13792 | ;; |
13793 | |
13794 | interix3*) |
13795 | hardcode_direct_F77=no |
13796 | hardcode_shlibpath_var_F77=no |
13797 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
13798 | export_dynamic_flag_spec_F77='${wl}-E' |
13799 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
13800 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
13801 | # default) and relocated if they conflict, which is a slow very memory |
13802 | # consuming and fragmenting process. To avoid this, we pick a random, |
13803 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
13804 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
13805 | 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' |
13806 | 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' |
13807 | ;; |
13808 | |
13809 | linux*) |
13810 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13811 | tmp_addflag= |
13812 | case $cc_basename,$host_cpu in |
13813 | pgcc*) # Portland Group C compiler |
13814 | 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' |
13815 | tmp_addflag=' $pic_flag' |
13816 | ;; |
13817 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
13818 | 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' |
13819 | tmp_addflag=' $pic_flag -Mnomain' ;; |
13820 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
13821 | tmp_addflag=' -i_dynamic' ;; |
13822 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
13823 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
13824 | ifc* | ifort*) # Intel Fortran compiler |
13825 | tmp_addflag=' -nofor_main' ;; |
13826 | esac |
13827 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13828 | |
13829 | if test $supports_anon_versioning = yes; then |
13830 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
13831 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
13832 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
13833 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
13834 | fi |
13835 | else |
13836 | ld_shlibs_F77=no |
13837 | fi |
13838 | ;; |
13839 | |
13840 | netbsd*) |
13841 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
13842 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
13843 | wlarc= |
13844 | else |
13845 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13846 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
13847 | fi |
13848 | ;; |
13849 | |
13850 | solaris*) |
13851 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
13852 | ld_shlibs_F77=no |
13853 | cat <<EOF 1>&2 |
13854 | |
13855 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
13856 | *** create shared libraries on Solaris systems. Therefore, libtool |
13857 | *** is disabling shared libraries support. We urge you to upgrade GNU |
13858 | *** binutils to release 2.9.1 or newer. Another option is to modify |
13859 | *** your PATH or compiler configuration so that the native linker is |
13860 | *** used, and then restart. |
13861 | |
13862 | EOF |
13863 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13864 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13865 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
13866 | else |
13867 | ld_shlibs_F77=no |
13868 | fi |
13869 | ;; |
13870 | |
13871 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
13872 | case `$LD -v 2>&1` in |
13873 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
13874 | ld_shlibs_F77=no |
13875 | cat <<_LT_EOF 1>&2 |
13876 | |
13877 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
13878 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
13879 | *** is disabling shared libraries support. We urge you to upgrade GNU |
13880 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
13881 | *** your PATH or compiler configuration so that the native linker is |
13882 | *** used, and then restart. |
13883 | |
13884 | _LT_EOF |
13885 | ;; |
13886 | *) |
13887 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13888 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
13889 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
13890 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
13891 | else |
13892 | ld_shlibs_F77=no |
13893 | fi |
13894 | ;; |
13895 | esac |
13896 | ;; |
13897 | |
13898 | sunos4*) |
13899 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
13900 | wlarc= |
13901 | hardcode_direct_F77=yes |
13902 | hardcode_shlibpath_var_F77=no |
13903 | ;; |
13904 | |
13905 | *) |
13906 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13907 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13908 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
13909 | else |
13910 | ld_shlibs_F77=no |
13911 | fi |
13912 | ;; |
13913 | esac |
13914 | |
13915 | if test "$ld_shlibs_F77" = no; then |
13916 | runpath_var= |
13917 | hardcode_libdir_flag_spec_F77= |
13918 | export_dynamic_flag_spec_F77= |
13919 | whole_archive_flag_spec_F77= |
13920 | fi |
13921 | else |
13922 | # PORTME fill in a description of your system's linker (not GNU ld) |
13923 | case $host_os in |
13924 | aix3*) |
13925 | allow_undefined_flag_F77=unsupported |
13926 | always_export_symbols_F77=yes |
13927 | 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' |
13928 | # Note: this linker hardcodes the directories in LIBPATH if there |
13929 | # are no directories specified by -L. |
13930 | hardcode_minus_L_F77=yes |
13931 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
13932 | # Neither direct hardcoding nor static linking is supported with a |
13933 | # broken collect2. |
13934 | hardcode_direct_F77=unsupported |
13935 | fi |
13936 | ;; |
13937 | |
13938 | aix4* | aix5*) |
13939 | if test "$host_cpu" = ia64; then |
13940 | # On IA64, the linker does run time linking by default, so we don't |
13941 | # have to do anything special. |
13942 | aix_use_runtimelinking=no |
13943 | exp_sym_flag='-Bexport' |
13944 | no_entry_flag="" |
13945 | else |
13946 | # If we're using GNU nm, then we don't want the "-C" option. |
13947 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
13948 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
13949 | 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' |
13950 | else |
13951 | 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' |
13952 | fi |
13953 | aix_use_runtimelinking=no |
13954 | |
13955 | # Test if we are trying to use run time linking or normal |
13956 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
13957 | # need to do runtime linking. |
13958 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
13959 | for ld_flag in $LDFLAGS; do |
13960 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
13961 | aix_use_runtimelinking=yes |
13962 | break |
13963 | fi |
13964 | done |
13965 | ;; |
13966 | esac |
13967 | |
13968 | exp_sym_flag='-bexport' |
13969 | no_entry_flag='-bnoentry' |
13970 | fi |
13971 | |
13972 | # When large executables or shared objects are built, AIX ld can |
13973 | # have problems creating the table of contents. If linking a library |
13974 | # or program results in "error TOC overflow" add -mminimal-toc to |
13975 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
13976 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
13977 | |
13978 | archive_cmds_F77='' |
13979 | hardcode_direct_F77=yes |
13980 | hardcode_libdir_separator_F77=':' |
13981 | link_all_deplibs_F77=yes |
13982 | |
13983 | if test "$GCC" = yes; then |
13984 | case $host_os in aix4.[012]|aix4.[012].*) |
13985 | # We only want to do this on AIX 4.2 and lower, the check |
13986 | # below for broken collect2 doesn't work under 4.3+ |
13987 | collect2name=`${CC} -print-prog-name=collect2` |
13988 | if test -f "$collect2name" && \ |
13989 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
13990 | then |
13991 | # We have reworked collect2 |
13992 | hardcode_direct_F77=yes |
13993 | else |
13994 | # We have old collect2 |
13995 | hardcode_direct_F77=unsupported |
13996 | # It fails to find uninstalled libraries when the uninstalled |
13997 | # path is not listed in the libpath. Setting hardcode_minus_L |
13998 | # to unsupported forces relinking |
13999 | hardcode_minus_L_F77=yes |
14000 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14001 | hardcode_libdir_separator_F77= |
14002 | fi |
14003 | ;; |
14004 | esac |
14005 | shared_flag='-shared' |
14006 | if test "$aix_use_runtimelinking" = yes; then |
14007 | shared_flag="$shared_flag "'${wl}-G' |
14008 | fi |
14009 | else |
14010 | # not using gcc |
14011 | if test "$host_cpu" = ia64; then |
14012 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
14013 | # chokes on -Wl,-G. The following line is correct: |
14014 | shared_flag='-G' |
14015 | else |
14016 | if test "$aix_use_runtimelinking" = yes; then |
14017 | shared_flag='${wl}-G' |
14018 | else |
14019 | shared_flag='${wl}-bM:SRE' |
14020 | fi |
14021 | fi |
14022 | fi |
14023 | |
14024 | # It seems that -bexpall does not export symbols beginning with |
14025 | # underscore (_), so it is better to generate a list of symbols to export. |
14026 | always_export_symbols_F77=yes |
14027 | if test "$aix_use_runtimelinking" = yes; then |
14028 | # Warning - without using the other runtime loading flags (-brtl), |
14029 | # -berok will link without error, but may produce a broken library. |
14030 | allow_undefined_flag_F77='-berok' |
14031 | # Determine the default libpath from the value encoded in an empty executable. |
14032 | cat >conftest.$ac_ext <<_ACEOF |
14033 | program main |
14034 | |
14035 | end |
14036 | _ACEOF |
14037 | rm -f conftest.$ac_objext conftest$ac_exeext |
14038 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14039 | (eval $ac_link) 2>conftest.er1 |
14040 | ac_status=$? |
14041 | grep -v '^ *+' conftest.er1 >conftest.err |
14042 | rm -f conftest.er1 |
14043 | cat conftest.err >&5 |
14044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14045 | (exit $ac_status); } && |
14046 | { ac_try='test -z "$ac_f77_werror_flag" |
14047 | || test ! -s conftest.err' |
14048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14049 | (eval $ac_try) 2>&5 |
14050 | ac_status=$? |
14051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14052 | (exit $ac_status); }; } && |
14053 | { ac_try='test -s conftest$ac_exeext' |
14054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14055 | (eval $ac_try) 2>&5 |
14056 | ac_status=$? |
14057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14058 | (exit $ac_status); }; }; then |
14059 | |
14060 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14061 | }'` |
14062 | # Check for a 64-bit object if we didn't find anything. |
14063 | 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; } |
14064 | }'`; fi |
14065 | else |
14066 | echo "$as_me: failed program was:" >&5 |
14067 | sed 's/^/| /' conftest.$ac_ext >&5 |
14068 | |
14069 | fi |
14070 | rm -f conftest.err conftest.$ac_objext \ |
14071 | conftest$ac_exeext conftest.$ac_ext |
14072 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14073 | |
14074 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14075 | 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" |
14076 | else |
14077 | if test "$host_cpu" = ia64; then |
14078 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
14079 | allow_undefined_flag_F77="-z nodefs" |
14080 | 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" |
14081 | else |
14082 | # Determine the default libpath from the value encoded in an empty executable. |
14083 | cat >conftest.$ac_ext <<_ACEOF |
14084 | program main |
14085 | |
14086 | end |
14087 | _ACEOF |
14088 | rm -f conftest.$ac_objext conftest$ac_exeext |
14089 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14090 | (eval $ac_link) 2>conftest.er1 |
14091 | ac_status=$? |
14092 | grep -v '^ *+' conftest.er1 >conftest.err |
14093 | rm -f conftest.er1 |
14094 | cat conftest.err >&5 |
14095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14096 | (exit $ac_status); } && |
14097 | { ac_try='test -z "$ac_f77_werror_flag" |
14098 | || test ! -s conftest.err' |
14099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14100 | (eval $ac_try) 2>&5 |
14101 | ac_status=$? |
14102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14103 | (exit $ac_status); }; } && |
14104 | { ac_try='test -s conftest$ac_exeext' |
14105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14106 | (eval $ac_try) 2>&5 |
14107 | ac_status=$? |
14108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14109 | (exit $ac_status); }; }; then |
14110 | |
14111 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14112 | }'` |
14113 | # Check for a 64-bit object if we didn't find anything. |
14114 | 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; } |
14115 | }'`; fi |
14116 | else |
14117 | echo "$as_me: failed program was:" >&5 |
14118 | sed 's/^/| /' conftest.$ac_ext >&5 |
14119 | |
14120 | fi |
14121 | rm -f conftest.err conftest.$ac_objext \ |
14122 | conftest$ac_exeext conftest.$ac_ext |
14123 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14124 | |
14125 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14126 | # Warning - without using the other run time loading flags, |
14127 | # -berok will link without error, but may produce a broken library. |
14128 | no_undefined_flag_F77=' ${wl}-bernotok' |
14129 | allow_undefined_flag_F77=' ${wl}-berok' |
14130 | # Exported symbols can be pulled into shared objects from archives |
14131 | whole_archive_flag_spec_F77='$convenience' |
14132 | archive_cmds_need_lc_F77=yes |
14133 | # This is similar to how AIX traditionally builds its shared libraries. |
14134 | 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' |
14135 | fi |
14136 | fi |
14137 | ;; |
14138 | |
14139 | amigaos*) |
14140 | 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)' |
14141 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14142 | hardcode_minus_L_F77=yes |
14143 | # see comment about different semantics on the GNU ld section |
14144 | ld_shlibs_F77=no |
14145 | ;; |
14146 | |
14147 | bsdi[45]*) |
14148 | export_dynamic_flag_spec_F77=-rdynamic |
14149 | ;; |
14150 | |
14151 | cygwin* | mingw* | pw32*) |
14152 | # When not using gcc, we currently assume that we are using |
14153 | # Microsoft Visual C++. |
14154 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
14155 | # no search path for DLLs. |
14156 | hardcode_libdir_flag_spec_F77=' ' |
14157 | allow_undefined_flag_F77=unsupported |
14158 | # Tell ltmain to make .lib files, not .a files. |
14159 | libext=lib |
14160 | # Tell ltmain to make .dll files, not .so files. |
14161 | shrext_cmds=".dll" |
14162 | # FIXME: Setting linknames here is a bad hack. |
14163 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
14164 | # The linker will automatically build a .lib file if we build a DLL. |
14165 | old_archive_From_new_cmds_F77='true' |
14166 | # FIXME: Should let the user specify the lib program. |
14167 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
14168 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
14169 | enable_shared_with_static_runtimes_F77=yes |
14170 | ;; |
14171 | |
14172 | darwin* | rhapsody*) |
14173 | case $host_os in |
14174 | rhapsody* | darwin1.[012]) |
14175 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
14176 | ;; |
14177 | *) # Darwin 1.3 on |
14178 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
14179 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14180 | else |
14181 | case ${MACOSX_DEPLOYMENT_TARGET} in |
14182 | 10.[012]) |
14183 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14184 | ;; |
14185 | 10.*) |
14186 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
14187 | ;; |
14188 | esac |
14189 | fi |
14190 | ;; |
14191 | esac |
14192 | archive_cmds_need_lc_F77=no |
14193 | hardcode_direct_F77=no |
14194 | hardcode_automatic_F77=yes |
14195 | hardcode_shlibpath_var_F77=unsupported |
14196 | whole_archive_flag_spec_F77='' |
14197 | link_all_deplibs_F77=yes |
14198 | if test "$GCC" = yes ; then |
14199 | output_verbose_link_cmd='echo' |
14200 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
14201 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14202 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14203 | 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}' |
14204 | 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}' |
14205 | else |
14206 | case $cc_basename in |
14207 | xlc*) |
14208 | output_verbose_link_cmd='echo' |
14209 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
14210 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14211 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14212 | 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}' |
14213 | 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}' |
14214 | ;; |
14215 | *) |
14216 | ld_shlibs_F77=no |
14217 | ;; |
14218 | esac |
14219 | fi |
14220 | ;; |
14221 | |
14222 | dgux*) |
14223 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14224 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14225 | hardcode_shlibpath_var_F77=no |
14226 | ;; |
14227 | |
14228 | freebsd1*) |
14229 | ld_shlibs_F77=no |
14230 | ;; |
14231 | |
14232 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
14233 | # support. Future versions do this automatically, but an explicit c++rt0.o |
14234 | # does not break anything, and helps significantly (at the cost of a little |
14235 | # extra space). |
14236 | freebsd2.2*) |
14237 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
14238 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14239 | hardcode_direct_F77=yes |
14240 | hardcode_shlibpath_var_F77=no |
14241 | ;; |
14242 | |
14243 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
14244 | freebsd2*) |
14245 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14246 | hardcode_direct_F77=yes |
14247 | hardcode_minus_L_F77=yes |
14248 | hardcode_shlibpath_var_F77=no |
14249 | ;; |
14250 | |
14251 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
14252 | freebsd* | kfreebsd*-gnu | dragonfly*) |
14253 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
14254 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14255 | hardcode_direct_F77=yes |
14256 | hardcode_shlibpath_var_F77=no |
14257 | ;; |
14258 | |
14259 | hpux9*) |
14260 | if test "$GCC" = yes; then |
14261 | 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' |
14262 | else |
14263 | 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' |
14264 | fi |
14265 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14266 | hardcode_libdir_separator_F77=: |
14267 | hardcode_direct_F77=yes |
14268 | |
14269 | # hardcode_minus_L: Not really in the search PATH, |
14270 | # but as the default location of the library. |
14271 | hardcode_minus_L_F77=yes |
14272 | export_dynamic_flag_spec_F77='${wl}-E' |
14273 | ;; |
14274 | |
14275 | hpux10*) |
14276 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14277 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14278 | else |
14279 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
14280 | fi |
14281 | if test "$with_gnu_ld" = no; then |
14282 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14283 | hardcode_libdir_separator_F77=: |
14284 | |
14285 | hardcode_direct_F77=yes |
14286 | export_dynamic_flag_spec_F77='${wl}-E' |
14287 | |
14288 | # hardcode_minus_L: Not really in the search PATH, |
14289 | # but as the default location of the library. |
14290 | hardcode_minus_L_F77=yes |
14291 | fi |
14292 | ;; |
14293 | |
14294 | hpux11*) |
14295 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14296 | case $host_cpu in |
14297 | hppa*64*) |
14298 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14299 | ;; |
14300 | ia64*) |
14301 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14302 | ;; |
14303 | *) |
14304 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14305 | ;; |
14306 | esac |
14307 | else |
14308 | case $host_cpu in |
14309 | hppa*64*) |
14310 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14311 | ;; |
14312 | ia64*) |
14313 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14314 | ;; |
14315 | *) |
14316 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14317 | ;; |
14318 | esac |
14319 | fi |
14320 | if test "$with_gnu_ld" = no; then |
14321 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14322 | hardcode_libdir_separator_F77=: |
14323 | |
14324 | case $host_cpu in |
14325 | hppa*64*|ia64*) |
14326 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
14327 | hardcode_direct_F77=no |
14328 | hardcode_shlibpath_var_F77=no |
14329 | ;; |
14330 | *) |
14331 | hardcode_direct_F77=yes |
14332 | export_dynamic_flag_spec_F77='${wl}-E' |
14333 | |
14334 | # hardcode_minus_L: Not really in the search PATH, |
14335 | # but as the default location of the library. |
14336 | hardcode_minus_L_F77=yes |
14337 | ;; |
14338 | esac |
14339 | fi |
14340 | ;; |
14341 | |
14342 | irix5* | irix6* | nonstopux*) |
14343 | if test "$GCC" = yes; then |
14344 | 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' |
14345 | else |
14346 | 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' |
14347 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
14348 | fi |
14349 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14350 | hardcode_libdir_separator_F77=: |
14351 | link_all_deplibs_F77=yes |
14352 | ;; |
14353 | |
14354 | netbsd*) |
14355 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14356 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
14357 | else |
14358 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
14359 | fi |
14360 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14361 | hardcode_direct_F77=yes |
14362 | hardcode_shlibpath_var_F77=no |
14363 | ;; |
14364 | |
14365 | newsos6) |
14366 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14367 | hardcode_direct_F77=yes |
14368 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14369 | hardcode_libdir_separator_F77=: |
14370 | hardcode_shlibpath_var_F77=no |
14371 | ;; |
14372 | |
14373 | openbsd*) |
14374 | hardcode_direct_F77=yes |
14375 | hardcode_shlibpath_var_F77=no |
14376 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
14377 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14378 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
14379 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14380 | export_dynamic_flag_spec_F77='${wl}-E' |
14381 | else |
14382 | case $host_os in |
14383 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
14384 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14385 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14386 | ;; |
14387 | *) |
14388 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14389 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14390 | ;; |
14391 | esac |
14392 | fi |
14393 | ;; |
14394 | |
14395 | os2*) |
14396 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14397 | hardcode_minus_L_F77=yes |
14398 | allow_undefined_flag_F77=unsupported |
14399 | 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' |
14400 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
14401 | ;; |
14402 | |
14403 | osf3*) |
14404 | if test "$GCC" = yes; then |
14405 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
14406 | 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' |
14407 | else |
14408 | allow_undefined_flag_F77=' -expect_unresolved \*' |
14409 | 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' |
14410 | fi |
14411 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14412 | hardcode_libdir_separator_F77=: |
14413 | ;; |
14414 | |
14415 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
14416 | if test "$GCC" = yes; then |
14417 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
14418 | 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' |
14419 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14420 | else |
14421 | allow_undefined_flag_F77=' -expect_unresolved \*' |
14422 | 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' |
14423 | 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~ |
14424 | $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' |
14425 | |
14426 | # Both c and cxx compiler support -rpath directly |
14427 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
14428 | fi |
14429 | hardcode_libdir_separator_F77=: |
14430 | ;; |
14431 | |
14432 | solaris*) |
14433 | no_undefined_flag_F77=' -z text' |
14434 | if test "$GCC" = yes; then |
14435 | wlarc='${wl}' |
14436 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14437 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14438 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
14439 | else |
14440 | wlarc='' |
14441 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14442 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14443 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
14444 | fi |
14445 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14446 | hardcode_shlibpath_var_F77=no |
14447 | case $host_os in |
14448 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
14449 | *) |
14450 | # The compiler driver will combine linker options so we |
14451 | # cannot just pass the convience library names through |
14452 | # without $wl, iff we do not link with $LD. |
14453 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
14454 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
14455 | case $wlarc in |
14456 | '') |
14457 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
14458 | *) |
14459 | 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' ;; |
14460 | esac ;; |
14461 | esac |
14462 | link_all_deplibs_F77=yes |
14463 | ;; |
14464 | |
14465 | sunos4*) |
14466 | if test "x$host_vendor" = xsequent; then |
14467 | # Use $CC to link under sequent, because it throws in some extra .o |
14468 | # files that make .init and .fini sections work. |
14469 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
14470 | else |
14471 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
14472 | fi |
14473 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14474 | hardcode_direct_F77=yes |
14475 | hardcode_minus_L_F77=yes |
14476 | hardcode_shlibpath_var_F77=no |
14477 | ;; |
14478 | |
14479 | sysv4) |
14480 | case $host_vendor in |
14481 | sni) |
14482 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14483 | hardcode_direct_F77=yes # is this really true??? |
14484 | ;; |
14485 | siemens) |
14486 | ## LD is ld it makes a PLAMLIB |
14487 | ## CC just makes a GrossModule. |
14488 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
14489 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
14490 | hardcode_direct_F77=no |
14491 | ;; |
14492 | motorola) |
14493 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14494 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
14495 | ;; |
14496 | esac |
14497 | runpath_var='LD_RUN_PATH' |
14498 | hardcode_shlibpath_var_F77=no |
14499 | ;; |
14500 | |
14501 | sysv4.3*) |
14502 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14503 | hardcode_shlibpath_var_F77=no |
14504 | export_dynamic_flag_spec_F77='-Bexport' |
14505 | ;; |
14506 | |
14507 | sysv4*MP*) |
14508 | if test -d /usr/nec; then |
14509 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14510 | hardcode_shlibpath_var_F77=no |
14511 | runpath_var=LD_RUN_PATH |
14512 | hardcode_runpath_var=yes |
14513 | ld_shlibs_F77=yes |
14514 | fi |
14515 | ;; |
14516 | |
14517 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
14518 | no_undefined_flag_F77='${wl}-z,text' |
14519 | archive_cmds_need_lc_F77=no |
14520 | hardcode_shlibpath_var_F77=no |
14521 | runpath_var='LD_RUN_PATH' |
14522 | |
14523 | if test "$GCC" = yes; then |
14524 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14525 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14526 | else |
14527 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14528 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14529 | fi |
14530 | ;; |
14531 | |
14532 | sysv5* | sco3.2v5* | sco5v6*) |
14533 | # Note: We can NOT use -z defs as we might desire, because we do not |
14534 | # link with -lc, and that would cause any symbols used from libc to |
14535 | # always be unresolved, which means just about no library would |
14536 | # ever link correctly. If we're not using GNU ld we use -z text |
14537 | # though, which does catch some bad symbols but isn't as heavy-handed |
14538 | # as -z defs. |
14539 | no_undefined_flag_F77='${wl}-z,text' |
14540 | allow_undefined_flag_F77='${wl}-z,nodefs' |
14541 | archive_cmds_need_lc_F77=no |
14542 | hardcode_shlibpath_var_F77=no |
14543 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
14544 | hardcode_libdir_separator_F77=':' |
14545 | link_all_deplibs_F77=yes |
14546 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
14547 | runpath_var='LD_RUN_PATH' |
14548 | |
14549 | if test "$GCC" = yes; then |
14550 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14551 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14552 | else |
14553 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14554 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14555 | fi |
14556 | ;; |
14557 | |
14558 | uts4*) |
14559 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14560 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14561 | hardcode_shlibpath_var_F77=no |
14562 | ;; |
14563 | |
14564 | *) |
14565 | ld_shlibs_F77=no |
14566 | ;; |
14567 | esac |
14568 | fi |
14569 | |
14570 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
14571 | echo "${ECHO_T}$ld_shlibs_F77" >&6 |
14572 | test "$ld_shlibs_F77" = no && can_build_shared=no |
14573 | |
14574 | # |
14575 | # Do we need to explicitly link libc? |
14576 | # |
14577 | case "x$archive_cmds_need_lc_F77" in |
14578 | x|xyes) |
14579 | # Assume -lc should be added |
14580 | archive_cmds_need_lc_F77=yes |
14581 | |
14582 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
14583 | case $archive_cmds_F77 in |
14584 | *'~'*) |
14585 | # FIXME: we may have to deal with multi-command sequences. |
14586 | ;; |
14587 | '$CC '*) |
14588 | # Test whether the compiler implicitly links with -lc since on some |
14589 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
14590 | # to ld, don't add -lc before -lgcc. |
14591 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
14592 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
14593 | $rm conftest* |
14594 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
14595 | |
14596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
14597 | (eval $ac_compile) 2>&5 |
14598 | ac_status=$? |
14599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14600 | (exit $ac_status); } 2>conftest.err; then |
14601 | soname=conftest |
14602 | lib=conftest |
14603 | libobjs=conftest.$ac_objext |
14604 | deplibs= |
14605 | wl=$lt_prog_compiler_wl_F77 |
14606 | pic_flag=$lt_prog_compiler_pic_F77 |
14607 | compiler_flags=-v |
14608 | linker_flags=-v |
14609 | verstring= |
14610 | output_objdir=. |
14611 | libname=conftest |
14612 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
14613 | allow_undefined_flag_F77= |
14614 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
14615 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
14616 | ac_status=$? |
14617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14618 | (exit $ac_status); } |
14619 | then |
14620 | archive_cmds_need_lc_F77=no |
14621 | else |
14622 | archive_cmds_need_lc_F77=yes |
14623 | fi |
14624 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
14625 | else |
14626 | cat conftest.err 1>&5 |
14627 | fi |
14628 | $rm conftest* |
14629 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
14630 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
14631 | ;; |
14632 | esac |
14633 | fi |
14634 | ;; |
14635 | esac |
14636 | |
14637 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
14638 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
14639 | library_names_spec= |
14640 | libname_spec='lib$name' |
14641 | soname_spec= |
14642 | shrext_cmds=".so" |
14643 | postinstall_cmds= |
14644 | postuninstall_cmds= |
14645 | finish_cmds= |
14646 | finish_eval= |
14647 | shlibpath_var= |
14648 | shlibpath_overrides_runpath=unknown |
14649 | version_type=none |
14650 | dynamic_linker="$host_os ld.so" |
14651 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
14652 | if test "$GCC" = yes; then |
14653 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
14654 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
14655 | # if the path contains ";" then we assume it to be the separator |
14656 | # otherwise default to the standard path separator (i.e. ":") - it is |
14657 | # assumed that no part of a normal pathname contains ";" but that should |
14658 | # okay in the real world where ";" in dirpaths is itself problematic. |
14659 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
14660 | else |
14661 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
14662 | fi |
14663 | else |
14664 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
14665 | fi |
14666 | need_lib_prefix=unknown |
14667 | hardcode_into_libs=no |
14668 | |
14669 | # when you set need_version to no, make sure it does not cause -set_version |
14670 | # flags to be left without arguments |
14671 | need_version=unknown |
14672 | |
14673 | case $host_os in |
14674 | aix3*) |
14675 | version_type=linux |
14676 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
14677 | shlibpath_var=LIBPATH |
14678 | |
14679 | # AIX 3 has no versioning support, so we append a major version to the name. |
14680 | soname_spec='${libname}${release}${shared_ext}$major' |
14681 | ;; |
14682 | |
14683 | aix4* | aix5*) |
14684 | version_type=linux |
14685 | need_lib_prefix=no |
14686 | need_version=no |
14687 | hardcode_into_libs=yes |
14688 | if test "$host_cpu" = ia64; then |
14689 | # AIX 5 supports IA64 |
14690 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
14691 | shlibpath_var=LD_LIBRARY_PATH |
14692 | else |
14693 | # With GCC up to 2.95.x, collect2 would create an import file |
14694 | # for dependence libraries. The import file would start with |
14695 | # the line `#! .'. This would cause the generated library to |
14696 | # depend on `.', always an invalid library. This was fixed in |
14697 | # development snapshots of GCC prior to 3.0. |
14698 | case $host_os in |
14699 | aix4 | aix4.[01] | aix4.[01].*) |
14700 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
14701 | echo ' yes ' |
14702 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
14703 | : |
14704 | else |
14705 | can_build_shared=no |
14706 | fi |
14707 | ;; |
14708 | esac |
14709 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
14710 | # soname into executable. Probably we can add versioning support to |
14711 | # collect2, so additional links can be useful in future. |
14712 | if test "$aix_use_runtimelinking" = yes; then |
14713 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
14714 | # instead of lib<name>.a to let people know that these are not |
14715 | # typical AIX shared libraries. |
14716 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14717 | else |
14718 | # We preserve .a as extension for shared libraries through AIX4.2 |
14719 | # and later when we are not doing run time linking. |
14720 | library_names_spec='${libname}${release}.a $libname.a' |
14721 | soname_spec='${libname}${release}${shared_ext}$major' |
14722 | fi |
14723 | shlibpath_var=LIBPATH |
14724 | fi |
14725 | ;; |
14726 | |
14727 | amigaos*) |
14728 | library_names_spec='$libname.ixlibrary $libname.a' |
14729 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
14730 | 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' |
14731 | ;; |
14732 | |
14733 | beos*) |
14734 | library_names_spec='${libname}${shared_ext}' |
14735 | dynamic_linker="$host_os ld.so" |
14736 | shlibpath_var=LIBRARY_PATH |
14737 | ;; |
14738 | |
14739 | bsdi[45]*) |
14740 | version_type=linux |
14741 | need_version=no |
14742 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14743 | soname_spec='${libname}${release}${shared_ext}$major' |
14744 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
14745 | shlibpath_var=LD_LIBRARY_PATH |
14746 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
14747 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
14748 | # the default ld.so.conf also contains /usr/contrib/lib and |
14749 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
14750 | # libtool to hard-code these into programs |
14751 | ;; |
14752 | |
14753 | cygwin* | mingw* | pw32*) |
14754 | version_type=windows |
14755 | shrext_cmds=".dll" |
14756 | need_version=no |
14757 | need_lib_prefix=no |
14758 | |
14759 | case $GCC,$host_os in |
14760 | yes,cygwin* | yes,mingw* | yes,pw32*) |
14761 | library_names_spec='$libname.dll.a' |
14762 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
14763 | postinstall_cmds='base_file=`basename \${file}`~ |
14764 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
14765 | dldir=$destdir/`dirname \$dlpath`~ |
14766 | test -d \$dldir || mkdir -p \$dldir~ |
14767 | $install_prog $dir/$dlname \$dldir/$dlname~ |
14768 | chmod a+x \$dldir/$dlname' |
14769 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
14770 | dlpath=$dir/\$dldll~ |
14771 | $rm \$dlpath' |
14772 | shlibpath_overrides_runpath=yes |
14773 | |
14774 | case $host_os in |
14775 | cygwin*) |
14776 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
14777 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
14778 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
14779 | ;; |
14780 | mingw*) |
14781 | # MinGW DLLs use traditional 'lib' prefix |
14782 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
14783 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
14784 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
14785 | # It is most probably a Windows format PATH printed by |
14786 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
14787 | # path with ; separators, and with drive letters. We can handle the |
14788 | # drive letters (cygwin fileutils understands them), so leave them, |
14789 | # especially as we might pass files found there to a mingw objdump, |
14790 | # which wouldn't understand a cygwinified path. Ahh. |
14791 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
14792 | else |
14793 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
14794 | fi |
14795 | ;; |
14796 | pw32*) |
14797 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
14798 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
14799 | ;; |
14800 | esac |
14801 | ;; |
14802 | |
14803 | *) |
14804 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
14805 | ;; |
14806 | esac |
14807 | dynamic_linker='Win32 ld.exe' |
14808 | # FIXME: first we should search . and the directory the executable is in |
14809 | shlibpath_var=PATH |
14810 | ;; |
14811 | |
14812 | darwin* | rhapsody*) |
14813 | dynamic_linker="$host_os dyld" |
14814 | version_type=darwin |
14815 | need_lib_prefix=no |
14816 | need_version=no |
14817 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
14818 | soname_spec='${libname}${release}${major}$shared_ext' |
14819 | shlibpath_overrides_runpath=yes |
14820 | shlibpath_var=DYLD_LIBRARY_PATH |
14821 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
14822 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
14823 | if test "$GCC" = yes; then |
14824 | 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"` |
14825 | else |
14826 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
14827 | fi |
14828 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
14829 | ;; |
14830 | |
14831 | dgux*) |
14832 | version_type=linux |
14833 | need_lib_prefix=no |
14834 | need_version=no |
14835 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
14836 | soname_spec='${libname}${release}${shared_ext}$major' |
14837 | shlibpath_var=LD_LIBRARY_PATH |
14838 | ;; |
14839 | |
14840 | freebsd1*) |
14841 | dynamic_linker=no |
14842 | ;; |
14843 | |
14844 | kfreebsd*-gnu) |
14845 | version_type=linux |
14846 | need_lib_prefix=no |
14847 | need_version=no |
14848 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
14849 | soname_spec='${libname}${release}${shared_ext}$major' |
14850 | shlibpath_var=LD_LIBRARY_PATH |
14851 | shlibpath_overrides_runpath=no |
14852 | hardcode_into_libs=yes |
14853 | dynamic_linker='GNU ld.so' |
14854 | ;; |
14855 | |
14856 | freebsd* | dragonfly*) |
14857 | # DragonFly does not have aout. When/if they implement a new |
14858 | # versioning mechanism, adjust this. |
14859 | if test -x /usr/bin/objformat; then |
14860 | objformat=`/usr/bin/objformat` |
14861 | else |
14862 | case $host_os in |
14863 | freebsd[123]*) objformat=aout ;; |
14864 | *) objformat=elf ;; |
14865 | esac |
14866 | fi |
14867 | version_type=freebsd-$objformat |
14868 | case $version_type in |
14869 | freebsd-elf*) |
14870 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
14871 | need_version=no |
14872 | need_lib_prefix=no |
14873 | ;; |
14874 | freebsd-*) |
14875 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
14876 | need_version=yes |
14877 | ;; |
14878 | esac |
14879 | shlibpath_var=LD_LIBRARY_PATH |
14880 | case $host_os in |
14881 | freebsd2*) |
14882 | shlibpath_overrides_runpath=yes |
14883 | ;; |
14884 | freebsd3.[01]* | freebsdelf3.[01]*) |
14885 | shlibpath_overrides_runpath=yes |
14886 | hardcode_into_libs=yes |
14887 | ;; |
14888 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
14889 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
14890 | shlibpath_overrides_runpath=no |
14891 | hardcode_into_libs=yes |
14892 | ;; |
14893 | freebsd*) # from 4.6 on |
14894 | shlibpath_overrides_runpath=yes |
14895 | hardcode_into_libs=yes |
14896 | ;; |
14897 | esac |
14898 | ;; |
14899 | |
14900 | gnu*) |
14901 | version_type=linux |
14902 | need_lib_prefix=no |
14903 | need_version=no |
14904 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
14905 | soname_spec='${libname}${release}${shared_ext}$major' |
14906 | shlibpath_var=LD_LIBRARY_PATH |
14907 | hardcode_into_libs=yes |
14908 | ;; |
14909 | |
14910 | hpux9* | hpux10* | hpux11*) |
14911 | # Give a soname corresponding to the major version so that dld.sl refuses to |
14912 | # link against other versions. |
14913 | version_type=sunos |
14914 | need_lib_prefix=no |
14915 | need_version=no |
14916 | case $host_cpu in |
14917 | ia64*) |
14918 | shrext_cmds='.so' |
14919 | hardcode_into_libs=yes |
14920 | dynamic_linker="$host_os dld.so" |
14921 | shlibpath_var=LD_LIBRARY_PATH |
14922 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
14923 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14924 | soname_spec='${libname}${release}${shared_ext}$major' |
14925 | if test "X$HPUX_IA64_MODE" = X32; then |
14926 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
14927 | else |
14928 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
14929 | fi |
14930 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
14931 | ;; |
14932 | hppa*64*) |
14933 | shrext_cmds='.sl' |
14934 | hardcode_into_libs=yes |
14935 | dynamic_linker="$host_os dld.sl" |
14936 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
14937 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
14938 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14939 | soname_spec='${libname}${release}${shared_ext}$major' |
14940 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
14941 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
14942 | ;; |
14943 | *) |
14944 | shrext_cmds='.sl' |
14945 | dynamic_linker="$host_os dld.sl" |
14946 | shlibpath_var=SHLIB_PATH |
14947 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
14948 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14949 | soname_spec='${libname}${release}${shared_ext}$major' |
14950 | ;; |
14951 | esac |
14952 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
14953 | postinstall_cmds='chmod 555 $lib' |
14954 | ;; |
14955 | |
14956 | interix3*) |
14957 | version_type=linux |
14958 | need_lib_prefix=no |
14959 | need_version=no |
14960 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
14961 | soname_spec='${libname}${release}${shared_ext}$major' |
14962 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
14963 | shlibpath_var=LD_LIBRARY_PATH |
14964 | shlibpath_overrides_runpath=no |
14965 | hardcode_into_libs=yes |
14966 | ;; |
14967 | |
14968 | irix5* | irix6* | nonstopux*) |
14969 | case $host_os in |
14970 | nonstopux*) version_type=nonstopux ;; |
14971 | *) |
14972 | if test "$lt_cv_prog_gnu_ld" = yes; then |
14973 | version_type=linux |
14974 | else |
14975 | version_type=irix |
14976 | fi ;; |
14977 | esac |
14978 | need_lib_prefix=no |
14979 | need_version=no |
14980 | soname_spec='${libname}${release}${shared_ext}$major' |
14981 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
14982 | case $host_os in |
14983 | irix5* | nonstopux*) |
14984 | libsuff= shlibsuff= |
14985 | ;; |
14986 | *) |
14987 | case $LD in # libtool.m4 will add one of these switches to LD |
14988 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
14989 | libsuff= shlibsuff= libmagic=32-bit;; |
14990 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
14991 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
14992 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
14993 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
14994 | *) libsuff= shlibsuff= libmagic=never-match;; |
14995 | esac |
14996 | ;; |
14997 | esac |
14998 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
14999 | shlibpath_overrides_runpath=no |
15000 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
15001 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
15002 | hardcode_into_libs=yes |
15003 | ;; |
15004 | |
15005 | # No shared lib support for Linux oldld, aout, or coff. |
15006 | linux*oldld* | linux*aout* | linux*coff*) |
15007 | dynamic_linker=no |
15008 | ;; |
15009 | |
15010 | # This must be Linux ELF. |
15011 | linux*) |
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 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
15018 | shlibpath_var=LD_LIBRARY_PATH |
15019 | shlibpath_overrides_runpath=no |
15020 | # This implies no fast_install, which is unacceptable. |
15021 | # Some rework will be needed to allow for fast_install |
15022 | # before this can be enabled. |
15023 | hardcode_into_libs=yes |
15024 | |
15025 | # find out which ABI we are using |
15026 | libsuff= |
15027 | case "$host_cpu" in |
15028 | x86_64*|s390x*|powerpc64*) |
15029 | echo '#line 15029 "configure"' > conftest.$ac_ext |
15030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15031 | (eval $ac_compile) 2>&5 |
15032 | ac_status=$? |
15033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15034 | (exit $ac_status); }; then |
15035 | case `/usr/bin/file conftest.$ac_objext` in |
15036 | *64-bit*) |
15037 | libsuff=64 |
15038 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
15039 | ;; |
15040 | esac |
15041 | fi |
15042 | rm -rf conftest* |
15043 | ;; |
15044 | esac |
15045 | |
15046 | # Append ld.so.conf contents to the search path |
15047 | if test -f /etc/ld.so.conf; then |
15048 | 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' ' '` |
15049 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
15050 | fi |
15051 | |
15052 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
15053 | # powerpc, because MkLinux only supported shared libraries with the |
15054 | # GNU dynamic linker. Since this was broken with cross compilers, |
15055 | # most powerpc-linux boxes support dynamic linking these days and |
15056 | # people can always --disable-shared, the test was removed, and we |
15057 | # assume the GNU/Linux dynamic linker is in use. |
15058 | dynamic_linker='GNU/Linux ld.so' |
15059 | ;; |
15060 | |
15061 | knetbsd*-gnu) |
15062 | version_type=linux |
15063 | need_lib_prefix=no |
15064 | need_version=no |
15065 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15066 | soname_spec='${libname}${release}${shared_ext}$major' |
15067 | shlibpath_var=LD_LIBRARY_PATH |
15068 | shlibpath_overrides_runpath=no |
15069 | hardcode_into_libs=yes |
15070 | dynamic_linker='GNU ld.so' |
15071 | ;; |
15072 | |
15073 | netbsd*) |
15074 | version_type=sunos |
15075 | need_lib_prefix=no |
15076 | need_version=no |
15077 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
15078 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15079 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15080 | dynamic_linker='NetBSD (a.out) ld.so' |
15081 | else |
15082 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15083 | soname_spec='${libname}${release}${shared_ext}$major' |
15084 | dynamic_linker='NetBSD ld.elf_so' |
15085 | fi |
15086 | shlibpath_var=LD_LIBRARY_PATH |
15087 | shlibpath_overrides_runpath=yes |
15088 | hardcode_into_libs=yes |
15089 | ;; |
15090 | |
15091 | newsos6) |
15092 | version_type=linux |
15093 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15094 | shlibpath_var=LD_LIBRARY_PATH |
15095 | shlibpath_overrides_runpath=yes |
15096 | ;; |
15097 | |
15098 | nto-qnx*) |
15099 | version_type=linux |
15100 | need_lib_prefix=no |
15101 | need_version=no |
15102 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15103 | soname_spec='${libname}${release}${shared_ext}$major' |
15104 | shlibpath_var=LD_LIBRARY_PATH |
15105 | shlibpath_overrides_runpath=yes |
15106 | ;; |
15107 | |
15108 | openbsd*) |
15109 | version_type=sunos |
15110 | sys_lib_dlsearch_path_spec="/usr/lib" |
15111 | need_lib_prefix=no |
15112 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
15113 | case $host_os in |
15114 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
15115 | *) need_version=no ;; |
15116 | esac |
15117 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15118 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15119 | shlibpath_var=LD_LIBRARY_PATH |
15120 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
15121 | case $host_os in |
15122 | openbsd2.[89] | openbsd2.[89].*) |
15123 | shlibpath_overrides_runpath=no |
15124 | ;; |
15125 | *) |
15126 | shlibpath_overrides_runpath=yes |
15127 | ;; |
15128 | esac |
15129 | else |
15130 | shlibpath_overrides_runpath=yes |
15131 | fi |
15132 | ;; |
15133 | |
15134 | os2*) |
15135 | libname_spec='$name' |
15136 | shrext_cmds=".dll" |
15137 | need_lib_prefix=no |
15138 | library_names_spec='$libname${shared_ext} $libname.a' |
15139 | dynamic_linker='OS/2 ld.exe' |
15140 | shlibpath_var=LIBPATH |
15141 | ;; |
15142 | |
15143 | osf3* | osf4* | osf5*) |
15144 | version_type=osf |
15145 | need_lib_prefix=no |
15146 | need_version=no |
15147 | soname_spec='${libname}${release}${shared_ext}$major' |
15148 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15149 | shlibpath_var=LD_LIBRARY_PATH |
15150 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
15151 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
15152 | ;; |
15153 | |
15154 | solaris*) |
15155 | version_type=linux |
15156 | need_lib_prefix=no |
15157 | need_version=no |
15158 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15159 | soname_spec='${libname}${release}${shared_ext}$major' |
15160 | shlibpath_var=LD_LIBRARY_PATH |
15161 | shlibpath_overrides_runpath=yes |
15162 | hardcode_into_libs=yes |
15163 | # ldd complains unless libraries are executable |
15164 | postinstall_cmds='chmod +x $lib' |
15165 | ;; |
15166 | |
15167 | sunos4*) |
15168 | version_type=sunos |
15169 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15170 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
15171 | shlibpath_var=LD_LIBRARY_PATH |
15172 | shlibpath_overrides_runpath=yes |
15173 | if test "$with_gnu_ld" = yes; then |
15174 | need_lib_prefix=no |
15175 | fi |
15176 | need_version=yes |
15177 | ;; |
15178 | |
15179 | sysv4 | sysv4.3*) |
15180 | version_type=linux |
15181 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15182 | soname_spec='${libname}${release}${shared_ext}$major' |
15183 | shlibpath_var=LD_LIBRARY_PATH |
15184 | case $host_vendor in |
15185 | sni) |
15186 | shlibpath_overrides_runpath=no |
15187 | need_lib_prefix=no |
15188 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
15189 | runpath_var=LD_RUN_PATH |
15190 | ;; |
15191 | siemens) |
15192 | need_lib_prefix=no |
15193 | ;; |
15194 | motorola) |
15195 | need_lib_prefix=no |
15196 | need_version=no |
15197 | shlibpath_overrides_runpath=no |
15198 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
15199 | ;; |
15200 | esac |
15201 | ;; |
15202 | |
15203 | sysv4*MP*) |
15204 | if test -d /usr/nec ;then |
15205 | version_type=linux |
15206 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
15207 | soname_spec='$libname${shared_ext}.$major' |
15208 | shlibpath_var=LD_LIBRARY_PATH |
15209 | fi |
15210 | ;; |
15211 | |
15212 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
15213 | version_type=freebsd-elf |
15214 | need_lib_prefix=no |
15215 | need_version=no |
15216 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15217 | soname_spec='${libname}${release}${shared_ext}$major' |
15218 | shlibpath_var=LD_LIBRARY_PATH |
15219 | hardcode_into_libs=yes |
15220 | if test "$with_gnu_ld" = yes; then |
15221 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
15222 | shlibpath_overrides_runpath=no |
15223 | else |
15224 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
15225 | shlibpath_overrides_runpath=yes |
15226 | case $host_os in |
15227 | sco3.2v5*) |
15228 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
15229 | ;; |
15230 | esac |
15231 | fi |
15232 | sys_lib_dlsearch_path_spec='/usr/lib' |
15233 | ;; |
15234 | |
15235 | uts4*) |
15236 | version_type=linux |
15237 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15238 | soname_spec='${libname}${release}${shared_ext}$major' |
15239 | shlibpath_var=LD_LIBRARY_PATH |
15240 | ;; |
15241 | |
15242 | *) |
15243 | dynamic_linker=no |
15244 | ;; |
15245 | esac |
15246 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
15247 | echo "${ECHO_T}$dynamic_linker" >&6 |
15248 | test "$dynamic_linker" = no && can_build_shared=no |
15249 | |
15250 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
15251 | if test "$GCC" = yes; then |
15252 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
15253 | fi |
15254 | |
15255 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
15256 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
15257 | hardcode_action_F77= |
15258 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
15259 | test -n "$runpath_var_F77" || \ |
15260 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
15261 | |
15262 | # We can hardcode non-existant directories. |
15263 | if test "$hardcode_direct_F77" != no && |
15264 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
15265 | # have to relink, otherwise we might link with an installed library |
15266 | # when we should be linking with a yet-to-be-installed one |
15267 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
15268 | test "$hardcode_minus_L_F77" != no; then |
15269 | # Linking always hardcodes the temporary library directory. |
15270 | hardcode_action_F77=relink |
15271 | else |
15272 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
15273 | hardcode_action_F77=immediate |
15274 | fi |
15275 | else |
15276 | # We cannot hardcode anything, or else we can only hardcode existing |
15277 | # directories. |
15278 | hardcode_action_F77=unsupported |
15279 | fi |
15280 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
15281 | echo "${ECHO_T}$hardcode_action_F77" >&6 |
15282 | |
15283 | if test "$hardcode_action_F77" = relink; then |
15284 | # Fast installation is not supported |
15285 | enable_fast_install=no |
15286 | elif test "$shlibpath_overrides_runpath" = yes || |
15287 | test "$enable_shared" = no; then |
15288 | # Fast installation is not necessary |
15289 | enable_fast_install=needless |
15290 | fi |
15291 | |
15292 | |
15293 | # The else clause should only fire when bootstrapping the |
15294 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
15295 | # with your package, and you will get complaints that there are |
15296 | # no rules to generate ltmain.sh. |
15297 | if test -f "$ltmain"; then |
15298 | # See if we are running on zsh, and set the options which allow our commands through |
15299 | # without removal of \ escapes. |
15300 | if test -n "${ZSH_VERSION+set}" ; then |
15301 | setopt NO_GLOB_SUBST |
15302 | fi |
15303 | # Now quote all the things that may contain metacharacters while being |
15304 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
15305 | # variables and quote the copies for generation of the libtool script. |
15306 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
15307 | SED SHELL STRIP \ |
15308 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
15309 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
15310 | deplibs_check_method reload_flag reload_cmds need_locks \ |
15311 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
15312 | lt_cv_sys_global_symbol_to_c_name_address \ |
15313 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
15314 | old_postinstall_cmds old_postuninstall_cmds \ |
15315 | compiler_F77 \ |
15316 | CC_F77 \ |
15317 | LD_F77 \ |
15318 | lt_prog_compiler_wl_F77 \ |
15319 | lt_prog_compiler_pic_F77 \ |
15320 | lt_prog_compiler_static_F77 \ |
15321 | lt_prog_compiler_no_builtin_flag_F77 \ |
15322 | export_dynamic_flag_spec_F77 \ |
15323 | thread_safe_flag_spec_F77 \ |
15324 | whole_archive_flag_spec_F77 \ |
15325 | enable_shared_with_static_runtimes_F77 \ |
15326 | old_archive_cmds_F77 \ |
15327 | old_archive_from_new_cmds_F77 \ |
15328 | predep_objects_F77 \ |
15329 | postdep_objects_F77 \ |
15330 | predeps_F77 \ |
15331 | postdeps_F77 \ |
15332 | compiler_lib_search_path_F77 \ |
15333 | archive_cmds_F77 \ |
15334 | archive_expsym_cmds_F77 \ |
15335 | postinstall_cmds_F77 \ |
15336 | postuninstall_cmds_F77 \ |
15337 | old_archive_from_expsyms_cmds_F77 \ |
15338 | allow_undefined_flag_F77 \ |
15339 | no_undefined_flag_F77 \ |
15340 | export_symbols_cmds_F77 \ |
15341 | hardcode_libdir_flag_spec_F77 \ |
15342 | hardcode_libdir_flag_spec_ld_F77 \ |
15343 | hardcode_libdir_separator_F77 \ |
15344 | hardcode_automatic_F77 \ |
15345 | module_cmds_F77 \ |
15346 | module_expsym_cmds_F77 \ |
15347 | lt_cv_prog_compiler_c_o_F77 \ |
15348 | exclude_expsyms_F77 \ |
15349 | include_expsyms_F77; do |
15350 | |
15351 | case $var in |
15352 | old_archive_cmds_F77 | \ |
15353 | old_archive_from_new_cmds_F77 | \ |
15354 | archive_cmds_F77 | \ |
15355 | archive_expsym_cmds_F77 | \ |
15356 | module_cmds_F77 | \ |
15357 | module_expsym_cmds_F77 | \ |
15358 | old_archive_from_expsyms_cmds_F77 | \ |
15359 | export_symbols_cmds_F77 | \ |
15360 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
15361 | postinstall_cmds | postuninstall_cmds | \ |
15362 | old_postinstall_cmds | old_postuninstall_cmds | \ |
15363 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
15364 | # Double-quote double-evaled strings. |
15365 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
15366 | ;; |
15367 | *) |
15368 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
15369 | ;; |
15370 | esac |
15371 | done |
15372 | |
15373 | case $lt_echo in |
15374 | *'\$0 --fallback-echo"') |
15375 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
15376 | ;; |
15377 | esac |
15378 | |
15379 | cfgfile="$ofile" |
15380 | |
15381 | cat <<__EOF__ >> "$cfgfile" |
15382 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
15383 | |
15384 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
15385 | |
15386 | # Shell to use when invoking shell scripts. |
15387 | SHELL=$lt_SHELL |
15388 | |
15389 | # Whether or not to build shared libraries. |
15390 | build_libtool_libs=$enable_shared |
15391 | |
15392 | # Whether or not to build static libraries. |
15393 | build_old_libs=$enable_static |
15394 | |
15395 | # Whether or not to add -lc for building shared libraries. |
15396 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
15397 | |
15398 | # Whether or not to disallow shared libs when runtime libs are static |
15399 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
15400 | |
15401 | # Whether or not to optimize for fast installation. |
15402 | fast_install=$enable_fast_install |
15403 | |
15404 | # The host system. |
15405 | host_alias=$host_alias |
15406 | host=$host |
15407 | host_os=$host_os |
15408 | |
15409 | # The build system. |
15410 | build_alias=$build_alias |
15411 | build=$build |
15412 | build_os=$build_os |
15413 | |
15414 | # An echo program that does not interpret backslashes. |
15415 | echo=$lt_echo |
15416 | |
15417 | # The archiver. |
15418 | AR=$lt_AR |
15419 | AR_FLAGS=$lt_AR_FLAGS |
15420 | |
15421 | # A C compiler. |
15422 | LTCC=$lt_LTCC |
15423 | |
15424 | # LTCC compiler flags. |
15425 | LTCFLAGS=$lt_LTCFLAGS |
15426 | |
15427 | # A language-specific compiler. |
15428 | CC=$lt_compiler_F77 |
15429 | |
15430 | # Is the compiler the GNU C compiler? |
15431 | with_gcc=$GCC_F77 |
15432 | |
15433 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
15434 | gcc_ver=\`gcc -dumpversion\` |
15435 | |
15436 | # An ERE matcher. |
15437 | EGREP=$lt_EGREP |
15438 | |
15439 | # The linker used to build libraries. |
15440 | LD=$lt_LD_F77 |
15441 | |
15442 | # Whether we need hard or soft links. |
15443 | LN_S=$lt_LN_S |
15444 | |
15445 | # A BSD-compatible nm program. |
15446 | NM=$lt_NM |
15447 | |
15448 | # A symbol stripping program |
15449 | STRIP=$lt_STRIP |
15450 | |
15451 | # Used to examine libraries when file_magic_cmd begins "file" |
15452 | MAGIC_CMD=$MAGIC_CMD |
15453 | |
15454 | # Used on cygwin: DLL creation program. |
15455 | DLLTOOL="$DLLTOOL" |
15456 | |
15457 | # Used on cygwin: object dumper. |
15458 | OBJDUMP="$OBJDUMP" |
15459 | |
15460 | # Used on cygwin: assembler. |
15461 | AS="$AS" |
15462 | |
15463 | # The name of the directory that contains temporary libtool files. |
15464 | objdir=$objdir |
15465 | |
15466 | # How to create reloadable object files. |
15467 | reload_flag=$lt_reload_flag |
15468 | reload_cmds=$lt_reload_cmds |
15469 | |
15470 | # How to pass a linker flag through the compiler. |
15471 | wl=$lt_lt_prog_compiler_wl_F77 |
15472 | |
15473 | # Object file suffix (normally "o"). |
15474 | objext="$ac_objext" |
15475 | |
15476 | # Old archive suffix (normally "a"). |
15477 | libext="$libext" |
15478 | |
15479 | # Shared library suffix (normally ".so"). |
15480 | shrext_cmds='$shrext_cmds' |
15481 | |
15482 | # Executable file suffix (normally ""). |
15483 | exeext="$exeext" |
15484 | |
15485 | # Additional compiler flags for building library objects. |
15486 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
15487 | pic_mode=$pic_mode |
15488 | |
15489 | # What is the maximum length of a command? |
15490 | max_cmd_len=$lt_cv_sys_max_cmd_len |
15491 | |
15492 | # Does compiler simultaneously support -c and -o options? |
15493 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
15494 | |
15495 | # Must we lock files when doing compilation? |
15496 | need_locks=$lt_need_locks |
15497 | |
15498 | # Do we need the lib prefix for modules? |
15499 | need_lib_prefix=$need_lib_prefix |
15500 | |
15501 | # Do we need a version for libraries? |
15502 | need_version=$need_version |
15503 | |
15504 | # Whether dlopen is supported. |
15505 | dlopen_support=$enable_dlopen |
15506 | |
15507 | # Whether dlopen of programs is supported. |
15508 | dlopen_self=$enable_dlopen_self |
15509 | |
15510 | # Whether dlopen of statically linked programs is supported. |
15511 | dlopen_self_static=$enable_dlopen_self_static |
15512 | |
15513 | # Compiler flag to prevent dynamic linking. |
15514 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
15515 | |
15516 | # Compiler flag to turn off builtin functions. |
15517 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
15518 | |
15519 | # Compiler flag to allow reflexive dlopens. |
15520 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
15521 | |
15522 | # Compiler flag to generate shared objects directly from archives. |
15523 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
15524 | |
15525 | # Compiler flag to generate thread-safe objects. |
15526 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
15527 | |
15528 | # Library versioning type. |
15529 | version_type=$version_type |
15530 | |
15531 | # Format of library name prefix. |
15532 | libname_spec=$lt_libname_spec |
15533 | |
15534 | # List of archive names. First name is the real one, the rest are links. |
15535 | # The last name is the one that the linker finds with -lNAME. |
15536 | library_names_spec=$lt_library_names_spec |
15537 | |
15538 | # The coded name of the library, if different from the real name. |
15539 | soname_spec=$lt_soname_spec |
15540 | |
15541 | # Commands used to build and install an old-style archive. |
15542 | RANLIB=$lt_RANLIB |
15543 | old_archive_cmds=$lt_old_archive_cmds_F77 |
15544 | old_postinstall_cmds=$lt_old_postinstall_cmds |
15545 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
15546 | |
15547 | # Create an old-style archive from a shared archive. |
15548 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
15549 | |
15550 | # Create a temporary old-style archive to link instead of a shared archive. |
15551 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
15552 | |
15553 | # Commands used to build and install a shared archive. |
15554 | archive_cmds=$lt_archive_cmds_F77 |
15555 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
15556 | postinstall_cmds=$lt_postinstall_cmds |
15557 | postuninstall_cmds=$lt_postuninstall_cmds |
15558 | |
15559 | # Commands used to build a loadable module (assumed same as above if empty) |
15560 | module_cmds=$lt_module_cmds_F77 |
15561 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
15562 | |
15563 | # Commands to strip libraries. |
15564 | old_striplib=$lt_old_striplib |
15565 | striplib=$lt_striplib |
15566 | |
15567 | # Dependencies to place before the objects being linked to create a |
15568 | # shared library. |
15569 | predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
15570 | |
15571 | # Dependencies to place after the objects being linked to create a |
15572 | # shared library. |
15573 | postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
15574 | |
15575 | # Dependencies to place before the objects being linked to create a |
15576 | # shared library. |
15577 | predeps=$lt_predeps_F77 |
15578 | |
15579 | # Dependencies to place after the objects being linked to create a |
15580 | # shared library. |
15581 | postdeps=$lt_postdeps_F77 |
15582 | |
15583 | # The library search path used internally by the compiler when linking |
15584 | # a shared library. |
15585 | 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"\` |
15586 | |
15587 | # Method to check whether dependent libraries are shared objects. |
15588 | deplibs_check_method=$lt_deplibs_check_method |
15589 | |
15590 | # Command to use when deplibs_check_method == file_magic. |
15591 | file_magic_cmd=$lt_file_magic_cmd |
15592 | |
15593 | # Flag that allows shared libraries with undefined symbols to be built. |
15594 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
15595 | |
15596 | # Flag that forces no undefined symbols. |
15597 | no_undefined_flag=$lt_no_undefined_flag_F77 |
15598 | |
15599 | # Commands used to finish a libtool library installation in a directory. |
15600 | finish_cmds=$lt_finish_cmds |
15601 | |
15602 | # Same as above, but a single script fragment to be evaled but not shown. |
15603 | finish_eval=$lt_finish_eval |
15604 | |
15605 | # Take the output of nm and produce a listing of raw symbols and C names. |
15606 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
15607 | |
15608 | # Transform the output of nm in a proper C declaration |
15609 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
15610 | |
15611 | # Transform the output of nm in a C name address pair |
15612 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
15613 | |
15614 | # This is the shared library runtime path variable. |
15615 | runpath_var=$runpath_var |
15616 | |
15617 | # This is the shared library path variable. |
15618 | shlibpath_var=$shlibpath_var |
15619 | |
15620 | # Is shlibpath searched before the hard-coded library search path? |
15621 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
15622 | |
15623 | # How to hardcode a shared library path into an executable. |
15624 | hardcode_action=$hardcode_action_F77 |
15625 | |
15626 | # Whether we should hardcode library paths into libraries. |
15627 | hardcode_into_libs=$hardcode_into_libs |
15628 | |
15629 | # Flag to hardcode \$libdir into a binary during linking. |
15630 | # This must work even if \$libdir does not exist. |
15631 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
15632 | |
15633 | # If ld is used when linking, flag to hardcode \$libdir into |
15634 | # a binary during linking. This must work even if \$libdir does |
15635 | # not exist. |
15636 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
15637 | |
15638 | # Whether we need a single -rpath flag with a separated argument. |
15639 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
15640 | |
15641 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
15642 | # resulting binary. |
15643 | hardcode_direct=$hardcode_direct_F77 |
15644 | |
15645 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
15646 | # resulting binary. |
15647 | hardcode_minus_L=$hardcode_minus_L_F77 |
15648 | |
15649 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
15650 | # the resulting binary. |
15651 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
15652 | |
15653 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
15654 | # and all subsequent libraries and executables linked against it. |
15655 | hardcode_automatic=$hardcode_automatic_F77 |
15656 | |
15657 | # Variables whose values should be saved in libtool wrapper scripts and |
15658 | # restored at relink time. |
15659 | variables_saved_for_relink="$variables_saved_for_relink" |
15660 | |
15661 | # Whether libtool must link a program against all its dependency libraries. |
15662 | link_all_deplibs=$link_all_deplibs_F77 |
15663 | |
15664 | # Compile-time system search path for libraries |
15665 | 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"\` |
15666 | |
15667 | # Run-time system search path for libraries |
15668 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
15669 | |
15670 | # Fix the shell variable \$srcfile for the compiler. |
15671 | fix_srcfile_path="$fix_srcfile_path_F77" |
15672 | |
15673 | # Set to yes if exported symbols are required. |
15674 | always_export_symbols=$always_export_symbols_F77 |
15675 | |
15676 | # The commands to list exported symbols. |
15677 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
15678 | |
15679 | # The commands to extract the exported symbol list from a shared archive. |
15680 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
15681 | |
15682 | # Symbols that should not be listed in the preloaded symbols. |
15683 | exclude_expsyms=$lt_exclude_expsyms_F77 |
15684 | |
15685 | # Symbols that must always be exported. |
15686 | include_expsyms=$lt_include_expsyms_F77 |
15687 | |
15688 | # ### END LIBTOOL TAG CONFIG: $tagname |
15689 | |
15690 | __EOF__ |
15691 | |
15692 | |
15693 | else |
15694 | # If there is no Makefile yet, we rely on a make rule to execute |
15695 | # `config.status --recheck' to rerun these tests and create the |
15696 | # libtool script then. |
15697 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
15698 | if test -f "$ltmain_in"; then |
15699 | test -f Makefile && make "$ltmain" |
15700 | fi |
15701 | fi |
15702 | |
15703 | |
15704 | ac_ext=c |
15705 | ac_cpp='$CPP $CPPFLAGS' |
15706 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
15707 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
15708 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
15709 | |
15710 | CC="$lt_save_CC" |
15711 | |
15712 | else |
15713 | tagname="" |
15714 | fi |
15715 | ;; |
15716 | |
15717 | GCJ) |
15718 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
15719 | |
15720 | |
15721 | |
15722 | # Source file extension for Java test sources. |
15723 | ac_ext=java |
15724 | |
15725 | # Object file extension for compiled Java test sources. |
15726 | objext=o |
15727 | objext_GCJ=$objext |
15728 | |
15729 | # Code to be used in simple compile tests |
15730 | lt_simple_compile_test_code="class foo {}\n" |
15731 | |
15732 | # Code to be used in simple link tests |
15733 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
15734 | |
15735 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
15736 | |
15737 | # If no C compiler was specified, use CC. |
15738 | LTCC=${LTCC-"$CC"} |
15739 | |
15740 | # If no C compiler flags were specified, use CFLAGS. |
15741 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
15742 | |
15743 | # Allow CC to be a program name with arguments. |
15744 | compiler=$CC |
15745 | |
15746 | |
15747 | # save warnings/boilerplate of simple test code |
15748 | ac_outfile=conftest.$ac_objext |
15749 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
15750 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
15751 | _lt_compiler_boilerplate=`cat conftest.err` |
15752 | $rm conftest* |
15753 | |
15754 | ac_outfile=conftest.$ac_objext |
15755 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
15756 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
15757 | _lt_linker_boilerplate=`cat conftest.err` |
15758 | $rm conftest* |
15759 | |
15760 | |
15761 | # Allow CC to be a program name with arguments. |
15762 | lt_save_CC="$CC" |
15763 | CC=${GCJ-"gcj"} |
15764 | compiler=$CC |
15765 | compiler_GCJ=$CC |
15766 | for cc_temp in $compiler""; do |
15767 | case $cc_temp in |
15768 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
15769 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
15770 | \-*) ;; |
15771 | *) break;; |
15772 | esac |
15773 | done |
15774 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
15775 | |
15776 | |
15777 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
15778 | archive_cmds_need_lc_GCJ=no |
15779 | |
15780 | old_archive_cmds_GCJ=$old_archive_cmds |
15781 | |
15782 | |
15783 | lt_prog_compiler_no_builtin_flag_GCJ= |
15784 | |
15785 | if test "$GCC" = yes; then |
15786 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
15787 | |
15788 | |
15789 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
15790 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
15791 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
15792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15793 | else |
15794 | lt_cv_prog_compiler_rtti_exceptions=no |
15795 | ac_outfile=conftest.$ac_objext |
15796 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
15797 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
15798 | # Insert the option either (1) after the last *FLAGS variable, or |
15799 | # (2) before a word containing "conftest.", or (3) at the end. |
15800 | # Note that $ac_compile itself does not contain backslashes and begins |
15801 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
15802 | # The option is referenced via a variable to avoid confusing sed. |
15803 | lt_compile=`echo "$ac_compile" | $SED \ |
15804 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
15805 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
15806 | -e 's:$: $lt_compiler_flag:'` |
15807 | (eval echo "\"\$as_me:15807: $lt_compile\"" >&5) |
15808 | (eval "$lt_compile" 2>conftest.err) |
15809 | ac_status=$? |
15810 | cat conftest.err >&5 |
15811 | echo "$as_me:15811: \$? = $ac_status" >&5 |
15812 | if (exit $ac_status) && test -s "$ac_outfile"; then |
15813 | # The compiler can only warn and ignore the option if not recognized |
15814 | # So say no if there are warnings other than the usual output. |
15815 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
15816 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
15817 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
15818 | lt_cv_prog_compiler_rtti_exceptions=yes |
15819 | fi |
15820 | fi |
15821 | $rm conftest* |
15822 | |
15823 | fi |
15824 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
15825 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
15826 | |
15827 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
15828 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
15829 | else |
15830 | : |
15831 | fi |
15832 | |
15833 | fi |
15834 | |
15835 | lt_prog_compiler_wl_GCJ= |
15836 | lt_prog_compiler_pic_GCJ= |
15837 | lt_prog_compiler_static_GCJ= |
15838 | |
15839 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
15840 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
15841 | |
15842 | if test "$GCC" = yes; then |
15843 | lt_prog_compiler_wl_GCJ='-Wl,' |
15844 | lt_prog_compiler_static_GCJ='-static' |
15845 | |
15846 | case $host_os in |
15847 | aix*) |
15848 | # All AIX code is PIC. |
15849 | if test "$host_cpu" = ia64; then |
15850 | # AIX 5 now supports IA64 processor |
15851 | lt_prog_compiler_static_GCJ='-Bstatic' |
15852 | fi |
15853 | ;; |
15854 | |
15855 | amigaos*) |
15856 | # FIXME: we need at least 68020 code to build shared libraries, but |
15857 | # adding the `-m68020' flag to GCC prevents building anything better, |
15858 | # like `-m68040'. |
15859 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
15860 | ;; |
15861 | |
15862 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
15863 | # PIC is the default for these OSes. |
15864 | ;; |
15865 | |
15866 | mingw* | pw32* | os2*) |
15867 | # This hack is so that the source file can tell whether it is being |
15868 | # built for inclusion in a dll (and should export symbols for example). |
15869 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
15870 | ;; |
15871 | |
15872 | darwin* | rhapsody*) |
15873 | # PIC is the default on this platform |
15874 | # Common symbols not allowed in MH_DYLIB files |
15875 | lt_prog_compiler_pic_GCJ='-fno-common' |
15876 | ;; |
15877 | |
15878 | interix3*) |
15879 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
15880 | # Instead, we relocate shared libraries at runtime. |
15881 | ;; |
15882 | |
15883 | msdosdjgpp*) |
15884 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
15885 | # on systems that don't support them. |
15886 | lt_prog_compiler_can_build_shared_GCJ=no |
15887 | enable_shared=no |
15888 | ;; |
15889 | |
15890 | sysv4*MP*) |
15891 | if test -d /usr/nec; then |
15892 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
15893 | fi |
15894 | ;; |
15895 | |
15896 | hpux*) |
15897 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
15898 | # not for PA HP-UX. |
15899 | case $host_cpu in |
15900 | hppa*64*|ia64*) |
15901 | # +Z the default |
15902 | ;; |
15903 | *) |
15904 | lt_prog_compiler_pic_GCJ='-fPIC' |
15905 | ;; |
15906 | esac |
15907 | ;; |
15908 | |
15909 | *) |
15910 | lt_prog_compiler_pic_GCJ='-fPIC' |
15911 | ;; |
15912 | esac |
15913 | else |
15914 | # PORTME Check for flag to pass linker flags through the system compiler. |
15915 | case $host_os in |
15916 | aix*) |
15917 | lt_prog_compiler_wl_GCJ='-Wl,' |
15918 | if test "$host_cpu" = ia64; then |
15919 | # AIX 5 now supports IA64 processor |
15920 | lt_prog_compiler_static_GCJ='-Bstatic' |
15921 | else |
15922 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
15923 | fi |
15924 | ;; |
15925 | darwin*) |
15926 | # PIC is the default on this platform |
15927 | # Common symbols not allowed in MH_DYLIB files |
15928 | case $cc_basename in |
15929 | xlc*) |
15930 | lt_prog_compiler_pic_GCJ='-qnocommon' |
15931 | lt_prog_compiler_wl_GCJ='-Wl,' |
15932 | ;; |
15933 | esac |
15934 | ;; |
15935 | |
15936 | mingw* | pw32* | os2*) |
15937 | # This hack is so that the source file can tell whether it is being |
15938 | # built for inclusion in a dll (and should export symbols for example). |
15939 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
15940 | ;; |
15941 | |
15942 | hpux9* | hpux10* | hpux11*) |
15943 | lt_prog_compiler_wl_GCJ='-Wl,' |
15944 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
15945 | # not for PA HP-UX. |
15946 | case $host_cpu in |
15947 | hppa*64*|ia64*) |
15948 | # +Z the default |
15949 | ;; |
15950 | *) |
15951 | lt_prog_compiler_pic_GCJ='+Z' |
15952 | ;; |
15953 | esac |
15954 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
15955 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
15956 | ;; |
15957 | |
15958 | irix5* | irix6* | nonstopux*) |
15959 | lt_prog_compiler_wl_GCJ='-Wl,' |
15960 | # PIC (with -KPIC) is the default. |
15961 | lt_prog_compiler_static_GCJ='-non_shared' |
15962 | ;; |
15963 | |
15964 | newsos6) |
15965 | lt_prog_compiler_pic_GCJ='-KPIC' |
15966 | lt_prog_compiler_static_GCJ='-Bstatic' |
15967 | ;; |
15968 | |
15969 | linux*) |
15970 | case $cc_basename in |
15971 | icc* | ecc*) |
15972 | lt_prog_compiler_wl_GCJ='-Wl,' |
15973 | lt_prog_compiler_pic_GCJ='-KPIC' |
15974 | lt_prog_compiler_static_GCJ='-static' |
15975 | ;; |
15976 | pgcc* | pgf77* | pgf90* | pgf95*) |
15977 | # Portland Group compilers (*not* the Pentium gcc compiler, |
15978 | # which looks to be a dead project) |
15979 | lt_prog_compiler_wl_GCJ='-Wl,' |
15980 | lt_prog_compiler_pic_GCJ='-fpic' |
15981 | lt_prog_compiler_static_GCJ='-Bstatic' |
15982 | ;; |
15983 | ccc*) |
15984 | lt_prog_compiler_wl_GCJ='-Wl,' |
15985 | # All Alpha code is PIC. |
15986 | lt_prog_compiler_static_GCJ='-non_shared' |
15987 | ;; |
15988 | esac |
15989 | ;; |
15990 | |
15991 | osf3* | osf4* | osf5*) |
15992 | lt_prog_compiler_wl_GCJ='-Wl,' |
15993 | # All OSF/1 code is PIC. |
15994 | lt_prog_compiler_static_GCJ='-non_shared' |
15995 | ;; |
15996 | |
15997 | solaris*) |
15998 | lt_prog_compiler_pic_GCJ='-KPIC' |
15999 | lt_prog_compiler_static_GCJ='-Bstatic' |
16000 | case $cc_basename in |
16001 | f77* | f90* | f95*) |
16002 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
16003 | *) |
16004 | lt_prog_compiler_wl_GCJ='-Wl,';; |
16005 | esac |
16006 | ;; |
16007 | |
16008 | sunos4*) |
16009 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
16010 | lt_prog_compiler_pic_GCJ='-PIC' |
16011 | lt_prog_compiler_static_GCJ='-Bstatic' |
16012 | ;; |
16013 | |
16014 | sysv4 | sysv4.2uw2* | sysv4.3*) |
16015 | lt_prog_compiler_wl_GCJ='-Wl,' |
16016 | lt_prog_compiler_pic_GCJ='-KPIC' |
16017 | lt_prog_compiler_static_GCJ='-Bstatic' |
16018 | ;; |
16019 | |
16020 | sysv4*MP*) |
16021 | if test -d /usr/nec ;then |
16022 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
16023 | lt_prog_compiler_static_GCJ='-Bstatic' |
16024 | fi |
16025 | ;; |
16026 | |
16027 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
16028 | lt_prog_compiler_wl_GCJ='-Wl,' |
16029 | lt_prog_compiler_pic_GCJ='-KPIC' |
16030 | lt_prog_compiler_static_GCJ='-Bstatic' |
16031 | ;; |
16032 | |
16033 | unicos*) |
16034 | lt_prog_compiler_wl_GCJ='-Wl,' |
16035 | lt_prog_compiler_can_build_shared_GCJ=no |
16036 | ;; |
16037 | |
16038 | uts4*) |
16039 | lt_prog_compiler_pic_GCJ='-pic' |
16040 | lt_prog_compiler_static_GCJ='-Bstatic' |
16041 | ;; |
16042 | |
16043 | *) |
16044 | lt_prog_compiler_can_build_shared_GCJ=no |
16045 | ;; |
16046 | esac |
16047 | fi |
16048 | |
16049 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
16050 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
16051 | |
16052 | # |
16053 | # Check to make sure the PIC flag actually works. |
16054 | # |
16055 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
16056 | |
16057 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
16058 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
16059 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
16060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16061 | else |
16062 | lt_prog_compiler_pic_works_GCJ=no |
16063 | ac_outfile=conftest.$ac_objext |
16064 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16065 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
16066 | # Insert the option either (1) after the last *FLAGS variable, or |
16067 | # (2) before a word containing "conftest.", or (3) at the end. |
16068 | # Note that $ac_compile itself does not contain backslashes and begins |
16069 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16070 | # The option is referenced via a variable to avoid confusing sed. |
16071 | lt_compile=`echo "$ac_compile" | $SED \ |
16072 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16073 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16074 | -e 's:$: $lt_compiler_flag:'` |
16075 | (eval echo "\"\$as_me:16075: $lt_compile\"" >&5) |
16076 | (eval "$lt_compile" 2>conftest.err) |
16077 | ac_status=$? |
16078 | cat conftest.err >&5 |
16079 | echo "$as_me:16079: \$? = $ac_status" >&5 |
16080 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16081 | # The compiler can only warn and ignore the option if not recognized |
16082 | # So say no if there are warnings other than the usual output. |
16083 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
16084 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16085 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16086 | lt_prog_compiler_pic_works_GCJ=yes |
16087 | fi |
16088 | fi |
16089 | $rm conftest* |
16090 | |
16091 | fi |
16092 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
16093 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
16094 | |
16095 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
16096 | case $lt_prog_compiler_pic_GCJ in |
16097 | "" | " "*) ;; |
16098 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
16099 | esac |
16100 | else |
16101 | lt_prog_compiler_pic_GCJ= |
16102 | lt_prog_compiler_can_build_shared_GCJ=no |
16103 | fi |
16104 | |
16105 | fi |
16106 | case $host_os in |
16107 | # For platforms which do not support PIC, -DPIC is meaningless: |
16108 | *djgpp*) |
16109 | lt_prog_compiler_pic_GCJ= |
16110 | ;; |
16111 | *) |
16112 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
16113 | ;; |
16114 | esac |
16115 | |
16116 | # |
16117 | # Check to make sure the static flag actually works. |
16118 | # |
16119 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
16120 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
16121 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
16122 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
16123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16124 | else |
16125 | lt_prog_compiler_static_works_GCJ=no |
16126 | save_LDFLAGS="$LDFLAGS" |
16127 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
16128 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
16129 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
16130 | # The linker can only warn and ignore the option if not recognized |
16131 | # So say no if there are warnings |
16132 | if test -s conftest.err; then |
16133 | # Append any errors to the config.log. |
16134 | cat conftest.err 1>&5 |
16135 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
16136 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16137 | if diff conftest.exp conftest.er2 >/dev/null; then |
16138 | lt_prog_compiler_static_works_GCJ=yes |
16139 | fi |
16140 | else |
16141 | lt_prog_compiler_static_works_GCJ=yes |
16142 | fi |
16143 | fi |
16144 | $rm conftest* |
16145 | LDFLAGS="$save_LDFLAGS" |
16146 | |
16147 | fi |
16148 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
16149 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 |
16150 | |
16151 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
16152 | : |
16153 | else |
16154 | lt_prog_compiler_static_GCJ= |
16155 | fi |
16156 | |
16157 | |
16158 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
16159 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
16160 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
16161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16162 | else |
16163 | lt_cv_prog_compiler_c_o_GCJ=no |
16164 | $rm -r conftest 2>/dev/null |
16165 | mkdir conftest |
16166 | cd conftest |
16167 | mkdir out |
16168 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16169 | |
16170 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
16171 | # Insert the option either (1) after the last *FLAGS variable, or |
16172 | # (2) before a word containing "conftest.", or (3) at the end. |
16173 | # Note that $ac_compile itself does not contain backslashes and begins |
16174 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16175 | lt_compile=`echo "$ac_compile" | $SED \ |
16176 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16177 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16178 | -e 's:$: $lt_compiler_flag:'` |
16179 | (eval echo "\"\$as_me:16179: $lt_compile\"" >&5) |
16180 | (eval "$lt_compile" 2>out/conftest.err) |
16181 | ac_status=$? |
16182 | cat out/conftest.err >&5 |
16183 | echo "$as_me:16183: \$? = $ac_status" >&5 |
16184 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16185 | then |
16186 | # The compiler can only warn and ignore the option if not recognized |
16187 | # So say no if there are warnings |
16188 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
16189 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
16190 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
16191 | lt_cv_prog_compiler_c_o_GCJ=yes |
16192 | fi |
16193 | fi |
16194 | chmod u+w . 2>&5 |
16195 | $rm conftest* |
16196 | # SGI C++ compiler will create directory out/ii_files/ for |
16197 | # template instantiation |
16198 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
16199 | $rm out/* && rmdir out |
16200 | cd .. |
16201 | rmdir conftest |
16202 | $rm conftest* |
16203 | |
16204 | fi |
16205 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
16206 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
16207 | |
16208 | |
16209 | hard_links="nottested" |
16210 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
16211 | # do not overwrite the value of need_locks provided by the user |
16212 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
16213 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
16214 | hard_links=yes |
16215 | $rm conftest* |
16216 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16217 | touch conftest.a |
16218 | ln conftest.a conftest.b 2>&5 || hard_links=no |
16219 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16220 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
16221 | echo "${ECHO_T}$hard_links" >&6 |
16222 | if test "$hard_links" = no; then |
16223 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
16224 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
16225 | need_locks=warn |
16226 | fi |
16227 | else |
16228 | need_locks=no |
16229 | fi |
16230 | |
16231 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
16232 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
16233 | |
16234 | runpath_var= |
16235 | allow_undefined_flag_GCJ= |
16236 | enable_shared_with_static_runtimes_GCJ=no |
16237 | archive_cmds_GCJ= |
16238 | archive_expsym_cmds_GCJ= |
16239 | old_archive_From_new_cmds_GCJ= |
16240 | old_archive_from_expsyms_cmds_GCJ= |
16241 | export_dynamic_flag_spec_GCJ= |
16242 | whole_archive_flag_spec_GCJ= |
16243 | thread_safe_flag_spec_GCJ= |
16244 | hardcode_libdir_flag_spec_GCJ= |
16245 | hardcode_libdir_flag_spec_ld_GCJ= |
16246 | hardcode_libdir_separator_GCJ= |
16247 | hardcode_direct_GCJ=no |
16248 | hardcode_minus_L_GCJ=no |
16249 | hardcode_shlibpath_var_GCJ=unsupported |
16250 | link_all_deplibs_GCJ=unknown |
16251 | hardcode_automatic_GCJ=no |
16252 | module_cmds_GCJ= |
16253 | module_expsym_cmds_GCJ= |
16254 | always_export_symbols_GCJ=no |
16255 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
16256 | # include_expsyms should be a list of space-separated symbols to be *always* |
16257 | # included in the symbol list |
16258 | include_expsyms_GCJ= |
16259 | # exclude_expsyms can be an extended regexp of symbols to exclude |
16260 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
16261 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
16262 | # as well as any symbol that contains `d'. |
16263 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
16264 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
16265 | # platforms (ab)use it in PIC code, but their linkers get confused if |
16266 | # the symbol is explicitly referenced. Since portable code cannot |
16267 | # rely on this symbol name, it's probably fine to never include it in |
16268 | # preloaded symbol tables. |
16269 | extract_expsyms_cmds= |
16270 | # Just being paranoid about ensuring that cc_basename is set. |
16271 | for cc_temp in $compiler""; do |
16272 | case $cc_temp in |
16273 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16274 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16275 | \-*) ;; |
16276 | *) break;; |
16277 | esac |
16278 | done |
16279 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16280 | |
16281 | case $host_os in |
16282 | cygwin* | mingw* | pw32*) |
16283 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
16284 | # When not using gcc, we currently assume that we are using |
16285 | # Microsoft Visual C++. |
16286 | if test "$GCC" != yes; then |
16287 | with_gnu_ld=no |
16288 | fi |
16289 | ;; |
16290 | interix*) |
16291 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
16292 | with_gnu_ld=yes |
16293 | ;; |
16294 | openbsd*) |
16295 | with_gnu_ld=no |
16296 | ;; |
16297 | esac |
16298 | |
16299 | ld_shlibs_GCJ=yes |
16300 | if test "$with_gnu_ld" = yes; then |
16301 | # If archive_cmds runs LD, not CC, wlarc should be empty |
16302 | wlarc='${wl}' |
16303 | |
16304 | # Set some defaults for GNU ld with shared library support. These |
16305 | # are reset later if shared libraries are not supported. Putting them |
16306 | # here allows them to be overridden if necessary. |
16307 | runpath_var=LD_RUN_PATH |
16308 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
16309 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
16310 | # ancient GNU ld didn't support --whole-archive et. al. |
16311 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
16312 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
16313 | else |
16314 | whole_archive_flag_spec_GCJ= |
16315 | fi |
16316 | supports_anon_versioning=no |
16317 | case `$LD -v 2>/dev/null` in |
16318 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
16319 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
16320 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
16321 | *\ 2.11.*) ;; # other 2.11 versions |
16322 | *) supports_anon_versioning=yes ;; |
16323 | esac |
16324 | |
16325 | # See if GNU ld supports shared libraries. |
16326 | case $host_os in |
16327 | aix3* | aix4* | aix5*) |
16328 | # On AIX/PPC, the GNU linker is very broken |
16329 | if test "$host_cpu" != ia64; then |
16330 | ld_shlibs_GCJ=no |
16331 | cat <<EOF 1>&2 |
16332 | |
16333 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
16334 | *** to be unable to reliably create shared libraries on AIX. |
16335 | *** Therefore, libtool is disabling shared libraries support. If you |
16336 | *** really care for shared libraries, you may want to modify your PATH |
16337 | *** so that a non-GNU linker is found, and then restart. |
16338 | |
16339 | EOF |
16340 | fi |
16341 | ;; |
16342 | |
16343 | amigaos*) |
16344 | 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)' |
16345 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16346 | hardcode_minus_L_GCJ=yes |
16347 | |
16348 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
16349 | # that the semantics of dynamic libraries on AmigaOS, at least up |
16350 | # to version 4, is to share data among multiple programs linked |
16351 | # with the same dynamic library. Since this doesn't match the |
16352 | # behavior of shared libraries on other platforms, we can't use |
16353 | # them. |
16354 | ld_shlibs_GCJ=no |
16355 | ;; |
16356 | |
16357 | beos*) |
16358 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16359 | allow_undefined_flag_GCJ=unsupported |
16360 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
16361 | # support --undefined. This deserves some investigation. FIXME |
16362 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16363 | else |
16364 | ld_shlibs_GCJ=no |
16365 | fi |
16366 | ;; |
16367 | |
16368 | cygwin* | mingw* | pw32*) |
16369 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
16370 | # as there is no search path for DLLs. |
16371 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16372 | allow_undefined_flag_GCJ=unsupported |
16373 | always_export_symbols_GCJ=no |
16374 | enable_shared_with_static_runtimes_GCJ=yes |
16375 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
16376 | |
16377 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
16378 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16379 | # If the export-symbols file already is a .def file (1st line |
16380 | # is EXPORTS), use it as is; otherwise, prepend... |
16381 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
16382 | cp $export_symbols $output_objdir/$soname.def; |
16383 | else |
16384 | echo EXPORTS > $output_objdir/$soname.def; |
16385 | cat $export_symbols >> $output_objdir/$soname.def; |
16386 | fi~ |
16387 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16388 | else |
16389 | ld_shlibs_GCJ=no |
16390 | fi |
16391 | ;; |
16392 | |
16393 | interix3*) |
16394 | hardcode_direct_GCJ=no |
16395 | hardcode_shlibpath_var_GCJ=no |
16396 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
16397 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16398 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
16399 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
16400 | # default) and relocated if they conflict, which is a slow very memory |
16401 | # consuming and fragmenting process. To avoid this, we pick a random, |
16402 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
16403 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
16404 | 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' |
16405 | 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' |
16406 | ;; |
16407 | |
16408 | linux*) |
16409 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16410 | tmp_addflag= |
16411 | case $cc_basename,$host_cpu in |
16412 | pgcc*) # Portland Group C compiler |
16413 | 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' |
16414 | tmp_addflag=' $pic_flag' |
16415 | ;; |
16416 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
16417 | 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' |
16418 | tmp_addflag=' $pic_flag -Mnomain' ;; |
16419 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
16420 | tmp_addflag=' -i_dynamic' ;; |
16421 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
16422 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
16423 | ifc* | ifort*) # Intel Fortran compiler |
16424 | tmp_addflag=' -nofor_main' ;; |
16425 | esac |
16426 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16427 | |
16428 | if test $supports_anon_versioning = yes; then |
16429 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
16430 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
16431 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
16432 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
16433 | fi |
16434 | else |
16435 | ld_shlibs_GCJ=no |
16436 | fi |
16437 | ;; |
16438 | |
16439 | netbsd*) |
16440 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
16441 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
16442 | wlarc= |
16443 | else |
16444 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16445 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16446 | fi |
16447 | ;; |
16448 | |
16449 | solaris*) |
16450 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
16451 | ld_shlibs_GCJ=no |
16452 | cat <<EOF 1>&2 |
16453 | |
16454 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
16455 | *** create shared libraries on Solaris systems. Therefore, libtool |
16456 | *** is disabling shared libraries support. We urge you to upgrade GNU |
16457 | *** binutils to release 2.9.1 or newer. Another option is to modify |
16458 | *** your PATH or compiler configuration so that the native linker is |
16459 | *** used, and then restart. |
16460 | |
16461 | EOF |
16462 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16463 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16464 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16465 | else |
16466 | ld_shlibs_GCJ=no |
16467 | fi |
16468 | ;; |
16469 | |
16470 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
16471 | case `$LD -v 2>&1` in |
16472 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
16473 | ld_shlibs_GCJ=no |
16474 | cat <<_LT_EOF 1>&2 |
16475 | |
16476 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
16477 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
16478 | *** is disabling shared libraries support. We urge you to upgrade GNU |
16479 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
16480 | *** your PATH or compiler configuration so that the native linker is |
16481 | *** used, and then restart. |
16482 | |
16483 | _LT_EOF |
16484 | ;; |
16485 | *) |
16486 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16487 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
16488 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
16489 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
16490 | else |
16491 | ld_shlibs_GCJ=no |
16492 | fi |
16493 | ;; |
16494 | esac |
16495 | ;; |
16496 | |
16497 | sunos4*) |
16498 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16499 | wlarc= |
16500 | hardcode_direct_GCJ=yes |
16501 | hardcode_shlibpath_var_GCJ=no |
16502 | ;; |
16503 | |
16504 | *) |
16505 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16506 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16507 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16508 | else |
16509 | ld_shlibs_GCJ=no |
16510 | fi |
16511 | ;; |
16512 | esac |
16513 | |
16514 | if test "$ld_shlibs_GCJ" = no; then |
16515 | runpath_var= |
16516 | hardcode_libdir_flag_spec_GCJ= |
16517 | export_dynamic_flag_spec_GCJ= |
16518 | whole_archive_flag_spec_GCJ= |
16519 | fi |
16520 | else |
16521 | # PORTME fill in a description of your system's linker (not GNU ld) |
16522 | case $host_os in |
16523 | aix3*) |
16524 | allow_undefined_flag_GCJ=unsupported |
16525 | always_export_symbols_GCJ=yes |
16526 | 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' |
16527 | # Note: this linker hardcodes the directories in LIBPATH if there |
16528 | # are no directories specified by -L. |
16529 | hardcode_minus_L_GCJ=yes |
16530 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
16531 | # Neither direct hardcoding nor static linking is supported with a |
16532 | # broken collect2. |
16533 | hardcode_direct_GCJ=unsupported |
16534 | fi |
16535 | ;; |
16536 | |
16537 | aix4* | aix5*) |
16538 | if test "$host_cpu" = ia64; then |
16539 | # On IA64, the linker does run time linking by default, so we don't |
16540 | # have to do anything special. |
16541 | aix_use_runtimelinking=no |
16542 | exp_sym_flag='-Bexport' |
16543 | no_entry_flag="" |
16544 | else |
16545 | # If we're using GNU nm, then we don't want the "-C" option. |
16546 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
16547 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
16548 | 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' |
16549 | else |
16550 | 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' |
16551 | fi |
16552 | aix_use_runtimelinking=no |
16553 | |
16554 | # Test if we are trying to use run time linking or normal |
16555 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
16556 | # need to do runtime linking. |
16557 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
16558 | for ld_flag in $LDFLAGS; do |
16559 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
16560 | aix_use_runtimelinking=yes |
16561 | break |
16562 | fi |
16563 | done |
16564 | ;; |
16565 | esac |
16566 | |
16567 | exp_sym_flag='-bexport' |
16568 | no_entry_flag='-bnoentry' |
16569 | fi |
16570 | |
16571 | # When large executables or shared objects are built, AIX ld can |
16572 | # have problems creating the table of contents. If linking a library |
16573 | # or program results in "error TOC overflow" add -mminimal-toc to |
16574 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
16575 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
16576 | |
16577 | archive_cmds_GCJ='' |
16578 | hardcode_direct_GCJ=yes |
16579 | hardcode_libdir_separator_GCJ=':' |
16580 | link_all_deplibs_GCJ=yes |
16581 | |
16582 | if test "$GCC" = yes; then |
16583 | case $host_os in aix4.[012]|aix4.[012].*) |
16584 | # We only want to do this on AIX 4.2 and lower, the check |
16585 | # below for broken collect2 doesn't work under 4.3+ |
16586 | collect2name=`${CC} -print-prog-name=collect2` |
16587 | if test -f "$collect2name" && \ |
16588 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
16589 | then |
16590 | # We have reworked collect2 |
16591 | hardcode_direct_GCJ=yes |
16592 | else |
16593 | # We have old collect2 |
16594 | hardcode_direct_GCJ=unsupported |
16595 | # It fails to find uninstalled libraries when the uninstalled |
16596 | # path is not listed in the libpath. Setting hardcode_minus_L |
16597 | # to unsupported forces relinking |
16598 | hardcode_minus_L_GCJ=yes |
16599 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16600 | hardcode_libdir_separator_GCJ= |
16601 | fi |
16602 | ;; |
16603 | esac |
16604 | shared_flag='-shared' |
16605 | if test "$aix_use_runtimelinking" = yes; then |
16606 | shared_flag="$shared_flag "'${wl}-G' |
16607 | fi |
16608 | else |
16609 | # not using gcc |
16610 | if test "$host_cpu" = ia64; then |
16611 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
16612 | # chokes on -Wl,-G. The following line is correct: |
16613 | shared_flag='-G' |
16614 | else |
16615 | if test "$aix_use_runtimelinking" = yes; then |
16616 | shared_flag='${wl}-G' |
16617 | else |
16618 | shared_flag='${wl}-bM:SRE' |
16619 | fi |
16620 | fi |
16621 | fi |
16622 | |
16623 | # It seems that -bexpall does not export symbols beginning with |
16624 | # underscore (_), so it is better to generate a list of symbols to export. |
16625 | always_export_symbols_GCJ=yes |
16626 | if test "$aix_use_runtimelinking" = yes; then |
16627 | # Warning - without using the other runtime loading flags (-brtl), |
16628 | # -berok will link without error, but may produce a broken library. |
16629 | allow_undefined_flag_GCJ='-berok' |
16630 | # Determine the default libpath from the value encoded in an empty executable. |
16631 | cat >conftest.$ac_ext <<_ACEOF |
16632 | /* confdefs.h. */ |
16633 | _ACEOF |
16634 | cat confdefs.h >>conftest.$ac_ext |
16635 | cat >>conftest.$ac_ext <<_ACEOF |
16636 | /* end confdefs.h. */ |
16637 | |
16638 | int |
16639 | main () |
16640 | { |
16641 | |
16642 | ; |
16643 | return 0; |
16644 | } |
16645 | _ACEOF |
16646 | rm -f conftest.$ac_objext conftest$ac_exeext |
16647 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16648 | (eval $ac_link) 2>conftest.er1 |
16649 | ac_status=$? |
16650 | grep -v '^ *+' conftest.er1 >conftest.err |
16651 | rm -f conftest.er1 |
16652 | cat conftest.err >&5 |
16653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16654 | (exit $ac_status); } && |
16655 | { ac_try='test -z "$ac_c_werror_flag" |
16656 | || test ! -s conftest.err' |
16657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16658 | (eval $ac_try) 2>&5 |
16659 | ac_status=$? |
16660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16661 | (exit $ac_status); }; } && |
16662 | { ac_try='test -s conftest$ac_exeext' |
16663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16664 | (eval $ac_try) 2>&5 |
16665 | ac_status=$? |
16666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16667 | (exit $ac_status); }; }; then |
16668 | |
16669 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
16670 | }'` |
16671 | # Check for a 64-bit object if we didn't find anything. |
16672 | 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; } |
16673 | }'`; fi |
16674 | else |
16675 | echo "$as_me: failed program was:" >&5 |
16676 | sed 's/^/| /' conftest.$ac_ext >&5 |
16677 | |
16678 | fi |
16679 | rm -f conftest.err conftest.$ac_objext \ |
16680 | conftest$ac_exeext conftest.$ac_ext |
16681 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
16682 | |
16683 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
16684 | 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" |
16685 | else |
16686 | if test "$host_cpu" = ia64; then |
16687 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
16688 | allow_undefined_flag_GCJ="-z nodefs" |
16689 | 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" |
16690 | else |
16691 | # Determine the default libpath from the value encoded in an empty executable. |
16692 | cat >conftest.$ac_ext <<_ACEOF |
16693 | /* confdefs.h. */ |
16694 | _ACEOF |
16695 | cat confdefs.h >>conftest.$ac_ext |
16696 | cat >>conftest.$ac_ext <<_ACEOF |
16697 | /* end confdefs.h. */ |
16698 | |
16699 | int |
16700 | main () |
16701 | { |
16702 | |
16703 | ; |
16704 | return 0; |
16705 | } |
16706 | _ACEOF |
16707 | rm -f conftest.$ac_objext conftest$ac_exeext |
16708 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16709 | (eval $ac_link) 2>conftest.er1 |
16710 | ac_status=$? |
16711 | grep -v '^ *+' conftest.er1 >conftest.err |
16712 | rm -f conftest.er1 |
16713 | cat conftest.err >&5 |
16714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16715 | (exit $ac_status); } && |
16716 | { ac_try='test -z "$ac_c_werror_flag" |
16717 | || test ! -s conftest.err' |
16718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16719 | (eval $ac_try) 2>&5 |
16720 | ac_status=$? |
16721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16722 | (exit $ac_status); }; } && |
16723 | { ac_try='test -s conftest$ac_exeext' |
16724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16725 | (eval $ac_try) 2>&5 |
16726 | ac_status=$? |
16727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16728 | (exit $ac_status); }; }; then |
16729 | |
16730 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
16731 | }'` |
16732 | # Check for a 64-bit object if we didn't find anything. |
16733 | 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; } |
16734 | }'`; fi |
16735 | else |
16736 | echo "$as_me: failed program was:" >&5 |
16737 | sed 's/^/| /' conftest.$ac_ext >&5 |
16738 | |
16739 | fi |
16740 | rm -f conftest.err conftest.$ac_objext \ |
16741 | conftest$ac_exeext conftest.$ac_ext |
16742 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
16743 | |
16744 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
16745 | # Warning - without using the other run time loading flags, |
16746 | # -berok will link without error, but may produce a broken library. |
16747 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
16748 | allow_undefined_flag_GCJ=' ${wl}-berok' |
16749 | # Exported symbols can be pulled into shared objects from archives |
16750 | whole_archive_flag_spec_GCJ='$convenience' |
16751 | archive_cmds_need_lc_GCJ=yes |
16752 | # This is similar to how AIX traditionally builds its shared libraries. |
16753 | 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' |
16754 | fi |
16755 | fi |
16756 | ;; |
16757 | |
16758 | amigaos*) |
16759 | 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)' |
16760 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16761 | hardcode_minus_L_GCJ=yes |
16762 | # see comment about different semantics on the GNU ld section |
16763 | ld_shlibs_GCJ=no |
16764 | ;; |
16765 | |
16766 | bsdi[45]*) |
16767 | export_dynamic_flag_spec_GCJ=-rdynamic |
16768 | ;; |
16769 | |
16770 | cygwin* | mingw* | pw32*) |
16771 | # When not using gcc, we currently assume that we are using |
16772 | # Microsoft Visual C++. |
16773 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
16774 | # no search path for DLLs. |
16775 | hardcode_libdir_flag_spec_GCJ=' ' |
16776 | allow_undefined_flag_GCJ=unsupported |
16777 | # Tell ltmain to make .lib files, not .a files. |
16778 | libext=lib |
16779 | # Tell ltmain to make .dll files, not .so files. |
16780 | shrext_cmds=".dll" |
16781 | # FIXME: Setting linknames here is a bad hack. |
16782 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
16783 | # The linker will automatically build a .lib file if we build a DLL. |
16784 | old_archive_From_new_cmds_GCJ='true' |
16785 | # FIXME: Should let the user specify the lib program. |
16786 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
16787 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
16788 | enable_shared_with_static_runtimes_GCJ=yes |
16789 | ;; |
16790 | |
16791 | darwin* | rhapsody*) |
16792 | case $host_os in |
16793 | rhapsody* | darwin1.[012]) |
16794 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
16795 | ;; |
16796 | *) # Darwin 1.3 on |
16797 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
16798 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
16799 | else |
16800 | case ${MACOSX_DEPLOYMENT_TARGET} in |
16801 | 10.[012]) |
16802 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
16803 | ;; |
16804 | 10.*) |
16805 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
16806 | ;; |
16807 | esac |
16808 | fi |
16809 | ;; |
16810 | esac |
16811 | archive_cmds_need_lc_GCJ=no |
16812 | hardcode_direct_GCJ=no |
16813 | hardcode_automatic_GCJ=yes |
16814 | hardcode_shlibpath_var_GCJ=unsupported |
16815 | whole_archive_flag_spec_GCJ='' |
16816 | link_all_deplibs_GCJ=yes |
16817 | if test "$GCC" = yes ; then |
16818 | output_verbose_link_cmd='echo' |
16819 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
16820 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
16821 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
16822 | 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}' |
16823 | 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}' |
16824 | else |
16825 | case $cc_basename in |
16826 | xlc*) |
16827 | output_verbose_link_cmd='echo' |
16828 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
16829 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
16830 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
16831 | 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}' |
16832 | 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}' |
16833 | ;; |
16834 | *) |
16835 | ld_shlibs_GCJ=no |
16836 | ;; |
16837 | esac |
16838 | fi |
16839 | ;; |
16840 | |
16841 | dgux*) |
16842 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16843 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16844 | hardcode_shlibpath_var_GCJ=no |
16845 | ;; |
16846 | |
16847 | freebsd1*) |
16848 | ld_shlibs_GCJ=no |
16849 | ;; |
16850 | |
16851 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
16852 | # support. Future versions do this automatically, but an explicit c++rt0.o |
16853 | # does not break anything, and helps significantly (at the cost of a little |
16854 | # extra space). |
16855 | freebsd2.2*) |
16856 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
16857 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16858 | hardcode_direct_GCJ=yes |
16859 | hardcode_shlibpath_var_GCJ=no |
16860 | ;; |
16861 | |
16862 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
16863 | freebsd2*) |
16864 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16865 | hardcode_direct_GCJ=yes |
16866 | hardcode_minus_L_GCJ=yes |
16867 | hardcode_shlibpath_var_GCJ=no |
16868 | ;; |
16869 | |
16870 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
16871 | freebsd* | kfreebsd*-gnu | dragonfly*) |
16872 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
16873 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16874 | hardcode_direct_GCJ=yes |
16875 | hardcode_shlibpath_var_GCJ=no |
16876 | ;; |
16877 | |
16878 | hpux9*) |
16879 | if test "$GCC" = yes; then |
16880 | 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' |
16881 | else |
16882 | 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' |
16883 | fi |
16884 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
16885 | hardcode_libdir_separator_GCJ=: |
16886 | hardcode_direct_GCJ=yes |
16887 | |
16888 | # hardcode_minus_L: Not really in the search PATH, |
16889 | # but as the default location of the library. |
16890 | hardcode_minus_L_GCJ=yes |
16891 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16892 | ;; |
16893 | |
16894 | hpux10*) |
16895 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
16896 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
16897 | else |
16898 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
16899 | fi |
16900 | if test "$with_gnu_ld" = no; then |
16901 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
16902 | hardcode_libdir_separator_GCJ=: |
16903 | |
16904 | hardcode_direct_GCJ=yes |
16905 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16906 | |
16907 | # hardcode_minus_L: Not really in the search PATH, |
16908 | # but as the default location of the library. |
16909 | hardcode_minus_L_GCJ=yes |
16910 | fi |
16911 | ;; |
16912 | |
16913 | hpux11*) |
16914 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
16915 | case $host_cpu in |
16916 | hppa*64*) |
16917 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16918 | ;; |
16919 | ia64*) |
16920 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
16921 | ;; |
16922 | *) |
16923 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
16924 | ;; |
16925 | esac |
16926 | else |
16927 | case $host_cpu in |
16928 | hppa*64*) |
16929 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16930 | ;; |
16931 | ia64*) |
16932 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
16933 | ;; |
16934 | *) |
16935 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
16936 | ;; |
16937 | esac |
16938 | fi |
16939 | if test "$with_gnu_ld" = no; then |
16940 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
16941 | hardcode_libdir_separator_GCJ=: |
16942 | |
16943 | case $host_cpu in |
16944 | hppa*64*|ia64*) |
16945 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
16946 | hardcode_direct_GCJ=no |
16947 | hardcode_shlibpath_var_GCJ=no |
16948 | ;; |
16949 | *) |
16950 | hardcode_direct_GCJ=yes |
16951 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16952 | |
16953 | # hardcode_minus_L: Not really in the search PATH, |
16954 | # but as the default location of the library. |
16955 | hardcode_minus_L_GCJ=yes |
16956 | ;; |
16957 | esac |
16958 | fi |
16959 | ;; |
16960 | |
16961 | irix5* | irix6* | nonstopux*) |
16962 | if test "$GCC" = yes; then |
16963 | 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' |
16964 | else |
16965 | 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' |
16966 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
16967 | fi |
16968 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16969 | hardcode_libdir_separator_GCJ=: |
16970 | link_all_deplibs_GCJ=yes |
16971 | ;; |
16972 | |
16973 | netbsd*) |
16974 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
16975 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
16976 | else |
16977 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
16978 | fi |
16979 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16980 | hardcode_direct_GCJ=yes |
16981 | hardcode_shlibpath_var_GCJ=no |
16982 | ;; |
16983 | |
16984 | newsos6) |
16985 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16986 | hardcode_direct_GCJ=yes |
16987 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16988 | hardcode_libdir_separator_GCJ=: |
16989 | hardcode_shlibpath_var_GCJ=no |
16990 | ;; |
16991 | |
16992 | openbsd*) |
16993 | hardcode_direct_GCJ=yes |
16994 | hardcode_shlibpath_var_GCJ=no |
16995 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
16996 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
16997 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
16998 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
16999 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17000 | else |
17001 | case $host_os in |
17002 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
17003 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17004 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17005 | ;; |
17006 | *) |
17007 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
17008 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17009 | ;; |
17010 | esac |
17011 | fi |
17012 | ;; |
17013 | |
17014 | os2*) |
17015 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17016 | hardcode_minus_L_GCJ=yes |
17017 | allow_undefined_flag_GCJ=unsupported |
17018 | 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' |
17019 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
17020 | ;; |
17021 | |
17022 | osf3*) |
17023 | if test "$GCC" = yes; then |
17024 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
17025 | 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' |
17026 | else |
17027 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17028 | 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' |
17029 | fi |
17030 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17031 | hardcode_libdir_separator_GCJ=: |
17032 | ;; |
17033 | |
17034 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
17035 | if test "$GCC" = yes; then |
17036 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
17037 | 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' |
17038 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17039 | else |
17040 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17041 | 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' |
17042 | 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~ |
17043 | $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' |
17044 | |
17045 | # Both c and cxx compiler support -rpath directly |
17046 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
17047 | fi |
17048 | hardcode_libdir_separator_GCJ=: |
17049 | ;; |
17050 | |
17051 | solaris*) |
17052 | no_undefined_flag_GCJ=' -z text' |
17053 | if test "$GCC" = yes; then |
17054 | wlarc='${wl}' |
17055 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17056 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17057 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
17058 | else |
17059 | wlarc='' |
17060 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17061 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17062 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
17063 | fi |
17064 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17065 | hardcode_shlibpath_var_GCJ=no |
17066 | case $host_os in |
17067 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
17068 | *) |
17069 | # The compiler driver will combine linker options so we |
17070 | # cannot just pass the convience library names through |
17071 | # without $wl, iff we do not link with $LD. |
17072 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
17073 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
17074 | case $wlarc in |
17075 | '') |
17076 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
17077 | *) |
17078 | 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' ;; |
17079 | esac ;; |
17080 | esac |
17081 | link_all_deplibs_GCJ=yes |
17082 | ;; |
17083 | |
17084 | sunos4*) |
17085 | if test "x$host_vendor" = xsequent; then |
17086 | # Use $CC to link under sequent, because it throws in some extra .o |
17087 | # files that make .init and .fini sections work. |
17088 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
17089 | else |
17090 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
17091 | fi |
17092 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17093 | hardcode_direct_GCJ=yes |
17094 | hardcode_minus_L_GCJ=yes |
17095 | hardcode_shlibpath_var_GCJ=no |
17096 | ;; |
17097 | |
17098 | sysv4) |
17099 | case $host_vendor in |
17100 | sni) |
17101 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17102 | hardcode_direct_GCJ=yes # is this really true??? |
17103 | ;; |
17104 | siemens) |
17105 | ## LD is ld it makes a PLAMLIB |
17106 | ## CC just makes a GrossModule. |
17107 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
17108 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
17109 | hardcode_direct_GCJ=no |
17110 | ;; |
17111 | motorola) |
17112 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17113 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
17114 | ;; |
17115 | esac |
17116 | runpath_var='LD_RUN_PATH' |
17117 | hardcode_shlibpath_var_GCJ=no |
17118 | ;; |
17119 | |
17120 | sysv4.3*) |
17121 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17122 | hardcode_shlibpath_var_GCJ=no |
17123 | export_dynamic_flag_spec_GCJ='-Bexport' |
17124 | ;; |
17125 | |
17126 | sysv4*MP*) |
17127 | if test -d /usr/nec; then |
17128 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17129 | hardcode_shlibpath_var_GCJ=no |
17130 | runpath_var=LD_RUN_PATH |
17131 | hardcode_runpath_var=yes |
17132 | ld_shlibs_GCJ=yes |
17133 | fi |
17134 | ;; |
17135 | |
17136 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
17137 | no_undefined_flag_GCJ='${wl}-z,text' |
17138 | archive_cmds_need_lc_GCJ=no |
17139 | hardcode_shlibpath_var_GCJ=no |
17140 | runpath_var='LD_RUN_PATH' |
17141 | |
17142 | if test "$GCC" = yes; then |
17143 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17144 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17145 | else |
17146 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17147 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17148 | fi |
17149 | ;; |
17150 | |
17151 | sysv5* | sco3.2v5* | sco5v6*) |
17152 | # Note: We can NOT use -z defs as we might desire, because we do not |
17153 | # link with -lc, and that would cause any symbols used from libc to |
17154 | # always be unresolved, which means just about no library would |
17155 | # ever link correctly. If we're not using GNU ld we use -z text |
17156 | # though, which does catch some bad symbols but isn't as heavy-handed |
17157 | # as -z defs. |
17158 | no_undefined_flag_GCJ='${wl}-z,text' |
17159 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
17160 | archive_cmds_need_lc_GCJ=no |
17161 | hardcode_shlibpath_var_GCJ=no |
17162 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
17163 | hardcode_libdir_separator_GCJ=':' |
17164 | link_all_deplibs_GCJ=yes |
17165 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
17166 | runpath_var='LD_RUN_PATH' |
17167 | |
17168 | if test "$GCC" = yes; then |
17169 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17170 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17171 | else |
17172 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17173 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17174 | fi |
17175 | ;; |
17176 | |
17177 | uts4*) |
17178 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17179 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17180 | hardcode_shlibpath_var_GCJ=no |
17181 | ;; |
17182 | |
17183 | *) |
17184 | ld_shlibs_GCJ=no |
17185 | ;; |
17186 | esac |
17187 | fi |
17188 | |
17189 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
17190 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
17191 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
17192 | |
17193 | # |
17194 | # Do we need to explicitly link libc? |
17195 | # |
17196 | case "x$archive_cmds_need_lc_GCJ" in |
17197 | x|xyes) |
17198 | # Assume -lc should be added |
17199 | archive_cmds_need_lc_GCJ=yes |
17200 | |
17201 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
17202 | case $archive_cmds_GCJ in |
17203 | *'~'*) |
17204 | # FIXME: we may have to deal with multi-command sequences. |
17205 | ;; |
17206 | '$CC '*) |
17207 | # Test whether the compiler implicitly links with -lc since on some |
17208 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
17209 | # to ld, don't add -lc before -lgcc. |
17210 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
17211 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
17212 | $rm conftest* |
17213 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
17214 | |
17215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17216 | (eval $ac_compile) 2>&5 |
17217 | ac_status=$? |
17218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17219 | (exit $ac_status); } 2>conftest.err; then |
17220 | soname=conftest |
17221 | lib=conftest |
17222 | libobjs=conftest.$ac_objext |
17223 | deplibs= |
17224 | wl=$lt_prog_compiler_wl_GCJ |
17225 | pic_flag=$lt_prog_compiler_pic_GCJ |
17226 | compiler_flags=-v |
17227 | linker_flags=-v |
17228 | verstring= |
17229 | output_objdir=. |
17230 | libname=conftest |
17231 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
17232 | allow_undefined_flag_GCJ= |
17233 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
17234 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
17235 | ac_status=$? |
17236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17237 | (exit $ac_status); } |
17238 | then |
17239 | archive_cmds_need_lc_GCJ=no |
17240 | else |
17241 | archive_cmds_need_lc_GCJ=yes |
17242 | fi |
17243 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
17244 | else |
17245 | cat conftest.err 1>&5 |
17246 | fi |
17247 | $rm conftest* |
17248 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
17249 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
17250 | ;; |
17251 | esac |
17252 | fi |
17253 | ;; |
17254 | esac |
17255 | |
17256 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
17257 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
17258 | library_names_spec= |
17259 | libname_spec='lib$name' |
17260 | soname_spec= |
17261 | shrext_cmds=".so" |
17262 | postinstall_cmds= |
17263 | postuninstall_cmds= |
17264 | finish_cmds= |
17265 | finish_eval= |
17266 | shlibpath_var= |
17267 | shlibpath_overrides_runpath=unknown |
17268 | version_type=none |
17269 | dynamic_linker="$host_os ld.so" |
17270 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
17271 | if test "$GCC" = yes; then |
17272 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17273 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
17274 | # if the path contains ";" then we assume it to be the separator |
17275 | # otherwise default to the standard path separator (i.e. ":") - it is |
17276 | # assumed that no part of a normal pathname contains ";" but that should |
17277 | # okay in the real world where ";" in dirpaths is itself problematic. |
17278 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17279 | else |
17280 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17281 | fi |
17282 | else |
17283 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
17284 | fi |
17285 | need_lib_prefix=unknown |
17286 | hardcode_into_libs=no |
17287 | |
17288 | # when you set need_version to no, make sure it does not cause -set_version |
17289 | # flags to be left without arguments |
17290 | need_version=unknown |
17291 | |
17292 | case $host_os in |
17293 | aix3*) |
17294 | version_type=linux |
17295 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
17296 | shlibpath_var=LIBPATH |
17297 | |
17298 | # AIX 3 has no versioning support, so we append a major version to the name. |
17299 | soname_spec='${libname}${release}${shared_ext}$major' |
17300 | ;; |
17301 | |
17302 | aix4* | aix5*) |
17303 | version_type=linux |
17304 | need_lib_prefix=no |
17305 | need_version=no |
17306 | hardcode_into_libs=yes |
17307 | if test "$host_cpu" = ia64; then |
17308 | # AIX 5 supports IA64 |
17309 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
17310 | shlibpath_var=LD_LIBRARY_PATH |
17311 | else |
17312 | # With GCC up to 2.95.x, collect2 would create an import file |
17313 | # for dependence libraries. The import file would start with |
17314 | # the line `#! .'. This would cause the generated library to |
17315 | # depend on `.', always an invalid library. This was fixed in |
17316 | # development snapshots of GCC prior to 3.0. |
17317 | case $host_os in |
17318 | aix4 | aix4.[01] | aix4.[01].*) |
17319 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
17320 | echo ' yes ' |
17321 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
17322 | : |
17323 | else |
17324 | can_build_shared=no |
17325 | fi |
17326 | ;; |
17327 | esac |
17328 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
17329 | # soname into executable. Probably we can add versioning support to |
17330 | # collect2, so additional links can be useful in future. |
17331 | if test "$aix_use_runtimelinking" = yes; then |
17332 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
17333 | # instead of lib<name>.a to let people know that these are not |
17334 | # typical AIX shared libraries. |
17335 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17336 | else |
17337 | # We preserve .a as extension for shared libraries through AIX4.2 |
17338 | # and later when we are not doing run time linking. |
17339 | library_names_spec='${libname}${release}.a $libname.a' |
17340 | soname_spec='${libname}${release}${shared_ext}$major' |
17341 | fi |
17342 | shlibpath_var=LIBPATH |
17343 | fi |
17344 | ;; |
17345 | |
17346 | amigaos*) |
17347 | library_names_spec='$libname.ixlibrary $libname.a' |
17348 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
17349 | 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' |
17350 | ;; |
17351 | |
17352 | beos*) |
17353 | library_names_spec='${libname}${shared_ext}' |
17354 | dynamic_linker="$host_os ld.so" |
17355 | shlibpath_var=LIBRARY_PATH |
17356 | ;; |
17357 | |
17358 | bsdi[45]*) |
17359 | version_type=linux |
17360 | need_version=no |
17361 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17362 | soname_spec='${libname}${release}${shared_ext}$major' |
17363 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
17364 | shlibpath_var=LD_LIBRARY_PATH |
17365 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
17366 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
17367 | # the default ld.so.conf also contains /usr/contrib/lib and |
17368 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
17369 | # libtool to hard-code these into programs |
17370 | ;; |
17371 | |
17372 | cygwin* | mingw* | pw32*) |
17373 | version_type=windows |
17374 | shrext_cmds=".dll" |
17375 | need_version=no |
17376 | need_lib_prefix=no |
17377 | |
17378 | case $GCC,$host_os in |
17379 | yes,cygwin* | yes,mingw* | yes,pw32*) |
17380 | library_names_spec='$libname.dll.a' |
17381 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
17382 | postinstall_cmds='base_file=`basename \${file}`~ |
17383 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
17384 | dldir=$destdir/`dirname \$dlpath`~ |
17385 | test -d \$dldir || mkdir -p \$dldir~ |
17386 | $install_prog $dir/$dlname \$dldir/$dlname~ |
17387 | chmod a+x \$dldir/$dlname' |
17388 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
17389 | dlpath=$dir/\$dldll~ |
17390 | $rm \$dlpath' |
17391 | shlibpath_overrides_runpath=yes |
17392 | |
17393 | case $host_os in |
17394 | cygwin*) |
17395 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
17396 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17397 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
17398 | ;; |
17399 | mingw*) |
17400 | # MinGW DLLs use traditional 'lib' prefix |
17401 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17402 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17403 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
17404 | # It is most probably a Windows format PATH printed by |
17405 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
17406 | # path with ; separators, and with drive letters. We can handle the |
17407 | # drive letters (cygwin fileutils understands them), so leave them, |
17408 | # especially as we might pass files found there to a mingw objdump, |
17409 | # which wouldn't understand a cygwinified path. Ahh. |
17410 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17411 | else |
17412 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17413 | fi |
17414 | ;; |
17415 | pw32*) |
17416 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
17417 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17418 | ;; |
17419 | esac |
17420 | ;; |
17421 | |
17422 | *) |
17423 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
17424 | ;; |
17425 | esac |
17426 | dynamic_linker='Win32 ld.exe' |
17427 | # FIXME: first we should search . and the directory the executable is in |
17428 | shlibpath_var=PATH |
17429 | ;; |
17430 | |
17431 | darwin* | rhapsody*) |
17432 | dynamic_linker="$host_os dyld" |
17433 | version_type=darwin |
17434 | need_lib_prefix=no |
17435 | need_version=no |
17436 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
17437 | soname_spec='${libname}${release}${major}$shared_ext' |
17438 | shlibpath_overrides_runpath=yes |
17439 | shlibpath_var=DYLD_LIBRARY_PATH |
17440 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
17441 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
17442 | if test "$GCC" = yes; then |
17443 | 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"` |
17444 | else |
17445 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
17446 | fi |
17447 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
17448 | ;; |
17449 | |
17450 | dgux*) |
17451 | version_type=linux |
17452 | need_lib_prefix=no |
17453 | need_version=no |
17454 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
17455 | soname_spec='${libname}${release}${shared_ext}$major' |
17456 | shlibpath_var=LD_LIBRARY_PATH |
17457 | ;; |
17458 | |
17459 | freebsd1*) |
17460 | dynamic_linker=no |
17461 | ;; |
17462 | |
17463 | kfreebsd*-gnu) |
17464 | version_type=linux |
17465 | need_lib_prefix=no |
17466 | need_version=no |
17467 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17468 | soname_spec='${libname}${release}${shared_ext}$major' |
17469 | shlibpath_var=LD_LIBRARY_PATH |
17470 | shlibpath_overrides_runpath=no |
17471 | hardcode_into_libs=yes |
17472 | dynamic_linker='GNU ld.so' |
17473 | ;; |
17474 | |
17475 | freebsd* | dragonfly*) |
17476 | # DragonFly does not have aout. When/if they implement a new |
17477 | # versioning mechanism, adjust this. |
17478 | if test -x /usr/bin/objformat; then |
17479 | objformat=`/usr/bin/objformat` |
17480 | else |
17481 | case $host_os in |
17482 | freebsd[123]*) objformat=aout ;; |
17483 | *) objformat=elf ;; |
17484 | esac |
17485 | fi |
17486 | version_type=freebsd-$objformat |
17487 | case $version_type in |
17488 | freebsd-elf*) |
17489 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
17490 | need_version=no |
17491 | need_lib_prefix=no |
17492 | ;; |
17493 | freebsd-*) |
17494 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
17495 | need_version=yes |
17496 | ;; |
17497 | esac |
17498 | shlibpath_var=LD_LIBRARY_PATH |
17499 | case $host_os in |
17500 | freebsd2*) |
17501 | shlibpath_overrides_runpath=yes |
17502 | ;; |
17503 | freebsd3.[01]* | freebsdelf3.[01]*) |
17504 | shlibpath_overrides_runpath=yes |
17505 | hardcode_into_libs=yes |
17506 | ;; |
17507 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
17508 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
17509 | shlibpath_overrides_runpath=no |
17510 | hardcode_into_libs=yes |
17511 | ;; |
17512 | freebsd*) # from 4.6 on |
17513 | shlibpath_overrides_runpath=yes |
17514 | hardcode_into_libs=yes |
17515 | ;; |
17516 | esac |
17517 | ;; |
17518 | |
17519 | gnu*) |
17520 | version_type=linux |
17521 | need_lib_prefix=no |
17522 | need_version=no |
17523 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
17524 | soname_spec='${libname}${release}${shared_ext}$major' |
17525 | shlibpath_var=LD_LIBRARY_PATH |
17526 | hardcode_into_libs=yes |
17527 | ;; |
17528 | |
17529 | hpux9* | hpux10* | hpux11*) |
17530 | # Give a soname corresponding to the major version so that dld.sl refuses to |
17531 | # link against other versions. |
17532 | version_type=sunos |
17533 | need_lib_prefix=no |
17534 | need_version=no |
17535 | case $host_cpu in |
17536 | ia64*) |
17537 | shrext_cmds='.so' |
17538 | hardcode_into_libs=yes |
17539 | dynamic_linker="$host_os dld.so" |
17540 | shlibpath_var=LD_LIBRARY_PATH |
17541 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
17542 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17543 | soname_spec='${libname}${release}${shared_ext}$major' |
17544 | if test "X$HPUX_IA64_MODE" = X32; then |
17545 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
17546 | else |
17547 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
17548 | fi |
17549 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
17550 | ;; |
17551 | hppa*64*) |
17552 | shrext_cmds='.sl' |
17553 | hardcode_into_libs=yes |
17554 | dynamic_linker="$host_os dld.sl" |
17555 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
17556 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
17557 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17558 | soname_spec='${libname}${release}${shared_ext}$major' |
17559 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
17560 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
17561 | ;; |
17562 | *) |
17563 | shrext_cmds='.sl' |
17564 | dynamic_linker="$host_os dld.sl" |
17565 | shlibpath_var=SHLIB_PATH |
17566 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
17567 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17568 | soname_spec='${libname}${release}${shared_ext}$major' |
17569 | ;; |
17570 | esac |
17571 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
17572 | postinstall_cmds='chmod 555 $lib' |
17573 | ;; |
17574 | |
17575 | interix3*) |
17576 | version_type=linux |
17577 | need_lib_prefix=no |
17578 | need_version=no |
17579 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17580 | soname_spec='${libname}${release}${shared_ext}$major' |
17581 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
17582 | shlibpath_var=LD_LIBRARY_PATH |
17583 | shlibpath_overrides_runpath=no |
17584 | hardcode_into_libs=yes |
17585 | ;; |
17586 | |
17587 | irix5* | irix6* | nonstopux*) |
17588 | case $host_os in |
17589 | nonstopux*) version_type=nonstopux ;; |
17590 | *) |
17591 | if test "$lt_cv_prog_gnu_ld" = yes; then |
17592 | version_type=linux |
17593 | else |
17594 | version_type=irix |
17595 | fi ;; |
17596 | esac |
17597 | need_lib_prefix=no |
17598 | need_version=no |
17599 | soname_spec='${libname}${release}${shared_ext}$major' |
17600 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
17601 | case $host_os in |
17602 | irix5* | nonstopux*) |
17603 | libsuff= shlibsuff= |
17604 | ;; |
17605 | *) |
17606 | case $LD in # libtool.m4 will add one of these switches to LD |
17607 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
17608 | libsuff= shlibsuff= libmagic=32-bit;; |
17609 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
17610 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
17611 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
17612 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
17613 | *) libsuff= shlibsuff= libmagic=never-match;; |
17614 | esac |
17615 | ;; |
17616 | esac |
17617 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
17618 | shlibpath_overrides_runpath=no |
17619 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
17620 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
17621 | hardcode_into_libs=yes |
17622 | ;; |
17623 | |
17624 | # No shared lib support for Linux oldld, aout, or coff. |
17625 | linux*oldld* | linux*aout* | linux*coff*) |
17626 | dynamic_linker=no |
17627 | ;; |
17628 | |
17629 | # This must be Linux ELF. |
17630 | linux*) |
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 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
17637 | shlibpath_var=LD_LIBRARY_PATH |
17638 | shlibpath_overrides_runpath=no |
17639 | # This implies no fast_install, which is unacceptable. |
17640 | # Some rework will be needed to allow for fast_install |
17641 | # before this can be enabled. |
17642 | hardcode_into_libs=yes |
17643 | |
17644 | # find out which ABI we are using |
17645 | libsuff= |
17646 | case "$host_cpu" in |
17647 | x86_64*|s390x*|powerpc64*) |
17648 | echo '#line 17648 "configure"' > conftest.$ac_ext |
17649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17650 | (eval $ac_compile) 2>&5 |
17651 | ac_status=$? |
17652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17653 | (exit $ac_status); }; then |
17654 | case `/usr/bin/file conftest.$ac_objext` in |
17655 | *64-bit*) |
17656 | libsuff=64 |
17657 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
17658 | ;; |
17659 | esac |
17660 | fi |
17661 | rm -rf conftest* |
17662 | ;; |
17663 | esac |
17664 | |
17665 | # Append ld.so.conf contents to the search path |
17666 | if test -f /etc/ld.so.conf; then |
17667 | 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' ' '` |
17668 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
17669 | fi |
17670 | |
17671 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
17672 | # powerpc, because MkLinux only supported shared libraries with the |
17673 | # GNU dynamic linker. Since this was broken with cross compilers, |
17674 | # most powerpc-linux boxes support dynamic linking these days and |
17675 | # people can always --disable-shared, the test was removed, and we |
17676 | # assume the GNU/Linux dynamic linker is in use. |
17677 | dynamic_linker='GNU/Linux ld.so' |
17678 | ;; |
17679 | |
17680 | knetbsd*-gnu) |
17681 | version_type=linux |
17682 | need_lib_prefix=no |
17683 | need_version=no |
17684 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17685 | soname_spec='${libname}${release}${shared_ext}$major' |
17686 | shlibpath_var=LD_LIBRARY_PATH |
17687 | shlibpath_overrides_runpath=no |
17688 | hardcode_into_libs=yes |
17689 | dynamic_linker='GNU ld.so' |
17690 | ;; |
17691 | |
17692 | netbsd*) |
17693 | version_type=sunos |
17694 | need_lib_prefix=no |
17695 | need_version=no |
17696 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17697 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17698 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
17699 | dynamic_linker='NetBSD (a.out) ld.so' |
17700 | else |
17701 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17702 | soname_spec='${libname}${release}${shared_ext}$major' |
17703 | dynamic_linker='NetBSD ld.elf_so' |
17704 | fi |
17705 | shlibpath_var=LD_LIBRARY_PATH |
17706 | shlibpath_overrides_runpath=yes |
17707 | hardcode_into_libs=yes |
17708 | ;; |
17709 | |
17710 | newsos6) |
17711 | version_type=linux |
17712 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17713 | shlibpath_var=LD_LIBRARY_PATH |
17714 | shlibpath_overrides_runpath=yes |
17715 | ;; |
17716 | |
17717 | nto-qnx*) |
17718 | version_type=linux |
17719 | need_lib_prefix=no |
17720 | need_version=no |
17721 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17722 | soname_spec='${libname}${release}${shared_ext}$major' |
17723 | shlibpath_var=LD_LIBRARY_PATH |
17724 | shlibpath_overrides_runpath=yes |
17725 | ;; |
17726 | |
17727 | openbsd*) |
17728 | version_type=sunos |
17729 | sys_lib_dlsearch_path_spec="/usr/lib" |
17730 | need_lib_prefix=no |
17731 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
17732 | case $host_os in |
17733 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
17734 | *) need_version=no ;; |
17735 | esac |
17736 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17737 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
17738 | shlibpath_var=LD_LIBRARY_PATH |
17739 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
17740 | case $host_os in |
17741 | openbsd2.[89] | openbsd2.[89].*) |
17742 | shlibpath_overrides_runpath=no |
17743 | ;; |
17744 | *) |
17745 | shlibpath_overrides_runpath=yes |
17746 | ;; |
17747 | esac |
17748 | else |
17749 | shlibpath_overrides_runpath=yes |
17750 | fi |
17751 | ;; |
17752 | |
17753 | os2*) |
17754 | libname_spec='$name' |
17755 | shrext_cmds=".dll" |
17756 | need_lib_prefix=no |
17757 | library_names_spec='$libname${shared_ext} $libname.a' |
17758 | dynamic_linker='OS/2 ld.exe' |
17759 | shlibpath_var=LIBPATH |
17760 | ;; |
17761 | |
17762 | osf3* | osf4* | osf5*) |
17763 | version_type=osf |
17764 | need_lib_prefix=no |
17765 | need_version=no |
17766 | soname_spec='${libname}${release}${shared_ext}$major' |
17767 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17768 | shlibpath_var=LD_LIBRARY_PATH |
17769 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
17770 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
17771 | ;; |
17772 | |
17773 | solaris*) |
17774 | version_type=linux |
17775 | need_lib_prefix=no |
17776 | need_version=no |
17777 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17778 | soname_spec='${libname}${release}${shared_ext}$major' |
17779 | shlibpath_var=LD_LIBRARY_PATH |
17780 | shlibpath_overrides_runpath=yes |
17781 | hardcode_into_libs=yes |
17782 | # ldd complains unless libraries are executable |
17783 | postinstall_cmds='chmod +x $lib' |
17784 | ;; |
17785 | |
17786 | sunos4*) |
17787 | version_type=sunos |
17788 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17789 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
17790 | shlibpath_var=LD_LIBRARY_PATH |
17791 | shlibpath_overrides_runpath=yes |
17792 | if test "$with_gnu_ld" = yes; then |
17793 | need_lib_prefix=no |
17794 | fi |
17795 | need_version=yes |
17796 | ;; |
17797 | |
17798 | sysv4 | sysv4.3*) |
17799 | version_type=linux |
17800 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17801 | soname_spec='${libname}${release}${shared_ext}$major' |
17802 | shlibpath_var=LD_LIBRARY_PATH |
17803 | case $host_vendor in |
17804 | sni) |
17805 | shlibpath_overrides_runpath=no |
17806 | need_lib_prefix=no |
17807 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
17808 | runpath_var=LD_RUN_PATH |
17809 | ;; |
17810 | siemens) |
17811 | need_lib_prefix=no |
17812 | ;; |
17813 | motorola) |
17814 | need_lib_prefix=no |
17815 | need_version=no |
17816 | shlibpath_overrides_runpath=no |
17817 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
17818 | ;; |
17819 | esac |
17820 | ;; |
17821 | |
17822 | sysv4*MP*) |
17823 | if test -d /usr/nec ;then |
17824 | version_type=linux |
17825 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
17826 | soname_spec='$libname${shared_ext}.$major' |
17827 | shlibpath_var=LD_LIBRARY_PATH |
17828 | fi |
17829 | ;; |
17830 | |
17831 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
17832 | version_type=freebsd-elf |
17833 | need_lib_prefix=no |
17834 | need_version=no |
17835 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
17836 | soname_spec='${libname}${release}${shared_ext}$major' |
17837 | shlibpath_var=LD_LIBRARY_PATH |
17838 | hardcode_into_libs=yes |
17839 | if test "$with_gnu_ld" = yes; then |
17840 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
17841 | shlibpath_overrides_runpath=no |
17842 | else |
17843 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
17844 | shlibpath_overrides_runpath=yes |
17845 | case $host_os in |
17846 | sco3.2v5*) |
17847 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
17848 | ;; |
17849 | esac |
17850 | fi |
17851 | sys_lib_dlsearch_path_spec='/usr/lib' |
17852 | ;; |
17853 | |
17854 | uts4*) |
17855 | version_type=linux |
17856 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17857 | soname_spec='${libname}${release}${shared_ext}$major' |
17858 | shlibpath_var=LD_LIBRARY_PATH |
17859 | ;; |
17860 | |
17861 | *) |
17862 | dynamic_linker=no |
17863 | ;; |
17864 | esac |
17865 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
17866 | echo "${ECHO_T}$dynamic_linker" >&6 |
17867 | test "$dynamic_linker" = no && can_build_shared=no |
17868 | |
17869 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
17870 | if test "$GCC" = yes; then |
17871 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
17872 | fi |
17873 | |
17874 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
17875 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
17876 | hardcode_action_GCJ= |
17877 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
17878 | test -n "$runpath_var_GCJ" || \ |
17879 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
17880 | |
17881 | # We can hardcode non-existant directories. |
17882 | if test "$hardcode_direct_GCJ" != no && |
17883 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
17884 | # have to relink, otherwise we might link with an installed library |
17885 | # when we should be linking with a yet-to-be-installed one |
17886 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
17887 | test "$hardcode_minus_L_GCJ" != no; then |
17888 | # Linking always hardcodes the temporary library directory. |
17889 | hardcode_action_GCJ=relink |
17890 | else |
17891 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
17892 | hardcode_action_GCJ=immediate |
17893 | fi |
17894 | else |
17895 | # We cannot hardcode anything, or else we can only hardcode existing |
17896 | # directories. |
17897 | hardcode_action_GCJ=unsupported |
17898 | fi |
17899 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
17900 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
17901 | |
17902 | if test "$hardcode_action_GCJ" = relink; then |
17903 | # Fast installation is not supported |
17904 | enable_fast_install=no |
17905 | elif test "$shlibpath_overrides_runpath" = yes || |
17906 | test "$enable_shared" = no; then |
17907 | # Fast installation is not necessary |
17908 | enable_fast_install=needless |
17909 | fi |
17910 | |
17911 | |
17912 | # The else clause should only fire when bootstrapping the |
17913 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
17914 | # with your package, and you will get complaints that there are |
17915 | # no rules to generate ltmain.sh. |
17916 | if test -f "$ltmain"; then |
17917 | # See if we are running on zsh, and set the options which allow our commands through |
17918 | # without removal of \ escapes. |
17919 | if test -n "${ZSH_VERSION+set}" ; then |
17920 | setopt NO_GLOB_SUBST |
17921 | fi |
17922 | # Now quote all the things that may contain metacharacters while being |
17923 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
17924 | # variables and quote the copies for generation of the libtool script. |
17925 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
17926 | SED SHELL STRIP \ |
17927 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
17928 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
17929 | deplibs_check_method reload_flag reload_cmds need_locks \ |
17930 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
17931 | lt_cv_sys_global_symbol_to_c_name_address \ |
17932 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
17933 | old_postinstall_cmds old_postuninstall_cmds \ |
17934 | compiler_GCJ \ |
17935 | CC_GCJ \ |
17936 | LD_GCJ \ |
17937 | lt_prog_compiler_wl_GCJ \ |
17938 | lt_prog_compiler_pic_GCJ \ |
17939 | lt_prog_compiler_static_GCJ \ |
17940 | lt_prog_compiler_no_builtin_flag_GCJ \ |
17941 | export_dynamic_flag_spec_GCJ \ |
17942 | thread_safe_flag_spec_GCJ \ |
17943 | whole_archive_flag_spec_GCJ \ |
17944 | enable_shared_with_static_runtimes_GCJ \ |
17945 | old_archive_cmds_GCJ \ |
17946 | old_archive_from_new_cmds_GCJ \ |
17947 | predep_objects_GCJ \ |
17948 | postdep_objects_GCJ \ |
17949 | predeps_GCJ \ |
17950 | postdeps_GCJ \ |
17951 | compiler_lib_search_path_GCJ \ |
17952 | archive_cmds_GCJ \ |
17953 | archive_expsym_cmds_GCJ \ |
17954 | postinstall_cmds_GCJ \ |
17955 | postuninstall_cmds_GCJ \ |
17956 | old_archive_from_expsyms_cmds_GCJ \ |
17957 | allow_undefined_flag_GCJ \ |
17958 | no_undefined_flag_GCJ \ |
17959 | export_symbols_cmds_GCJ \ |
17960 | hardcode_libdir_flag_spec_GCJ \ |
17961 | hardcode_libdir_flag_spec_ld_GCJ \ |
17962 | hardcode_libdir_separator_GCJ \ |
17963 | hardcode_automatic_GCJ \ |
17964 | module_cmds_GCJ \ |
17965 | module_expsym_cmds_GCJ \ |
17966 | lt_cv_prog_compiler_c_o_GCJ \ |
17967 | exclude_expsyms_GCJ \ |
17968 | include_expsyms_GCJ; do |
17969 | |
17970 | case $var in |
17971 | old_archive_cmds_GCJ | \ |
17972 | old_archive_from_new_cmds_GCJ | \ |
17973 | archive_cmds_GCJ | \ |
17974 | archive_expsym_cmds_GCJ | \ |
17975 | module_cmds_GCJ | \ |
17976 | module_expsym_cmds_GCJ | \ |
17977 | old_archive_from_expsyms_cmds_GCJ | \ |
17978 | export_symbols_cmds_GCJ | \ |
17979 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
17980 | postinstall_cmds | postuninstall_cmds | \ |
17981 | old_postinstall_cmds | old_postuninstall_cmds | \ |
17982 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
17983 | # Double-quote double-evaled strings. |
17984 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
17985 | ;; |
17986 | *) |
17987 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
17988 | ;; |
17989 | esac |
17990 | done |
17991 | |
17992 | case $lt_echo in |
17993 | *'\$0 --fallback-echo"') |
17994 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
17995 | ;; |
17996 | esac |
17997 | |
17998 | cfgfile="$ofile" |
17999 | |
18000 | cat <<__EOF__ >> "$cfgfile" |
18001 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
18002 | |
18003 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18004 | |
18005 | # Shell to use when invoking shell scripts. |
18006 | SHELL=$lt_SHELL |
18007 | |
18008 | # Whether or not to build shared libraries. |
18009 | build_libtool_libs=$enable_shared |
18010 | |
18011 | # Whether or not to build static libraries. |
18012 | build_old_libs=$enable_static |
18013 | |
18014 | # Whether or not to add -lc for building shared libraries. |
18015 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
18016 | |
18017 | # Whether or not to disallow shared libs when runtime libs are static |
18018 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
18019 | |
18020 | # Whether or not to optimize for fast installation. |
18021 | fast_install=$enable_fast_install |
18022 | |
18023 | # The host system. |
18024 | host_alias=$host_alias |
18025 | host=$host |
18026 | host_os=$host_os |
18027 | |
18028 | # The build system. |
18029 | build_alias=$build_alias |
18030 | build=$build |
18031 | build_os=$build_os |
18032 | |
18033 | # An echo program that does not interpret backslashes. |
18034 | echo=$lt_echo |
18035 | |
18036 | # The archiver. |
18037 | AR=$lt_AR |
18038 | AR_FLAGS=$lt_AR_FLAGS |
18039 | |
18040 | # A C compiler. |
18041 | LTCC=$lt_LTCC |
18042 | |
18043 | # LTCC compiler flags. |
18044 | LTCFLAGS=$lt_LTCFLAGS |
18045 | |
18046 | # A language-specific compiler. |
18047 | CC=$lt_compiler_GCJ |
18048 | |
18049 | # Is the compiler the GNU C compiler? |
18050 | with_gcc=$GCC_GCJ |
18051 | |
18052 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
18053 | gcc_ver=\`gcc -dumpversion\` |
18054 | |
18055 | # An ERE matcher. |
18056 | EGREP=$lt_EGREP |
18057 | |
18058 | # The linker used to build libraries. |
18059 | LD=$lt_LD_GCJ |
18060 | |
18061 | # Whether we need hard or soft links. |
18062 | LN_S=$lt_LN_S |
18063 | |
18064 | # A BSD-compatible nm program. |
18065 | NM=$lt_NM |
18066 | |
18067 | # A symbol stripping program |
18068 | STRIP=$lt_STRIP |
18069 | |
18070 | # Used to examine libraries when file_magic_cmd begins "file" |
18071 | MAGIC_CMD=$MAGIC_CMD |
18072 | |
18073 | # Used on cygwin: DLL creation program. |
18074 | DLLTOOL="$DLLTOOL" |
18075 | |
18076 | # Used on cygwin: object dumper. |
18077 | OBJDUMP="$OBJDUMP" |
18078 | |
18079 | # Used on cygwin: assembler. |
18080 | AS="$AS" |
18081 | |
18082 | # The name of the directory that contains temporary libtool files. |
18083 | objdir=$objdir |
18084 | |
18085 | # How to create reloadable object files. |
18086 | reload_flag=$lt_reload_flag |
18087 | reload_cmds=$lt_reload_cmds |
18088 | |
18089 | # How to pass a linker flag through the compiler. |
18090 | wl=$lt_lt_prog_compiler_wl_GCJ |
18091 | |
18092 | # Object file suffix (normally "o"). |
18093 | objext="$ac_objext" |
18094 | |
18095 | # Old archive suffix (normally "a"). |
18096 | libext="$libext" |
18097 | |
18098 | # Shared library suffix (normally ".so"). |
18099 | shrext_cmds='$shrext_cmds' |
18100 | |
18101 | # Executable file suffix (normally ""). |
18102 | exeext="$exeext" |
18103 | |
18104 | # Additional compiler flags for building library objects. |
18105 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
18106 | pic_mode=$pic_mode |
18107 | |
18108 | # What is the maximum length of a command? |
18109 | max_cmd_len=$lt_cv_sys_max_cmd_len |
18110 | |
18111 | # Does compiler simultaneously support -c and -o options? |
18112 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
18113 | |
18114 | # Must we lock files when doing compilation? |
18115 | need_locks=$lt_need_locks |
18116 | |
18117 | # Do we need the lib prefix for modules? |
18118 | need_lib_prefix=$need_lib_prefix |
18119 | |
18120 | # Do we need a version for libraries? |
18121 | need_version=$need_version |
18122 | |
18123 | # Whether dlopen is supported. |
18124 | dlopen_support=$enable_dlopen |
18125 | |
18126 | # Whether dlopen of programs is supported. |
18127 | dlopen_self=$enable_dlopen_self |
18128 | |
18129 | # Whether dlopen of statically linked programs is supported. |
18130 | dlopen_self_static=$enable_dlopen_self_static |
18131 | |
18132 | # Compiler flag to prevent dynamic linking. |
18133 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
18134 | |
18135 | # Compiler flag to turn off builtin functions. |
18136 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
18137 | |
18138 | # Compiler flag to allow reflexive dlopens. |
18139 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
18140 | |
18141 | # Compiler flag to generate shared objects directly from archives. |
18142 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
18143 | |
18144 | # Compiler flag to generate thread-safe objects. |
18145 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
18146 | |
18147 | # Library versioning type. |
18148 | version_type=$version_type |
18149 | |
18150 | # Format of library name prefix. |
18151 | libname_spec=$lt_libname_spec |
18152 | |
18153 | # List of archive names. First name is the real one, the rest are links. |
18154 | # The last name is the one that the linker finds with -lNAME. |
18155 | library_names_spec=$lt_library_names_spec |
18156 | |
18157 | # The coded name of the library, if different from the real name. |
18158 | soname_spec=$lt_soname_spec |
18159 | |
18160 | # Commands used to build and install an old-style archive. |
18161 | RANLIB=$lt_RANLIB |
18162 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
18163 | old_postinstall_cmds=$lt_old_postinstall_cmds |
18164 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
18165 | |
18166 | # Create an old-style archive from a shared archive. |
18167 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
18168 | |
18169 | # Create a temporary old-style archive to link instead of a shared archive. |
18170 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
18171 | |
18172 | # Commands used to build and install a shared archive. |
18173 | archive_cmds=$lt_archive_cmds_GCJ |
18174 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
18175 | postinstall_cmds=$lt_postinstall_cmds |
18176 | postuninstall_cmds=$lt_postuninstall_cmds |
18177 | |
18178 | # Commands used to build a loadable module (assumed same as above if empty) |
18179 | module_cmds=$lt_module_cmds_GCJ |
18180 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
18181 | |
18182 | # Commands to strip libraries. |
18183 | old_striplib=$lt_old_striplib |
18184 | striplib=$lt_striplib |
18185 | |
18186 | # Dependencies to place before the objects being linked to create a |
18187 | # shared library. |
18188 | predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18189 | |
18190 | # Dependencies to place after the objects being linked to create a |
18191 | # shared library. |
18192 | postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18193 | |
18194 | # Dependencies to place before the objects being linked to create a |
18195 | # shared library. |
18196 | predeps=$lt_predeps_GCJ |
18197 | |
18198 | # Dependencies to place after the objects being linked to create a |
18199 | # shared library. |
18200 | postdeps=$lt_postdeps_GCJ |
18201 | |
18202 | # The library search path used internally by the compiler when linking |
18203 | # a shared library. |
18204 | 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"\` |
18205 | |
18206 | # Method to check whether dependent libraries are shared objects. |
18207 | deplibs_check_method=$lt_deplibs_check_method |
18208 | |
18209 | # Command to use when deplibs_check_method == file_magic. |
18210 | file_magic_cmd=$lt_file_magic_cmd |
18211 | |
18212 | # Flag that allows shared libraries with undefined symbols to be built. |
18213 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
18214 | |
18215 | # Flag that forces no undefined symbols. |
18216 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
18217 | |
18218 | # Commands used to finish a libtool library installation in a directory. |
18219 | finish_cmds=$lt_finish_cmds |
18220 | |
18221 | # Same as above, but a single script fragment to be evaled but not shown. |
18222 | finish_eval=$lt_finish_eval |
18223 | |
18224 | # Take the output of nm and produce a listing of raw symbols and C names. |
18225 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
18226 | |
18227 | # Transform the output of nm in a proper C declaration |
18228 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
18229 | |
18230 | # Transform the output of nm in a C name address pair |
18231 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
18232 | |
18233 | # This is the shared library runtime path variable. |
18234 | runpath_var=$runpath_var |
18235 | |
18236 | # This is the shared library path variable. |
18237 | shlibpath_var=$shlibpath_var |
18238 | |
18239 | # Is shlibpath searched before the hard-coded library search path? |
18240 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
18241 | |
18242 | # How to hardcode a shared library path into an executable. |
18243 | hardcode_action=$hardcode_action_GCJ |
18244 | |
18245 | # Whether we should hardcode library paths into libraries. |
18246 | hardcode_into_libs=$hardcode_into_libs |
18247 | |
18248 | # Flag to hardcode \$libdir into a binary during linking. |
18249 | # This must work even if \$libdir does not exist. |
18250 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
18251 | |
18252 | # If ld is used when linking, flag to hardcode \$libdir into |
18253 | # a binary during linking. This must work even if \$libdir does |
18254 | # not exist. |
18255 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
18256 | |
18257 | # Whether we need a single -rpath flag with a separated argument. |
18258 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
18259 | |
18260 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
18261 | # resulting binary. |
18262 | hardcode_direct=$hardcode_direct_GCJ |
18263 | |
18264 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
18265 | # resulting binary. |
18266 | hardcode_minus_L=$hardcode_minus_L_GCJ |
18267 | |
18268 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
18269 | # the resulting binary. |
18270 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
18271 | |
18272 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
18273 | # and all subsequent libraries and executables linked against it. |
18274 | hardcode_automatic=$hardcode_automatic_GCJ |
18275 | |
18276 | # Variables whose values should be saved in libtool wrapper scripts and |
18277 | # restored at relink time. |
18278 | variables_saved_for_relink="$variables_saved_for_relink" |
18279 | |
18280 | # Whether libtool must link a program against all its dependency libraries. |
18281 | link_all_deplibs=$link_all_deplibs_GCJ |
18282 | |
18283 | # Compile-time system search path for libraries |
18284 | 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"\` |
18285 | |
18286 | # Run-time system search path for libraries |
18287 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
18288 | |
18289 | # Fix the shell variable \$srcfile for the compiler. |
18290 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
18291 | |
18292 | # Set to yes if exported symbols are required. |
18293 | always_export_symbols=$always_export_symbols_GCJ |
18294 | |
18295 | # The commands to list exported symbols. |
18296 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
18297 | |
18298 | # The commands to extract the exported symbol list from a shared archive. |
18299 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
18300 | |
18301 | # Symbols that should not be listed in the preloaded symbols. |
18302 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
18303 | |
18304 | # Symbols that must always be exported. |
18305 | include_expsyms=$lt_include_expsyms_GCJ |
18306 | |
18307 | # ### END LIBTOOL TAG CONFIG: $tagname |
18308 | |
18309 | __EOF__ |
18310 | |
18311 | |
18312 | else |
18313 | # If there is no Makefile yet, we rely on a make rule to execute |
18314 | # `config.status --recheck' to rerun these tests and create the |
18315 | # libtool script then. |
18316 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
18317 | if test -f "$ltmain_in"; then |
18318 | test -f Makefile && make "$ltmain" |
18319 | fi |
18320 | fi |
18321 | |
18322 | |
18323 | ac_ext=c |
18324 | ac_cpp='$CPP $CPPFLAGS' |
18325 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18326 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
18327 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
18328 | |
18329 | CC="$lt_save_CC" |
18330 | |
18331 | else |
18332 | tagname="" |
18333 | fi |
18334 | ;; |
18335 | |
18336 | RC) |
18337 | |
18338 | |
18339 | |
18340 | # Source file extension for RC test sources. |
18341 | ac_ext=rc |
18342 | |
18343 | # Object file extension for compiled RC test sources. |
18344 | objext=o |
18345 | objext_RC=$objext |
18346 | |
18347 | # Code to be used in simple compile tests |
18348 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
18349 | |
18350 | # Code to be used in simple link tests |
18351 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
18352 | |
18353 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
18354 | |
18355 | # If no C compiler was specified, use CC. |
18356 | LTCC=${LTCC-"$CC"} |
18357 | |
18358 | # If no C compiler flags were specified, use CFLAGS. |
18359 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
18360 | |
18361 | # Allow CC to be a program name with arguments. |
18362 | compiler=$CC |
18363 | |
18364 | |
18365 | # save warnings/boilerplate of simple test code |
18366 | ac_outfile=conftest.$ac_objext |
18367 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
18368 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
18369 | _lt_compiler_boilerplate=`cat conftest.err` |
18370 | $rm conftest* |
18371 | |
18372 | ac_outfile=conftest.$ac_objext |
18373 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
18374 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
18375 | _lt_linker_boilerplate=`cat conftest.err` |
18376 | $rm conftest* |
18377 | |
18378 | |
18379 | # Allow CC to be a program name with arguments. |
18380 | lt_save_CC="$CC" |
18381 | CC=${RC-"windres"} |
18382 | compiler=$CC |
18383 | compiler_RC=$CC |
18384 | for cc_temp in $compiler""; do |
18385 | case $cc_temp in |
18386 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
18387 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
18388 | \-*) ;; |
18389 | *) break;; |
18390 | esac |
18391 | done |
18392 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
18393 | |
18394 | lt_cv_prog_compiler_c_o_RC=yes |
18395 | |
18396 | # The else clause should only fire when bootstrapping the |
18397 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18398 | # with your package, and you will get complaints that there are |
18399 | # no rules to generate ltmain.sh. |
18400 | if test -f "$ltmain"; then |
18401 | # See if we are running on zsh, and set the options which allow our commands through |
18402 | # without removal of \ escapes. |
18403 | if test -n "${ZSH_VERSION+set}" ; then |
18404 | setopt NO_GLOB_SUBST |
18405 | fi |
18406 | # Now quote all the things that may contain metacharacters while being |
18407 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
18408 | # variables and quote the copies for generation of the libtool script. |
18409 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
18410 | SED SHELL STRIP \ |
18411 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18412 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18413 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18414 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18415 | lt_cv_sys_global_symbol_to_c_name_address \ |
18416 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18417 | old_postinstall_cmds old_postuninstall_cmds \ |
18418 | compiler_RC \ |
18419 | CC_RC \ |
18420 | LD_RC \ |
18421 | lt_prog_compiler_wl_RC \ |
18422 | lt_prog_compiler_pic_RC \ |
18423 | lt_prog_compiler_static_RC \ |
18424 | lt_prog_compiler_no_builtin_flag_RC \ |
18425 | export_dynamic_flag_spec_RC \ |
18426 | thread_safe_flag_spec_RC \ |
18427 | whole_archive_flag_spec_RC \ |
18428 | enable_shared_with_static_runtimes_RC \ |
18429 | old_archive_cmds_RC \ |
18430 | old_archive_from_new_cmds_RC \ |
18431 | predep_objects_RC \ |
18432 | postdep_objects_RC \ |
18433 | predeps_RC \ |
18434 | postdeps_RC \ |
18435 | compiler_lib_search_path_RC \ |
18436 | archive_cmds_RC \ |
18437 | archive_expsym_cmds_RC \ |
18438 | postinstall_cmds_RC \ |
18439 | postuninstall_cmds_RC \ |
18440 | old_archive_from_expsyms_cmds_RC \ |
18441 | allow_undefined_flag_RC \ |
18442 | no_undefined_flag_RC \ |
18443 | export_symbols_cmds_RC \ |
18444 | hardcode_libdir_flag_spec_RC \ |
18445 | hardcode_libdir_flag_spec_ld_RC \ |
18446 | hardcode_libdir_separator_RC \ |
18447 | hardcode_automatic_RC \ |
18448 | module_cmds_RC \ |
18449 | module_expsym_cmds_RC \ |
18450 | lt_cv_prog_compiler_c_o_RC \ |
18451 | exclude_expsyms_RC \ |
18452 | include_expsyms_RC; do |
18453 | |
18454 | case $var in |
18455 | old_archive_cmds_RC | \ |
18456 | old_archive_from_new_cmds_RC | \ |
18457 | archive_cmds_RC | \ |
18458 | archive_expsym_cmds_RC | \ |
18459 | module_cmds_RC | \ |
18460 | module_expsym_cmds_RC | \ |
18461 | old_archive_from_expsyms_cmds_RC | \ |
18462 | export_symbols_cmds_RC | \ |
18463 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
18464 | postinstall_cmds | postuninstall_cmds | \ |
18465 | old_postinstall_cmds | old_postuninstall_cmds | \ |
18466 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
18467 | # Double-quote double-evaled strings. |
18468 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
18469 | ;; |
18470 | *) |
18471 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
18472 | ;; |
18473 | esac |
18474 | done |
18475 | |
18476 | case $lt_echo in |
18477 | *'\$0 --fallback-echo"') |
18478 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
18479 | ;; |
18480 | esac |
18481 | |
18482 | cfgfile="$ofile" |
18483 | |
18484 | cat <<__EOF__ >> "$cfgfile" |
18485 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
18486 | |
18487 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18488 | |
18489 | # Shell to use when invoking shell scripts. |
18490 | SHELL=$lt_SHELL |
18491 | |
18492 | # Whether or not to build shared libraries. |
18493 | build_libtool_libs=$enable_shared |
18494 | |
18495 | # Whether or not to build static libraries. |
18496 | build_old_libs=$enable_static |
18497 | |
18498 | # Whether or not to add -lc for building shared libraries. |
18499 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
18500 | |
18501 | # Whether or not to disallow shared libs when runtime libs are static |
18502 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
18503 | |
18504 | # Whether or not to optimize for fast installation. |
18505 | fast_install=$enable_fast_install |
18506 | |
18507 | # The host system. |
18508 | host_alias=$host_alias |
18509 | host=$host |
18510 | host_os=$host_os |
18511 | |
18512 | # The build system. |
18513 | build_alias=$build_alias |
18514 | build=$build |
18515 | build_os=$build_os |
18516 | |
18517 | # An echo program that does not interpret backslashes. |
18518 | echo=$lt_echo |
18519 | |
18520 | # The archiver. |
18521 | AR=$lt_AR |
18522 | AR_FLAGS=$lt_AR_FLAGS |
18523 | |
18524 | # A C compiler. |
18525 | LTCC=$lt_LTCC |
18526 | |
18527 | # LTCC compiler flags. |
18528 | LTCFLAGS=$lt_LTCFLAGS |
18529 | |
18530 | # A language-specific compiler. |
18531 | CC=$lt_compiler_RC |
18532 | |
18533 | # Is the compiler the GNU C compiler? |
18534 | with_gcc=$GCC_RC |
18535 | |
18536 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
18537 | gcc_ver=\`gcc -dumpversion\` |
18538 | |
18539 | # An ERE matcher. |
18540 | EGREP=$lt_EGREP |
18541 | |
18542 | # The linker used to build libraries. |
18543 | LD=$lt_LD_RC |
18544 | |
18545 | # Whether we need hard or soft links. |
18546 | LN_S=$lt_LN_S |
18547 | |
18548 | # A BSD-compatible nm program. |
18549 | NM=$lt_NM |
18550 | |
18551 | # A symbol stripping program |
18552 | STRIP=$lt_STRIP |
18553 | |
18554 | # Used to examine libraries when file_magic_cmd begins "file" |
18555 | MAGIC_CMD=$MAGIC_CMD |
18556 | |
18557 | # Used on cygwin: DLL creation program. |
18558 | DLLTOOL="$DLLTOOL" |
18559 | |
18560 | # Used on cygwin: object dumper. |
18561 | OBJDUMP="$OBJDUMP" |
18562 | |
18563 | # Used on cygwin: assembler. |
18564 | AS="$AS" |
18565 | |
18566 | # The name of the directory that contains temporary libtool files. |
18567 | objdir=$objdir |
18568 | |
18569 | # How to create reloadable object files. |
18570 | reload_flag=$lt_reload_flag |
18571 | reload_cmds=$lt_reload_cmds |
18572 | |
18573 | # How to pass a linker flag through the compiler. |
18574 | wl=$lt_lt_prog_compiler_wl_RC |
18575 | |
18576 | # Object file suffix (normally "o"). |
18577 | objext="$ac_objext" |
18578 | |
18579 | # Old archive suffix (normally "a"). |
18580 | libext="$libext" |
18581 | |
18582 | # Shared library suffix (normally ".so"). |
18583 | shrext_cmds='$shrext_cmds' |
18584 | |
18585 | # Executable file suffix (normally ""). |
18586 | exeext="$exeext" |
18587 | |
18588 | # Additional compiler flags for building library objects. |
18589 | pic_flag=$lt_lt_prog_compiler_pic_RC |
18590 | pic_mode=$pic_mode |
18591 | |
18592 | # What is the maximum length of a command? |
18593 | max_cmd_len=$lt_cv_sys_max_cmd_len |
18594 | |
18595 | # Does compiler simultaneously support -c and -o options? |
18596 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
18597 | |
18598 | # Must we lock files when doing compilation? |
18599 | need_locks=$lt_need_locks |
18600 | |
18601 | # Do we need the lib prefix for modules? |
18602 | need_lib_prefix=$need_lib_prefix |
18603 | |
18604 | # Do we need a version for libraries? |
18605 | need_version=$need_version |
18606 | |
18607 | # Whether dlopen is supported. |
18608 | dlopen_support=$enable_dlopen |
18609 | |
18610 | # Whether dlopen of programs is supported. |
18611 | dlopen_self=$enable_dlopen_self |
18612 | |
18613 | # Whether dlopen of statically linked programs is supported. |
18614 | dlopen_self_static=$enable_dlopen_self_static |
18615 | |
18616 | # Compiler flag to prevent dynamic linking. |
18617 | link_static_flag=$lt_lt_prog_compiler_static_RC |
18618 | |
18619 | # Compiler flag to turn off builtin functions. |
18620 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
18621 | |
18622 | # Compiler flag to allow reflexive dlopens. |
18623 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
18624 | |
18625 | # Compiler flag to generate shared objects directly from archives. |
18626 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
18627 | |
18628 | # Compiler flag to generate thread-safe objects. |
18629 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
18630 | |
18631 | # Library versioning type. |
18632 | version_type=$version_type |
18633 | |
18634 | # Format of library name prefix. |
18635 | libname_spec=$lt_libname_spec |
18636 | |
18637 | # List of archive names. First name is the real one, the rest are links. |
18638 | # The last name is the one that the linker finds with -lNAME. |
18639 | library_names_spec=$lt_library_names_spec |
18640 | |
18641 | # The coded name of the library, if different from the real name. |
18642 | soname_spec=$lt_soname_spec |
18643 | |
18644 | # Commands used to build and install an old-style archive. |
18645 | RANLIB=$lt_RANLIB |
18646 | old_archive_cmds=$lt_old_archive_cmds_RC |
18647 | old_postinstall_cmds=$lt_old_postinstall_cmds |
18648 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
18649 | |
18650 | # Create an old-style archive from a shared archive. |
18651 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
18652 | |
18653 | # Create a temporary old-style archive to link instead of a shared archive. |
18654 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
18655 | |
18656 | # Commands used to build and install a shared archive. |
18657 | archive_cmds=$lt_archive_cmds_RC |
18658 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
18659 | postinstall_cmds=$lt_postinstall_cmds |
18660 | postuninstall_cmds=$lt_postuninstall_cmds |
18661 | |
18662 | # Commands used to build a loadable module (assumed same as above if empty) |
18663 | module_cmds=$lt_module_cmds_RC |
18664 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
18665 | |
18666 | # Commands to strip libraries. |
18667 | old_striplib=$lt_old_striplib |
18668 | striplib=$lt_striplib |
18669 | |
18670 | # Dependencies to place before the objects being linked to create a |
18671 | # shared library. |
18672 | predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18673 | |
18674 | # Dependencies to place after the objects being linked to create a |
18675 | # shared library. |
18676 | postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18677 | |
18678 | # Dependencies to place before the objects being linked to create a |
18679 | # shared library. |
18680 | predeps=$lt_predeps_RC |
18681 | |
18682 | # Dependencies to place after the objects being linked to create a |
18683 | # shared library. |
18684 | postdeps=$lt_postdeps_RC |
18685 | |
18686 | # The library search path used internally by the compiler when linking |
18687 | # a shared library. |
18688 | 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"\` |
18689 | |
18690 | # Method to check whether dependent libraries are shared objects. |
18691 | deplibs_check_method=$lt_deplibs_check_method |
18692 | |
18693 | # Command to use when deplibs_check_method == file_magic. |
18694 | file_magic_cmd=$lt_file_magic_cmd |
18695 | |
18696 | # Flag that allows shared libraries with undefined symbols to be built. |
18697 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
18698 | |
18699 | # Flag that forces no undefined symbols. |
18700 | no_undefined_flag=$lt_no_undefined_flag_RC |
18701 | |
18702 | # Commands used to finish a libtool library installation in a directory. |
18703 | finish_cmds=$lt_finish_cmds |
18704 | |
18705 | # Same as above, but a single script fragment to be evaled but not shown. |
18706 | finish_eval=$lt_finish_eval |
18707 | |
18708 | # Take the output of nm and produce a listing of raw symbols and C names. |
18709 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
18710 | |
18711 | # Transform the output of nm in a proper C declaration |
18712 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
18713 | |
18714 | # Transform the output of nm in a C name address pair |
18715 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
18716 | |
18717 | # This is the shared library runtime path variable. |
18718 | runpath_var=$runpath_var |
18719 | |
18720 | # This is the shared library path variable. |
18721 | shlibpath_var=$shlibpath_var |
18722 | |
18723 | # Is shlibpath searched before the hard-coded library search path? |
18724 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
18725 | |
18726 | # How to hardcode a shared library path into an executable. |
18727 | hardcode_action=$hardcode_action_RC |
18728 | |
18729 | # Whether we should hardcode library paths into libraries. |
18730 | hardcode_into_libs=$hardcode_into_libs |
18731 | |
18732 | # Flag to hardcode \$libdir into a binary during linking. |
18733 | # This must work even if \$libdir does not exist. |
18734 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
18735 | |
18736 | # If ld is used when linking, flag to hardcode \$libdir into |
18737 | # a binary during linking. This must work even if \$libdir does |
18738 | # not exist. |
18739 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
18740 | |
18741 | # Whether we need a single -rpath flag with a separated argument. |
18742 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
18743 | |
18744 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
18745 | # resulting binary. |
18746 | hardcode_direct=$hardcode_direct_RC |
18747 | |
18748 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
18749 | # resulting binary. |
18750 | hardcode_minus_L=$hardcode_minus_L_RC |
18751 | |
18752 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
18753 | # the resulting binary. |
18754 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
18755 | |
18756 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
18757 | # and all subsequent libraries and executables linked against it. |
18758 | hardcode_automatic=$hardcode_automatic_RC |
18759 | |
18760 | # Variables whose values should be saved in libtool wrapper scripts and |
18761 | # restored at relink time. |
18762 | variables_saved_for_relink="$variables_saved_for_relink" |
18763 | |
18764 | # Whether libtool must link a program against all its dependency libraries. |
18765 | link_all_deplibs=$link_all_deplibs_RC |
18766 | |
18767 | # Compile-time system search path for libraries |
18768 | 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"\` |
18769 | |
18770 | # Run-time system search path for libraries |
18771 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
18772 | |
18773 | # Fix the shell variable \$srcfile for the compiler. |
18774 | fix_srcfile_path="$fix_srcfile_path_RC" |
18775 | |
18776 | # Set to yes if exported symbols are required. |
18777 | always_export_symbols=$always_export_symbols_RC |
18778 | |
18779 | # The commands to list exported symbols. |
18780 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
18781 | |
18782 | # The commands to extract the exported symbol list from a shared archive. |
18783 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
18784 | |
18785 | # Symbols that should not be listed in the preloaded symbols. |
18786 | exclude_expsyms=$lt_exclude_expsyms_RC |
18787 | |
18788 | # Symbols that must always be exported. |
18789 | include_expsyms=$lt_include_expsyms_RC |
18790 | |
18791 | # ### END LIBTOOL TAG CONFIG: $tagname |
18792 | |
18793 | __EOF__ |
18794 | |
18795 | |
18796 | else |
18797 | # If there is no Makefile yet, we rely on a make rule to execute |
18798 | # `config.status --recheck' to rerun these tests and create the |
18799 | # libtool script then. |
18800 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
18801 | if test -f "$ltmain_in"; then |
18802 | test -f Makefile && make "$ltmain" |
18803 | fi |
18804 | fi |
18805 | |
18806 | |
18807 | ac_ext=c |
18808 | ac_cpp='$CPP $CPPFLAGS' |
18809 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18810 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
18811 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
18812 | |
18813 | CC="$lt_save_CC" |
18814 | |
18815 | ;; |
18816 | |
18817 | *) |
18818 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
18819 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
18820 | { (exit 1); exit 1; }; } |
18821 | ;; |
18822 | esac |
18823 | |
18824 | # Append the new tag name to the list of available tags. |
18825 | if test -n "$tagname" ; then |
18826 | available_tags="$available_tags $tagname" |
18827 | fi |
18828 | fi |
18829 | done |
18830 | IFS="$lt_save_ifs" |
18831 | |
18832 | # Now substitute the updated list of available tags. |
18833 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
18834 | mv "${ofile}T" "$ofile" |
18835 | chmod +x "$ofile" |
18836 | else |
18837 | rm -f "${ofile}T" |
18838 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
18839 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
18840 | { (exit 1); exit 1; }; } |
18841 | fi |
18842 | fi |
18843 | |
18844 | |
18845 | |
18846 | # This can be used to rebuild libtool when needed |
18847 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
18848 | |
18849 | # Always use our own libtool. |
18850 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
18851 | |
18852 | # Prevent multiple expansion |
18853 | |
18854 | |
18855 | |
18856 | |
18857 | |
18858 | |
18859 | |
18860 | |
18861 | |
18862 | |
18863 | |
18864 | |
18865 | |
18866 | |
18867 | |
18868 | |
18869 | |
18870 | |
18871 | |
18872 | |
18873 | |
18874 | if test "$GCC" = yes ; then |
18875 | CXXFLAGS="$CXXFLAGS -Wall" |
18876 | CFLAGS="$CFLAGS -Wall" |
18877 | fi |
18878 | |
18879 | |
18880 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
18881 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
18882 | if test "${ac_cv_header_stdc+set}" = set; then |
18883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18884 | else |
18885 | cat >conftest.$ac_ext <<_ACEOF |
18886 | /* confdefs.h. */ |
18887 | _ACEOF |
18888 | cat confdefs.h >>conftest.$ac_ext |
18889 | cat >>conftest.$ac_ext <<_ACEOF |
18890 | /* end confdefs.h. */ |
18891 | #include <stdlib.h> |
18892 | #include <stdarg.h> |
18893 | #include <string.h> |
18894 | #include <float.h> |
18895 | |
18896 | int |
18897 | main () |
18898 | { |
18899 | |
18900 | ; |
18901 | return 0; |
18902 | } |
18903 | _ACEOF |
18904 | rm -f conftest.$ac_objext |
18905 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18906 | (eval $ac_compile) 2>conftest.er1 |
18907 | ac_status=$? |
18908 | grep -v '^ *+' conftest.er1 >conftest.err |
18909 | rm -f conftest.er1 |
18910 | cat conftest.err >&5 |
18911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18912 | (exit $ac_status); } && |
18913 | { ac_try='test -z "$ac_c_werror_flag" |
18914 | || test ! -s conftest.err' |
18915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18916 | (eval $ac_try) 2>&5 |
18917 | ac_status=$? |
18918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18919 | (exit $ac_status); }; } && |
18920 | { ac_try='test -s conftest.$ac_objext' |
18921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18922 | (eval $ac_try) 2>&5 |
18923 | ac_status=$? |
18924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18925 | (exit $ac_status); }; }; then |
18926 | ac_cv_header_stdc=yes |
18927 | else |
18928 | echo "$as_me: failed program was:" >&5 |
18929 | sed 's/^/| /' conftest.$ac_ext >&5 |
18930 | |
18931 | ac_cv_header_stdc=no |
18932 | fi |
18933 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
18934 | |
18935 | if test $ac_cv_header_stdc = yes; then |
18936 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
18937 | cat >conftest.$ac_ext <<_ACEOF |
18938 | /* confdefs.h. */ |
18939 | _ACEOF |
18940 | cat confdefs.h >>conftest.$ac_ext |
18941 | cat >>conftest.$ac_ext <<_ACEOF |
18942 | /* end confdefs.h. */ |
18943 | #include <string.h> |
18944 | |
18945 | _ACEOF |
18946 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
18947 | $EGREP "memchr" >/dev/null 2>&1; then |
18948 | : |
18949 | else |
18950 | ac_cv_header_stdc=no |
18951 | fi |
18952 | rm -f conftest* |
18953 | |
18954 | fi |
18955 | |
18956 | if test $ac_cv_header_stdc = yes; then |
18957 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
18958 | cat >conftest.$ac_ext <<_ACEOF |
18959 | /* confdefs.h. */ |
18960 | _ACEOF |
18961 | cat confdefs.h >>conftest.$ac_ext |
18962 | cat >>conftest.$ac_ext <<_ACEOF |
18963 | /* end confdefs.h. */ |
18964 | #include <stdlib.h> |
18965 | |
18966 | _ACEOF |
18967 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
18968 | $EGREP "free" >/dev/null 2>&1; then |
18969 | : |
18970 | else |
18971 | ac_cv_header_stdc=no |
18972 | fi |
18973 | rm -f conftest* |
18974 | |
18975 | fi |
18976 | |
18977 | if test $ac_cv_header_stdc = yes; then |
18978 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
18979 | if test "$cross_compiling" = yes; then |
18980 | : |
18981 | else |
18982 | cat >conftest.$ac_ext <<_ACEOF |
18983 | /* confdefs.h. */ |
18984 | _ACEOF |
18985 | cat confdefs.h >>conftest.$ac_ext |
18986 | cat >>conftest.$ac_ext <<_ACEOF |
18987 | /* end confdefs.h. */ |
18988 | #include <ctype.h> |
18989 | #if ((' ' & 0x0FF) == 0x020) |
18990 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
18991 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
18992 | #else |
18993 | # define ISLOWER(c) \ |
18994 | (('a' <= (c) && (c) <= 'i') \ |
18995 | || ('j' <= (c) && (c) <= 'r') \ |
18996 | || ('s' <= (c) && (c) <= 'z')) |
18997 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
18998 | #endif |
18999 | |
19000 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
19001 | int |
19002 | main () |
19003 | { |
19004 | int i; |
19005 | for (i = 0; i < 256; i++) |
19006 | if (XOR (islower (i), ISLOWER (i)) |
19007 | || toupper (i) != TOUPPER (i)) |
19008 | exit(2); |
19009 | exit (0); |
19010 | } |
19011 | _ACEOF |
19012 | rm -f conftest$ac_exeext |
19013 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19014 | (eval $ac_link) 2>&5 |
19015 | ac_status=$? |
19016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19017 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
19018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19019 | (eval $ac_try) 2>&5 |
19020 | ac_status=$? |
19021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19022 | (exit $ac_status); }; }; then |
19023 | : |
19024 | else |
19025 | echo "$as_me: program exited with status $ac_status" >&5 |
19026 | echo "$as_me: failed program was:" >&5 |
19027 | sed 's/^/| /' conftest.$ac_ext >&5 |
19028 | |
19029 | ( exit $ac_status ) |
19030 | ac_cv_header_stdc=no |
19031 | fi |
19032 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
19033 | fi |
19034 | fi |
19035 | fi |
19036 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
19037 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
19038 | if test $ac_cv_header_stdc = yes; then |
19039 | |
19040 | cat >>confdefs.h <<\_ACEOF |
19041 | #define STDC_HEADERS 1 |
19042 | _ACEOF |
19043 | |
19044 | fi |
19045 | |
19046 | |
19047 | for ac_header in locale.h |
19048 | do |
19049 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
19050 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
19051 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
19052 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
19053 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
19054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19055 | fi |
19056 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
19057 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
19058 | else |
19059 | # Is the header compilable? |
19060 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
19061 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
19062 | cat >conftest.$ac_ext <<_ACEOF |
19063 | /* confdefs.h. */ |
19064 | _ACEOF |
19065 | cat confdefs.h >>conftest.$ac_ext |
19066 | cat >>conftest.$ac_ext <<_ACEOF |
19067 | /* end confdefs.h. */ |
19068 | $ac_includes_default |
19069 | #include <$ac_header> |
19070 | _ACEOF |
19071 | rm -f conftest.$ac_objext |
19072 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19073 | (eval $ac_compile) 2>conftest.er1 |
19074 | ac_status=$? |
19075 | grep -v '^ *+' conftest.er1 >conftest.err |
19076 | rm -f conftest.er1 |
19077 | cat conftest.err >&5 |
19078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19079 | (exit $ac_status); } && |
19080 | { ac_try='test -z "$ac_c_werror_flag" |
19081 | || test ! -s conftest.err' |
19082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19083 | (eval $ac_try) 2>&5 |
19084 | ac_status=$? |
19085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19086 | (exit $ac_status); }; } && |
19087 | { ac_try='test -s conftest.$ac_objext' |
19088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19089 | (eval $ac_try) 2>&5 |
19090 | ac_status=$? |
19091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19092 | (exit $ac_status); }; }; then |
19093 | ac_header_compiler=yes |
19094 | else |
19095 | echo "$as_me: failed program was:" >&5 |
19096 | sed 's/^/| /' conftest.$ac_ext >&5 |
19097 | |
19098 | ac_header_compiler=no |
19099 | fi |
19100 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19101 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19102 | echo "${ECHO_T}$ac_header_compiler" >&6 |
19103 | |
19104 | # Is the header present? |
19105 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
19106 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
19107 | cat >conftest.$ac_ext <<_ACEOF |
19108 | /* confdefs.h. */ |
19109 | _ACEOF |
19110 | cat confdefs.h >>conftest.$ac_ext |
19111 | cat >>conftest.$ac_ext <<_ACEOF |
19112 | /* end confdefs.h. */ |
19113 | #include <$ac_header> |
19114 | _ACEOF |
19115 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
19116 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
19117 | ac_status=$? |
19118 | grep -v '^ *+' conftest.er1 >conftest.err |
19119 | rm -f conftest.er1 |
19120 | cat conftest.err >&5 |
19121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19122 | (exit $ac_status); } >/dev/null; then |
19123 | if test -s conftest.err; then |
19124 | ac_cpp_err=$ac_c_preproc_warn_flag |
19125 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
19126 | else |
19127 | ac_cpp_err= |
19128 | fi |
19129 | else |
19130 | ac_cpp_err=yes |
19131 | fi |
19132 | if test -z "$ac_cpp_err"; then |
19133 | ac_header_preproc=yes |
19134 | else |
19135 | echo "$as_me: failed program was:" >&5 |
19136 | sed 's/^/| /' conftest.$ac_ext >&5 |
19137 | |
19138 | ac_header_preproc=no |
19139 | fi |
19140 | rm -f conftest.err conftest.$ac_ext |
19141 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
19142 | echo "${ECHO_T}$ac_header_preproc" >&6 |
19143 | |
19144 | # So? What about this header? |
19145 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19146 | yes:no: ) |
19147 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
19148 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
19149 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
19150 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
19151 | ac_header_preproc=yes |
19152 | ;; |
19153 | no:yes:* ) |
19154 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
19155 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
19156 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
19157 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
19158 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
19159 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
19160 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
19161 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
19162 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19163 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19164 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
19165 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
19166 | ( |
19167 | cat <<\_ASBOX |
19168 | ## -------------------------------------------------- ## |
19169 | ## Report this to courier-users@lists.sourceforge.net ## |
19170 | ## -------------------------------------------------- ## |
19171 | _ASBOX |
19172 | ) | |
19173 | sed "s/^/$as_me: WARNING: /" >&2 |
19174 | ;; |
19175 | esac |
19176 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
19177 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
19178 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
19179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19180 | else |
19181 | eval "$as_ac_Header=\$ac_header_preproc" |
19182 | fi |
19183 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
19184 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
19185 | |
19186 | fi |
19187 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
19188 | cat >>confdefs.h <<_ACEOF |
19189 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
19190 | _ACEOF |
19191 | |
19192 | fi |
19193 | |
19194 | done |
19195 | |
19196 | |
19197 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
19198 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
19199 | if test "${ac_cv_c_const+set}" = set; then |
19200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19201 | else |
19202 | cat >conftest.$ac_ext <<_ACEOF |
19203 | /* confdefs.h. */ |
19204 | _ACEOF |
19205 | cat confdefs.h >>conftest.$ac_ext |
19206 | cat >>conftest.$ac_ext <<_ACEOF |
19207 | /* end confdefs.h. */ |
19208 | |
19209 | int |
19210 | main () |
19211 | { |
19212 | /* FIXME: Include the comments suggested by Paul. */ |
19213 | #ifndef __cplusplus |
19214 | /* Ultrix mips cc rejects this. */ |
19215 | typedef int charset[2]; |
19216 | const charset x; |
19217 | /* SunOS 4.1.1 cc rejects this. */ |
19218 | char const *const *ccp; |
19219 | char **p; |
19220 | /* NEC SVR4.0.2 mips cc rejects this. */ |
19221 | struct point {int x, y;}; |
19222 | static struct point const zero = {0,0}; |
19223 | /* AIX XL C 1.02.0.0 rejects this. |
19224 | It does not let you subtract one const X* pointer from another in |
19225 | an arm of an if-expression whose if-part is not a constant |
19226 | expression */ |
19227 | const char *g = "string"; |
19228 | ccp = &g + (g ? g-g : 0); |
19229 | /* HPUX 7.0 cc rejects these. */ |
19230 | ++ccp; |
19231 | p = (char**) ccp; |
19232 | ccp = (char const *const *) p; |
19233 | { /* SCO 3.2v4 cc rejects this. */ |
19234 | char *t; |
19235 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
19236 | |
19237 | *t++ = 0; |
19238 | } |
19239 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
19240 | int x[] = {25, 17}; |
19241 | const int *foo = &x[0]; |
19242 | ++foo; |
19243 | } |
19244 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
19245 | typedef const int *iptr; |
19246 | iptr p = 0; |
19247 | ++p; |
19248 | } |
19249 | { /* AIX XL C 1.02.0.0 rejects this saying |
19250 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
19251 | struct s { int j; const int *ap[3]; }; |
19252 | struct s *b; b->j = 5; |
19253 | } |
19254 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
19255 | const int foo = 10; |
19256 | } |
19257 | #endif |
19258 | |
19259 | ; |
19260 | return 0; |
19261 | } |
19262 | _ACEOF |
19263 | rm -f conftest.$ac_objext |
19264 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19265 | (eval $ac_compile) 2>conftest.er1 |
19266 | ac_status=$? |
19267 | grep -v '^ *+' conftest.er1 >conftest.err |
19268 | rm -f conftest.er1 |
19269 | cat conftest.err >&5 |
19270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19271 | (exit $ac_status); } && |
19272 | { ac_try='test -z "$ac_c_werror_flag" |
19273 | || test ! -s conftest.err' |
19274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19275 | (eval $ac_try) 2>&5 |
19276 | ac_status=$? |
19277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19278 | (exit $ac_status); }; } && |
19279 | { ac_try='test -s conftest.$ac_objext' |
19280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19281 | (eval $ac_try) 2>&5 |
19282 | ac_status=$? |
19283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19284 | (exit $ac_status); }; }; then |
19285 | ac_cv_c_const=yes |
19286 | else |
19287 | echo "$as_me: failed program was:" >&5 |
19288 | sed 's/^/| /' conftest.$ac_ext >&5 |
19289 | |
19290 | ac_cv_c_const=no |
19291 | fi |
19292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19293 | fi |
19294 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
19295 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
19296 | if test $ac_cv_c_const = no; then |
19297 | |
19298 | cat >>confdefs.h <<\_ACEOF |
19299 | #define const |
19300 | _ACEOF |
19301 | |
19302 | fi |
19303 | |
19304 | echo "$as_me:$LINENO: checking for size_t" >&5 |
19305 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
19306 | if test "${ac_cv_type_size_t+set}" = set; then |
19307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19308 | else |
19309 | cat >conftest.$ac_ext <<_ACEOF |
19310 | /* confdefs.h. */ |
19311 | _ACEOF |
19312 | cat confdefs.h >>conftest.$ac_ext |
19313 | cat >>conftest.$ac_ext <<_ACEOF |
19314 | /* end confdefs.h. */ |
19315 | $ac_includes_default |
19316 | int |
19317 | main () |
19318 | { |
19319 | if ((size_t *) 0) |
19320 | return 0; |
19321 | if (sizeof (size_t)) |
19322 | return 0; |
19323 | ; |
19324 | return 0; |
19325 | } |
19326 | _ACEOF |
19327 | rm -f conftest.$ac_objext |
19328 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19329 | (eval $ac_compile) 2>conftest.er1 |
19330 | ac_status=$? |
19331 | grep -v '^ *+' conftest.er1 >conftest.err |
19332 | rm -f conftest.er1 |
19333 | cat conftest.err >&5 |
19334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19335 | (exit $ac_status); } && |
19336 | { ac_try='test -z "$ac_c_werror_flag" |
19337 | || test ! -s conftest.err' |
19338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19339 | (eval $ac_try) 2>&5 |
19340 | ac_status=$? |
19341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19342 | (exit $ac_status); }; } && |
19343 | { ac_try='test -s conftest.$ac_objext' |
19344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19345 | (eval $ac_try) 2>&5 |
19346 | ac_status=$? |
19347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19348 | (exit $ac_status); }; }; then |
19349 | ac_cv_type_size_t=yes |
19350 | else |
19351 | echo "$as_me: failed program was:" >&5 |
19352 | sed 's/^/| /' conftest.$ac_ext >&5 |
19353 | |
19354 | ac_cv_type_size_t=no |
19355 | fi |
19356 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19357 | fi |
19358 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
19359 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
19360 | if test $ac_cv_type_size_t = yes; then |
19361 | : |
19362 | else |
19363 | |
19364 | cat >>confdefs.h <<_ACEOF |
19365 | #define size_t unsigned |
19366 | _ACEOF |
19367 | |
19368 | fi |
19369 | |
19370 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
19371 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
19372 | if test "${ac_cv_struct_tm+set}" = set; then |
19373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19374 | else |
19375 | cat >conftest.$ac_ext <<_ACEOF |
19376 | /* confdefs.h. */ |
19377 | _ACEOF |
19378 | cat confdefs.h >>conftest.$ac_ext |
19379 | cat >>conftest.$ac_ext <<_ACEOF |
19380 | /* end confdefs.h. */ |
19381 | #include <sys/types.h> |
19382 | #include <time.h> |
19383 | |
19384 | int |
19385 | main () |
19386 | { |
19387 | struct tm *tp; tp->tm_sec; |
19388 | ; |
19389 | return 0; |
19390 | } |
19391 | _ACEOF |
19392 | rm -f conftest.$ac_objext |
19393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19394 | (eval $ac_compile) 2>conftest.er1 |
19395 | ac_status=$? |
19396 | grep -v '^ *+' conftest.er1 >conftest.err |
19397 | rm -f conftest.er1 |
19398 | cat conftest.err >&5 |
19399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19400 | (exit $ac_status); } && |
19401 | { ac_try='test -z "$ac_c_werror_flag" |
19402 | || test ! -s conftest.err' |
19403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19404 | (eval $ac_try) 2>&5 |
19405 | ac_status=$? |
19406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19407 | (exit $ac_status); }; } && |
19408 | { ac_try='test -s conftest.$ac_objext' |
19409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19410 | (eval $ac_try) 2>&5 |
19411 | ac_status=$? |
19412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19413 | (exit $ac_status); }; }; then |
19414 | ac_cv_struct_tm=time.h |
19415 | else |
19416 | echo "$as_me: failed program was:" >&5 |
19417 | sed 's/^/| /' conftest.$ac_ext >&5 |
19418 | |
19419 | ac_cv_struct_tm=sys/time.h |
19420 | fi |
19421 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19422 | fi |
19423 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
19424 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
19425 | if test $ac_cv_struct_tm = sys/time.h; then |
19426 | |
19427 | cat >>confdefs.h <<\_ACEOF |
19428 | #define TM_IN_SYS_TIME 1 |
19429 | _ACEOF |
19430 | |
19431 | fi |
19432 | |
19433 | |
19434 | |
19435 | |
19436 | |
19437 | |
19438 | for ac_func in strcasecmp strncasecmp setlocale |
19439 | do |
19440 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
19441 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19442 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
19443 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
19444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19445 | else |
19446 | cat >conftest.$ac_ext <<_ACEOF |
19447 | /* confdefs.h. */ |
19448 | _ACEOF |
19449 | cat confdefs.h >>conftest.$ac_ext |
19450 | cat >>conftest.$ac_ext <<_ACEOF |
19451 | /* end confdefs.h. */ |
19452 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19453 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
19454 | #define $ac_func innocuous_$ac_func |
19455 | |
19456 | /* System header to define __stub macros and hopefully few prototypes, |
19457 | which can conflict with char $ac_func (); below. |
19458 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
19459 | <limits.h> exists even on freestanding compilers. */ |
19460 | |
19461 | #ifdef __STDC__ |
19462 | # include <limits.h> |
19463 | #else |
19464 | # include <assert.h> |
19465 | #endif |
19466 | |
19467 | #undef $ac_func |
19468 | |
19469 | /* Override any gcc2 internal prototype to avoid an error. */ |
19470 | #ifdef __cplusplus |
19471 | extern "C" |
19472 | { |
19473 | #endif |
19474 | /* We use char because int might match the return type of a gcc2 |
19475 | builtin and then its argument prototype would still apply. */ |
19476 | char $ac_func (); |
19477 | /* The GNU C library defines this for functions which it implements |
19478 | to always fail with ENOSYS. Some functions are actually named |
19479 | something starting with __ and the normal name is an alias. */ |
19480 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
19481 | choke me |
19482 | #else |
19483 | char (*f) () = $ac_func; |
19484 | #endif |
19485 | #ifdef __cplusplus |
19486 | } |
19487 | #endif |
19488 | |
19489 | int |
19490 | main () |
19491 | { |
19492 | return f != $ac_func; |
19493 | ; |
19494 | return 0; |
19495 | } |
19496 | _ACEOF |
19497 | rm -f conftest.$ac_objext conftest$ac_exeext |
19498 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19499 | (eval $ac_link) 2>conftest.er1 |
19500 | ac_status=$? |
19501 | grep -v '^ *+' conftest.er1 >conftest.err |
19502 | rm -f conftest.er1 |
19503 | cat conftest.err >&5 |
19504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19505 | (exit $ac_status); } && |
19506 | { ac_try='test -z "$ac_c_werror_flag" |
19507 | || test ! -s conftest.err' |
19508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19509 | (eval $ac_try) 2>&5 |
19510 | ac_status=$? |
19511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19512 | (exit $ac_status); }; } && |
19513 | { ac_try='test -s conftest$ac_exeext' |
19514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19515 | (eval $ac_try) 2>&5 |
19516 | ac_status=$? |
19517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19518 | (exit $ac_status); }; }; then |
19519 | eval "$as_ac_var=yes" |
19520 | else |
19521 | echo "$as_me: failed program was:" >&5 |
19522 | sed 's/^/| /' conftest.$ac_ext >&5 |
19523 | |
19524 | eval "$as_ac_var=no" |
19525 | fi |
19526 | rm -f conftest.err conftest.$ac_objext \ |
19527 | conftest$ac_exeext conftest.$ac_ext |
19528 | fi |
19529 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
19530 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
19531 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
19532 | cat >>confdefs.h <<_ACEOF |
19533 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
19534 | _ACEOF |
19535 | |
19536 | fi |
19537 | done |
19538 | |
19539 | |
19540 | echo "$as_me:$LINENO: checking how to calculate alternate timezone" >&5 |
19541 | echo $ECHO_N "checking how to calculate alternate timezone... $ECHO_C" >&6 |
19542 | if test "${librfc822_cv_SYS_TIMEZONE+set}" = set; then |
19543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19544 | else |
19545 | cat >conftest.$ac_ext <<_ACEOF |
19546 | /* confdefs.h. */ |
19547 | _ACEOF |
19548 | cat confdefs.h >>conftest.$ac_ext |
19549 | cat >>conftest.$ac_ext <<_ACEOF |
19550 | /* end confdefs.h. */ |
19551 | |
19552 | #include <time.h> |
19553 | |
19554 | int |
19555 | main () |
19556 | { |
19557 | |
19558 | int main() |
19559 | { |
19560 | time_t t=altzone; |
19561 | |
19562 | return (0); |
19563 | } |
19564 | |
19565 | ; |
19566 | return 0; |
19567 | } |
19568 | _ACEOF |
19569 | rm -f conftest.$ac_objext |
19570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19571 | (eval $ac_compile) 2>conftest.er1 |
19572 | ac_status=$? |
19573 | grep -v '^ *+' conftest.er1 >conftest.err |
19574 | rm -f conftest.er1 |
19575 | cat conftest.err >&5 |
19576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19577 | (exit $ac_status); } && |
19578 | { ac_try='test -z "$ac_c_werror_flag" |
19579 | || test ! -s conftest.err' |
19580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19581 | (eval $ac_try) 2>&5 |
19582 | ac_status=$? |
19583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19584 | (exit $ac_status); }; } && |
19585 | { ac_try='test -s conftest.$ac_objext' |
19586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19587 | (eval $ac_try) 2>&5 |
19588 | ac_status=$? |
19589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19590 | (exit $ac_status); }; }; then |
19591 | librfc822_cv_SYS_TIMEZONE=altzone |
19592 | else |
19593 | echo "$as_me: failed program was:" >&5 |
19594 | sed 's/^/| /' conftest.$ac_ext >&5 |
19595 | |
19596 | cat >conftest.$ac_ext <<_ACEOF |
19597 | /* confdefs.h. */ |
19598 | _ACEOF |
19599 | cat confdefs.h >>conftest.$ac_ext |
19600 | cat >>conftest.$ac_ext <<_ACEOF |
19601 | /* end confdefs.h. */ |
19602 | |
19603 | #include <time.h> |
19604 | |
19605 | int |
19606 | main () |
19607 | { |
19608 | |
19609 | int main() |
19610 | { |
19611 | int n=daylight; |
19612 | |
19613 | return (0); |
19614 | } |
19615 | |
19616 | ; |
19617 | return 0; |
19618 | } |
19619 | _ACEOF |
19620 | rm -f conftest.$ac_objext |
19621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19622 | (eval $ac_compile) 2>conftest.er1 |
19623 | ac_status=$? |
19624 | grep -v '^ *+' conftest.er1 >conftest.err |
19625 | rm -f conftest.er1 |
19626 | cat conftest.err >&5 |
19627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19628 | (exit $ac_status); } && |
19629 | { ac_try='test -z "$ac_c_werror_flag" |
19630 | || test ! -s conftest.err' |
19631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19632 | (eval $ac_try) 2>&5 |
19633 | ac_status=$? |
19634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19635 | (exit $ac_status); }; } && |
19636 | { ac_try='test -s conftest.$ac_objext' |
19637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19638 | (eval $ac_try) 2>&5 |
19639 | ac_status=$? |
19640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19641 | (exit $ac_status); }; }; then |
19642 | librfc822_cv_SYS_TIMEZONE=daylight |
19643 | else |
19644 | echo "$as_me: failed program was:" >&5 |
19645 | sed 's/^/| /' conftest.$ac_ext >&5 |
19646 | |
19647 | cat >conftest.$ac_ext <<_ACEOF |
19648 | /* confdefs.h. */ |
19649 | _ACEOF |
19650 | cat confdefs.h >>conftest.$ac_ext |
19651 | cat >>conftest.$ac_ext <<_ACEOF |
19652 | /* end confdefs.h. */ |
19653 | |
19654 | #include <time.h> |
19655 | |
19656 | extern struct tm dummy; |
19657 | |
19658 | int |
19659 | main () |
19660 | { |
19661 | |
19662 | int main() |
19663 | { |
19664 | long n=dummy.tm_gmtoff; |
19665 | |
19666 | return (0); |
19667 | } |
19668 | |
19669 | ; |
19670 | return 0; |
19671 | } |
19672 | _ACEOF |
19673 | rm -f conftest.$ac_objext |
19674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19675 | (eval $ac_compile) 2>conftest.er1 |
19676 | ac_status=$? |
19677 | grep -v '^ *+' conftest.er1 >conftest.err |
19678 | rm -f conftest.er1 |
19679 | cat conftest.err >&5 |
19680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19681 | (exit $ac_status); } && |
19682 | { ac_try='test -z "$ac_c_werror_flag" |
19683 | || test ! -s conftest.err' |
19684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19685 | (eval $ac_try) 2>&5 |
19686 | ac_status=$? |
19687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19688 | (exit $ac_status); }; } && |
19689 | { ac_try='test -s conftest.$ac_objext' |
19690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19691 | (eval $ac_try) 2>&5 |
19692 | ac_status=$? |
19693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19694 | (exit $ac_status); }; }; then |
19695 | librfc822_cv_SYS_TIMEZONE=tm_gmtoff |
19696 | else |
19697 | echo "$as_me: failed program was:" >&5 |
19698 | sed 's/^/| /' conftest.$ac_ext >&5 |
19699 | |
19700 | librfc822_cv_SYS_TIMEZONE=unknown |
19701 | |
19702 | fi |
19703 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19704 | |
19705 | fi |
19706 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19707 | |
19708 | fi |
19709 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19710 | |
19711 | fi |
19712 | echo "$as_me:$LINENO: result: $librfc822_cv_SYS_TIMEZONE" >&5 |
19713 | echo "${ECHO_T}$librfc822_cv_SYS_TIMEZONE" >&6 |
19714 | |
19715 | case $librfc822_cv_SYS_TIMEZONE in |
19716 | tm_gmtoff) |
19717 | |
19718 | cat >>confdefs.h <<_ACEOF |
19719 | #define USE_TIME_GMTOFF 1 |
19720 | _ACEOF |
19721 | |
19722 | ;; |
19723 | altzone) |
19724 | |
19725 | cat >>confdefs.h <<_ACEOF |
19726 | #define USE_TIME_ALTZONE 1 |
19727 | _ACEOF |
19728 | |
19729 | ;; |
19730 | daylight) |
19731 | |
19732 | cat >>confdefs.h <<_ACEOF |
19733 | #define USE_TIME_DAYLIGHT 1 |
19734 | _ACEOF |
19735 | |
19736 | ;; |
19737 | *) |
19738 | { echo "$as_me:$LINENO: WARNING: Cannot figure out how to calculate the alternate timezone, will use GMT" >&5 |
19739 | echo "$as_me: WARNING: Cannot figure out how to calculate the alternate timezone, will use GMT" >&2;} |
19740 | ;; |
19741 | esac |
19742 | |
19743 | if test -d ../unicode |
19744 | then |
19745 | |
19746 | cat >>confdefs.h <<_ACEOF |
19747 | #define HAVE_LIBUNICODE 1 |
19748 | _ACEOF |
19749 | |
19750 | fi |
19751 | |
19752 | |
19753 | |
19754 | if test -d ${srcdir}/../docbook; then |
19755 | HAVE_SGML_TRUE= |
19756 | HAVE_SGML_FALSE='#' |
19757 | else |
19758 | HAVE_SGML_TRUE='#' |
19759 | HAVE_SGML_FALSE= |
19760 | fi |
19761 | |
19762 | |
19763 | ac_config_files="$ac_config_files Makefile" |
19764 | cat >confcache <<\_ACEOF |
19765 | # This file is a shell script that caches the results of configure |
19766 | # tests run on this system so they can be shared between configure |
19767 | # scripts and configure runs, see configure's option --config-cache. |
19768 | # It is not useful on other systems. If it contains results you don't |
19769 | # want to keep, you may remove or edit it. |
19770 | # |
19771 | # config.status only pays attention to the cache file if you give it |
19772 | # the --recheck option to rerun configure. |
19773 | # |
19774 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
19775 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
19776 | # following values. |
19777 | |
19778 | _ACEOF |
19779 | |
19780 | # The following way of writing the cache mishandles newlines in values, |
19781 | # but we know of no workaround that is simple, portable, and efficient. |
19782 | # So, don't put newlines in cache variables' values. |
19783 | # Ultrix sh set writes to stderr and can't be redirected directly, |
19784 | # and sets the high bit in the cache file unless we assign to the vars. |
19785 | { |
19786 | (set) 2>&1 | |
19787 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
19788 | *ac_space=\ *) |
19789 | # `set' does not quote correctly, so add quotes (double-quote |
19790 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
19791 | sed -n \ |
19792 | "s/'/'\\\\''/g; |
19793 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
19794 | ;; |
19795 | *) |
19796 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
19797 | sed -n \ |
19798 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
19799 | ;; |
19800 | esac; |
19801 | } | |
19802 | sed ' |
19803 | t clear |
19804 | : clear |
19805 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
19806 | t end |
19807 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
19808 | : end' >>confcache |
19809 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
19810 | if test -w $cache_file; then |
19811 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
19812 | cat confcache >$cache_file |
19813 | else |
19814 | echo "not updating unwritable cache $cache_file" |
19815 | fi |
19816 | fi |
19817 | rm -f confcache |
19818 | |
19819 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
19820 | # Let make expand exec_prefix. |
19821 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
19822 | |
19823 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
19824 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
19825 | # trailing colons and then remove the whole line if VPATH becomes empty |
19826 | # (actually we leave an empty line to preserve line numbers). |
19827 | if test "x$srcdir" = x.; then |
19828 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
19829 | s/:*\$(srcdir):*/:/; |
19830 | s/:*\${srcdir}:*/:/; |
19831 | s/:*@srcdir@:*/:/; |
19832 | s/^\([^=]*=[ ]*\):*/\1/; |
19833 | s/:*$//; |
19834 | s/^[^=]*=[ ]*$//; |
19835 | }' |
19836 | fi |
19837 | |
19838 | DEFS=-DHAVE_CONFIG_H |
19839 | |
19840 | ac_libobjs= |
19841 | ac_ltlibobjs= |
19842 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
19843 | # 1. Remove the extension, and $U if already installed. |
19844 | ac_i=`echo "$ac_i" | |
19845 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
19846 | # 2. Add them. |
19847 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
19848 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
19849 | done |
19850 | LIBOBJS=$ac_libobjs |
19851 | |
19852 | LTLIBOBJS=$ac_ltlibobjs |
19853 | |
19854 | |
19855 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
19856 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
19857 | Usually this means the macro was only invoked conditionally." >&5 |
19858 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
19859 | Usually this means the macro was only invoked conditionally." >&2;} |
19860 | { (exit 1); exit 1; }; } |
19861 | fi |
19862 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
19863 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
19864 | Usually this means the macro was only invoked conditionally." >&5 |
19865 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
19866 | Usually this means the macro was only invoked conditionally." >&2;} |
19867 | { (exit 1); exit 1; }; } |
19868 | fi |
19869 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
19870 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
19871 | Usually this means the macro was only invoked conditionally." >&5 |
19872 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
19873 | Usually this means the macro was only invoked conditionally." >&2;} |
19874 | { (exit 1); exit 1; }; } |
19875 | fi |
19876 | if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then |
19877 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined. |
19878 | Usually this means the macro was only invoked conditionally." >&5 |
19879 | echo "$as_me: error: conditional \"HAVE_SGML\" was never defined. |
19880 | Usually this means the macro was only invoked conditionally." >&2;} |
19881 | { (exit 1); exit 1; }; } |
19882 | fi |
19883 | |
19884 | : ${CONFIG_STATUS=./config.status} |
19885 | ac_clean_files_save=$ac_clean_files |
19886 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
19887 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
19888 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
19889 | cat >$CONFIG_STATUS <<_ACEOF |
19890 | #! $SHELL |
19891 | # Generated by $as_me. |
19892 | # Run this file to recreate the current configuration. |
19893 | # Compiler output produced by configure, useful for debugging |
19894 | # configure, is in config.log if it exists. |
19895 | |
19896 | debug=false |
19897 | ac_cs_recheck=false |
19898 | ac_cs_silent=false |
19899 | SHELL=\${CONFIG_SHELL-$SHELL} |
19900 | _ACEOF |
19901 | |
19902 | cat >>$CONFIG_STATUS <<\_ACEOF |
19903 | ## --------------------- ## |
19904 | ## M4sh Initialization. ## |
19905 | ## --------------------- ## |
19906 | |
19907 | # Be Bourne compatible |
19908 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
19909 | emulate sh |
19910 | NULLCMD=: |
19911 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
19912 | # is contrary to our usage. Disable this feature. |
19913 | alias -g '${1+"$@"}'='"$@"' |
19914 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
19915 | set -o posix |
19916 | fi |
19917 | DUALCASE=1; export DUALCASE # for MKS sh |
19918 | |
19919 | # Support unset when possible. |
19920 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
19921 | as_unset=unset |
19922 | else |
19923 | as_unset=false |
19924 | fi |
19925 | |
19926 | |
19927 | # Work around bugs in pre-3.0 UWIN ksh. |
19928 | $as_unset ENV MAIL MAILPATH |
19929 | PS1='$ ' |
19930 | PS2='> ' |
19931 | PS4='+ ' |
19932 | |
19933 | # NLS nuisances. |
19934 | for as_var in \ |
19935 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
19936 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
19937 | LC_TELEPHONE LC_TIME |
19938 | do |
19939 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
19940 | eval $as_var=C; export $as_var |
19941 | else |
19942 | $as_unset $as_var |
19943 | fi |
19944 | done |
19945 | |
19946 | # Required to use basename. |
19947 | if expr a : '\(a\)' >/dev/null 2>&1; then |
19948 | as_expr=expr |
19949 | else |
19950 | as_expr=false |
19951 | fi |
19952 | |
19953 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
19954 | as_basename=basename |
19955 | else |
19956 | as_basename=false |
19957 | fi |
19958 | |
19959 | |
19960 | # Name of the executable. |
19961 | as_me=`$as_basename "$0" || |
19962 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
19963 | X"$0" : 'X\(//\)$' \| \ |
19964 | X"$0" : 'X\(/\)$' \| \ |
19965 | . : '\(.\)' 2>/dev/null || |
19966 | echo X/"$0" | |
19967 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
19968 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
19969 | /^X\/\(\/\).*/{ s//\1/; q; } |
19970 | s/.*/./; q'` |
19971 | |
19972 | |
19973 | # PATH needs CR, and LINENO needs CR and PATH. |
19974 | # Avoid depending upon Character Ranges. |
19975 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
19976 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
19977 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
19978 | as_cr_digits='0123456789' |
19979 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
19980 | |
19981 | # The user is always right. |
19982 | if test "${PATH_SEPARATOR+set}" != set; then |
19983 | echo "#! /bin/sh" >conf$$.sh |
19984 | echo "exit 0" >>conf$$.sh |
19985 | chmod +x conf$$.sh |
19986 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
19987 | PATH_SEPARATOR=';' |
19988 | else |
19989 | PATH_SEPARATOR=: |
19990 | fi |
19991 | rm -f conf$$.sh |
19992 | fi |
19993 | |
19994 | |
19995 | as_lineno_1=$LINENO |
19996 | as_lineno_2=$LINENO |
19997 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
19998 | test "x$as_lineno_1" != "x$as_lineno_2" && |
19999 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
20000 | # Find who we are. Look in the path if we contain no path at all |
20001 | # relative or not. |
20002 | case $0 in |
20003 | *[\\/]* ) as_myself=$0 ;; |
20004 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20005 | for as_dir in $PATH |
20006 | do |
20007 | IFS=$as_save_IFS |
20008 | test -z "$as_dir" && as_dir=. |
20009 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
20010 | done |
20011 | |
20012 | ;; |
20013 | esac |
20014 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
20015 | # in which case we are not to be found in the path. |
20016 | if test "x$as_myself" = x; then |
20017 | as_myself=$0 |
20018 | fi |
20019 | if test ! -f "$as_myself"; then |
20020 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
20021 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
20022 | { (exit 1); exit 1; }; } |
20023 | fi |
20024 | case $CONFIG_SHELL in |
20025 | '') |
20026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20027 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
20028 | do |
20029 | IFS=$as_save_IFS |
20030 | test -z "$as_dir" && as_dir=. |
20031 | for as_base in sh bash ksh sh5; do |
20032 | case $as_dir in |
20033 | /*) |
20034 | if ("$as_dir/$as_base" -c ' |
20035 | as_lineno_1=$LINENO |
20036 | as_lineno_2=$LINENO |
20037 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
20038 | test "x$as_lineno_1" != "x$as_lineno_2" && |
20039 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
20040 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
20041 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
20042 | CONFIG_SHELL=$as_dir/$as_base |
20043 | export CONFIG_SHELL |
20044 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
20045 | fi;; |
20046 | esac |
20047 | done |
20048 | done |
20049 | ;; |
20050 | esac |
20051 | |
20052 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
20053 | # uniformly replaced by the line number. The first 'sed' inserts a |
20054 | # line-number line before each line; the second 'sed' does the real |
20055 | # work. The second script uses 'N' to pair each line-number line |
20056 | # with the numbered line, and appends trailing '-' during |
20057 | # substitution so that $LINENO is not a special case at line end. |
20058 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
20059 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
20060 | sed '=' <$as_myself | |
20061 | sed ' |
20062 | N |
20063 | s,$,-, |
20064 | : loop |
20065 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
20066 | t loop |
20067 | s,-$,, |
20068 | s,^['$as_cr_digits']*\n,, |
20069 | ' >$as_me.lineno && |
20070 | chmod +x $as_me.lineno || |
20071 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
20072 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
20073 | { (exit 1); exit 1; }; } |
20074 | |
20075 | # Don't try to exec as it changes $[0], causing all sort of problems |
20076 | # (the dirname of $[0] is not the place where we might find the |
20077 | # original and so on. Autoconf is especially sensible to this). |
20078 | . ./$as_me.lineno |
20079 | # Exit status is that of the last command. |
20080 | exit |
20081 | } |
20082 | |
20083 | |
20084 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
20085 | *c*,-n*) ECHO_N= ECHO_C=' |
20086 | ' ECHO_T=' ' ;; |
20087 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
20088 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
20089 | esac |
20090 | |
20091 | if expr a : '\(a\)' >/dev/null 2>&1; then |
20092 | as_expr=expr |
20093 | else |
20094 | as_expr=false |
20095 | fi |
20096 | |
20097 | rm -f conf$$ conf$$.exe conf$$.file |
20098 | echo >conf$$.file |
20099 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
20100 | # We could just check for DJGPP; but this test a) works b) is more generic |
20101 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
20102 | if test -f conf$$.exe; then |
20103 | # Don't use ln at all; we don't have any links |
20104 | as_ln_s='cp -p' |
20105 | else |
20106 | as_ln_s='ln -s' |
20107 | fi |
20108 | elif ln conf$$.file conf$$ 2>/dev/null; then |
20109 | as_ln_s=ln |
20110 | else |
20111 | as_ln_s='cp -p' |
20112 | fi |
20113 | rm -f conf$$ conf$$.exe conf$$.file |
20114 | |
20115 | if mkdir -p . 2>/dev/null; then |
20116 | as_mkdir_p=: |
20117 | else |
20118 | test -d ./-p && rmdir ./-p |
20119 | as_mkdir_p=false |
20120 | fi |
20121 | |
20122 | as_executable_p="test -f" |
20123 | |
20124 | # Sed expression to map a string onto a valid CPP name. |
20125 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
20126 | |
20127 | # Sed expression to map a string onto a valid variable name. |
20128 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
20129 | |
20130 | |
20131 | # IFS |
20132 | # We need space, tab and new line, in precisely that order. |
20133 | as_nl=' |
20134 | ' |
20135 | IFS=" $as_nl" |
20136 | |
20137 | # CDPATH. |
20138 | $as_unset CDPATH |
20139 | |
20140 | exec 6>&1 |
20141 | |
20142 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
20143 | # report actual input values of CONFIG_FILES etc. instead of their |
20144 | # values after options handling. Logging --version etc. is OK. |
20145 | exec 5>>config.log |
20146 | { |
20147 | echo |
20148 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
20149 | ## Running $as_me. ## |
20150 | _ASBOX |
20151 | } >&5 |
20152 | cat >&5 <<_CSEOF |
20153 | |
20154 | This file was extended by rfc822lib $as_me 0.12, which was |
20155 | generated by GNU Autoconf 2.59. Invocation command line was |
20156 | |
20157 | CONFIG_FILES = $CONFIG_FILES |
20158 | CONFIG_HEADERS = $CONFIG_HEADERS |
20159 | CONFIG_LINKS = $CONFIG_LINKS |
20160 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
20161 | $ $0 $@ |
20162 | |
20163 | _CSEOF |
20164 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
20165 | echo >&5 |
20166 | _ACEOF |
20167 | |
20168 | # Files that config.status was made for. |
20169 | if test -n "$ac_config_files"; then |
20170 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
20171 | fi |
20172 | |
20173 | if test -n "$ac_config_headers"; then |
20174 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
20175 | fi |
20176 | |
20177 | if test -n "$ac_config_links"; then |
20178 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
20179 | fi |
20180 | |
20181 | if test -n "$ac_config_commands"; then |
20182 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
20183 | fi |
20184 | |
20185 | cat >>$CONFIG_STATUS <<\_ACEOF |
20186 | |
20187 | ac_cs_usage="\ |
20188 | \`$as_me' instantiates files from templates according to the |
20189 | current configuration. |
20190 | |
20191 | Usage: $0 [OPTIONS] [FILE]... |
20192 | |
20193 | -h, --help print this help, then exit |
20194 | -V, --version print version number, then exit |
20195 | -q, --quiet do not print progress messages |
20196 | -d, --debug don't remove temporary files |
20197 | --recheck update $as_me by reconfiguring in the same conditions |
20198 | --file=FILE[:TEMPLATE] |
20199 | instantiate the configuration file FILE |
20200 | --header=FILE[:TEMPLATE] |
20201 | instantiate the configuration header FILE |
20202 | |
20203 | Configuration files: |
20204 | $config_files |
20205 | |
20206 | Configuration headers: |
20207 | $config_headers |
20208 | |
20209 | Configuration commands: |
20210 | $config_commands |
20211 | |
20212 | Report bugs to <bug-autoconf@gnu.org>." |
20213 | _ACEOF |
20214 | |
20215 | cat >>$CONFIG_STATUS <<_ACEOF |
20216 | ac_cs_version="\\ |
20217 | rfc822lib config.status 0.12 |
20218 | configured by $0, generated by GNU Autoconf 2.59, |
20219 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
20220 | |
20221 | Copyright (C) 2003 Free Software Foundation, Inc. |
20222 | This config.status script is free software; the Free Software Foundation |
20223 | gives unlimited permission to copy, distribute and modify it." |
20224 | srcdir=$srcdir |
20225 | INSTALL="$INSTALL" |
20226 | _ACEOF |
20227 | |
20228 | cat >>$CONFIG_STATUS <<\_ACEOF |
20229 | # If no file are specified by the user, then we need to provide default |
20230 | # value. By we need to know if files were specified by the user. |
20231 | ac_need_defaults=: |
20232 | while test $# != 0 |
20233 | do |
20234 | case $1 in |
20235 | --*=*) |
20236 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
20237 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
20238 | ac_shift=: |
20239 | ;; |
20240 | -*) |
20241 | ac_option=$1 |
20242 | ac_optarg=$2 |
20243 | ac_shift=shift |
20244 | ;; |
20245 | *) # This is not an option, so the user has probably given explicit |
20246 | # arguments. |
20247 | ac_option=$1 |
20248 | ac_need_defaults=false;; |
20249 | esac |
20250 | |
20251 | case $ac_option in |
20252 | # Handling of the options. |
20253 | _ACEOF |
20254 | cat >>$CONFIG_STATUS <<\_ACEOF |
20255 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
20256 | ac_cs_recheck=: ;; |
20257 | --version | --vers* | -V ) |
20258 | echo "$ac_cs_version"; exit 0 ;; |
20259 | --he | --h) |
20260 | # Conflict between --help and --header |
20261 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
20262 | Try \`$0 --help' for more information." >&5 |
20263 | echo "$as_me: error: ambiguous option: $1 |
20264 | Try \`$0 --help' for more information." >&2;} |
20265 | { (exit 1); exit 1; }; };; |
20266 | --help | --hel | -h ) |
20267 | echo "$ac_cs_usage"; exit 0 ;; |
20268 | --debug | --d* | -d ) |
20269 | debug=: ;; |
20270 | --file | --fil | --fi | --f ) |
20271 | $ac_shift |
20272 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
20273 | ac_need_defaults=false;; |
20274 | --header | --heade | --head | --hea ) |
20275 | $ac_shift |
20276 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
20277 | ac_need_defaults=false;; |
20278 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
20279 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
20280 | ac_cs_silent=: ;; |
20281 | |
20282 | # This is an error. |
20283 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
20284 | Try \`$0 --help' for more information." >&5 |
20285 | echo "$as_me: error: unrecognized option: $1 |
20286 | Try \`$0 --help' for more information." >&2;} |
20287 | { (exit 1); exit 1; }; } ;; |
20288 | |
20289 | *) ac_config_targets="$ac_config_targets $1" ;; |
20290 | |
20291 | esac |
20292 | shift |
20293 | done |
20294 | |
20295 | ac_configure_extra_args= |
20296 | |
20297 | if $ac_cs_silent; then |
20298 | exec 6>/dev/null |
20299 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
20300 | fi |
20301 | |
20302 | _ACEOF |
20303 | cat >>$CONFIG_STATUS <<_ACEOF |
20304 | if \$ac_cs_recheck; then |
20305 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
20306 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
20307 | fi |
20308 | |
20309 | _ACEOF |
20310 | |
20311 | cat >>$CONFIG_STATUS <<_ACEOF |
20312 | # |
20313 | # INIT-COMMANDS section. |
20314 | # |
20315 | |
20316 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
20317 | |
20318 | _ACEOF |
20319 | |
20320 | |
20321 | |
20322 | cat >>$CONFIG_STATUS <<\_ACEOF |
20323 | for ac_config_target in $ac_config_targets |
20324 | do |
20325 | case "$ac_config_target" in |
20326 | # Handling of arguments. |
20327 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
20328 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
20329 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
20330 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
20331 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
20332 | { (exit 1); exit 1; }; };; |
20333 | esac |
20334 | done |
20335 | |
20336 | # If the user did not use the arguments to specify the items to instantiate, |
20337 | # then the envvar interface is used. Set only those that are not. |
20338 | # We use the long form for the default assignment because of an extremely |
20339 | # bizarre bug on SunOS 4.1.3. |
20340 | if $ac_need_defaults; then |
20341 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
20342 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
20343 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
20344 | fi |
20345 | |
20346 | # Have a temporary directory for convenience. Make it in the build tree |
20347 | # simply because there is no reason to put it here, and in addition, |
20348 | # creating and moving files from /tmp can sometimes cause problems. |
20349 | # Create a temporary directory, and hook for its removal unless debugging. |
20350 | $debug || |
20351 | { |
20352 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
20353 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
20354 | } |
20355 | |
20356 | # Create a (secure) tmp directory for tmp files. |
20357 | |
20358 | { |
20359 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
20360 | test -n "$tmp" && test -d "$tmp" |
20361 | } || |
20362 | { |
20363 | tmp=./confstat$$-$RANDOM |
20364 | (umask 077 && mkdir $tmp) |
20365 | } || |
20366 | { |
20367 | echo "$me: cannot create a temporary directory in ." >&2 |
20368 | { (exit 1); exit 1; } |
20369 | } |
20370 | |
20371 | _ACEOF |
20372 | |
20373 | cat >>$CONFIG_STATUS <<_ACEOF |
20374 | |
20375 | # |
20376 | # CONFIG_FILES section. |
20377 | # |
20378 | |
20379 | # No need to generate the scripts if there are no CONFIG_FILES. |
20380 | # This happens for instance when ./config.status config.h |
20381 | if test -n "\$CONFIG_FILES"; then |
20382 | # Protect against being on the right side of a sed subst in config.status. |
20383 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
20384 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
20385 | s,@SHELL@,$SHELL,;t t |
20386 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
20387 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
20388 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
20389 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
20390 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
20391 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
20392 | s,@exec_prefix@,$exec_prefix,;t t |
20393 | s,@prefix@,$prefix,;t t |
20394 | s,@program_transform_name@,$program_transform_name,;t t |
20395 | s,@bindir@,$bindir,;t t |
20396 | s,@sbindir@,$sbindir,;t t |
20397 | s,@libexecdir@,$libexecdir,;t t |
20398 | s,@datadir@,$datadir,;t t |
20399 | s,@sysconfdir@,$sysconfdir,;t t |
20400 | s,@sharedstatedir@,$sharedstatedir,;t t |
20401 | s,@localstatedir@,$localstatedir,;t t |
20402 | s,@libdir@,$libdir,;t t |
20403 | s,@includedir@,$includedir,;t t |
20404 | s,@oldincludedir@,$oldincludedir,;t t |
20405 | s,@infodir@,$infodir,;t t |
20406 | s,@mandir@,$mandir,;t t |
20407 | s,@build_alias@,$build_alias,;t t |
20408 | s,@host_alias@,$host_alias,;t t |
20409 | s,@target_alias@,$target_alias,;t t |
20410 | s,@DEFS@,$DEFS,;t t |
20411 | s,@ECHO_C@,$ECHO_C,;t t |
20412 | s,@ECHO_N@,$ECHO_N,;t t |
20413 | s,@ECHO_T@,$ECHO_T,;t t |
20414 | s,@LIBS@,$LIBS,;t t |
20415 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
20416 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
20417 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
20418 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
20419 | s,@PACKAGE@,$PACKAGE,;t t |
20420 | s,@VERSION@,$VERSION,;t t |
20421 | s,@ACLOCAL@,$ACLOCAL,;t t |
20422 | s,@AUTOCONF@,$AUTOCONF,;t t |
20423 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
20424 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
20425 | s,@MAKEINFO@,$MAKEINFO,;t t |
20426 | s,@install_sh@,$install_sh,;t t |
20427 | s,@STRIP@,$STRIP,;t t |
20428 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
20429 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
20430 | s,@mkdir_p@,$mkdir_p,;t t |
20431 | s,@AWK@,$AWK,;t t |
20432 | s,@SET_MAKE@,$SET_MAKE,;t t |
20433 | s,@am__leading_dot@,$am__leading_dot,;t t |
20434 | s,@AMTAR@,$AMTAR,;t t |
20435 | s,@am__tar@,$am__tar,;t t |
20436 | s,@am__untar@,$am__untar,;t t |
20437 | s,@CC@,$CC,;t t |
20438 | s,@CFLAGS@,$CFLAGS,;t t |
20439 | s,@LDFLAGS@,$LDFLAGS,;t t |
20440 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
20441 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
20442 | s,@EXEEXT@,$EXEEXT,;t t |
20443 | s,@OBJEXT@,$OBJEXT,;t t |
20444 | s,@DEPDIR@,$DEPDIR,;t t |
20445 | s,@am__include@,$am__include,;t t |
20446 | s,@am__quote@,$am__quote,;t t |
20447 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
20448 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
20449 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
20450 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
20451 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
20452 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
20453 | s,@CPP@,$CPP,;t t |
20454 | s,@EGREP@,$EGREP,;t t |
20455 | s,@build@,$build,;t t |
20456 | s,@build_cpu@,$build_cpu,;t t |
20457 | s,@build_vendor@,$build_vendor,;t t |
20458 | s,@build_os@,$build_os,;t t |
20459 | s,@host@,$host,;t t |
20460 | s,@host_cpu@,$host_cpu,;t t |
20461 | s,@host_vendor@,$host_vendor,;t t |
20462 | s,@host_os@,$host_os,;t t |
20463 | s,@SED@,$SED,;t t |
20464 | s,@LN_S@,$LN_S,;t t |
20465 | s,@ECHO@,$ECHO,;t t |
20466 | s,@AR@,$AR,;t t |
20467 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
20468 | s,@RANLIB@,$RANLIB,;t t |
20469 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
20470 | s,@CXX@,$CXX,;t t |
20471 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
20472 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
20473 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
20474 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
20475 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
20476 | s,@CXXCPP@,$CXXCPP,;t t |
20477 | s,@F77@,$F77,;t t |
20478 | s,@FFLAGS@,$FFLAGS,;t t |
20479 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
20480 | s,@LIBTOOL@,$LIBTOOL,;t t |
20481 | s,@HAVE_SGML_TRUE@,$HAVE_SGML_TRUE,;t t |
20482 | s,@HAVE_SGML_FALSE@,$HAVE_SGML_FALSE,;t t |
20483 | s,@LIBOBJS@,$LIBOBJS,;t t |
20484 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
20485 | CEOF |
20486 | |
20487 | _ACEOF |
20488 | |
20489 | cat >>$CONFIG_STATUS <<\_ACEOF |
20490 | # Split the substitutions into bite-sized pieces for seds with |
20491 | # small command number limits, like on Digital OSF/1 and HP-UX. |
20492 | ac_max_sed_lines=48 |
20493 | ac_sed_frag=1 # Number of current file. |
20494 | ac_beg=1 # First line for current file. |
20495 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
20496 | ac_more_lines=: |
20497 | ac_sed_cmds= |
20498 | while $ac_more_lines; do |
20499 | if test $ac_beg -gt 1; then |
20500 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
20501 | else |
20502 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
20503 | fi |
20504 | if test ! -s $tmp/subs.frag; then |
20505 | ac_more_lines=false |
20506 | else |
20507 | # The purpose of the label and of the branching condition is to |
20508 | # speed up the sed processing (if there are no `@' at all, there |
20509 | # is no need to browse any of the substitutions). |
20510 | # These are the two extra sed commands mentioned above. |
20511 | (echo ':t |
20512 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
20513 | if test -z "$ac_sed_cmds"; then |
20514 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
20515 | else |
20516 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
20517 | fi |
20518 | ac_sed_frag=`expr $ac_sed_frag + 1` |
20519 | ac_beg=$ac_end |
20520 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
20521 | fi |
20522 | done |
20523 | if test -z "$ac_sed_cmds"; then |
20524 | ac_sed_cmds=cat |
20525 | fi |
20526 | fi # test -n "$CONFIG_FILES" |
20527 | |
20528 | _ACEOF |
20529 | cat >>$CONFIG_STATUS <<\_ACEOF |
20530 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
20531 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
20532 | case $ac_file in |
20533 | - | *:- | *:-:* ) # input from stdin |
20534 | cat >$tmp/stdin |
20535 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
20536 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
20537 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
20538 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
20539 | * ) ac_file_in=$ac_file.in ;; |
20540 | esac |
20541 | |
20542 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
20543 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
20544 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20545 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
20546 | X"$ac_file" : 'X\(//\)$' \| \ |
20547 | X"$ac_file" : 'X\(/\)' \| \ |
20548 | . : '\(.\)' 2>/dev/null || |
20549 | echo X"$ac_file" | |
20550 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20551 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20552 | /^X\(\/\/\)$/{ s//\1/; q; } |
20553 | /^X\(\/\).*/{ s//\1/; q; } |
20554 | s/.*/./; q'` |
20555 | { if $as_mkdir_p; then |
20556 | mkdir -p "$ac_dir" |
20557 | else |
20558 | as_dir="$ac_dir" |
20559 | as_dirs= |
20560 | while test ! -d "$as_dir"; do |
20561 | as_dirs="$as_dir $as_dirs" |
20562 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
20563 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20564 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
20565 | X"$as_dir" : 'X\(//\)$' \| \ |
20566 | X"$as_dir" : 'X\(/\)' \| \ |
20567 | . : '\(.\)' 2>/dev/null || |
20568 | echo X"$as_dir" | |
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 | done |
20575 | test ! -n "$as_dirs" || mkdir $as_dirs |
20576 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
20577 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
20578 | { (exit 1); exit 1; }; }; } |
20579 | |
20580 | ac_builddir=. |
20581 | |
20582 | if test "$ac_dir" != .; then |
20583 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
20584 | # A "../" for each directory in $ac_dir_suffix. |
20585 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
20586 | else |
20587 | ac_dir_suffix= ac_top_builddir= |
20588 | fi |
20589 | |
20590 | case $srcdir in |
20591 | .) # No --srcdir option. We are building in place. |
20592 | ac_srcdir=. |
20593 | if test -z "$ac_top_builddir"; then |
20594 | ac_top_srcdir=. |
20595 | else |
20596 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
20597 | fi ;; |
20598 | [\\/]* | ?:[\\/]* ) # Absolute path. |
20599 | ac_srcdir=$srcdir$ac_dir_suffix; |
20600 | ac_top_srcdir=$srcdir ;; |
20601 | *) # Relative path. |
20602 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
20603 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
20604 | esac |
20605 | |
20606 | # Do not use `cd foo && pwd` to compute absolute paths, because |
20607 | # the directories may not exist. |
20608 | case `pwd` in |
20609 | .) ac_abs_builddir="$ac_dir";; |
20610 | *) |
20611 | case "$ac_dir" in |
20612 | .) ac_abs_builddir=`pwd`;; |
20613 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
20614 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
20615 | esac;; |
20616 | esac |
20617 | case $ac_abs_builddir in |
20618 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
20619 | *) |
20620 | case ${ac_top_builddir}. in |
20621 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
20622 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
20623 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
20624 | esac;; |
20625 | esac |
20626 | case $ac_abs_builddir in |
20627 | .) ac_abs_srcdir=$ac_srcdir;; |
20628 | *) |
20629 | case $ac_srcdir in |
20630 | .) ac_abs_srcdir=$ac_abs_builddir;; |
20631 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
20632 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
20633 | esac;; |
20634 | esac |
20635 | case $ac_abs_builddir in |
20636 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
20637 | *) |
20638 | case $ac_top_srcdir in |
20639 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
20640 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
20641 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
20642 | esac;; |
20643 | esac |
20644 | |
20645 | |
20646 | case $INSTALL in |
20647 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
20648 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
20649 | esac |
20650 | |
20651 | if test x"$ac_file" != x-; then |
20652 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
20653 | echo "$as_me: creating $ac_file" >&6;} |
20654 | rm -f "$ac_file" |
20655 | fi |
20656 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
20657 | # use $as_me), people would be surprised to read: |
20658 | # /* config.h. Generated by config.status. */ |
20659 | if test x"$ac_file" = x-; then |
20660 | configure_input= |
20661 | else |
20662 | configure_input="$ac_file. " |
20663 | fi |
20664 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
20665 | sed 's,.*/,,'` by configure." |
20666 | |
20667 | # First look for the input files in the build tree, otherwise in the |
20668 | # src tree. |
20669 | ac_file_inputs=`IFS=: |
20670 | for f in $ac_file_in; do |
20671 | case $f in |
20672 | -) echo $tmp/stdin ;; |
20673 | [\\/$]*) |
20674 | # Absolute (can't be DOS-style, as IFS=:) |
20675 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
20676 | echo "$as_me: error: cannot find input file: $f" >&2;} |
20677 | { (exit 1); exit 1; }; } |
20678 | echo "$f";; |
20679 | *) # Relative |
20680 | if test -f "$f"; then |
20681 | # Build tree |
20682 | echo "$f" |
20683 | elif test -f "$srcdir/$f"; then |
20684 | # Source tree |
20685 | echo "$srcdir/$f" |
20686 | else |
20687 | # /dev/null tree |
20688 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
20689 | echo "$as_me: error: cannot find input file: $f" >&2;} |
20690 | { (exit 1); exit 1; }; } |
20691 | fi;; |
20692 | esac |
20693 | done` || { (exit 1); exit 1; } |
20694 | _ACEOF |
20695 | cat >>$CONFIG_STATUS <<_ACEOF |
20696 | sed "$ac_vpsub |
20697 | $extrasub |
20698 | _ACEOF |
20699 | cat >>$CONFIG_STATUS <<\_ACEOF |
20700 | :t |
20701 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
20702 | s,@configure_input@,$configure_input,;t t |
20703 | s,@srcdir@,$ac_srcdir,;t t |
20704 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
20705 | s,@top_srcdir@,$ac_top_srcdir,;t t |
20706 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
20707 | s,@builddir@,$ac_builddir,;t t |
20708 | s,@abs_builddir@,$ac_abs_builddir,;t t |
20709 | s,@top_builddir@,$ac_top_builddir,;t t |
20710 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
20711 | s,@INSTALL@,$ac_INSTALL,;t t |
20712 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
20713 | rm -f $tmp/stdin |
20714 | if test x"$ac_file" != x-; then |
20715 | mv $tmp/out $ac_file |
20716 | else |
20717 | cat $tmp/out |
20718 | rm -f $tmp/out |
20719 | fi |
20720 | |
20721 | done |
20722 | _ACEOF |
20723 | cat >>$CONFIG_STATUS <<\_ACEOF |
20724 | |
20725 | # |
20726 | # CONFIG_HEADER section. |
20727 | # |
20728 | |
20729 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
20730 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
20731 | # |
20732 | # ac_d sets the value in "#define NAME VALUE" lines. |
20733 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
20734 | ac_dB='[ ].*$,\1#\2' |
20735 | ac_dC=' ' |
20736 | ac_dD=',;t' |
20737 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
20738 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
20739 | ac_uB='$,\1#\2define\3' |
20740 | ac_uC=' ' |
20741 | ac_uD=',;t' |
20742 | |
20743 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
20744 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
20745 | case $ac_file in |
20746 | - | *:- | *:-:* ) # input from stdin |
20747 | cat >$tmp/stdin |
20748 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
20749 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
20750 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
20751 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
20752 | * ) ac_file_in=$ac_file.in ;; |
20753 | esac |
20754 | |
20755 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
20756 | echo "$as_me: creating $ac_file" >&6;} |
20757 | |
20758 | # First look for the input files in the build tree, otherwise in the |
20759 | # src tree. |
20760 | ac_file_inputs=`IFS=: |
20761 | for f in $ac_file_in; do |
20762 | case $f in |
20763 | -) echo $tmp/stdin ;; |
20764 | [\\/$]*) |
20765 | # Absolute (can't be DOS-style, as IFS=:) |
20766 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
20767 | echo "$as_me: error: cannot find input file: $f" >&2;} |
20768 | { (exit 1); exit 1; }; } |
20769 | # Do quote $f, to prevent DOS paths from being IFS'd. |
20770 | echo "$f";; |
20771 | *) # Relative |
20772 | if test -f "$f"; then |
20773 | # Build tree |
20774 | echo "$f" |
20775 | elif test -f "$srcdir/$f"; then |
20776 | # Source tree |
20777 | echo "$srcdir/$f" |
20778 | else |
20779 | # /dev/null tree |
20780 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
20781 | echo "$as_me: error: cannot find input file: $f" >&2;} |
20782 | { (exit 1); exit 1; }; } |
20783 | fi;; |
20784 | esac |
20785 | done` || { (exit 1); exit 1; } |
20786 | # Remove the trailing spaces. |
20787 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
20788 | |
20789 | _ACEOF |
20790 | |
20791 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
20792 | # `conftest.undefs', that substitutes the proper values into |
20793 | # config.h.in to produce config.h. The first handles `#define' |
20794 | # templates, and the second `#undef' templates. |
20795 | # And first: Protect against being on the right side of a sed subst in |
20796 | # config.status. Protect against being in an unquoted here document |
20797 | # in config.status. |
20798 | rm -f conftest.defines conftest.undefs |
20799 | # Using a here document instead of a string reduces the quoting nightmare. |
20800 | # Putting comments in sed scripts is not portable. |
20801 | # |
20802 | # `end' is used to avoid that the second main sed command (meant for |
20803 | # 0-ary CPP macros) applies to n-ary macro definitions. |
20804 | # See the Autoconf documentation for `clear'. |
20805 | cat >confdef2sed.sed <<\_ACEOF |
20806 | s/[\\&,]/\\&/g |
20807 | s,[\\$`],\\&,g |
20808 | t clear |
20809 | : clear |
20810 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
20811 | t end |
20812 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
20813 | : end |
20814 | _ACEOF |
20815 | # If some macros were called several times there might be several times |
20816 | # the same #defines, which is useless. Nevertheless, we may not want to |
20817 | # sort them, since we want the *last* AC-DEFINE to be honored. |
20818 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
20819 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
20820 | rm -f confdef2sed.sed |
20821 | |
20822 | # This sed command replaces #undef with comments. This is necessary, for |
20823 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
20824 | # on some systems where configure will not decide to define it. |
20825 | cat >>conftest.undefs <<\_ACEOF |
20826 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
20827 | _ACEOF |
20828 | |
20829 | # Break up conftest.defines because some shells have a limit on the size |
20830 | # of here documents, and old seds have small limits too (100 cmds). |
20831 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
20832 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
20833 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
20834 | echo ' :' >>$CONFIG_STATUS |
20835 | rm -f conftest.tail |
20836 | while grep . conftest.defines >/dev/null |
20837 | do |
20838 | # Write a limited-size here document to $tmp/defines.sed. |
20839 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
20840 | # Speed up: don't consider the non `#define' lines. |
20841 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
20842 | # Work around the forget-to-reset-the-flag bug. |
20843 | echo 't clr' >>$CONFIG_STATUS |
20844 | echo ': clr' >>$CONFIG_STATUS |
20845 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
20846 | echo 'CEOF |
20847 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
20848 | rm -f $tmp/in |
20849 | mv $tmp/out $tmp/in |
20850 | ' >>$CONFIG_STATUS |
20851 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
20852 | rm -f conftest.defines |
20853 | mv conftest.tail conftest.defines |
20854 | done |
20855 | rm -f conftest.defines |
20856 | echo ' fi # grep' >>$CONFIG_STATUS |
20857 | echo >>$CONFIG_STATUS |
20858 | |
20859 | # Break up conftest.undefs because some shells have a limit on the size |
20860 | # of here documents, and old seds have small limits too (100 cmds). |
20861 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
20862 | rm -f conftest.tail |
20863 | while grep . conftest.undefs >/dev/null |
20864 | do |
20865 | # Write a limited-size here document to $tmp/undefs.sed. |
20866 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
20867 | # Speed up: don't consider the non `#undef' |
20868 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
20869 | # Work around the forget-to-reset-the-flag bug. |
20870 | echo 't clr' >>$CONFIG_STATUS |
20871 | echo ': clr' >>$CONFIG_STATUS |
20872 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
20873 | echo 'CEOF |
20874 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
20875 | rm -f $tmp/in |
20876 | mv $tmp/out $tmp/in |
20877 | ' >>$CONFIG_STATUS |
20878 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
20879 | rm -f conftest.undefs |
20880 | mv conftest.tail conftest.undefs |
20881 | done |
20882 | rm -f conftest.undefs |
20883 | |
20884 | cat >>$CONFIG_STATUS <<\_ACEOF |
20885 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
20886 | # use $as_me), people would be surprised to read: |
20887 | # /* config.h. Generated by config.status. */ |
20888 | if test x"$ac_file" = x-; then |
20889 | echo "/* Generated by configure. */" >$tmp/config.h |
20890 | else |
20891 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
20892 | fi |
20893 | cat $tmp/in >>$tmp/config.h |
20894 | rm -f $tmp/in |
20895 | if test x"$ac_file" != x-; then |
20896 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
20897 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
20898 | echo "$as_me: $ac_file is unchanged" >&6;} |
20899 | else |
20900 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
20901 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20902 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
20903 | X"$ac_file" : 'X\(//\)$' \| \ |
20904 | X"$ac_file" : 'X\(/\)' \| \ |
20905 | . : '\(.\)' 2>/dev/null || |
20906 | echo X"$ac_file" | |
20907 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20908 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20909 | /^X\(\/\/\)$/{ s//\1/; q; } |
20910 | /^X\(\/\).*/{ s//\1/; q; } |
20911 | s/.*/./; q'` |
20912 | { if $as_mkdir_p; then |
20913 | mkdir -p "$ac_dir" |
20914 | else |
20915 | as_dir="$ac_dir" |
20916 | as_dirs= |
20917 | while test ! -d "$as_dir"; do |
20918 | as_dirs="$as_dir $as_dirs" |
20919 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
20920 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20921 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
20922 | X"$as_dir" : 'X\(//\)$' \| \ |
20923 | X"$as_dir" : 'X\(/\)' \| \ |
20924 | . : '\(.\)' 2>/dev/null || |
20925 | echo X"$as_dir" | |
20926 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20927 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20928 | /^X\(\/\/\)$/{ s//\1/; q; } |
20929 | /^X\(\/\).*/{ s//\1/; q; } |
20930 | s/.*/./; q'` |
20931 | done |
20932 | test ! -n "$as_dirs" || mkdir $as_dirs |
20933 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
20934 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
20935 | { (exit 1); exit 1; }; }; } |
20936 | |
20937 | rm -f $ac_file |
20938 | mv $tmp/config.h $ac_file |
20939 | fi |
20940 | else |
20941 | cat $tmp/config.h |
20942 | rm -f $tmp/config.h |
20943 | fi |
20944 | # Compute $ac_file's index in $config_headers. |
20945 | _am_stamp_count=1 |
20946 | for _am_header in $config_headers :; do |
20947 | case $_am_header in |
20948 | $ac_file | $ac_file:* ) |
20949 | break ;; |
20950 | * ) |
20951 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
20952 | esac |
20953 | done |
20954 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
20955 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20956 | X$ac_file : 'X\(//\)[^/]' \| \ |
20957 | X$ac_file : 'X\(//\)$' \| \ |
20958 | X$ac_file : 'X\(/\)' \| \ |
20959 | . : '\(.\)' 2>/dev/null || |
20960 | echo X$ac_file | |
20961 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20962 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20963 | /^X\(\/\/\)$/{ s//\1/; q; } |
20964 | /^X\(\/\).*/{ s//\1/; q; } |
20965 | s/.*/./; q'`/stamp-h$_am_stamp_count |
20966 | done |
20967 | _ACEOF |
20968 | cat >>$CONFIG_STATUS <<\_ACEOF |
20969 | |
20970 | # |
20971 | # CONFIG_COMMANDS section. |
20972 | # |
20973 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
20974 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
20975 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
20976 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
20977 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20978 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
20979 | X"$ac_dest" : 'X\(//\)$' \| \ |
20980 | X"$ac_dest" : 'X\(/\)' \| \ |
20981 | . : '\(.\)' 2>/dev/null || |
20982 | echo X"$ac_dest" | |
20983 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20984 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20985 | /^X\(\/\/\)$/{ s//\1/; q; } |
20986 | /^X\(\/\).*/{ s//\1/; q; } |
20987 | s/.*/./; q'` |
20988 | { if $as_mkdir_p; then |
20989 | mkdir -p "$ac_dir" |
20990 | else |
20991 | as_dir="$ac_dir" |
20992 | as_dirs= |
20993 | while test ! -d "$as_dir"; do |
20994 | as_dirs="$as_dir $as_dirs" |
20995 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
20996 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20997 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
20998 | X"$as_dir" : 'X\(//\)$' \| \ |
20999 | X"$as_dir" : 'X\(/\)' \| \ |
21000 | . : '\(.\)' 2>/dev/null || |
21001 | echo X"$as_dir" | |
21002 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
21003 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
21004 | /^X\(\/\/\)$/{ s//\1/; q; } |
21005 | /^X\(\/\).*/{ s//\1/; q; } |
21006 | s/.*/./; q'` |
21007 | done |
21008 | test ! -n "$as_dirs" || mkdir $as_dirs |
21009 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
21010 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
21011 | { (exit 1); exit 1; }; }; } |
21012 | |
21013 | ac_builddir=. |
21014 | |
21015 | if test "$ac_dir" != .; then |
21016 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
21017 | # A "../" for each directory in $ac_dir_suffix. |
21018 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
21019 | else |
21020 | ac_dir_suffix= ac_top_builddir= |
21021 | fi |
21022 | |
21023 | case $srcdir in |
21024 | .) # No --srcdir option. We are building in place. |
21025 | ac_srcdir=. |
21026 | if test -z "$ac_top_builddir"; then |
21027 | ac_top_srcdir=. |
21028 | else |
21029 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
21030 | fi ;; |
21031 | [\\/]* | ?:[\\/]* ) # Absolute path. |
21032 | ac_srcdir=$srcdir$ac_dir_suffix; |
21033 | ac_top_srcdir=$srcdir ;; |
21034 | *) # Relative path. |
21035 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
21036 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
21037 | esac |
21038 | |
21039 | # Do not use `cd foo && pwd` to compute absolute paths, because |
21040 | # the directories may not exist. |
21041 | case `pwd` in |
21042 | .) ac_abs_builddir="$ac_dir";; |
21043 | *) |
21044 | case "$ac_dir" in |
21045 | .) ac_abs_builddir=`pwd`;; |
21046 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
21047 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
21048 | esac;; |
21049 | esac |
21050 | case $ac_abs_builddir in |
21051 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
21052 | *) |
21053 | case ${ac_top_builddir}. in |
21054 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
21055 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
21056 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
21057 | esac;; |
21058 | esac |
21059 | case $ac_abs_builddir in |
21060 | .) ac_abs_srcdir=$ac_srcdir;; |
21061 | *) |
21062 | case $ac_srcdir in |
21063 | .) ac_abs_srcdir=$ac_abs_builddir;; |
21064 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
21065 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
21066 | esac;; |
21067 | esac |
21068 | case $ac_abs_builddir in |
21069 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
21070 | *) |
21071 | case $ac_top_srcdir in |
21072 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
21073 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
21074 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
21075 | esac;; |
21076 | esac |
21077 | |
21078 | |
21079 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
21080 | echo "$as_me: executing $ac_dest commands" >&6;} |
21081 | case $ac_dest in |
21082 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
21083 | # Strip MF so we end up with the name of the file. |
21084 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
21085 | # Check whether this is an Automake generated Makefile or not. |
21086 | # We used to match only the files named `Makefile.in', but |
21087 | # some people rename them; so instead we look at the file content. |
21088 | # Grep'ing the first line is not enough: some people post-process |
21089 | # each Makefile.in and add a new line on top of each file to say so. |
21090 | # So let's grep whole file. |
21091 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
21092 | dirpart=`(dirname "$mf") 2>/dev/null || |
21093 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21094 | X"$mf" : 'X\(//\)[^/]' \| \ |
21095 | X"$mf" : 'X\(//\)$' \| \ |
21096 | X"$mf" : 'X\(/\)' \| \ |
21097 | . : '\(.\)' 2>/dev/null || |
21098 | echo X"$mf" | |
21099 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
21100 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
21101 | /^X\(\/\/\)$/{ s//\1/; q; } |
21102 | /^X\(\/\).*/{ s//\1/; q; } |
21103 | s/.*/./; q'` |
21104 | else |
21105 | continue |
21106 | fi |
21107 | # Extract the definition of DEPDIR, am__include, and am__quote |
21108 | # from the Makefile without running `make'. |
21109 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
21110 | test -z "$DEPDIR" && continue |
21111 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
21112 | test -z "am__include" && continue |
21113 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
21114 | # When using ansi2knr, U may be empty or an underscore; expand it |
21115 | U=`sed -n 's/^U = //p' < "$mf"` |
21116 | # Find all dependency output files, they are included files with |
21117 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
21118 | # simplest approach to changing $(DEPDIR) to its actual value in the |
21119 | # expansion. |
21120 | for file in `sed -n " |
21121 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
21122 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
21123 | # Make sure the directory exists. |
21124 | test -f "$dirpart/$file" && continue |
21125 | fdir=`(dirname "$file") 2>/dev/null || |
21126 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21127 | X"$file" : 'X\(//\)[^/]' \| \ |
21128 | X"$file" : 'X\(//\)$' \| \ |
21129 | X"$file" : 'X\(/\)' \| \ |
21130 | . : '\(.\)' 2>/dev/null || |
21131 | echo X"$file" | |
21132 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
21133 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
21134 | /^X\(\/\/\)$/{ s//\1/; q; } |
21135 | /^X\(\/\).*/{ s//\1/; q; } |
21136 | s/.*/./; q'` |
21137 | { if $as_mkdir_p; then |
21138 | mkdir -p $dirpart/$fdir |
21139 | else |
21140 | as_dir=$dirpart/$fdir |
21141 | as_dirs= |
21142 | while test ! -d "$as_dir"; do |
21143 | as_dirs="$as_dir $as_dirs" |
21144 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
21145 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21146 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
21147 | X"$as_dir" : 'X\(//\)$' \| \ |
21148 | X"$as_dir" : 'X\(/\)' \| \ |
21149 | . : '\(.\)' 2>/dev/null || |
21150 | echo X"$as_dir" | |
21151 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
21152 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
21153 | /^X\(\/\/\)$/{ s//\1/; q; } |
21154 | /^X\(\/\).*/{ s//\1/; q; } |
21155 | s/.*/./; q'` |
21156 | done |
21157 | test ! -n "$as_dirs" || mkdir $as_dirs |
21158 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
21159 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
21160 | { (exit 1); exit 1; }; }; } |
21161 | |
21162 | # echo "creating $dirpart/$file" |
21163 | echo '# dummy' > "$dirpart/$file" |
21164 | done |
21165 | done |
21166 | ;; |
21167 | esac |
21168 | done |
21169 | _ACEOF |
21170 | |
21171 | cat >>$CONFIG_STATUS <<\_ACEOF |
21172 | |
21173 | { (exit 0); exit 0; } |
21174 | _ACEOF |
21175 | chmod +x $CONFIG_STATUS |
21176 | ac_clean_files=$ac_clean_files_save |
21177 | |
21178 | |
21179 | # configure is writing to config.log, and then calls config.status. |
21180 | # config.status does its own redirection, appending to config.log. |
21181 | # Unfortunately, on DOS this fails, as config.log is still kept open |
21182 | # by configure, so config.status won't be able to write to it; its |
21183 | # output is simply discarded. So we exec the FD to /dev/null, |
21184 | # effectively closing config.log, so it can be properly (re)opened and |
21185 | # appended to by config.status. When coming back to configure, we |
21186 | # need to make the FD available again. |
21187 | if test "$no_create" != yes; then |
21188 | ac_cs_success=: |
21189 | ac_config_status_args= |
21190 | test "$silent" = yes && |
21191 | ac_config_status_args="$ac_config_status_args --quiet" |
21192 | exec 5>/dev/null |
21193 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
21194 | exec 5>>config.log |
21195 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
21196 | # would make configure fail if this is the last instruction. |
21197 | $ac_cs_success || { (exit 1); exit 1; } |
21198 | fi |
21199 | |