d9898ee8 |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
3 | # Generated by GNU Autoconf 2.59 for liblock 0.60. |
4 | # |
5 | # Report bugs to <courier-users@lists.sourceforge.net>. |
6 | # |
7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
8 | # This configure script is free software; the Free Software Foundation |
9 | # gives unlimited permission to copy, distribute and modify it. |
10 | ## --------------------- ## |
11 | ## M4sh Initialization. ## |
12 | ## --------------------- ## |
13 | |
14 | # Be Bourne compatible |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh |
17 | NULLCMD=: |
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
19 | # is contrary to our usage. Disable this feature. |
20 | alias -g '${1+"$@"}'='"$@"' |
21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
22 | set -o posix |
23 | fi |
24 | DUALCASE=1; export DUALCASE # for MKS sh |
25 | |
26 | # Support unset when possible. |
27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
28 | as_unset=unset |
29 | else |
30 | as_unset=false |
31 | fi |
32 | |
33 | |
34 | # Work around bugs in pre-3.0 UWIN ksh. |
35 | $as_unset ENV MAIL MAILPATH |
36 | PS1='$ ' |
37 | PS2='> ' |
38 | PS4='+ ' |
39 | |
40 | # NLS nuisances. |
41 | for as_var in \ |
42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
44 | LC_TELEPHONE LC_TIME |
45 | do |
46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
47 | eval $as_var=C; export $as_var |
48 | else |
49 | $as_unset $as_var |
50 | fi |
51 | done |
52 | |
53 | # Required to use basename. |
54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
55 | as_expr=expr |
56 | else |
57 | as_expr=false |
58 | fi |
59 | |
60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
61 | as_basename=basename |
62 | else |
63 | as_basename=false |
64 | fi |
65 | |
66 | |
67 | # Name of the executable. |
68 | as_me=`$as_basename "$0" || |
69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
70 | X"$0" : 'X\(//\)$' \| \ |
71 | X"$0" : 'X\(/\)$' \| \ |
72 | . : '\(.\)' 2>/dev/null || |
73 | echo X/"$0" | |
74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
76 | /^X\/\(\/\).*/{ s//\1/; q; } |
77 | s/.*/./; q'` |
78 | |
79 | |
80 | # PATH needs CR, and LINENO needs CR and PATH. |
81 | # Avoid depending upon Character Ranges. |
82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
85 | as_cr_digits='0123456789' |
86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
87 | |
88 | # The user is always right. |
89 | if test "${PATH_SEPARATOR+set}" != set; then |
90 | echo "#! /bin/sh" >conf$$.sh |
91 | echo "exit 0" >>conf$$.sh |
92 | chmod +x conf$$.sh |
93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
94 | PATH_SEPARATOR=';' |
95 | else |
96 | PATH_SEPARATOR=: |
97 | fi |
98 | rm -f conf$$.sh |
99 | fi |
100 | |
101 | |
102 | as_lineno_1=$LINENO |
103 | as_lineno_2=$LINENO |
104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
107 | # Find who we are. Look in the path if we contain no path at all |
108 | # relative or not. |
109 | case $0 in |
110 | *[\\/]* ) as_myself=$0 ;; |
111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
112 | for as_dir in $PATH |
113 | do |
114 | IFS=$as_save_IFS |
115 | test -z "$as_dir" && as_dir=. |
116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
117 | done |
118 | |
119 | ;; |
120 | esac |
121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
122 | # in which case we are not to be found in the path. |
123 | if test "x$as_myself" = x; then |
124 | as_myself=$0 |
125 | fi |
126 | if test ! -f "$as_myself"; then |
127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
128 | { (exit 1); exit 1; }; } |
129 | fi |
130 | case $CONFIG_SHELL in |
131 | '') |
132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
134 | do |
135 | IFS=$as_save_IFS |
136 | test -z "$as_dir" && as_dir=. |
137 | for as_base in sh bash ksh sh5; do |
138 | case $as_dir in |
139 | /*) |
140 | if ("$as_dir/$as_base" -c ' |
141 | as_lineno_1=$LINENO |
142 | as_lineno_2=$LINENO |
143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
148 | CONFIG_SHELL=$as_dir/$as_base |
149 | export CONFIG_SHELL |
150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
151 | fi;; |
152 | esac |
153 | done |
154 | done |
155 | ;; |
156 | esac |
157 | |
158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
159 | # uniformly replaced by the line number. The first 'sed' inserts a |
160 | # line-number line before each line; the second 'sed' does the real |
161 | # work. The second script uses 'N' to pair each line-number line |
162 | # with the numbered line, and appends trailing '-' during |
163 | # substitution so that $LINENO is not a special case at line end. |
164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
166 | sed '=' <$as_myself | |
167 | sed ' |
168 | N |
169 | s,$,-, |
170 | : loop |
171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
172 | t loop |
173 | s,-$,, |
174 | s,^['$as_cr_digits']*\n,, |
175 | ' >$as_me.lineno && |
176 | chmod +x $as_me.lineno || |
177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
178 | { (exit 1); exit 1; }; } |
179 | |
180 | # Don't try to exec as it changes $[0], causing all sort of problems |
181 | # (the dirname of $[0] is not the place where we might find the |
182 | # original and so on. Autoconf is especially sensible to this). |
183 | . ./$as_me.lineno |
184 | # Exit status is that of the last command. |
185 | exit |
186 | } |
187 | |
188 | |
189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
190 | *c*,-n*) ECHO_N= ECHO_C=' |
191 | ' ECHO_T=' ' ;; |
192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
194 | esac |
195 | |
196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
197 | as_expr=expr |
198 | else |
199 | as_expr=false |
200 | fi |
201 | |
202 | rm -f conf$$ conf$$.exe conf$$.file |
203 | echo >conf$$.file |
204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
205 | # We could just check for DJGPP; but this test a) works b) is more generic |
206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
207 | if test -f conf$$.exe; then |
208 | # Don't use ln at all; we don't have any links |
209 | as_ln_s='cp -p' |
210 | else |
211 | as_ln_s='ln -s' |
212 | fi |
213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
214 | as_ln_s=ln |
215 | else |
216 | as_ln_s='cp -p' |
217 | fi |
218 | rm -f conf$$ conf$$.exe conf$$.file |
219 | |
220 | if mkdir -p . 2>/dev/null; then |
221 | as_mkdir_p=: |
222 | else |
223 | test -d ./-p && rmdir ./-p |
224 | as_mkdir_p=false |
225 | fi |
226 | |
227 | as_executable_p="test -f" |
228 | |
229 | # Sed expression to map a string onto a valid CPP name. |
230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
231 | |
232 | # Sed expression to map a string onto a valid variable name. |
233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
234 | |
235 | |
236 | # IFS |
237 | # We need space, tab and new line, in precisely that order. |
238 | as_nl=' |
239 | ' |
240 | IFS=" $as_nl" |
241 | |
242 | # CDPATH. |
243 | $as_unset CDPATH |
244 | |
245 | |
246 | |
247 | # Check that we are running under the correct shell. |
248 | SHELL=${CONFIG_SHELL-/bin/sh} |
249 | |
250 | case X$ECHO in |
251 | X*--fallback-echo) |
252 | # Remove one level of quotation (which was required for Make). |
253 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
254 | ;; |
255 | esac |
256 | |
257 | echo=${ECHO-echo} |
258 | if test "X$1" = X--no-reexec; then |
259 | # Discard the --no-reexec flag, and continue. |
260 | shift |
261 | elif test "X$1" = X--fallback-echo; then |
262 | # Avoid inline document here, it may be left over |
263 | : |
264 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
265 | # Yippee, $echo works! |
266 | : |
267 | else |
268 | # Restart under the correct shell. |
269 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
270 | fi |
271 | |
272 | if test "X$1" = X--fallback-echo; then |
273 | # used as fallback echo |
274 | shift |
275 | cat <<EOF |
276 | $* |
277 | EOF |
278 | exit 0 |
279 | fi |
280 | |
281 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
282 | # if CDPATH is set. |
283 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
284 | |
285 | if test -z "$ECHO"; then |
286 | if test "X${echo_test_string+set}" != Xset; then |
287 | # find a string as large as possible, as long as the shell can cope with it |
288 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
289 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
290 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
291 | echo_test_string=`eval $cmd` && |
292 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
293 | then |
294 | break |
295 | fi |
296 | done |
297 | fi |
298 | |
299 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
300 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
301 | test "X$echo_testing_string" = "X$echo_test_string"; then |
302 | : |
303 | else |
304 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
305 | # backslashes. This makes it impossible to quote backslashes using |
306 | # echo "$something" | sed 's/\\/\\\\/g' |
307 | # |
308 | # So, first we look for a working echo in the user's PATH. |
309 | |
310 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
311 | for dir in $PATH /usr/ucb; do |
312 | IFS="$lt_save_ifs" |
313 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
314 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
315 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
316 | test "X$echo_testing_string" = "X$echo_test_string"; then |
317 | echo="$dir/echo" |
318 | break |
319 | fi |
320 | done |
321 | IFS="$lt_save_ifs" |
322 | |
323 | if test "X$echo" = Xecho; then |
324 | # We didn't find a better echo, so look for alternatives. |
325 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
326 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
327 | test "X$echo_testing_string" = "X$echo_test_string"; then |
328 | # This shell has a builtin print -r that does the trick. |
329 | echo='print -r' |
330 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
331 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
332 | # If we have ksh, try running configure again with it. |
333 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
334 | export ORIGINAL_CONFIG_SHELL |
335 | CONFIG_SHELL=/bin/ksh |
336 | export CONFIG_SHELL |
337 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
338 | else |
339 | # Try using printf. |
340 | echo='printf %s\n' |
341 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
342 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
343 | test "X$echo_testing_string" = "X$echo_test_string"; then |
344 | # Cool, printf works |
345 | : |
346 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
347 | test "X$echo_testing_string" = 'X\t' && |
348 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
349 | test "X$echo_testing_string" = "X$echo_test_string"; then |
350 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
351 | export CONFIG_SHELL |
352 | SHELL="$CONFIG_SHELL" |
353 | export SHELL |
354 | echo="$CONFIG_SHELL $0 --fallback-echo" |
355 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
356 | test "X$echo_testing_string" = 'X\t' && |
357 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
358 | test "X$echo_testing_string" = "X$echo_test_string"; then |
359 | echo="$CONFIG_SHELL $0 --fallback-echo" |
360 | else |
361 | # maybe with a smaller string... |
362 | prev=: |
363 | |
364 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
365 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
366 | then |
367 | break |
368 | fi |
369 | prev="$cmd" |
370 | done |
371 | |
372 | if test "$prev" != 'sed 50q "$0"'; then |
373 | echo_test_string=`eval $prev` |
374 | export echo_test_string |
375 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
376 | else |
377 | # Oops. We lost completely, so just stick with echo. |
378 | echo=echo |
379 | fi |
380 | fi |
381 | fi |
382 | fi |
383 | fi |
384 | fi |
385 | |
386 | # Copy echo and quote the copy suitably for passing to libtool from |
387 | # the Makefile, instead of quoting the original, which is used later. |
388 | ECHO=$echo |
389 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
390 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
391 | fi |
392 | |
393 | |
394 | |
395 | |
396 | tagnames=${tagnames+${tagnames},}CXX |
397 | |
398 | tagnames=${tagnames+${tagnames},}F77 |
399 | |
400 | # Name of the host. |
401 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
402 | # so uname gets run too. |
403 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
404 | |
405 | exec 6>&1 |
406 | |
407 | # |
408 | # Initializations. |
409 | # |
410 | ac_default_prefix=/usr/local |
411 | ac_config_libobj_dir=. |
412 | cross_compiling=no |
413 | subdirs= |
414 | MFLAGS= |
415 | MAKEFLAGS= |
416 | SHELL=${CONFIG_SHELL-/bin/sh} |
417 | |
418 | # Maximum number of lines to put in a shell here document. |
419 | # This variable seems obsolete. It should probably be removed, and |
420 | # only ac_max_sed_lines should be used. |
421 | : ${ac_max_here_lines=38} |
422 | |
423 | # Identity of this package. |
424 | PACKAGE_NAME='liblock' |
425 | PACKAGE_TARNAME='liblock' |
426 | PACKAGE_VERSION='0.60' |
427 | PACKAGE_STRING='liblock 0.60' |
428 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' |
429 | |
430 | ac_unique_file="liblock.h" |
431 | # Factoring default headers for most tests. |
432 | ac_includes_default="\ |
433 | #include <stdio.h> |
434 | #if HAVE_SYS_TYPES_H |
435 | # include <sys/types.h> |
436 | #endif |
437 | #if HAVE_SYS_STAT_H |
438 | # include <sys/stat.h> |
439 | #endif |
440 | #if STDC_HEADERS |
441 | # include <stdlib.h> |
442 | # include <stddef.h> |
443 | #else |
444 | # if HAVE_STDLIB_H |
445 | # include <stdlib.h> |
446 | # endif |
447 | #endif |
448 | #if HAVE_STRING_H |
449 | # if !STDC_HEADERS && HAVE_MEMORY_H |
450 | # include <memory.h> |
451 | # endif |
452 | # include <string.h> |
453 | #endif |
454 | #if HAVE_STRINGS_H |
455 | # include <strings.h> |
456 | #endif |
457 | #if HAVE_INTTYPES_H |
458 | # include <inttypes.h> |
459 | #else |
460 | # if HAVE_STDINT_H |
461 | # include <stdint.h> |
462 | # endif |
463 | #endif |
464 | #if HAVE_UNISTD_H |
465 | # include <unistd.h> |
466 | #endif" |
467 | |
468 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL USE_FCNTL_TRUE USE_FCNTL_FALSE USE_FLOCK_TRUE USE_FLOCK_FALSE USE_LOCKF_TRUE USE_LOCKF_FALSE 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 liblock 0.60 to adapt to many kinds of systems. |
958 | |
959 | Usage: $0 [OPTION]... [VAR=VALUE]... |
960 | |
961 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
962 | VAR=VALUE. See below for descriptions of some of the useful variables. |
963 | |
964 | Defaults for the options are specified in brackets. |
965 | |
966 | Configuration: |
967 | -h, --help display this help and exit |
968 | --help=short display options specific to this package |
969 | --help=recursive display the short help of all the included packages |
970 | -V, --version display version information and exit |
971 | -q, --quiet, --silent do not print \`checking...' messages |
972 | --cache-file=FILE cache test results in FILE [disabled] |
973 | -C, --config-cache alias for \`--cache-file=config.cache' |
974 | -n, --no-create do not create output files |
975 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
976 | |
977 | _ACEOF |
978 | |
979 | cat <<_ACEOF |
980 | Installation directories: |
981 | --prefix=PREFIX install architecture-independent files in PREFIX |
982 | [$ac_default_prefix] |
983 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
984 | [PREFIX] |
985 | |
986 | By default, \`make install' will install all the files in |
987 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
988 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
989 | for instance \`--prefix=\$HOME'. |
990 | |
991 | For better control, use the options below. |
992 | |
993 | Fine tuning of the installation directories: |
994 | --bindir=DIR user executables [EPREFIX/bin] |
995 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
996 | --libexecdir=DIR program executables [EPREFIX/libexec] |
997 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
998 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
999 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1000 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1001 | --libdir=DIR object code libraries [EPREFIX/lib] |
1002 | --includedir=DIR C header files [PREFIX/include] |
1003 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
1004 | --infodir=DIR info documentation [PREFIX/info] |
1005 | --mandir=DIR man documentation [PREFIX/man] |
1006 | _ACEOF |
1007 | |
1008 | cat <<\_ACEOF |
1009 | |
1010 | Program names: |
1011 | --program-prefix=PREFIX prepend PREFIX to installed program names |
1012 | --program-suffix=SUFFIX append SUFFIX to installed program names |
1013 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1014 | |
1015 | System types: |
1016 | --build=BUILD configure for building on BUILD [guessed] |
1017 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1018 | _ACEOF |
1019 | fi |
1020 | |
1021 | if test -n "$ac_init_help"; then |
1022 | case $ac_init_help in |
1023 | short | recursive ) echo "Configuration of liblock 0.60:";; |
1024 | esac |
1025 | cat <<\_ACEOF |
1026 | |
1027 | Optional Features: |
1028 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1029 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1030 | --disable-dependency-tracking speeds up one-time build |
1031 | --enable-dependency-tracking do not reject slow dependency extractors |
1032 | --enable-shared[=PKGS] |
1033 | build shared libraries [default=yes] |
1034 | --enable-static[=PKGS] |
1035 | build static libraries [default=yes] |
1036 | --enable-fast-install[=PKGS] |
1037 | optimize for fast installation [default=yes] |
1038 | --disable-libtool-lock avoid locking (might break parallel builds) |
1039 | |
1040 | Optional Packages: |
1041 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1042 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1043 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1044 | --with-pic try to use only PIC/non-PIC objects [default=use |
1045 | both] |
1046 | --with-tags[=TAGS] |
1047 | include additional configurations [automatic] |
1048 | |
1049 | |
1050 | Some influential environment variables: |
1051 | CC C compiler command |
1052 | CFLAGS C compiler flags |
1053 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1054 | nonstandard directory <lib dir> |
1055 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
1056 | headers in a nonstandard directory <include dir> |
1057 | CPP C preprocessor |
1058 | CXX C++ compiler command |
1059 | CXXFLAGS C++ compiler flags |
1060 | CXXCPP C++ preprocessor |
1061 | F77 Fortran 77 compiler command |
1062 | FFLAGS Fortran 77 compiler flags |
1063 | |
1064 | Use these variables to override the choices made by `configure' or to help |
1065 | it to find libraries and programs with nonstandard names/locations. |
1066 | |
1067 | Report bugs to <courier-users@lists.sourceforge.net>. |
1068 | _ACEOF |
1069 | fi |
1070 | |
1071 | if test "$ac_init_help" = "recursive"; then |
1072 | # If there are subdirs, report their specific --help. |
1073 | ac_popdir=`pwd` |
1074 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1075 | test -d $ac_dir || continue |
1076 | ac_builddir=. |
1077 | |
1078 | if test "$ac_dir" != .; then |
1079 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
1080 | # A "../" for each directory in $ac_dir_suffix. |
1081 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
1082 | else |
1083 | ac_dir_suffix= ac_top_builddir= |
1084 | fi |
1085 | |
1086 | case $srcdir in |
1087 | .) # No --srcdir option. We are building in place. |
1088 | ac_srcdir=. |
1089 | if test -z "$ac_top_builddir"; then |
1090 | ac_top_srcdir=. |
1091 | else |
1092 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
1093 | fi ;; |
1094 | [\\/]* | ?:[\\/]* ) # Absolute path. |
1095 | ac_srcdir=$srcdir$ac_dir_suffix; |
1096 | ac_top_srcdir=$srcdir ;; |
1097 | *) # Relative path. |
1098 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
1099 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
1100 | esac |
1101 | |
1102 | # Do not use `cd foo && pwd` to compute absolute paths, because |
1103 | # the directories may not exist. |
1104 | case `pwd` in |
1105 | .) ac_abs_builddir="$ac_dir";; |
1106 | *) |
1107 | case "$ac_dir" in |
1108 | .) ac_abs_builddir=`pwd`;; |
1109 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
1110 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
1111 | esac;; |
1112 | esac |
1113 | case $ac_abs_builddir in |
1114 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
1115 | *) |
1116 | case ${ac_top_builddir}. in |
1117 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
1118 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
1119 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
1120 | esac;; |
1121 | esac |
1122 | case $ac_abs_builddir in |
1123 | .) ac_abs_srcdir=$ac_srcdir;; |
1124 | *) |
1125 | case $ac_srcdir in |
1126 | .) ac_abs_srcdir=$ac_abs_builddir;; |
1127 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
1128 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
1129 | esac;; |
1130 | esac |
1131 | case $ac_abs_builddir in |
1132 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
1133 | *) |
1134 | case $ac_top_srcdir in |
1135 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
1136 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
1137 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
1138 | esac;; |
1139 | esac |
1140 | |
1141 | cd $ac_dir |
1142 | # Check for guested configure; otherwise get Cygnus style configure. |
1143 | if test -f $ac_srcdir/configure.gnu; then |
1144 | echo |
1145 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
1146 | elif test -f $ac_srcdir/configure; then |
1147 | echo |
1148 | $SHELL $ac_srcdir/configure --help=recursive |
1149 | elif test -f $ac_srcdir/configure.ac || |
1150 | test -f $ac_srcdir/configure.in; then |
1151 | echo |
1152 | $ac_configure --help |
1153 | else |
1154 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1155 | fi |
1156 | cd $ac_popdir |
1157 | done |
1158 | fi |
1159 | |
1160 | test -n "$ac_init_help" && exit 0 |
1161 | if $ac_init_version; then |
1162 | cat <<\_ACEOF |
1163 | liblock configure 0.60 |
1164 | generated by GNU Autoconf 2.59 |
1165 | |
1166 | Copyright (C) 2003 Free Software Foundation, Inc. |
1167 | This configure script is free software; the Free Software Foundation |
1168 | gives unlimited permission to copy, distribute and modify it. |
1169 | _ACEOF |
1170 | exit 0 |
1171 | fi |
1172 | exec 5>config.log |
1173 | cat >&5 <<_ACEOF |
1174 | This file contains any messages produced by compilers while |
1175 | running configure, to aid debugging if configure makes a mistake. |
1176 | |
1177 | It was created by liblock $as_me 0.60, which was |
1178 | generated by GNU Autoconf 2.59. Invocation command line was |
1179 | |
1180 | $ $0 $@ |
1181 | |
1182 | _ACEOF |
1183 | { |
1184 | cat <<_ASUNAME |
1185 | ## --------- ## |
1186 | ## Platform. ## |
1187 | ## --------- ## |
1188 | |
1189 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1190 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1191 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1192 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1193 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1194 | |
1195 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1196 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1197 | |
1198 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1199 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1200 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1201 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
1202 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1203 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1204 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1205 | |
1206 | _ASUNAME |
1207 | |
1208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1209 | for as_dir in $PATH |
1210 | do |
1211 | IFS=$as_save_IFS |
1212 | test -z "$as_dir" && as_dir=. |
1213 | echo "PATH: $as_dir" |
1214 | done |
1215 | |
1216 | } >&5 |
1217 | |
1218 | cat >&5 <<_ACEOF |
1219 | |
1220 | |
1221 | ## ----------- ## |
1222 | ## Core tests. ## |
1223 | ## ----------- ## |
1224 | |
1225 | _ACEOF |
1226 | |
1227 | |
1228 | # Keep a trace of the command line. |
1229 | # Strip out --no-create and --no-recursion so they do not pile up. |
1230 | # Strip out --silent because we don't want to record it for future runs. |
1231 | # Also quote any args containing shell meta-characters. |
1232 | # Make two passes to allow for proper duplicate-argument suppression. |
1233 | ac_configure_args= |
1234 | ac_configure_args0= |
1235 | ac_configure_args1= |
1236 | ac_sep= |
1237 | ac_must_keep_next=false |
1238 | for ac_pass in 1 2 |
1239 | do |
1240 | for ac_arg |
1241 | do |
1242 | case $ac_arg in |
1243 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1244 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1245 | | -silent | --silent | --silen | --sile | --sil) |
1246 | continue ;; |
1247 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1248 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1249 | esac |
1250 | case $ac_pass in |
1251 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1252 | 2) |
1253 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1254 | if test $ac_must_keep_next = true; then |
1255 | ac_must_keep_next=false # Got value, back to normal. |
1256 | else |
1257 | case $ac_arg in |
1258 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
1259 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1260 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1261 | | -with-* | --with-* | -without-* | --without-* | --x) |
1262 | case "$ac_configure_args0 " in |
1263 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1264 | esac |
1265 | ;; |
1266 | -* ) ac_must_keep_next=true ;; |
1267 | esac |
1268 | fi |
1269 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1270 | # Get rid of the leading space. |
1271 | ac_sep=" " |
1272 | ;; |
1273 | esac |
1274 | done |
1275 | done |
1276 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1277 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1278 | |
1279 | # When interrupted or exit'd, cleanup temporary files, and complete |
1280 | # config.log. We remove comments because anyway the quotes in there |
1281 | # would cause problems or look ugly. |
1282 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1283 | # such as our DU 5.0 friend, will then `close' the trap. |
1284 | trap 'exit_status=$? |
1285 | # Save into config.log some information that might help in debugging. |
1286 | { |
1287 | echo |
1288 | |
1289 | cat <<\_ASBOX |
1290 | ## ---------------- ## |
1291 | ## Cache variables. ## |
1292 | ## ---------------- ## |
1293 | _ASBOX |
1294 | echo |
1295 | # The following way of writing the cache mishandles newlines in values, |
1296 | { |
1297 | (set) 2>&1 | |
1298 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1299 | *ac_space=\ *) |
1300 | sed -n \ |
1301 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1302 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
1303 | ;; |
1304 | *) |
1305 | sed -n \ |
1306 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
1307 | ;; |
1308 | esac; |
1309 | } |
1310 | echo |
1311 | |
1312 | cat <<\_ASBOX |
1313 | ## ----------------- ## |
1314 | ## Output variables. ## |
1315 | ## ----------------- ## |
1316 | _ASBOX |
1317 | echo |
1318 | for ac_var in $ac_subst_vars |
1319 | do |
1320 | eval ac_val=$`echo $ac_var` |
1321 | echo "$ac_var='"'"'$ac_val'"'"'" |
1322 | done | sort |
1323 | echo |
1324 | |
1325 | if test -n "$ac_subst_files"; then |
1326 | cat <<\_ASBOX |
1327 | ## ------------- ## |
1328 | ## Output files. ## |
1329 | ## ------------- ## |
1330 | _ASBOX |
1331 | echo |
1332 | for ac_var in $ac_subst_files |
1333 | do |
1334 | eval ac_val=$`echo $ac_var` |
1335 | echo "$ac_var='"'"'$ac_val'"'"'" |
1336 | done | sort |
1337 | echo |
1338 | fi |
1339 | |
1340 | if test -s confdefs.h; then |
1341 | cat <<\_ASBOX |
1342 | ## ----------- ## |
1343 | ## confdefs.h. ## |
1344 | ## ----------- ## |
1345 | _ASBOX |
1346 | echo |
1347 | sed "/^$/d" confdefs.h | sort |
1348 | echo |
1349 | fi |
1350 | test "$ac_signal" != 0 && |
1351 | echo "$as_me: caught signal $ac_signal" |
1352 | echo "$as_me: exit $exit_status" |
1353 | } >&5 |
1354 | rm -f core *.core && |
1355 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1356 | exit $exit_status |
1357 | ' 0 |
1358 | for ac_signal in 1 2 13 15; do |
1359 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1360 | done |
1361 | ac_signal=0 |
1362 | |
1363 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
1364 | rm -rf conftest* confdefs.h |
1365 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
1366 | echo >confdefs.h |
1367 | |
1368 | # Predefined preprocessor variables. |
1369 | |
1370 | cat >>confdefs.h <<_ACEOF |
1371 | #define PACKAGE_NAME "$PACKAGE_NAME" |
1372 | _ACEOF |
1373 | |
1374 | |
1375 | cat >>confdefs.h <<_ACEOF |
1376 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1377 | _ACEOF |
1378 | |
1379 | |
1380 | cat >>confdefs.h <<_ACEOF |
1381 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
1382 | _ACEOF |
1383 | |
1384 | |
1385 | cat >>confdefs.h <<_ACEOF |
1386 | #define PACKAGE_STRING "$PACKAGE_STRING" |
1387 | _ACEOF |
1388 | |
1389 | |
1390 | cat >>confdefs.h <<_ACEOF |
1391 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1392 | _ACEOF |
1393 | |
1394 | |
1395 | # Let the site file select an alternate cache file if it wants to. |
1396 | # Prefer explicitly selected file to automatically selected ones. |
1397 | if test -z "$CONFIG_SITE"; then |
1398 | if test "x$prefix" != xNONE; then |
1399 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
1400 | else |
1401 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
1402 | fi |
1403 | fi |
1404 | for ac_site_file in $CONFIG_SITE; do |
1405 | if test -r "$ac_site_file"; then |
1406 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1407 | echo "$as_me: loading site script $ac_site_file" >&6;} |
1408 | sed 's/^/| /' "$ac_site_file" >&5 |
1409 | . "$ac_site_file" |
1410 | fi |
1411 | done |
1412 | |
1413 | if test -r "$cache_file"; then |
1414 | # Some versions of bash will fail to source /dev/null (special |
1415 | # files actually), so we avoid doing that. |
1416 | if test -f "$cache_file"; then |
1417 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1418 | echo "$as_me: loading cache $cache_file" >&6;} |
1419 | case $cache_file in |
1420 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
1421 | *) . ./$cache_file;; |
1422 | esac |
1423 | fi |
1424 | else |
1425 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1426 | echo "$as_me: creating cache $cache_file" >&6;} |
1427 | >$cache_file |
1428 | fi |
1429 | |
1430 | # Check that the precious variables saved in the cache have kept the same |
1431 | # value. |
1432 | ac_cache_corrupted=false |
1433 | for ac_var in `(set) 2>&1 | |
1434 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
1435 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1436 | eval ac_new_set=\$ac_env_${ac_var}_set |
1437 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1438 | eval ac_new_val="\$ac_env_${ac_var}_value" |
1439 | case $ac_old_set,$ac_new_set in |
1440 | set,) |
1441 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1442 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1443 | ac_cache_corrupted=: ;; |
1444 | ,set) |
1445 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1446 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1447 | ac_cache_corrupted=: ;; |
1448 | ,);; |
1449 | *) |
1450 | if test "x$ac_old_val" != "x$ac_new_val"; then |
1451 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1452 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1453 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1454 | echo "$as_me: former value: $ac_old_val" >&2;} |
1455 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1456 | echo "$as_me: current value: $ac_new_val" >&2;} |
1457 | ac_cache_corrupted=: |
1458 | fi;; |
1459 | esac |
1460 | # Pass precious variables to config.status. |
1461 | if test "$ac_new_set" = set; then |
1462 | case $ac_new_val in |
1463 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1464 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1465 | *) ac_arg=$ac_var=$ac_new_val ;; |
1466 | esac |
1467 | case " $ac_configure_args " in |
1468 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1469 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1470 | esac |
1471 | fi |
1472 | done |
1473 | if $ac_cache_corrupted; then |
1474 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1475 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1476 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1477 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1478 | { (exit 1); exit 1; }; } |
1479 | fi |
1480 | |
1481 | ac_ext=c |
1482 | ac_cpp='$CPP $CPPFLAGS' |
1483 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1484 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1485 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1486 | |
1487 | |
1488 | |
1489 | |
1490 | |
1491 | |
1492 | |
1493 | |
1494 | |
1495 | |
1496 | |
1497 | |
1498 | |
1499 | |
1500 | |
1501 | |
1502 | |
1503 | |
1504 | |
1505 | |
1506 | |
1507 | |
1508 | |
1509 | |
1510 | |
1511 | |
1512 | |
1513 | |
1514 | >confdefs.h # Kill PACKAGE_ macros |
1515 | |
1516 | |
1517 | ac_config_headers="$ac_config_headers config.h" |
1518 | |
1519 | am__api_version="1.9" |
1520 | ac_aux_dir= |
1521 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1522 | if test -f $ac_dir/install-sh; then |
1523 | ac_aux_dir=$ac_dir |
1524 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1525 | break |
1526 | elif test -f $ac_dir/install.sh; then |
1527 | ac_aux_dir=$ac_dir |
1528 | ac_install_sh="$ac_aux_dir/install.sh -c" |
1529 | break |
1530 | elif test -f $ac_dir/shtool; then |
1531 | ac_aux_dir=$ac_dir |
1532 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1533 | break |
1534 | fi |
1535 | done |
1536 | if test -z "$ac_aux_dir"; then |
1537 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1538 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1539 | { (exit 1); exit 1; }; } |
1540 | fi |
1541 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1542 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1543 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1544 | |
1545 | # Find a good install program. We prefer a C program (faster), |
1546 | # so one script is as good as another. But avoid the broken or |
1547 | # incompatible versions: |
1548 | # SysV /etc/install, /usr/sbin/install |
1549 | # SunOS /usr/etc/install |
1550 | # IRIX /sbin/install |
1551 | # AIX /bin/install |
1552 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
1553 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1554 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
1555 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
1556 | # OS/2's system install, which has a completely different semantic |
1557 | # ./install, which can be erroneously created by make from ./install.sh. |
1558 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1559 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
1560 | if test -z "$INSTALL"; then |
1561 | if test "${ac_cv_path_install+set}" = set; then |
1562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1563 | else |
1564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1565 | for as_dir in $PATH |
1566 | do |
1567 | IFS=$as_save_IFS |
1568 | test -z "$as_dir" && as_dir=. |
1569 | # Account for people who put trailing slashes in PATH elements. |
1570 | case $as_dir/ in |
1571 | ./ | .// | /cC/* | \ |
1572 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
1573 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
1574 | /usr/ucb/* ) ;; |
1575 | *) |
1576 | # OSF1 and SCO ODT 3.0 have their own names for install. |
1577 | # Don't use installbsd from OSF since it installs stuff as root |
1578 | # by default. |
1579 | for ac_prog in ginstall scoinst install; do |
1580 | for ac_exec_ext in '' $ac_executable_extensions; do |
1581 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
1582 | if test $ac_prog = install && |
1583 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
1584 | # AIX install. It has an incompatible calling convention. |
1585 | : |
1586 | elif test $ac_prog = install && |
1587 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
1588 | # program-specific install script used by HP pwplus--don't use. |
1589 | : |
1590 | else |
1591 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
1592 | break 3 |
1593 | fi |
1594 | fi |
1595 | done |
1596 | done |
1597 | ;; |
1598 | esac |
1599 | done |
1600 | |
1601 | |
1602 | fi |
1603 | if test "${ac_cv_path_install+set}" = set; then |
1604 | INSTALL=$ac_cv_path_install |
1605 | else |
1606 | # As a last resort, use the slow shell script. We don't cache a |
1607 | # path for INSTALL within a source directory, because that will |
1608 | # break other packages using the cache if that directory is |
1609 | # removed, or if the path is relative. |
1610 | INSTALL=$ac_install_sh |
1611 | fi |
1612 | fi |
1613 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
1614 | echo "${ECHO_T}$INSTALL" >&6 |
1615 | |
1616 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
1617 | # It thinks the first close brace ends the variable substitution. |
1618 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
1619 | |
1620 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
1621 | |
1622 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
1623 | |
1624 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
1625 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
1626 | # Just in case |
1627 | sleep 1 |
1628 | echo timestamp > conftest.file |
1629 | # Do `set' in a subshell so we don't clobber the current shell's |
1630 | # arguments. Must try -L first in case configure is actually a |
1631 | # symlink; some systems play weird games with the mod time of symlinks |
1632 | # (eg FreeBSD returns the mod time of the symlink's containing |
1633 | # directory). |
1634 | if ( |
1635 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
1636 | if test "$*" = "X"; then |
1637 | # -L didn't work. |
1638 | set X `ls -t $srcdir/configure conftest.file` |
1639 | fi |
1640 | rm -f conftest.file |
1641 | if test "$*" != "X $srcdir/configure conftest.file" \ |
1642 | && test "$*" != "X conftest.file $srcdir/configure"; then |
1643 | |
1644 | # If neither matched, then we have a broken ls. This can happen |
1645 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
1646 | # broken ls alias from the environment. This has actually |
1647 | # happened. Such a system could not be considered "sane". |
1648 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
1649 | alias in your environment" >&5 |
1650 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
1651 | alias in your environment" >&2;} |
1652 | { (exit 1); exit 1; }; } |
1653 | fi |
1654 | |
1655 | test "$2" = conftest.file |
1656 | ) |
1657 | then |
1658 | # Ok. |
1659 | : |
1660 | else |
1661 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
1662 | Check your system clock" >&5 |
1663 | echo "$as_me: error: newly created file is older than distributed files! |
1664 | Check your system clock" >&2;} |
1665 | { (exit 1); exit 1; }; } |
1666 | fi |
1667 | echo "$as_me:$LINENO: result: yes" >&5 |
1668 | echo "${ECHO_T}yes" >&6 |
1669 | test "$program_prefix" != NONE && |
1670 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
1671 | # Use a double $ so make ignores it. |
1672 | test "$program_suffix" != NONE && |
1673 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
1674 | # Double any \ or $. echo might interpret backslashes. |
1675 | # By default was `s,x,x', remove it if useless. |
1676 | cat <<\_ACEOF >conftest.sed |
1677 | s/[\\$]/&&/g;s/;s,x,x,$// |
1678 | _ACEOF |
1679 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
1680 | rm conftest.sed |
1681 | |
1682 | # expand $ac_aux_dir to an absolute path |
1683 | am_aux_dir=`cd $ac_aux_dir && pwd` |
1684 | |
1685 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
1686 | # Use eval to expand $SHELL |
1687 | if eval "$MISSING --run true"; then |
1688 | am_missing_run="$MISSING --run " |
1689 | else |
1690 | am_missing_run= |
1691 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
1692 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
1693 | fi |
1694 | |
1695 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
1696 | # We used to keeping the `.' as first argument, in order to |
1697 | # allow $(mkdir_p) to be used without argument. As in |
1698 | # $(mkdir_p) $(somedir) |
1699 | # where $(somedir) is conditionally defined. However this is wrong |
1700 | # for two reasons: |
1701 | # 1. if the package is installed by a user who cannot write `.' |
1702 | # make install will fail, |
1703 | # 2. the above comment should most certainly read |
1704 | # $(mkdir_p) $(DESTDIR)$(somedir) |
1705 | # so it does not work when $(somedir) is undefined and |
1706 | # $(DESTDIR) is not. |
1707 | # To support the latter case, we have to write |
1708 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
1709 | # so the `.' trick is pointless. |
1710 | mkdir_p='mkdir -p --' |
1711 | else |
1712 | # On NextStep and OpenStep, the `mkdir' command does not |
1713 | # recognize any option. It will interpret all options as |
1714 | # directories to create, and then abort because `.' already |
1715 | # exists. |
1716 | for d in ./-p ./--version; |
1717 | do |
1718 | test -d $d && rmdir $d |
1719 | done |
1720 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
1721 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
1722 | mkdir_p='$(mkinstalldirs)' |
1723 | else |
1724 | mkdir_p='$(install_sh) -d' |
1725 | fi |
1726 | fi |
1727 | |
1728 | for ac_prog in gawk mawk nawk awk |
1729 | do |
1730 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1731 | set dummy $ac_prog; ac_word=$2 |
1732 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1733 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1734 | if test "${ac_cv_prog_AWK+set}" = set; then |
1735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1736 | else |
1737 | if test -n "$AWK"; then |
1738 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
1739 | else |
1740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1741 | for as_dir in $PATH |
1742 | do |
1743 | IFS=$as_save_IFS |
1744 | test -z "$as_dir" && as_dir=. |
1745 | for ac_exec_ext in '' $ac_executable_extensions; do |
1746 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1747 | ac_cv_prog_AWK="$ac_prog" |
1748 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1749 | break 2 |
1750 | fi |
1751 | done |
1752 | done |
1753 | |
1754 | fi |
1755 | fi |
1756 | AWK=$ac_cv_prog_AWK |
1757 | if test -n "$AWK"; then |
1758 | echo "$as_me:$LINENO: result: $AWK" >&5 |
1759 | echo "${ECHO_T}$AWK" >&6 |
1760 | else |
1761 | echo "$as_me:$LINENO: result: no" >&5 |
1762 | echo "${ECHO_T}no" >&6 |
1763 | fi |
1764 | |
1765 | test -n "$AWK" && break |
1766 | done |
1767 | |
1768 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1769 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
1770 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
1771 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
1772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1773 | else |
1774 | cat >conftest.make <<\_ACEOF |
1775 | all: |
1776 | @echo 'ac_maketemp="$(MAKE)"' |
1777 | _ACEOF |
1778 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
1779 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
1780 | if test -n "$ac_maketemp"; then |
1781 | eval ac_cv_prog_make_${ac_make}_set=yes |
1782 | else |
1783 | eval ac_cv_prog_make_${ac_make}_set=no |
1784 | fi |
1785 | rm -f conftest.make |
1786 | fi |
1787 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
1788 | echo "$as_me:$LINENO: result: yes" >&5 |
1789 | echo "${ECHO_T}yes" >&6 |
1790 | SET_MAKE= |
1791 | else |
1792 | echo "$as_me:$LINENO: result: no" >&5 |
1793 | echo "${ECHO_T}no" >&6 |
1794 | SET_MAKE="MAKE=${MAKE-make}" |
1795 | fi |
1796 | |
1797 | rm -rf .tst 2>/dev/null |
1798 | mkdir .tst 2>/dev/null |
1799 | if test -d .tst; then |
1800 | am__leading_dot=. |
1801 | else |
1802 | am__leading_dot=_ |
1803 | fi |
1804 | rmdir .tst 2>/dev/null |
1805 | |
1806 | # test to see if srcdir already configured |
1807 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
1808 | test -f $srcdir/config.status; then |
1809 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
1810 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
1811 | { (exit 1); exit 1; }; } |
1812 | fi |
1813 | |
1814 | # test whether we have cygpath |
1815 | if test -z "$CYGPATH_W"; then |
1816 | if (cygpath --version) >/dev/null 2>/dev/null; then |
1817 | CYGPATH_W='cygpath -w' |
1818 | else |
1819 | CYGPATH_W=echo |
1820 | fi |
1821 | fi |
1822 | |
1823 | |
1824 | # Define the identity of the package. |
1825 | PACKAGE='liblock' |
1826 | VERSION='0.60' |
1827 | |
1828 | |
1829 | # Some tools Automake needs. |
1830 | |
1831 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
1832 | |
1833 | |
1834 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
1835 | |
1836 | |
1837 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
1838 | |
1839 | |
1840 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
1841 | |
1842 | |
1843 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
1844 | |
1845 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
1846 | |
1847 | # Installed binaries are usually stripped using `strip' when the user |
1848 | # run `make install-strip'. However `strip' might not be the right |
1849 | # tool to use in cross-compilation environments, therefore Automake |
1850 | # will honor the `STRIP' environment variable to overrule this program. |
1851 | if test "$cross_compiling" != no; then |
1852 | if test -n "$ac_tool_prefix"; then |
1853 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
1854 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
1855 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1856 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1857 | if test "${ac_cv_prog_STRIP+set}" = set; then |
1858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1859 | else |
1860 | if test -n "$STRIP"; then |
1861 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
1862 | else |
1863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1864 | for as_dir in $PATH |
1865 | do |
1866 | IFS=$as_save_IFS |
1867 | test -z "$as_dir" && as_dir=. |
1868 | for ac_exec_ext in '' $ac_executable_extensions; do |
1869 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1870 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
1871 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1872 | break 2 |
1873 | fi |
1874 | done |
1875 | done |
1876 | |
1877 | fi |
1878 | fi |
1879 | STRIP=$ac_cv_prog_STRIP |
1880 | if test -n "$STRIP"; then |
1881 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
1882 | echo "${ECHO_T}$STRIP" >&6 |
1883 | else |
1884 | echo "$as_me:$LINENO: result: no" >&5 |
1885 | echo "${ECHO_T}no" >&6 |
1886 | fi |
1887 | |
1888 | fi |
1889 | if test -z "$ac_cv_prog_STRIP"; then |
1890 | ac_ct_STRIP=$STRIP |
1891 | # Extract the first word of "strip", so it can be a program name with args. |
1892 | set dummy strip; ac_word=$2 |
1893 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1894 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1895 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
1896 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1897 | else |
1898 | if test -n "$ac_ct_STRIP"; then |
1899 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
1900 | else |
1901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1902 | for as_dir in $PATH |
1903 | do |
1904 | IFS=$as_save_IFS |
1905 | test -z "$as_dir" && as_dir=. |
1906 | for ac_exec_ext in '' $ac_executable_extensions; do |
1907 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1908 | ac_cv_prog_ac_ct_STRIP="strip" |
1909 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1910 | break 2 |
1911 | fi |
1912 | done |
1913 | done |
1914 | |
1915 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
1916 | fi |
1917 | fi |
1918 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
1919 | if test -n "$ac_ct_STRIP"; then |
1920 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
1921 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
1922 | else |
1923 | echo "$as_me:$LINENO: result: no" >&5 |
1924 | echo "${ECHO_T}no" >&6 |
1925 | fi |
1926 | |
1927 | STRIP=$ac_ct_STRIP |
1928 | else |
1929 | STRIP="$ac_cv_prog_STRIP" |
1930 | fi |
1931 | |
1932 | fi |
1933 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
1934 | |
1935 | # We need awk for the "check" target. The system "awk" is bad on |
1936 | # some platforms. |
1937 | # Always define AMTAR for backward compatibility. |
1938 | |
1939 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
1940 | |
1941 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
1942 | |
1943 | |
1944 | |
1945 | |
1946 | |
1947 | |
1948 | for ac_prog in gawk mawk nawk awk |
1949 | do |
1950 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1951 | set dummy $ac_prog; ac_word=$2 |
1952 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1953 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1954 | if test "${ac_cv_prog_AWK+set}" = set; then |
1955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1956 | else |
1957 | if test -n "$AWK"; then |
1958 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
1959 | else |
1960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1961 | for as_dir in $PATH |
1962 | do |
1963 | IFS=$as_save_IFS |
1964 | test -z "$as_dir" && as_dir=. |
1965 | for ac_exec_ext in '' $ac_executable_extensions; do |
1966 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1967 | ac_cv_prog_AWK="$ac_prog" |
1968 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1969 | break 2 |
1970 | fi |
1971 | done |
1972 | done |
1973 | |
1974 | fi |
1975 | fi |
1976 | AWK=$ac_cv_prog_AWK |
1977 | if test -n "$AWK"; then |
1978 | echo "$as_me:$LINENO: result: $AWK" >&5 |
1979 | echo "${ECHO_T}$AWK" >&6 |
1980 | else |
1981 | echo "$as_me:$LINENO: result: no" >&5 |
1982 | echo "${ECHO_T}no" >&6 |
1983 | fi |
1984 | |
1985 | test -n "$AWK" && break |
1986 | done |
1987 | |
1988 | ac_ext=c |
1989 | ac_cpp='$CPP $CPPFLAGS' |
1990 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1991 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1992 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1993 | if test -n "$ac_tool_prefix"; then |
1994 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
1995 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
1996 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1997 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1998 | if test "${ac_cv_prog_CC+set}" = set; then |
1999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2000 | else |
2001 | if test -n "$CC"; then |
2002 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2003 | else |
2004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2005 | for as_dir in $PATH |
2006 | do |
2007 | IFS=$as_save_IFS |
2008 | test -z "$as_dir" && as_dir=. |
2009 | for ac_exec_ext in '' $ac_executable_extensions; do |
2010 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2011 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2012 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2013 | break 2 |
2014 | fi |
2015 | done |
2016 | done |
2017 | |
2018 | fi |
2019 | fi |
2020 | CC=$ac_cv_prog_CC |
2021 | if test -n "$CC"; then |
2022 | echo "$as_me:$LINENO: result: $CC" >&5 |
2023 | echo "${ECHO_T}$CC" >&6 |
2024 | else |
2025 | echo "$as_me:$LINENO: result: no" >&5 |
2026 | echo "${ECHO_T}no" >&6 |
2027 | fi |
2028 | |
2029 | fi |
2030 | if test -z "$ac_cv_prog_CC"; then |
2031 | ac_ct_CC=$CC |
2032 | # Extract the first word of "gcc", so it can be a program name with args. |
2033 | set dummy gcc; ac_word=$2 |
2034 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2035 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2036 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2038 | else |
2039 | if test -n "$ac_ct_CC"; then |
2040 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2041 | else |
2042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2043 | for as_dir in $PATH |
2044 | do |
2045 | IFS=$as_save_IFS |
2046 | test -z "$as_dir" && as_dir=. |
2047 | for ac_exec_ext in '' $ac_executable_extensions; do |
2048 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2049 | ac_cv_prog_ac_ct_CC="gcc" |
2050 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2051 | break 2 |
2052 | fi |
2053 | done |
2054 | done |
2055 | |
2056 | fi |
2057 | fi |
2058 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2059 | if test -n "$ac_ct_CC"; then |
2060 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2061 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2062 | else |
2063 | echo "$as_me:$LINENO: result: no" >&5 |
2064 | echo "${ECHO_T}no" >&6 |
2065 | fi |
2066 | |
2067 | CC=$ac_ct_CC |
2068 | else |
2069 | CC="$ac_cv_prog_CC" |
2070 | fi |
2071 | |
2072 | if test -z "$CC"; then |
2073 | if test -n "$ac_tool_prefix"; then |
2074 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
2075 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2076 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2077 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2078 | if test "${ac_cv_prog_CC+set}" = set; then |
2079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2080 | else |
2081 | if test -n "$CC"; then |
2082 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2083 | else |
2084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2085 | for as_dir in $PATH |
2086 | do |
2087 | IFS=$as_save_IFS |
2088 | test -z "$as_dir" && as_dir=. |
2089 | for ac_exec_ext in '' $ac_executable_extensions; do |
2090 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2091 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2092 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2093 | break 2 |
2094 | fi |
2095 | done |
2096 | done |
2097 | |
2098 | fi |
2099 | fi |
2100 | CC=$ac_cv_prog_CC |
2101 | if test -n "$CC"; then |
2102 | echo "$as_me:$LINENO: result: $CC" >&5 |
2103 | echo "${ECHO_T}$CC" >&6 |
2104 | else |
2105 | echo "$as_me:$LINENO: result: no" >&5 |
2106 | echo "${ECHO_T}no" >&6 |
2107 | fi |
2108 | |
2109 | fi |
2110 | if test -z "$ac_cv_prog_CC"; then |
2111 | ac_ct_CC=$CC |
2112 | # Extract the first word of "cc", so it can be a program name with args. |
2113 | set dummy cc; ac_word=$2 |
2114 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2115 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2116 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2118 | else |
2119 | if test -n "$ac_ct_CC"; then |
2120 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2121 | else |
2122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2123 | for as_dir in $PATH |
2124 | do |
2125 | IFS=$as_save_IFS |
2126 | test -z "$as_dir" && as_dir=. |
2127 | for ac_exec_ext in '' $ac_executable_extensions; do |
2128 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2129 | ac_cv_prog_ac_ct_CC="cc" |
2130 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2131 | break 2 |
2132 | fi |
2133 | done |
2134 | done |
2135 | |
2136 | fi |
2137 | fi |
2138 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2139 | if test -n "$ac_ct_CC"; then |
2140 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2141 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2142 | else |
2143 | echo "$as_me:$LINENO: result: no" >&5 |
2144 | echo "${ECHO_T}no" >&6 |
2145 | fi |
2146 | |
2147 | CC=$ac_ct_CC |
2148 | else |
2149 | CC="$ac_cv_prog_CC" |
2150 | fi |
2151 | |
2152 | fi |
2153 | if test -z "$CC"; then |
2154 | # Extract the first word of "cc", so it can be a program name with args. |
2155 | set dummy cc; ac_word=$2 |
2156 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2157 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2158 | if test "${ac_cv_prog_CC+set}" = set; then |
2159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2160 | else |
2161 | if test -n "$CC"; then |
2162 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2163 | else |
2164 | ac_prog_rejected=no |
2165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2166 | for as_dir in $PATH |
2167 | do |
2168 | IFS=$as_save_IFS |
2169 | test -z "$as_dir" && as_dir=. |
2170 | for ac_exec_ext in '' $ac_executable_extensions; do |
2171 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2172 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2173 | ac_prog_rejected=yes |
2174 | continue |
2175 | fi |
2176 | ac_cv_prog_CC="cc" |
2177 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2178 | break 2 |
2179 | fi |
2180 | done |
2181 | done |
2182 | |
2183 | if test $ac_prog_rejected = yes; then |
2184 | # We found a bogon in the path, so make sure we never use it. |
2185 | set dummy $ac_cv_prog_CC |
2186 | shift |
2187 | if test $# != 0; then |
2188 | # We chose a different compiler from the bogus one. |
2189 | # However, it has the same basename, so the bogon will be chosen |
2190 | # first if we set CC to just the basename; use the full file name. |
2191 | shift |
2192 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
2193 | fi |
2194 | fi |
2195 | fi |
2196 | fi |
2197 | CC=$ac_cv_prog_CC |
2198 | if test -n "$CC"; then |
2199 | echo "$as_me:$LINENO: result: $CC" >&5 |
2200 | echo "${ECHO_T}$CC" >&6 |
2201 | else |
2202 | echo "$as_me:$LINENO: result: no" >&5 |
2203 | echo "${ECHO_T}no" >&6 |
2204 | fi |
2205 | |
2206 | fi |
2207 | if test -z "$CC"; then |
2208 | if test -n "$ac_tool_prefix"; then |
2209 | for ac_prog in cl |
2210 | do |
2211 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2212 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2213 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2214 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2215 | if test "${ac_cv_prog_CC+set}" = set; then |
2216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2217 | else |
2218 | if test -n "$CC"; then |
2219 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2220 | else |
2221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2222 | for as_dir in $PATH |
2223 | do |
2224 | IFS=$as_save_IFS |
2225 | test -z "$as_dir" && as_dir=. |
2226 | for ac_exec_ext in '' $ac_executable_extensions; do |
2227 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2228 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2229 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2230 | break 2 |
2231 | fi |
2232 | done |
2233 | done |
2234 | |
2235 | fi |
2236 | fi |
2237 | CC=$ac_cv_prog_CC |
2238 | if test -n "$CC"; then |
2239 | echo "$as_me:$LINENO: result: $CC" >&5 |
2240 | echo "${ECHO_T}$CC" >&6 |
2241 | else |
2242 | echo "$as_me:$LINENO: result: no" >&5 |
2243 | echo "${ECHO_T}no" >&6 |
2244 | fi |
2245 | |
2246 | test -n "$CC" && break |
2247 | done |
2248 | fi |
2249 | if test -z "$CC"; then |
2250 | ac_ct_CC=$CC |
2251 | for ac_prog in cl |
2252 | do |
2253 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2254 | set dummy $ac_prog; ac_word=$2 |
2255 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2256 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2257 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2259 | else |
2260 | if test -n "$ac_ct_CC"; then |
2261 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2262 | else |
2263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2264 | for as_dir in $PATH |
2265 | do |
2266 | IFS=$as_save_IFS |
2267 | test -z "$as_dir" && as_dir=. |
2268 | for ac_exec_ext in '' $ac_executable_extensions; do |
2269 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2270 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2271 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2272 | break 2 |
2273 | fi |
2274 | done |
2275 | done |
2276 | |
2277 | fi |
2278 | fi |
2279 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2280 | if test -n "$ac_ct_CC"; then |
2281 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2282 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2283 | else |
2284 | echo "$as_me:$LINENO: result: no" >&5 |
2285 | echo "${ECHO_T}no" >&6 |
2286 | fi |
2287 | |
2288 | test -n "$ac_ct_CC" && break |
2289 | done |
2290 | |
2291 | CC=$ac_ct_CC |
2292 | fi |
2293 | |
2294 | fi |
2295 | |
2296 | |
2297 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2298 | See \`config.log' for more details." >&5 |
2299 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
2300 | See \`config.log' for more details." >&2;} |
2301 | { (exit 1); exit 1; }; } |
2302 | |
2303 | # Provide some information about the compiler. |
2304 | echo "$as_me:$LINENO:" \ |
2305 | "checking for C compiler version" >&5 |
2306 | ac_compiler=`set X $ac_compile; echo $2` |
2307 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
2308 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
2309 | ac_status=$? |
2310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2311 | (exit $ac_status); } |
2312 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
2313 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
2314 | ac_status=$? |
2315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2316 | (exit $ac_status); } |
2317 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
2318 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
2319 | ac_status=$? |
2320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2321 | (exit $ac_status); } |
2322 | |
2323 | cat >conftest.$ac_ext <<_ACEOF |
2324 | /* confdefs.h. */ |
2325 | _ACEOF |
2326 | cat confdefs.h >>conftest.$ac_ext |
2327 | cat >>conftest.$ac_ext <<_ACEOF |
2328 | /* end confdefs.h. */ |
2329 | |
2330 | int |
2331 | main () |
2332 | { |
2333 | |
2334 | ; |
2335 | return 0; |
2336 | } |
2337 | _ACEOF |
2338 | ac_clean_files_save=$ac_clean_files |
2339 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2340 | # Try to create an executable without -o first, disregard a.out. |
2341 | # It will help us diagnose broken compilers, and finding out an intuition |
2342 | # of exeext. |
2343 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2344 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
2345 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2346 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
2347 | (eval $ac_link_default) 2>&5 |
2348 | ac_status=$? |
2349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2350 | (exit $ac_status); }; then |
2351 | # Find the output, starting from the most likely. This scheme is |
2352 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
2353 | # resort. |
2354 | |
2355 | # Be careful to initialize this variable, since it used to be cached. |
2356 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
2357 | ac_cv_exeext= |
2358 | # b.out is created by i960 compilers. |
2359 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
2360 | do |
2361 | test -f "$ac_file" || continue |
2362 | case $ac_file in |
2363 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
2364 | ;; |
2365 | conftest.$ac_ext ) |
2366 | # This is the source file. |
2367 | ;; |
2368 | [ab].out ) |
2369 | # We found the default executable, but exeext='' is most |
2370 | # certainly right. |
2371 | break;; |
2372 | *.* ) |
2373 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2374 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
2375 | # but it would be cool to find out if it's true. Does anybody |
2376 | # maintain Libtool? --akim. |
2377 | export ac_cv_exeext |
2378 | break;; |
2379 | * ) |
2380 | break;; |
2381 | esac |
2382 | done |
2383 | else |
2384 | echo "$as_me: failed program was:" >&5 |
2385 | sed 's/^/| /' conftest.$ac_ext >&5 |
2386 | |
2387 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2388 | See \`config.log' for more details." >&5 |
2389 | echo "$as_me: error: C compiler cannot create executables |
2390 | See \`config.log' for more details." >&2;} |
2391 | { (exit 77); exit 77; }; } |
2392 | fi |
2393 | |
2394 | ac_exeext=$ac_cv_exeext |
2395 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
2396 | echo "${ECHO_T}$ac_file" >&6 |
2397 | |
2398 | # Check the compiler produces executables we can run. If not, either |
2399 | # the compiler is broken, or we cross compile. |
2400 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2401 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
2402 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2403 | # If not cross compiling, check that we can run a simple program. |
2404 | if test "$cross_compiling" != yes; then |
2405 | if { ac_try='./$ac_file' |
2406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2407 | (eval $ac_try) 2>&5 |
2408 | ac_status=$? |
2409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2410 | (exit $ac_status); }; }; then |
2411 | cross_compiling=no |
2412 | else |
2413 | if test "$cross_compiling" = maybe; then |
2414 | cross_compiling=yes |
2415 | else |
2416 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
2417 | If you meant to cross compile, use \`--host'. |
2418 | See \`config.log' for more details." >&5 |
2419 | echo "$as_me: error: cannot run C compiled programs. |
2420 | If you meant to cross compile, use \`--host'. |
2421 | See \`config.log' for more details." >&2;} |
2422 | { (exit 1); exit 1; }; } |
2423 | fi |
2424 | fi |
2425 | fi |
2426 | echo "$as_me:$LINENO: result: yes" >&5 |
2427 | echo "${ECHO_T}yes" >&6 |
2428 | |
2429 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2430 | ac_clean_files=$ac_clean_files_save |
2431 | # Check the compiler produces executables we can run. If not, either |
2432 | # the compiler is broken, or we cross compile. |
2433 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2434 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
2435 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2436 | echo "${ECHO_T}$cross_compiling" >&6 |
2437 | |
2438 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2439 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
2440 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2441 | (eval $ac_link) 2>&5 |
2442 | ac_status=$? |
2443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2444 | (exit $ac_status); }; then |
2445 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2446 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2447 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
2448 | # `rm'. |
2449 | for ac_file in conftest.exe conftest conftest.*; do |
2450 | test -f "$ac_file" || continue |
2451 | case $ac_file in |
2452 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
2453 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2454 | export ac_cv_exeext |
2455 | break;; |
2456 | * ) break;; |
2457 | esac |
2458 | done |
2459 | else |
2460 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2461 | See \`config.log' for more details." >&5 |
2462 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2463 | See \`config.log' for more details." >&2;} |
2464 | { (exit 1); exit 1; }; } |
2465 | fi |
2466 | |
2467 | rm -f conftest$ac_cv_exeext |
2468 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2469 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
2470 | |
2471 | rm -f conftest.$ac_ext |
2472 | EXEEXT=$ac_cv_exeext |
2473 | ac_exeext=$EXEEXT |
2474 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2475 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
2476 | if test "${ac_cv_objext+set}" = set; then |
2477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2478 | else |
2479 | cat >conftest.$ac_ext <<_ACEOF |
2480 | /* confdefs.h. */ |
2481 | _ACEOF |
2482 | cat confdefs.h >>conftest.$ac_ext |
2483 | cat >>conftest.$ac_ext <<_ACEOF |
2484 | /* end confdefs.h. */ |
2485 | |
2486 | int |
2487 | main () |
2488 | { |
2489 | |
2490 | ; |
2491 | return 0; |
2492 | } |
2493 | _ACEOF |
2494 | rm -f conftest.o conftest.obj |
2495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2496 | (eval $ac_compile) 2>&5 |
2497 | ac_status=$? |
2498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2499 | (exit $ac_status); }; then |
2500 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
2501 | case $ac_file in |
2502 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
2503 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2504 | break;; |
2505 | esac |
2506 | done |
2507 | else |
2508 | echo "$as_me: failed program was:" >&5 |
2509 | sed 's/^/| /' conftest.$ac_ext >&5 |
2510 | |
2511 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2512 | See \`config.log' for more details." >&5 |
2513 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
2514 | See \`config.log' for more details." >&2;} |
2515 | { (exit 1); exit 1; }; } |
2516 | fi |
2517 | |
2518 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2519 | fi |
2520 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2521 | echo "${ECHO_T}$ac_cv_objext" >&6 |
2522 | OBJEXT=$ac_cv_objext |
2523 | ac_objext=$OBJEXT |
2524 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2525 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
2526 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2528 | else |
2529 | cat >conftest.$ac_ext <<_ACEOF |
2530 | /* confdefs.h. */ |
2531 | _ACEOF |
2532 | cat confdefs.h >>conftest.$ac_ext |
2533 | cat >>conftest.$ac_ext <<_ACEOF |
2534 | /* end confdefs.h. */ |
2535 | |
2536 | int |
2537 | main () |
2538 | { |
2539 | #ifndef __GNUC__ |
2540 | choke me |
2541 | #endif |
2542 | |
2543 | ; |
2544 | return 0; |
2545 | } |
2546 | _ACEOF |
2547 | rm -f conftest.$ac_objext |
2548 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2549 | (eval $ac_compile) 2>conftest.er1 |
2550 | ac_status=$? |
2551 | grep -v '^ *+' conftest.er1 >conftest.err |
2552 | rm -f conftest.er1 |
2553 | cat conftest.err >&5 |
2554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2555 | (exit $ac_status); } && |
2556 | { ac_try='test -z "$ac_c_werror_flag" |
2557 | || test ! -s conftest.err' |
2558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2559 | (eval $ac_try) 2>&5 |
2560 | ac_status=$? |
2561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2562 | (exit $ac_status); }; } && |
2563 | { ac_try='test -s conftest.$ac_objext' |
2564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2565 | (eval $ac_try) 2>&5 |
2566 | ac_status=$? |
2567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2568 | (exit $ac_status); }; }; then |
2569 | ac_compiler_gnu=yes |
2570 | else |
2571 | echo "$as_me: failed program was:" >&5 |
2572 | sed 's/^/| /' conftest.$ac_ext >&5 |
2573 | |
2574 | ac_compiler_gnu=no |
2575 | fi |
2576 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2577 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2578 | |
2579 | fi |
2580 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2581 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
2582 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2583 | ac_test_CFLAGS=${CFLAGS+set} |
2584 | ac_save_CFLAGS=$CFLAGS |
2585 | CFLAGS="-g" |
2586 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2587 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
2588 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2590 | else |
2591 | cat >conftest.$ac_ext <<_ACEOF |
2592 | /* confdefs.h. */ |
2593 | _ACEOF |
2594 | cat confdefs.h >>conftest.$ac_ext |
2595 | cat >>conftest.$ac_ext <<_ACEOF |
2596 | /* end confdefs.h. */ |
2597 | |
2598 | int |
2599 | main () |
2600 | { |
2601 | |
2602 | ; |
2603 | return 0; |
2604 | } |
2605 | _ACEOF |
2606 | rm -f conftest.$ac_objext |
2607 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2608 | (eval $ac_compile) 2>conftest.er1 |
2609 | ac_status=$? |
2610 | grep -v '^ *+' conftest.er1 >conftest.err |
2611 | rm -f conftest.er1 |
2612 | cat conftest.err >&5 |
2613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2614 | (exit $ac_status); } && |
2615 | { ac_try='test -z "$ac_c_werror_flag" |
2616 | || test ! -s conftest.err' |
2617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2618 | (eval $ac_try) 2>&5 |
2619 | ac_status=$? |
2620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2621 | (exit $ac_status); }; } && |
2622 | { ac_try='test -s conftest.$ac_objext' |
2623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2624 | (eval $ac_try) 2>&5 |
2625 | ac_status=$? |
2626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2627 | (exit $ac_status); }; }; then |
2628 | ac_cv_prog_cc_g=yes |
2629 | else |
2630 | echo "$as_me: failed program was:" >&5 |
2631 | sed 's/^/| /' conftest.$ac_ext >&5 |
2632 | |
2633 | ac_cv_prog_cc_g=no |
2634 | fi |
2635 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2636 | fi |
2637 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2638 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
2639 | if test "$ac_test_CFLAGS" = set; then |
2640 | CFLAGS=$ac_save_CFLAGS |
2641 | elif test $ac_cv_prog_cc_g = yes; then |
2642 | if test "$GCC" = yes; then |
2643 | CFLAGS="-g -O2" |
2644 | else |
2645 | CFLAGS="-g" |
2646 | fi |
2647 | else |
2648 | if test "$GCC" = yes; then |
2649 | CFLAGS="-O2" |
2650 | else |
2651 | CFLAGS= |
2652 | fi |
2653 | fi |
2654 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2655 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
2656 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
2657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2658 | else |
2659 | ac_cv_prog_cc_stdc=no |
2660 | ac_save_CC=$CC |
2661 | cat >conftest.$ac_ext <<_ACEOF |
2662 | /* confdefs.h. */ |
2663 | _ACEOF |
2664 | cat confdefs.h >>conftest.$ac_ext |
2665 | cat >>conftest.$ac_ext <<_ACEOF |
2666 | /* end confdefs.h. */ |
2667 | #include <stdarg.h> |
2668 | #include <stdio.h> |
2669 | #include <sys/types.h> |
2670 | #include <sys/stat.h> |
2671 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2672 | struct buf { int x; }; |
2673 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
2674 | static char *e (p, i) |
2675 | char **p; |
2676 | int i; |
2677 | { |
2678 | return p[i]; |
2679 | } |
2680 | static char *f (char * (*g) (char **, int), char **p, ...) |
2681 | { |
2682 | char *s; |
2683 | va_list v; |
2684 | va_start (v,p); |
2685 | s = g (p, va_arg (v,int)); |
2686 | va_end (v); |
2687 | return s; |
2688 | } |
2689 | |
2690 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2691 | function prototypes and stuff, but not '\xHH' hex character constants. |
2692 | These don't provoke an error unfortunately, instead are silently treated |
2693 | as 'x'. The following induces an error, until -std1 is added to get |
2694 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2695 | array size at least. It's necessary to write '\x00'==0 to get something |
2696 | that's true only with -std1. */ |
2697 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2698 | |
2699 | int test (int i, double x); |
2700 | struct s1 {int (*f) (int a);}; |
2701 | struct s2 {int (*f) (double a);}; |
2702 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
2703 | int argc; |
2704 | char **argv; |
2705 | int |
2706 | main () |
2707 | { |
2708 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2709 | ; |
2710 | return 0; |
2711 | } |
2712 | _ACEOF |
2713 | # Don't try gcc -ansi; that turns off useful extensions and |
2714 | # breaks some systems' header files. |
2715 | # AIX -qlanglvl=ansi |
2716 | # Ultrix and OSF/1 -std1 |
2717 | # HP-UX 10.20 and later -Ae |
2718 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
2719 | # SVR4 -Xc -D__EXTENSIONS__ |
2720 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2721 | do |
2722 | CC="$ac_save_CC $ac_arg" |
2723 | rm -f conftest.$ac_objext |
2724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2725 | (eval $ac_compile) 2>conftest.er1 |
2726 | ac_status=$? |
2727 | grep -v '^ *+' conftest.er1 >conftest.err |
2728 | rm -f conftest.er1 |
2729 | cat conftest.err >&5 |
2730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2731 | (exit $ac_status); } && |
2732 | { ac_try='test -z "$ac_c_werror_flag" |
2733 | || test ! -s conftest.err' |
2734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2735 | (eval $ac_try) 2>&5 |
2736 | ac_status=$? |
2737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2738 | (exit $ac_status); }; } && |
2739 | { ac_try='test -s conftest.$ac_objext' |
2740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2741 | (eval $ac_try) 2>&5 |
2742 | ac_status=$? |
2743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2744 | (exit $ac_status); }; }; then |
2745 | ac_cv_prog_cc_stdc=$ac_arg |
2746 | break |
2747 | else |
2748 | echo "$as_me: failed program was:" >&5 |
2749 | sed 's/^/| /' conftest.$ac_ext >&5 |
2750 | |
2751 | fi |
2752 | rm -f conftest.err conftest.$ac_objext |
2753 | done |
2754 | rm -f conftest.$ac_ext conftest.$ac_objext |
2755 | CC=$ac_save_CC |
2756 | |
2757 | fi |
2758 | |
2759 | case "x$ac_cv_prog_cc_stdc" in |
2760 | x|xno) |
2761 | echo "$as_me:$LINENO: result: none needed" >&5 |
2762 | echo "${ECHO_T}none needed" >&6 ;; |
2763 | *) |
2764 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2765 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
2766 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
2767 | esac |
2768 | |
2769 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2770 | # in C++ we need to declare it. In case someone uses the same compiler |
2771 | # for both compiling C and C++ we need to have the C++ compiler decide |
2772 | # the declaration of exit, since it's the most demanding environment. |
2773 | cat >conftest.$ac_ext <<_ACEOF |
2774 | #ifndef __cplusplus |
2775 | choke me |
2776 | #endif |
2777 | _ACEOF |
2778 | rm -f conftest.$ac_objext |
2779 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2780 | (eval $ac_compile) 2>conftest.er1 |
2781 | ac_status=$? |
2782 | grep -v '^ *+' conftest.er1 >conftest.err |
2783 | rm -f conftest.er1 |
2784 | cat conftest.err >&5 |
2785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2786 | (exit $ac_status); } && |
2787 | { ac_try='test -z "$ac_c_werror_flag" |
2788 | || test ! -s conftest.err' |
2789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2790 | (eval $ac_try) 2>&5 |
2791 | ac_status=$? |
2792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2793 | (exit $ac_status); }; } && |
2794 | { ac_try='test -s conftest.$ac_objext' |
2795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2796 | (eval $ac_try) 2>&5 |
2797 | ac_status=$? |
2798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2799 | (exit $ac_status); }; }; then |
2800 | for ac_declaration in \ |
2801 | '' \ |
2802 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2803 | 'extern "C" void std::exit (int); using std::exit;' \ |
2804 | 'extern "C" void exit (int) throw ();' \ |
2805 | 'extern "C" void exit (int);' \ |
2806 | 'void exit (int);' |
2807 | do |
2808 | cat >conftest.$ac_ext <<_ACEOF |
2809 | /* confdefs.h. */ |
2810 | _ACEOF |
2811 | cat confdefs.h >>conftest.$ac_ext |
2812 | cat >>conftest.$ac_ext <<_ACEOF |
2813 | /* end confdefs.h. */ |
2814 | $ac_declaration |
2815 | #include <stdlib.h> |
2816 | int |
2817 | main () |
2818 | { |
2819 | exit (42); |
2820 | ; |
2821 | return 0; |
2822 | } |
2823 | _ACEOF |
2824 | rm -f conftest.$ac_objext |
2825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2826 | (eval $ac_compile) 2>conftest.er1 |
2827 | ac_status=$? |
2828 | grep -v '^ *+' conftest.er1 >conftest.err |
2829 | rm -f conftest.er1 |
2830 | cat conftest.err >&5 |
2831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2832 | (exit $ac_status); } && |
2833 | { ac_try='test -z "$ac_c_werror_flag" |
2834 | || test ! -s conftest.err' |
2835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2836 | (eval $ac_try) 2>&5 |
2837 | ac_status=$? |
2838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2839 | (exit $ac_status); }; } && |
2840 | { ac_try='test -s conftest.$ac_objext' |
2841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2842 | (eval $ac_try) 2>&5 |
2843 | ac_status=$? |
2844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2845 | (exit $ac_status); }; }; then |
2846 | : |
2847 | else |
2848 | echo "$as_me: failed program was:" >&5 |
2849 | sed 's/^/| /' conftest.$ac_ext >&5 |
2850 | |
2851 | continue |
2852 | fi |
2853 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2854 | cat >conftest.$ac_ext <<_ACEOF |
2855 | /* confdefs.h. */ |
2856 | _ACEOF |
2857 | cat confdefs.h >>conftest.$ac_ext |
2858 | cat >>conftest.$ac_ext <<_ACEOF |
2859 | /* end confdefs.h. */ |
2860 | $ac_declaration |
2861 | int |
2862 | main () |
2863 | { |
2864 | exit (42); |
2865 | ; |
2866 | return 0; |
2867 | } |
2868 | _ACEOF |
2869 | rm -f conftest.$ac_objext |
2870 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2871 | (eval $ac_compile) 2>conftest.er1 |
2872 | ac_status=$? |
2873 | grep -v '^ *+' conftest.er1 >conftest.err |
2874 | rm -f conftest.er1 |
2875 | cat conftest.err >&5 |
2876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2877 | (exit $ac_status); } && |
2878 | { ac_try='test -z "$ac_c_werror_flag" |
2879 | || test ! -s conftest.err' |
2880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2881 | (eval $ac_try) 2>&5 |
2882 | ac_status=$? |
2883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2884 | (exit $ac_status); }; } && |
2885 | { ac_try='test -s conftest.$ac_objext' |
2886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2887 | (eval $ac_try) 2>&5 |
2888 | ac_status=$? |
2889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2890 | (exit $ac_status); }; }; then |
2891 | break |
2892 | else |
2893 | echo "$as_me: failed program was:" >&5 |
2894 | sed 's/^/| /' conftest.$ac_ext >&5 |
2895 | |
2896 | fi |
2897 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2898 | done |
2899 | rm -f conftest* |
2900 | if test -n "$ac_declaration"; then |
2901 | echo '#ifdef __cplusplus' >>confdefs.h |
2902 | echo $ac_declaration >>confdefs.h |
2903 | echo '#endif' >>confdefs.h |
2904 | fi |
2905 | |
2906 | else |
2907 | echo "$as_me: failed program was:" >&5 |
2908 | sed 's/^/| /' conftest.$ac_ext >&5 |
2909 | |
2910 | fi |
2911 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2912 | ac_ext=c |
2913 | ac_cpp='$CPP $CPPFLAGS' |
2914 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2915 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2916 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2917 | DEPDIR="${am__leading_dot}deps" |
2918 | |
2919 | ac_config_commands="$ac_config_commands depfiles" |
2920 | |
2921 | |
2922 | am_make=${MAKE-make} |
2923 | cat > confinc << 'END' |
2924 | am__doit: |
2925 | @echo done |
2926 | .PHONY: am__doit |
2927 | END |
2928 | # If we don't find an include directive, just comment out the code. |
2929 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
2930 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
2931 | am__include="#" |
2932 | am__quote= |
2933 | _am_result=none |
2934 | # First try GNU make style include. |
2935 | echo "include confinc" > confmf |
2936 | # We grep out `Entering directory' and `Leaving directory' |
2937 | # messages which can occur if `w' ends up in MAKEFLAGS. |
2938 | # In particular we don't look at `^make:' because GNU make might |
2939 | # be invoked under some other name (usually "gmake"), in which |
2940 | # case it prints its new name instead of `make'. |
2941 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
2942 | am__include=include |
2943 | am__quote= |
2944 | _am_result=GNU |
2945 | fi |
2946 | # Now try BSD make style include. |
2947 | if test "$am__include" = "#"; then |
2948 | echo '.include "confinc"' > confmf |
2949 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
2950 | am__include=.include |
2951 | am__quote="\"" |
2952 | _am_result=BSD |
2953 | fi |
2954 | fi |
2955 | |
2956 | |
2957 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
2958 | echo "${ECHO_T}$_am_result" >&6 |
2959 | rm -f confinc confmf |
2960 | |
2961 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
2962 | if test "${enable_dependency_tracking+set}" = set; then |
2963 | enableval="$enable_dependency_tracking" |
2964 | |
2965 | fi; |
2966 | if test "x$enable_dependency_tracking" != xno; then |
2967 | am_depcomp="$ac_aux_dir/depcomp" |
2968 | AMDEPBACKSLASH='\' |
2969 | fi |
2970 | |
2971 | |
2972 | if test "x$enable_dependency_tracking" != xno; then |
2973 | AMDEP_TRUE= |
2974 | AMDEP_FALSE='#' |
2975 | else |
2976 | AMDEP_TRUE='#' |
2977 | AMDEP_FALSE= |
2978 | fi |
2979 | |
2980 | |
2981 | |
2982 | |
2983 | depcc="$CC" am_compiler_list= |
2984 | |
2985 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
2986 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
2987 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
2988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2989 | else |
2990 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
2991 | # We make a subdir and do the tests there. Otherwise we can end up |
2992 | # making bogus files that we don't know about and never remove. For |
2993 | # instance it was reported that on HP-UX the gcc test will end up |
2994 | # making a dummy file named `D' -- because `-MD' means `put the output |
2995 | # in D'. |
2996 | mkdir conftest.dir |
2997 | # Copy depcomp to subdir because otherwise we won't find it if we're |
2998 | # using a relative directory. |
2999 | cp "$am_depcomp" conftest.dir |
3000 | cd conftest.dir |
3001 | # We will build objects and dependencies in a subdirectory because |
3002 | # it helps to detect inapplicable dependency modes. For instance |
3003 | # both Tru64's cc and ICC support -MD to output dependencies as a |
3004 | # side effect of compilation, but ICC will put the dependencies in |
3005 | # the current directory while Tru64 will put them in the object |
3006 | # directory. |
3007 | mkdir sub |
3008 | |
3009 | am_cv_CC_dependencies_compiler_type=none |
3010 | if test "$am_compiler_list" = ""; then |
3011 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
3012 | fi |
3013 | for depmode in $am_compiler_list; do |
3014 | # Setup a source with many dependencies, because some compilers |
3015 | # like to wrap large dependency lists on column 80 (with \), and |
3016 | # we should not choose a depcomp mode which is confused by this. |
3017 | # |
3018 | # We need to recreate these files for each test, as the compiler may |
3019 | # overwrite some of them when testing with obscure command lines. |
3020 | # This happens at least with the AIX C compiler. |
3021 | : > sub/conftest.c |
3022 | for i in 1 2 3 4 5 6; do |
3023 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3024 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
3025 | # Solaris 8's {/usr,}/bin/sh. |
3026 | touch sub/conftst$i.h |
3027 | done |
3028 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
3029 | |
3030 | case $depmode in |
3031 | nosideeffect) |
3032 | # after this tag, mechanisms are not by side-effect, so they'll |
3033 | # only be used when explicitly requested |
3034 | if test "x$enable_dependency_tracking" = xyes; then |
3035 | continue |
3036 | else |
3037 | break |
3038 | fi |
3039 | ;; |
3040 | none) break ;; |
3041 | esac |
3042 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3043 | # mode. It turns out that the SunPro C++ compiler does not properly |
3044 | # handle `-M -o', and we need to detect this. |
3045 | if depmode=$depmode \ |
3046 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
3047 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
3048 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
3049 | >/dev/null 2>conftest.err && |
3050 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3051 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
3052 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3053 | # icc doesn't choke on unknown options, it will just issue warnings |
3054 | # or remarks (even with -Werror). So we grep stderr for any message |
3055 | # that says an option was ignored or not supported. |
3056 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
3057 | # icc: Command line warning: ignoring option '-M'; no argument required |
3058 | # The diagnosis changed in icc 8.0: |
3059 | # icc: Command line remark: option '-MP' not supported |
3060 | if (grep 'ignoring option' conftest.err || |
3061 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
3062 | am_cv_CC_dependencies_compiler_type=$depmode |
3063 | break |
3064 | fi |
3065 | fi |
3066 | done |
3067 | |
3068 | cd .. |
3069 | rm -rf conftest.dir |
3070 | else |
3071 | am_cv_CC_dependencies_compiler_type=none |
3072 | fi |
3073 | |
3074 | fi |
3075 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3076 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
3077 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3078 | |
3079 | |
3080 | |
3081 | if |
3082 | test "x$enable_dependency_tracking" != xno \ |
3083 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
3084 | am__fastdepCC_TRUE= |
3085 | am__fastdepCC_FALSE='#' |
3086 | else |
3087 | am__fastdepCC_TRUE='#' |
3088 | am__fastdepCC_FALSE= |
3089 | fi |
3090 | |
3091 | |
3092 | # Find a good install program. We prefer a C program (faster), |
3093 | # so one script is as good as another. But avoid the broken or |
3094 | # incompatible versions: |
3095 | # SysV /etc/install, /usr/sbin/install |
3096 | # SunOS /usr/etc/install |
3097 | # IRIX /sbin/install |
3098 | # AIX /bin/install |
3099 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
3100 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3101 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3102 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
3103 | # OS/2's system install, which has a completely different semantic |
3104 | # ./install, which can be erroneously created by make from ./install.sh. |
3105 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3106 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
3107 | if test -z "$INSTALL"; then |
3108 | if test "${ac_cv_path_install+set}" = set; then |
3109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3110 | else |
3111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3112 | for as_dir in $PATH |
3113 | do |
3114 | IFS=$as_save_IFS |
3115 | test -z "$as_dir" && as_dir=. |
3116 | # Account for people who put trailing slashes in PATH elements. |
3117 | case $as_dir/ in |
3118 | ./ | .// | /cC/* | \ |
3119 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
3120 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
3121 | /usr/ucb/* ) ;; |
3122 | *) |
3123 | # OSF1 and SCO ODT 3.0 have their own names for install. |
3124 | # Don't use installbsd from OSF since it installs stuff as root |
3125 | # by default. |
3126 | for ac_prog in ginstall scoinst install; do |
3127 | for ac_exec_ext in '' $ac_executable_extensions; do |
3128 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
3129 | if test $ac_prog = install && |
3130 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3131 | # AIX install. It has an incompatible calling convention. |
3132 | : |
3133 | elif test $ac_prog = install && |
3134 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3135 | # program-specific install script used by HP pwplus--don't use. |
3136 | : |
3137 | else |
3138 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
3139 | break 3 |
3140 | fi |
3141 | fi |
3142 | done |
3143 | done |
3144 | ;; |
3145 | esac |
3146 | done |
3147 | |
3148 | |
3149 | fi |
3150 | if test "${ac_cv_path_install+set}" = set; then |
3151 | INSTALL=$ac_cv_path_install |
3152 | else |
3153 | # As a last resort, use the slow shell script. We don't cache a |
3154 | # path for INSTALL within a source directory, because that will |
3155 | # break other packages using the cache if that directory is |
3156 | # removed, or if the path is relative. |
3157 | INSTALL=$ac_install_sh |
3158 | fi |
3159 | fi |
3160 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3161 | echo "${ECHO_T}$INSTALL" >&6 |
3162 | |
3163 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3164 | # It thinks the first close brace ends the variable substitution. |
3165 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
3166 | |
3167 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3168 | |
3169 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3170 | |
3171 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3172 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
3173 | LN_S=$as_ln_s |
3174 | if test "$LN_S" = "ln -s"; then |
3175 | echo "$as_me:$LINENO: result: yes" >&5 |
3176 | echo "${ECHO_T}yes" >&6 |
3177 | else |
3178 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3179 | echo "${ECHO_T}no, using $LN_S" >&6 |
3180 | fi |
3181 | |
3182 | # Check whether --enable-shared or --disable-shared was given. |
3183 | if test "${enable_shared+set}" = set; then |
3184 | enableval="$enable_shared" |
3185 | p=${PACKAGE-default} |
3186 | case $enableval in |
3187 | yes) enable_shared=yes ;; |
3188 | no) enable_shared=no ;; |
3189 | *) |
3190 | enable_shared=no |
3191 | # Look at the argument we got. We use all the common list separators. |
3192 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3193 | for pkg in $enableval; do |
3194 | IFS="$lt_save_ifs" |
3195 | if test "X$pkg" = "X$p"; then |
3196 | enable_shared=yes |
3197 | fi |
3198 | done |
3199 | IFS="$lt_save_ifs" |
3200 | ;; |
3201 | esac |
3202 | else |
3203 | enable_shared=yes |
3204 | fi; |
3205 | |
3206 | # Check whether --enable-static or --disable-static was given. |
3207 | if test "${enable_static+set}" = set; then |
3208 | enableval="$enable_static" |
3209 | p=${PACKAGE-default} |
3210 | case $enableval in |
3211 | yes) enable_static=yes ;; |
3212 | no) enable_static=no ;; |
3213 | *) |
3214 | enable_static=no |
3215 | # Look at the argument we got. We use all the common list separators. |
3216 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3217 | for pkg in $enableval; do |
3218 | IFS="$lt_save_ifs" |
3219 | if test "X$pkg" = "X$p"; then |
3220 | enable_static=yes |
3221 | fi |
3222 | done |
3223 | IFS="$lt_save_ifs" |
3224 | ;; |
3225 | esac |
3226 | else |
3227 | enable_static=yes |
3228 | fi; |
3229 | |
3230 | # Check whether --enable-fast-install or --disable-fast-install was given. |
3231 | if test "${enable_fast_install+set}" = set; then |
3232 | enableval="$enable_fast_install" |
3233 | p=${PACKAGE-default} |
3234 | case $enableval in |
3235 | yes) enable_fast_install=yes ;; |
3236 | no) enable_fast_install=no ;; |
3237 | *) |
3238 | enable_fast_install=no |
3239 | # Look at the argument we got. We use all the common list separators. |
3240 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3241 | for pkg in $enableval; do |
3242 | IFS="$lt_save_ifs" |
3243 | if test "X$pkg" = "X$p"; then |
3244 | enable_fast_install=yes |
3245 | fi |
3246 | done |
3247 | IFS="$lt_save_ifs" |
3248 | ;; |
3249 | esac |
3250 | else |
3251 | enable_fast_install=yes |
3252 | fi; |
3253 | |
3254 | # Make sure we can run config.sub. |
3255 | $ac_config_sub sun4 >/dev/null 2>&1 || |
3256 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
3257 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
3258 | { (exit 1); exit 1; }; } |
3259 | |
3260 | echo "$as_me:$LINENO: checking build system type" >&5 |
3261 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
3262 | if test "${ac_cv_build+set}" = set; then |
3263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3264 | else |
3265 | ac_cv_build_alias=$build_alias |
3266 | test -z "$ac_cv_build_alias" && |
3267 | ac_cv_build_alias=`$ac_config_guess` |
3268 | test -z "$ac_cv_build_alias" && |
3269 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
3270 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
3271 | { (exit 1); exit 1; }; } |
3272 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
3273 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
3274 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
3275 | { (exit 1); exit 1; }; } |
3276 | |
3277 | fi |
3278 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
3279 | echo "${ECHO_T}$ac_cv_build" >&6 |
3280 | build=$ac_cv_build |
3281 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
3282 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
3283 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
3284 | |
3285 | |
3286 | echo "$as_me:$LINENO: checking host system type" >&5 |
3287 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
3288 | if test "${ac_cv_host+set}" = set; then |
3289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3290 | else |
3291 | ac_cv_host_alias=$host_alias |
3292 | test -z "$ac_cv_host_alias" && |
3293 | ac_cv_host_alias=$ac_cv_build_alias |
3294 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
3295 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
3296 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
3297 | { (exit 1); exit 1; }; } |
3298 | |
3299 | fi |
3300 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
3301 | echo "${ECHO_T}$ac_cv_host" >&6 |
3302 | host=$ac_cv_host |
3303 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
3304 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
3305 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
3306 | |
3307 | |
3308 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
3309 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
3310 | if test "${lt_cv_path_SED+set}" = set; then |
3311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3312 | else |
3313 | # Loop through the user's path and test for sed and gsed. |
3314 | # Then use that list of sed's as ones to test for truncation. |
3315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3316 | for as_dir in $PATH |
3317 | do |
3318 | IFS=$as_save_IFS |
3319 | test -z "$as_dir" && as_dir=. |
3320 | for lt_ac_prog in sed gsed; do |
3321 | for ac_exec_ext in '' $ac_executable_extensions; do |
3322 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
3323 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
3324 | fi |
3325 | done |
3326 | done |
3327 | done |
3328 | IFS=$as_save_IFS |
3329 | lt_ac_max=0 |
3330 | lt_ac_count=0 |
3331 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
3332 | # along with /bin/sed that truncates output. |
3333 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
3334 | test ! -f $lt_ac_sed && continue |
3335 | cat /dev/null > conftest.in |
3336 | lt_ac_count=0 |
3337 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
3338 | # Check for GNU sed and select it if it is found. |
3339 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
3340 | lt_cv_path_SED=$lt_ac_sed |
3341 | break |
3342 | fi |
3343 | while true; do |
3344 | cat conftest.in conftest.in >conftest.tmp |
3345 | mv conftest.tmp conftest.in |
3346 | cp conftest.in conftest.nl |
3347 | echo >>conftest.nl |
3348 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
3349 | cmp -s conftest.out conftest.nl || break |
3350 | # 10000 chars as input seems more than enough |
3351 | test $lt_ac_count -gt 10 && break |
3352 | lt_ac_count=`expr $lt_ac_count + 1` |
3353 | if test $lt_ac_count -gt $lt_ac_max; then |
3354 | lt_ac_max=$lt_ac_count |
3355 | lt_cv_path_SED=$lt_ac_sed |
3356 | fi |
3357 | done |
3358 | done |
3359 | |
3360 | fi |
3361 | |
3362 | SED=$lt_cv_path_SED |
3363 | |
3364 | echo "$as_me:$LINENO: result: $SED" >&5 |
3365 | echo "${ECHO_T}$SED" >&6 |
3366 | |
3367 | echo "$as_me:$LINENO: checking for egrep" >&5 |
3368 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
3369 | if test "${ac_cv_prog_egrep+set}" = set; then |
3370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3371 | else |
3372 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
3373 | then ac_cv_prog_egrep='grep -E' |
3374 | else ac_cv_prog_egrep='egrep' |
3375 | fi |
3376 | fi |
3377 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
3378 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
3379 | EGREP=$ac_cv_prog_egrep |
3380 | |
3381 | |
3382 | |
3383 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3384 | if test "${with_gnu_ld+set}" = set; then |
3385 | withval="$with_gnu_ld" |
3386 | test "$withval" = no || with_gnu_ld=yes |
3387 | else |
3388 | with_gnu_ld=no |
3389 | fi; |
3390 | ac_prog=ld |
3391 | if test "$GCC" = yes; then |
3392 | # Check if gcc -print-prog-name=ld gives a path. |
3393 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
3394 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
3395 | case $host in |
3396 | *-*-mingw*) |
3397 | # gcc leaves a trailing carriage return which upsets mingw |
3398 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
3399 | *) |
3400 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
3401 | esac |
3402 | case $ac_prog in |
3403 | # Accept absolute paths. |
3404 | [\\/]* | ?:[\\/]*) |
3405 | re_direlt='/[^/][^/]*/\.\./' |
3406 | # Canonicalize the pathname of ld |
3407 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
3408 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
3409 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
3410 | done |
3411 | test -z "$LD" && LD="$ac_prog" |
3412 | ;; |
3413 | "") |
3414 | # If it fails, then pretend we aren't using GCC. |
3415 | ac_prog=ld |
3416 | ;; |
3417 | *) |
3418 | # If it is relative, then search for the first ld in PATH. |
3419 | with_gnu_ld=unknown |
3420 | ;; |
3421 | esac |
3422 | elif test "$with_gnu_ld" = yes; then |
3423 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3424 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
3425 | else |
3426 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
3427 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
3428 | fi |
3429 | if test "${lt_cv_path_LD+set}" = set; then |
3430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3431 | else |
3432 | if test -z "$LD"; then |
3433 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3434 | for ac_dir in $PATH; do |
3435 | IFS="$lt_save_ifs" |
3436 | test -z "$ac_dir" && ac_dir=. |
3437 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
3438 | lt_cv_path_LD="$ac_dir/$ac_prog" |
3439 | # Check to see if the program is GNU ld. I'd rather use --version, |
3440 | # but apparently some variants of GNU ld only accept -v. |
3441 | # Break only if it was the GNU/non-GNU ld that we prefer. |
3442 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
3443 | *GNU* | *'with BFD'*) |
3444 | test "$with_gnu_ld" != no && break |
3445 | ;; |
3446 | *) |
3447 | test "$with_gnu_ld" != yes && break |
3448 | ;; |
3449 | esac |
3450 | fi |
3451 | done |
3452 | IFS="$lt_save_ifs" |
3453 | else |
3454 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
3455 | fi |
3456 | fi |
3457 | |
3458 | LD="$lt_cv_path_LD" |
3459 | if test -n "$LD"; then |
3460 | echo "$as_me:$LINENO: result: $LD" >&5 |
3461 | echo "${ECHO_T}$LD" >&6 |
3462 | else |
3463 | echo "$as_me:$LINENO: result: no" >&5 |
3464 | echo "${ECHO_T}no" >&6 |
3465 | fi |
3466 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
3467 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
3468 | { (exit 1); exit 1; }; } |
3469 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
3470 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
3471 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
3472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3473 | else |
3474 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
3475 | case `$LD -v 2>&1 </dev/null` in |
3476 | *GNU* | *'with BFD'*) |
3477 | lt_cv_prog_gnu_ld=yes |
3478 | ;; |
3479 | *) |
3480 | lt_cv_prog_gnu_ld=no |
3481 | ;; |
3482 | esac |
3483 | fi |
3484 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
3485 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
3486 | with_gnu_ld=$lt_cv_prog_gnu_ld |
3487 | |
3488 | |
3489 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
3490 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
3491 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
3492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3493 | else |
3494 | lt_cv_ld_reload_flag='-r' |
3495 | fi |
3496 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
3497 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
3498 | reload_flag=$lt_cv_ld_reload_flag |
3499 | case $reload_flag in |
3500 | "" | " "*) ;; |
3501 | *) reload_flag=" $reload_flag" ;; |
3502 | esac |
3503 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3504 | case $host_os in |
3505 | darwin*) |
3506 | if test "$GCC" = yes; then |
3507 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
3508 | else |
3509 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3510 | fi |
3511 | ;; |
3512 | esac |
3513 | |
3514 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
3515 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
3516 | if test "${lt_cv_path_NM+set}" = set; then |
3517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3518 | else |
3519 | if test -n "$NM"; then |
3520 | # Let the user override the test. |
3521 | lt_cv_path_NM="$NM" |
3522 | else |
3523 | lt_nm_to_check="${ac_tool_prefix}nm" |
3524 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
3525 | lt_nm_to_check="$lt_nm_to_check nm" |
3526 | fi |
3527 | for lt_tmp_nm in $lt_nm_to_check; do |
3528 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3529 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
3530 | IFS="$lt_save_ifs" |
3531 | test -z "$ac_dir" && ac_dir=. |
3532 | tmp_nm="$ac_dir/$lt_tmp_nm" |
3533 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
3534 | # Check to see if the nm accepts a BSD-compat flag. |
3535 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
3536 | # nm: unknown option "B" ignored |
3537 | # Tru64's nm complains that /dev/null is an invalid object file |
3538 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
3539 | */dev/null* | *'Invalid file or object type'*) |
3540 | lt_cv_path_NM="$tmp_nm -B" |
3541 | break |
3542 | ;; |
3543 | *) |
3544 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
3545 | */dev/null*) |
3546 | lt_cv_path_NM="$tmp_nm -p" |
3547 | break |
3548 | ;; |
3549 | *) |
3550 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
3551 | continue # so that we can try to find one that supports BSD flags |
3552 | ;; |
3553 | esac |
3554 | ;; |
3555 | esac |
3556 | fi |
3557 | done |
3558 | IFS="$lt_save_ifs" |
3559 | done |
3560 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
3561 | fi |
3562 | fi |
3563 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
3564 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
3565 | NM="$lt_cv_path_NM" |
3566 | |
3567 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
3568 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
3569 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
3570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3571 | else |
3572 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
3573 | lt_cv_file_magic_test_file= |
3574 | lt_cv_deplibs_check_method='unknown' |
3575 | # Need to set the preceding variable on all platforms that support |
3576 | # interlibrary dependencies. |
3577 | # 'none' -- dependencies not supported. |
3578 | # `unknown' -- same as none, but documents that we really don't know. |
3579 | # 'pass_all' -- all dependencies passed with no checks. |
3580 | # 'test_compile' -- check by making test program. |
3581 | # 'file_magic [[regex]]' -- check by looking for files in library path |
3582 | # which responds to the $file_magic_cmd with a given extended regex. |
3583 | # If you have `file' or equivalent on your system and you're not sure |
3584 | # whether `pass_all' will *always* work, you probably want this one. |
3585 | |
3586 | case $host_os in |
3587 | aix4* | aix5*) |
3588 | lt_cv_deplibs_check_method=pass_all |
3589 | ;; |
3590 | |
3591 | beos*) |
3592 | lt_cv_deplibs_check_method=pass_all |
3593 | ;; |
3594 | |
3595 | bsdi[45]*) |
3596 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
3597 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
3598 | lt_cv_file_magic_test_file=/shlib/libc.so |
3599 | ;; |
3600 | |
3601 | cygwin*) |
3602 | # func_win32_libid is a shell function defined in ltmain.sh |
3603 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
3604 | lt_cv_file_magic_cmd='func_win32_libid' |
3605 | ;; |
3606 | |
3607 | mingw* | pw32*) |
3608 | # Base MSYS/MinGW do not provide the 'file' command needed by |
3609 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
3610 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
3611 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
3612 | ;; |
3613 | |
3614 | darwin* | rhapsody*) |
3615 | lt_cv_deplibs_check_method=pass_all |
3616 | ;; |
3617 | |
3618 | freebsd* | kfreebsd*-gnu | dragonfly*) |
3619 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3620 | case $host_cpu in |
3621 | i*86 ) |
3622 | # Not sure whether the presence of OpenBSD here was a mistake. |
3623 | # Let's accept both of them until this is cleared up. |
3624 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
3625 | lt_cv_file_magic_cmd=/usr/bin/file |
3626 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3627 | ;; |
3628 | esac |
3629 | else |
3630 | lt_cv_deplibs_check_method=pass_all |
3631 | fi |
3632 | ;; |
3633 | |
3634 | gnu*) |
3635 | lt_cv_deplibs_check_method=pass_all |
3636 | ;; |
3637 | |
3638 | hpux10.20* | hpux11*) |
3639 | lt_cv_file_magic_cmd=/usr/bin/file |
3640 | case $host_cpu in |
3641 | ia64*) |
3642 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
3643 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
3644 | ;; |
3645 | hppa*64*) |
3646 | 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]' |
3647 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
3648 | ;; |
3649 | *) |
3650 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
3651 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
3652 | ;; |
3653 | esac |
3654 | ;; |
3655 | |
3656 | interix3*) |
3657 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
3658 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
3659 | ;; |
3660 | |
3661 | irix5* | irix6* | nonstopux*) |
3662 | case $LD in |
3663 | *-32|*"-32 ") libmagic=32-bit;; |
3664 | *-n32|*"-n32 ") libmagic=N32;; |
3665 | *-64|*"-64 ") libmagic=64-bit;; |
3666 | *) libmagic=never-match;; |
3667 | esac |
3668 | lt_cv_deplibs_check_method=pass_all |
3669 | ;; |
3670 | |
3671 | # This must be Linux ELF. |
3672 | linux*) |
3673 | lt_cv_deplibs_check_method=pass_all |
3674 | ;; |
3675 | |
3676 | netbsd*) |
3677 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3678 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
3679 | else |
3680 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
3681 | fi |
3682 | ;; |
3683 | |
3684 | newos6*) |
3685 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
3686 | lt_cv_file_magic_cmd=/usr/bin/file |
3687 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
3688 | ;; |
3689 | |
3690 | nto-qnx*) |
3691 | lt_cv_deplibs_check_method=unknown |
3692 | ;; |
3693 | |
3694 | openbsd*) |
3695 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
3696 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
3697 | else |
3698 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
3699 | fi |
3700 | ;; |
3701 | |
3702 | osf3* | osf4* | osf5*) |
3703 | lt_cv_deplibs_check_method=pass_all |
3704 | ;; |
3705 | |
3706 | solaris*) |
3707 | lt_cv_deplibs_check_method=pass_all |
3708 | ;; |
3709 | |
3710 | sysv4 | sysv4.3*) |
3711 | case $host_vendor in |
3712 | motorola) |
3713 | 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]' |
3714 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
3715 | ;; |
3716 | ncr) |
3717 | lt_cv_deplibs_check_method=pass_all |
3718 | ;; |
3719 | sequent) |
3720 | lt_cv_file_magic_cmd='/bin/file' |
3721 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
3722 | ;; |
3723 | sni) |
3724 | lt_cv_file_magic_cmd='/bin/file' |
3725 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
3726 | lt_cv_file_magic_test_file=/lib/libc.so |
3727 | ;; |
3728 | siemens) |
3729 | lt_cv_deplibs_check_method=pass_all |
3730 | ;; |
3731 | pc) |
3732 | lt_cv_deplibs_check_method=pass_all |
3733 | ;; |
3734 | esac |
3735 | ;; |
3736 | |
3737 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
3738 | lt_cv_deplibs_check_method=pass_all |
3739 | ;; |
3740 | esac |
3741 | |
3742 | fi |
3743 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
3744 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
3745 | file_magic_cmd=$lt_cv_file_magic_cmd |
3746 | deplibs_check_method=$lt_cv_deplibs_check_method |
3747 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
3748 | |
3749 | |
3750 | |
3751 | |
3752 | # If no C compiler was specified, use CC. |
3753 | LTCC=${LTCC-"$CC"} |
3754 | |
3755 | # If no C compiler flags were specified, use CFLAGS. |
3756 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
3757 | |
3758 | # Allow CC to be a program name with arguments. |
3759 | compiler=$CC |
3760 | |
3761 | |
3762 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
3763 | if test "${enable_libtool_lock+set}" = set; then |
3764 | enableval="$enable_libtool_lock" |
3765 | |
3766 | fi; |
3767 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
3768 | |
3769 | # Some flags need to be propagated to the compiler or linker for good |
3770 | # libtool support. |
3771 | case $host in |
3772 | ia64-*-hpux*) |
3773 | # Find out which ABI we are using. |
3774 | echo 'int i;' > conftest.$ac_ext |
3775 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3776 | (eval $ac_compile) 2>&5 |
3777 | ac_status=$? |
3778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3779 | (exit $ac_status); }; then |
3780 | case `/usr/bin/file conftest.$ac_objext` in |
3781 | *ELF-32*) |
3782 | HPUX_IA64_MODE="32" |
3783 | ;; |
3784 | *ELF-64*) |
3785 | HPUX_IA64_MODE="64" |
3786 | ;; |
3787 | esac |
3788 | fi |
3789 | rm -rf conftest* |
3790 | ;; |
3791 | *-*-irix6*) |
3792 | # Find out which ABI we are using. |
3793 | echo '#line 3793 "configure"' > conftest.$ac_ext |
3794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3795 | (eval $ac_compile) 2>&5 |
3796 | ac_status=$? |
3797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3798 | (exit $ac_status); }; then |
3799 | if test "$lt_cv_prog_gnu_ld" = yes; then |
3800 | case `/usr/bin/file conftest.$ac_objext` in |
3801 | *32-bit*) |
3802 | LD="${LD-ld} -melf32bsmip" |
3803 | ;; |
3804 | *N32*) |
3805 | LD="${LD-ld} -melf32bmipn32" |
3806 | ;; |
3807 | *64-bit*) |
3808 | LD="${LD-ld} -melf64bmip" |
3809 | ;; |
3810 | esac |
3811 | else |
3812 | case `/usr/bin/file conftest.$ac_objext` in |
3813 | *32-bit*) |
3814 | LD="${LD-ld} -32" |
3815 | ;; |
3816 | *N32*) |
3817 | LD="${LD-ld} -n32" |
3818 | ;; |
3819 | *64-bit*) |
3820 | LD="${LD-ld} -64" |
3821 | ;; |
3822 | esac |
3823 | fi |
3824 | fi |
3825 | rm -rf conftest* |
3826 | ;; |
3827 | |
3828 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
3829 | # Find out which ABI we are using. |
3830 | echo 'int i;' > conftest.$ac_ext |
3831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3832 | (eval $ac_compile) 2>&5 |
3833 | ac_status=$? |
3834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3835 | (exit $ac_status); }; then |
3836 | case `/usr/bin/file conftest.o` in |
3837 | *32-bit*) |
3838 | case $host in |
3839 | x86_64-*linux*) |
3840 | LD="${LD-ld} -m elf_i386" |
3841 | ;; |
3842 | ppc64-*linux*|powerpc64-*linux*) |
3843 | LD="${LD-ld} -m elf32ppclinux" |
3844 | ;; |
3845 | s390x-*linux*) |
3846 | LD="${LD-ld} -m elf_s390" |
3847 | ;; |
3848 | sparc64-*linux*) |
3849 | LD="${LD-ld} -m elf32_sparc" |
3850 | ;; |
3851 | esac |
3852 | ;; |
3853 | *64-bit*) |
3854 | case $host in |
3855 | x86_64-*linux*) |
3856 | LD="${LD-ld} -m elf_x86_64" |
3857 | ;; |
3858 | ppc*-*linux*|powerpc*-*linux*) |
3859 | LD="${LD-ld} -m elf64ppc" |
3860 | ;; |
3861 | s390*-*linux*) |
3862 | LD="${LD-ld} -m elf64_s390" |
3863 | ;; |
3864 | sparc*-*linux*) |
3865 | LD="${LD-ld} -m elf64_sparc" |
3866 | ;; |
3867 | esac |
3868 | ;; |
3869 | esac |
3870 | fi |
3871 | rm -rf conftest* |
3872 | ;; |
3873 | |
3874 | *-*-sco3.2v5*) |
3875 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
3876 | SAVE_CFLAGS="$CFLAGS" |
3877 | CFLAGS="$CFLAGS -belf" |
3878 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
3879 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
3880 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
3881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3882 | else |
3883 | ac_ext=c |
3884 | ac_cpp='$CPP $CPPFLAGS' |
3885 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3886 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3887 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3888 | |
3889 | cat >conftest.$ac_ext <<_ACEOF |
3890 | /* confdefs.h. */ |
3891 | _ACEOF |
3892 | cat confdefs.h >>conftest.$ac_ext |
3893 | cat >>conftest.$ac_ext <<_ACEOF |
3894 | /* end confdefs.h. */ |
3895 | |
3896 | int |
3897 | main () |
3898 | { |
3899 | |
3900 | ; |
3901 | return 0; |
3902 | } |
3903 | _ACEOF |
3904 | rm -f conftest.$ac_objext conftest$ac_exeext |
3905 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3906 | (eval $ac_link) 2>conftest.er1 |
3907 | ac_status=$? |
3908 | grep -v '^ *+' conftest.er1 >conftest.err |
3909 | rm -f conftest.er1 |
3910 | cat conftest.err >&5 |
3911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3912 | (exit $ac_status); } && |
3913 | { ac_try='test -z "$ac_c_werror_flag" |
3914 | || test ! -s conftest.err' |
3915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3916 | (eval $ac_try) 2>&5 |
3917 | ac_status=$? |
3918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3919 | (exit $ac_status); }; } && |
3920 | { ac_try='test -s conftest$ac_exeext' |
3921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3922 | (eval $ac_try) 2>&5 |
3923 | ac_status=$? |
3924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3925 | (exit $ac_status); }; }; then |
3926 | lt_cv_cc_needs_belf=yes |
3927 | else |
3928 | echo "$as_me: failed program was:" >&5 |
3929 | sed 's/^/| /' conftest.$ac_ext >&5 |
3930 | |
3931 | lt_cv_cc_needs_belf=no |
3932 | fi |
3933 | rm -f conftest.err conftest.$ac_objext \ |
3934 | conftest$ac_exeext conftest.$ac_ext |
3935 | ac_ext=c |
3936 | ac_cpp='$CPP $CPPFLAGS' |
3937 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3938 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3939 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3940 | |
3941 | fi |
3942 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
3943 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
3944 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
3945 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
3946 | CFLAGS="$SAVE_CFLAGS" |
3947 | fi |
3948 | ;; |
3949 | sparc*-*solaris*) |
3950 | # Find out which ABI we are using. |
3951 | echo 'int i;' > conftest.$ac_ext |
3952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3953 | (eval $ac_compile) 2>&5 |
3954 | ac_status=$? |
3955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3956 | (exit $ac_status); }; then |
3957 | case `/usr/bin/file conftest.o` in |
3958 | *64-bit*) |
3959 | case $lt_cv_prog_gnu_ld in |
3960 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
3961 | *) LD="${LD-ld} -64" ;; |
3962 | esac |
3963 | ;; |
3964 | esac |
3965 | fi |
3966 | rm -rf conftest* |
3967 | ;; |
3968 | |
3969 | |
3970 | esac |
3971 | |
3972 | need_locks="$enable_libtool_lock" |
3973 | |
3974 | |
3975 | ac_ext=c |
3976 | ac_cpp='$CPP $CPPFLAGS' |
3977 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3978 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3979 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3980 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3981 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
3982 | # On Suns, sometimes $CPP names a directory. |
3983 | if test -n "$CPP" && test -d "$CPP"; then |
3984 | CPP= |
3985 | fi |
3986 | if test -z "$CPP"; then |
3987 | if test "${ac_cv_prog_CPP+set}" = set; then |
3988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3989 | else |
3990 | # Double quotes because CPP needs to be expanded |
3991 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
3992 | do |
3993 | ac_preproc_ok=false |
3994 | for ac_c_preproc_warn_flag in '' yes |
3995 | do |
3996 | # Use a header file that comes with gcc, so configuring glibc |
3997 | # with a fresh cross-compiler works. |
3998 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3999 | # <limits.h> exists even on freestanding compilers. |
4000 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4001 | # not just through cpp. "Syntax error" is here to catch this case. |
4002 | cat >conftest.$ac_ext <<_ACEOF |
4003 | /* confdefs.h. */ |
4004 | _ACEOF |
4005 | cat confdefs.h >>conftest.$ac_ext |
4006 | cat >>conftest.$ac_ext <<_ACEOF |
4007 | /* end confdefs.h. */ |
4008 | #ifdef __STDC__ |
4009 | # include <limits.h> |
4010 | #else |
4011 | # include <assert.h> |
4012 | #endif |
4013 | Syntax error |
4014 | _ACEOF |
4015 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4016 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4017 | ac_status=$? |
4018 | grep -v '^ *+' conftest.er1 >conftest.err |
4019 | rm -f conftest.er1 |
4020 | cat conftest.err >&5 |
4021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4022 | (exit $ac_status); } >/dev/null; then |
4023 | if test -s conftest.err; then |
4024 | ac_cpp_err=$ac_c_preproc_warn_flag |
4025 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4026 | else |
4027 | ac_cpp_err= |
4028 | fi |
4029 | else |
4030 | ac_cpp_err=yes |
4031 | fi |
4032 | if test -z "$ac_cpp_err"; then |
4033 | : |
4034 | else |
4035 | echo "$as_me: failed program was:" >&5 |
4036 | sed 's/^/| /' conftest.$ac_ext >&5 |
4037 | |
4038 | # Broken: fails on valid input. |
4039 | continue |
4040 | fi |
4041 | rm -f conftest.err conftest.$ac_ext |
4042 | |
4043 | # OK, works on sane cases. Now check whether non-existent headers |
4044 | # can be detected and how. |
4045 | cat >conftest.$ac_ext <<_ACEOF |
4046 | /* confdefs.h. */ |
4047 | _ACEOF |
4048 | cat confdefs.h >>conftest.$ac_ext |
4049 | cat >>conftest.$ac_ext <<_ACEOF |
4050 | /* end confdefs.h. */ |
4051 | #include <ac_nonexistent.h> |
4052 | _ACEOF |
4053 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4054 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4055 | ac_status=$? |
4056 | grep -v '^ *+' conftest.er1 >conftest.err |
4057 | rm -f conftest.er1 |
4058 | cat conftest.err >&5 |
4059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4060 | (exit $ac_status); } >/dev/null; then |
4061 | if test -s conftest.err; then |
4062 | ac_cpp_err=$ac_c_preproc_warn_flag |
4063 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4064 | else |
4065 | ac_cpp_err= |
4066 | fi |
4067 | else |
4068 | ac_cpp_err=yes |
4069 | fi |
4070 | if test -z "$ac_cpp_err"; then |
4071 | # Broken: success on invalid input. |
4072 | continue |
4073 | else |
4074 | echo "$as_me: failed program was:" >&5 |
4075 | sed 's/^/| /' conftest.$ac_ext >&5 |
4076 | |
4077 | # Passes both tests. |
4078 | ac_preproc_ok=: |
4079 | break |
4080 | fi |
4081 | rm -f conftest.err conftest.$ac_ext |
4082 | |
4083 | done |
4084 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4085 | rm -f conftest.err conftest.$ac_ext |
4086 | if $ac_preproc_ok; then |
4087 | break |
4088 | fi |
4089 | |
4090 | done |
4091 | ac_cv_prog_CPP=$CPP |
4092 | |
4093 | fi |
4094 | CPP=$ac_cv_prog_CPP |
4095 | else |
4096 | ac_cv_prog_CPP=$CPP |
4097 | fi |
4098 | echo "$as_me:$LINENO: result: $CPP" >&5 |
4099 | echo "${ECHO_T}$CPP" >&6 |
4100 | ac_preproc_ok=false |
4101 | for ac_c_preproc_warn_flag in '' yes |
4102 | do |
4103 | # Use a header file that comes with gcc, so configuring glibc |
4104 | # with a fresh cross-compiler works. |
4105 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4106 | # <limits.h> exists even on freestanding compilers. |
4107 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4108 | # not just through cpp. "Syntax error" is here to catch this case. |
4109 | cat >conftest.$ac_ext <<_ACEOF |
4110 | /* confdefs.h. */ |
4111 | _ACEOF |
4112 | cat confdefs.h >>conftest.$ac_ext |
4113 | cat >>conftest.$ac_ext <<_ACEOF |
4114 | /* end confdefs.h. */ |
4115 | #ifdef __STDC__ |
4116 | # include <limits.h> |
4117 | #else |
4118 | # include <assert.h> |
4119 | #endif |
4120 | Syntax error |
4121 | _ACEOF |
4122 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4123 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4124 | ac_status=$? |
4125 | grep -v '^ *+' conftest.er1 >conftest.err |
4126 | rm -f conftest.er1 |
4127 | cat conftest.err >&5 |
4128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4129 | (exit $ac_status); } >/dev/null; then |
4130 | if test -s conftest.err; then |
4131 | ac_cpp_err=$ac_c_preproc_warn_flag |
4132 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4133 | else |
4134 | ac_cpp_err= |
4135 | fi |
4136 | else |
4137 | ac_cpp_err=yes |
4138 | fi |
4139 | if test -z "$ac_cpp_err"; then |
4140 | : |
4141 | else |
4142 | echo "$as_me: failed program was:" >&5 |
4143 | sed 's/^/| /' conftest.$ac_ext >&5 |
4144 | |
4145 | # Broken: fails on valid input. |
4146 | continue |
4147 | fi |
4148 | rm -f conftest.err conftest.$ac_ext |
4149 | |
4150 | # OK, works on sane cases. Now check whether non-existent headers |
4151 | # can be detected and how. |
4152 | cat >conftest.$ac_ext <<_ACEOF |
4153 | /* confdefs.h. */ |
4154 | _ACEOF |
4155 | cat confdefs.h >>conftest.$ac_ext |
4156 | cat >>conftest.$ac_ext <<_ACEOF |
4157 | /* end confdefs.h. */ |
4158 | #include <ac_nonexistent.h> |
4159 | _ACEOF |
4160 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4161 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4162 | ac_status=$? |
4163 | grep -v '^ *+' conftest.er1 >conftest.err |
4164 | rm -f conftest.er1 |
4165 | cat conftest.err >&5 |
4166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4167 | (exit $ac_status); } >/dev/null; then |
4168 | if test -s conftest.err; then |
4169 | ac_cpp_err=$ac_c_preproc_warn_flag |
4170 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4171 | else |
4172 | ac_cpp_err= |
4173 | fi |
4174 | else |
4175 | ac_cpp_err=yes |
4176 | fi |
4177 | if test -z "$ac_cpp_err"; then |
4178 | # Broken: success on invalid input. |
4179 | continue |
4180 | else |
4181 | echo "$as_me: failed program was:" >&5 |
4182 | sed 's/^/| /' conftest.$ac_ext >&5 |
4183 | |
4184 | # Passes both tests. |
4185 | ac_preproc_ok=: |
4186 | break |
4187 | fi |
4188 | rm -f conftest.err conftest.$ac_ext |
4189 | |
4190 | done |
4191 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4192 | rm -f conftest.err conftest.$ac_ext |
4193 | if $ac_preproc_ok; then |
4194 | : |
4195 | else |
4196 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
4197 | See \`config.log' for more details." >&5 |
4198 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
4199 | See \`config.log' for more details." >&2;} |
4200 | { (exit 1); exit 1; }; } |
4201 | fi |
4202 | |
4203 | ac_ext=c |
4204 | ac_cpp='$CPP $CPPFLAGS' |
4205 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4206 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4207 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4208 | |
4209 | |
4210 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4211 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
4212 | if test "${ac_cv_header_stdc+set}" = set; then |
4213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4214 | else |
4215 | cat >conftest.$ac_ext <<_ACEOF |
4216 | /* confdefs.h. */ |
4217 | _ACEOF |
4218 | cat confdefs.h >>conftest.$ac_ext |
4219 | cat >>conftest.$ac_ext <<_ACEOF |
4220 | /* end confdefs.h. */ |
4221 | #include <stdlib.h> |
4222 | #include <stdarg.h> |
4223 | #include <string.h> |
4224 | #include <float.h> |
4225 | |
4226 | int |
4227 | main () |
4228 | { |
4229 | |
4230 | ; |
4231 | return 0; |
4232 | } |
4233 | _ACEOF |
4234 | rm -f conftest.$ac_objext |
4235 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4236 | (eval $ac_compile) 2>conftest.er1 |
4237 | ac_status=$? |
4238 | grep -v '^ *+' conftest.er1 >conftest.err |
4239 | rm -f conftest.er1 |
4240 | cat conftest.err >&5 |
4241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4242 | (exit $ac_status); } && |
4243 | { ac_try='test -z "$ac_c_werror_flag" |
4244 | || test ! -s conftest.err' |
4245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4246 | (eval $ac_try) 2>&5 |
4247 | ac_status=$? |
4248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4249 | (exit $ac_status); }; } && |
4250 | { ac_try='test -s conftest.$ac_objext' |
4251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4252 | (eval $ac_try) 2>&5 |
4253 | ac_status=$? |
4254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4255 | (exit $ac_status); }; }; then |
4256 | ac_cv_header_stdc=yes |
4257 | else |
4258 | echo "$as_me: failed program was:" >&5 |
4259 | sed 's/^/| /' conftest.$ac_ext >&5 |
4260 | |
4261 | ac_cv_header_stdc=no |
4262 | fi |
4263 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4264 | |
4265 | if test $ac_cv_header_stdc = yes; then |
4266 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
4267 | cat >conftest.$ac_ext <<_ACEOF |
4268 | /* confdefs.h. */ |
4269 | _ACEOF |
4270 | cat confdefs.h >>conftest.$ac_ext |
4271 | cat >>conftest.$ac_ext <<_ACEOF |
4272 | /* end confdefs.h. */ |
4273 | #include <string.h> |
4274 | |
4275 | _ACEOF |
4276 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4277 | $EGREP "memchr" >/dev/null 2>&1; then |
4278 | : |
4279 | else |
4280 | ac_cv_header_stdc=no |
4281 | fi |
4282 | rm -f conftest* |
4283 | |
4284 | fi |
4285 | |
4286 | if test $ac_cv_header_stdc = yes; then |
4287 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
4288 | cat >conftest.$ac_ext <<_ACEOF |
4289 | /* confdefs.h. */ |
4290 | _ACEOF |
4291 | cat confdefs.h >>conftest.$ac_ext |
4292 | cat >>conftest.$ac_ext <<_ACEOF |
4293 | /* end confdefs.h. */ |
4294 | #include <stdlib.h> |
4295 | |
4296 | _ACEOF |
4297 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4298 | $EGREP "free" >/dev/null 2>&1; then |
4299 | : |
4300 | else |
4301 | ac_cv_header_stdc=no |
4302 | fi |
4303 | rm -f conftest* |
4304 | |
4305 | fi |
4306 | |
4307 | if test $ac_cv_header_stdc = yes; then |
4308 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
4309 | if test "$cross_compiling" = yes; then |
4310 | : |
4311 | else |
4312 | cat >conftest.$ac_ext <<_ACEOF |
4313 | /* confdefs.h. */ |
4314 | _ACEOF |
4315 | cat confdefs.h >>conftest.$ac_ext |
4316 | cat >>conftest.$ac_ext <<_ACEOF |
4317 | /* end confdefs.h. */ |
4318 | #include <ctype.h> |
4319 | #if ((' ' & 0x0FF) == 0x020) |
4320 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
4321 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
4322 | #else |
4323 | # define ISLOWER(c) \ |
4324 | (('a' <= (c) && (c) <= 'i') \ |
4325 | || ('j' <= (c) && (c) <= 'r') \ |
4326 | || ('s' <= (c) && (c) <= 'z')) |
4327 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4328 | #endif |
4329 | |
4330 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4331 | int |
4332 | main () |
4333 | { |
4334 | int i; |
4335 | for (i = 0; i < 256; i++) |
4336 | if (XOR (islower (i), ISLOWER (i)) |
4337 | || toupper (i) != TOUPPER (i)) |
4338 | exit(2); |
4339 | exit (0); |
4340 | } |
4341 | _ACEOF |
4342 | rm -f conftest$ac_exeext |
4343 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4344 | (eval $ac_link) 2>&5 |
4345 | ac_status=$? |
4346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4347 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4349 | (eval $ac_try) 2>&5 |
4350 | ac_status=$? |
4351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4352 | (exit $ac_status); }; }; then |
4353 | : |
4354 | else |
4355 | echo "$as_me: program exited with status $ac_status" >&5 |
4356 | echo "$as_me: failed program was:" >&5 |
4357 | sed 's/^/| /' conftest.$ac_ext >&5 |
4358 | |
4359 | ( exit $ac_status ) |
4360 | ac_cv_header_stdc=no |
4361 | fi |
4362 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4363 | fi |
4364 | fi |
4365 | fi |
4366 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4367 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
4368 | if test $ac_cv_header_stdc = yes; then |
4369 | |
4370 | cat >>confdefs.h <<\_ACEOF |
4371 | #define STDC_HEADERS 1 |
4372 | _ACEOF |
4373 | |
4374 | fi |
4375 | |
4376 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4377 | |
4378 | |
4379 | |
4380 | |
4381 | |
4382 | |
4383 | |
4384 | |
4385 | |
4386 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4387 | inttypes.h stdint.h unistd.h |
4388 | do |
4389 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4390 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4391 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4392 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4394 | else |
4395 | cat >conftest.$ac_ext <<_ACEOF |
4396 | /* confdefs.h. */ |
4397 | _ACEOF |
4398 | cat confdefs.h >>conftest.$ac_ext |
4399 | cat >>conftest.$ac_ext <<_ACEOF |
4400 | /* end confdefs.h. */ |
4401 | $ac_includes_default |
4402 | |
4403 | #include <$ac_header> |
4404 | _ACEOF |
4405 | rm -f conftest.$ac_objext |
4406 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4407 | (eval $ac_compile) 2>conftest.er1 |
4408 | ac_status=$? |
4409 | grep -v '^ *+' conftest.er1 >conftest.err |
4410 | rm -f conftest.er1 |
4411 | cat conftest.err >&5 |
4412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4413 | (exit $ac_status); } && |
4414 | { ac_try='test -z "$ac_c_werror_flag" |
4415 | || test ! -s conftest.err' |
4416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4417 | (eval $ac_try) 2>&5 |
4418 | ac_status=$? |
4419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4420 | (exit $ac_status); }; } && |
4421 | { ac_try='test -s conftest.$ac_objext' |
4422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4423 | (eval $ac_try) 2>&5 |
4424 | ac_status=$? |
4425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4426 | (exit $ac_status); }; }; then |
4427 | eval "$as_ac_Header=yes" |
4428 | else |
4429 | echo "$as_me: failed program was:" >&5 |
4430 | sed 's/^/| /' conftest.$ac_ext >&5 |
4431 | |
4432 | eval "$as_ac_Header=no" |
4433 | fi |
4434 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4435 | fi |
4436 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4437 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4438 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4439 | cat >>confdefs.h <<_ACEOF |
4440 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4441 | _ACEOF |
4442 | |
4443 | fi |
4444 | |
4445 | done |
4446 | |
4447 | |
4448 | |
4449 | for ac_header in dlfcn.h |
4450 | do |
4451 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4452 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4453 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4454 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4455 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4457 | fi |
4458 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4459 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4460 | else |
4461 | # Is the header compilable? |
4462 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4463 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
4464 | cat >conftest.$ac_ext <<_ACEOF |
4465 | /* confdefs.h. */ |
4466 | _ACEOF |
4467 | cat confdefs.h >>conftest.$ac_ext |
4468 | cat >>conftest.$ac_ext <<_ACEOF |
4469 | /* end confdefs.h. */ |
4470 | $ac_includes_default |
4471 | #include <$ac_header> |
4472 | _ACEOF |
4473 | rm -f conftest.$ac_objext |
4474 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4475 | (eval $ac_compile) 2>conftest.er1 |
4476 | ac_status=$? |
4477 | grep -v '^ *+' conftest.er1 >conftest.err |
4478 | rm -f conftest.er1 |
4479 | cat conftest.err >&5 |
4480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4481 | (exit $ac_status); } && |
4482 | { ac_try='test -z "$ac_c_werror_flag" |
4483 | || test ! -s conftest.err' |
4484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4485 | (eval $ac_try) 2>&5 |
4486 | ac_status=$? |
4487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4488 | (exit $ac_status); }; } && |
4489 | { ac_try='test -s conftest.$ac_objext' |
4490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4491 | (eval $ac_try) 2>&5 |
4492 | ac_status=$? |
4493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4494 | (exit $ac_status); }; }; then |
4495 | ac_header_compiler=yes |
4496 | else |
4497 | echo "$as_me: failed program was:" >&5 |
4498 | sed 's/^/| /' conftest.$ac_ext >&5 |
4499 | |
4500 | ac_header_compiler=no |
4501 | fi |
4502 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4503 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4504 | echo "${ECHO_T}$ac_header_compiler" >&6 |
4505 | |
4506 | # Is the header present? |
4507 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4508 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
4509 | cat >conftest.$ac_ext <<_ACEOF |
4510 | /* confdefs.h. */ |
4511 | _ACEOF |
4512 | cat confdefs.h >>conftest.$ac_ext |
4513 | cat >>conftest.$ac_ext <<_ACEOF |
4514 | /* end confdefs.h. */ |
4515 | #include <$ac_header> |
4516 | _ACEOF |
4517 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4518 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4519 | ac_status=$? |
4520 | grep -v '^ *+' conftest.er1 >conftest.err |
4521 | rm -f conftest.er1 |
4522 | cat conftest.err >&5 |
4523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4524 | (exit $ac_status); } >/dev/null; then |
4525 | if test -s conftest.err; then |
4526 | ac_cpp_err=$ac_c_preproc_warn_flag |
4527 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4528 | else |
4529 | ac_cpp_err= |
4530 | fi |
4531 | else |
4532 | ac_cpp_err=yes |
4533 | fi |
4534 | if test -z "$ac_cpp_err"; then |
4535 | ac_header_preproc=yes |
4536 | else |
4537 | echo "$as_me: failed program was:" >&5 |
4538 | sed 's/^/| /' conftest.$ac_ext >&5 |
4539 | |
4540 | ac_header_preproc=no |
4541 | fi |
4542 | rm -f conftest.err conftest.$ac_ext |
4543 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4544 | echo "${ECHO_T}$ac_header_preproc" >&6 |
4545 | |
4546 | # So? What about this header? |
4547 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4548 | yes:no: ) |
4549 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4550 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
4551 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4552 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
4553 | ac_header_preproc=yes |
4554 | ;; |
4555 | no:yes:* ) |
4556 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4557 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
4558 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4559 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
4560 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
4561 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
4562 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
4563 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
4564 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4565 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
4566 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4567 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
4568 | ( |
4569 | cat <<\_ASBOX |
4570 | ## -------------------------------------------------- ## |
4571 | ## Report this to courier-users@lists.sourceforge.net ## |
4572 | ## -------------------------------------------------- ## |
4573 | _ASBOX |
4574 | ) | |
4575 | sed "s/^/$as_me: WARNING: /" >&2 |
4576 | ;; |
4577 | esac |
4578 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4579 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4580 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4582 | else |
4583 | eval "$as_ac_Header=\$ac_header_preproc" |
4584 | fi |
4585 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4586 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4587 | |
4588 | fi |
4589 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4590 | cat >>confdefs.h <<_ACEOF |
4591 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4592 | _ACEOF |
4593 | |
4594 | fi |
4595 | |
4596 | done |
4597 | |
4598 | ac_ext=cc |
4599 | ac_cpp='$CXXCPP $CPPFLAGS' |
4600 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4601 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4602 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4603 | if test -n "$ac_tool_prefix"; then |
4604 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
4605 | do |
4606 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
4607 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
4608 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4609 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4610 | if test "${ac_cv_prog_CXX+set}" = set; then |
4611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4612 | else |
4613 | if test -n "$CXX"; then |
4614 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
4615 | else |
4616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4617 | for as_dir in $PATH |
4618 | do |
4619 | IFS=$as_save_IFS |
4620 | test -z "$as_dir" && as_dir=. |
4621 | for ac_exec_ext in '' $ac_executable_extensions; do |
4622 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4623 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
4624 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4625 | break 2 |
4626 | fi |
4627 | done |
4628 | done |
4629 | |
4630 | fi |
4631 | fi |
4632 | CXX=$ac_cv_prog_CXX |
4633 | if test -n "$CXX"; then |
4634 | echo "$as_me:$LINENO: result: $CXX" >&5 |
4635 | echo "${ECHO_T}$CXX" >&6 |
4636 | else |
4637 | echo "$as_me:$LINENO: result: no" >&5 |
4638 | echo "${ECHO_T}no" >&6 |
4639 | fi |
4640 | |
4641 | test -n "$CXX" && break |
4642 | done |
4643 | fi |
4644 | if test -z "$CXX"; then |
4645 | ac_ct_CXX=$CXX |
4646 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
4647 | do |
4648 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
4649 | set dummy $ac_prog; ac_word=$2 |
4650 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4651 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4652 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
4653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4654 | else |
4655 | if test -n "$ac_ct_CXX"; then |
4656 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
4657 | else |
4658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4659 | for as_dir in $PATH |
4660 | do |
4661 | IFS=$as_save_IFS |
4662 | test -z "$as_dir" && as_dir=. |
4663 | for ac_exec_ext in '' $ac_executable_extensions; do |
4664 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4665 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
4666 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4667 | break 2 |
4668 | fi |
4669 | done |
4670 | done |
4671 | |
4672 | fi |
4673 | fi |
4674 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4675 | if test -n "$ac_ct_CXX"; then |
4676 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
4677 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
4678 | else |
4679 | echo "$as_me:$LINENO: result: no" >&5 |
4680 | echo "${ECHO_T}no" >&6 |
4681 | fi |
4682 | |
4683 | test -n "$ac_ct_CXX" && break |
4684 | done |
4685 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
4686 | |
4687 | CXX=$ac_ct_CXX |
4688 | fi |
4689 | |
4690 | |
4691 | # Provide some information about the compiler. |
4692 | echo "$as_me:$LINENO:" \ |
4693 | "checking for C++ compiler version" >&5 |
4694 | ac_compiler=`set X $ac_compile; echo $2` |
4695 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
4696 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
4697 | ac_status=$? |
4698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4699 | (exit $ac_status); } |
4700 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
4701 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
4702 | ac_status=$? |
4703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4704 | (exit $ac_status); } |
4705 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
4706 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
4707 | ac_status=$? |
4708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4709 | (exit $ac_status); } |
4710 | |
4711 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
4712 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
4713 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
4714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4715 | else |
4716 | cat >conftest.$ac_ext <<_ACEOF |
4717 | /* confdefs.h. */ |
4718 | _ACEOF |
4719 | cat confdefs.h >>conftest.$ac_ext |
4720 | cat >>conftest.$ac_ext <<_ACEOF |
4721 | /* end confdefs.h. */ |
4722 | |
4723 | int |
4724 | main () |
4725 | { |
4726 | #ifndef __GNUC__ |
4727 | choke me |
4728 | #endif |
4729 | |
4730 | ; |
4731 | return 0; |
4732 | } |
4733 | _ACEOF |
4734 | rm -f conftest.$ac_objext |
4735 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4736 | (eval $ac_compile) 2>conftest.er1 |
4737 | ac_status=$? |
4738 | grep -v '^ *+' conftest.er1 >conftest.err |
4739 | rm -f conftest.er1 |
4740 | cat conftest.err >&5 |
4741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4742 | (exit $ac_status); } && |
4743 | { ac_try='test -z "$ac_cxx_werror_flag" |
4744 | || test ! -s conftest.err' |
4745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4746 | (eval $ac_try) 2>&5 |
4747 | ac_status=$? |
4748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4749 | (exit $ac_status); }; } && |
4750 | { ac_try='test -s conftest.$ac_objext' |
4751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4752 | (eval $ac_try) 2>&5 |
4753 | ac_status=$? |
4754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4755 | (exit $ac_status); }; }; then |
4756 | ac_compiler_gnu=yes |
4757 | else |
4758 | echo "$as_me: failed program was:" >&5 |
4759 | sed 's/^/| /' conftest.$ac_ext >&5 |
4760 | |
4761 | ac_compiler_gnu=no |
4762 | fi |
4763 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4764 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4765 | |
4766 | fi |
4767 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
4768 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
4769 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
4770 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4771 | ac_save_CXXFLAGS=$CXXFLAGS |
4772 | CXXFLAGS="-g" |
4773 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
4774 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
4775 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
4776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4777 | else |
4778 | cat >conftest.$ac_ext <<_ACEOF |
4779 | /* confdefs.h. */ |
4780 | _ACEOF |
4781 | cat confdefs.h >>conftest.$ac_ext |
4782 | cat >>conftest.$ac_ext <<_ACEOF |
4783 | /* end confdefs.h. */ |
4784 | |
4785 | int |
4786 | main () |
4787 | { |
4788 | |
4789 | ; |
4790 | return 0; |
4791 | } |
4792 | _ACEOF |
4793 | rm -f conftest.$ac_objext |
4794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4795 | (eval $ac_compile) 2>conftest.er1 |
4796 | ac_status=$? |
4797 | grep -v '^ *+' conftest.er1 >conftest.err |
4798 | rm -f conftest.er1 |
4799 | cat conftest.err >&5 |
4800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4801 | (exit $ac_status); } && |
4802 | { ac_try='test -z "$ac_cxx_werror_flag" |
4803 | || test ! -s conftest.err' |
4804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4805 | (eval $ac_try) 2>&5 |
4806 | ac_status=$? |
4807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4808 | (exit $ac_status); }; } && |
4809 | { ac_try='test -s conftest.$ac_objext' |
4810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4811 | (eval $ac_try) 2>&5 |
4812 | ac_status=$? |
4813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4814 | (exit $ac_status); }; }; then |
4815 | ac_cv_prog_cxx_g=yes |
4816 | else |
4817 | echo "$as_me: failed program was:" >&5 |
4818 | sed 's/^/| /' conftest.$ac_ext >&5 |
4819 | |
4820 | ac_cv_prog_cxx_g=no |
4821 | fi |
4822 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4823 | fi |
4824 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
4825 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
4826 | if test "$ac_test_CXXFLAGS" = set; then |
4827 | CXXFLAGS=$ac_save_CXXFLAGS |
4828 | elif test $ac_cv_prog_cxx_g = yes; then |
4829 | if test "$GXX" = yes; then |
4830 | CXXFLAGS="-g -O2" |
4831 | else |
4832 | CXXFLAGS="-g" |
4833 | fi |
4834 | else |
4835 | if test "$GXX" = yes; then |
4836 | CXXFLAGS="-O2" |
4837 | else |
4838 | CXXFLAGS= |
4839 | fi |
4840 | fi |
4841 | for ac_declaration in \ |
4842 | '' \ |
4843 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
4844 | 'extern "C" void std::exit (int); using std::exit;' \ |
4845 | 'extern "C" void exit (int) throw ();' \ |
4846 | 'extern "C" void exit (int);' \ |
4847 | 'void exit (int);' |
4848 | do |
4849 | cat >conftest.$ac_ext <<_ACEOF |
4850 | /* confdefs.h. */ |
4851 | _ACEOF |
4852 | cat confdefs.h >>conftest.$ac_ext |
4853 | cat >>conftest.$ac_ext <<_ACEOF |
4854 | /* end confdefs.h. */ |
4855 | $ac_declaration |
4856 | #include <stdlib.h> |
4857 | int |
4858 | main () |
4859 | { |
4860 | exit (42); |
4861 | ; |
4862 | return 0; |
4863 | } |
4864 | _ACEOF |
4865 | rm -f conftest.$ac_objext |
4866 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4867 | (eval $ac_compile) 2>conftest.er1 |
4868 | ac_status=$? |
4869 | grep -v '^ *+' conftest.er1 >conftest.err |
4870 | rm -f conftest.er1 |
4871 | cat conftest.err >&5 |
4872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4873 | (exit $ac_status); } && |
4874 | { ac_try='test -z "$ac_cxx_werror_flag" |
4875 | || test ! -s conftest.err' |
4876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4877 | (eval $ac_try) 2>&5 |
4878 | ac_status=$? |
4879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4880 | (exit $ac_status); }; } && |
4881 | { ac_try='test -s conftest.$ac_objext' |
4882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4883 | (eval $ac_try) 2>&5 |
4884 | ac_status=$? |
4885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4886 | (exit $ac_status); }; }; then |
4887 | : |
4888 | else |
4889 | echo "$as_me: failed program was:" >&5 |
4890 | sed 's/^/| /' conftest.$ac_ext >&5 |
4891 | |
4892 | continue |
4893 | fi |
4894 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4895 | cat >conftest.$ac_ext <<_ACEOF |
4896 | /* confdefs.h. */ |
4897 | _ACEOF |
4898 | cat confdefs.h >>conftest.$ac_ext |
4899 | cat >>conftest.$ac_ext <<_ACEOF |
4900 | /* end confdefs.h. */ |
4901 | $ac_declaration |
4902 | int |
4903 | main () |
4904 | { |
4905 | exit (42); |
4906 | ; |
4907 | return 0; |
4908 | } |
4909 | _ACEOF |
4910 | rm -f conftest.$ac_objext |
4911 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4912 | (eval $ac_compile) 2>conftest.er1 |
4913 | ac_status=$? |
4914 | grep -v '^ *+' conftest.er1 >conftest.err |
4915 | rm -f conftest.er1 |
4916 | cat conftest.err >&5 |
4917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4918 | (exit $ac_status); } && |
4919 | { ac_try='test -z "$ac_cxx_werror_flag" |
4920 | || test ! -s conftest.err' |
4921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4922 | (eval $ac_try) 2>&5 |
4923 | ac_status=$? |
4924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4925 | (exit $ac_status); }; } && |
4926 | { ac_try='test -s conftest.$ac_objext' |
4927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4928 | (eval $ac_try) 2>&5 |
4929 | ac_status=$? |
4930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4931 | (exit $ac_status); }; }; then |
4932 | break |
4933 | else |
4934 | echo "$as_me: failed program was:" >&5 |
4935 | sed 's/^/| /' conftest.$ac_ext >&5 |
4936 | |
4937 | fi |
4938 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4939 | done |
4940 | rm -f conftest* |
4941 | if test -n "$ac_declaration"; then |
4942 | echo '#ifdef __cplusplus' >>confdefs.h |
4943 | echo $ac_declaration >>confdefs.h |
4944 | echo '#endif' >>confdefs.h |
4945 | fi |
4946 | |
4947 | ac_ext=cc |
4948 | ac_cpp='$CXXCPP $CPPFLAGS' |
4949 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4950 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4951 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4952 | |
4953 | depcc="$CXX" am_compiler_list= |
4954 | |
4955 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
4956 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
4957 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
4958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4959 | else |
4960 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4961 | # We make a subdir and do the tests there. Otherwise we can end up |
4962 | # making bogus files that we don't know about and never remove. For |
4963 | # instance it was reported that on HP-UX the gcc test will end up |
4964 | # making a dummy file named `D' -- because `-MD' means `put the output |
4965 | # in D'. |
4966 | mkdir conftest.dir |
4967 | # Copy depcomp to subdir because otherwise we won't find it if we're |
4968 | # using a relative directory. |
4969 | cp "$am_depcomp" conftest.dir |
4970 | cd conftest.dir |
4971 | # We will build objects and dependencies in a subdirectory because |
4972 | # it helps to detect inapplicable dependency modes. For instance |
4973 | # both Tru64's cc and ICC support -MD to output dependencies as a |
4974 | # side effect of compilation, but ICC will put the dependencies in |
4975 | # the current directory while Tru64 will put them in the object |
4976 | # directory. |
4977 | mkdir sub |
4978 | |
4979 | am_cv_CXX_dependencies_compiler_type=none |
4980 | if test "$am_compiler_list" = ""; then |
4981 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
4982 | fi |
4983 | for depmode in $am_compiler_list; do |
4984 | # Setup a source with many dependencies, because some compilers |
4985 | # like to wrap large dependency lists on column 80 (with \), and |
4986 | # we should not choose a depcomp mode which is confused by this. |
4987 | # |
4988 | # We need to recreate these files for each test, as the compiler may |
4989 | # overwrite some of them when testing with obscure command lines. |
4990 | # This happens at least with the AIX C compiler. |
4991 | : > sub/conftest.c |
4992 | for i in 1 2 3 4 5 6; do |
4993 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
4994 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
4995 | # Solaris 8's {/usr,}/bin/sh. |
4996 | touch sub/conftst$i.h |
4997 | done |
4998 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
4999 | |
5000 | case $depmode in |
5001 | nosideeffect) |
5002 | # after this tag, mechanisms are not by side-effect, so they'll |
5003 | # only be used when explicitly requested |
5004 | if test "x$enable_dependency_tracking" = xyes; then |
5005 | continue |
5006 | else |
5007 | break |
5008 | fi |
5009 | ;; |
5010 | none) break ;; |
5011 | esac |
5012 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5013 | # mode. It turns out that the SunPro C++ compiler does not properly |
5014 | # handle `-M -o', and we need to detect this. |
5015 | if depmode=$depmode \ |
5016 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
5017 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5018 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
5019 | >/dev/null 2>conftest.err && |
5020 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5021 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
5022 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5023 | # icc doesn't choke on unknown options, it will just issue warnings |
5024 | # or remarks (even with -Werror). So we grep stderr for any message |
5025 | # that says an option was ignored or not supported. |
5026 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
5027 | # icc: Command line warning: ignoring option '-M'; no argument required |
5028 | # The diagnosis changed in icc 8.0: |
5029 | # icc: Command line remark: option '-MP' not supported |
5030 | if (grep 'ignoring option' conftest.err || |
5031 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
5032 | am_cv_CXX_dependencies_compiler_type=$depmode |
5033 | break |
5034 | fi |
5035 | fi |
5036 | done |
5037 | |
5038 | cd .. |
5039 | rm -rf conftest.dir |
5040 | else |
5041 | am_cv_CXX_dependencies_compiler_type=none |
5042 | fi |
5043 | |
5044 | fi |
5045 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
5046 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
5047 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
5048 | |
5049 | |
5050 | |
5051 | if |
5052 | test "x$enable_dependency_tracking" != xno \ |
5053 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
5054 | am__fastdepCXX_TRUE= |
5055 | am__fastdepCXX_FALSE='#' |
5056 | else |
5057 | am__fastdepCXX_TRUE='#' |
5058 | am__fastdepCXX_FALSE= |
5059 | fi |
5060 | |
5061 | |
5062 | |
5063 | |
5064 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
5065 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
5066 | (test "X$CXX" != "Xg++"))) ; then |
5067 | ac_ext=cc |
5068 | ac_cpp='$CXXCPP $CPPFLAGS' |
5069 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5070 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5071 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5072 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
5073 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
5074 | if test -z "$CXXCPP"; then |
5075 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
5076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5077 | else |
5078 | # Double quotes because CXXCPP needs to be expanded |
5079 | for CXXCPP in "$CXX -E" "/lib/cpp" |
5080 | do |
5081 | ac_preproc_ok=false |
5082 | for ac_cxx_preproc_warn_flag in '' yes |
5083 | do |
5084 | # Use a header file that comes with gcc, so configuring glibc |
5085 | # with a fresh cross-compiler works. |
5086 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5087 | # <limits.h> exists even on freestanding compilers. |
5088 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5089 | # not just through cpp. "Syntax error" is here to catch this case. |
5090 | cat >conftest.$ac_ext <<_ACEOF |
5091 | /* confdefs.h. */ |
5092 | _ACEOF |
5093 | cat confdefs.h >>conftest.$ac_ext |
5094 | cat >>conftest.$ac_ext <<_ACEOF |
5095 | /* end confdefs.h. */ |
5096 | #ifdef __STDC__ |
5097 | # include <limits.h> |
5098 | #else |
5099 | # include <assert.h> |
5100 | #endif |
5101 | Syntax error |
5102 | _ACEOF |
5103 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5104 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5105 | ac_status=$? |
5106 | grep -v '^ *+' conftest.er1 >conftest.err |
5107 | rm -f conftest.er1 |
5108 | cat conftest.err >&5 |
5109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5110 | (exit $ac_status); } >/dev/null; then |
5111 | if test -s conftest.err; then |
5112 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5113 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5114 | else |
5115 | ac_cpp_err= |
5116 | fi |
5117 | else |
5118 | ac_cpp_err=yes |
5119 | fi |
5120 | if test -z "$ac_cpp_err"; then |
5121 | : |
5122 | else |
5123 | echo "$as_me: failed program was:" >&5 |
5124 | sed 's/^/| /' conftest.$ac_ext >&5 |
5125 | |
5126 | # Broken: fails on valid input. |
5127 | continue |
5128 | fi |
5129 | rm -f conftest.err conftest.$ac_ext |
5130 | |
5131 | # OK, works on sane cases. Now check whether non-existent headers |
5132 | # can be detected and how. |
5133 | cat >conftest.$ac_ext <<_ACEOF |
5134 | /* confdefs.h. */ |
5135 | _ACEOF |
5136 | cat confdefs.h >>conftest.$ac_ext |
5137 | cat >>conftest.$ac_ext <<_ACEOF |
5138 | /* end confdefs.h. */ |
5139 | #include <ac_nonexistent.h> |
5140 | _ACEOF |
5141 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5142 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5143 | ac_status=$? |
5144 | grep -v '^ *+' conftest.er1 >conftest.err |
5145 | rm -f conftest.er1 |
5146 | cat conftest.err >&5 |
5147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5148 | (exit $ac_status); } >/dev/null; then |
5149 | if test -s conftest.err; then |
5150 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5151 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5152 | else |
5153 | ac_cpp_err= |
5154 | fi |
5155 | else |
5156 | ac_cpp_err=yes |
5157 | fi |
5158 | if test -z "$ac_cpp_err"; then |
5159 | # Broken: success on invalid input. |
5160 | continue |
5161 | else |
5162 | echo "$as_me: failed program was:" >&5 |
5163 | sed 's/^/| /' conftest.$ac_ext >&5 |
5164 | |
5165 | # Passes both tests. |
5166 | ac_preproc_ok=: |
5167 | break |
5168 | fi |
5169 | rm -f conftest.err conftest.$ac_ext |
5170 | |
5171 | done |
5172 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5173 | rm -f conftest.err conftest.$ac_ext |
5174 | if $ac_preproc_ok; then |
5175 | break |
5176 | fi |
5177 | |
5178 | done |
5179 | ac_cv_prog_CXXCPP=$CXXCPP |
5180 | |
5181 | fi |
5182 | CXXCPP=$ac_cv_prog_CXXCPP |
5183 | else |
5184 | ac_cv_prog_CXXCPP=$CXXCPP |
5185 | fi |
5186 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
5187 | echo "${ECHO_T}$CXXCPP" >&6 |
5188 | ac_preproc_ok=false |
5189 | for ac_cxx_preproc_warn_flag in '' yes |
5190 | do |
5191 | # Use a header file that comes with gcc, so configuring glibc |
5192 | # with a fresh cross-compiler works. |
5193 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5194 | # <limits.h> exists even on freestanding compilers. |
5195 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5196 | # not just through cpp. "Syntax error" is here to catch this case. |
5197 | cat >conftest.$ac_ext <<_ACEOF |
5198 | /* confdefs.h. */ |
5199 | _ACEOF |
5200 | cat confdefs.h >>conftest.$ac_ext |
5201 | cat >>conftest.$ac_ext <<_ACEOF |
5202 | /* end confdefs.h. */ |
5203 | #ifdef __STDC__ |
5204 | # include <limits.h> |
5205 | #else |
5206 | # include <assert.h> |
5207 | #endif |
5208 | Syntax error |
5209 | _ACEOF |
5210 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5211 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5212 | ac_status=$? |
5213 | grep -v '^ *+' conftest.er1 >conftest.err |
5214 | rm -f conftest.er1 |
5215 | cat conftest.err >&5 |
5216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5217 | (exit $ac_status); } >/dev/null; then |
5218 | if test -s conftest.err; then |
5219 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5220 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5221 | else |
5222 | ac_cpp_err= |
5223 | fi |
5224 | else |
5225 | ac_cpp_err=yes |
5226 | fi |
5227 | if test -z "$ac_cpp_err"; then |
5228 | : |
5229 | else |
5230 | echo "$as_me: failed program was:" >&5 |
5231 | sed 's/^/| /' conftest.$ac_ext >&5 |
5232 | |
5233 | # Broken: fails on valid input. |
5234 | continue |
5235 | fi |
5236 | rm -f conftest.err conftest.$ac_ext |
5237 | |
5238 | # OK, works on sane cases. Now check whether non-existent headers |
5239 | # can be detected and how. |
5240 | cat >conftest.$ac_ext <<_ACEOF |
5241 | /* confdefs.h. */ |
5242 | _ACEOF |
5243 | cat confdefs.h >>conftest.$ac_ext |
5244 | cat >>conftest.$ac_ext <<_ACEOF |
5245 | /* end confdefs.h. */ |
5246 | #include <ac_nonexistent.h> |
5247 | _ACEOF |
5248 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5249 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5250 | ac_status=$? |
5251 | grep -v '^ *+' conftest.er1 >conftest.err |
5252 | rm -f conftest.er1 |
5253 | cat conftest.err >&5 |
5254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5255 | (exit $ac_status); } >/dev/null; then |
5256 | if test -s conftest.err; then |
5257 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5258 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5259 | else |
5260 | ac_cpp_err= |
5261 | fi |
5262 | else |
5263 | ac_cpp_err=yes |
5264 | fi |
5265 | if test -z "$ac_cpp_err"; then |
5266 | # Broken: success on invalid input. |
5267 | continue |
5268 | else |
5269 | echo "$as_me: failed program was:" >&5 |
5270 | sed 's/^/| /' conftest.$ac_ext >&5 |
5271 | |
5272 | # Passes both tests. |
5273 | ac_preproc_ok=: |
5274 | break |
5275 | fi |
5276 | rm -f conftest.err conftest.$ac_ext |
5277 | |
5278 | done |
5279 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5280 | rm -f conftest.err conftest.$ac_ext |
5281 | if $ac_preproc_ok; then |
5282 | : |
5283 | else |
5284 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5285 | See \`config.log' for more details." >&5 |
5286 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5287 | See \`config.log' for more details." >&2;} |
5288 | { (exit 1); exit 1; }; } |
5289 | fi |
5290 | |
5291 | ac_ext=cc |
5292 | ac_cpp='$CXXCPP $CPPFLAGS' |
5293 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5294 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5295 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5296 | |
5297 | fi |
5298 | |
5299 | |
5300 | ac_ext=f |
5301 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
5302 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5303 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
5304 | if test -n "$ac_tool_prefix"; then |
5305 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
5306 | do |
5307 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5308 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
5309 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5310 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5311 | if test "${ac_cv_prog_F77+set}" = set; then |
5312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5313 | else |
5314 | if test -n "$F77"; then |
5315 | ac_cv_prog_F77="$F77" # Let the user override the test. |
5316 | else |
5317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5318 | for as_dir in $PATH |
5319 | do |
5320 | IFS=$as_save_IFS |
5321 | test -z "$as_dir" && as_dir=. |
5322 | for ac_exec_ext in '' $ac_executable_extensions; do |
5323 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5324 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
5325 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5326 | break 2 |
5327 | fi |
5328 | done |
5329 | done |
5330 | |
5331 | fi |
5332 | fi |
5333 | F77=$ac_cv_prog_F77 |
5334 | if test -n "$F77"; then |
5335 | echo "$as_me:$LINENO: result: $F77" >&5 |
5336 | echo "${ECHO_T}$F77" >&6 |
5337 | else |
5338 | echo "$as_me:$LINENO: result: no" >&5 |
5339 | echo "${ECHO_T}no" >&6 |
5340 | fi |
5341 | |
5342 | test -n "$F77" && break |
5343 | done |
5344 | fi |
5345 | if test -z "$F77"; then |
5346 | ac_ct_F77=$F77 |
5347 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
5348 | do |
5349 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5350 | set dummy $ac_prog; ac_word=$2 |
5351 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5352 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5353 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
5354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5355 | else |
5356 | if test -n "$ac_ct_F77"; then |
5357 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
5358 | else |
5359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5360 | for as_dir in $PATH |
5361 | do |
5362 | IFS=$as_save_IFS |
5363 | test -z "$as_dir" && as_dir=. |
5364 | for ac_exec_ext in '' $ac_executable_extensions; do |
5365 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5366 | ac_cv_prog_ac_ct_F77="$ac_prog" |
5367 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5368 | break 2 |
5369 | fi |
5370 | done |
5371 | done |
5372 | |
5373 | fi |
5374 | fi |
5375 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
5376 | if test -n "$ac_ct_F77"; then |
5377 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
5378 | echo "${ECHO_T}$ac_ct_F77" >&6 |
5379 | else |
5380 | echo "$as_me:$LINENO: result: no" >&5 |
5381 | echo "${ECHO_T}no" >&6 |
5382 | fi |
5383 | |
5384 | test -n "$ac_ct_F77" && break |
5385 | done |
5386 | |
5387 | F77=$ac_ct_F77 |
5388 | fi |
5389 | |
5390 | |
5391 | # Provide some information about the compiler. |
5392 | echo "$as_me:5392:" \ |
5393 | "checking for Fortran 77 compiler version" >&5 |
5394 | ac_compiler=`set X $ac_compile; echo $2` |
5395 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
5396 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
5397 | ac_status=$? |
5398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5399 | (exit $ac_status); } |
5400 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
5401 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
5402 | ac_status=$? |
5403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5404 | (exit $ac_status); } |
5405 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
5406 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
5407 | ac_status=$? |
5408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5409 | (exit $ac_status); } |
5410 | rm -f a.out |
5411 | |
5412 | # If we don't use `.F' as extension, the preprocessor is not run on the |
5413 | # input file. (Note that this only needs to work for GNU compilers.) |
5414 | ac_save_ext=$ac_ext |
5415 | ac_ext=F |
5416 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
5417 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
5418 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
5419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5420 | else |
5421 | cat >conftest.$ac_ext <<_ACEOF |
5422 | program main |
5423 | #ifndef __GNUC__ |
5424 | choke me |
5425 | #endif |
5426 | |
5427 | end |
5428 | _ACEOF |
5429 | rm -f conftest.$ac_objext |
5430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5431 | (eval $ac_compile) 2>conftest.er1 |
5432 | ac_status=$? |
5433 | grep -v '^ *+' conftest.er1 >conftest.err |
5434 | rm -f conftest.er1 |
5435 | cat conftest.err >&5 |
5436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5437 | (exit $ac_status); } && |
5438 | { ac_try='test -z "$ac_f77_werror_flag" |
5439 | || test ! -s conftest.err' |
5440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5441 | (eval $ac_try) 2>&5 |
5442 | ac_status=$? |
5443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5444 | (exit $ac_status); }; } && |
5445 | { ac_try='test -s conftest.$ac_objext' |
5446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5447 | (eval $ac_try) 2>&5 |
5448 | ac_status=$? |
5449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5450 | (exit $ac_status); }; }; then |
5451 | ac_compiler_gnu=yes |
5452 | else |
5453 | echo "$as_me: failed program was:" >&5 |
5454 | sed 's/^/| /' conftest.$ac_ext >&5 |
5455 | |
5456 | ac_compiler_gnu=no |
5457 | fi |
5458 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5459 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
5460 | |
5461 | fi |
5462 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
5463 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
5464 | ac_ext=$ac_save_ext |
5465 | ac_test_FFLAGS=${FFLAGS+set} |
5466 | ac_save_FFLAGS=$FFLAGS |
5467 | FFLAGS= |
5468 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
5469 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
5470 | if test "${ac_cv_prog_f77_g+set}" = set; then |
5471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5472 | else |
5473 | FFLAGS=-g |
5474 | cat >conftest.$ac_ext <<_ACEOF |
5475 | program main |
5476 | |
5477 | end |
5478 | _ACEOF |
5479 | rm -f conftest.$ac_objext |
5480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5481 | (eval $ac_compile) 2>conftest.er1 |
5482 | ac_status=$? |
5483 | grep -v '^ *+' conftest.er1 >conftest.err |
5484 | rm -f conftest.er1 |
5485 | cat conftest.err >&5 |
5486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5487 | (exit $ac_status); } && |
5488 | { ac_try='test -z "$ac_f77_werror_flag" |
5489 | || test ! -s conftest.err' |
5490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5491 | (eval $ac_try) 2>&5 |
5492 | ac_status=$? |
5493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5494 | (exit $ac_status); }; } && |
5495 | { ac_try='test -s conftest.$ac_objext' |
5496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5497 | (eval $ac_try) 2>&5 |
5498 | ac_status=$? |
5499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5500 | (exit $ac_status); }; }; then |
5501 | ac_cv_prog_f77_g=yes |
5502 | else |
5503 | echo "$as_me: failed program was:" >&5 |
5504 | sed 's/^/| /' conftest.$ac_ext >&5 |
5505 | |
5506 | ac_cv_prog_f77_g=no |
5507 | fi |
5508 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5509 | |
5510 | fi |
5511 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
5512 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
5513 | if test "$ac_test_FFLAGS" = set; then |
5514 | FFLAGS=$ac_save_FFLAGS |
5515 | elif test $ac_cv_prog_f77_g = yes; then |
5516 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
5517 | FFLAGS="-g -O2" |
5518 | else |
5519 | FFLAGS="-g" |
5520 | fi |
5521 | else |
5522 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
5523 | FFLAGS="-O2" |
5524 | else |
5525 | FFLAGS= |
5526 | fi |
5527 | fi |
5528 | |
5529 | G77=`test $ac_compiler_gnu = yes && echo yes` |
5530 | ac_ext=c |
5531 | ac_cpp='$CPP $CPPFLAGS' |
5532 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5533 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5534 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5535 | |
5536 | |
5537 | |
5538 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
5539 | |
5540 | # find the maximum length of command line arguments |
5541 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
5542 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
5543 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
5544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5545 | else |
5546 | i=0 |
5547 | teststring="ABCD" |
5548 | |
5549 | case $build_os in |
5550 | msdosdjgpp*) |
5551 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
5552 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
5553 | # during glob expansion). Even if it were fixed, the result of this |
5554 | # check would be larger than it should be. |
5555 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
5556 | ;; |
5557 | |
5558 | gnu*) |
5559 | # Under GNU Hurd, this test is not required because there is |
5560 | # no limit to the length of command line arguments. |
5561 | # Libtool will interpret -1 as no limit whatsoever |
5562 | lt_cv_sys_max_cmd_len=-1; |
5563 | ;; |
5564 | |
5565 | cygwin* | mingw*) |
5566 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5567 | # about 5 minutes as the teststring grows exponentially. |
5568 | # Worse, since 9x/ME are not pre-emptively multitasking, |
5569 | # you end up with a "frozen" computer, even though with patience |
5570 | # the test eventually succeeds (with a max line length of 256k). |
5571 | # Instead, let's just punt: use the minimum linelength reported by |
5572 | # all of the supported platforms: 8192 (on NT/2K/XP). |
5573 | lt_cv_sys_max_cmd_len=8192; |
5574 | ;; |
5575 | |
5576 | amigaos*) |
5577 | # On AmigaOS with pdksh, this test takes hours, literally. |
5578 | # So we just punt and use a minimum line length of 8192. |
5579 | lt_cv_sys_max_cmd_len=8192; |
5580 | ;; |
5581 | |
5582 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
5583 | # This has been around since 386BSD, at least. Likely further. |
5584 | if test -x /sbin/sysctl; then |
5585 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
5586 | elif test -x /usr/sbin/sysctl; then |
5587 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
5588 | else |
5589 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
5590 | fi |
5591 | # And add a safety zone |
5592 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5593 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
5594 | ;; |
5595 | |
5596 | interix*) |
5597 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
5598 | lt_cv_sys_max_cmd_len=196608 |
5599 | ;; |
5600 | |
5601 | osf*) |
5602 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
5603 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
5604 | # nice to cause kernel panics so lets avoid the loop below. |
5605 | # First set a reasonable default. |
5606 | lt_cv_sys_max_cmd_len=16384 |
5607 | # |
5608 | if test -x /sbin/sysconfig; then |
5609 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
5610 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
5611 | esac |
5612 | fi |
5613 | ;; |
5614 | sco3.2v5*) |
5615 | lt_cv_sys_max_cmd_len=102400 |
5616 | ;; |
5617 | sysv5* | sco5v6* | sysv4.2uw2*) |
5618 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
5619 | if test -n "$kargmax"; then |
5620 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
5621 | else |
5622 | lt_cv_sys_max_cmd_len=32768 |
5623 | fi |
5624 | ;; |
5625 | *) |
5626 | # If test is not a shell built-in, we'll probably end up computing a |
5627 | # maximum length that is only half of the actual maximum length, but |
5628 | # we can't tell. |
5629 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
5630 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
5631 | = "XX$teststring") >/dev/null 2>&1 && |
5632 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
5633 | lt_cv_sys_max_cmd_len=$new_result && |
5634 | test $i != 17 # 1/2 MB should be enough |
5635 | do |
5636 | i=`expr $i + 1` |
5637 | teststring=$teststring$teststring |
5638 | done |
5639 | teststring= |
5640 | # Add a significant safety factor because C++ compilers can tack on massive |
5641 | # amounts of additional arguments before passing them to the linker. |
5642 | # It appears as though 1/2 is a usable value. |
5643 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
5644 | ;; |
5645 | esac |
5646 | |
5647 | fi |
5648 | |
5649 | if test -n $lt_cv_sys_max_cmd_len ; then |
5650 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
5651 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
5652 | else |
5653 | echo "$as_me:$LINENO: result: none" >&5 |
5654 | echo "${ECHO_T}none" >&6 |
5655 | fi |
5656 | |
5657 | |
5658 | |
5659 | |
5660 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
5661 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
5662 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
5663 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
5664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5665 | else |
5666 | |
5667 | # These are sane defaults that work on at least a few old systems. |
5668 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
5669 | |
5670 | # Character class describing NM global symbol codes. |
5671 | symcode='[BCDEGRST]' |
5672 | |
5673 | # Regexp to match symbols that can be accessed directly from C. |
5674 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
5675 | |
5676 | # Transform an extracted symbol line into a proper C declaration |
5677 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
5678 | |
5679 | # Transform an extracted symbol line into symbol name and symbol address |
5680 | 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'" |
5681 | |
5682 | # Define system-specific variables. |
5683 | case $host_os in |
5684 | aix*) |
5685 | symcode='[BCDT]' |
5686 | ;; |
5687 | cygwin* | mingw* | pw32*) |
5688 | symcode='[ABCDGISTW]' |
5689 | ;; |
5690 | hpux*) # Its linker distinguishes data from code symbols |
5691 | if test "$host_cpu" = ia64; then |
5692 | symcode='[ABCDEGRST]' |
5693 | fi |
5694 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
5695 | 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'" |
5696 | ;; |
5697 | linux*) |
5698 | if test "$host_cpu" = ia64; then |
5699 | symcode='[ABCDGIRSTW]' |
5700 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
5701 | 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'" |
5702 | fi |
5703 | ;; |
5704 | irix* | nonstopux*) |
5705 | symcode='[BCDEGRST]' |
5706 | ;; |
5707 | osf*) |
5708 | symcode='[BCDEGQRST]' |
5709 | ;; |
5710 | solaris*) |
5711 | symcode='[BDRT]' |
5712 | ;; |
5713 | sco3.2v5*) |
5714 | symcode='[DT]' |
5715 | ;; |
5716 | sysv4.2uw2*) |
5717 | symcode='[DT]' |
5718 | ;; |
5719 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
5720 | symcode='[ABDT]' |
5721 | ;; |
5722 | sysv4) |
5723 | symcode='[DFNSTU]' |
5724 | ;; |
5725 | esac |
5726 | |
5727 | # Handle CRLF in mingw tool chain |
5728 | opt_cr= |
5729 | case $build_os in |
5730 | mingw*) |
5731 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
5732 | ;; |
5733 | esac |
5734 | |
5735 | # If we're using GNU nm, then use its standard symbol codes. |
5736 | case `$NM -V 2>&1` in |
5737 | *GNU* | *'with BFD'*) |
5738 | symcode='[ABCDGIRSTW]' ;; |
5739 | esac |
5740 | |
5741 | # Try without a prefix undercore, then with it. |
5742 | for ac_symprfx in "" "_"; do |
5743 | |
5744 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
5745 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
5746 | |
5747 | # Write the raw and C identifiers. |
5748 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
5749 | |
5750 | # Check to see that the pipe works correctly. |
5751 | pipe_works=no |
5752 | |
5753 | rm -f conftest* |
5754 | cat > conftest.$ac_ext <<EOF |
5755 | #ifdef __cplusplus |
5756 | extern "C" { |
5757 | #endif |
5758 | char nm_test_var; |
5759 | void nm_test_func(){} |
5760 | #ifdef __cplusplus |
5761 | } |
5762 | #endif |
5763 | int main(){nm_test_var='a';nm_test_func();return(0);} |
5764 | EOF |
5765 | |
5766 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5767 | (eval $ac_compile) 2>&5 |
5768 | ac_status=$? |
5769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5770 | (exit $ac_status); }; then |
5771 | # Now try to grab the symbols. |
5772 | nlist=conftest.nm |
5773 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
5774 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
5775 | ac_status=$? |
5776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5777 | (exit $ac_status); } && test -s "$nlist"; then |
5778 | # Try sorting and uniquifying the output. |
5779 | if sort "$nlist" | uniq > "$nlist"T; then |
5780 | mv -f "$nlist"T "$nlist" |
5781 | else |
5782 | rm -f "$nlist"T |
5783 | fi |
5784 | |
5785 | # Make sure that we snagged all the symbols we need. |
5786 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
5787 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
5788 | cat <<EOF > conftest.$ac_ext |
5789 | #ifdef __cplusplus |
5790 | extern "C" { |
5791 | #endif |
5792 | |
5793 | EOF |
5794 | # Now generate the symbol file. |
5795 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
5796 | |
5797 | cat <<EOF >> conftest.$ac_ext |
5798 | #if defined (__STDC__) && __STDC__ |
5799 | # define lt_ptr_t void * |
5800 | #else |
5801 | # define lt_ptr_t char * |
5802 | # define const |
5803 | #endif |
5804 | |
5805 | /* The mapping between symbol names and symbols. */ |
5806 | const struct { |
5807 | const char *name; |
5808 | lt_ptr_t address; |
5809 | } |
5810 | lt_preloaded_symbols[] = |
5811 | { |
5812 | EOF |
5813 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
5814 | cat <<\EOF >> conftest.$ac_ext |
5815 | {0, (lt_ptr_t) 0} |
5816 | }; |
5817 | |
5818 | #ifdef __cplusplus |
5819 | } |
5820 | #endif |
5821 | EOF |
5822 | # Now try linking the two files. |
5823 | mv conftest.$ac_objext conftstm.$ac_objext |
5824 | lt_save_LIBS="$LIBS" |
5825 | lt_save_CFLAGS="$CFLAGS" |
5826 | LIBS="conftstm.$ac_objext" |
5827 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
5828 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5829 | (eval $ac_link) 2>&5 |
5830 | ac_status=$? |
5831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5832 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
5833 | pipe_works=yes |
5834 | fi |
5835 | LIBS="$lt_save_LIBS" |
5836 | CFLAGS="$lt_save_CFLAGS" |
5837 | else |
5838 | echo "cannot find nm_test_func in $nlist" >&5 |
5839 | fi |
5840 | else |
5841 | echo "cannot find nm_test_var in $nlist" >&5 |
5842 | fi |
5843 | else |
5844 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
5845 | fi |
5846 | else |
5847 | echo "$progname: failed program was:" >&5 |
5848 | cat conftest.$ac_ext >&5 |
5849 | fi |
5850 | rm -f conftest* conftst* |
5851 | |
5852 | # Do not use the global_symbol_pipe unless it works. |
5853 | if test "$pipe_works" = yes; then |
5854 | break |
5855 | else |
5856 | lt_cv_sys_global_symbol_pipe= |
5857 | fi |
5858 | done |
5859 | |
5860 | fi |
5861 | |
5862 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
5863 | lt_cv_sys_global_symbol_to_cdecl= |
5864 | fi |
5865 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
5866 | echo "$as_me:$LINENO: result: failed" >&5 |
5867 | echo "${ECHO_T}failed" >&6 |
5868 | else |
5869 | echo "$as_me:$LINENO: result: ok" >&5 |
5870 | echo "${ECHO_T}ok" >&6 |
5871 | fi |
5872 | |
5873 | echo "$as_me:$LINENO: checking for objdir" >&5 |
5874 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
5875 | if test "${lt_cv_objdir+set}" = set; then |
5876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5877 | else |
5878 | rm -f .libs 2>/dev/null |
5879 | mkdir .libs 2>/dev/null |
5880 | if test -d .libs; then |
5881 | lt_cv_objdir=.libs |
5882 | else |
5883 | # MS-DOS does not allow filenames that begin with a dot. |
5884 | lt_cv_objdir=_libs |
5885 | fi |
5886 | rmdir .libs 2>/dev/null |
5887 | fi |
5888 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
5889 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
5890 | objdir=$lt_cv_objdir |
5891 | |
5892 | |
5893 | |
5894 | |
5895 | |
5896 | case $host_os in |
5897 | aix3*) |
5898 | # AIX sometimes has problems with the GCC collect2 program. For some |
5899 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
5900 | # vanish in a puff of smoke. |
5901 | if test "X${COLLECT_NAMES+set}" != Xset; then |
5902 | COLLECT_NAMES= |
5903 | export COLLECT_NAMES |
5904 | fi |
5905 | ;; |
5906 | esac |
5907 | |
5908 | # Sed substitution that helps us do robust quoting. It backslashifies |
5909 | # metacharacters that are still active within double-quoted strings. |
5910 | Xsed='sed -e 1s/^X//' |
5911 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
5912 | |
5913 | # Same as above, but do not quote variable references. |
5914 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
5915 | |
5916 | # Sed substitution to delay expansion of an escaped shell variable in a |
5917 | # double_quote_subst'ed string. |
5918 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
5919 | |
5920 | # Sed substitution to avoid accidental globbing in evaled expressions |
5921 | no_glob_subst='s/\*/\\\*/g' |
5922 | |
5923 | # Constants: |
5924 | rm="rm -f" |
5925 | |
5926 | # Global variables: |
5927 | default_ofile=libtool |
5928 | can_build_shared=yes |
5929 | |
5930 | # All known linkers require a `.a' archive for static linking (except MSVC, |
5931 | # which needs '.lib'). |
5932 | libext=a |
5933 | ltmain="$ac_aux_dir/ltmain.sh" |
5934 | ofile="$default_ofile" |
5935 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
5936 | |
5937 | if test -n "$ac_tool_prefix"; then |
5938 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
5939 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
5940 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5941 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5942 | if test "${ac_cv_prog_AR+set}" = set; then |
5943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5944 | else |
5945 | if test -n "$AR"; then |
5946 | ac_cv_prog_AR="$AR" # Let the user override the test. |
5947 | else |
5948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5949 | for as_dir in $PATH |
5950 | do |
5951 | IFS=$as_save_IFS |
5952 | test -z "$as_dir" && as_dir=. |
5953 | for ac_exec_ext in '' $ac_executable_extensions; do |
5954 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5955 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5956 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5957 | break 2 |
5958 | fi |
5959 | done |
5960 | done |
5961 | |
5962 | fi |
5963 | fi |
5964 | AR=$ac_cv_prog_AR |
5965 | if test -n "$AR"; then |
5966 | echo "$as_me:$LINENO: result: $AR" >&5 |
5967 | echo "${ECHO_T}$AR" >&6 |
5968 | else |
5969 | echo "$as_me:$LINENO: result: no" >&5 |
5970 | echo "${ECHO_T}no" >&6 |
5971 | fi |
5972 | |
5973 | fi |
5974 | if test -z "$ac_cv_prog_AR"; then |
5975 | ac_ct_AR=$AR |
5976 | # Extract the first word of "ar", so it can be a program name with args. |
5977 | set dummy ar; ac_word=$2 |
5978 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5979 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5980 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
5981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5982 | else |
5983 | if test -n "$ac_ct_AR"; then |
5984 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
5985 | else |
5986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5987 | for as_dir in $PATH |
5988 | do |
5989 | IFS=$as_save_IFS |
5990 | test -z "$as_dir" && as_dir=. |
5991 | for ac_exec_ext in '' $ac_executable_extensions; do |
5992 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5993 | ac_cv_prog_ac_ct_AR="ar" |
5994 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5995 | break 2 |
5996 | fi |
5997 | done |
5998 | done |
5999 | |
6000 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
6001 | fi |
6002 | fi |
6003 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6004 | if test -n "$ac_ct_AR"; then |
6005 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
6006 | echo "${ECHO_T}$ac_ct_AR" >&6 |
6007 | else |
6008 | echo "$as_me:$LINENO: result: no" >&5 |
6009 | echo "${ECHO_T}no" >&6 |
6010 | fi |
6011 | |
6012 | AR=$ac_ct_AR |
6013 | else |
6014 | AR="$ac_cv_prog_AR" |
6015 | fi |
6016 | |
6017 | if test -n "$ac_tool_prefix"; then |
6018 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
6019 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
6020 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6021 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6022 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
6023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6024 | else |
6025 | if test -n "$RANLIB"; then |
6026 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
6027 | else |
6028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6029 | for as_dir in $PATH |
6030 | do |
6031 | IFS=$as_save_IFS |
6032 | test -z "$as_dir" && as_dir=. |
6033 | for ac_exec_ext in '' $ac_executable_extensions; do |
6034 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6035 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6036 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6037 | break 2 |
6038 | fi |
6039 | done |
6040 | done |
6041 | |
6042 | fi |
6043 | fi |
6044 | RANLIB=$ac_cv_prog_RANLIB |
6045 | if test -n "$RANLIB"; then |
6046 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6047 | echo "${ECHO_T}$RANLIB" >&6 |
6048 | else |
6049 | echo "$as_me:$LINENO: result: no" >&5 |
6050 | echo "${ECHO_T}no" >&6 |
6051 | fi |
6052 | |
6053 | fi |
6054 | if test -z "$ac_cv_prog_RANLIB"; then |
6055 | ac_ct_RANLIB=$RANLIB |
6056 | # Extract the first word of "ranlib", so it can be a program name with args. |
6057 | set dummy ranlib; ac_word=$2 |
6058 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6059 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6060 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
6061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6062 | else |
6063 | if test -n "$ac_ct_RANLIB"; then |
6064 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
6065 | else |
6066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6067 | for as_dir in $PATH |
6068 | do |
6069 | IFS=$as_save_IFS |
6070 | test -z "$as_dir" && as_dir=. |
6071 | for ac_exec_ext in '' $ac_executable_extensions; do |
6072 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6073 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6074 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6075 | break 2 |
6076 | fi |
6077 | done |
6078 | done |
6079 | |
6080 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
6081 | fi |
6082 | fi |
6083 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6084 | if test -n "$ac_ct_RANLIB"; then |
6085 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
6086 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
6087 | else |
6088 | echo "$as_me:$LINENO: result: no" >&5 |
6089 | echo "${ECHO_T}no" >&6 |
6090 | fi |
6091 | |
6092 | RANLIB=$ac_ct_RANLIB |
6093 | else |
6094 | RANLIB="$ac_cv_prog_RANLIB" |
6095 | fi |
6096 | |
6097 | if test -n "$ac_tool_prefix"; then |
6098 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6099 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
6100 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6101 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6102 | if test "${ac_cv_prog_STRIP+set}" = set; then |
6103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6104 | else |
6105 | if test -n "$STRIP"; then |
6106 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
6107 | else |
6108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6109 | for as_dir in $PATH |
6110 | do |
6111 | IFS=$as_save_IFS |
6112 | test -z "$as_dir" && as_dir=. |
6113 | for ac_exec_ext in '' $ac_executable_extensions; do |
6114 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6115 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6116 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6117 | break 2 |
6118 | fi |
6119 | done |
6120 | done |
6121 | |
6122 | fi |
6123 | fi |
6124 | STRIP=$ac_cv_prog_STRIP |
6125 | if test -n "$STRIP"; then |
6126 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
6127 | echo "${ECHO_T}$STRIP" >&6 |
6128 | else |
6129 | echo "$as_me:$LINENO: result: no" >&5 |
6130 | echo "${ECHO_T}no" >&6 |
6131 | fi |
6132 | |
6133 | fi |
6134 | if test -z "$ac_cv_prog_STRIP"; then |
6135 | ac_ct_STRIP=$STRIP |
6136 | # Extract the first word of "strip", so it can be a program name with args. |
6137 | set dummy strip; ac_word=$2 |
6138 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6139 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6140 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
6141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6142 | else |
6143 | if test -n "$ac_ct_STRIP"; then |
6144 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
6145 | else |
6146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6147 | for as_dir in $PATH |
6148 | do |
6149 | IFS=$as_save_IFS |
6150 | test -z "$as_dir" && as_dir=. |
6151 | for ac_exec_ext in '' $ac_executable_extensions; do |
6152 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6153 | ac_cv_prog_ac_ct_STRIP="strip" |
6154 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6155 | break 2 |
6156 | fi |
6157 | done |
6158 | done |
6159 | |
6160 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
6161 | fi |
6162 | fi |
6163 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6164 | if test -n "$ac_ct_STRIP"; then |
6165 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
6166 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
6167 | else |
6168 | echo "$as_me:$LINENO: result: no" >&5 |
6169 | echo "${ECHO_T}no" >&6 |
6170 | fi |
6171 | |
6172 | STRIP=$ac_ct_STRIP |
6173 | else |
6174 | STRIP="$ac_cv_prog_STRIP" |
6175 | fi |
6176 | |
6177 | |
6178 | old_CC="$CC" |
6179 | old_CFLAGS="$CFLAGS" |
6180 | |
6181 | # Set sane defaults for various variables |
6182 | test -z "$AR" && AR=ar |
6183 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
6184 | test -z "$AS" && AS=as |
6185 | test -z "$CC" && CC=cc |
6186 | test -z "$LTCC" && LTCC=$CC |
6187 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
6188 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
6189 | test -z "$LD" && LD=ld |
6190 | test -z "$LN_S" && LN_S="ln -s" |
6191 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
6192 | test -z "$NM" && NM=nm |
6193 | test -z "$SED" && SED=sed |
6194 | test -z "$OBJDUMP" && OBJDUMP=objdump |
6195 | test -z "$RANLIB" && RANLIB=: |
6196 | test -z "$STRIP" && STRIP=: |
6197 | test -z "$ac_objext" && ac_objext=o |
6198 | |
6199 | # Determine commands to create old-style static archives. |
6200 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
6201 | old_postinstall_cmds='chmod 644 $oldlib' |
6202 | old_postuninstall_cmds= |
6203 | |
6204 | if test -n "$RANLIB"; then |
6205 | case $host_os in |
6206 | openbsd*) |
6207 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
6208 | ;; |
6209 | *) |
6210 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
6211 | ;; |
6212 | esac |
6213 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
6214 | fi |
6215 | |
6216 | for cc_temp in $compiler""; do |
6217 | case $cc_temp in |
6218 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
6219 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
6220 | \-*) ;; |
6221 | *) break;; |
6222 | esac |
6223 | done |
6224 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
6225 | |
6226 | |
6227 | # Only perform the check for file, if the check method requires it |
6228 | case $deplibs_check_method in |
6229 | file_magic*) |
6230 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
6231 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
6232 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
6233 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
6234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6235 | else |
6236 | case $MAGIC_CMD in |
6237 | [\\/*] | ?:[\\/]*) |
6238 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6239 | ;; |
6240 | *) |
6241 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
6242 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6243 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
6244 | for ac_dir in $ac_dummy; do |
6245 | IFS="$lt_save_ifs" |
6246 | test -z "$ac_dir" && ac_dir=. |
6247 | if test -f $ac_dir/${ac_tool_prefix}file; then |
6248 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
6249 | if test -n "$file_magic_test_file"; then |
6250 | case $deplibs_check_method in |
6251 | "file_magic "*) |
6252 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
6253 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6254 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6255 | $EGREP "$file_magic_regex" > /dev/null; then |
6256 | : |
6257 | else |
6258 | cat <<EOF 1>&2 |
6259 | |
6260 | *** Warning: the command libtool uses to detect shared libraries, |
6261 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
6262 | *** The result is that libtool may fail to recognize shared libraries |
6263 | *** as such. This will affect the creation of libtool libraries that |
6264 | *** depend on shared libraries, but programs linked with such libtool |
6265 | *** libraries will work regardless of this problem. Nevertheless, you |
6266 | *** may want to report the problem to your system manager and/or to |
6267 | *** bug-libtool@gnu.org |
6268 | |
6269 | EOF |
6270 | fi ;; |
6271 | esac |
6272 | fi |
6273 | break |
6274 | fi |
6275 | done |
6276 | IFS="$lt_save_ifs" |
6277 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
6278 | ;; |
6279 | esac |
6280 | fi |
6281 | |
6282 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6283 | if test -n "$MAGIC_CMD"; then |
6284 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
6285 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
6286 | else |
6287 | echo "$as_me:$LINENO: result: no" >&5 |
6288 | echo "${ECHO_T}no" >&6 |
6289 | fi |
6290 | |
6291 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
6292 | if test -n "$ac_tool_prefix"; then |
6293 | echo "$as_me:$LINENO: checking for file" >&5 |
6294 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
6295 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
6296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6297 | else |
6298 | case $MAGIC_CMD in |
6299 | [\\/*] | ?:[\\/]*) |
6300 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6301 | ;; |
6302 | *) |
6303 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
6304 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6305 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
6306 | for ac_dir in $ac_dummy; do |
6307 | IFS="$lt_save_ifs" |
6308 | test -z "$ac_dir" && ac_dir=. |
6309 | if test -f $ac_dir/file; then |
6310 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
6311 | if test -n "$file_magic_test_file"; then |
6312 | case $deplibs_check_method in |
6313 | "file_magic "*) |
6314 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
6315 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6316 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6317 | $EGREP "$file_magic_regex" > /dev/null; then |
6318 | : |
6319 | else |
6320 | cat <<EOF 1>&2 |
6321 | |
6322 | *** Warning: the command libtool uses to detect shared libraries, |
6323 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
6324 | *** The result is that libtool may fail to recognize shared libraries |
6325 | *** as such. This will affect the creation of libtool libraries that |
6326 | *** depend on shared libraries, but programs linked with such libtool |
6327 | *** libraries will work regardless of this problem. Nevertheless, you |
6328 | *** may want to report the problem to your system manager and/or to |
6329 | *** bug-libtool@gnu.org |
6330 | |
6331 | EOF |
6332 | fi ;; |
6333 | esac |
6334 | fi |
6335 | break |
6336 | fi |
6337 | done |
6338 | IFS="$lt_save_ifs" |
6339 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
6340 | ;; |
6341 | esac |
6342 | fi |
6343 | |
6344 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6345 | if test -n "$MAGIC_CMD"; then |
6346 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
6347 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
6348 | else |
6349 | echo "$as_me:$LINENO: result: no" >&5 |
6350 | echo "${ECHO_T}no" >&6 |
6351 | fi |
6352 | |
6353 | else |
6354 | MAGIC_CMD=: |
6355 | fi |
6356 | fi |
6357 | |
6358 | fi |
6359 | ;; |
6360 | esac |
6361 | |
6362 | enable_dlopen=no |
6363 | enable_win32_dll=no |
6364 | |
6365 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
6366 | if test "${enable_libtool_lock+set}" = set; then |
6367 | enableval="$enable_libtool_lock" |
6368 | |
6369 | fi; |
6370 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6371 | |
6372 | |
6373 | # Check whether --with-pic or --without-pic was given. |
6374 | if test "${with_pic+set}" = set; then |
6375 | withval="$with_pic" |
6376 | pic_mode="$withval" |
6377 | else |
6378 | pic_mode=default |
6379 | fi; |
6380 | test -z "$pic_mode" && pic_mode=default |
6381 | |
6382 | # Use C for the default configuration in the libtool script |
6383 | tagname= |
6384 | lt_save_CC="$CC" |
6385 | ac_ext=c |
6386 | ac_cpp='$CPP $CPPFLAGS' |
6387 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6388 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6389 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6390 | |
6391 | |
6392 | # Source file extension for C test sources. |
6393 | ac_ext=c |
6394 | |
6395 | # Object file extension for compiled C test sources. |
6396 | objext=o |
6397 | objext=$objext |
6398 | |
6399 | # Code to be used in simple compile tests |
6400 | lt_simple_compile_test_code="int some_variable = 0;\n" |
6401 | |
6402 | # Code to be used in simple link tests |
6403 | lt_simple_link_test_code='int main(){return(0);}\n' |
6404 | |
6405 | |
6406 | # If no C compiler was specified, use CC. |
6407 | LTCC=${LTCC-"$CC"} |
6408 | |
6409 | # If no C compiler flags were specified, use CFLAGS. |
6410 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
6411 | |
6412 | # Allow CC to be a program name with arguments. |
6413 | compiler=$CC |
6414 | |
6415 | |
6416 | # save warnings/boilerplate of simple test code |
6417 | ac_outfile=conftest.$ac_objext |
6418 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
6419 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
6420 | _lt_compiler_boilerplate=`cat conftest.err` |
6421 | $rm conftest* |
6422 | |
6423 | ac_outfile=conftest.$ac_objext |
6424 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
6425 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
6426 | _lt_linker_boilerplate=`cat conftest.err` |
6427 | $rm conftest* |
6428 | |
6429 | |
6430 | |
6431 | lt_prog_compiler_no_builtin_flag= |
6432 | |
6433 | if test "$GCC" = yes; then |
6434 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
6435 | |
6436 | |
6437 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
6438 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
6439 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
6440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6441 | else |
6442 | lt_cv_prog_compiler_rtti_exceptions=no |
6443 | ac_outfile=conftest.$ac_objext |
6444 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6445 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
6446 | # Insert the option either (1) after the last *FLAGS variable, or |
6447 | # (2) before a word containing "conftest.", or (3) at the end. |
6448 | # Note that $ac_compile itself does not contain backslashes and begins |
6449 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
6450 | # The option is referenced via a variable to avoid confusing sed. |
6451 | lt_compile=`echo "$ac_compile" | $SED \ |
6452 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
6453 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6454 | -e 's:$: $lt_compiler_flag:'` |
6455 | (eval echo "\"\$as_me:6455: $lt_compile\"" >&5) |
6456 | (eval "$lt_compile" 2>conftest.err) |
6457 | ac_status=$? |
6458 | cat conftest.err >&5 |
6459 | echo "$as_me:6459: \$? = $ac_status" >&5 |
6460 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6461 | # The compiler can only warn and ignore the option if not recognized |
6462 | # So say no if there are warnings other than the usual output. |
6463 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
6464 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
6465 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
6466 | lt_cv_prog_compiler_rtti_exceptions=yes |
6467 | fi |
6468 | fi |
6469 | $rm conftest* |
6470 | |
6471 | fi |
6472 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
6473 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
6474 | |
6475 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
6476 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
6477 | else |
6478 | : |
6479 | fi |
6480 | |
6481 | fi |
6482 | |
6483 | lt_prog_compiler_wl= |
6484 | lt_prog_compiler_pic= |
6485 | lt_prog_compiler_static= |
6486 | |
6487 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
6488 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
6489 | |
6490 | if test "$GCC" = yes; then |
6491 | lt_prog_compiler_wl='-Wl,' |
6492 | lt_prog_compiler_static='-static' |
6493 | |
6494 | case $host_os in |
6495 | aix*) |
6496 | # All AIX code is PIC. |
6497 | if test "$host_cpu" = ia64; then |
6498 | # AIX 5 now supports IA64 processor |
6499 | lt_prog_compiler_static='-Bstatic' |
6500 | fi |
6501 | ;; |
6502 | |
6503 | amigaos*) |
6504 | # FIXME: we need at least 68020 code to build shared libraries, but |
6505 | # adding the `-m68020' flag to GCC prevents building anything better, |
6506 | # like `-m68040'. |
6507 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
6508 | ;; |
6509 | |
6510 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
6511 | # PIC is the default for these OSes. |
6512 | ;; |
6513 | |
6514 | mingw* | pw32* | os2*) |
6515 | # This hack is so that the source file can tell whether it is being |
6516 | # built for inclusion in a dll (and should export symbols for example). |
6517 | lt_prog_compiler_pic='-DDLL_EXPORT' |
6518 | ;; |
6519 | |
6520 | darwin* | rhapsody*) |
6521 | # PIC is the default on this platform |
6522 | # Common symbols not allowed in MH_DYLIB files |
6523 | lt_prog_compiler_pic='-fno-common' |
6524 | ;; |
6525 | |
6526 | interix3*) |
6527 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
6528 | # Instead, we relocate shared libraries at runtime. |
6529 | ;; |
6530 | |
6531 | msdosdjgpp*) |
6532 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
6533 | # on systems that don't support them. |
6534 | lt_prog_compiler_can_build_shared=no |
6535 | enable_shared=no |
6536 | ;; |
6537 | |
6538 | sysv4*MP*) |
6539 | if test -d /usr/nec; then |
6540 | lt_prog_compiler_pic=-Kconform_pic |
6541 | fi |
6542 | ;; |
6543 | |
6544 | hpux*) |
6545 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
6546 | # not for PA HP-UX. |
6547 | case $host_cpu in |
6548 | hppa*64*|ia64*) |
6549 | # +Z the default |
6550 | ;; |
6551 | *) |
6552 | lt_prog_compiler_pic='-fPIC' |
6553 | ;; |
6554 | esac |
6555 | ;; |
6556 | |
6557 | *) |
6558 | lt_prog_compiler_pic='-fPIC' |
6559 | ;; |
6560 | esac |
6561 | else |
6562 | # PORTME Check for flag to pass linker flags through the system compiler. |
6563 | case $host_os in |
6564 | aix*) |
6565 | lt_prog_compiler_wl='-Wl,' |
6566 | if test "$host_cpu" = ia64; then |
6567 | # AIX 5 now supports IA64 processor |
6568 | lt_prog_compiler_static='-Bstatic' |
6569 | else |
6570 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
6571 | fi |
6572 | ;; |
6573 | darwin*) |
6574 | # PIC is the default on this platform |
6575 | # Common symbols not allowed in MH_DYLIB files |
6576 | case $cc_basename in |
6577 | xlc*) |
6578 | lt_prog_compiler_pic='-qnocommon' |
6579 | lt_prog_compiler_wl='-Wl,' |
6580 | ;; |
6581 | esac |
6582 | ;; |
6583 | |
6584 | mingw* | pw32* | os2*) |
6585 | # This hack is so that the source file can tell whether it is being |
6586 | # built for inclusion in a dll (and should export symbols for example). |
6587 | lt_prog_compiler_pic='-DDLL_EXPORT' |
6588 | ;; |
6589 | |
6590 | hpux9* | hpux10* | hpux11*) |
6591 | lt_prog_compiler_wl='-Wl,' |
6592 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
6593 | # not for PA HP-UX. |
6594 | case $host_cpu in |
6595 | hppa*64*|ia64*) |
6596 | # +Z the default |
6597 | ;; |
6598 | *) |
6599 | lt_prog_compiler_pic='+Z' |
6600 | ;; |
6601 | esac |
6602 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
6603 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
6604 | ;; |
6605 | |
6606 | irix5* | irix6* | nonstopux*) |
6607 | lt_prog_compiler_wl='-Wl,' |
6608 | # PIC (with -KPIC) is the default. |
6609 | lt_prog_compiler_static='-non_shared' |
6610 | ;; |
6611 | |
6612 | newsos6) |
6613 | lt_prog_compiler_pic='-KPIC' |
6614 | lt_prog_compiler_static='-Bstatic' |
6615 | ;; |
6616 | |
6617 | linux*) |
6618 | case $cc_basename in |
6619 | icc* | ecc*) |
6620 | lt_prog_compiler_wl='-Wl,' |
6621 | lt_prog_compiler_pic='-KPIC' |
6622 | lt_prog_compiler_static='-static' |
6623 | ;; |
6624 | pgcc* | pgf77* | pgf90* | pgf95*) |
6625 | # Portland Group compilers (*not* the Pentium gcc compiler, |
6626 | # which looks to be a dead project) |
6627 | lt_prog_compiler_wl='-Wl,' |
6628 | lt_prog_compiler_pic='-fpic' |
6629 | lt_prog_compiler_static='-Bstatic' |
6630 | ;; |
6631 | ccc*) |
6632 | lt_prog_compiler_wl='-Wl,' |
6633 | # All Alpha code is PIC. |
6634 | lt_prog_compiler_static='-non_shared' |
6635 | ;; |
6636 | esac |
6637 | ;; |
6638 | |
6639 | osf3* | osf4* | osf5*) |
6640 | lt_prog_compiler_wl='-Wl,' |
6641 | # All OSF/1 code is PIC. |
6642 | lt_prog_compiler_static='-non_shared' |
6643 | ;; |
6644 | |
6645 | solaris*) |
6646 | lt_prog_compiler_pic='-KPIC' |
6647 | lt_prog_compiler_static='-Bstatic' |
6648 | case $cc_basename in |
6649 | f77* | f90* | f95*) |
6650 | lt_prog_compiler_wl='-Qoption ld ';; |
6651 | *) |
6652 | lt_prog_compiler_wl='-Wl,';; |
6653 | esac |
6654 | ;; |
6655 | |
6656 | sunos4*) |
6657 | lt_prog_compiler_wl='-Qoption ld ' |
6658 | lt_prog_compiler_pic='-PIC' |
6659 | lt_prog_compiler_static='-Bstatic' |
6660 | ;; |
6661 | |
6662 | sysv4 | sysv4.2uw2* | sysv4.3*) |
6663 | lt_prog_compiler_wl='-Wl,' |
6664 | lt_prog_compiler_pic='-KPIC' |
6665 | lt_prog_compiler_static='-Bstatic' |
6666 | ;; |
6667 | |
6668 | sysv4*MP*) |
6669 | if test -d /usr/nec ;then |
6670 | lt_prog_compiler_pic='-Kconform_pic' |
6671 | lt_prog_compiler_static='-Bstatic' |
6672 | fi |
6673 | ;; |
6674 | |
6675 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
6676 | lt_prog_compiler_wl='-Wl,' |
6677 | lt_prog_compiler_pic='-KPIC' |
6678 | lt_prog_compiler_static='-Bstatic' |
6679 | ;; |
6680 | |
6681 | unicos*) |
6682 | lt_prog_compiler_wl='-Wl,' |
6683 | lt_prog_compiler_can_build_shared=no |
6684 | ;; |
6685 | |
6686 | uts4*) |
6687 | lt_prog_compiler_pic='-pic' |
6688 | lt_prog_compiler_static='-Bstatic' |
6689 | ;; |
6690 | |
6691 | *) |
6692 | lt_prog_compiler_can_build_shared=no |
6693 | ;; |
6694 | esac |
6695 | fi |
6696 | |
6697 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
6698 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
6699 | |
6700 | # |
6701 | # Check to make sure the PIC flag actually works. |
6702 | # |
6703 | if test -n "$lt_prog_compiler_pic"; then |
6704 | |
6705 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
6706 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
6707 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
6708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6709 | else |
6710 | lt_prog_compiler_pic_works=no |
6711 | ac_outfile=conftest.$ac_objext |
6712 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6713 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
6714 | # Insert the option either (1) after the last *FLAGS variable, or |
6715 | # (2) before a word containing "conftest.", or (3) at the end. |
6716 | # Note that $ac_compile itself does not contain backslashes and begins |
6717 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
6718 | # The option is referenced via a variable to avoid confusing sed. |
6719 | lt_compile=`echo "$ac_compile" | $SED \ |
6720 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
6721 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6722 | -e 's:$: $lt_compiler_flag:'` |
6723 | (eval echo "\"\$as_me:6723: $lt_compile\"" >&5) |
6724 | (eval "$lt_compile" 2>conftest.err) |
6725 | ac_status=$? |
6726 | cat conftest.err >&5 |
6727 | echo "$as_me:6727: \$? = $ac_status" >&5 |
6728 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6729 | # The compiler can only warn and ignore the option if not recognized |
6730 | # So say no if there are warnings other than the usual output. |
6731 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
6732 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
6733 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
6734 | lt_prog_compiler_pic_works=yes |
6735 | fi |
6736 | fi |
6737 | $rm conftest* |
6738 | |
6739 | fi |
6740 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
6741 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
6742 | |
6743 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
6744 | case $lt_prog_compiler_pic in |
6745 | "" | " "*) ;; |
6746 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
6747 | esac |
6748 | else |
6749 | lt_prog_compiler_pic= |
6750 | lt_prog_compiler_can_build_shared=no |
6751 | fi |
6752 | |
6753 | fi |
6754 | case $host_os in |
6755 | # For platforms which do not support PIC, -DPIC is meaningless: |
6756 | *djgpp*) |
6757 | lt_prog_compiler_pic= |
6758 | ;; |
6759 | *) |
6760 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
6761 | ;; |
6762 | esac |
6763 | |
6764 | # |
6765 | # Check to make sure the static flag actually works. |
6766 | # |
6767 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
6768 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
6769 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
6770 | if test "${lt_prog_compiler_static_works+set}" = set; then |
6771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6772 | else |
6773 | lt_prog_compiler_static_works=no |
6774 | save_LDFLAGS="$LDFLAGS" |
6775 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
6776 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
6777 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
6778 | # The linker can only warn and ignore the option if not recognized |
6779 | # So say no if there are warnings |
6780 | if test -s conftest.err; then |
6781 | # Append any errors to the config.log. |
6782 | cat conftest.err 1>&5 |
6783 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
6784 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
6785 | if diff conftest.exp conftest.er2 >/dev/null; then |
6786 | lt_prog_compiler_static_works=yes |
6787 | fi |
6788 | else |
6789 | lt_prog_compiler_static_works=yes |
6790 | fi |
6791 | fi |
6792 | $rm conftest* |
6793 | LDFLAGS="$save_LDFLAGS" |
6794 | |
6795 | fi |
6796 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
6797 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
6798 | |
6799 | if test x"$lt_prog_compiler_static_works" = xyes; then |
6800 | : |
6801 | else |
6802 | lt_prog_compiler_static= |
6803 | fi |
6804 | |
6805 | |
6806 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
6807 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
6808 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
6809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6810 | else |
6811 | lt_cv_prog_compiler_c_o=no |
6812 | $rm -r conftest 2>/dev/null |
6813 | mkdir conftest |
6814 | cd conftest |
6815 | mkdir out |
6816 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6817 | |
6818 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
6819 | # Insert the option either (1) after the last *FLAGS variable, or |
6820 | # (2) before a word containing "conftest.", or (3) at the end. |
6821 | # Note that $ac_compile itself does not contain backslashes and begins |
6822 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
6823 | lt_compile=`echo "$ac_compile" | $SED \ |
6824 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
6825 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6826 | -e 's:$: $lt_compiler_flag:'` |
6827 | (eval echo "\"\$as_me:6827: $lt_compile\"" >&5) |
6828 | (eval "$lt_compile" 2>out/conftest.err) |
6829 | ac_status=$? |
6830 | cat out/conftest.err >&5 |
6831 | echo "$as_me:6831: \$? = $ac_status" >&5 |
6832 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
6833 | then |
6834 | # The compiler can only warn and ignore the option if not recognized |
6835 | # So say no if there are warnings |
6836 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
6837 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
6838 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
6839 | lt_cv_prog_compiler_c_o=yes |
6840 | fi |
6841 | fi |
6842 | chmod u+w . 2>&5 |
6843 | $rm conftest* |
6844 | # SGI C++ compiler will create directory out/ii_files/ for |
6845 | # template instantiation |
6846 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
6847 | $rm out/* && rmdir out |
6848 | cd .. |
6849 | rmdir conftest |
6850 | $rm conftest* |
6851 | |
6852 | fi |
6853 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
6854 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
6855 | |
6856 | |
6857 | hard_links="nottested" |
6858 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
6859 | # do not overwrite the value of need_locks provided by the user |
6860 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
6861 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
6862 | hard_links=yes |
6863 | $rm conftest* |
6864 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
6865 | touch conftest.a |
6866 | ln conftest.a conftest.b 2>&5 || hard_links=no |
6867 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
6868 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
6869 | echo "${ECHO_T}$hard_links" >&6 |
6870 | if test "$hard_links" = no; then |
6871 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
6872 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
6873 | need_locks=warn |
6874 | fi |
6875 | else |
6876 | need_locks=no |
6877 | fi |
6878 | |
6879 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
6880 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
6881 | |
6882 | runpath_var= |
6883 | allow_undefined_flag= |
6884 | enable_shared_with_static_runtimes=no |
6885 | archive_cmds= |
6886 | archive_expsym_cmds= |
6887 | old_archive_From_new_cmds= |
6888 | old_archive_from_expsyms_cmds= |
6889 | export_dynamic_flag_spec= |
6890 | whole_archive_flag_spec= |
6891 | thread_safe_flag_spec= |
6892 | hardcode_libdir_flag_spec= |
6893 | hardcode_libdir_flag_spec_ld= |
6894 | hardcode_libdir_separator= |
6895 | hardcode_direct=no |
6896 | hardcode_minus_L=no |
6897 | hardcode_shlibpath_var=unsupported |
6898 | link_all_deplibs=unknown |
6899 | hardcode_automatic=no |
6900 | module_cmds= |
6901 | module_expsym_cmds= |
6902 | always_export_symbols=no |
6903 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
6904 | # include_expsyms should be a list of space-separated symbols to be *always* |
6905 | # included in the symbol list |
6906 | include_expsyms= |
6907 | # exclude_expsyms can be an extended regexp of symbols to exclude |
6908 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
6909 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
6910 | # as well as any symbol that contains `d'. |
6911 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
6912 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
6913 | # platforms (ab)use it in PIC code, but their linkers get confused if |
6914 | # the symbol is explicitly referenced. Since portable code cannot |
6915 | # rely on this symbol name, it's probably fine to never include it in |
6916 | # preloaded symbol tables. |
6917 | extract_expsyms_cmds= |
6918 | # Just being paranoid about ensuring that cc_basename is set. |
6919 | for cc_temp in $compiler""; do |
6920 | case $cc_temp in |
6921 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
6922 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
6923 | \-*) ;; |
6924 | *) break;; |
6925 | esac |
6926 | done |
6927 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
6928 | |
6929 | case $host_os in |
6930 | cygwin* | mingw* | pw32*) |
6931 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
6932 | # When not using gcc, we currently assume that we are using |
6933 | # Microsoft Visual C++. |
6934 | if test "$GCC" != yes; then |
6935 | with_gnu_ld=no |
6936 | fi |
6937 | ;; |
6938 | interix*) |
6939 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
6940 | with_gnu_ld=yes |
6941 | ;; |
6942 | openbsd*) |
6943 | with_gnu_ld=no |
6944 | ;; |
6945 | esac |
6946 | |
6947 | ld_shlibs=yes |
6948 | if test "$with_gnu_ld" = yes; then |
6949 | # If archive_cmds runs LD, not CC, wlarc should be empty |
6950 | wlarc='${wl}' |
6951 | |
6952 | # Set some defaults for GNU ld with shared library support. These |
6953 | # are reset later if shared libraries are not supported. Putting them |
6954 | # here allows them to be overridden if necessary. |
6955 | runpath_var=LD_RUN_PATH |
6956 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
6957 | export_dynamic_flag_spec='${wl}--export-dynamic' |
6958 | # ancient GNU ld didn't support --whole-archive et. al. |
6959 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
6960 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
6961 | else |
6962 | whole_archive_flag_spec= |
6963 | fi |
6964 | supports_anon_versioning=no |
6965 | case `$LD -v 2>/dev/null` in |
6966 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
6967 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
6968 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
6969 | *\ 2.11.*) ;; # other 2.11 versions |
6970 | *) supports_anon_versioning=yes ;; |
6971 | esac |
6972 | |
6973 | # See if GNU ld supports shared libraries. |
6974 | case $host_os in |
6975 | aix3* | aix4* | aix5*) |
6976 | # On AIX/PPC, the GNU linker is very broken |
6977 | if test "$host_cpu" != ia64; then |
6978 | ld_shlibs=no |
6979 | cat <<EOF 1>&2 |
6980 | |
6981 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
6982 | *** to be unable to reliably create shared libraries on AIX. |
6983 | *** Therefore, libtool is disabling shared libraries support. If you |
6984 | *** really care for shared libraries, you may want to modify your PATH |
6985 | *** so that a non-GNU linker is found, and then restart. |
6986 | |
6987 | EOF |
6988 | fi |
6989 | ;; |
6990 | |
6991 | amigaos*) |
6992 | 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)' |
6993 | hardcode_libdir_flag_spec='-L$libdir' |
6994 | hardcode_minus_L=yes |
6995 | |
6996 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
6997 | # that the semantics of dynamic libraries on AmigaOS, at least up |
6998 | # to version 4, is to share data among multiple programs linked |
6999 | # with the same dynamic library. Since this doesn't match the |
7000 | # behavior of shared libraries on other platforms, we can't use |
7001 | # them. |
7002 | ld_shlibs=no |
7003 | ;; |
7004 | |
7005 | beos*) |
7006 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7007 | allow_undefined_flag=unsupported |
7008 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
7009 | # support --undefined. This deserves some investigation. FIXME |
7010 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7011 | else |
7012 | ld_shlibs=no |
7013 | fi |
7014 | ;; |
7015 | |
7016 | cygwin* | mingw* | pw32*) |
7017 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
7018 | # as there is no search path for DLLs. |
7019 | hardcode_libdir_flag_spec='-L$libdir' |
7020 | allow_undefined_flag=unsupported |
7021 | always_export_symbols=no |
7022 | enable_shared_with_static_runtimes=yes |
7023 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
7024 | |
7025 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
7026 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7027 | # If the export-symbols file already is a .def file (1st line |
7028 | # is EXPORTS), use it as is; otherwise, prepend... |
7029 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
7030 | cp $export_symbols $output_objdir/$soname.def; |
7031 | else |
7032 | echo EXPORTS > $output_objdir/$soname.def; |
7033 | cat $export_symbols >> $output_objdir/$soname.def; |
7034 | fi~ |
7035 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7036 | else |
7037 | ld_shlibs=no |
7038 | fi |
7039 | ;; |
7040 | |
7041 | interix3*) |
7042 | hardcode_direct=no |
7043 | hardcode_shlibpath_var=no |
7044 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7045 | export_dynamic_flag_spec='${wl}-E' |
7046 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
7047 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
7048 | # default) and relocated if they conflict, which is a slow very memory |
7049 | # consuming and fragmenting process. To avoid this, we pick a random, |
7050 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
7051 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
7052 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
7053 | 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' |
7054 | ;; |
7055 | |
7056 | linux*) |
7057 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7058 | tmp_addflag= |
7059 | case $cc_basename,$host_cpu in |
7060 | pgcc*) # Portland Group C compiler |
7061 | 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' |
7062 | tmp_addflag=' $pic_flag' |
7063 | ;; |
7064 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
7065 | 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' |
7066 | tmp_addflag=' $pic_flag -Mnomain' ;; |
7067 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
7068 | tmp_addflag=' -i_dynamic' ;; |
7069 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
7070 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
7071 | ifc* | ifort*) # Intel Fortran compiler |
7072 | tmp_addflag=' -nofor_main' ;; |
7073 | esac |
7074 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7075 | |
7076 | if test $supports_anon_versioning = yes; then |
7077 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
7078 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
7079 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
7080 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
7081 | fi |
7082 | else |
7083 | ld_shlibs=no |
7084 | fi |
7085 | ;; |
7086 | |
7087 | netbsd*) |
7088 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7089 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
7090 | wlarc= |
7091 | else |
7092 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7093 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7094 | fi |
7095 | ;; |
7096 | |
7097 | solaris*) |
7098 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
7099 | ld_shlibs=no |
7100 | cat <<EOF 1>&2 |
7101 | |
7102 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
7103 | *** create shared libraries on Solaris systems. Therefore, libtool |
7104 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7105 | *** binutils to release 2.9.1 or newer. Another option is to modify |
7106 | *** your PATH or compiler configuration so that the native linker is |
7107 | *** used, and then restart. |
7108 | |
7109 | EOF |
7110 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7111 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7112 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7113 | else |
7114 | ld_shlibs=no |
7115 | fi |
7116 | ;; |
7117 | |
7118 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
7119 | case `$LD -v 2>&1` in |
7120 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
7121 | ld_shlibs=no |
7122 | cat <<_LT_EOF 1>&2 |
7123 | |
7124 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
7125 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
7126 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7127 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
7128 | *** your PATH or compiler configuration so that the native linker is |
7129 | *** used, and then restart. |
7130 | |
7131 | _LT_EOF |
7132 | ;; |
7133 | *) |
7134 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7135 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
7136 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
7137 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
7138 | else |
7139 | ld_shlibs=no |
7140 | fi |
7141 | ;; |
7142 | esac |
7143 | ;; |
7144 | |
7145 | sunos4*) |
7146 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7147 | wlarc= |
7148 | hardcode_direct=yes |
7149 | hardcode_shlibpath_var=no |
7150 | ;; |
7151 | |
7152 | *) |
7153 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7154 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7155 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7156 | else |
7157 | ld_shlibs=no |
7158 | fi |
7159 | ;; |
7160 | esac |
7161 | |
7162 | if test "$ld_shlibs" = no; then |
7163 | runpath_var= |
7164 | hardcode_libdir_flag_spec= |
7165 | export_dynamic_flag_spec= |
7166 | whole_archive_flag_spec= |
7167 | fi |
7168 | else |
7169 | # PORTME fill in a description of your system's linker (not GNU ld) |
7170 | case $host_os in |
7171 | aix3*) |
7172 | allow_undefined_flag=unsupported |
7173 | always_export_symbols=yes |
7174 | 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' |
7175 | # Note: this linker hardcodes the directories in LIBPATH if there |
7176 | # are no directories specified by -L. |
7177 | hardcode_minus_L=yes |
7178 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
7179 | # Neither direct hardcoding nor static linking is supported with a |
7180 | # broken collect2. |
7181 | hardcode_direct=unsupported |
7182 | fi |
7183 | ;; |
7184 | |
7185 | aix4* | aix5*) |
7186 | if test "$host_cpu" = ia64; then |
7187 | # On IA64, the linker does run time linking by default, so we don't |
7188 | # have to do anything special. |
7189 | aix_use_runtimelinking=no |
7190 | exp_sym_flag='-Bexport' |
7191 | no_entry_flag="" |
7192 | else |
7193 | # If we're using GNU nm, then we don't want the "-C" option. |
7194 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
7195 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
7196 | 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' |
7197 | else |
7198 | 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' |
7199 | fi |
7200 | aix_use_runtimelinking=no |
7201 | |
7202 | # Test if we are trying to use run time linking or normal |
7203 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
7204 | # need to do runtime linking. |
7205 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
7206 | for ld_flag in $LDFLAGS; do |
7207 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
7208 | aix_use_runtimelinking=yes |
7209 | break |
7210 | fi |
7211 | done |
7212 | ;; |
7213 | esac |
7214 | |
7215 | exp_sym_flag='-bexport' |
7216 | no_entry_flag='-bnoentry' |
7217 | fi |
7218 | |
7219 | # When large executables or shared objects are built, AIX ld can |
7220 | # have problems creating the table of contents. If linking a library |
7221 | # or program results in "error TOC overflow" add -mminimal-toc to |
7222 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
7223 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
7224 | |
7225 | archive_cmds='' |
7226 | hardcode_direct=yes |
7227 | hardcode_libdir_separator=':' |
7228 | link_all_deplibs=yes |
7229 | |
7230 | if test "$GCC" = yes; then |
7231 | case $host_os in aix4.[012]|aix4.[012].*) |
7232 | # We only want to do this on AIX 4.2 and lower, the check |
7233 | # below for broken collect2 doesn't work under 4.3+ |
7234 | collect2name=`${CC} -print-prog-name=collect2` |
7235 | if test -f "$collect2name" && \ |
7236 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
7237 | then |
7238 | # We have reworked collect2 |
7239 | hardcode_direct=yes |
7240 | else |
7241 | # We have old collect2 |
7242 | hardcode_direct=unsupported |
7243 | # It fails to find uninstalled libraries when the uninstalled |
7244 | # path is not listed in the libpath. Setting hardcode_minus_L |
7245 | # to unsupported forces relinking |
7246 | hardcode_minus_L=yes |
7247 | hardcode_libdir_flag_spec='-L$libdir' |
7248 | hardcode_libdir_separator= |
7249 | fi |
7250 | ;; |
7251 | esac |
7252 | shared_flag='-shared' |
7253 | if test "$aix_use_runtimelinking" = yes; then |
7254 | shared_flag="$shared_flag "'${wl}-G' |
7255 | fi |
7256 | else |
7257 | # not using gcc |
7258 | if test "$host_cpu" = ia64; then |
7259 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
7260 | # chokes on -Wl,-G. The following line is correct: |
7261 | shared_flag='-G' |
7262 | else |
7263 | if test "$aix_use_runtimelinking" = yes; then |
7264 | shared_flag='${wl}-G' |
7265 | else |
7266 | shared_flag='${wl}-bM:SRE' |
7267 | fi |
7268 | fi |
7269 | fi |
7270 | |
7271 | # It seems that -bexpall does not export symbols beginning with |
7272 | # underscore (_), so it is better to generate a list of symbols to export. |
7273 | always_export_symbols=yes |
7274 | if test "$aix_use_runtimelinking" = yes; then |
7275 | # Warning - without using the other runtime loading flags (-brtl), |
7276 | # -berok will link without error, but may produce a broken library. |
7277 | allow_undefined_flag='-berok' |
7278 | # Determine the default libpath from the value encoded in an empty executable. |
7279 | cat >conftest.$ac_ext <<_ACEOF |
7280 | /* confdefs.h. */ |
7281 | _ACEOF |
7282 | cat confdefs.h >>conftest.$ac_ext |
7283 | cat >>conftest.$ac_ext <<_ACEOF |
7284 | /* end confdefs.h. */ |
7285 | |
7286 | int |
7287 | main () |
7288 | { |
7289 | |
7290 | ; |
7291 | return 0; |
7292 | } |
7293 | _ACEOF |
7294 | rm -f conftest.$ac_objext conftest$ac_exeext |
7295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7296 | (eval $ac_link) 2>conftest.er1 |
7297 | ac_status=$? |
7298 | grep -v '^ *+' conftest.er1 >conftest.err |
7299 | rm -f conftest.er1 |
7300 | cat conftest.err >&5 |
7301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7302 | (exit $ac_status); } && |
7303 | { ac_try='test -z "$ac_c_werror_flag" |
7304 | || test ! -s conftest.err' |
7305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7306 | (eval $ac_try) 2>&5 |
7307 | ac_status=$? |
7308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7309 | (exit $ac_status); }; } && |
7310 | { ac_try='test -s conftest$ac_exeext' |
7311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7312 | (eval $ac_try) 2>&5 |
7313 | ac_status=$? |
7314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7315 | (exit $ac_status); }; }; then |
7316 | |
7317 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
7318 | }'` |
7319 | # Check for a 64-bit object if we didn't find anything. |
7320 | 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; } |
7321 | }'`; fi |
7322 | else |
7323 | echo "$as_me: failed program was:" >&5 |
7324 | sed 's/^/| /' conftest.$ac_ext >&5 |
7325 | |
7326 | fi |
7327 | rm -f conftest.err conftest.$ac_objext \ |
7328 | conftest$ac_exeext conftest.$ac_ext |
7329 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
7330 | |
7331 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
7332 | 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" |
7333 | else |
7334 | if test "$host_cpu" = ia64; then |
7335 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
7336 | allow_undefined_flag="-z nodefs" |
7337 | 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" |
7338 | else |
7339 | # Determine the default libpath from the value encoded in an empty executable. |
7340 | cat >conftest.$ac_ext <<_ACEOF |
7341 | /* confdefs.h. */ |
7342 | _ACEOF |
7343 | cat confdefs.h >>conftest.$ac_ext |
7344 | cat >>conftest.$ac_ext <<_ACEOF |
7345 | /* end confdefs.h. */ |
7346 | |
7347 | int |
7348 | main () |
7349 | { |
7350 | |
7351 | ; |
7352 | return 0; |
7353 | } |
7354 | _ACEOF |
7355 | rm -f conftest.$ac_objext conftest$ac_exeext |
7356 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7357 | (eval $ac_link) 2>conftest.er1 |
7358 | ac_status=$? |
7359 | grep -v '^ *+' conftest.er1 >conftest.err |
7360 | rm -f conftest.er1 |
7361 | cat conftest.err >&5 |
7362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7363 | (exit $ac_status); } && |
7364 | { ac_try='test -z "$ac_c_werror_flag" |
7365 | || test ! -s conftest.err' |
7366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7367 | (eval $ac_try) 2>&5 |
7368 | ac_status=$? |
7369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7370 | (exit $ac_status); }; } && |
7371 | { ac_try='test -s conftest$ac_exeext' |
7372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7373 | (eval $ac_try) 2>&5 |
7374 | ac_status=$? |
7375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7376 | (exit $ac_status); }; }; then |
7377 | |
7378 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
7379 | }'` |
7380 | # Check for a 64-bit object if we didn't find anything. |
7381 | 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; } |
7382 | }'`; fi |
7383 | else |
7384 | echo "$as_me: failed program was:" >&5 |
7385 | sed 's/^/| /' conftest.$ac_ext >&5 |
7386 | |
7387 | fi |
7388 | rm -f conftest.err conftest.$ac_objext \ |
7389 | conftest$ac_exeext conftest.$ac_ext |
7390 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
7391 | |
7392 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
7393 | # Warning - without using the other run time loading flags, |
7394 | # -berok will link without error, but may produce a broken library. |
7395 | no_undefined_flag=' ${wl}-bernotok' |
7396 | allow_undefined_flag=' ${wl}-berok' |
7397 | # Exported symbols can be pulled into shared objects from archives |
7398 | whole_archive_flag_spec='$convenience' |
7399 | archive_cmds_need_lc=yes |
7400 | # This is similar to how AIX traditionally builds its shared libraries. |
7401 | 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' |
7402 | fi |
7403 | fi |
7404 | ;; |
7405 | |
7406 | amigaos*) |
7407 | 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)' |
7408 | hardcode_libdir_flag_spec='-L$libdir' |
7409 | hardcode_minus_L=yes |
7410 | # see comment about different semantics on the GNU ld section |
7411 | ld_shlibs=no |
7412 | ;; |
7413 | |
7414 | bsdi[45]*) |
7415 | export_dynamic_flag_spec=-rdynamic |
7416 | ;; |
7417 | |
7418 | cygwin* | mingw* | pw32*) |
7419 | # When not using gcc, we currently assume that we are using |
7420 | # Microsoft Visual C++. |
7421 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
7422 | # no search path for DLLs. |
7423 | hardcode_libdir_flag_spec=' ' |
7424 | allow_undefined_flag=unsupported |
7425 | # Tell ltmain to make .lib files, not .a files. |
7426 | libext=lib |
7427 | # Tell ltmain to make .dll files, not .so files. |
7428 | shrext_cmds=".dll" |
7429 | # FIXME: Setting linknames here is a bad hack. |
7430 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
7431 | # The linker will automatically build a .lib file if we build a DLL. |
7432 | old_archive_From_new_cmds='true' |
7433 | # FIXME: Should let the user specify the lib program. |
7434 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
7435 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
7436 | enable_shared_with_static_runtimes=yes |
7437 | ;; |
7438 | |
7439 | darwin* | rhapsody*) |
7440 | case $host_os in |
7441 | rhapsody* | darwin1.[012]) |
7442 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
7443 | ;; |
7444 | *) # Darwin 1.3 on |
7445 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
7446 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
7447 | else |
7448 | case ${MACOSX_DEPLOYMENT_TARGET} in |
7449 | 10.[012]) |
7450 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
7451 | ;; |
7452 | 10.*) |
7453 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
7454 | ;; |
7455 | esac |
7456 | fi |
7457 | ;; |
7458 | esac |
7459 | archive_cmds_need_lc=no |
7460 | hardcode_direct=no |
7461 | hardcode_automatic=yes |
7462 | hardcode_shlibpath_var=unsupported |
7463 | whole_archive_flag_spec='' |
7464 | link_all_deplibs=yes |
7465 | if test "$GCC" = yes ; then |
7466 | output_verbose_link_cmd='echo' |
7467 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
7468 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
7469 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
7470 | 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}' |
7471 | 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}' |
7472 | else |
7473 | case $cc_basename in |
7474 | xlc*) |
7475 | output_verbose_link_cmd='echo' |
7476 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
7477 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
7478 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
7479 | 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}' |
7480 | 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}' |
7481 | ;; |
7482 | *) |
7483 | ld_shlibs=no |
7484 | ;; |
7485 | esac |
7486 | fi |
7487 | ;; |
7488 | |
7489 | dgux*) |
7490 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7491 | hardcode_libdir_flag_spec='-L$libdir' |
7492 | hardcode_shlibpath_var=no |
7493 | ;; |
7494 | |
7495 | freebsd1*) |
7496 | ld_shlibs=no |
7497 | ;; |
7498 | |
7499 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
7500 | # support. Future versions do this automatically, but an explicit c++rt0.o |
7501 | # does not break anything, and helps significantly (at the cost of a little |
7502 | # extra space). |
7503 | freebsd2.2*) |
7504 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
7505 | hardcode_libdir_flag_spec='-R$libdir' |
7506 | hardcode_direct=yes |
7507 | hardcode_shlibpath_var=no |
7508 | ;; |
7509 | |
7510 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
7511 | freebsd2*) |
7512 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7513 | hardcode_direct=yes |
7514 | hardcode_minus_L=yes |
7515 | hardcode_shlibpath_var=no |
7516 | ;; |
7517 | |
7518 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
7519 | freebsd* | kfreebsd*-gnu | dragonfly*) |
7520 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
7521 | hardcode_libdir_flag_spec='-R$libdir' |
7522 | hardcode_direct=yes |
7523 | hardcode_shlibpath_var=no |
7524 | ;; |
7525 | |
7526 | hpux9*) |
7527 | if test "$GCC" = yes; then |
7528 | 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' |
7529 | else |
7530 | 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' |
7531 | fi |
7532 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7533 | hardcode_libdir_separator=: |
7534 | hardcode_direct=yes |
7535 | |
7536 | # hardcode_minus_L: Not really in the search PATH, |
7537 | # but as the default location of the library. |
7538 | hardcode_minus_L=yes |
7539 | export_dynamic_flag_spec='${wl}-E' |
7540 | ;; |
7541 | |
7542 | hpux10*) |
7543 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
7544 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
7545 | else |
7546 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
7547 | fi |
7548 | if test "$with_gnu_ld" = no; then |
7549 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7550 | hardcode_libdir_separator=: |
7551 | |
7552 | hardcode_direct=yes |
7553 | export_dynamic_flag_spec='${wl}-E' |
7554 | |
7555 | # hardcode_minus_L: Not really in the search PATH, |
7556 | # but as the default location of the library. |
7557 | hardcode_minus_L=yes |
7558 | fi |
7559 | ;; |
7560 | |
7561 | hpux11*) |
7562 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
7563 | case $host_cpu in |
7564 | hppa*64*) |
7565 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7566 | ;; |
7567 | ia64*) |
7568 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
7569 | ;; |
7570 | *) |
7571 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
7572 | ;; |
7573 | esac |
7574 | else |
7575 | case $host_cpu in |
7576 | hppa*64*) |
7577 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7578 | ;; |
7579 | ia64*) |
7580 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
7581 | ;; |
7582 | *) |
7583 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
7584 | ;; |
7585 | esac |
7586 | fi |
7587 | if test "$with_gnu_ld" = no; then |
7588 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7589 | hardcode_libdir_separator=: |
7590 | |
7591 | case $host_cpu in |
7592 | hppa*64*|ia64*) |
7593 | hardcode_libdir_flag_spec_ld='+b $libdir' |
7594 | hardcode_direct=no |
7595 | hardcode_shlibpath_var=no |
7596 | ;; |
7597 | *) |
7598 | hardcode_direct=yes |
7599 | export_dynamic_flag_spec='${wl}-E' |
7600 | |
7601 | # hardcode_minus_L: Not really in the search PATH, |
7602 | # but as the default location of the library. |
7603 | hardcode_minus_L=yes |
7604 | ;; |
7605 | esac |
7606 | fi |
7607 | ;; |
7608 | |
7609 | irix5* | irix6* | nonstopux*) |
7610 | if test "$GCC" = yes; then |
7611 | 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' |
7612 | else |
7613 | 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' |
7614 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
7615 | fi |
7616 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7617 | hardcode_libdir_separator=: |
7618 | link_all_deplibs=yes |
7619 | ;; |
7620 | |
7621 | netbsd*) |
7622 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7623 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
7624 | else |
7625 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
7626 | fi |
7627 | hardcode_libdir_flag_spec='-R$libdir' |
7628 | hardcode_direct=yes |
7629 | hardcode_shlibpath_var=no |
7630 | ;; |
7631 | |
7632 | newsos6) |
7633 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7634 | hardcode_direct=yes |
7635 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7636 | hardcode_libdir_separator=: |
7637 | hardcode_shlibpath_var=no |
7638 | ;; |
7639 | |
7640 | openbsd*) |
7641 | hardcode_direct=yes |
7642 | hardcode_shlibpath_var=no |
7643 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
7644 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
7645 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
7646 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7647 | export_dynamic_flag_spec='${wl}-E' |
7648 | else |
7649 | case $host_os in |
7650 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
7651 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7652 | hardcode_libdir_flag_spec='-R$libdir' |
7653 | ;; |
7654 | *) |
7655 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
7656 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7657 | ;; |
7658 | esac |
7659 | fi |
7660 | ;; |
7661 | |
7662 | os2*) |
7663 | hardcode_libdir_flag_spec='-L$libdir' |
7664 | hardcode_minus_L=yes |
7665 | allow_undefined_flag=unsupported |
7666 | 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' |
7667 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
7668 | ;; |
7669 | |
7670 | osf3*) |
7671 | if test "$GCC" = yes; then |
7672 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
7673 | 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' |
7674 | else |
7675 | allow_undefined_flag=' -expect_unresolved \*' |
7676 | 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' |
7677 | fi |
7678 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7679 | hardcode_libdir_separator=: |
7680 | ;; |
7681 | |
7682 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
7683 | if test "$GCC" = yes; then |
7684 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
7685 | 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' |
7686 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7687 | else |
7688 | allow_undefined_flag=' -expect_unresolved \*' |
7689 | 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' |
7690 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
7691 | $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' |
7692 | |
7693 | # Both c and cxx compiler support -rpath directly |
7694 | hardcode_libdir_flag_spec='-rpath $libdir' |
7695 | fi |
7696 | hardcode_libdir_separator=: |
7697 | ;; |
7698 | |
7699 | solaris*) |
7700 | no_undefined_flag=' -z text' |
7701 | if test "$GCC" = yes; then |
7702 | wlarc='${wl}' |
7703 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7704 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
7705 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
7706 | else |
7707 | wlarc='' |
7708 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7709 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
7710 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
7711 | fi |
7712 | hardcode_libdir_flag_spec='-R$libdir' |
7713 | hardcode_shlibpath_var=no |
7714 | case $host_os in |
7715 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
7716 | *) |
7717 | # The compiler driver will combine linker options so we |
7718 | # cannot just pass the convience library names through |
7719 | # without $wl, iff we do not link with $LD. |
7720 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
7721 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
7722 | case $wlarc in |
7723 | '') |
7724 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
7725 | *) |
7726 | 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' ;; |
7727 | esac ;; |
7728 | esac |
7729 | link_all_deplibs=yes |
7730 | ;; |
7731 | |
7732 | sunos4*) |
7733 | if test "x$host_vendor" = xsequent; then |
7734 | # Use $CC to link under sequent, because it throws in some extra .o |
7735 | # files that make .init and .fini sections work. |
7736 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
7737 | else |
7738 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
7739 | fi |
7740 | hardcode_libdir_flag_spec='-L$libdir' |
7741 | hardcode_direct=yes |
7742 | hardcode_minus_L=yes |
7743 | hardcode_shlibpath_var=no |
7744 | ;; |
7745 | |
7746 | sysv4) |
7747 | case $host_vendor in |
7748 | sni) |
7749 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7750 | hardcode_direct=yes # is this really true??? |
7751 | ;; |
7752 | siemens) |
7753 | ## LD is ld it makes a PLAMLIB |
7754 | ## CC just makes a GrossModule. |
7755 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
7756 | reload_cmds='$CC -r -o $output$reload_objs' |
7757 | hardcode_direct=no |
7758 | ;; |
7759 | motorola) |
7760 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7761 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
7762 | ;; |
7763 | esac |
7764 | runpath_var='LD_RUN_PATH' |
7765 | hardcode_shlibpath_var=no |
7766 | ;; |
7767 | |
7768 | sysv4.3*) |
7769 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7770 | hardcode_shlibpath_var=no |
7771 | export_dynamic_flag_spec='-Bexport' |
7772 | ;; |
7773 | |
7774 | sysv4*MP*) |
7775 | if test -d /usr/nec; then |
7776 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7777 | hardcode_shlibpath_var=no |
7778 | runpath_var=LD_RUN_PATH |
7779 | hardcode_runpath_var=yes |
7780 | ld_shlibs=yes |
7781 | fi |
7782 | ;; |
7783 | |
7784 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
7785 | no_undefined_flag='${wl}-z,text' |
7786 | archive_cmds_need_lc=no |
7787 | hardcode_shlibpath_var=no |
7788 | runpath_var='LD_RUN_PATH' |
7789 | |
7790 | if test "$GCC" = yes; then |
7791 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7792 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7793 | else |
7794 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7795 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7796 | fi |
7797 | ;; |
7798 | |
7799 | sysv5* | sco3.2v5* | sco5v6*) |
7800 | # Note: We can NOT use -z defs as we might desire, because we do not |
7801 | # link with -lc, and that would cause any symbols used from libc to |
7802 | # always be unresolved, which means just about no library would |
7803 | # ever link correctly. If we're not using GNU ld we use -z text |
7804 | # though, which does catch some bad symbols but isn't as heavy-handed |
7805 | # as -z defs. |
7806 | no_undefined_flag='${wl}-z,text' |
7807 | allow_undefined_flag='${wl}-z,nodefs' |
7808 | archive_cmds_need_lc=no |
7809 | hardcode_shlibpath_var=no |
7810 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
7811 | hardcode_libdir_separator=':' |
7812 | link_all_deplibs=yes |
7813 | export_dynamic_flag_spec='${wl}-Bexport' |
7814 | runpath_var='LD_RUN_PATH' |
7815 | |
7816 | if test "$GCC" = yes; then |
7817 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7818 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7819 | else |
7820 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7821 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7822 | fi |
7823 | ;; |
7824 | |
7825 | uts4*) |
7826 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7827 | hardcode_libdir_flag_spec='-L$libdir' |
7828 | hardcode_shlibpath_var=no |
7829 | ;; |
7830 | |
7831 | *) |
7832 | ld_shlibs=no |
7833 | ;; |
7834 | esac |
7835 | fi |
7836 | |
7837 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
7838 | echo "${ECHO_T}$ld_shlibs" >&6 |
7839 | test "$ld_shlibs" = no && can_build_shared=no |
7840 | |
7841 | # |
7842 | # Do we need to explicitly link libc? |
7843 | # |
7844 | case "x$archive_cmds_need_lc" in |
7845 | x|xyes) |
7846 | # Assume -lc should be added |
7847 | archive_cmds_need_lc=yes |
7848 | |
7849 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
7850 | case $archive_cmds in |
7851 | *'~'*) |
7852 | # FIXME: we may have to deal with multi-command sequences. |
7853 | ;; |
7854 | '$CC '*) |
7855 | # Test whether the compiler implicitly links with -lc since on some |
7856 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
7857 | # to ld, don't add -lc before -lgcc. |
7858 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
7859 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
7860 | $rm conftest* |
7861 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7862 | |
7863 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7864 | (eval $ac_compile) 2>&5 |
7865 | ac_status=$? |
7866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7867 | (exit $ac_status); } 2>conftest.err; then |
7868 | soname=conftest |
7869 | lib=conftest |
7870 | libobjs=conftest.$ac_objext |
7871 | deplibs= |
7872 | wl=$lt_prog_compiler_wl |
7873 | pic_flag=$lt_prog_compiler_pic |
7874 | compiler_flags=-v |
7875 | linker_flags=-v |
7876 | verstring= |
7877 | output_objdir=. |
7878 | libname=conftest |
7879 | lt_save_allow_undefined_flag=$allow_undefined_flag |
7880 | allow_undefined_flag= |
7881 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
7882 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
7883 | ac_status=$? |
7884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7885 | (exit $ac_status); } |
7886 | then |
7887 | archive_cmds_need_lc=no |
7888 | else |
7889 | archive_cmds_need_lc=yes |
7890 | fi |
7891 | allow_undefined_flag=$lt_save_allow_undefined_flag |
7892 | else |
7893 | cat conftest.err 1>&5 |
7894 | fi |
7895 | $rm conftest* |
7896 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
7897 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
7898 | ;; |
7899 | esac |
7900 | fi |
7901 | ;; |
7902 | esac |
7903 | |
7904 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
7905 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
7906 | library_names_spec= |
7907 | libname_spec='lib$name' |
7908 | soname_spec= |
7909 | shrext_cmds=".so" |
7910 | postinstall_cmds= |
7911 | postuninstall_cmds= |
7912 | finish_cmds= |
7913 | finish_eval= |
7914 | shlibpath_var= |
7915 | shlibpath_overrides_runpath=unknown |
7916 | version_type=none |
7917 | dynamic_linker="$host_os ld.so" |
7918 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
7919 | if test "$GCC" = yes; then |
7920 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
7921 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
7922 | # if the path contains ";" then we assume it to be the separator |
7923 | # otherwise default to the standard path separator (i.e. ":") - it is |
7924 | # assumed that no part of a normal pathname contains ";" but that should |
7925 | # okay in the real world where ";" in dirpaths is itself problematic. |
7926 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
7927 | else |
7928 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
7929 | fi |
7930 | else |
7931 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
7932 | fi |
7933 | need_lib_prefix=unknown |
7934 | hardcode_into_libs=no |
7935 | |
7936 | # when you set need_version to no, make sure it does not cause -set_version |
7937 | # flags to be left without arguments |
7938 | need_version=unknown |
7939 | |
7940 | case $host_os in |
7941 | aix3*) |
7942 | version_type=linux |
7943 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
7944 | shlibpath_var=LIBPATH |
7945 | |
7946 | # AIX 3 has no versioning support, so we append a major version to the name. |
7947 | soname_spec='${libname}${release}${shared_ext}$major' |
7948 | ;; |
7949 | |
7950 | aix4* | aix5*) |
7951 | version_type=linux |
7952 | need_lib_prefix=no |
7953 | need_version=no |
7954 | hardcode_into_libs=yes |
7955 | if test "$host_cpu" = ia64; then |
7956 | # AIX 5 supports IA64 |
7957 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
7958 | shlibpath_var=LD_LIBRARY_PATH |
7959 | else |
7960 | # With GCC up to 2.95.x, collect2 would create an import file |
7961 | # for dependence libraries. The import file would start with |
7962 | # the line `#! .'. This would cause the generated library to |
7963 | # depend on `.', always an invalid library. This was fixed in |
7964 | # development snapshots of GCC prior to 3.0. |
7965 | case $host_os in |
7966 | aix4 | aix4.[01] | aix4.[01].*) |
7967 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
7968 | echo ' yes ' |
7969 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
7970 | : |
7971 | else |
7972 | can_build_shared=no |
7973 | fi |
7974 | ;; |
7975 | esac |
7976 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
7977 | # soname into executable. Probably we can add versioning support to |
7978 | # collect2, so additional links can be useful in future. |
7979 | if test "$aix_use_runtimelinking" = yes; then |
7980 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
7981 | # instead of lib<name>.a to let people know that these are not |
7982 | # typical AIX shared libraries. |
7983 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
7984 | else |
7985 | # We preserve .a as extension for shared libraries through AIX4.2 |
7986 | # and later when we are not doing run time linking. |
7987 | library_names_spec='${libname}${release}.a $libname.a' |
7988 | soname_spec='${libname}${release}${shared_ext}$major' |
7989 | fi |
7990 | shlibpath_var=LIBPATH |
7991 | fi |
7992 | ;; |
7993 | |
7994 | amigaos*) |
7995 | library_names_spec='$libname.ixlibrary $libname.a' |
7996 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
7997 | 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' |
7998 | ;; |
7999 | |
8000 | beos*) |
8001 | library_names_spec='${libname}${shared_ext}' |
8002 | dynamic_linker="$host_os ld.so" |
8003 | shlibpath_var=LIBRARY_PATH |
8004 | ;; |
8005 | |
8006 | bsdi[45]*) |
8007 | version_type=linux |
8008 | need_version=no |
8009 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8010 | soname_spec='${libname}${release}${shared_ext}$major' |
8011 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
8012 | shlibpath_var=LD_LIBRARY_PATH |
8013 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
8014 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
8015 | # the default ld.so.conf also contains /usr/contrib/lib and |
8016 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
8017 | # libtool to hard-code these into programs |
8018 | ;; |
8019 | |
8020 | cygwin* | mingw* | pw32*) |
8021 | version_type=windows |
8022 | shrext_cmds=".dll" |
8023 | need_version=no |
8024 | need_lib_prefix=no |
8025 | |
8026 | case $GCC,$host_os in |
8027 | yes,cygwin* | yes,mingw* | yes,pw32*) |
8028 | library_names_spec='$libname.dll.a' |
8029 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
8030 | postinstall_cmds='base_file=`basename \${file}`~ |
8031 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
8032 | dldir=$destdir/`dirname \$dlpath`~ |
8033 | test -d \$dldir || mkdir -p \$dldir~ |
8034 | $install_prog $dir/$dlname \$dldir/$dlname~ |
8035 | chmod a+x \$dldir/$dlname' |
8036 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
8037 | dlpath=$dir/\$dldll~ |
8038 | $rm \$dlpath' |
8039 | shlibpath_overrides_runpath=yes |
8040 | |
8041 | case $host_os in |
8042 | cygwin*) |
8043 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
8044 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8045 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
8046 | ;; |
8047 | mingw*) |
8048 | # MinGW DLLs use traditional 'lib' prefix |
8049 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8050 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8051 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
8052 | # It is most probably a Windows format PATH printed by |
8053 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
8054 | # path with ; separators, and with drive letters. We can handle the |
8055 | # drive letters (cygwin fileutils understands them), so leave them, |
8056 | # especially as we might pass files found there to a mingw objdump, |
8057 | # which wouldn't understand a cygwinified path. Ahh. |
8058 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
8059 | else |
8060 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8061 | fi |
8062 | ;; |
8063 | pw32*) |
8064 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
8065 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8066 | ;; |
8067 | esac |
8068 | ;; |
8069 | |
8070 | *) |
8071 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
8072 | ;; |
8073 | esac |
8074 | dynamic_linker='Win32 ld.exe' |
8075 | # FIXME: first we should search . and the directory the executable is in |
8076 | shlibpath_var=PATH |
8077 | ;; |
8078 | |
8079 | darwin* | rhapsody*) |
8080 | dynamic_linker="$host_os dyld" |
8081 | version_type=darwin |
8082 | need_lib_prefix=no |
8083 | need_version=no |
8084 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
8085 | soname_spec='${libname}${release}${major}$shared_ext' |
8086 | shlibpath_overrides_runpath=yes |
8087 | shlibpath_var=DYLD_LIBRARY_PATH |
8088 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
8089 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
8090 | if test "$GCC" = yes; then |
8091 | 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"` |
8092 | else |
8093 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
8094 | fi |
8095 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
8096 | ;; |
8097 | |
8098 | dgux*) |
8099 | version_type=linux |
8100 | need_lib_prefix=no |
8101 | need_version=no |
8102 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
8103 | soname_spec='${libname}${release}${shared_ext}$major' |
8104 | shlibpath_var=LD_LIBRARY_PATH |
8105 | ;; |
8106 | |
8107 | freebsd1*) |
8108 | dynamic_linker=no |
8109 | ;; |
8110 | |
8111 | kfreebsd*-gnu) |
8112 | version_type=linux |
8113 | need_lib_prefix=no |
8114 | need_version=no |
8115 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8116 | soname_spec='${libname}${release}${shared_ext}$major' |
8117 | shlibpath_var=LD_LIBRARY_PATH |
8118 | shlibpath_overrides_runpath=no |
8119 | hardcode_into_libs=yes |
8120 | dynamic_linker='GNU ld.so' |
8121 | ;; |
8122 | |
8123 | freebsd* | dragonfly*) |
8124 | # DragonFly does not have aout. When/if they implement a new |
8125 | # versioning mechanism, adjust this. |
8126 | if test -x /usr/bin/objformat; then |
8127 | objformat=`/usr/bin/objformat` |
8128 | else |
8129 | case $host_os in |
8130 | freebsd[123]*) objformat=aout ;; |
8131 | *) objformat=elf ;; |
8132 | esac |
8133 | fi |
8134 | version_type=freebsd-$objformat |
8135 | case $version_type in |
8136 | freebsd-elf*) |
8137 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
8138 | need_version=no |
8139 | need_lib_prefix=no |
8140 | ;; |
8141 | freebsd-*) |
8142 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
8143 | need_version=yes |
8144 | ;; |
8145 | esac |
8146 | shlibpath_var=LD_LIBRARY_PATH |
8147 | case $host_os in |
8148 | freebsd2*) |
8149 | shlibpath_overrides_runpath=yes |
8150 | ;; |
8151 | freebsd3.[01]* | freebsdelf3.[01]*) |
8152 | shlibpath_overrides_runpath=yes |
8153 | hardcode_into_libs=yes |
8154 | ;; |
8155 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
8156 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
8157 | shlibpath_overrides_runpath=no |
8158 | hardcode_into_libs=yes |
8159 | ;; |
8160 | freebsd*) # from 4.6 on |
8161 | shlibpath_overrides_runpath=yes |
8162 | hardcode_into_libs=yes |
8163 | ;; |
8164 | esac |
8165 | ;; |
8166 | |
8167 | gnu*) |
8168 | version_type=linux |
8169 | need_lib_prefix=no |
8170 | need_version=no |
8171 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
8172 | soname_spec='${libname}${release}${shared_ext}$major' |
8173 | shlibpath_var=LD_LIBRARY_PATH |
8174 | hardcode_into_libs=yes |
8175 | ;; |
8176 | |
8177 | hpux9* | hpux10* | hpux11*) |
8178 | # Give a soname corresponding to the major version so that dld.sl refuses to |
8179 | # link against other versions. |
8180 | version_type=sunos |
8181 | need_lib_prefix=no |
8182 | need_version=no |
8183 | case $host_cpu in |
8184 | ia64*) |
8185 | shrext_cmds='.so' |
8186 | hardcode_into_libs=yes |
8187 | dynamic_linker="$host_os dld.so" |
8188 | shlibpath_var=LD_LIBRARY_PATH |
8189 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8190 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8191 | soname_spec='${libname}${release}${shared_ext}$major' |
8192 | if test "X$HPUX_IA64_MODE" = X32; then |
8193 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
8194 | else |
8195 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
8196 | fi |
8197 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8198 | ;; |
8199 | hppa*64*) |
8200 | shrext_cmds='.sl' |
8201 | hardcode_into_libs=yes |
8202 | dynamic_linker="$host_os dld.sl" |
8203 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
8204 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8205 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8206 | soname_spec='${libname}${release}${shared_ext}$major' |
8207 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
8208 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8209 | ;; |
8210 | *) |
8211 | shrext_cmds='.sl' |
8212 | dynamic_linker="$host_os dld.sl" |
8213 | shlibpath_var=SHLIB_PATH |
8214 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
8215 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8216 | soname_spec='${libname}${release}${shared_ext}$major' |
8217 | ;; |
8218 | esac |
8219 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
8220 | postinstall_cmds='chmod 555 $lib' |
8221 | ;; |
8222 | |
8223 | interix3*) |
8224 | version_type=linux |
8225 | need_lib_prefix=no |
8226 | need_version=no |
8227 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8228 | soname_spec='${libname}${release}${shared_ext}$major' |
8229 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
8230 | shlibpath_var=LD_LIBRARY_PATH |
8231 | shlibpath_overrides_runpath=no |
8232 | hardcode_into_libs=yes |
8233 | ;; |
8234 | |
8235 | irix5* | irix6* | nonstopux*) |
8236 | case $host_os in |
8237 | nonstopux*) version_type=nonstopux ;; |
8238 | *) |
8239 | if test "$lt_cv_prog_gnu_ld" = yes; then |
8240 | version_type=linux |
8241 | else |
8242 | version_type=irix |
8243 | fi ;; |
8244 | esac |
8245 | need_lib_prefix=no |
8246 | need_version=no |
8247 | soname_spec='${libname}${release}${shared_ext}$major' |
8248 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
8249 | case $host_os in |
8250 | irix5* | nonstopux*) |
8251 | libsuff= shlibsuff= |
8252 | ;; |
8253 | *) |
8254 | case $LD in # libtool.m4 will add one of these switches to LD |
8255 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
8256 | libsuff= shlibsuff= libmagic=32-bit;; |
8257 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
8258 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
8259 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
8260 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
8261 | *) libsuff= shlibsuff= libmagic=never-match;; |
8262 | esac |
8263 | ;; |
8264 | esac |
8265 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
8266 | shlibpath_overrides_runpath=no |
8267 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
8268 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
8269 | hardcode_into_libs=yes |
8270 | ;; |
8271 | |
8272 | # No shared lib support for Linux oldld, aout, or coff. |
8273 | linux*oldld* | linux*aout* | linux*coff*) |
8274 | dynamic_linker=no |
8275 | ;; |
8276 | |
8277 | # This must be Linux ELF. |
8278 | linux*) |
8279 | version_type=linux |
8280 | need_lib_prefix=no |
8281 | need_version=no |
8282 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8283 | soname_spec='${libname}${release}${shared_ext}$major' |
8284 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
8285 | shlibpath_var=LD_LIBRARY_PATH |
8286 | shlibpath_overrides_runpath=no |
8287 | # This implies no fast_install, which is unacceptable. |
8288 | # Some rework will be needed to allow for fast_install |
8289 | # before this can be enabled. |
8290 | hardcode_into_libs=yes |
8291 | |
8292 | # find out which ABI we are using |
8293 | libsuff= |
8294 | case "$host_cpu" in |
8295 | x86_64*|s390x*|powerpc64*) |
8296 | echo '#line 8296 "configure"' > conftest.$ac_ext |
8297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8298 | (eval $ac_compile) 2>&5 |
8299 | ac_status=$? |
8300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8301 | (exit $ac_status); }; then |
8302 | case `/usr/bin/file conftest.$ac_objext` in |
8303 | *64-bit*) |
8304 | libsuff=64 |
8305 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
8306 | ;; |
8307 | esac |
8308 | fi |
8309 | rm -rf conftest* |
8310 | ;; |
8311 | esac |
8312 | |
8313 | # Append ld.so.conf contents to the search path |
8314 | if test -f /etc/ld.so.conf; then |
8315 | 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' ' '` |
8316 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
8317 | fi |
8318 | |
8319 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
8320 | # powerpc, because MkLinux only supported shared libraries with the |
8321 | # GNU dynamic linker. Since this was broken with cross compilers, |
8322 | # most powerpc-linux boxes support dynamic linking these days and |
8323 | # people can always --disable-shared, the test was removed, and we |
8324 | # assume the GNU/Linux dynamic linker is in use. |
8325 | dynamic_linker='GNU/Linux ld.so' |
8326 | ;; |
8327 | |
8328 | knetbsd*-gnu) |
8329 | version_type=linux |
8330 | need_lib_prefix=no |
8331 | need_version=no |
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 | shlibpath_var=LD_LIBRARY_PATH |
8335 | shlibpath_overrides_runpath=no |
8336 | hardcode_into_libs=yes |
8337 | dynamic_linker='GNU ld.so' |
8338 | ;; |
8339 | |
8340 | netbsd*) |
8341 | version_type=sunos |
8342 | need_lib_prefix=no |
8343 | need_version=no |
8344 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8345 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8346 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
8347 | dynamic_linker='NetBSD (a.out) ld.so' |
8348 | else |
8349 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8350 | soname_spec='${libname}${release}${shared_ext}$major' |
8351 | dynamic_linker='NetBSD ld.elf_so' |
8352 | fi |
8353 | shlibpath_var=LD_LIBRARY_PATH |
8354 | shlibpath_overrides_runpath=yes |
8355 | hardcode_into_libs=yes |
8356 | ;; |
8357 | |
8358 | newsos6) |
8359 | version_type=linux |
8360 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8361 | shlibpath_var=LD_LIBRARY_PATH |
8362 | shlibpath_overrides_runpath=yes |
8363 | ;; |
8364 | |
8365 | nto-qnx*) |
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 | shlibpath_var=LD_LIBRARY_PATH |
8372 | shlibpath_overrides_runpath=yes |
8373 | ;; |
8374 | |
8375 | openbsd*) |
8376 | version_type=sunos |
8377 | sys_lib_dlsearch_path_spec="/usr/lib" |
8378 | need_lib_prefix=no |
8379 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
8380 | case $host_os in |
8381 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
8382 | *) need_version=no ;; |
8383 | esac |
8384 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8385 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
8386 | shlibpath_var=LD_LIBRARY_PATH |
8387 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
8388 | case $host_os in |
8389 | openbsd2.[89] | openbsd2.[89].*) |
8390 | shlibpath_overrides_runpath=no |
8391 | ;; |
8392 | *) |
8393 | shlibpath_overrides_runpath=yes |
8394 | ;; |
8395 | esac |
8396 | else |
8397 | shlibpath_overrides_runpath=yes |
8398 | fi |
8399 | ;; |
8400 | |
8401 | os2*) |
8402 | libname_spec='$name' |
8403 | shrext_cmds=".dll" |
8404 | need_lib_prefix=no |
8405 | library_names_spec='$libname${shared_ext} $libname.a' |
8406 | dynamic_linker='OS/2 ld.exe' |
8407 | shlibpath_var=LIBPATH |
8408 | ;; |
8409 | |
8410 | osf3* | osf4* | osf5*) |
8411 | version_type=osf |
8412 | need_lib_prefix=no |
8413 | need_version=no |
8414 | soname_spec='${libname}${release}${shared_ext}$major' |
8415 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8416 | shlibpath_var=LD_LIBRARY_PATH |
8417 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
8418 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
8419 | ;; |
8420 | |
8421 | solaris*) |
8422 | version_type=linux |
8423 | need_lib_prefix=no |
8424 | need_version=no |
8425 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8426 | soname_spec='${libname}${release}${shared_ext}$major' |
8427 | shlibpath_var=LD_LIBRARY_PATH |
8428 | shlibpath_overrides_runpath=yes |
8429 | hardcode_into_libs=yes |
8430 | # ldd complains unless libraries are executable |
8431 | postinstall_cmds='chmod +x $lib' |
8432 | ;; |
8433 | |
8434 | sunos4*) |
8435 | version_type=sunos |
8436 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8437 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
8438 | shlibpath_var=LD_LIBRARY_PATH |
8439 | shlibpath_overrides_runpath=yes |
8440 | if test "$with_gnu_ld" = yes; then |
8441 | need_lib_prefix=no |
8442 | fi |
8443 | need_version=yes |
8444 | ;; |
8445 | |
8446 | sysv4 | sysv4.3*) |
8447 | version_type=linux |
8448 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8449 | soname_spec='${libname}${release}${shared_ext}$major' |
8450 | shlibpath_var=LD_LIBRARY_PATH |
8451 | case $host_vendor in |
8452 | sni) |
8453 | shlibpath_overrides_runpath=no |
8454 | need_lib_prefix=no |
8455 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
8456 | runpath_var=LD_RUN_PATH |
8457 | ;; |
8458 | siemens) |
8459 | need_lib_prefix=no |
8460 | ;; |
8461 | motorola) |
8462 | need_lib_prefix=no |
8463 | need_version=no |
8464 | shlibpath_overrides_runpath=no |
8465 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
8466 | ;; |
8467 | esac |
8468 | ;; |
8469 | |
8470 | sysv4*MP*) |
8471 | if test -d /usr/nec ;then |
8472 | version_type=linux |
8473 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
8474 | soname_spec='$libname${shared_ext}.$major' |
8475 | shlibpath_var=LD_LIBRARY_PATH |
8476 | fi |
8477 | ;; |
8478 | |
8479 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
8480 | version_type=freebsd-elf |
8481 | need_lib_prefix=no |
8482 | need_version=no |
8483 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
8484 | soname_spec='${libname}${release}${shared_ext}$major' |
8485 | shlibpath_var=LD_LIBRARY_PATH |
8486 | hardcode_into_libs=yes |
8487 | if test "$with_gnu_ld" = yes; then |
8488 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
8489 | shlibpath_overrides_runpath=no |
8490 | else |
8491 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
8492 | shlibpath_overrides_runpath=yes |
8493 | case $host_os in |
8494 | sco3.2v5*) |
8495 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
8496 | ;; |
8497 | esac |
8498 | fi |
8499 | sys_lib_dlsearch_path_spec='/usr/lib' |
8500 | ;; |
8501 | |
8502 | uts4*) |
8503 | version_type=linux |
8504 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8505 | soname_spec='${libname}${release}${shared_ext}$major' |
8506 | shlibpath_var=LD_LIBRARY_PATH |
8507 | ;; |
8508 | |
8509 | *) |
8510 | dynamic_linker=no |
8511 | ;; |
8512 | esac |
8513 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
8514 | echo "${ECHO_T}$dynamic_linker" >&6 |
8515 | test "$dynamic_linker" = no && can_build_shared=no |
8516 | |
8517 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
8518 | if test "$GCC" = yes; then |
8519 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
8520 | fi |
8521 | |
8522 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
8523 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
8524 | hardcode_action= |
8525 | if test -n "$hardcode_libdir_flag_spec" || \ |
8526 | test -n "$runpath_var" || \ |
8527 | test "X$hardcode_automatic" = "Xyes" ; then |
8528 | |
8529 | # We can hardcode non-existant directories. |
8530 | if test "$hardcode_direct" != no && |
8531 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
8532 | # have to relink, otherwise we might link with an installed library |
8533 | # when we should be linking with a yet-to-be-installed one |
8534 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
8535 | test "$hardcode_minus_L" != no; then |
8536 | # Linking always hardcodes the temporary library directory. |
8537 | hardcode_action=relink |
8538 | else |
8539 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
8540 | hardcode_action=immediate |
8541 | fi |
8542 | else |
8543 | # We cannot hardcode anything, or else we can only hardcode existing |
8544 | # directories. |
8545 | hardcode_action=unsupported |
8546 | fi |
8547 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
8548 | echo "${ECHO_T}$hardcode_action" >&6 |
8549 | |
8550 | if test "$hardcode_action" = relink; then |
8551 | # Fast installation is not supported |
8552 | enable_fast_install=no |
8553 | elif test "$shlibpath_overrides_runpath" = yes || |
8554 | test "$enable_shared" = no; then |
8555 | # Fast installation is not necessary |
8556 | enable_fast_install=needless |
8557 | fi |
8558 | |
8559 | striplib= |
8560 | old_striplib= |
8561 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
8562 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
8563 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
8564 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
8565 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
8566 | echo "$as_me:$LINENO: result: yes" >&5 |
8567 | echo "${ECHO_T}yes" >&6 |
8568 | else |
8569 | # FIXME - insert some real tests, host_os isn't really good enough |
8570 | case $host_os in |
8571 | darwin*) |
8572 | if test -n "$STRIP" ; then |
8573 | striplib="$STRIP -x" |
8574 | echo "$as_me:$LINENO: result: yes" >&5 |
8575 | echo "${ECHO_T}yes" >&6 |
8576 | else |
8577 | echo "$as_me:$LINENO: result: no" >&5 |
8578 | echo "${ECHO_T}no" >&6 |
8579 | fi |
8580 | ;; |
8581 | *) |
8582 | echo "$as_me:$LINENO: result: no" >&5 |
8583 | echo "${ECHO_T}no" >&6 |
8584 | ;; |
8585 | esac |
8586 | fi |
8587 | |
8588 | if test "x$enable_dlopen" != xyes; then |
8589 | enable_dlopen=unknown |
8590 | enable_dlopen_self=unknown |
8591 | enable_dlopen_self_static=unknown |
8592 | else |
8593 | lt_cv_dlopen=no |
8594 | lt_cv_dlopen_libs= |
8595 | |
8596 | case $host_os in |
8597 | beos*) |
8598 | lt_cv_dlopen="load_add_on" |
8599 | lt_cv_dlopen_libs= |
8600 | lt_cv_dlopen_self=yes |
8601 | ;; |
8602 | |
8603 | mingw* | pw32*) |
8604 | lt_cv_dlopen="LoadLibrary" |
8605 | lt_cv_dlopen_libs= |
8606 | ;; |
8607 | |
8608 | cygwin*) |
8609 | lt_cv_dlopen="dlopen" |
8610 | lt_cv_dlopen_libs= |
8611 | ;; |
8612 | |
8613 | darwin*) |
8614 | # if libdl is installed we need to link against it |
8615 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
8616 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
8617 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
8618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8619 | else |
8620 | ac_check_lib_save_LIBS=$LIBS |
8621 | LIBS="-ldl $LIBS" |
8622 | cat >conftest.$ac_ext <<_ACEOF |
8623 | /* confdefs.h. */ |
8624 | _ACEOF |
8625 | cat confdefs.h >>conftest.$ac_ext |
8626 | cat >>conftest.$ac_ext <<_ACEOF |
8627 | /* end confdefs.h. */ |
8628 | |
8629 | /* Override any gcc2 internal prototype to avoid an error. */ |
8630 | #ifdef __cplusplus |
8631 | extern "C" |
8632 | #endif |
8633 | /* We use char because int might match the return type of a gcc2 |
8634 | builtin and then its argument prototype would still apply. */ |
8635 | char dlopen (); |
8636 | int |
8637 | main () |
8638 | { |
8639 | dlopen (); |
8640 | ; |
8641 | return 0; |
8642 | } |
8643 | _ACEOF |
8644 | rm -f conftest.$ac_objext conftest$ac_exeext |
8645 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8646 | (eval $ac_link) 2>conftest.er1 |
8647 | ac_status=$? |
8648 | grep -v '^ *+' conftest.er1 >conftest.err |
8649 | rm -f conftest.er1 |
8650 | cat conftest.err >&5 |
8651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8652 | (exit $ac_status); } && |
8653 | { ac_try='test -z "$ac_c_werror_flag" |
8654 | || test ! -s conftest.err' |
8655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8656 | (eval $ac_try) 2>&5 |
8657 | ac_status=$? |
8658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8659 | (exit $ac_status); }; } && |
8660 | { ac_try='test -s conftest$ac_exeext' |
8661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8662 | (eval $ac_try) 2>&5 |
8663 | ac_status=$? |
8664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8665 | (exit $ac_status); }; }; then |
8666 | ac_cv_lib_dl_dlopen=yes |
8667 | else |
8668 | echo "$as_me: failed program was:" >&5 |
8669 | sed 's/^/| /' conftest.$ac_ext >&5 |
8670 | |
8671 | ac_cv_lib_dl_dlopen=no |
8672 | fi |
8673 | rm -f conftest.err conftest.$ac_objext \ |
8674 | conftest$ac_exeext conftest.$ac_ext |
8675 | LIBS=$ac_check_lib_save_LIBS |
8676 | fi |
8677 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
8678 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
8679 | if test $ac_cv_lib_dl_dlopen = yes; then |
8680 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
8681 | else |
8682 | |
8683 | lt_cv_dlopen="dyld" |
8684 | lt_cv_dlopen_libs= |
8685 | lt_cv_dlopen_self=yes |
8686 | |
8687 | fi |
8688 | |
8689 | ;; |
8690 | |
8691 | *) |
8692 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
8693 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
8694 | if test "${ac_cv_func_shl_load+set}" = set; then |
8695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8696 | else |
8697 | cat >conftest.$ac_ext <<_ACEOF |
8698 | /* confdefs.h. */ |
8699 | _ACEOF |
8700 | cat confdefs.h >>conftest.$ac_ext |
8701 | cat >>conftest.$ac_ext <<_ACEOF |
8702 | /* end confdefs.h. */ |
8703 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
8704 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8705 | #define shl_load innocuous_shl_load |
8706 | |
8707 | /* System header to define __stub macros and hopefully few prototypes, |
8708 | which can conflict with char shl_load (); below. |
8709 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8710 | <limits.h> exists even on freestanding compilers. */ |
8711 | |
8712 | #ifdef __STDC__ |
8713 | # include <limits.h> |
8714 | #else |
8715 | # include <assert.h> |
8716 | #endif |
8717 | |
8718 | #undef shl_load |
8719 | |
8720 | /* Override any gcc2 internal prototype to avoid an error. */ |
8721 | #ifdef __cplusplus |
8722 | extern "C" |
8723 | { |
8724 | #endif |
8725 | /* We use char because int might match the return type of a gcc2 |
8726 | builtin and then its argument prototype would still apply. */ |
8727 | char shl_load (); |
8728 | /* The GNU C library defines this for functions which it implements |
8729 | to always fail with ENOSYS. Some functions are actually named |
8730 | something starting with __ and the normal name is an alias. */ |
8731 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
8732 | choke me |
8733 | #else |
8734 | char (*f) () = shl_load; |
8735 | #endif |
8736 | #ifdef __cplusplus |
8737 | } |
8738 | #endif |
8739 | |
8740 | int |
8741 | main () |
8742 | { |
8743 | return f != shl_load; |
8744 | ; |
8745 | return 0; |
8746 | } |
8747 | _ACEOF |
8748 | rm -f conftest.$ac_objext conftest$ac_exeext |
8749 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8750 | (eval $ac_link) 2>conftest.er1 |
8751 | ac_status=$? |
8752 | grep -v '^ *+' conftest.er1 >conftest.err |
8753 | rm -f conftest.er1 |
8754 | cat conftest.err >&5 |
8755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8756 | (exit $ac_status); } && |
8757 | { ac_try='test -z "$ac_c_werror_flag" |
8758 | || test ! -s conftest.err' |
8759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8760 | (eval $ac_try) 2>&5 |
8761 | ac_status=$? |
8762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8763 | (exit $ac_status); }; } && |
8764 | { ac_try='test -s conftest$ac_exeext' |
8765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8766 | (eval $ac_try) 2>&5 |
8767 | ac_status=$? |
8768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8769 | (exit $ac_status); }; }; then |
8770 | ac_cv_func_shl_load=yes |
8771 | else |
8772 | echo "$as_me: failed program was:" >&5 |
8773 | sed 's/^/| /' conftest.$ac_ext >&5 |
8774 | |
8775 | ac_cv_func_shl_load=no |
8776 | fi |
8777 | rm -f conftest.err conftest.$ac_objext \ |
8778 | conftest$ac_exeext conftest.$ac_ext |
8779 | fi |
8780 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
8781 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
8782 | if test $ac_cv_func_shl_load = yes; then |
8783 | lt_cv_dlopen="shl_load" |
8784 | else |
8785 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
8786 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
8787 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
8788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8789 | else |
8790 | ac_check_lib_save_LIBS=$LIBS |
8791 | LIBS="-ldld $LIBS" |
8792 | cat >conftest.$ac_ext <<_ACEOF |
8793 | /* confdefs.h. */ |
8794 | _ACEOF |
8795 | cat confdefs.h >>conftest.$ac_ext |
8796 | cat >>conftest.$ac_ext <<_ACEOF |
8797 | /* end confdefs.h. */ |
8798 | |
8799 | /* Override any gcc2 internal prototype to avoid an error. */ |
8800 | #ifdef __cplusplus |
8801 | extern "C" |
8802 | #endif |
8803 | /* We use char because int might match the return type of a gcc2 |
8804 | builtin and then its argument prototype would still apply. */ |
8805 | char shl_load (); |
8806 | int |
8807 | main () |
8808 | { |
8809 | shl_load (); |
8810 | ; |
8811 | return 0; |
8812 | } |
8813 | _ACEOF |
8814 | rm -f conftest.$ac_objext conftest$ac_exeext |
8815 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8816 | (eval $ac_link) 2>conftest.er1 |
8817 | ac_status=$? |
8818 | grep -v '^ *+' conftest.er1 >conftest.err |
8819 | rm -f conftest.er1 |
8820 | cat conftest.err >&5 |
8821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8822 | (exit $ac_status); } && |
8823 | { ac_try='test -z "$ac_c_werror_flag" |
8824 | || test ! -s conftest.err' |
8825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8826 | (eval $ac_try) 2>&5 |
8827 | ac_status=$? |
8828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8829 | (exit $ac_status); }; } && |
8830 | { ac_try='test -s conftest$ac_exeext' |
8831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8832 | (eval $ac_try) 2>&5 |
8833 | ac_status=$? |
8834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8835 | (exit $ac_status); }; }; then |
8836 | ac_cv_lib_dld_shl_load=yes |
8837 | else |
8838 | echo "$as_me: failed program was:" >&5 |
8839 | sed 's/^/| /' conftest.$ac_ext >&5 |
8840 | |
8841 | ac_cv_lib_dld_shl_load=no |
8842 | fi |
8843 | rm -f conftest.err conftest.$ac_objext \ |
8844 | conftest$ac_exeext conftest.$ac_ext |
8845 | LIBS=$ac_check_lib_save_LIBS |
8846 | fi |
8847 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
8848 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
8849 | if test $ac_cv_lib_dld_shl_load = yes; then |
8850 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
8851 | else |
8852 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
8853 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
8854 | if test "${ac_cv_func_dlopen+set}" = set; then |
8855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8856 | else |
8857 | cat >conftest.$ac_ext <<_ACEOF |
8858 | /* confdefs.h. */ |
8859 | _ACEOF |
8860 | cat confdefs.h >>conftest.$ac_ext |
8861 | cat >>conftest.$ac_ext <<_ACEOF |
8862 | /* end confdefs.h. */ |
8863 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
8864 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8865 | #define dlopen innocuous_dlopen |
8866 | |
8867 | /* System header to define __stub macros and hopefully few prototypes, |
8868 | which can conflict with char dlopen (); below. |
8869 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8870 | <limits.h> exists even on freestanding compilers. */ |
8871 | |
8872 | #ifdef __STDC__ |
8873 | # include <limits.h> |
8874 | #else |
8875 | # include <assert.h> |
8876 | #endif |
8877 | |
8878 | #undef dlopen |
8879 | |
8880 | /* Override any gcc2 internal prototype to avoid an error. */ |
8881 | #ifdef __cplusplus |
8882 | extern "C" |
8883 | { |
8884 | #endif |
8885 | /* We use char because int might match the return type of a gcc2 |
8886 | builtin and then its argument prototype would still apply. */ |
8887 | char dlopen (); |
8888 | /* The GNU C library defines this for functions which it implements |
8889 | to always fail with ENOSYS. Some functions are actually named |
8890 | something starting with __ and the normal name is an alias. */ |
8891 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
8892 | choke me |
8893 | #else |
8894 | char (*f) () = dlopen; |
8895 | #endif |
8896 | #ifdef __cplusplus |
8897 | } |
8898 | #endif |
8899 | |
8900 | int |
8901 | main () |
8902 | { |
8903 | return f != dlopen; |
8904 | ; |
8905 | return 0; |
8906 | } |
8907 | _ACEOF |
8908 | rm -f conftest.$ac_objext conftest$ac_exeext |
8909 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8910 | (eval $ac_link) 2>conftest.er1 |
8911 | ac_status=$? |
8912 | grep -v '^ *+' conftest.er1 >conftest.err |
8913 | rm -f conftest.er1 |
8914 | cat conftest.err >&5 |
8915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8916 | (exit $ac_status); } && |
8917 | { ac_try='test -z "$ac_c_werror_flag" |
8918 | || test ! -s conftest.err' |
8919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8920 | (eval $ac_try) 2>&5 |
8921 | ac_status=$? |
8922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8923 | (exit $ac_status); }; } && |
8924 | { ac_try='test -s conftest$ac_exeext' |
8925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8926 | (eval $ac_try) 2>&5 |
8927 | ac_status=$? |
8928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8929 | (exit $ac_status); }; }; then |
8930 | ac_cv_func_dlopen=yes |
8931 | else |
8932 | echo "$as_me: failed program was:" >&5 |
8933 | sed 's/^/| /' conftest.$ac_ext >&5 |
8934 | |
8935 | ac_cv_func_dlopen=no |
8936 | fi |
8937 | rm -f conftest.err conftest.$ac_objext \ |
8938 | conftest$ac_exeext conftest.$ac_ext |
8939 | fi |
8940 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
8941 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
8942 | if test $ac_cv_func_dlopen = yes; then |
8943 | lt_cv_dlopen="dlopen" |
8944 | else |
8945 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
8946 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
8947 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
8948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8949 | else |
8950 | ac_check_lib_save_LIBS=$LIBS |
8951 | LIBS="-ldl $LIBS" |
8952 | cat >conftest.$ac_ext <<_ACEOF |
8953 | /* confdefs.h. */ |
8954 | _ACEOF |
8955 | cat confdefs.h >>conftest.$ac_ext |
8956 | cat >>conftest.$ac_ext <<_ACEOF |
8957 | /* end confdefs.h. */ |
8958 | |
8959 | /* Override any gcc2 internal prototype to avoid an error. */ |
8960 | #ifdef __cplusplus |
8961 | extern "C" |
8962 | #endif |
8963 | /* We use char because int might match the return type of a gcc2 |
8964 | builtin and then its argument prototype would still apply. */ |
8965 | char dlopen (); |
8966 | int |
8967 | main () |
8968 | { |
8969 | dlopen (); |
8970 | ; |
8971 | return 0; |
8972 | } |
8973 | _ACEOF |
8974 | rm -f conftest.$ac_objext conftest$ac_exeext |
8975 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8976 | (eval $ac_link) 2>conftest.er1 |
8977 | ac_status=$? |
8978 | grep -v '^ *+' conftest.er1 >conftest.err |
8979 | rm -f conftest.er1 |
8980 | cat conftest.err >&5 |
8981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8982 | (exit $ac_status); } && |
8983 | { ac_try='test -z "$ac_c_werror_flag" |
8984 | || test ! -s conftest.err' |
8985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8986 | (eval $ac_try) 2>&5 |
8987 | ac_status=$? |
8988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8989 | (exit $ac_status); }; } && |
8990 | { ac_try='test -s conftest$ac_exeext' |
8991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8992 | (eval $ac_try) 2>&5 |
8993 | ac_status=$? |
8994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8995 | (exit $ac_status); }; }; then |
8996 | ac_cv_lib_dl_dlopen=yes |
8997 | else |
8998 | echo "$as_me: failed program was:" >&5 |
8999 | sed 's/^/| /' conftest.$ac_ext >&5 |
9000 | |
9001 | ac_cv_lib_dl_dlopen=no |
9002 | fi |
9003 | rm -f conftest.err conftest.$ac_objext \ |
9004 | conftest$ac_exeext conftest.$ac_ext |
9005 | LIBS=$ac_check_lib_save_LIBS |
9006 | fi |
9007 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9008 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
9009 | if test $ac_cv_lib_dl_dlopen = yes; then |
9010 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9011 | else |
9012 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
9013 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
9014 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
9015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9016 | else |
9017 | ac_check_lib_save_LIBS=$LIBS |
9018 | LIBS="-lsvld $LIBS" |
9019 | cat >conftest.$ac_ext <<_ACEOF |
9020 | /* confdefs.h. */ |
9021 | _ACEOF |
9022 | cat confdefs.h >>conftest.$ac_ext |
9023 | cat >>conftest.$ac_ext <<_ACEOF |
9024 | /* end confdefs.h. */ |
9025 | |
9026 | /* Override any gcc2 internal prototype to avoid an error. */ |
9027 | #ifdef __cplusplus |
9028 | extern "C" |
9029 | #endif |
9030 | /* We use char because int might match the return type of a gcc2 |
9031 | builtin and then its argument prototype would still apply. */ |
9032 | char dlopen (); |
9033 | int |
9034 | main () |
9035 | { |
9036 | dlopen (); |
9037 | ; |
9038 | return 0; |
9039 | } |
9040 | _ACEOF |
9041 | rm -f conftest.$ac_objext conftest$ac_exeext |
9042 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9043 | (eval $ac_link) 2>conftest.er1 |
9044 | ac_status=$? |
9045 | grep -v '^ *+' conftest.er1 >conftest.err |
9046 | rm -f conftest.er1 |
9047 | cat conftest.err >&5 |
9048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9049 | (exit $ac_status); } && |
9050 | { ac_try='test -z "$ac_c_werror_flag" |
9051 | || test ! -s conftest.err' |
9052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9053 | (eval $ac_try) 2>&5 |
9054 | ac_status=$? |
9055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9056 | (exit $ac_status); }; } && |
9057 | { ac_try='test -s conftest$ac_exeext' |
9058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9059 | (eval $ac_try) 2>&5 |
9060 | ac_status=$? |
9061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9062 | (exit $ac_status); }; }; then |
9063 | ac_cv_lib_svld_dlopen=yes |
9064 | else |
9065 | echo "$as_me: failed program was:" >&5 |
9066 | sed 's/^/| /' conftest.$ac_ext >&5 |
9067 | |
9068 | ac_cv_lib_svld_dlopen=no |
9069 | fi |
9070 | rm -f conftest.err conftest.$ac_objext \ |
9071 | conftest$ac_exeext conftest.$ac_ext |
9072 | LIBS=$ac_check_lib_save_LIBS |
9073 | fi |
9074 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
9075 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
9076 | if test $ac_cv_lib_svld_dlopen = yes; then |
9077 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
9078 | else |
9079 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
9080 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
9081 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
9082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9083 | else |
9084 | ac_check_lib_save_LIBS=$LIBS |
9085 | LIBS="-ldld $LIBS" |
9086 | cat >conftest.$ac_ext <<_ACEOF |
9087 | /* confdefs.h. */ |
9088 | _ACEOF |
9089 | cat confdefs.h >>conftest.$ac_ext |
9090 | cat >>conftest.$ac_ext <<_ACEOF |
9091 | /* end confdefs.h. */ |
9092 | |
9093 | /* Override any gcc2 internal prototype to avoid an error. */ |
9094 | #ifdef __cplusplus |
9095 | extern "C" |
9096 | #endif |
9097 | /* We use char because int might match the return type of a gcc2 |
9098 | builtin and then its argument prototype would still apply. */ |
9099 | char dld_link (); |
9100 | int |
9101 | main () |
9102 | { |
9103 | dld_link (); |
9104 | ; |
9105 | return 0; |
9106 | } |
9107 | _ACEOF |
9108 | rm -f conftest.$ac_objext conftest$ac_exeext |
9109 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9110 | (eval $ac_link) 2>conftest.er1 |
9111 | ac_status=$? |
9112 | grep -v '^ *+' conftest.er1 >conftest.err |
9113 | rm -f conftest.er1 |
9114 | cat conftest.err >&5 |
9115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9116 | (exit $ac_status); } && |
9117 | { ac_try='test -z "$ac_c_werror_flag" |
9118 | || test ! -s conftest.err' |
9119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9120 | (eval $ac_try) 2>&5 |
9121 | ac_status=$? |
9122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9123 | (exit $ac_status); }; } && |
9124 | { ac_try='test -s conftest$ac_exeext' |
9125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9126 | (eval $ac_try) 2>&5 |
9127 | ac_status=$? |
9128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9129 | (exit $ac_status); }; }; then |
9130 | ac_cv_lib_dld_dld_link=yes |
9131 | else |
9132 | echo "$as_me: failed program was:" >&5 |
9133 | sed 's/^/| /' conftest.$ac_ext >&5 |
9134 | |
9135 | ac_cv_lib_dld_dld_link=no |
9136 | fi |
9137 | rm -f conftest.err conftest.$ac_objext \ |
9138 | conftest$ac_exeext conftest.$ac_ext |
9139 | LIBS=$ac_check_lib_save_LIBS |
9140 | fi |
9141 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
9142 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
9143 | if test $ac_cv_lib_dld_dld_link = yes; then |
9144 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
9145 | fi |
9146 | |
9147 | |
9148 | fi |
9149 | |
9150 | |
9151 | fi |
9152 | |
9153 | |
9154 | fi |
9155 | |
9156 | |
9157 | fi |
9158 | |
9159 | |
9160 | fi |
9161 | |
9162 | ;; |
9163 | esac |
9164 | |
9165 | if test "x$lt_cv_dlopen" != xno; then |
9166 | enable_dlopen=yes |
9167 | else |
9168 | enable_dlopen=no |
9169 | fi |
9170 | |
9171 | case $lt_cv_dlopen in |
9172 | dlopen) |
9173 | save_CPPFLAGS="$CPPFLAGS" |
9174 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
9175 | |
9176 | save_LDFLAGS="$LDFLAGS" |
9177 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
9178 | |
9179 | save_LIBS="$LIBS" |
9180 | LIBS="$lt_cv_dlopen_libs $LIBS" |
9181 | |
9182 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
9183 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
9184 | if test "${lt_cv_dlopen_self+set}" = set; then |
9185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9186 | else |
9187 | if test "$cross_compiling" = yes; then : |
9188 | lt_cv_dlopen_self=cross |
9189 | else |
9190 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9191 | lt_status=$lt_dlunknown |
9192 | cat > conftest.$ac_ext <<EOF |
9193 | #line 9193 "configure" |
9194 | #include "confdefs.h" |
9195 | |
9196 | #if HAVE_DLFCN_H |
9197 | #include <dlfcn.h> |
9198 | #endif |
9199 | |
9200 | #include <stdio.h> |
9201 | |
9202 | #ifdef RTLD_GLOBAL |
9203 | # define LT_DLGLOBAL RTLD_GLOBAL |
9204 | #else |
9205 | # ifdef DL_GLOBAL |
9206 | # define LT_DLGLOBAL DL_GLOBAL |
9207 | # else |
9208 | # define LT_DLGLOBAL 0 |
9209 | # endif |
9210 | #endif |
9211 | |
9212 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9213 | find out it does not work in some platform. */ |
9214 | #ifndef LT_DLLAZY_OR_NOW |
9215 | # ifdef RTLD_LAZY |
9216 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
9217 | # else |
9218 | # ifdef DL_LAZY |
9219 | # define LT_DLLAZY_OR_NOW DL_LAZY |
9220 | # else |
9221 | # ifdef RTLD_NOW |
9222 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
9223 | # else |
9224 | # ifdef DL_NOW |
9225 | # define LT_DLLAZY_OR_NOW DL_NOW |
9226 | # else |
9227 | # define LT_DLLAZY_OR_NOW 0 |
9228 | # endif |
9229 | # endif |
9230 | # endif |
9231 | # endif |
9232 | #endif |
9233 | |
9234 | #ifdef __cplusplus |
9235 | extern "C" void exit (int); |
9236 | #endif |
9237 | |
9238 | void fnord() { int i=42;} |
9239 | int main () |
9240 | { |
9241 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
9242 | int status = $lt_dlunknown; |
9243 | |
9244 | if (self) |
9245 | { |
9246 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9247 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9248 | /* dlclose (self); */ |
9249 | } |
9250 | else |
9251 | puts (dlerror ()); |
9252 | |
9253 | exit (status); |
9254 | } |
9255 | EOF |
9256 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9257 | (eval $ac_link) 2>&5 |
9258 | ac_status=$? |
9259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9260 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9261 | (./conftest; exit; ) >&5 2>/dev/null |
9262 | lt_status=$? |
9263 | case x$lt_status in |
9264 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
9265 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
9266 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
9267 | esac |
9268 | else : |
9269 | # compilation failed |
9270 | lt_cv_dlopen_self=no |
9271 | fi |
9272 | fi |
9273 | rm -fr conftest* |
9274 | |
9275 | |
9276 | fi |
9277 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
9278 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
9279 | |
9280 | if test "x$lt_cv_dlopen_self" = xyes; then |
9281 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
9282 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
9283 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
9284 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
9285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9286 | else |
9287 | if test "$cross_compiling" = yes; then : |
9288 | lt_cv_dlopen_self_static=cross |
9289 | else |
9290 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9291 | lt_status=$lt_dlunknown |
9292 | cat > conftest.$ac_ext <<EOF |
9293 | #line 9293 "configure" |
9294 | #include "confdefs.h" |
9295 | |
9296 | #if HAVE_DLFCN_H |
9297 | #include <dlfcn.h> |
9298 | #endif |
9299 | |
9300 | #include <stdio.h> |
9301 | |
9302 | #ifdef RTLD_GLOBAL |
9303 | # define LT_DLGLOBAL RTLD_GLOBAL |
9304 | #else |
9305 | # ifdef DL_GLOBAL |
9306 | # define LT_DLGLOBAL DL_GLOBAL |
9307 | # else |
9308 | # define LT_DLGLOBAL 0 |
9309 | # endif |
9310 | #endif |
9311 | |
9312 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9313 | find out it does not work in some platform. */ |
9314 | #ifndef LT_DLLAZY_OR_NOW |
9315 | # ifdef RTLD_LAZY |
9316 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
9317 | # else |
9318 | # ifdef DL_LAZY |
9319 | # define LT_DLLAZY_OR_NOW DL_LAZY |
9320 | # else |
9321 | # ifdef RTLD_NOW |
9322 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
9323 | # else |
9324 | # ifdef DL_NOW |
9325 | # define LT_DLLAZY_OR_NOW DL_NOW |
9326 | # else |
9327 | # define LT_DLLAZY_OR_NOW 0 |
9328 | # endif |
9329 | # endif |
9330 | # endif |
9331 | # endif |
9332 | #endif |
9333 | |
9334 | #ifdef __cplusplus |
9335 | extern "C" void exit (int); |
9336 | #endif |
9337 | |
9338 | void fnord() { int i=42;} |
9339 | int main () |
9340 | { |
9341 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
9342 | int status = $lt_dlunknown; |
9343 | |
9344 | if (self) |
9345 | { |
9346 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9347 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9348 | /* dlclose (self); */ |
9349 | } |
9350 | else |
9351 | puts (dlerror ()); |
9352 | |
9353 | exit (status); |
9354 | } |
9355 | EOF |
9356 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9357 | (eval $ac_link) 2>&5 |
9358 | ac_status=$? |
9359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9360 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9361 | (./conftest; exit; ) >&5 2>/dev/null |
9362 | lt_status=$? |
9363 | case x$lt_status in |
9364 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
9365 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
9366 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
9367 | esac |
9368 | else : |
9369 | # compilation failed |
9370 | lt_cv_dlopen_self_static=no |
9371 | fi |
9372 | fi |
9373 | rm -fr conftest* |
9374 | |
9375 | |
9376 | fi |
9377 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
9378 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
9379 | fi |
9380 | |
9381 | CPPFLAGS="$save_CPPFLAGS" |
9382 | LDFLAGS="$save_LDFLAGS" |
9383 | LIBS="$save_LIBS" |
9384 | ;; |
9385 | esac |
9386 | |
9387 | case $lt_cv_dlopen_self in |
9388 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
9389 | *) enable_dlopen_self=unknown ;; |
9390 | esac |
9391 | |
9392 | case $lt_cv_dlopen_self_static in |
9393 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
9394 | *) enable_dlopen_self_static=unknown ;; |
9395 | esac |
9396 | fi |
9397 | |
9398 | |
9399 | # Report which library types will actually be built |
9400 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
9401 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
9402 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
9403 | echo "${ECHO_T}$can_build_shared" >&6 |
9404 | |
9405 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
9406 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
9407 | test "$can_build_shared" = "no" && enable_shared=no |
9408 | |
9409 | # On AIX, shared libraries and static libraries use the same namespace, and |
9410 | # are all built from PIC. |
9411 | case $host_os in |
9412 | aix3*) |
9413 | test "$enable_shared" = yes && enable_static=no |
9414 | if test -n "$RANLIB"; then |
9415 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
9416 | postinstall_cmds='$RANLIB $lib' |
9417 | fi |
9418 | ;; |
9419 | |
9420 | aix4* | aix5*) |
9421 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
9422 | test "$enable_shared" = yes && enable_static=no |
9423 | fi |
9424 | ;; |
9425 | esac |
9426 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
9427 | echo "${ECHO_T}$enable_shared" >&6 |
9428 | |
9429 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
9430 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
9431 | # Make sure either enable_shared or enable_static is yes. |
9432 | test "$enable_shared" = yes || enable_static=yes |
9433 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
9434 | echo "${ECHO_T}$enable_static" >&6 |
9435 | |
9436 | # The else clause should only fire when bootstrapping the |
9437 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
9438 | # with your package, and you will get complaints that there are |
9439 | # no rules to generate ltmain.sh. |
9440 | if test -f "$ltmain"; then |
9441 | # See if we are running on zsh, and set the options which allow our commands through |
9442 | # without removal of \ escapes. |
9443 | if test -n "${ZSH_VERSION+set}" ; then |
9444 | setopt NO_GLOB_SUBST |
9445 | fi |
9446 | # Now quote all the things that may contain metacharacters while being |
9447 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
9448 | # variables and quote the copies for generation of the libtool script. |
9449 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
9450 | SED SHELL STRIP \ |
9451 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
9452 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
9453 | deplibs_check_method reload_flag reload_cmds need_locks \ |
9454 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
9455 | lt_cv_sys_global_symbol_to_c_name_address \ |
9456 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
9457 | old_postinstall_cmds old_postuninstall_cmds \ |
9458 | compiler \ |
9459 | CC \ |
9460 | LD \ |
9461 | lt_prog_compiler_wl \ |
9462 | lt_prog_compiler_pic \ |
9463 | lt_prog_compiler_static \ |
9464 | lt_prog_compiler_no_builtin_flag \ |
9465 | export_dynamic_flag_spec \ |
9466 | thread_safe_flag_spec \ |
9467 | whole_archive_flag_spec \ |
9468 | enable_shared_with_static_runtimes \ |
9469 | old_archive_cmds \ |
9470 | old_archive_from_new_cmds \ |
9471 | predep_objects \ |
9472 | postdep_objects \ |
9473 | predeps \ |
9474 | postdeps \ |
9475 | compiler_lib_search_path \ |
9476 | archive_cmds \ |
9477 | archive_expsym_cmds \ |
9478 | postinstall_cmds \ |
9479 | postuninstall_cmds \ |
9480 | old_archive_from_expsyms_cmds \ |
9481 | allow_undefined_flag \ |
9482 | no_undefined_flag \ |
9483 | export_symbols_cmds \ |
9484 | hardcode_libdir_flag_spec \ |
9485 | hardcode_libdir_flag_spec_ld \ |
9486 | hardcode_libdir_separator \ |
9487 | hardcode_automatic \ |
9488 | module_cmds \ |
9489 | module_expsym_cmds \ |
9490 | lt_cv_prog_compiler_c_o \ |
9491 | exclude_expsyms \ |
9492 | include_expsyms; do |
9493 | |
9494 | case $var in |
9495 | old_archive_cmds | \ |
9496 | old_archive_from_new_cmds | \ |
9497 | archive_cmds | \ |
9498 | archive_expsym_cmds | \ |
9499 | module_cmds | \ |
9500 | module_expsym_cmds | \ |
9501 | old_archive_from_expsyms_cmds | \ |
9502 | export_symbols_cmds | \ |
9503 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
9504 | postinstall_cmds | postuninstall_cmds | \ |
9505 | old_postinstall_cmds | old_postuninstall_cmds | \ |
9506 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
9507 | # Double-quote double-evaled strings. |
9508 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
9509 | ;; |
9510 | *) |
9511 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
9512 | ;; |
9513 | esac |
9514 | done |
9515 | |
9516 | case $lt_echo in |
9517 | *'\$0 --fallback-echo"') |
9518 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
9519 | ;; |
9520 | esac |
9521 | |
9522 | cfgfile="${ofile}T" |
9523 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
9524 | $rm -f "$cfgfile" |
9525 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
9526 | echo "$as_me: creating $ofile" >&6;} |
9527 | |
9528 | cat <<__EOF__ >> "$cfgfile" |
9529 | #! $SHELL |
9530 | |
9531 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
9532 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
9533 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
9534 | # |
9535 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
9536 | # Free Software Foundation, Inc. |
9537 | # |
9538 | # This file is part of GNU Libtool: |
9539 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
9540 | # |
9541 | # This program is free software; you can redistribute it and/or modify |
9542 | # it under the terms of the GNU General Public License as published by |
9543 | # the Free Software Foundation; either version 2 of the License, or |
9544 | # (at your option) any later version. |
9545 | # |
9546 | # This program is distributed in the hope that it will be useful, but |
9547 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
9548 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
9549 | # General Public License for more details. |
9550 | # |
9551 | # You should have received a copy of the GNU General Public License |
9552 | # along with this program; if not, write to the Free Software |
9553 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
9554 | # |
9555 | # As a special exception to the GNU General Public License, if you |
9556 | # distribute this file as part of a program that contains a |
9557 | # configuration script generated by Autoconf, you may include it under |
9558 | # the same distribution terms that you use for the rest of that program. |
9559 | |
9560 | # A sed program that does not truncate output. |
9561 | SED=$lt_SED |
9562 | |
9563 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
9564 | Xsed="$SED -e 1s/^X//" |
9565 | |
9566 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
9567 | # if CDPATH is set. |
9568 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
9569 | |
9570 | # The names of the tagged configurations supported by this script. |
9571 | available_tags= |
9572 | |
9573 | # ### BEGIN LIBTOOL CONFIG |
9574 | |
9575 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
9576 | |
9577 | # Shell to use when invoking shell scripts. |
9578 | SHELL=$lt_SHELL |
9579 | |
9580 | # Whether or not to build shared libraries. |
9581 | build_libtool_libs=$enable_shared |
9582 | |
9583 | # Whether or not to build static libraries. |
9584 | build_old_libs=$enable_static |
9585 | |
9586 | # Whether or not to add -lc for building shared libraries. |
9587 | build_libtool_need_lc=$archive_cmds_need_lc |
9588 | |
9589 | # Whether or not to disallow shared libs when runtime libs are static |
9590 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
9591 | |
9592 | # Whether or not to optimize for fast installation. |
9593 | fast_install=$enable_fast_install |
9594 | |
9595 | # The host system. |
9596 | host_alias=$host_alias |
9597 | host=$host |
9598 | host_os=$host_os |
9599 | |
9600 | # The build system. |
9601 | build_alias=$build_alias |
9602 | build=$build |
9603 | build_os=$build_os |
9604 | |
9605 | # An echo program that does not interpret backslashes. |
9606 | echo=$lt_echo |
9607 | |
9608 | # The archiver. |
9609 | AR=$lt_AR |
9610 | AR_FLAGS=$lt_AR_FLAGS |
9611 | |
9612 | # A C compiler. |
9613 | LTCC=$lt_LTCC |
9614 | |
9615 | # LTCC compiler flags. |
9616 | LTCFLAGS=$lt_LTCFLAGS |
9617 | |
9618 | # A language-specific compiler. |
9619 | CC=$lt_compiler |
9620 | |
9621 | # Is the compiler the GNU C compiler? |
9622 | with_gcc=$GCC |
9623 | |
9624 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
9625 | gcc_ver=\`gcc -dumpversion\` |
9626 | |
9627 | # An ERE matcher. |
9628 | EGREP=$lt_EGREP |
9629 | |
9630 | # The linker used to build libraries. |
9631 | LD=$lt_LD |
9632 | |
9633 | # Whether we need hard or soft links. |
9634 | LN_S=$lt_LN_S |
9635 | |
9636 | # A BSD-compatible nm program. |
9637 | NM=$lt_NM |
9638 | |
9639 | # A symbol stripping program |
9640 | STRIP=$lt_STRIP |
9641 | |
9642 | # Used to examine libraries when file_magic_cmd begins "file" |
9643 | MAGIC_CMD=$MAGIC_CMD |
9644 | |
9645 | # Used on cygwin: DLL creation program. |
9646 | DLLTOOL="$DLLTOOL" |
9647 | |
9648 | # Used on cygwin: object dumper. |
9649 | OBJDUMP="$OBJDUMP" |
9650 | |
9651 | # Used on cygwin: assembler. |
9652 | AS="$AS" |
9653 | |
9654 | # The name of the directory that contains temporary libtool files. |
9655 | objdir=$objdir |
9656 | |
9657 | # How to create reloadable object files. |
9658 | reload_flag=$lt_reload_flag |
9659 | reload_cmds=$lt_reload_cmds |
9660 | |
9661 | # How to pass a linker flag through the compiler. |
9662 | wl=$lt_lt_prog_compiler_wl |
9663 | |
9664 | # Object file suffix (normally "o"). |
9665 | objext="$ac_objext" |
9666 | |
9667 | # Old archive suffix (normally "a"). |
9668 | libext="$libext" |
9669 | |
9670 | # Shared library suffix (normally ".so"). |
9671 | shrext_cmds='$shrext_cmds' |
9672 | |
9673 | # Executable file suffix (normally ""). |
9674 | exeext="$exeext" |
9675 | |
9676 | # Additional compiler flags for building library objects. |
9677 | pic_flag=$lt_lt_prog_compiler_pic |
9678 | pic_mode=$pic_mode |
9679 | |
9680 | # What is the maximum length of a command? |
9681 | max_cmd_len=$lt_cv_sys_max_cmd_len |
9682 | |
9683 | # Does compiler simultaneously support -c and -o options? |
9684 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
9685 | |
9686 | # Must we lock files when doing compilation? |
9687 | need_locks=$lt_need_locks |
9688 | |
9689 | # Do we need the lib prefix for modules? |
9690 | need_lib_prefix=$need_lib_prefix |
9691 | |
9692 | # Do we need a version for libraries? |
9693 | need_version=$need_version |
9694 | |
9695 | # Whether dlopen is supported. |
9696 | dlopen_support=$enable_dlopen |
9697 | |
9698 | # Whether dlopen of programs is supported. |
9699 | dlopen_self=$enable_dlopen_self |
9700 | |
9701 | # Whether dlopen of statically linked programs is supported. |
9702 | dlopen_self_static=$enable_dlopen_self_static |
9703 | |
9704 | # Compiler flag to prevent dynamic linking. |
9705 | link_static_flag=$lt_lt_prog_compiler_static |
9706 | |
9707 | # Compiler flag to turn off builtin functions. |
9708 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
9709 | |
9710 | # Compiler flag to allow reflexive dlopens. |
9711 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
9712 | |
9713 | # Compiler flag to generate shared objects directly from archives. |
9714 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
9715 | |
9716 | # Compiler flag to generate thread-safe objects. |
9717 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
9718 | |
9719 | # Library versioning type. |
9720 | version_type=$version_type |
9721 | |
9722 | # Format of library name prefix. |
9723 | libname_spec=$lt_libname_spec |
9724 | |
9725 | # List of archive names. First name is the real one, the rest are links. |
9726 | # The last name is the one that the linker finds with -lNAME. |
9727 | library_names_spec=$lt_library_names_spec |
9728 | |
9729 | # The coded name of the library, if different from the real name. |
9730 | soname_spec=$lt_soname_spec |
9731 | |
9732 | # Commands used to build and install an old-style archive. |
9733 | RANLIB=$lt_RANLIB |
9734 | old_archive_cmds=$lt_old_archive_cmds |
9735 | old_postinstall_cmds=$lt_old_postinstall_cmds |
9736 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
9737 | |
9738 | # Create an old-style archive from a shared archive. |
9739 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
9740 | |
9741 | # Create a temporary old-style archive to link instead of a shared archive. |
9742 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
9743 | |
9744 | # Commands used to build and install a shared archive. |
9745 | archive_cmds=$lt_archive_cmds |
9746 | archive_expsym_cmds=$lt_archive_expsym_cmds |
9747 | postinstall_cmds=$lt_postinstall_cmds |
9748 | postuninstall_cmds=$lt_postuninstall_cmds |
9749 | |
9750 | # Commands used to build a loadable module (assumed same as above if empty) |
9751 | module_cmds=$lt_module_cmds |
9752 | module_expsym_cmds=$lt_module_expsym_cmds |
9753 | |
9754 | # Commands to strip libraries. |
9755 | old_striplib=$lt_old_striplib |
9756 | striplib=$lt_striplib |
9757 | |
9758 | # Dependencies to place before the objects being linked to create a |
9759 | # shared library. |
9760 | predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
9761 | |
9762 | # Dependencies to place after the objects being linked to create a |
9763 | # shared library. |
9764 | postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
9765 | |
9766 | # Dependencies to place before the objects being linked to create a |
9767 | # shared library. |
9768 | predeps=$lt_predeps |
9769 | |
9770 | # Dependencies to place after the objects being linked to create a |
9771 | # shared library. |
9772 | postdeps=$lt_postdeps |
9773 | |
9774 | # The library search path used internally by the compiler when linking |
9775 | # a shared library. |
9776 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
9777 | |
9778 | # Method to check whether dependent libraries are shared objects. |
9779 | deplibs_check_method=$lt_deplibs_check_method |
9780 | |
9781 | # Command to use when deplibs_check_method == file_magic. |
9782 | file_magic_cmd=$lt_file_magic_cmd |
9783 | |
9784 | # Flag that allows shared libraries with undefined symbols to be built. |
9785 | allow_undefined_flag=$lt_allow_undefined_flag |
9786 | |
9787 | # Flag that forces no undefined symbols. |
9788 | no_undefined_flag=$lt_no_undefined_flag |
9789 | |
9790 | # Commands used to finish a libtool library installation in a directory. |
9791 | finish_cmds=$lt_finish_cmds |
9792 | |
9793 | # Same as above, but a single script fragment to be evaled but not shown. |
9794 | finish_eval=$lt_finish_eval |
9795 | |
9796 | # Take the output of nm and produce a listing of raw symbols and C names. |
9797 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
9798 | |
9799 | # Transform the output of nm in a proper C declaration |
9800 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
9801 | |
9802 | # Transform the output of nm in a C name address pair |
9803 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
9804 | |
9805 | # This is the shared library runtime path variable. |
9806 | runpath_var=$runpath_var |
9807 | |
9808 | # This is the shared library path variable. |
9809 | shlibpath_var=$shlibpath_var |
9810 | |
9811 | # Is shlibpath searched before the hard-coded library search path? |
9812 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
9813 | |
9814 | # How to hardcode a shared library path into an executable. |
9815 | hardcode_action=$hardcode_action |
9816 | |
9817 | # Whether we should hardcode library paths into libraries. |
9818 | hardcode_into_libs=$hardcode_into_libs |
9819 | |
9820 | # Flag to hardcode \$libdir into a binary during linking. |
9821 | # This must work even if \$libdir does not exist. |
9822 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
9823 | |
9824 | # If ld is used when linking, flag to hardcode \$libdir into |
9825 | # a binary during linking. This must work even if \$libdir does |
9826 | # not exist. |
9827 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
9828 | |
9829 | # Whether we need a single -rpath flag with a separated argument. |
9830 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
9831 | |
9832 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
9833 | # resulting binary. |
9834 | hardcode_direct=$hardcode_direct |
9835 | |
9836 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
9837 | # resulting binary. |
9838 | hardcode_minus_L=$hardcode_minus_L |
9839 | |
9840 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
9841 | # the resulting binary. |
9842 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
9843 | |
9844 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
9845 | # and all subsequent libraries and executables linked against it. |
9846 | hardcode_automatic=$hardcode_automatic |
9847 | |
9848 | # Variables whose values should be saved in libtool wrapper scripts and |
9849 | # restored at relink time. |
9850 | variables_saved_for_relink="$variables_saved_for_relink" |
9851 | |
9852 | # Whether libtool must link a program against all its dependency libraries. |
9853 | link_all_deplibs=$link_all_deplibs |
9854 | |
9855 | # Compile-time system search path for libraries |
9856 | 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"\` |
9857 | |
9858 | # Run-time system search path for libraries |
9859 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
9860 | |
9861 | # Fix the shell variable \$srcfile for the compiler. |
9862 | fix_srcfile_path="$fix_srcfile_path" |
9863 | |
9864 | # Set to yes if exported symbols are required. |
9865 | always_export_symbols=$always_export_symbols |
9866 | |
9867 | # The commands to list exported symbols. |
9868 | export_symbols_cmds=$lt_export_symbols_cmds |
9869 | |
9870 | # The commands to extract the exported symbol list from a shared archive. |
9871 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
9872 | |
9873 | # Symbols that should not be listed in the preloaded symbols. |
9874 | exclude_expsyms=$lt_exclude_expsyms |
9875 | |
9876 | # Symbols that must always be exported. |
9877 | include_expsyms=$lt_include_expsyms |
9878 | |
9879 | # ### END LIBTOOL CONFIG |
9880 | |
9881 | __EOF__ |
9882 | |
9883 | |
9884 | case $host_os in |
9885 | aix3*) |
9886 | cat <<\EOF >> "$cfgfile" |
9887 | |
9888 | # AIX sometimes has problems with the GCC collect2 program. For some |
9889 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
9890 | # vanish in a puff of smoke. |
9891 | if test "X${COLLECT_NAMES+set}" != Xset; then |
9892 | COLLECT_NAMES= |
9893 | export COLLECT_NAMES |
9894 | fi |
9895 | EOF |
9896 | ;; |
9897 | esac |
9898 | |
9899 | # We use sed instead of cat because bash on DJGPP gets confused if |
9900 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
9901 | # text mode, it properly converts lines to CR/LF. This bash problem |
9902 | # is reportedly fixed, but why not run on old versions too? |
9903 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
9904 | |
9905 | mv -f "$cfgfile" "$ofile" || \ |
9906 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
9907 | chmod +x "$ofile" |
9908 | |
9909 | else |
9910 | # If there is no Makefile yet, we rely on a make rule to execute |
9911 | # `config.status --recheck' to rerun these tests and create the |
9912 | # libtool script then. |
9913 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
9914 | if test -f "$ltmain_in"; then |
9915 | test -f Makefile && make "$ltmain" |
9916 | fi |
9917 | fi |
9918 | |
9919 | |
9920 | ac_ext=c |
9921 | ac_cpp='$CPP $CPPFLAGS' |
9922 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9923 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9924 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
9925 | |
9926 | CC="$lt_save_CC" |
9927 | |
9928 | |
9929 | # Check whether --with-tags or --without-tags was given. |
9930 | if test "${with_tags+set}" = set; then |
9931 | withval="$with_tags" |
9932 | tagnames="$withval" |
9933 | fi; |
9934 | |
9935 | if test -f "$ltmain" && test -n "$tagnames"; then |
9936 | if test ! -f "${ofile}"; then |
9937 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
9938 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
9939 | fi |
9940 | |
9941 | if test -z "$LTCC"; then |
9942 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
9943 | if test -z "$LTCC"; then |
9944 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
9945 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
9946 | else |
9947 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
9948 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
9949 | fi |
9950 | fi |
9951 | if test -z "$LTCFLAGS"; then |
9952 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
9953 | fi |
9954 | |
9955 | # Extract list of available tagged configurations in $ofile. |
9956 | # Note that this assumes the entire list is on one line. |
9957 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
9958 | |
9959 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
9960 | for tagname in $tagnames; do |
9961 | IFS="$lt_save_ifs" |
9962 | # Check whether tagname contains only valid characters |
9963 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
9964 | "") ;; |
9965 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
9966 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
9967 | { (exit 1); exit 1; }; } |
9968 | ;; |
9969 | esac |
9970 | |
9971 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
9972 | then |
9973 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
9974 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
9975 | { (exit 1); exit 1; }; } |
9976 | fi |
9977 | |
9978 | # Update the list of available tags. |
9979 | if test -n "$tagname"; then |
9980 | echo appending configuration tag \"$tagname\" to $ofile |
9981 | |
9982 | case $tagname in |
9983 | CXX) |
9984 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
9985 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
9986 | (test "X$CXX" != "Xg++"))) ; then |
9987 | ac_ext=cc |
9988 | ac_cpp='$CXXCPP $CPPFLAGS' |
9989 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9990 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9991 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
9992 | |
9993 | |
9994 | |
9995 | |
9996 | archive_cmds_need_lc_CXX=no |
9997 | allow_undefined_flag_CXX= |
9998 | always_export_symbols_CXX=no |
9999 | archive_expsym_cmds_CXX= |
10000 | export_dynamic_flag_spec_CXX= |
10001 | hardcode_direct_CXX=no |
10002 | hardcode_libdir_flag_spec_CXX= |
10003 | hardcode_libdir_flag_spec_ld_CXX= |
10004 | hardcode_libdir_separator_CXX= |
10005 | hardcode_minus_L_CXX=no |
10006 | hardcode_shlibpath_var_CXX=unsupported |
10007 | hardcode_automatic_CXX=no |
10008 | module_cmds_CXX= |
10009 | module_expsym_cmds_CXX= |
10010 | link_all_deplibs_CXX=unknown |
10011 | old_archive_cmds_CXX=$old_archive_cmds |
10012 | no_undefined_flag_CXX= |
10013 | whole_archive_flag_spec_CXX= |
10014 | enable_shared_with_static_runtimes_CXX=no |
10015 | |
10016 | # Dependencies to place before and after the object being linked: |
10017 | predep_objects_CXX= |
10018 | postdep_objects_CXX= |
10019 | predeps_CXX= |
10020 | postdeps_CXX= |
10021 | compiler_lib_search_path_CXX= |
10022 | |
10023 | # Source file extension for C++ test sources. |
10024 | ac_ext=cpp |
10025 | |
10026 | # Object file extension for compiled C++ test sources. |
10027 | objext=o |
10028 | objext_CXX=$objext |
10029 | |
10030 | # Code to be used in simple compile tests |
10031 | lt_simple_compile_test_code="int some_variable = 0;\n" |
10032 | |
10033 | # Code to be used in simple link tests |
10034 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
10035 | |
10036 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
10037 | |
10038 | # If no C compiler was specified, use CC. |
10039 | LTCC=${LTCC-"$CC"} |
10040 | |
10041 | # If no C compiler flags were specified, use CFLAGS. |
10042 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
10043 | |
10044 | # Allow CC to be a program name with arguments. |
10045 | compiler=$CC |
10046 | |
10047 | |
10048 | # save warnings/boilerplate of simple test code |
10049 | ac_outfile=conftest.$ac_objext |
10050 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
10051 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10052 | _lt_compiler_boilerplate=`cat conftest.err` |
10053 | $rm conftest* |
10054 | |
10055 | ac_outfile=conftest.$ac_objext |
10056 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
10057 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10058 | _lt_linker_boilerplate=`cat conftest.err` |
10059 | $rm conftest* |
10060 | |
10061 | |
10062 | # Allow CC to be a program name with arguments. |
10063 | lt_save_CC=$CC |
10064 | lt_save_LD=$LD |
10065 | lt_save_GCC=$GCC |
10066 | GCC=$GXX |
10067 | lt_save_with_gnu_ld=$with_gnu_ld |
10068 | lt_save_path_LD=$lt_cv_path_LD |
10069 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
10070 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
10071 | else |
10072 | $as_unset lt_cv_prog_gnu_ld |
10073 | fi |
10074 | if test -n "${lt_cv_path_LDCXX+set}"; then |
10075 | lt_cv_path_LD=$lt_cv_path_LDCXX |
10076 | else |
10077 | $as_unset lt_cv_path_LD |
10078 | fi |
10079 | test -z "${LDCXX+set}" || LD=$LDCXX |
10080 | CC=${CXX-"c++"} |
10081 | compiler=$CC |
10082 | compiler_CXX=$CC |
10083 | for cc_temp in $compiler""; do |
10084 | case $cc_temp in |
10085 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
10086 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
10087 | \-*) ;; |
10088 | *) break;; |
10089 | esac |
10090 | done |
10091 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
10092 | |
10093 | |
10094 | # We don't want -fno-exception wen compiling C++ code, so set the |
10095 | # no_builtin_flag separately |
10096 | if test "$GXX" = yes; then |
10097 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
10098 | else |
10099 | lt_prog_compiler_no_builtin_flag_CXX= |
10100 | fi |
10101 | |
10102 | if test "$GXX" = yes; then |
10103 | # Set up default GNU C++ configuration |
10104 | |
10105 | |
10106 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
10107 | if test "${with_gnu_ld+set}" = set; then |
10108 | withval="$with_gnu_ld" |
10109 | test "$withval" = no || with_gnu_ld=yes |
10110 | else |
10111 | with_gnu_ld=no |
10112 | fi; |
10113 | ac_prog=ld |
10114 | if test "$GCC" = yes; then |
10115 | # Check if gcc -print-prog-name=ld gives a path. |
10116 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
10117 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
10118 | case $host in |
10119 | *-*-mingw*) |
10120 | # gcc leaves a trailing carriage return which upsets mingw |
10121 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
10122 | *) |
10123 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
10124 | esac |
10125 | case $ac_prog in |
10126 | # Accept absolute paths. |
10127 | [\\/]* | ?:[\\/]*) |
10128 | re_direlt='/[^/][^/]*/\.\./' |
10129 | # Canonicalize the pathname of ld |
10130 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
10131 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
10132 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
10133 | done |
10134 | test -z "$LD" && LD="$ac_prog" |
10135 | ;; |
10136 | "") |
10137 | # If it fails, then pretend we aren't using GCC. |
10138 | ac_prog=ld |
10139 | ;; |
10140 | *) |
10141 | # If it is relative, then search for the first ld in PATH. |
10142 | with_gnu_ld=unknown |
10143 | ;; |
10144 | esac |
10145 | elif test "$with_gnu_ld" = yes; then |
10146 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
10147 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
10148 | else |
10149 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
10150 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
10151 | fi |
10152 | if test "${lt_cv_path_LD+set}" = set; then |
10153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10154 | else |
10155 | if test -z "$LD"; then |
10156 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
10157 | for ac_dir in $PATH; do |
10158 | IFS="$lt_save_ifs" |
10159 | test -z "$ac_dir" && ac_dir=. |
10160 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
10161 | lt_cv_path_LD="$ac_dir/$ac_prog" |
10162 | # Check to see if the program is GNU ld. I'd rather use --version, |
10163 | # but apparently some variants of GNU ld only accept -v. |
10164 | # Break only if it was the GNU/non-GNU ld that we prefer. |
10165 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
10166 | *GNU* | *'with BFD'*) |
10167 | test "$with_gnu_ld" != no && break |
10168 | ;; |
10169 | *) |
10170 | test "$with_gnu_ld" != yes && break |
10171 | ;; |
10172 | esac |
10173 | fi |
10174 | done |
10175 | IFS="$lt_save_ifs" |
10176 | else |
10177 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
10178 | fi |
10179 | fi |
10180 | |
10181 | LD="$lt_cv_path_LD" |
10182 | if test -n "$LD"; then |
10183 | echo "$as_me:$LINENO: result: $LD" >&5 |
10184 | echo "${ECHO_T}$LD" >&6 |
10185 | else |
10186 | echo "$as_me:$LINENO: result: no" >&5 |
10187 | echo "${ECHO_T}no" >&6 |
10188 | fi |
10189 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
10190 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
10191 | { (exit 1); exit 1; }; } |
10192 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
10193 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
10194 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
10195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10196 | else |
10197 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
10198 | case `$LD -v 2>&1 </dev/null` in |
10199 | *GNU* | *'with BFD'*) |
10200 | lt_cv_prog_gnu_ld=yes |
10201 | ;; |
10202 | *) |
10203 | lt_cv_prog_gnu_ld=no |
10204 | ;; |
10205 | esac |
10206 | fi |
10207 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
10208 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
10209 | with_gnu_ld=$lt_cv_prog_gnu_ld |
10210 | |
10211 | |
10212 | |
10213 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
10214 | # archiving commands below assume that GNU ld is being used. |
10215 | if test "$with_gnu_ld" = yes; then |
10216 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10217 | 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' |
10218 | |
10219 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
10220 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10221 | |
10222 | # If archive_cmds runs LD, not CC, wlarc should be empty |
10223 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
10224 | # investigate it a little bit more. (MM) |
10225 | wlarc='${wl}' |
10226 | |
10227 | # ancient GNU ld didn't support --whole-archive et. al. |
10228 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
10229 | grep 'no-whole-archive' > /dev/null; then |
10230 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
10231 | else |
10232 | whole_archive_flag_spec_CXX= |
10233 | fi |
10234 | else |
10235 | with_gnu_ld=no |
10236 | wlarc= |
10237 | |
10238 | # A generic and very simple default shared library creation |
10239 | # command for GNU C++ for the case where it uses the native |
10240 | # linker, instead of GNU ld. If possible, this setting should |
10241 | # overridden to take advantage of the native linker features on |
10242 | # the platform it is being used on. |
10243 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
10244 | fi |
10245 | |
10246 | # Commands to make compiler produce verbose output that lists |
10247 | # what "hidden" libraries, object files and flags are used when |
10248 | # linking a shared library. |
10249 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
10250 | |
10251 | else |
10252 | GXX=no |
10253 | with_gnu_ld=no |
10254 | wlarc= |
10255 | fi |
10256 | |
10257 | # PORTME: fill in a description of your system's C++ link characteristics |
10258 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
10259 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
10260 | ld_shlibs_CXX=yes |
10261 | case $host_os in |
10262 | aix3*) |
10263 | # FIXME: insert proper C++ library support |
10264 | ld_shlibs_CXX=no |
10265 | ;; |
10266 | aix4* | aix5*) |
10267 | if test "$host_cpu" = ia64; then |
10268 | # On IA64, the linker does run time linking by default, so we don't |
10269 | # have to do anything special. |
10270 | aix_use_runtimelinking=no |
10271 | exp_sym_flag='-Bexport' |
10272 | no_entry_flag="" |
10273 | else |
10274 | aix_use_runtimelinking=no |
10275 | |
10276 | # Test if we are trying to use run time linking or normal |
10277 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
10278 | # need to do runtime linking. |
10279 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
10280 | for ld_flag in $LDFLAGS; do |
10281 | case $ld_flag in |
10282 | *-brtl*) |
10283 | aix_use_runtimelinking=yes |
10284 | break |
10285 | ;; |
10286 | esac |
10287 | done |
10288 | ;; |
10289 | esac |
10290 | |
10291 | exp_sym_flag='-bexport' |
10292 | no_entry_flag='-bnoentry' |
10293 | fi |
10294 | |
10295 | # When large executables or shared objects are built, AIX ld can |
10296 | # have problems creating the table of contents. If linking a library |
10297 | # or program results in "error TOC overflow" add -mminimal-toc to |
10298 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
10299 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
10300 | |
10301 | archive_cmds_CXX='' |
10302 | hardcode_direct_CXX=yes |
10303 | hardcode_libdir_separator_CXX=':' |
10304 | link_all_deplibs_CXX=yes |
10305 | |
10306 | if test "$GXX" = yes; then |
10307 | case $host_os in aix4.[012]|aix4.[012].*) |
10308 | # We only want to do this on AIX 4.2 and lower, the check |
10309 | # below for broken collect2 doesn't work under 4.3+ |
10310 | collect2name=`${CC} -print-prog-name=collect2` |
10311 | if test -f "$collect2name" && \ |
10312 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
10313 | then |
10314 | # We have reworked collect2 |
10315 | hardcode_direct_CXX=yes |
10316 | else |
10317 | # We have old collect2 |
10318 | hardcode_direct_CXX=unsupported |
10319 | # It fails to find uninstalled libraries when the uninstalled |
10320 | # path is not listed in the libpath. Setting hardcode_minus_L |
10321 | # to unsupported forces relinking |
10322 | hardcode_minus_L_CXX=yes |
10323 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
10324 | hardcode_libdir_separator_CXX= |
10325 | fi |
10326 | ;; |
10327 | esac |
10328 | shared_flag='-shared' |
10329 | if test "$aix_use_runtimelinking" = yes; then |
10330 | shared_flag="$shared_flag "'${wl}-G' |
10331 | fi |
10332 | else |
10333 | # not using gcc |
10334 | if test "$host_cpu" = ia64; then |
10335 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
10336 | # chokes on -Wl,-G. The following line is correct: |
10337 | shared_flag='-G' |
10338 | else |
10339 | if test "$aix_use_runtimelinking" = yes; then |
10340 | shared_flag='${wl}-G' |
10341 | else |
10342 | shared_flag='${wl}-bM:SRE' |
10343 | fi |
10344 | fi |
10345 | fi |
10346 | |
10347 | # It seems that -bexpall does not export symbols beginning with |
10348 | # underscore (_), so it is better to generate a list of symbols to export. |
10349 | always_export_symbols_CXX=yes |
10350 | if test "$aix_use_runtimelinking" = yes; then |
10351 | # Warning - without using the other runtime loading flags (-brtl), |
10352 | # -berok will link without error, but may produce a broken library. |
10353 | allow_undefined_flag_CXX='-berok' |
10354 | # Determine the default libpath from the value encoded in an empty executable. |
10355 | cat >conftest.$ac_ext <<_ACEOF |
10356 | /* confdefs.h. */ |
10357 | _ACEOF |
10358 | cat confdefs.h >>conftest.$ac_ext |
10359 | cat >>conftest.$ac_ext <<_ACEOF |
10360 | /* end confdefs.h. */ |
10361 | |
10362 | int |
10363 | main () |
10364 | { |
10365 | |
10366 | ; |
10367 | return 0; |
10368 | } |
10369 | _ACEOF |
10370 | rm -f conftest.$ac_objext conftest$ac_exeext |
10371 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10372 | (eval $ac_link) 2>conftest.er1 |
10373 | ac_status=$? |
10374 | grep -v '^ *+' conftest.er1 >conftest.err |
10375 | rm -f conftest.er1 |
10376 | cat conftest.err >&5 |
10377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10378 | (exit $ac_status); } && |
10379 | { ac_try='test -z "$ac_cxx_werror_flag" |
10380 | || test ! -s conftest.err' |
10381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10382 | (eval $ac_try) 2>&5 |
10383 | ac_status=$? |
10384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10385 | (exit $ac_status); }; } && |
10386 | { ac_try='test -s conftest$ac_exeext' |
10387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10388 | (eval $ac_try) 2>&5 |
10389 | ac_status=$? |
10390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10391 | (exit $ac_status); }; }; then |
10392 | |
10393 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
10394 | }'` |
10395 | # Check for a 64-bit object if we didn't find anything. |
10396 | 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; } |
10397 | }'`; fi |
10398 | else |
10399 | echo "$as_me: failed program was:" >&5 |
10400 | sed 's/^/| /' conftest.$ac_ext >&5 |
10401 | |
10402 | fi |
10403 | rm -f conftest.err conftest.$ac_objext \ |
10404 | conftest$ac_exeext conftest.$ac_ext |
10405 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10406 | |
10407 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
10408 | |
10409 | 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" |
10410 | else |
10411 | if test "$host_cpu" = ia64; then |
10412 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
10413 | allow_undefined_flag_CXX="-z nodefs" |
10414 | 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" |
10415 | else |
10416 | # Determine the default libpath from the value encoded in an empty executable. |
10417 | cat >conftest.$ac_ext <<_ACEOF |
10418 | /* confdefs.h. */ |
10419 | _ACEOF |
10420 | cat confdefs.h >>conftest.$ac_ext |
10421 | cat >>conftest.$ac_ext <<_ACEOF |
10422 | /* end confdefs.h. */ |
10423 | |
10424 | int |
10425 | main () |
10426 | { |
10427 | |
10428 | ; |
10429 | return 0; |
10430 | } |
10431 | _ACEOF |
10432 | rm -f conftest.$ac_objext conftest$ac_exeext |
10433 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10434 | (eval $ac_link) 2>conftest.er1 |
10435 | ac_status=$? |
10436 | grep -v '^ *+' conftest.er1 >conftest.err |
10437 | rm -f conftest.er1 |
10438 | cat conftest.err >&5 |
10439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10440 | (exit $ac_status); } && |
10441 | { ac_try='test -z "$ac_cxx_werror_flag" |
10442 | || test ! -s conftest.err' |
10443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10444 | (eval $ac_try) 2>&5 |
10445 | ac_status=$? |
10446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10447 | (exit $ac_status); }; } && |
10448 | { ac_try='test -s conftest$ac_exeext' |
10449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10450 | (eval $ac_try) 2>&5 |
10451 | ac_status=$? |
10452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10453 | (exit $ac_status); }; }; then |
10454 | |
10455 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
10456 | }'` |
10457 | # Check for a 64-bit object if we didn't find anything. |
10458 | 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; } |
10459 | }'`; fi |
10460 | else |
10461 | echo "$as_me: failed program was:" >&5 |
10462 | sed 's/^/| /' conftest.$ac_ext >&5 |
10463 | |
10464 | fi |
10465 | rm -f conftest.err conftest.$ac_objext \ |
10466 | conftest$ac_exeext conftest.$ac_ext |
10467 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10468 | |
10469 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
10470 | # Warning - without using the other run time loading flags, |
10471 | # -berok will link without error, but may produce a broken library. |
10472 | no_undefined_flag_CXX=' ${wl}-bernotok' |
10473 | allow_undefined_flag_CXX=' ${wl}-berok' |
10474 | # Exported symbols can be pulled into shared objects from archives |
10475 | whole_archive_flag_spec_CXX='$convenience' |
10476 | archive_cmds_need_lc_CXX=yes |
10477 | # This is similar to how AIX traditionally builds its shared libraries. |
10478 | 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' |
10479 | fi |
10480 | fi |
10481 | ;; |
10482 | |
10483 | beos*) |
10484 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
10485 | allow_undefined_flag_CXX=unsupported |
10486 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
10487 | # support --undefined. This deserves some investigation. FIXME |
10488 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10489 | else |
10490 | ld_shlibs_CXX=no |
10491 | fi |
10492 | ;; |
10493 | |
10494 | chorus*) |
10495 | case $cc_basename in |
10496 | *) |
10497 | # FIXME: insert proper C++ library support |
10498 | ld_shlibs_CXX=no |
10499 | ;; |
10500 | esac |
10501 | ;; |
10502 | |
10503 | cygwin* | mingw* | pw32*) |
10504 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
10505 | # as there is no search path for DLLs. |
10506 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
10507 | allow_undefined_flag_CXX=unsupported |
10508 | always_export_symbols_CXX=no |
10509 | enable_shared_with_static_runtimes_CXX=yes |
10510 | |
10511 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
10512 | 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' |
10513 | # If the export-symbols file already is a .def file (1st line |
10514 | # is EXPORTS), use it as is; otherwise, prepend... |
10515 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
10516 | cp $export_symbols $output_objdir/$soname.def; |
10517 | else |
10518 | echo EXPORTS > $output_objdir/$soname.def; |
10519 | cat $export_symbols >> $output_objdir/$soname.def; |
10520 | fi~ |
10521 | $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' |
10522 | else |
10523 | ld_shlibs_CXX=no |
10524 | fi |
10525 | ;; |
10526 | darwin* | rhapsody*) |
10527 | case $host_os in |
10528 | rhapsody* | darwin1.[012]) |
10529 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
10530 | ;; |
10531 | *) # Darwin 1.3 on |
10532 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
10533 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
10534 | else |
10535 | case ${MACOSX_DEPLOYMENT_TARGET} in |
10536 | 10.[012]) |
10537 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
10538 | ;; |
10539 | 10.*) |
10540 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
10541 | ;; |
10542 | esac |
10543 | fi |
10544 | ;; |
10545 | esac |
10546 | archive_cmds_need_lc_CXX=no |
10547 | hardcode_direct_CXX=no |
10548 | hardcode_automatic_CXX=yes |
10549 | hardcode_shlibpath_var_CXX=unsupported |
10550 | whole_archive_flag_spec_CXX='' |
10551 | link_all_deplibs_CXX=yes |
10552 | |
10553 | if test "$GXX" = yes ; then |
10554 | lt_int_apple_cc_single_mod=no |
10555 | output_verbose_link_cmd='echo' |
10556 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
10557 | lt_int_apple_cc_single_mod=yes |
10558 | fi |
10559 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
10560 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
10561 | else |
10562 | 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' |
10563 | fi |
10564 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
10565 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
10566 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
10567 | 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}' |
10568 | else |
10569 | 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}' |
10570 | fi |
10571 | 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}' |
10572 | else |
10573 | case $cc_basename in |
10574 | xlc*) |
10575 | output_verbose_link_cmd='echo' |
10576 | 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' |
10577 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
10578 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
10579 | 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}' |
10580 | 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}' |
10581 | ;; |
10582 | *) |
10583 | ld_shlibs_CXX=no |
10584 | ;; |
10585 | esac |
10586 | fi |
10587 | ;; |
10588 | |
10589 | dgux*) |
10590 | case $cc_basename in |
10591 | ec++*) |
10592 | # FIXME: insert proper C++ library support |
10593 | ld_shlibs_CXX=no |
10594 | ;; |
10595 | ghcx*) |
10596 | # Green Hills C++ Compiler |
10597 | # FIXME: insert proper C++ library support |
10598 | ld_shlibs_CXX=no |
10599 | ;; |
10600 | *) |
10601 | # FIXME: insert proper C++ library support |
10602 | ld_shlibs_CXX=no |
10603 | ;; |
10604 | esac |
10605 | ;; |
10606 | freebsd[12]*) |
10607 | # C++ shared libraries reported to be fairly broken before switch to ELF |
10608 | ld_shlibs_CXX=no |
10609 | ;; |
10610 | freebsd-elf*) |
10611 | archive_cmds_need_lc_CXX=no |
10612 | ;; |
10613 | freebsd* | kfreebsd*-gnu | dragonfly*) |
10614 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
10615 | # conventions |
10616 | ld_shlibs_CXX=yes |
10617 | ;; |
10618 | gnu*) |
10619 | ;; |
10620 | hpux9*) |
10621 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
10622 | hardcode_libdir_separator_CXX=: |
10623 | export_dynamic_flag_spec_CXX='${wl}-E' |
10624 | hardcode_direct_CXX=yes |
10625 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
10626 | # but as the default |
10627 | # location of the library. |
10628 | |
10629 | case $cc_basename in |
10630 | CC*) |
10631 | # FIXME: insert proper C++ library support |
10632 | ld_shlibs_CXX=no |
10633 | ;; |
10634 | aCC*) |
10635 | 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' |
10636 | # Commands to make compiler produce verbose output that lists |
10637 | # what "hidden" libraries, object files and flags are used when |
10638 | # linking a shared library. |
10639 | # |
10640 | # There doesn't appear to be a way to prevent this compiler from |
10641 | # explicitly linking system object files so we need to strip them |
10642 | # from the output so that they don't get included in the library |
10643 | # dependencies. |
10644 | 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' |
10645 | ;; |
10646 | *) |
10647 | if test "$GXX" = yes; then |
10648 | 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' |
10649 | else |
10650 | # FIXME: insert proper C++ library support |
10651 | ld_shlibs_CXX=no |
10652 | fi |
10653 | ;; |
10654 | esac |
10655 | ;; |
10656 | hpux10*|hpux11*) |
10657 | if test $with_gnu_ld = no; then |
10658 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
10659 | hardcode_libdir_separator_CXX=: |
10660 | |
10661 | case $host_cpu in |
10662 | hppa*64*|ia64*) |
10663 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
10664 | ;; |
10665 | *) |
10666 | export_dynamic_flag_spec_CXX='${wl}-E' |
10667 | ;; |
10668 | esac |
10669 | fi |
10670 | case $host_cpu in |
10671 | hppa*64*|ia64*) |
10672 | hardcode_direct_CXX=no |
10673 | hardcode_shlibpath_var_CXX=no |
10674 | ;; |
10675 | *) |
10676 | hardcode_direct_CXX=yes |
10677 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
10678 | # but as the default |
10679 | # location of the library. |
10680 | ;; |
10681 | esac |
10682 | |
10683 | case $cc_basename in |
10684 | CC*) |
10685 | # FIXME: insert proper C++ library support |
10686 | ld_shlibs_CXX=no |
10687 | ;; |
10688 | aCC*) |
10689 | case $host_cpu in |
10690 | hppa*64*) |
10691 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10692 | ;; |
10693 | ia64*) |
10694 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10695 | ;; |
10696 | *) |
10697 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10698 | ;; |
10699 | esac |
10700 | # Commands to make compiler produce verbose output that lists |
10701 | # what "hidden" libraries, object files and flags are used when |
10702 | # linking a shared library. |
10703 | # |
10704 | # There doesn't appear to be a way to prevent this compiler from |
10705 | # explicitly linking system object files so we need to strip them |
10706 | # from the output so that they don't get included in the library |
10707 | # dependencies. |
10708 | 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' |
10709 | ;; |
10710 | *) |
10711 | if test "$GXX" = yes; then |
10712 | if test $with_gnu_ld = no; then |
10713 | case $host_cpu in |
10714 | hppa*64*) |
10715 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10716 | ;; |
10717 | ia64*) |
10718 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10719 | ;; |
10720 | *) |
10721 | 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' |
10722 | ;; |
10723 | esac |
10724 | fi |
10725 | else |
10726 | # FIXME: insert proper C++ library support |
10727 | ld_shlibs_CXX=no |
10728 | fi |
10729 | ;; |
10730 | esac |
10731 | ;; |
10732 | interix3*) |
10733 | hardcode_direct_CXX=no |
10734 | hardcode_shlibpath_var_CXX=no |
10735 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10736 | export_dynamic_flag_spec_CXX='${wl}-E' |
10737 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
10738 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
10739 | # default) and relocated if they conflict, which is a slow very memory |
10740 | # consuming and fragmenting process. To avoid this, we pick a random, |
10741 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
10742 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
10743 | 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' |
10744 | 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' |
10745 | ;; |
10746 | irix5* | irix6*) |
10747 | case $cc_basename in |
10748 | CC*) |
10749 | # SGI C++ |
10750 | 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' |
10751 | |
10752 | # Archives containing C++ object files must be created using |
10753 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
10754 | # necessary to make sure instantiated templates are included |
10755 | # in the archive. |
10756 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
10757 | ;; |
10758 | *) |
10759 | if test "$GXX" = yes; then |
10760 | if test "$with_gnu_ld" = no; then |
10761 | 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' |
10762 | else |
10763 | 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' |
10764 | fi |
10765 | fi |
10766 | link_all_deplibs_CXX=yes |
10767 | ;; |
10768 | esac |
10769 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
10770 | hardcode_libdir_separator_CXX=: |
10771 | ;; |
10772 | linux*) |
10773 | case $cc_basename in |
10774 | KCC*) |
10775 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
10776 | |
10777 | # KCC will only create a shared library if the output file |
10778 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
10779 | # to its proper name (with version) after linking. |
10780 | 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' |
10781 | 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' |
10782 | # Commands to make compiler produce verbose output that lists |
10783 | # what "hidden" libraries, object files and flags are used when |
10784 | # linking a shared library. |
10785 | # |
10786 | # There doesn't appear to be a way to prevent this compiler from |
10787 | # explicitly linking system object files so we need to strip them |
10788 | # from the output so that they don't get included in the library |
10789 | # dependencies. |
10790 | 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' |
10791 | |
10792 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
10793 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10794 | |
10795 | # Archives containing C++ object files must be created using |
10796 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
10797 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
10798 | ;; |
10799 | icpc*) |
10800 | # Intel C++ |
10801 | with_gnu_ld=yes |
10802 | # version 8.0 and above of icpc choke on multiply defined symbols |
10803 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
10804 | # earlier do not add the objects themselves. |
10805 | case `$CC -V 2>&1` in |
10806 | *"Version 7."*) |
10807 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10808 | 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' |
10809 | ;; |
10810 | *) # Version 8.0 or newer |
10811 | tmp_idyn= |
10812 | case $host_cpu in |
10813 | ia64*) tmp_idyn=' -i_dynamic';; |
10814 | esac |
10815 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10816 | 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' |
10817 | ;; |
10818 | esac |
10819 | archive_cmds_need_lc_CXX=no |
10820 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10821 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10822 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
10823 | ;; |
10824 | pgCC*) |
10825 | # Portland Group C++ compiler |
10826 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
10827 | 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' |
10828 | |
10829 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
10830 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10831 | 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' |
10832 | ;; |
10833 | cxx*) |
10834 | # Compaq C++ |
10835 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10836 | 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' |
10837 | |
10838 | runpath_var=LD_RUN_PATH |
10839 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
10840 | hardcode_libdir_separator_CXX=: |
10841 | |
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 -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' |
10851 | ;; |
10852 | esac |
10853 | ;; |
10854 | lynxos*) |
10855 | # FIXME: insert proper C++ library support |
10856 | ld_shlibs_CXX=no |
10857 | ;; |
10858 | m88k*) |
10859 | # FIXME: insert proper C++ library support |
10860 | ld_shlibs_CXX=no |
10861 | ;; |
10862 | mvs*) |
10863 | case $cc_basename in |
10864 | cxx*) |
10865 | # FIXME: insert proper C++ library support |
10866 | ld_shlibs_CXX=no |
10867 | ;; |
10868 | *) |
10869 | # FIXME: insert proper C++ library support |
10870 | ld_shlibs_CXX=no |
10871 | ;; |
10872 | esac |
10873 | ;; |
10874 | netbsd*) |
10875 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
10876 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
10877 | wlarc= |
10878 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
10879 | hardcode_direct_CXX=yes |
10880 | hardcode_shlibpath_var_CXX=no |
10881 | fi |
10882 | # Workaround some broken pre-1.5 toolchains |
10883 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
10884 | ;; |
10885 | openbsd2*) |
10886 | # C++ shared libraries are fairly broken |
10887 | ld_shlibs_CXX=no |
10888 | ;; |
10889 | openbsd*) |
10890 | hardcode_direct_CXX=yes |
10891 | hardcode_shlibpath_var_CXX=no |
10892 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
10893 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10894 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
10895 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
10896 | export_dynamic_flag_spec_CXX='${wl}-E' |
10897 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
10898 | fi |
10899 | output_verbose_link_cmd='echo' |
10900 | ;; |
10901 | osf3*) |
10902 | case $cc_basename in |
10903 | KCC*) |
10904 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
10905 | |
10906 | # KCC will only create a shared library if the output file |
10907 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
10908 | # to its proper name (with version) after linking. |
10909 | 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' |
10910 | |
10911 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10912 | hardcode_libdir_separator_CXX=: |
10913 | |
10914 | # Archives containing C++ object files must be created using |
10915 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
10916 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
10917 | |
10918 | ;; |
10919 | RCC*) |
10920 | # Rational C++ 2.4.1 |
10921 | # FIXME: insert proper C++ library support |
10922 | ld_shlibs_CXX=no |
10923 | ;; |
10924 | cxx*) |
10925 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
10926 | 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' |
10927 | |
10928 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
10929 | hardcode_libdir_separator_CXX=: |
10930 | |
10931 | # Commands to make compiler produce verbose output that lists |
10932 | # what "hidden" libraries, object files and flags are used when |
10933 | # linking a shared library. |
10934 | # |
10935 | # There doesn't appear to be a way to prevent this compiler from |
10936 | # explicitly linking system object files so we need to strip them |
10937 | # from the output so that they don't get included in the library |
10938 | # dependencies. |
10939 | 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' |
10940 | ;; |
10941 | *) |
10942 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
10943 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
10944 | 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' |
10945 | |
10946 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
10947 | hardcode_libdir_separator_CXX=: |
10948 | |
10949 | # Commands to make compiler produce verbose output that lists |
10950 | # what "hidden" libraries, object files and flags are used when |
10951 | # linking a shared library. |
10952 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
10953 | |
10954 | else |
10955 | # FIXME: insert proper C++ library support |
10956 | ld_shlibs_CXX=no |
10957 | fi |
10958 | ;; |
10959 | esac |
10960 | ;; |
10961 | osf4* | osf5*) |
10962 | case $cc_basename in |
10963 | KCC*) |
10964 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
10965 | |
10966 | # KCC will only create a shared library if the output file |
10967 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
10968 | # to its proper name (with version) after linking. |
10969 | 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' |
10970 | |
10971 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10972 | hardcode_libdir_separator_CXX=: |
10973 | |
10974 | # Archives containing C++ object files must be created using |
10975 | # the KAI C++ compiler. |
10976 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
10977 | ;; |
10978 | RCC*) |
10979 | # Rational C++ 2.4.1 |
10980 | # FIXME: insert proper C++ library support |
10981 | ld_shlibs_CXX=no |
10982 | ;; |
10983 | cxx*) |
10984 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
10985 | 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' |
10986 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
10987 | echo "-hidden">> $lib.exp~ |
10988 | $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~ |
10989 | $rm $lib.exp' |
10990 | |
10991 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
10992 | hardcode_libdir_separator_CXX=: |
10993 | |
10994 | # Commands to make compiler produce verbose output that lists |
10995 | # what "hidden" libraries, object files and flags are used when |
10996 | # linking a shared library. |
10997 | # |
10998 | # There doesn't appear to be a way to prevent this compiler from |
10999 | # explicitly linking system object files so we need to strip them |
11000 | # from the output so that they don't get included in the library |
11001 | # dependencies. |
11002 | 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' |
11003 | ;; |
11004 | *) |
11005 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11006 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11007 | 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' |
11008 | |
11009 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11010 | hardcode_libdir_separator_CXX=: |
11011 | |
11012 | # Commands to make compiler produce verbose output that lists |
11013 | # what "hidden" libraries, object files and flags are used when |
11014 | # linking a shared library. |
11015 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11016 | |
11017 | else |
11018 | # FIXME: insert proper C++ library support |
11019 | ld_shlibs_CXX=no |
11020 | fi |
11021 | ;; |
11022 | esac |
11023 | ;; |
11024 | psos*) |
11025 | # FIXME: insert proper C++ library support |
11026 | ld_shlibs_CXX=no |
11027 | ;; |
11028 | sunos4*) |
11029 | case $cc_basename in |
11030 | CC*) |
11031 | # Sun C++ 4.x |
11032 | # FIXME: insert proper C++ library support |
11033 | ld_shlibs_CXX=no |
11034 | ;; |
11035 | lcc*) |
11036 | # Lucid |
11037 | # FIXME: insert proper C++ library support |
11038 | ld_shlibs_CXX=no |
11039 | ;; |
11040 | *) |
11041 | # FIXME: insert proper C++ library support |
11042 | ld_shlibs_CXX=no |
11043 | ;; |
11044 | esac |
11045 | ;; |
11046 | solaris*) |
11047 | case $cc_basename in |
11048 | CC*) |
11049 | # Sun C++ 4.2, 5.x and Centerline C++ |
11050 | archive_cmds_need_lc_CXX=yes |
11051 | no_undefined_flag_CXX=' -zdefs' |
11052 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11053 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11054 | $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' |
11055 | |
11056 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11057 | hardcode_shlibpath_var_CXX=no |
11058 | case $host_os in |
11059 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
11060 | *) |
11061 | # The C++ compiler is used as linker so we must use $wl |
11062 | # flag to pass the commands to the underlying system |
11063 | # linker. We must also pass each convience library through |
11064 | # to the system linker between allextract/defaultextract. |
11065 | # The C++ compiler will combine linker options so we |
11066 | # cannot just pass the convience library names through |
11067 | # without $wl. |
11068 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
11069 | 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' |
11070 | ;; |
11071 | esac |
11072 | link_all_deplibs_CXX=yes |
11073 | |
11074 | output_verbose_link_cmd='echo' |
11075 | |
11076 | # Archives containing C++ object files must be created using |
11077 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
11078 | # necessary to make sure instantiated templates are included |
11079 | # in the archive. |
11080 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
11081 | ;; |
11082 | gcx*) |
11083 | # Green Hills C++ Compiler |
11084 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11085 | |
11086 | # The C++ compiler must be used to create the archive. |
11087 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
11088 | ;; |
11089 | *) |
11090 | # GNU C++ compiler with Solaris linker |
11091 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11092 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
11093 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
11094 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11095 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11096 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11097 | |
11098 | # Commands to make compiler produce verbose output that lists |
11099 | # what "hidden" libraries, object files and flags are used when |
11100 | # linking a shared library. |
11101 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11102 | else |
11103 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
11104 | # platform. |
11105 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11106 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11107 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11108 | |
11109 | # Commands to make compiler produce verbose output that lists |
11110 | # what "hidden" libraries, object files and flags are used when |
11111 | # linking a shared library. |
11112 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11113 | fi |
11114 | |
11115 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
11116 | fi |
11117 | ;; |
11118 | esac |
11119 | ;; |
11120 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
11121 | no_undefined_flag_CXX='${wl}-z,text' |
11122 | archive_cmds_need_lc_CXX=no |
11123 | hardcode_shlibpath_var_CXX=no |
11124 | runpath_var='LD_RUN_PATH' |
11125 | |
11126 | case $cc_basename in |
11127 | CC*) |
11128 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11129 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11130 | ;; |
11131 | *) |
11132 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11133 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11134 | ;; |
11135 | esac |
11136 | ;; |
11137 | sysv5* | sco3.2v5* | sco5v6*) |
11138 | # Note: We can NOT use -z defs as we might desire, because we do not |
11139 | # link with -lc, and that would cause any symbols used from libc to |
11140 | # always be unresolved, which means just about no library would |
11141 | # ever link correctly. If we're not using GNU ld we use -z text |
11142 | # though, which does catch some bad symbols but isn't as heavy-handed |
11143 | # as -z defs. |
11144 | # For security reasons, it is highly recommended that you always |
11145 | # use absolute paths for naming shared libraries, and exclude the |
11146 | # DT_RUNPATH tag from executables and libraries. But doing so |
11147 | # requires that you compile everything twice, which is a pain. |
11148 | # So that behaviour is only enabled if SCOABSPATH is set to a |
11149 | # non-empty value in the environment. Most likely only useful for |
11150 | # creating official distributions of packages. |
11151 | # This is a hack until libtool officially supports absolute path |
11152 | # names for shared libraries. |
11153 | no_undefined_flag_CXX='${wl}-z,text' |
11154 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
11155 | archive_cmds_need_lc_CXX=no |
11156 | hardcode_shlibpath_var_CXX=no |
11157 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
11158 | hardcode_libdir_separator_CXX=':' |
11159 | link_all_deplibs_CXX=yes |
11160 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
11161 | runpath_var='LD_RUN_PATH' |
11162 | |
11163 | case $cc_basename in |
11164 | CC*) |
11165 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11166 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11167 | ;; |
11168 | *) |
11169 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11170 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11171 | ;; |
11172 | esac |
11173 | ;; |
11174 | tandem*) |
11175 | case $cc_basename in |
11176 | NCC*) |
11177 | # NonStop-UX NCC 3.20 |
11178 | # FIXME: insert proper C++ library support |
11179 | ld_shlibs_CXX=no |
11180 | ;; |
11181 | *) |
11182 | # FIXME: insert proper C++ library support |
11183 | ld_shlibs_CXX=no |
11184 | ;; |
11185 | esac |
11186 | ;; |
11187 | vxworks*) |
11188 | # FIXME: insert proper C++ library support |
11189 | ld_shlibs_CXX=no |
11190 | ;; |
11191 | *) |
11192 | # FIXME: insert proper C++ library support |
11193 | ld_shlibs_CXX=no |
11194 | ;; |
11195 | esac |
11196 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
11197 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
11198 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
11199 | |
11200 | GCC_CXX="$GXX" |
11201 | LD_CXX="$LD" |
11202 | |
11203 | |
11204 | cat > conftest.$ac_ext <<EOF |
11205 | class Foo |
11206 | { |
11207 | public: |
11208 | Foo (void) { a = 0; } |
11209 | private: |
11210 | int a; |
11211 | }; |
11212 | EOF |
11213 | |
11214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11215 | (eval $ac_compile) 2>&5 |
11216 | ac_status=$? |
11217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11218 | (exit $ac_status); }; then |
11219 | # Parse the compiler output and extract the necessary |
11220 | # objects, libraries and library flags. |
11221 | |
11222 | # Sentinel used to keep track of whether or not we are before |
11223 | # the conftest object file. |
11224 | pre_test_object_deps_done=no |
11225 | |
11226 | # The `*' in the case matches for architectures that use `case' in |
11227 | # $output_verbose_cmd can trigger glob expansion during the loop |
11228 | # eval without this substitution. |
11229 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
11230 | |
11231 | for p in `eval $output_verbose_link_cmd`; do |
11232 | case $p in |
11233 | |
11234 | -L* | -R* | -l*) |
11235 | # Some compilers place space between "-{L,R}" and the path. |
11236 | # Remove the space. |
11237 | if test $p = "-L" \ |
11238 | || test $p = "-R"; then |
11239 | prev=$p |
11240 | continue |
11241 | else |
11242 | prev= |
11243 | fi |
11244 | |
11245 | if test "$pre_test_object_deps_done" = no; then |
11246 | case $p in |
11247 | -L* | -R*) |
11248 | # Internal compiler library paths should come after those |
11249 | # provided the user. The postdeps already come after the |
11250 | # user supplied libs so there is no need to process them. |
11251 | if test -z "$compiler_lib_search_path_CXX"; then |
11252 | compiler_lib_search_path_CXX="${prev}${p}" |
11253 | else |
11254 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
11255 | fi |
11256 | ;; |
11257 | # The "-l" case would never come before the object being |
11258 | # linked, so don't bother handling this case. |
11259 | esac |
11260 | else |
11261 | if test -z "$postdeps_CXX"; then |
11262 | postdeps_CXX="${prev}${p}" |
11263 | else |
11264 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
11265 | fi |
11266 | fi |
11267 | ;; |
11268 | |
11269 | *.$objext) |
11270 | # This assumes that the test object file only shows up |
11271 | # once in the compiler output. |
11272 | if test "$p" = "conftest.$objext"; then |
11273 | pre_test_object_deps_done=yes |
11274 | continue |
11275 | fi |
11276 | |
11277 | if test "$pre_test_object_deps_done" = no; then |
11278 | if test -z "$predep_objects_CXX"; then |
11279 | predep_objects_CXX="$p" |
11280 | else |
11281 | predep_objects_CXX="$predep_objects_CXX $p" |
11282 | fi |
11283 | else |
11284 | if test -z "$postdep_objects_CXX"; then |
11285 | postdep_objects_CXX="$p" |
11286 | else |
11287 | postdep_objects_CXX="$postdep_objects_CXX $p" |
11288 | fi |
11289 | fi |
11290 | ;; |
11291 | |
11292 | *) ;; # Ignore the rest. |
11293 | |
11294 | esac |
11295 | done |
11296 | |
11297 | # Clean up. |
11298 | rm -f a.out a.exe |
11299 | else |
11300 | echo "libtool.m4: error: problem compiling CXX test program" |
11301 | fi |
11302 | |
11303 | $rm -f confest.$objext |
11304 | |
11305 | # PORTME: override above test on systems where it is broken |
11306 | case $host_os in |
11307 | interix3*) |
11308 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
11309 | # hack all around it, let's just trust "g++" to DTRT. |
11310 | predep_objects_CXX= |
11311 | postdep_objects_CXX= |
11312 | postdeps_CXX= |
11313 | ;; |
11314 | |
11315 | solaris*) |
11316 | case $cc_basename in |
11317 | CC*) |
11318 | # Adding this requires a known-good setup of shared libraries for |
11319 | # Sun compiler versions before 5.6, else PIC objects from an old |
11320 | # archive will be linked into the output, leading to subtle bugs. |
11321 | postdeps_CXX='-lCstd -lCrun' |
11322 | ;; |
11323 | esac |
11324 | ;; |
11325 | esac |
11326 | |
11327 | |
11328 | case " $postdeps_CXX " in |
11329 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
11330 | esac |
11331 | |
11332 | lt_prog_compiler_wl_CXX= |
11333 | lt_prog_compiler_pic_CXX= |
11334 | lt_prog_compiler_static_CXX= |
11335 | |
11336 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
11337 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
11338 | |
11339 | # C++ specific cases for pic, static, wl, etc. |
11340 | if test "$GXX" = yes; then |
11341 | lt_prog_compiler_wl_CXX='-Wl,' |
11342 | lt_prog_compiler_static_CXX='-static' |
11343 | |
11344 | case $host_os in |
11345 | aix*) |
11346 | # All AIX code is PIC. |
11347 | if test "$host_cpu" = ia64; then |
11348 | # AIX 5 now supports IA64 processor |
11349 | lt_prog_compiler_static_CXX='-Bstatic' |
11350 | fi |
11351 | ;; |
11352 | amigaos*) |
11353 | # FIXME: we need at least 68020 code to build shared libraries, but |
11354 | # adding the `-m68020' flag to GCC prevents building anything better, |
11355 | # like `-m68040'. |
11356 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
11357 | ;; |
11358 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
11359 | # PIC is the default for these OSes. |
11360 | ;; |
11361 | mingw* | os2* | pw32*) |
11362 | # This hack is so that the source file can tell whether it is being |
11363 | # built for inclusion in a dll (and should export symbols for example). |
11364 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
11365 | ;; |
11366 | darwin* | rhapsody*) |
11367 | # PIC is the default on this platform |
11368 | # Common symbols not allowed in MH_DYLIB files |
11369 | lt_prog_compiler_pic_CXX='-fno-common' |
11370 | ;; |
11371 | *djgpp*) |
11372 | # DJGPP does not support shared libraries at all |
11373 | lt_prog_compiler_pic_CXX= |
11374 | ;; |
11375 | interix3*) |
11376 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
11377 | # Instead, we relocate shared libraries at runtime. |
11378 | ;; |
11379 | sysv4*MP*) |
11380 | if test -d /usr/nec; then |
11381 | lt_prog_compiler_pic_CXX=-Kconform_pic |
11382 | fi |
11383 | ;; |
11384 | hpux*) |
11385 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
11386 | # not for PA HP-UX. |
11387 | case $host_cpu in |
11388 | hppa*64*|ia64*) |
11389 | ;; |
11390 | *) |
11391 | lt_prog_compiler_pic_CXX='-fPIC' |
11392 | ;; |
11393 | esac |
11394 | ;; |
11395 | *) |
11396 | lt_prog_compiler_pic_CXX='-fPIC' |
11397 | ;; |
11398 | esac |
11399 | else |
11400 | case $host_os in |
11401 | aix4* | aix5*) |
11402 | # All AIX code is PIC. |
11403 | if test "$host_cpu" = ia64; then |
11404 | # AIX 5 now supports IA64 processor |
11405 | lt_prog_compiler_static_CXX='-Bstatic' |
11406 | else |
11407 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
11408 | fi |
11409 | ;; |
11410 | chorus*) |
11411 | case $cc_basename in |
11412 | cxch68*) |
11413 | # Green Hills C++ Compiler |
11414 | # _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" |
11415 | ;; |
11416 | esac |
11417 | ;; |
11418 | darwin*) |
11419 | # PIC is the default on this platform |
11420 | # Common symbols not allowed in MH_DYLIB files |
11421 | case $cc_basename in |
11422 | xlc*) |
11423 | lt_prog_compiler_pic_CXX='-qnocommon' |
11424 | lt_prog_compiler_wl_CXX='-Wl,' |
11425 | ;; |
11426 | esac |
11427 | ;; |
11428 | dgux*) |
11429 | case $cc_basename in |
11430 | ec++*) |
11431 | lt_prog_compiler_pic_CXX='-KPIC' |
11432 | ;; |
11433 | ghcx*) |
11434 | # Green Hills C++ Compiler |
11435 | lt_prog_compiler_pic_CXX='-pic' |
11436 | ;; |
11437 | *) |
11438 | ;; |
11439 | esac |
11440 | ;; |
11441 | freebsd* | kfreebsd*-gnu | dragonfly*) |
11442 | # FreeBSD uses GNU C++ |
11443 | ;; |
11444 | hpux9* | hpux10* | hpux11*) |
11445 | case $cc_basename in |
11446 | CC*) |
11447 | lt_prog_compiler_wl_CXX='-Wl,' |
11448 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
11449 | if test "$host_cpu" != ia64; then |
11450 | lt_prog_compiler_pic_CXX='+Z' |
11451 | fi |
11452 | ;; |
11453 | aCC*) |
11454 | lt_prog_compiler_wl_CXX='-Wl,' |
11455 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
11456 | case $host_cpu in |
11457 | hppa*64*|ia64*) |
11458 | # +Z the default |
11459 | ;; |
11460 | *) |
11461 | lt_prog_compiler_pic_CXX='+Z' |
11462 | ;; |
11463 | esac |
11464 | ;; |
11465 | *) |
11466 | ;; |
11467 | esac |
11468 | ;; |
11469 | interix*) |
11470 | # This is c89, which is MS Visual C++ (no shared libs) |
11471 | # Anyone wants to do a port? |
11472 | ;; |
11473 | irix5* | irix6* | nonstopux*) |
11474 | case $cc_basename in |
11475 | CC*) |
11476 | lt_prog_compiler_wl_CXX='-Wl,' |
11477 | lt_prog_compiler_static_CXX='-non_shared' |
11478 | # CC pic flag -KPIC is the default. |
11479 | ;; |
11480 | *) |
11481 | ;; |
11482 | esac |
11483 | ;; |
11484 | linux*) |
11485 | case $cc_basename in |
11486 | KCC*) |
11487 | # KAI C++ Compiler |
11488 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
11489 | lt_prog_compiler_pic_CXX='-fPIC' |
11490 | ;; |
11491 | icpc* | ecpc*) |
11492 | # Intel C++ |
11493 | lt_prog_compiler_wl_CXX='-Wl,' |
11494 | lt_prog_compiler_pic_CXX='-KPIC' |
11495 | lt_prog_compiler_static_CXX='-static' |
11496 | ;; |
11497 | pgCC*) |
11498 | # Portland Group C++ compiler. |
11499 | lt_prog_compiler_wl_CXX='-Wl,' |
11500 | lt_prog_compiler_pic_CXX='-fpic' |
11501 | lt_prog_compiler_static_CXX='-Bstatic' |
11502 | ;; |
11503 | cxx*) |
11504 | # Compaq C++ |
11505 | # Make sure the PIC flag is empty. It appears that all Alpha |
11506 | # Linux and Compaq Tru64 Unix objects are PIC. |
11507 | lt_prog_compiler_pic_CXX= |
11508 | lt_prog_compiler_static_CXX='-non_shared' |
11509 | ;; |
11510 | *) |
11511 | ;; |
11512 | esac |
11513 | ;; |
11514 | lynxos*) |
11515 | ;; |
11516 | m88k*) |
11517 | ;; |
11518 | mvs*) |
11519 | case $cc_basename in |
11520 | cxx*) |
11521 | lt_prog_compiler_pic_CXX='-W c,exportall' |
11522 | ;; |
11523 | *) |
11524 | ;; |
11525 | esac |
11526 | ;; |
11527 | netbsd*) |
11528 | ;; |
11529 | osf3* | osf4* | osf5*) |
11530 | case $cc_basename in |
11531 | KCC*) |
11532 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
11533 | ;; |
11534 | RCC*) |
11535 | # Rational C++ 2.4.1 |
11536 | lt_prog_compiler_pic_CXX='-pic' |
11537 | ;; |
11538 | cxx*) |
11539 | # Digital/Compaq C++ |
11540 | lt_prog_compiler_wl_CXX='-Wl,' |
11541 | # Make sure the PIC flag is empty. It appears that all Alpha |
11542 | # Linux and Compaq Tru64 Unix objects are PIC. |
11543 | lt_prog_compiler_pic_CXX= |
11544 | lt_prog_compiler_static_CXX='-non_shared' |
11545 | ;; |
11546 | *) |
11547 | ;; |
11548 | esac |
11549 | ;; |
11550 | psos*) |
11551 | ;; |
11552 | solaris*) |
11553 | case $cc_basename in |
11554 | CC*) |
11555 | # Sun C++ 4.2, 5.x and Centerline C++ |
11556 | lt_prog_compiler_pic_CXX='-KPIC' |
11557 | lt_prog_compiler_static_CXX='-Bstatic' |
11558 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
11559 | ;; |
11560 | gcx*) |
11561 | # Green Hills C++ Compiler |
11562 | lt_prog_compiler_pic_CXX='-PIC' |
11563 | ;; |
11564 | *) |
11565 | ;; |
11566 | esac |
11567 | ;; |
11568 | sunos4*) |
11569 | case $cc_basename in |
11570 | CC*) |
11571 | # Sun C++ 4.x |
11572 | lt_prog_compiler_pic_CXX='-pic' |
11573 | lt_prog_compiler_static_CXX='-Bstatic' |
11574 | ;; |
11575 | lcc*) |
11576 | # Lucid |
11577 | lt_prog_compiler_pic_CXX='-pic' |
11578 | ;; |
11579 | *) |
11580 | ;; |
11581 | esac |
11582 | ;; |
11583 | tandem*) |
11584 | case $cc_basename in |
11585 | NCC*) |
11586 | # NonStop-UX NCC 3.20 |
11587 | lt_prog_compiler_pic_CXX='-KPIC' |
11588 | ;; |
11589 | *) |
11590 | ;; |
11591 | esac |
11592 | ;; |
11593 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
11594 | case $cc_basename in |
11595 | CC*) |
11596 | lt_prog_compiler_wl_CXX='-Wl,' |
11597 | lt_prog_compiler_pic_CXX='-KPIC' |
11598 | lt_prog_compiler_static_CXX='-Bstatic' |
11599 | ;; |
11600 | esac |
11601 | ;; |
11602 | vxworks*) |
11603 | ;; |
11604 | *) |
11605 | lt_prog_compiler_can_build_shared_CXX=no |
11606 | ;; |
11607 | esac |
11608 | fi |
11609 | |
11610 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
11611 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
11612 | |
11613 | # |
11614 | # Check to make sure the PIC flag actually works. |
11615 | # |
11616 | if test -n "$lt_prog_compiler_pic_CXX"; then |
11617 | |
11618 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
11619 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
11620 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
11621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11622 | else |
11623 | lt_prog_compiler_pic_works_CXX=no |
11624 | ac_outfile=conftest.$ac_objext |
11625 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
11626 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
11627 | # Insert the option either (1) after the last *FLAGS variable, or |
11628 | # (2) before a word containing "conftest.", or (3) at the end. |
11629 | # Note that $ac_compile itself does not contain backslashes and begins |
11630 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
11631 | # The option is referenced via a variable to avoid confusing sed. |
11632 | lt_compile=`echo "$ac_compile" | $SED \ |
11633 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
11634 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
11635 | -e 's:$: $lt_compiler_flag:'` |
11636 | (eval echo "\"\$as_me:11636: $lt_compile\"" >&5) |
11637 | (eval "$lt_compile" 2>conftest.err) |
11638 | ac_status=$? |
11639 | cat conftest.err >&5 |
11640 | echo "$as_me:11640: \$? = $ac_status" >&5 |
11641 | if (exit $ac_status) && test -s "$ac_outfile"; then |
11642 | # The compiler can only warn and ignore the option if not recognized |
11643 | # So say no if there are warnings other than the usual output. |
11644 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
11645 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
11646 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
11647 | lt_prog_compiler_pic_works_CXX=yes |
11648 | fi |
11649 | fi |
11650 | $rm conftest* |
11651 | |
11652 | fi |
11653 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
11654 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
11655 | |
11656 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
11657 | case $lt_prog_compiler_pic_CXX in |
11658 | "" | " "*) ;; |
11659 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
11660 | esac |
11661 | else |
11662 | lt_prog_compiler_pic_CXX= |
11663 | lt_prog_compiler_can_build_shared_CXX=no |
11664 | fi |
11665 | |
11666 | fi |
11667 | case $host_os in |
11668 | # For platforms which do not support PIC, -DPIC is meaningless: |
11669 | *djgpp*) |
11670 | lt_prog_compiler_pic_CXX= |
11671 | ;; |
11672 | *) |
11673 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
11674 | ;; |
11675 | esac |
11676 | |
11677 | # |
11678 | # Check to make sure the static flag actually works. |
11679 | # |
11680 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
11681 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
11682 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
11683 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
11684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11685 | else |
11686 | lt_prog_compiler_static_works_CXX=no |
11687 | save_LDFLAGS="$LDFLAGS" |
11688 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
11689 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
11690 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
11691 | # The linker can only warn and ignore the option if not recognized |
11692 | # So say no if there are warnings |
11693 | if test -s conftest.err; then |
11694 | # Append any errors to the config.log. |
11695 | cat conftest.err 1>&5 |
11696 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
11697 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
11698 | if diff conftest.exp conftest.er2 >/dev/null; then |
11699 | lt_prog_compiler_static_works_CXX=yes |
11700 | fi |
11701 | else |
11702 | lt_prog_compiler_static_works_CXX=yes |
11703 | fi |
11704 | fi |
11705 | $rm conftest* |
11706 | LDFLAGS="$save_LDFLAGS" |
11707 | |
11708 | fi |
11709 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
11710 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 |
11711 | |
11712 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
11713 | : |
11714 | else |
11715 | lt_prog_compiler_static_CXX= |
11716 | fi |
11717 | |
11718 | |
11719 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
11720 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
11721 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
11722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11723 | else |
11724 | lt_cv_prog_compiler_c_o_CXX=no |
11725 | $rm -r conftest 2>/dev/null |
11726 | mkdir conftest |
11727 | cd conftest |
11728 | mkdir out |
11729 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
11730 | |
11731 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
11732 | # Insert the option either (1) after the last *FLAGS variable, or |
11733 | # (2) before a word containing "conftest.", or (3) at the end. |
11734 | # Note that $ac_compile itself does not contain backslashes and begins |
11735 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
11736 | lt_compile=`echo "$ac_compile" | $SED \ |
11737 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
11738 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
11739 | -e 's:$: $lt_compiler_flag:'` |
11740 | (eval echo "\"\$as_me:11740: $lt_compile\"" >&5) |
11741 | (eval "$lt_compile" 2>out/conftest.err) |
11742 | ac_status=$? |
11743 | cat out/conftest.err >&5 |
11744 | echo "$as_me:11744: \$? = $ac_status" >&5 |
11745 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
11746 | then |
11747 | # The compiler can only warn and ignore the option if not recognized |
11748 | # So say no if there are warnings |
11749 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
11750 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
11751 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
11752 | lt_cv_prog_compiler_c_o_CXX=yes |
11753 | fi |
11754 | fi |
11755 | chmod u+w . 2>&5 |
11756 | $rm conftest* |
11757 | # SGI C++ compiler will create directory out/ii_files/ for |
11758 | # template instantiation |
11759 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
11760 | $rm out/* && rmdir out |
11761 | cd .. |
11762 | rmdir conftest |
11763 | $rm conftest* |
11764 | |
11765 | fi |
11766 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
11767 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
11768 | |
11769 | |
11770 | hard_links="nottested" |
11771 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
11772 | # do not overwrite the value of need_locks provided by the user |
11773 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
11774 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
11775 | hard_links=yes |
11776 | $rm conftest* |
11777 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
11778 | touch conftest.a |
11779 | ln conftest.a conftest.b 2>&5 || hard_links=no |
11780 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
11781 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
11782 | echo "${ECHO_T}$hard_links" >&6 |
11783 | if test "$hard_links" = no; then |
11784 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
11785 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
11786 | need_locks=warn |
11787 | fi |
11788 | else |
11789 | need_locks=no |
11790 | fi |
11791 | |
11792 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
11793 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
11794 | |
11795 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
11796 | case $host_os in |
11797 | aix4* | aix5*) |
11798 | # If we're using GNU nm, then we don't want the "-C" option. |
11799 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
11800 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
11801 | 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' |
11802 | else |
11803 | 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' |
11804 | fi |
11805 | ;; |
11806 | pw32*) |
11807 | export_symbols_cmds_CXX="$ltdll_cmds" |
11808 | ;; |
11809 | cygwin* | mingw*) |
11810 | 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' |
11811 | ;; |
11812 | *) |
11813 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
11814 | ;; |
11815 | esac |
11816 | |
11817 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
11818 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
11819 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
11820 | |
11821 | # |
11822 | # Do we need to explicitly link libc? |
11823 | # |
11824 | case "x$archive_cmds_need_lc_CXX" in |
11825 | x|xyes) |
11826 | # Assume -lc should be added |
11827 | archive_cmds_need_lc_CXX=yes |
11828 | |
11829 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
11830 | case $archive_cmds_CXX in |
11831 | *'~'*) |
11832 | # FIXME: we may have to deal with multi-command sequences. |
11833 | ;; |
11834 | '$CC '*) |
11835 | # Test whether the compiler implicitly links with -lc since on some |
11836 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
11837 | # to ld, don't add -lc before -lgcc. |
11838 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
11839 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
11840 | $rm conftest* |
11841 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
11842 | |
11843 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11844 | (eval $ac_compile) 2>&5 |
11845 | ac_status=$? |
11846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11847 | (exit $ac_status); } 2>conftest.err; then |
11848 | soname=conftest |
11849 | lib=conftest |
11850 | libobjs=conftest.$ac_objext |
11851 | deplibs= |
11852 | wl=$lt_prog_compiler_wl_CXX |
11853 | pic_flag=$lt_prog_compiler_pic_CXX |
11854 | compiler_flags=-v |
11855 | linker_flags=-v |
11856 | verstring= |
11857 | output_objdir=. |
11858 | libname=conftest |
11859 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
11860 | allow_undefined_flag_CXX= |
11861 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
11862 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
11863 | ac_status=$? |
11864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11865 | (exit $ac_status); } |
11866 | then |
11867 | archive_cmds_need_lc_CXX=no |
11868 | else |
11869 | archive_cmds_need_lc_CXX=yes |
11870 | fi |
11871 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
11872 | else |
11873 | cat conftest.err 1>&5 |
11874 | fi |
11875 | $rm conftest* |
11876 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
11877 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
11878 | ;; |
11879 | esac |
11880 | fi |
11881 | ;; |
11882 | esac |
11883 | |
11884 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
11885 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
11886 | library_names_spec= |
11887 | libname_spec='lib$name' |
11888 | soname_spec= |
11889 | shrext_cmds=".so" |
11890 | postinstall_cmds= |
11891 | postuninstall_cmds= |
11892 | finish_cmds= |
11893 | finish_eval= |
11894 | shlibpath_var= |
11895 | shlibpath_overrides_runpath=unknown |
11896 | version_type=none |
11897 | dynamic_linker="$host_os ld.so" |
11898 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
11899 | if test "$GCC" = yes; then |
11900 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
11901 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
11902 | # if the path contains ";" then we assume it to be the separator |
11903 | # otherwise default to the standard path separator (i.e. ":") - it is |
11904 | # assumed that no part of a normal pathname contains ";" but that should |
11905 | # okay in the real world where ";" in dirpaths is itself problematic. |
11906 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
11907 | else |
11908 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
11909 | fi |
11910 | else |
11911 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
11912 | fi |
11913 | need_lib_prefix=unknown |
11914 | hardcode_into_libs=no |
11915 | |
11916 | # when you set need_version to no, make sure it does not cause -set_version |
11917 | # flags to be left without arguments |
11918 | need_version=unknown |
11919 | |
11920 | case $host_os in |
11921 | aix3*) |
11922 | version_type=linux |
11923 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
11924 | shlibpath_var=LIBPATH |
11925 | |
11926 | # AIX 3 has no versioning support, so we append a major version to the name. |
11927 | soname_spec='${libname}${release}${shared_ext}$major' |
11928 | ;; |
11929 | |
11930 | aix4* | aix5*) |
11931 | version_type=linux |
11932 | need_lib_prefix=no |
11933 | need_version=no |
11934 | hardcode_into_libs=yes |
11935 | if test "$host_cpu" = ia64; then |
11936 | # AIX 5 supports IA64 |
11937 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
11938 | shlibpath_var=LD_LIBRARY_PATH |
11939 | else |
11940 | # With GCC up to 2.95.x, collect2 would create an import file |
11941 | # for dependence libraries. The import file would start with |
11942 | # the line `#! .'. This would cause the generated library to |
11943 | # depend on `.', always an invalid library. This was fixed in |
11944 | # development snapshots of GCC prior to 3.0. |
11945 | case $host_os in |
11946 | aix4 | aix4.[01] | aix4.[01].*) |
11947 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
11948 | echo ' yes ' |
11949 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
11950 | : |
11951 | else |
11952 | can_build_shared=no |
11953 | fi |
11954 | ;; |
11955 | esac |
11956 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
11957 | # soname into executable. Probably we can add versioning support to |
11958 | # collect2, so additional links can be useful in future. |
11959 | if test "$aix_use_runtimelinking" = yes; then |
11960 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
11961 | # instead of lib<name>.a to let people know that these are not |
11962 | # typical AIX shared libraries. |
11963 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11964 | else |
11965 | # We preserve .a as extension for shared libraries through AIX4.2 |
11966 | # and later when we are not doing run time linking. |
11967 | library_names_spec='${libname}${release}.a $libname.a' |
11968 | soname_spec='${libname}${release}${shared_ext}$major' |
11969 | fi |
11970 | shlibpath_var=LIBPATH |
11971 | fi |
11972 | ;; |
11973 | |
11974 | amigaos*) |
11975 | library_names_spec='$libname.ixlibrary $libname.a' |
11976 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
11977 | 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' |
11978 | ;; |
11979 | |
11980 | beos*) |
11981 | library_names_spec='${libname}${shared_ext}' |
11982 | dynamic_linker="$host_os ld.so" |
11983 | shlibpath_var=LIBRARY_PATH |
11984 | ;; |
11985 | |
11986 | bsdi[45]*) |
11987 | version_type=linux |
11988 | need_version=no |
11989 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11990 | soname_spec='${libname}${release}${shared_ext}$major' |
11991 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
11992 | shlibpath_var=LD_LIBRARY_PATH |
11993 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
11994 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
11995 | # the default ld.so.conf also contains /usr/contrib/lib and |
11996 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
11997 | # libtool to hard-code these into programs |
11998 | ;; |
11999 | |
12000 | cygwin* | mingw* | pw32*) |
12001 | version_type=windows |
12002 | shrext_cmds=".dll" |
12003 | need_version=no |
12004 | need_lib_prefix=no |
12005 | |
12006 | case $GCC,$host_os in |
12007 | yes,cygwin* | yes,mingw* | yes,pw32*) |
12008 | library_names_spec='$libname.dll.a' |
12009 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
12010 | postinstall_cmds='base_file=`basename \${file}`~ |
12011 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
12012 | dldir=$destdir/`dirname \$dlpath`~ |
12013 | test -d \$dldir || mkdir -p \$dldir~ |
12014 | $install_prog $dir/$dlname \$dldir/$dlname~ |
12015 | chmod a+x \$dldir/$dlname' |
12016 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
12017 | dlpath=$dir/\$dldll~ |
12018 | $rm \$dlpath' |
12019 | shlibpath_overrides_runpath=yes |
12020 | |
12021 | case $host_os in |
12022 | cygwin*) |
12023 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
12024 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12025 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
12026 | ;; |
12027 | mingw*) |
12028 | # MinGW DLLs use traditional 'lib' prefix |
12029 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12030 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
12031 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
12032 | # It is most probably a Windows format PATH printed by |
12033 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
12034 | # path with ; separators, and with drive letters. We can handle the |
12035 | # drive letters (cygwin fileutils understands them), so leave them, |
12036 | # especially as we might pass files found there to a mingw objdump, |
12037 | # which wouldn't understand a cygwinified path. Ahh. |
12038 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
12039 | else |
12040 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12041 | fi |
12042 | ;; |
12043 | pw32*) |
12044 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
12045 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12046 | ;; |
12047 | esac |
12048 | ;; |
12049 | |
12050 | *) |
12051 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
12052 | ;; |
12053 | esac |
12054 | dynamic_linker='Win32 ld.exe' |
12055 | # FIXME: first we should search . and the directory the executable is in |
12056 | shlibpath_var=PATH |
12057 | ;; |
12058 | |
12059 | darwin* | rhapsody*) |
12060 | dynamic_linker="$host_os dyld" |
12061 | version_type=darwin |
12062 | need_lib_prefix=no |
12063 | need_version=no |
12064 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
12065 | soname_spec='${libname}${release}${major}$shared_ext' |
12066 | shlibpath_overrides_runpath=yes |
12067 | shlibpath_var=DYLD_LIBRARY_PATH |
12068 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
12069 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
12070 | if test "$GCC" = yes; then |
12071 | 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"` |
12072 | else |
12073 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
12074 | fi |
12075 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
12076 | ;; |
12077 | |
12078 | dgux*) |
12079 | version_type=linux |
12080 | need_lib_prefix=no |
12081 | need_version=no |
12082 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
12083 | soname_spec='${libname}${release}${shared_ext}$major' |
12084 | shlibpath_var=LD_LIBRARY_PATH |
12085 | ;; |
12086 | |
12087 | freebsd1*) |
12088 | dynamic_linker=no |
12089 | ;; |
12090 | |
12091 | kfreebsd*-gnu) |
12092 | version_type=linux |
12093 | need_lib_prefix=no |
12094 | need_version=no |
12095 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12096 | soname_spec='${libname}${release}${shared_ext}$major' |
12097 | shlibpath_var=LD_LIBRARY_PATH |
12098 | shlibpath_overrides_runpath=no |
12099 | hardcode_into_libs=yes |
12100 | dynamic_linker='GNU ld.so' |
12101 | ;; |
12102 | |
12103 | freebsd* | dragonfly*) |
12104 | # DragonFly does not have aout. When/if they implement a new |
12105 | # versioning mechanism, adjust this. |
12106 | if test -x /usr/bin/objformat; then |
12107 | objformat=`/usr/bin/objformat` |
12108 | else |
12109 | case $host_os in |
12110 | freebsd[123]*) objformat=aout ;; |
12111 | *) objformat=elf ;; |
12112 | esac |
12113 | fi |
12114 | version_type=freebsd-$objformat |
12115 | case $version_type in |
12116 | freebsd-elf*) |
12117 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
12118 | need_version=no |
12119 | need_lib_prefix=no |
12120 | ;; |
12121 | freebsd-*) |
12122 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
12123 | need_version=yes |
12124 | ;; |
12125 | esac |
12126 | shlibpath_var=LD_LIBRARY_PATH |
12127 | case $host_os in |
12128 | freebsd2*) |
12129 | shlibpath_overrides_runpath=yes |
12130 | ;; |
12131 | freebsd3.[01]* | freebsdelf3.[01]*) |
12132 | shlibpath_overrides_runpath=yes |
12133 | hardcode_into_libs=yes |
12134 | ;; |
12135 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
12136 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
12137 | shlibpath_overrides_runpath=no |
12138 | hardcode_into_libs=yes |
12139 | ;; |
12140 | freebsd*) # from 4.6 on |
12141 | shlibpath_overrides_runpath=yes |
12142 | hardcode_into_libs=yes |
12143 | ;; |
12144 | esac |
12145 | ;; |
12146 | |
12147 | gnu*) |
12148 | version_type=linux |
12149 | need_lib_prefix=no |
12150 | need_version=no |
12151 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
12152 | soname_spec='${libname}${release}${shared_ext}$major' |
12153 | shlibpath_var=LD_LIBRARY_PATH |
12154 | hardcode_into_libs=yes |
12155 | ;; |
12156 | |
12157 | hpux9* | hpux10* | hpux11*) |
12158 | # Give a soname corresponding to the major version so that dld.sl refuses to |
12159 | # link against other versions. |
12160 | version_type=sunos |
12161 | need_lib_prefix=no |
12162 | need_version=no |
12163 | case $host_cpu in |
12164 | ia64*) |
12165 | shrext_cmds='.so' |
12166 | hardcode_into_libs=yes |
12167 | dynamic_linker="$host_os dld.so" |
12168 | shlibpath_var=LD_LIBRARY_PATH |
12169 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12170 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12171 | soname_spec='${libname}${release}${shared_ext}$major' |
12172 | if test "X$HPUX_IA64_MODE" = X32; then |
12173 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
12174 | else |
12175 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
12176 | fi |
12177 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12178 | ;; |
12179 | hppa*64*) |
12180 | shrext_cmds='.sl' |
12181 | hardcode_into_libs=yes |
12182 | dynamic_linker="$host_os dld.sl" |
12183 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
12184 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12185 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12186 | soname_spec='${libname}${release}${shared_ext}$major' |
12187 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
12188 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12189 | ;; |
12190 | *) |
12191 | shrext_cmds='.sl' |
12192 | dynamic_linker="$host_os dld.sl" |
12193 | shlibpath_var=SHLIB_PATH |
12194 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
12195 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12196 | soname_spec='${libname}${release}${shared_ext}$major' |
12197 | ;; |
12198 | esac |
12199 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
12200 | postinstall_cmds='chmod 555 $lib' |
12201 | ;; |
12202 | |
12203 | interix3*) |
12204 | version_type=linux |
12205 | need_lib_prefix=no |
12206 | need_version=no |
12207 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12208 | soname_spec='${libname}${release}${shared_ext}$major' |
12209 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
12210 | shlibpath_var=LD_LIBRARY_PATH |
12211 | shlibpath_overrides_runpath=no |
12212 | hardcode_into_libs=yes |
12213 | ;; |
12214 | |
12215 | irix5* | irix6* | nonstopux*) |
12216 | case $host_os in |
12217 | nonstopux*) version_type=nonstopux ;; |
12218 | *) |
12219 | if test "$lt_cv_prog_gnu_ld" = yes; then |
12220 | version_type=linux |
12221 | else |
12222 | version_type=irix |
12223 | fi ;; |
12224 | esac |
12225 | need_lib_prefix=no |
12226 | need_version=no |
12227 | soname_spec='${libname}${release}${shared_ext}$major' |
12228 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
12229 | case $host_os in |
12230 | irix5* | nonstopux*) |
12231 | libsuff= shlibsuff= |
12232 | ;; |
12233 | *) |
12234 | case $LD in # libtool.m4 will add one of these switches to LD |
12235 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
12236 | libsuff= shlibsuff= libmagic=32-bit;; |
12237 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
12238 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
12239 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
12240 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
12241 | *) libsuff= shlibsuff= libmagic=never-match;; |
12242 | esac |
12243 | ;; |
12244 | esac |
12245 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
12246 | shlibpath_overrides_runpath=no |
12247 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
12248 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
12249 | hardcode_into_libs=yes |
12250 | ;; |
12251 | |
12252 | # No shared lib support for Linux oldld, aout, or coff. |
12253 | linux*oldld* | linux*aout* | linux*coff*) |
12254 | dynamic_linker=no |
12255 | ;; |
12256 | |
12257 | # This must be Linux ELF. |
12258 | linux*) |
12259 | version_type=linux |
12260 | need_lib_prefix=no |
12261 | need_version=no |
12262 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12263 | soname_spec='${libname}${release}${shared_ext}$major' |
12264 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
12265 | shlibpath_var=LD_LIBRARY_PATH |
12266 | shlibpath_overrides_runpath=no |
12267 | # This implies no fast_install, which is unacceptable. |
12268 | # Some rework will be needed to allow for fast_install |
12269 | # before this can be enabled. |
12270 | hardcode_into_libs=yes |
12271 | |
12272 | # find out which ABI we are using |
12273 | libsuff= |
12274 | case "$host_cpu" in |
12275 | x86_64*|s390x*|powerpc64*) |
12276 | echo '#line 12276 "configure"' > conftest.$ac_ext |
12277 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12278 | (eval $ac_compile) 2>&5 |
12279 | ac_status=$? |
12280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12281 | (exit $ac_status); }; then |
12282 | case `/usr/bin/file conftest.$ac_objext` in |
12283 | *64-bit*) |
12284 | libsuff=64 |
12285 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
12286 | ;; |
12287 | esac |
12288 | fi |
12289 | rm -rf conftest* |
12290 | ;; |
12291 | esac |
12292 | |
12293 | # Append ld.so.conf contents to the search path |
12294 | if test -f /etc/ld.so.conf; then |
12295 | 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' ' '` |
12296 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
12297 | fi |
12298 | |
12299 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
12300 | # powerpc, because MkLinux only supported shared libraries with the |
12301 | # GNU dynamic linker. Since this was broken with cross compilers, |
12302 | # most powerpc-linux boxes support dynamic linking these days and |
12303 | # people can always --disable-shared, the test was removed, and we |
12304 | # assume the GNU/Linux dynamic linker is in use. |
12305 | dynamic_linker='GNU/Linux ld.so' |
12306 | ;; |
12307 | |
12308 | knetbsd*-gnu) |
12309 | version_type=linux |
12310 | need_lib_prefix=no |
12311 | need_version=no |
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 | shlibpath_var=LD_LIBRARY_PATH |
12315 | shlibpath_overrides_runpath=no |
12316 | hardcode_into_libs=yes |
12317 | dynamic_linker='GNU ld.so' |
12318 | ;; |
12319 | |
12320 | netbsd*) |
12321 | version_type=sunos |
12322 | need_lib_prefix=no |
12323 | need_version=no |
12324 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
12325 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12326 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
12327 | dynamic_linker='NetBSD (a.out) ld.so' |
12328 | else |
12329 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12330 | soname_spec='${libname}${release}${shared_ext}$major' |
12331 | dynamic_linker='NetBSD ld.elf_so' |
12332 | fi |
12333 | shlibpath_var=LD_LIBRARY_PATH |
12334 | shlibpath_overrides_runpath=yes |
12335 | hardcode_into_libs=yes |
12336 | ;; |
12337 | |
12338 | newsos6) |
12339 | version_type=linux |
12340 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12341 | shlibpath_var=LD_LIBRARY_PATH |
12342 | shlibpath_overrides_runpath=yes |
12343 | ;; |
12344 | |
12345 | nto-qnx*) |
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 | shlibpath_var=LD_LIBRARY_PATH |
12352 | shlibpath_overrides_runpath=yes |
12353 | ;; |
12354 | |
12355 | openbsd*) |
12356 | version_type=sunos |
12357 | sys_lib_dlsearch_path_spec="/usr/lib" |
12358 | need_lib_prefix=no |
12359 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
12360 | case $host_os in |
12361 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
12362 | *) need_version=no ;; |
12363 | esac |
12364 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12365 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
12366 | shlibpath_var=LD_LIBRARY_PATH |
12367 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
12368 | case $host_os in |
12369 | openbsd2.[89] | openbsd2.[89].*) |
12370 | shlibpath_overrides_runpath=no |
12371 | ;; |
12372 | *) |
12373 | shlibpath_overrides_runpath=yes |
12374 | ;; |
12375 | esac |
12376 | else |
12377 | shlibpath_overrides_runpath=yes |
12378 | fi |
12379 | ;; |
12380 | |
12381 | os2*) |
12382 | libname_spec='$name' |
12383 | shrext_cmds=".dll" |
12384 | need_lib_prefix=no |
12385 | library_names_spec='$libname${shared_ext} $libname.a' |
12386 | dynamic_linker='OS/2 ld.exe' |
12387 | shlibpath_var=LIBPATH |
12388 | ;; |
12389 | |
12390 | osf3* | osf4* | osf5*) |
12391 | version_type=osf |
12392 | need_lib_prefix=no |
12393 | need_version=no |
12394 | soname_spec='${libname}${release}${shared_ext}$major' |
12395 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12396 | shlibpath_var=LD_LIBRARY_PATH |
12397 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
12398 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
12399 | ;; |
12400 | |
12401 | solaris*) |
12402 | version_type=linux |
12403 | need_lib_prefix=no |
12404 | need_version=no |
12405 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12406 | soname_spec='${libname}${release}${shared_ext}$major' |
12407 | shlibpath_var=LD_LIBRARY_PATH |
12408 | shlibpath_overrides_runpath=yes |
12409 | hardcode_into_libs=yes |
12410 | # ldd complains unless libraries are executable |
12411 | postinstall_cmds='chmod +x $lib' |
12412 | ;; |
12413 | |
12414 | sunos4*) |
12415 | version_type=sunos |
12416 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12417 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
12418 | shlibpath_var=LD_LIBRARY_PATH |
12419 | shlibpath_overrides_runpath=yes |
12420 | if test "$with_gnu_ld" = yes; then |
12421 | need_lib_prefix=no |
12422 | fi |
12423 | need_version=yes |
12424 | ;; |
12425 | |
12426 | sysv4 | sysv4.3*) |
12427 | version_type=linux |
12428 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12429 | soname_spec='${libname}${release}${shared_ext}$major' |
12430 | shlibpath_var=LD_LIBRARY_PATH |
12431 | case $host_vendor in |
12432 | sni) |
12433 | shlibpath_overrides_runpath=no |
12434 | need_lib_prefix=no |
12435 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
12436 | runpath_var=LD_RUN_PATH |
12437 | ;; |
12438 | siemens) |
12439 | need_lib_prefix=no |
12440 | ;; |
12441 | motorola) |
12442 | need_lib_prefix=no |
12443 | need_version=no |
12444 | shlibpath_overrides_runpath=no |
12445 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
12446 | ;; |
12447 | esac |
12448 | ;; |
12449 | |
12450 | sysv4*MP*) |
12451 | if test -d /usr/nec ;then |
12452 | version_type=linux |
12453 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
12454 | soname_spec='$libname${shared_ext}.$major' |
12455 | shlibpath_var=LD_LIBRARY_PATH |
12456 | fi |
12457 | ;; |
12458 | |
12459 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
12460 | version_type=freebsd-elf |
12461 | need_lib_prefix=no |
12462 | need_version=no |
12463 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
12464 | soname_spec='${libname}${release}${shared_ext}$major' |
12465 | shlibpath_var=LD_LIBRARY_PATH |
12466 | hardcode_into_libs=yes |
12467 | if test "$with_gnu_ld" = yes; then |
12468 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
12469 | shlibpath_overrides_runpath=no |
12470 | else |
12471 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
12472 | shlibpath_overrides_runpath=yes |
12473 | case $host_os in |
12474 | sco3.2v5*) |
12475 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
12476 | ;; |
12477 | esac |
12478 | fi |
12479 | sys_lib_dlsearch_path_spec='/usr/lib' |
12480 | ;; |
12481 | |
12482 | uts4*) |
12483 | version_type=linux |
12484 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12485 | soname_spec='${libname}${release}${shared_ext}$major' |
12486 | shlibpath_var=LD_LIBRARY_PATH |
12487 | ;; |
12488 | |
12489 | *) |
12490 | dynamic_linker=no |
12491 | ;; |
12492 | esac |
12493 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
12494 | echo "${ECHO_T}$dynamic_linker" >&6 |
12495 | test "$dynamic_linker" = no && can_build_shared=no |
12496 | |
12497 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
12498 | if test "$GCC" = yes; then |
12499 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
12500 | fi |
12501 | |
12502 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
12503 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
12504 | hardcode_action_CXX= |
12505 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
12506 | test -n "$runpath_var_CXX" || \ |
12507 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
12508 | |
12509 | # We can hardcode non-existant directories. |
12510 | if test "$hardcode_direct_CXX" != no && |
12511 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
12512 | # have to relink, otherwise we might link with an installed library |
12513 | # when we should be linking with a yet-to-be-installed one |
12514 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
12515 | test "$hardcode_minus_L_CXX" != no; then |
12516 | # Linking always hardcodes the temporary library directory. |
12517 | hardcode_action_CXX=relink |
12518 | else |
12519 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
12520 | hardcode_action_CXX=immediate |
12521 | fi |
12522 | else |
12523 | # We cannot hardcode anything, or else we can only hardcode existing |
12524 | # directories. |
12525 | hardcode_action_CXX=unsupported |
12526 | fi |
12527 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
12528 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
12529 | |
12530 | if test "$hardcode_action_CXX" = relink; then |
12531 | # Fast installation is not supported |
12532 | enable_fast_install=no |
12533 | elif test "$shlibpath_overrides_runpath" = yes || |
12534 | test "$enable_shared" = no; then |
12535 | # Fast installation is not necessary |
12536 | enable_fast_install=needless |
12537 | fi |
12538 | |
12539 | |
12540 | # The else clause should only fire when bootstrapping the |
12541 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
12542 | # with your package, and you will get complaints that there are |
12543 | # no rules to generate ltmain.sh. |
12544 | if test -f "$ltmain"; then |
12545 | # See if we are running on zsh, and set the options which allow our commands through |
12546 | # without removal of \ escapes. |
12547 | if test -n "${ZSH_VERSION+set}" ; then |
12548 | setopt NO_GLOB_SUBST |
12549 | fi |
12550 | # Now quote all the things that may contain metacharacters while being |
12551 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
12552 | # variables and quote the copies for generation of the libtool script. |
12553 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
12554 | SED SHELL STRIP \ |
12555 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
12556 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
12557 | deplibs_check_method reload_flag reload_cmds need_locks \ |
12558 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
12559 | lt_cv_sys_global_symbol_to_c_name_address \ |
12560 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
12561 | old_postinstall_cmds old_postuninstall_cmds \ |
12562 | compiler_CXX \ |
12563 | CC_CXX \ |
12564 | LD_CXX \ |
12565 | lt_prog_compiler_wl_CXX \ |
12566 | lt_prog_compiler_pic_CXX \ |
12567 | lt_prog_compiler_static_CXX \ |
12568 | lt_prog_compiler_no_builtin_flag_CXX \ |
12569 | export_dynamic_flag_spec_CXX \ |
12570 | thread_safe_flag_spec_CXX \ |
12571 | whole_archive_flag_spec_CXX \ |
12572 | enable_shared_with_static_runtimes_CXX \ |
12573 | old_archive_cmds_CXX \ |
12574 | old_archive_from_new_cmds_CXX \ |
12575 | predep_objects_CXX \ |
12576 | postdep_objects_CXX \ |
12577 | predeps_CXX \ |
12578 | postdeps_CXX \ |
12579 | compiler_lib_search_path_CXX \ |
12580 | archive_cmds_CXX \ |
12581 | archive_expsym_cmds_CXX \ |
12582 | postinstall_cmds_CXX \ |
12583 | postuninstall_cmds_CXX \ |
12584 | old_archive_from_expsyms_cmds_CXX \ |
12585 | allow_undefined_flag_CXX \ |
12586 | no_undefined_flag_CXX \ |
12587 | export_symbols_cmds_CXX \ |
12588 | hardcode_libdir_flag_spec_CXX \ |
12589 | hardcode_libdir_flag_spec_ld_CXX \ |
12590 | hardcode_libdir_separator_CXX \ |
12591 | hardcode_automatic_CXX \ |
12592 | module_cmds_CXX \ |
12593 | module_expsym_cmds_CXX \ |
12594 | lt_cv_prog_compiler_c_o_CXX \ |
12595 | exclude_expsyms_CXX \ |
12596 | include_expsyms_CXX; do |
12597 | |
12598 | case $var in |
12599 | old_archive_cmds_CXX | \ |
12600 | old_archive_from_new_cmds_CXX | \ |
12601 | archive_cmds_CXX | \ |
12602 | archive_expsym_cmds_CXX | \ |
12603 | module_cmds_CXX | \ |
12604 | module_expsym_cmds_CXX | \ |
12605 | old_archive_from_expsyms_cmds_CXX | \ |
12606 | export_symbols_cmds_CXX | \ |
12607 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
12608 | postinstall_cmds | postuninstall_cmds | \ |
12609 | old_postinstall_cmds | old_postuninstall_cmds | \ |
12610 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
12611 | # Double-quote double-evaled strings. |
12612 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
12613 | ;; |
12614 | *) |
12615 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
12616 | ;; |
12617 | esac |
12618 | done |
12619 | |
12620 | case $lt_echo in |
12621 | *'\$0 --fallback-echo"') |
12622 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
12623 | ;; |
12624 | esac |
12625 | |
12626 | cfgfile="$ofile" |
12627 | |
12628 | cat <<__EOF__ >> "$cfgfile" |
12629 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
12630 | |
12631 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
12632 | |
12633 | # Shell to use when invoking shell scripts. |
12634 | SHELL=$lt_SHELL |
12635 | |
12636 | # Whether or not to build shared libraries. |
12637 | build_libtool_libs=$enable_shared |
12638 | |
12639 | # Whether or not to build static libraries. |
12640 | build_old_libs=$enable_static |
12641 | |
12642 | # Whether or not to add -lc for building shared libraries. |
12643 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
12644 | |
12645 | # Whether or not to disallow shared libs when runtime libs are static |
12646 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
12647 | |
12648 | # Whether or not to optimize for fast installation. |
12649 | fast_install=$enable_fast_install |
12650 | |
12651 | # The host system. |
12652 | host_alias=$host_alias |
12653 | host=$host |
12654 | host_os=$host_os |
12655 | |
12656 | # The build system. |
12657 | build_alias=$build_alias |
12658 | build=$build |
12659 | build_os=$build_os |
12660 | |
12661 | # An echo program that does not interpret backslashes. |
12662 | echo=$lt_echo |
12663 | |
12664 | # The archiver. |
12665 | AR=$lt_AR |
12666 | AR_FLAGS=$lt_AR_FLAGS |
12667 | |
12668 | # A C compiler. |
12669 | LTCC=$lt_LTCC |
12670 | |
12671 | # LTCC compiler flags. |
12672 | LTCFLAGS=$lt_LTCFLAGS |
12673 | |
12674 | # A language-specific compiler. |
12675 | CC=$lt_compiler_CXX |
12676 | |
12677 | # Is the compiler the GNU C compiler? |
12678 | with_gcc=$GCC_CXX |
12679 | |
12680 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
12681 | gcc_ver=\`gcc -dumpversion\` |
12682 | |
12683 | # An ERE matcher. |
12684 | EGREP=$lt_EGREP |
12685 | |
12686 | # The linker used to build libraries. |
12687 | LD=$lt_LD_CXX |
12688 | |
12689 | # Whether we need hard or soft links. |
12690 | LN_S=$lt_LN_S |
12691 | |
12692 | # A BSD-compatible nm program. |
12693 | NM=$lt_NM |
12694 | |
12695 | # A symbol stripping program |
12696 | STRIP=$lt_STRIP |
12697 | |
12698 | # Used to examine libraries when file_magic_cmd begins "file" |
12699 | MAGIC_CMD=$MAGIC_CMD |
12700 | |
12701 | # Used on cygwin: DLL creation program. |
12702 | DLLTOOL="$DLLTOOL" |
12703 | |
12704 | # Used on cygwin: object dumper. |
12705 | OBJDUMP="$OBJDUMP" |
12706 | |
12707 | # Used on cygwin: assembler. |
12708 | AS="$AS" |
12709 | |
12710 | # The name of the directory that contains temporary libtool files. |
12711 | objdir=$objdir |
12712 | |
12713 | # How to create reloadable object files. |
12714 | reload_flag=$lt_reload_flag |
12715 | reload_cmds=$lt_reload_cmds |
12716 | |
12717 | # How to pass a linker flag through the compiler. |
12718 | wl=$lt_lt_prog_compiler_wl_CXX |
12719 | |
12720 | # Object file suffix (normally "o"). |
12721 | objext="$ac_objext" |
12722 | |
12723 | # Old archive suffix (normally "a"). |
12724 | libext="$libext" |
12725 | |
12726 | # Shared library suffix (normally ".so"). |
12727 | shrext_cmds='$shrext_cmds' |
12728 | |
12729 | # Executable file suffix (normally ""). |
12730 | exeext="$exeext" |
12731 | |
12732 | # Additional compiler flags for building library objects. |
12733 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
12734 | pic_mode=$pic_mode |
12735 | |
12736 | # What is the maximum length of a command? |
12737 | max_cmd_len=$lt_cv_sys_max_cmd_len |
12738 | |
12739 | # Does compiler simultaneously support -c and -o options? |
12740 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
12741 | |
12742 | # Must we lock files when doing compilation? |
12743 | need_locks=$lt_need_locks |
12744 | |
12745 | # Do we need the lib prefix for modules? |
12746 | need_lib_prefix=$need_lib_prefix |
12747 | |
12748 | # Do we need a version for libraries? |
12749 | need_version=$need_version |
12750 | |
12751 | # Whether dlopen is supported. |
12752 | dlopen_support=$enable_dlopen |
12753 | |
12754 | # Whether dlopen of programs is supported. |
12755 | dlopen_self=$enable_dlopen_self |
12756 | |
12757 | # Whether dlopen of statically linked programs is supported. |
12758 | dlopen_self_static=$enable_dlopen_self_static |
12759 | |
12760 | # Compiler flag to prevent dynamic linking. |
12761 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
12762 | |
12763 | # Compiler flag to turn off builtin functions. |
12764 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
12765 | |
12766 | # Compiler flag to allow reflexive dlopens. |
12767 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
12768 | |
12769 | # Compiler flag to generate shared objects directly from archives. |
12770 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
12771 | |
12772 | # Compiler flag to generate thread-safe objects. |
12773 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
12774 | |
12775 | # Library versioning type. |
12776 | version_type=$version_type |
12777 | |
12778 | # Format of library name prefix. |
12779 | libname_spec=$lt_libname_spec |
12780 | |
12781 | # List of archive names. First name is the real one, the rest are links. |
12782 | # The last name is the one that the linker finds with -lNAME. |
12783 | library_names_spec=$lt_library_names_spec |
12784 | |
12785 | # The coded name of the library, if different from the real name. |
12786 | soname_spec=$lt_soname_spec |
12787 | |
12788 | # Commands used to build and install an old-style archive. |
12789 | RANLIB=$lt_RANLIB |
12790 | old_archive_cmds=$lt_old_archive_cmds_CXX |
12791 | old_postinstall_cmds=$lt_old_postinstall_cmds |
12792 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
12793 | |
12794 | # Create an old-style archive from a shared archive. |
12795 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
12796 | |
12797 | # Create a temporary old-style archive to link instead of a shared archive. |
12798 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
12799 | |
12800 | # Commands used to build and install a shared archive. |
12801 | archive_cmds=$lt_archive_cmds_CXX |
12802 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
12803 | postinstall_cmds=$lt_postinstall_cmds |
12804 | postuninstall_cmds=$lt_postuninstall_cmds |
12805 | |
12806 | # Commands used to build a loadable module (assumed same as above if empty) |
12807 | module_cmds=$lt_module_cmds_CXX |
12808 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
12809 | |
12810 | # Commands to strip libraries. |
12811 | old_striplib=$lt_old_striplib |
12812 | striplib=$lt_striplib |
12813 | |
12814 | # Dependencies to place before the objects being linked to create a |
12815 | # shared library. |
12816 | predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
12817 | |
12818 | # Dependencies to place after the objects being linked to create a |
12819 | # shared library. |
12820 | postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
12821 | |
12822 | # Dependencies to place before the objects being linked to create a |
12823 | # shared library. |
12824 | predeps=$lt_predeps_CXX |
12825 | |
12826 | # Dependencies to place after the objects being linked to create a |
12827 | # shared library. |
12828 | postdeps=$lt_postdeps_CXX |
12829 | |
12830 | # The library search path used internally by the compiler when linking |
12831 | # a shared library. |
12832 | 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"\` |
12833 | |
12834 | # Method to check whether dependent libraries are shared objects. |
12835 | deplibs_check_method=$lt_deplibs_check_method |
12836 | |
12837 | # Command to use when deplibs_check_method == file_magic. |
12838 | file_magic_cmd=$lt_file_magic_cmd |
12839 | |
12840 | # Flag that allows shared libraries with undefined symbols to be built. |
12841 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
12842 | |
12843 | # Flag that forces no undefined symbols. |
12844 | no_undefined_flag=$lt_no_undefined_flag_CXX |
12845 | |
12846 | # Commands used to finish a libtool library installation in a directory. |
12847 | finish_cmds=$lt_finish_cmds |
12848 | |
12849 | # Same as above, but a single script fragment to be evaled but not shown. |
12850 | finish_eval=$lt_finish_eval |
12851 | |
12852 | # Take the output of nm and produce a listing of raw symbols and C names. |
12853 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
12854 | |
12855 | # Transform the output of nm in a proper C declaration |
12856 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
12857 | |
12858 | # Transform the output of nm in a C name address pair |
12859 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
12860 | |
12861 | # This is the shared library runtime path variable. |
12862 | runpath_var=$runpath_var |
12863 | |
12864 | # This is the shared library path variable. |
12865 | shlibpath_var=$shlibpath_var |
12866 | |
12867 | # Is shlibpath searched before the hard-coded library search path? |
12868 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
12869 | |
12870 | # How to hardcode a shared library path into an executable. |
12871 | hardcode_action=$hardcode_action_CXX |
12872 | |
12873 | # Whether we should hardcode library paths into libraries. |
12874 | hardcode_into_libs=$hardcode_into_libs |
12875 | |
12876 | # Flag to hardcode \$libdir into a binary during linking. |
12877 | # This must work even if \$libdir does not exist. |
12878 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
12879 | |
12880 | # If ld is used when linking, flag to hardcode \$libdir into |
12881 | # a binary during linking. This must work even if \$libdir does |
12882 | # not exist. |
12883 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
12884 | |
12885 | # Whether we need a single -rpath flag with a separated argument. |
12886 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
12887 | |
12888 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
12889 | # resulting binary. |
12890 | hardcode_direct=$hardcode_direct_CXX |
12891 | |
12892 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
12893 | # resulting binary. |
12894 | hardcode_minus_L=$hardcode_minus_L_CXX |
12895 | |
12896 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
12897 | # the resulting binary. |
12898 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
12899 | |
12900 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
12901 | # and all subsequent libraries and executables linked against it. |
12902 | hardcode_automatic=$hardcode_automatic_CXX |
12903 | |
12904 | # Variables whose values should be saved in libtool wrapper scripts and |
12905 | # restored at relink time. |
12906 | variables_saved_for_relink="$variables_saved_for_relink" |
12907 | |
12908 | # Whether libtool must link a program against all its dependency libraries. |
12909 | link_all_deplibs=$link_all_deplibs_CXX |
12910 | |
12911 | # Compile-time system search path for libraries |
12912 | 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"\` |
12913 | |
12914 | # Run-time system search path for libraries |
12915 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
12916 | |
12917 | # Fix the shell variable \$srcfile for the compiler. |
12918 | fix_srcfile_path="$fix_srcfile_path_CXX" |
12919 | |
12920 | # Set to yes if exported symbols are required. |
12921 | always_export_symbols=$always_export_symbols_CXX |
12922 | |
12923 | # The commands to list exported symbols. |
12924 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
12925 | |
12926 | # The commands to extract the exported symbol list from a shared archive. |
12927 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
12928 | |
12929 | # Symbols that should not be listed in the preloaded symbols. |
12930 | exclude_expsyms=$lt_exclude_expsyms_CXX |
12931 | |
12932 | # Symbols that must always be exported. |
12933 | include_expsyms=$lt_include_expsyms_CXX |
12934 | |
12935 | # ### END LIBTOOL TAG CONFIG: $tagname |
12936 | |
12937 | __EOF__ |
12938 | |
12939 | |
12940 | else |
12941 | # If there is no Makefile yet, we rely on a make rule to execute |
12942 | # `config.status --recheck' to rerun these tests and create the |
12943 | # libtool script then. |
12944 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
12945 | if test -f "$ltmain_in"; then |
12946 | test -f Makefile && make "$ltmain" |
12947 | fi |
12948 | fi |
12949 | |
12950 | |
12951 | ac_ext=c |
12952 | ac_cpp='$CPP $CPPFLAGS' |
12953 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
12954 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12955 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
12956 | |
12957 | CC=$lt_save_CC |
12958 | LDCXX=$LD |
12959 | LD=$lt_save_LD |
12960 | GCC=$lt_save_GCC |
12961 | with_gnu_ldcxx=$with_gnu_ld |
12962 | with_gnu_ld=$lt_save_with_gnu_ld |
12963 | lt_cv_path_LDCXX=$lt_cv_path_LD |
12964 | lt_cv_path_LD=$lt_save_path_LD |
12965 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
12966 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
12967 | |
12968 | else |
12969 | tagname="" |
12970 | fi |
12971 | ;; |
12972 | |
12973 | F77) |
12974 | if test -n "$F77" && test "X$F77" != "Xno"; then |
12975 | |
12976 | ac_ext=f |
12977 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
12978 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12979 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
12980 | |
12981 | |
12982 | archive_cmds_need_lc_F77=no |
12983 | allow_undefined_flag_F77= |
12984 | always_export_symbols_F77=no |
12985 | archive_expsym_cmds_F77= |
12986 | export_dynamic_flag_spec_F77= |
12987 | hardcode_direct_F77=no |
12988 | hardcode_libdir_flag_spec_F77= |
12989 | hardcode_libdir_flag_spec_ld_F77= |
12990 | hardcode_libdir_separator_F77= |
12991 | hardcode_minus_L_F77=no |
12992 | hardcode_automatic_F77=no |
12993 | module_cmds_F77= |
12994 | module_expsym_cmds_F77= |
12995 | link_all_deplibs_F77=unknown |
12996 | old_archive_cmds_F77=$old_archive_cmds |
12997 | no_undefined_flag_F77= |
12998 | whole_archive_flag_spec_F77= |
12999 | enable_shared_with_static_runtimes_F77=no |
13000 | |
13001 | # Source file extension for f77 test sources. |
13002 | ac_ext=f |
13003 | |
13004 | # Object file extension for compiled f77 test sources. |
13005 | objext=o |
13006 | objext_F77=$objext |
13007 | |
13008 | # Code to be used in simple compile tests |
13009 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
13010 | |
13011 | # Code to be used in simple link tests |
13012 | lt_simple_link_test_code=" program t\n end\n" |
13013 | |
13014 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
13015 | |
13016 | # If no C compiler was specified, use CC. |
13017 | LTCC=${LTCC-"$CC"} |
13018 | |
13019 | # If no C compiler flags were specified, use CFLAGS. |
13020 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
13021 | |
13022 | # Allow CC to be a program name with arguments. |
13023 | compiler=$CC |
13024 | |
13025 | |
13026 | # save warnings/boilerplate of simple test code |
13027 | ac_outfile=conftest.$ac_objext |
13028 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
13029 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13030 | _lt_compiler_boilerplate=`cat conftest.err` |
13031 | $rm conftest* |
13032 | |
13033 | ac_outfile=conftest.$ac_objext |
13034 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
13035 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13036 | _lt_linker_boilerplate=`cat conftest.err` |
13037 | $rm conftest* |
13038 | |
13039 | |
13040 | # Allow CC to be a program name with arguments. |
13041 | lt_save_CC="$CC" |
13042 | CC=${F77-"f77"} |
13043 | compiler=$CC |
13044 | compiler_F77=$CC |
13045 | for cc_temp in $compiler""; do |
13046 | case $cc_temp in |
13047 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
13048 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
13049 | \-*) ;; |
13050 | *) break;; |
13051 | esac |
13052 | done |
13053 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
13054 | |
13055 | |
13056 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
13057 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
13058 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
13059 | echo "${ECHO_T}$can_build_shared" >&6 |
13060 | |
13061 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
13062 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
13063 | test "$can_build_shared" = "no" && enable_shared=no |
13064 | |
13065 | # On AIX, shared libraries and static libraries use the same namespace, and |
13066 | # are all built from PIC. |
13067 | case $host_os in |
13068 | aix3*) |
13069 | test "$enable_shared" = yes && enable_static=no |
13070 | if test -n "$RANLIB"; then |
13071 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
13072 | postinstall_cmds='$RANLIB $lib' |
13073 | fi |
13074 | ;; |
13075 | aix4* | aix5*) |
13076 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13077 | test "$enable_shared" = yes && enable_static=no |
13078 | fi |
13079 | ;; |
13080 | esac |
13081 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
13082 | echo "${ECHO_T}$enable_shared" >&6 |
13083 | |
13084 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
13085 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
13086 | # Make sure either enable_shared or enable_static is yes. |
13087 | test "$enable_shared" = yes || enable_static=yes |
13088 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
13089 | echo "${ECHO_T}$enable_static" >&6 |
13090 | |
13091 | GCC_F77="$G77" |
13092 | LD_F77="$LD" |
13093 | |
13094 | lt_prog_compiler_wl_F77= |
13095 | lt_prog_compiler_pic_F77= |
13096 | lt_prog_compiler_static_F77= |
13097 | |
13098 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
13099 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
13100 | |
13101 | if test "$GCC" = yes; then |
13102 | lt_prog_compiler_wl_F77='-Wl,' |
13103 | lt_prog_compiler_static_F77='-static' |
13104 | |
13105 | case $host_os in |
13106 | aix*) |
13107 | # All AIX code is PIC. |
13108 | if test "$host_cpu" = ia64; then |
13109 | # AIX 5 now supports IA64 processor |
13110 | lt_prog_compiler_static_F77='-Bstatic' |
13111 | fi |
13112 | ;; |
13113 | |
13114 | amigaos*) |
13115 | # FIXME: we need at least 68020 code to build shared libraries, but |
13116 | # adding the `-m68020' flag to GCC prevents building anything better, |
13117 | # like `-m68040'. |
13118 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
13119 | ;; |
13120 | |
13121 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
13122 | # PIC is the default for these OSes. |
13123 | ;; |
13124 | |
13125 | mingw* | pw32* | os2*) |
13126 | # This hack is so that the source file can tell whether it is being |
13127 | # built for inclusion in a dll (and should export symbols for example). |
13128 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13129 | ;; |
13130 | |
13131 | darwin* | rhapsody*) |
13132 | # PIC is the default on this platform |
13133 | # Common symbols not allowed in MH_DYLIB files |
13134 | lt_prog_compiler_pic_F77='-fno-common' |
13135 | ;; |
13136 | |
13137 | interix3*) |
13138 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
13139 | # Instead, we relocate shared libraries at runtime. |
13140 | ;; |
13141 | |
13142 | msdosdjgpp*) |
13143 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
13144 | # on systems that don't support them. |
13145 | lt_prog_compiler_can_build_shared_F77=no |
13146 | enable_shared=no |
13147 | ;; |
13148 | |
13149 | sysv4*MP*) |
13150 | if test -d /usr/nec; then |
13151 | lt_prog_compiler_pic_F77=-Kconform_pic |
13152 | fi |
13153 | ;; |
13154 | |
13155 | hpux*) |
13156 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13157 | # not for PA HP-UX. |
13158 | case $host_cpu in |
13159 | hppa*64*|ia64*) |
13160 | # +Z the default |
13161 | ;; |
13162 | *) |
13163 | lt_prog_compiler_pic_F77='-fPIC' |
13164 | ;; |
13165 | esac |
13166 | ;; |
13167 | |
13168 | *) |
13169 | lt_prog_compiler_pic_F77='-fPIC' |
13170 | ;; |
13171 | esac |
13172 | else |
13173 | # PORTME Check for flag to pass linker flags through the system compiler. |
13174 | case $host_os in |
13175 | aix*) |
13176 | lt_prog_compiler_wl_F77='-Wl,' |
13177 | if test "$host_cpu" = ia64; then |
13178 | # AIX 5 now supports IA64 processor |
13179 | lt_prog_compiler_static_F77='-Bstatic' |
13180 | else |
13181 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
13182 | fi |
13183 | ;; |
13184 | darwin*) |
13185 | # PIC is the default on this platform |
13186 | # Common symbols not allowed in MH_DYLIB files |
13187 | case $cc_basename in |
13188 | xlc*) |
13189 | lt_prog_compiler_pic_F77='-qnocommon' |
13190 | lt_prog_compiler_wl_F77='-Wl,' |
13191 | ;; |
13192 | esac |
13193 | ;; |
13194 | |
13195 | mingw* | pw32* | os2*) |
13196 | # This hack is so that the source file can tell whether it is being |
13197 | # built for inclusion in a dll (and should export symbols for example). |
13198 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13199 | ;; |
13200 | |
13201 | hpux9* | hpux10* | hpux11*) |
13202 | lt_prog_compiler_wl_F77='-Wl,' |
13203 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13204 | # not for PA HP-UX. |
13205 | case $host_cpu in |
13206 | hppa*64*|ia64*) |
13207 | # +Z the default |
13208 | ;; |
13209 | *) |
13210 | lt_prog_compiler_pic_F77='+Z' |
13211 | ;; |
13212 | esac |
13213 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
13214 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
13215 | ;; |
13216 | |
13217 | irix5* | irix6* | nonstopux*) |
13218 | lt_prog_compiler_wl_F77='-Wl,' |
13219 | # PIC (with -KPIC) is the default. |
13220 | lt_prog_compiler_static_F77='-non_shared' |
13221 | ;; |
13222 | |
13223 | newsos6) |
13224 | lt_prog_compiler_pic_F77='-KPIC' |
13225 | lt_prog_compiler_static_F77='-Bstatic' |
13226 | ;; |
13227 | |
13228 | linux*) |
13229 | case $cc_basename in |
13230 | icc* | ecc*) |
13231 | lt_prog_compiler_wl_F77='-Wl,' |
13232 | lt_prog_compiler_pic_F77='-KPIC' |
13233 | lt_prog_compiler_static_F77='-static' |
13234 | ;; |
13235 | pgcc* | pgf77* | pgf90* | pgf95*) |
13236 | # Portland Group compilers (*not* the Pentium gcc compiler, |
13237 | # which looks to be a dead project) |
13238 | lt_prog_compiler_wl_F77='-Wl,' |
13239 | lt_prog_compiler_pic_F77='-fpic' |
13240 | lt_prog_compiler_static_F77='-Bstatic' |
13241 | ;; |
13242 | ccc*) |
13243 | lt_prog_compiler_wl_F77='-Wl,' |
13244 | # All Alpha code is PIC. |
13245 | lt_prog_compiler_static_F77='-non_shared' |
13246 | ;; |
13247 | esac |
13248 | ;; |
13249 | |
13250 | osf3* | osf4* | osf5*) |
13251 | lt_prog_compiler_wl_F77='-Wl,' |
13252 | # All OSF/1 code is PIC. |
13253 | lt_prog_compiler_static_F77='-non_shared' |
13254 | ;; |
13255 | |
13256 | solaris*) |
13257 | lt_prog_compiler_pic_F77='-KPIC' |
13258 | lt_prog_compiler_static_F77='-Bstatic' |
13259 | case $cc_basename in |
13260 | f77* | f90* | f95*) |
13261 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
13262 | *) |
13263 | lt_prog_compiler_wl_F77='-Wl,';; |
13264 | esac |
13265 | ;; |
13266 | |
13267 | sunos4*) |
13268 | lt_prog_compiler_wl_F77='-Qoption ld ' |
13269 | lt_prog_compiler_pic_F77='-PIC' |
13270 | lt_prog_compiler_static_F77='-Bstatic' |
13271 | ;; |
13272 | |
13273 | sysv4 | sysv4.2uw2* | sysv4.3*) |
13274 | lt_prog_compiler_wl_F77='-Wl,' |
13275 | lt_prog_compiler_pic_F77='-KPIC' |
13276 | lt_prog_compiler_static_F77='-Bstatic' |
13277 | ;; |
13278 | |
13279 | sysv4*MP*) |
13280 | if test -d /usr/nec ;then |
13281 | lt_prog_compiler_pic_F77='-Kconform_pic' |
13282 | lt_prog_compiler_static_F77='-Bstatic' |
13283 | fi |
13284 | ;; |
13285 | |
13286 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
13287 | lt_prog_compiler_wl_F77='-Wl,' |
13288 | lt_prog_compiler_pic_F77='-KPIC' |
13289 | lt_prog_compiler_static_F77='-Bstatic' |
13290 | ;; |
13291 | |
13292 | unicos*) |
13293 | lt_prog_compiler_wl_F77='-Wl,' |
13294 | lt_prog_compiler_can_build_shared_F77=no |
13295 | ;; |
13296 | |
13297 | uts4*) |
13298 | lt_prog_compiler_pic_F77='-pic' |
13299 | lt_prog_compiler_static_F77='-Bstatic' |
13300 | ;; |
13301 | |
13302 | *) |
13303 | lt_prog_compiler_can_build_shared_F77=no |
13304 | ;; |
13305 | esac |
13306 | fi |
13307 | |
13308 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
13309 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
13310 | |
13311 | # |
13312 | # Check to make sure the PIC flag actually works. |
13313 | # |
13314 | if test -n "$lt_prog_compiler_pic_F77"; then |
13315 | |
13316 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
13317 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
13318 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
13319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13320 | else |
13321 | lt_prog_compiler_pic_works_F77=no |
13322 | ac_outfile=conftest.$ac_objext |
13323 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
13324 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
13325 | # Insert the option either (1) after the last *FLAGS variable, or |
13326 | # (2) before a word containing "conftest.", or (3) at the end. |
13327 | # Note that $ac_compile itself does not contain backslashes and begins |
13328 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
13329 | # The option is referenced via a variable to avoid confusing sed. |
13330 | lt_compile=`echo "$ac_compile" | $SED \ |
13331 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
13332 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
13333 | -e 's:$: $lt_compiler_flag:'` |
13334 | (eval echo "\"\$as_me:13334: $lt_compile\"" >&5) |
13335 | (eval "$lt_compile" 2>conftest.err) |
13336 | ac_status=$? |
13337 | cat conftest.err >&5 |
13338 | echo "$as_me:13338: \$? = $ac_status" >&5 |
13339 | if (exit $ac_status) && test -s "$ac_outfile"; then |
13340 | # The compiler can only warn and ignore the option if not recognized |
13341 | # So say no if there are warnings other than the usual output. |
13342 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
13343 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
13344 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
13345 | lt_prog_compiler_pic_works_F77=yes |
13346 | fi |
13347 | fi |
13348 | $rm conftest* |
13349 | |
13350 | fi |
13351 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
13352 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
13353 | |
13354 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
13355 | case $lt_prog_compiler_pic_F77 in |
13356 | "" | " "*) ;; |
13357 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
13358 | esac |
13359 | else |
13360 | lt_prog_compiler_pic_F77= |
13361 | lt_prog_compiler_can_build_shared_F77=no |
13362 | fi |
13363 | |
13364 | fi |
13365 | case $host_os in |
13366 | # For platforms which do not support PIC, -DPIC is meaningless: |
13367 | *djgpp*) |
13368 | lt_prog_compiler_pic_F77= |
13369 | ;; |
13370 | *) |
13371 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
13372 | ;; |
13373 | esac |
13374 | |
13375 | # |
13376 | # Check to make sure the static flag actually works. |
13377 | # |
13378 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
13379 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
13380 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
13381 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
13382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13383 | else |
13384 | lt_prog_compiler_static_works_F77=no |
13385 | save_LDFLAGS="$LDFLAGS" |
13386 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
13387 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
13388 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
13389 | # The linker can only warn and ignore the option if not recognized |
13390 | # So say no if there are warnings |
13391 | if test -s conftest.err; then |
13392 | # Append any errors to the config.log. |
13393 | cat conftest.err 1>&5 |
13394 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
13395 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
13396 | if diff conftest.exp conftest.er2 >/dev/null; then |
13397 | lt_prog_compiler_static_works_F77=yes |
13398 | fi |
13399 | else |
13400 | lt_prog_compiler_static_works_F77=yes |
13401 | fi |
13402 | fi |
13403 | $rm conftest* |
13404 | LDFLAGS="$save_LDFLAGS" |
13405 | |
13406 | fi |
13407 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
13408 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 |
13409 | |
13410 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
13411 | : |
13412 | else |
13413 | lt_prog_compiler_static_F77= |
13414 | fi |
13415 | |
13416 | |
13417 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
13418 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
13419 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
13420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13421 | else |
13422 | lt_cv_prog_compiler_c_o_F77=no |
13423 | $rm -r conftest 2>/dev/null |
13424 | mkdir conftest |
13425 | cd conftest |
13426 | mkdir out |
13427 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
13428 | |
13429 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
13430 | # Insert the option either (1) after the last *FLAGS variable, or |
13431 | # (2) before a word containing "conftest.", or (3) at the end. |
13432 | # Note that $ac_compile itself does not contain backslashes and begins |
13433 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
13434 | lt_compile=`echo "$ac_compile" | $SED \ |
13435 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
13436 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
13437 | -e 's:$: $lt_compiler_flag:'` |
13438 | (eval echo "\"\$as_me:13438: $lt_compile\"" >&5) |
13439 | (eval "$lt_compile" 2>out/conftest.err) |
13440 | ac_status=$? |
13441 | cat out/conftest.err >&5 |
13442 | echo "$as_me:13442: \$? = $ac_status" >&5 |
13443 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13444 | then |
13445 | # The compiler can only warn and ignore the option if not recognized |
13446 | # So say no if there are warnings |
13447 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
13448 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
13449 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
13450 | lt_cv_prog_compiler_c_o_F77=yes |
13451 | fi |
13452 | fi |
13453 | chmod u+w . 2>&5 |
13454 | $rm conftest* |
13455 | # SGI C++ compiler will create directory out/ii_files/ for |
13456 | # template instantiation |
13457 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
13458 | $rm out/* && rmdir out |
13459 | cd .. |
13460 | rmdir conftest |
13461 | $rm conftest* |
13462 | |
13463 | fi |
13464 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
13465 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
13466 | |
13467 | |
13468 | hard_links="nottested" |
13469 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
13470 | # do not overwrite the value of need_locks provided by the user |
13471 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
13472 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
13473 | hard_links=yes |
13474 | $rm conftest* |
13475 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
13476 | touch conftest.a |
13477 | ln conftest.a conftest.b 2>&5 || hard_links=no |
13478 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
13479 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
13480 | echo "${ECHO_T}$hard_links" >&6 |
13481 | if test "$hard_links" = no; then |
13482 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
13483 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
13484 | need_locks=warn |
13485 | fi |
13486 | else |
13487 | need_locks=no |
13488 | fi |
13489 | |
13490 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
13491 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
13492 | |
13493 | runpath_var= |
13494 | allow_undefined_flag_F77= |
13495 | enable_shared_with_static_runtimes_F77=no |
13496 | archive_cmds_F77= |
13497 | archive_expsym_cmds_F77= |
13498 | old_archive_From_new_cmds_F77= |
13499 | old_archive_from_expsyms_cmds_F77= |
13500 | export_dynamic_flag_spec_F77= |
13501 | whole_archive_flag_spec_F77= |
13502 | thread_safe_flag_spec_F77= |
13503 | hardcode_libdir_flag_spec_F77= |
13504 | hardcode_libdir_flag_spec_ld_F77= |
13505 | hardcode_libdir_separator_F77= |
13506 | hardcode_direct_F77=no |
13507 | hardcode_minus_L_F77=no |
13508 | hardcode_shlibpath_var_F77=unsupported |
13509 | link_all_deplibs_F77=unknown |
13510 | hardcode_automatic_F77=no |
13511 | module_cmds_F77= |
13512 | module_expsym_cmds_F77= |
13513 | always_export_symbols_F77=no |
13514 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
13515 | # include_expsyms should be a list of space-separated symbols to be *always* |
13516 | # included in the symbol list |
13517 | include_expsyms_F77= |
13518 | # exclude_expsyms can be an extended regexp of symbols to exclude |
13519 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
13520 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
13521 | # as well as any symbol that contains `d'. |
13522 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
13523 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
13524 | # platforms (ab)use it in PIC code, but their linkers get confused if |
13525 | # the symbol is explicitly referenced. Since portable code cannot |
13526 | # rely on this symbol name, it's probably fine to never include it in |
13527 | # preloaded symbol tables. |
13528 | extract_expsyms_cmds= |
13529 | # Just being paranoid about ensuring that cc_basename is set. |
13530 | for cc_temp in $compiler""; do |
13531 | case $cc_temp in |
13532 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
13533 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
13534 | \-*) ;; |
13535 | *) break;; |
13536 | esac |
13537 | done |
13538 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
13539 | |
13540 | case $host_os in |
13541 | cygwin* | mingw* | pw32*) |
13542 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
13543 | # When not using gcc, we currently assume that we are using |
13544 | # Microsoft Visual C++. |
13545 | if test "$GCC" != yes; then |
13546 | with_gnu_ld=no |
13547 | fi |
13548 | ;; |
13549 | interix*) |
13550 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
13551 | with_gnu_ld=yes |
13552 | ;; |
13553 | openbsd*) |
13554 | with_gnu_ld=no |
13555 | ;; |
13556 | esac |
13557 | |
13558 | ld_shlibs_F77=yes |
13559 | if test "$with_gnu_ld" = yes; then |
13560 | # If archive_cmds runs LD, not CC, wlarc should be empty |
13561 | wlarc='${wl}' |
13562 | |
13563 | # Set some defaults for GNU ld with shared library support. These |
13564 | # are reset later if shared libraries are not supported. Putting them |
13565 | # here allows them to be overridden if necessary. |
13566 | runpath_var=LD_RUN_PATH |
13567 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
13568 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
13569 | # ancient GNU ld didn't support --whole-archive et. al. |
13570 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
13571 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
13572 | else |
13573 | whole_archive_flag_spec_F77= |
13574 | fi |
13575 | supports_anon_versioning=no |
13576 | case `$LD -v 2>/dev/null` in |
13577 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
13578 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
13579 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
13580 | *\ 2.11.*) ;; # other 2.11 versions |
13581 | *) supports_anon_versioning=yes ;; |
13582 | esac |
13583 | |
13584 | # See if GNU ld supports shared libraries. |
13585 | case $host_os in |
13586 | aix3* | aix4* | aix5*) |
13587 | # On AIX/PPC, the GNU linker is very broken |
13588 | if test "$host_cpu" != ia64; then |
13589 | ld_shlibs_F77=no |
13590 | cat <<EOF 1>&2 |
13591 | |
13592 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
13593 | *** to be unable to reliably create shared libraries on AIX. |
13594 | *** Therefore, libtool is disabling shared libraries support. If you |
13595 | *** really care for shared libraries, you may want to modify your PATH |
13596 | *** so that a non-GNU linker is found, and then restart. |
13597 | |
13598 | EOF |
13599 | fi |
13600 | ;; |
13601 | |
13602 | amigaos*) |
13603 | 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)' |
13604 | hardcode_libdir_flag_spec_F77='-L$libdir' |
13605 | hardcode_minus_L_F77=yes |
13606 | |
13607 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
13608 | # that the semantics of dynamic libraries on AmigaOS, at least up |
13609 | # to version 4, is to share data among multiple programs linked |
13610 | # with the same dynamic library. Since this doesn't match the |
13611 | # behavior of shared libraries on other platforms, we can't use |
13612 | # them. |
13613 | ld_shlibs_F77=no |
13614 | ;; |
13615 | |
13616 | beos*) |
13617 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13618 | allow_undefined_flag_F77=unsupported |
13619 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
13620 | # support --undefined. This deserves some investigation. FIXME |
13621 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13622 | else |
13623 | ld_shlibs_F77=no |
13624 | fi |
13625 | ;; |
13626 | |
13627 | cygwin* | mingw* | pw32*) |
13628 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
13629 | # as there is no search path for DLLs. |
13630 | hardcode_libdir_flag_spec_F77='-L$libdir' |
13631 | allow_undefined_flag_F77=unsupported |
13632 | always_export_symbols_F77=no |
13633 | enable_shared_with_static_runtimes_F77=yes |
13634 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
13635 | |
13636 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
13637 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
13638 | # If the export-symbols file already is a .def file (1st line |
13639 | # is EXPORTS), use it as is; otherwise, prepend... |
13640 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
13641 | cp $export_symbols $output_objdir/$soname.def; |
13642 | else |
13643 | echo EXPORTS > $output_objdir/$soname.def; |
13644 | cat $export_symbols >> $output_objdir/$soname.def; |
13645 | fi~ |
13646 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
13647 | else |
13648 | ld_shlibs_F77=no |
13649 | fi |
13650 | ;; |
13651 | |
13652 | interix3*) |
13653 | hardcode_direct_F77=no |
13654 | hardcode_shlibpath_var_F77=no |
13655 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
13656 | export_dynamic_flag_spec_F77='${wl}-E' |
13657 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
13658 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
13659 | # default) and relocated if they conflict, which is a slow very memory |
13660 | # consuming and fragmenting process. To avoid this, we pick a random, |
13661 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
13662 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
13663 | 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' |
13664 | 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' |
13665 | ;; |
13666 | |
13667 | linux*) |
13668 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13669 | tmp_addflag= |
13670 | case $cc_basename,$host_cpu in |
13671 | pgcc*) # Portland Group C compiler |
13672 | 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' |
13673 | tmp_addflag=' $pic_flag' |
13674 | ;; |
13675 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
13676 | 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' |
13677 | tmp_addflag=' $pic_flag -Mnomain' ;; |
13678 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
13679 | tmp_addflag=' -i_dynamic' ;; |
13680 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
13681 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
13682 | ifc* | ifort*) # Intel Fortran compiler |
13683 | tmp_addflag=' -nofor_main' ;; |
13684 | esac |
13685 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13686 | |
13687 | if test $supports_anon_versioning = yes; then |
13688 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
13689 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
13690 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
13691 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
13692 | fi |
13693 | else |
13694 | ld_shlibs_F77=no |
13695 | fi |
13696 | ;; |
13697 | |
13698 | netbsd*) |
13699 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
13700 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
13701 | wlarc= |
13702 | else |
13703 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13704 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
13705 | fi |
13706 | ;; |
13707 | |
13708 | solaris*) |
13709 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
13710 | ld_shlibs_F77=no |
13711 | cat <<EOF 1>&2 |
13712 | |
13713 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
13714 | *** create shared libraries on Solaris systems. Therefore, libtool |
13715 | *** is disabling shared libraries support. We urge you to upgrade GNU |
13716 | *** binutils to release 2.9.1 or newer. Another option is to modify |
13717 | *** your PATH or compiler configuration so that the native linker is |
13718 | *** used, and then restart. |
13719 | |
13720 | EOF |
13721 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13722 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13723 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
13724 | else |
13725 | ld_shlibs_F77=no |
13726 | fi |
13727 | ;; |
13728 | |
13729 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
13730 | case `$LD -v 2>&1` in |
13731 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
13732 | ld_shlibs_F77=no |
13733 | cat <<_LT_EOF 1>&2 |
13734 | |
13735 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
13736 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
13737 | *** is disabling shared libraries support. We urge you to upgrade GNU |
13738 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
13739 | *** your PATH or compiler configuration so that the native linker is |
13740 | *** used, and then restart. |
13741 | |
13742 | _LT_EOF |
13743 | ;; |
13744 | *) |
13745 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13746 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
13747 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
13748 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
13749 | else |
13750 | ld_shlibs_F77=no |
13751 | fi |
13752 | ;; |
13753 | esac |
13754 | ;; |
13755 | |
13756 | sunos4*) |
13757 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
13758 | wlarc= |
13759 | hardcode_direct_F77=yes |
13760 | hardcode_shlibpath_var_F77=no |
13761 | ;; |
13762 | |
13763 | *) |
13764 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13765 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13766 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
13767 | else |
13768 | ld_shlibs_F77=no |
13769 | fi |
13770 | ;; |
13771 | esac |
13772 | |
13773 | if test "$ld_shlibs_F77" = no; then |
13774 | runpath_var= |
13775 | hardcode_libdir_flag_spec_F77= |
13776 | export_dynamic_flag_spec_F77= |
13777 | whole_archive_flag_spec_F77= |
13778 | fi |
13779 | else |
13780 | # PORTME fill in a description of your system's linker (not GNU ld) |
13781 | case $host_os in |
13782 | aix3*) |
13783 | allow_undefined_flag_F77=unsupported |
13784 | always_export_symbols_F77=yes |
13785 | 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' |
13786 | # Note: this linker hardcodes the directories in LIBPATH if there |
13787 | # are no directories specified by -L. |
13788 | hardcode_minus_L_F77=yes |
13789 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
13790 | # Neither direct hardcoding nor static linking is supported with a |
13791 | # broken collect2. |
13792 | hardcode_direct_F77=unsupported |
13793 | fi |
13794 | ;; |
13795 | |
13796 | aix4* | aix5*) |
13797 | if test "$host_cpu" = ia64; then |
13798 | # On IA64, the linker does run time linking by default, so we don't |
13799 | # have to do anything special. |
13800 | aix_use_runtimelinking=no |
13801 | exp_sym_flag='-Bexport' |
13802 | no_entry_flag="" |
13803 | else |
13804 | # If we're using GNU nm, then we don't want the "-C" option. |
13805 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
13806 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
13807 | 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' |
13808 | else |
13809 | 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' |
13810 | fi |
13811 | aix_use_runtimelinking=no |
13812 | |
13813 | # Test if we are trying to use run time linking or normal |
13814 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
13815 | # need to do runtime linking. |
13816 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
13817 | for ld_flag in $LDFLAGS; do |
13818 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
13819 | aix_use_runtimelinking=yes |
13820 | break |
13821 | fi |
13822 | done |
13823 | ;; |
13824 | esac |
13825 | |
13826 | exp_sym_flag='-bexport' |
13827 | no_entry_flag='-bnoentry' |
13828 | fi |
13829 | |
13830 | # When large executables or shared objects are built, AIX ld can |
13831 | # have problems creating the table of contents. If linking a library |
13832 | # or program results in "error TOC overflow" add -mminimal-toc to |
13833 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
13834 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
13835 | |
13836 | archive_cmds_F77='' |
13837 | hardcode_direct_F77=yes |
13838 | hardcode_libdir_separator_F77=':' |
13839 | link_all_deplibs_F77=yes |
13840 | |
13841 | if test "$GCC" = yes; then |
13842 | case $host_os in aix4.[012]|aix4.[012].*) |
13843 | # We only want to do this on AIX 4.2 and lower, the check |
13844 | # below for broken collect2 doesn't work under 4.3+ |
13845 | collect2name=`${CC} -print-prog-name=collect2` |
13846 | if test -f "$collect2name" && \ |
13847 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
13848 | then |
13849 | # We have reworked collect2 |
13850 | hardcode_direct_F77=yes |
13851 | else |
13852 | # We have old collect2 |
13853 | hardcode_direct_F77=unsupported |
13854 | # It fails to find uninstalled libraries when the uninstalled |
13855 | # path is not listed in the libpath. Setting hardcode_minus_L |
13856 | # to unsupported forces relinking |
13857 | hardcode_minus_L_F77=yes |
13858 | hardcode_libdir_flag_spec_F77='-L$libdir' |
13859 | hardcode_libdir_separator_F77= |
13860 | fi |
13861 | ;; |
13862 | esac |
13863 | shared_flag='-shared' |
13864 | if test "$aix_use_runtimelinking" = yes; then |
13865 | shared_flag="$shared_flag "'${wl}-G' |
13866 | fi |
13867 | else |
13868 | # not using gcc |
13869 | if test "$host_cpu" = ia64; then |
13870 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
13871 | # chokes on -Wl,-G. The following line is correct: |
13872 | shared_flag='-G' |
13873 | else |
13874 | if test "$aix_use_runtimelinking" = yes; then |
13875 | shared_flag='${wl}-G' |
13876 | else |
13877 | shared_flag='${wl}-bM:SRE' |
13878 | fi |
13879 | fi |
13880 | fi |
13881 | |
13882 | # It seems that -bexpall does not export symbols beginning with |
13883 | # underscore (_), so it is better to generate a list of symbols to export. |
13884 | always_export_symbols_F77=yes |
13885 | if test "$aix_use_runtimelinking" = yes; then |
13886 | # Warning - without using the other runtime loading flags (-brtl), |
13887 | # -berok will link without error, but may produce a broken library. |
13888 | allow_undefined_flag_F77='-berok' |
13889 | # Determine the default libpath from the value encoded in an empty executable. |
13890 | cat >conftest.$ac_ext <<_ACEOF |
13891 | program main |
13892 | |
13893 | end |
13894 | _ACEOF |
13895 | rm -f conftest.$ac_objext conftest$ac_exeext |
13896 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13897 | (eval $ac_link) 2>conftest.er1 |
13898 | ac_status=$? |
13899 | grep -v '^ *+' conftest.er1 >conftest.err |
13900 | rm -f conftest.er1 |
13901 | cat conftest.err >&5 |
13902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13903 | (exit $ac_status); } && |
13904 | { ac_try='test -z "$ac_f77_werror_flag" |
13905 | || test ! -s conftest.err' |
13906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13907 | (eval $ac_try) 2>&5 |
13908 | ac_status=$? |
13909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13910 | (exit $ac_status); }; } && |
13911 | { ac_try='test -s conftest$ac_exeext' |
13912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13913 | (eval $ac_try) 2>&5 |
13914 | ac_status=$? |
13915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13916 | (exit $ac_status); }; }; then |
13917 | |
13918 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
13919 | }'` |
13920 | # Check for a 64-bit object if we didn't find anything. |
13921 | 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; } |
13922 | }'`; fi |
13923 | else |
13924 | echo "$as_me: failed program was:" >&5 |
13925 | sed 's/^/| /' conftest.$ac_ext >&5 |
13926 | |
13927 | fi |
13928 | rm -f conftest.err conftest.$ac_objext \ |
13929 | conftest$ac_exeext conftest.$ac_ext |
13930 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
13931 | |
13932 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
13933 | 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" |
13934 | else |
13935 | if test "$host_cpu" = ia64; then |
13936 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
13937 | allow_undefined_flag_F77="-z nodefs" |
13938 | 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" |
13939 | else |
13940 | # Determine the default libpath from the value encoded in an empty executable. |
13941 | cat >conftest.$ac_ext <<_ACEOF |
13942 | program main |
13943 | |
13944 | end |
13945 | _ACEOF |
13946 | rm -f conftest.$ac_objext conftest$ac_exeext |
13947 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13948 | (eval $ac_link) 2>conftest.er1 |
13949 | ac_status=$? |
13950 | grep -v '^ *+' conftest.er1 >conftest.err |
13951 | rm -f conftest.er1 |
13952 | cat conftest.err >&5 |
13953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13954 | (exit $ac_status); } && |
13955 | { ac_try='test -z "$ac_f77_werror_flag" |
13956 | || test ! -s conftest.err' |
13957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13958 | (eval $ac_try) 2>&5 |
13959 | ac_status=$? |
13960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13961 | (exit $ac_status); }; } && |
13962 | { ac_try='test -s conftest$ac_exeext' |
13963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13964 | (eval $ac_try) 2>&5 |
13965 | ac_status=$? |
13966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13967 | (exit $ac_status); }; }; then |
13968 | |
13969 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
13970 | }'` |
13971 | # Check for a 64-bit object if we didn't find anything. |
13972 | 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; } |
13973 | }'`; fi |
13974 | else |
13975 | echo "$as_me: failed program was:" >&5 |
13976 | sed 's/^/| /' conftest.$ac_ext >&5 |
13977 | |
13978 | fi |
13979 | rm -f conftest.err conftest.$ac_objext \ |
13980 | conftest$ac_exeext conftest.$ac_ext |
13981 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
13982 | |
13983 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
13984 | # Warning - without using the other run time loading flags, |
13985 | # -berok will link without error, but may produce a broken library. |
13986 | no_undefined_flag_F77=' ${wl}-bernotok' |
13987 | allow_undefined_flag_F77=' ${wl}-berok' |
13988 | # Exported symbols can be pulled into shared objects from archives |
13989 | whole_archive_flag_spec_F77='$convenience' |
13990 | archive_cmds_need_lc_F77=yes |
13991 | # This is similar to how AIX traditionally builds its shared libraries. |
13992 | 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' |
13993 | fi |
13994 | fi |
13995 | ;; |
13996 | |
13997 | amigaos*) |
13998 | 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)' |
13999 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14000 | hardcode_minus_L_F77=yes |
14001 | # see comment about different semantics on the GNU ld section |
14002 | ld_shlibs_F77=no |
14003 | ;; |
14004 | |
14005 | bsdi[45]*) |
14006 | export_dynamic_flag_spec_F77=-rdynamic |
14007 | ;; |
14008 | |
14009 | cygwin* | mingw* | pw32*) |
14010 | # When not using gcc, we currently assume that we are using |
14011 | # Microsoft Visual C++. |
14012 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
14013 | # no search path for DLLs. |
14014 | hardcode_libdir_flag_spec_F77=' ' |
14015 | allow_undefined_flag_F77=unsupported |
14016 | # Tell ltmain to make .lib files, not .a files. |
14017 | libext=lib |
14018 | # Tell ltmain to make .dll files, not .so files. |
14019 | shrext_cmds=".dll" |
14020 | # FIXME: Setting linknames here is a bad hack. |
14021 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
14022 | # The linker will automatically build a .lib file if we build a DLL. |
14023 | old_archive_From_new_cmds_F77='true' |
14024 | # FIXME: Should let the user specify the lib program. |
14025 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
14026 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
14027 | enable_shared_with_static_runtimes_F77=yes |
14028 | ;; |
14029 | |
14030 | darwin* | rhapsody*) |
14031 | case $host_os in |
14032 | rhapsody* | darwin1.[012]) |
14033 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
14034 | ;; |
14035 | *) # Darwin 1.3 on |
14036 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
14037 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14038 | else |
14039 | case ${MACOSX_DEPLOYMENT_TARGET} in |
14040 | 10.[012]) |
14041 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14042 | ;; |
14043 | 10.*) |
14044 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
14045 | ;; |
14046 | esac |
14047 | fi |
14048 | ;; |
14049 | esac |
14050 | archive_cmds_need_lc_F77=no |
14051 | hardcode_direct_F77=no |
14052 | hardcode_automatic_F77=yes |
14053 | hardcode_shlibpath_var_F77=unsupported |
14054 | whole_archive_flag_spec_F77='' |
14055 | link_all_deplibs_F77=yes |
14056 | if test "$GCC" = yes ; then |
14057 | output_verbose_link_cmd='echo' |
14058 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
14059 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14060 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14061 | 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}' |
14062 | 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}' |
14063 | else |
14064 | case $cc_basename in |
14065 | xlc*) |
14066 | output_verbose_link_cmd='echo' |
14067 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
14068 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14069 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14070 | 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}' |
14071 | 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}' |
14072 | ;; |
14073 | *) |
14074 | ld_shlibs_F77=no |
14075 | ;; |
14076 | esac |
14077 | fi |
14078 | ;; |
14079 | |
14080 | dgux*) |
14081 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14082 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14083 | hardcode_shlibpath_var_F77=no |
14084 | ;; |
14085 | |
14086 | freebsd1*) |
14087 | ld_shlibs_F77=no |
14088 | ;; |
14089 | |
14090 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
14091 | # support. Future versions do this automatically, but an explicit c++rt0.o |
14092 | # does not break anything, and helps significantly (at the cost of a little |
14093 | # extra space). |
14094 | freebsd2.2*) |
14095 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
14096 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14097 | hardcode_direct_F77=yes |
14098 | hardcode_shlibpath_var_F77=no |
14099 | ;; |
14100 | |
14101 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
14102 | freebsd2*) |
14103 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14104 | hardcode_direct_F77=yes |
14105 | hardcode_minus_L_F77=yes |
14106 | hardcode_shlibpath_var_F77=no |
14107 | ;; |
14108 | |
14109 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
14110 | freebsd* | kfreebsd*-gnu | dragonfly*) |
14111 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
14112 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14113 | hardcode_direct_F77=yes |
14114 | hardcode_shlibpath_var_F77=no |
14115 | ;; |
14116 | |
14117 | hpux9*) |
14118 | if test "$GCC" = yes; then |
14119 | 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' |
14120 | else |
14121 | 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' |
14122 | fi |
14123 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14124 | hardcode_libdir_separator_F77=: |
14125 | hardcode_direct_F77=yes |
14126 | |
14127 | # hardcode_minus_L: Not really in the search PATH, |
14128 | # but as the default location of the library. |
14129 | hardcode_minus_L_F77=yes |
14130 | export_dynamic_flag_spec_F77='${wl}-E' |
14131 | ;; |
14132 | |
14133 | hpux10*) |
14134 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14135 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14136 | else |
14137 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
14138 | fi |
14139 | if test "$with_gnu_ld" = no; then |
14140 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14141 | hardcode_libdir_separator_F77=: |
14142 | |
14143 | hardcode_direct_F77=yes |
14144 | export_dynamic_flag_spec_F77='${wl}-E' |
14145 | |
14146 | # hardcode_minus_L: Not really in the search PATH, |
14147 | # but as the default location of the library. |
14148 | hardcode_minus_L_F77=yes |
14149 | fi |
14150 | ;; |
14151 | |
14152 | hpux11*) |
14153 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14154 | case $host_cpu in |
14155 | hppa*64*) |
14156 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14157 | ;; |
14158 | ia64*) |
14159 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14160 | ;; |
14161 | *) |
14162 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14163 | ;; |
14164 | esac |
14165 | else |
14166 | case $host_cpu in |
14167 | hppa*64*) |
14168 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14169 | ;; |
14170 | ia64*) |
14171 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14172 | ;; |
14173 | *) |
14174 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14175 | ;; |
14176 | esac |
14177 | fi |
14178 | if test "$with_gnu_ld" = no; then |
14179 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14180 | hardcode_libdir_separator_F77=: |
14181 | |
14182 | case $host_cpu in |
14183 | hppa*64*|ia64*) |
14184 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
14185 | hardcode_direct_F77=no |
14186 | hardcode_shlibpath_var_F77=no |
14187 | ;; |
14188 | *) |
14189 | hardcode_direct_F77=yes |
14190 | export_dynamic_flag_spec_F77='${wl}-E' |
14191 | |
14192 | # hardcode_minus_L: Not really in the search PATH, |
14193 | # but as the default location of the library. |
14194 | hardcode_minus_L_F77=yes |
14195 | ;; |
14196 | esac |
14197 | fi |
14198 | ;; |
14199 | |
14200 | irix5* | irix6* | nonstopux*) |
14201 | if test "$GCC" = yes; then |
14202 | 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' |
14203 | else |
14204 | 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' |
14205 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
14206 | fi |
14207 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14208 | hardcode_libdir_separator_F77=: |
14209 | link_all_deplibs_F77=yes |
14210 | ;; |
14211 | |
14212 | netbsd*) |
14213 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14214 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
14215 | else |
14216 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
14217 | fi |
14218 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14219 | hardcode_direct_F77=yes |
14220 | hardcode_shlibpath_var_F77=no |
14221 | ;; |
14222 | |
14223 | newsos6) |
14224 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14225 | hardcode_direct_F77=yes |
14226 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14227 | hardcode_libdir_separator_F77=: |
14228 | hardcode_shlibpath_var_F77=no |
14229 | ;; |
14230 | |
14231 | openbsd*) |
14232 | hardcode_direct_F77=yes |
14233 | hardcode_shlibpath_var_F77=no |
14234 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
14235 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14236 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
14237 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14238 | export_dynamic_flag_spec_F77='${wl}-E' |
14239 | else |
14240 | case $host_os in |
14241 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
14242 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14243 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14244 | ;; |
14245 | *) |
14246 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14247 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14248 | ;; |
14249 | esac |
14250 | fi |
14251 | ;; |
14252 | |
14253 | os2*) |
14254 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14255 | hardcode_minus_L_F77=yes |
14256 | allow_undefined_flag_F77=unsupported |
14257 | 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' |
14258 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
14259 | ;; |
14260 | |
14261 | osf3*) |
14262 | if test "$GCC" = yes; then |
14263 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
14264 | 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' |
14265 | else |
14266 | allow_undefined_flag_F77=' -expect_unresolved \*' |
14267 | 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' |
14268 | fi |
14269 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14270 | hardcode_libdir_separator_F77=: |
14271 | ;; |
14272 | |
14273 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
14274 | if test "$GCC" = yes; then |
14275 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
14276 | 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' |
14277 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14278 | else |
14279 | allow_undefined_flag_F77=' -expect_unresolved \*' |
14280 | 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' |
14281 | 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~ |
14282 | $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' |
14283 | |
14284 | # Both c and cxx compiler support -rpath directly |
14285 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
14286 | fi |
14287 | hardcode_libdir_separator_F77=: |
14288 | ;; |
14289 | |
14290 | solaris*) |
14291 | no_undefined_flag_F77=' -z text' |
14292 | if test "$GCC" = yes; then |
14293 | wlarc='${wl}' |
14294 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14295 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14296 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
14297 | else |
14298 | wlarc='' |
14299 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14300 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14301 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
14302 | fi |
14303 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14304 | hardcode_shlibpath_var_F77=no |
14305 | case $host_os in |
14306 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
14307 | *) |
14308 | # The compiler driver will combine linker options so we |
14309 | # cannot just pass the convience library names through |
14310 | # without $wl, iff we do not link with $LD. |
14311 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
14312 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
14313 | case $wlarc in |
14314 | '') |
14315 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
14316 | *) |
14317 | 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' ;; |
14318 | esac ;; |
14319 | esac |
14320 | link_all_deplibs_F77=yes |
14321 | ;; |
14322 | |
14323 | sunos4*) |
14324 | if test "x$host_vendor" = xsequent; then |
14325 | # Use $CC to link under sequent, because it throws in some extra .o |
14326 | # files that make .init and .fini sections work. |
14327 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
14328 | else |
14329 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
14330 | fi |
14331 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14332 | hardcode_direct_F77=yes |
14333 | hardcode_minus_L_F77=yes |
14334 | hardcode_shlibpath_var_F77=no |
14335 | ;; |
14336 | |
14337 | sysv4) |
14338 | case $host_vendor in |
14339 | sni) |
14340 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14341 | hardcode_direct_F77=yes # is this really true??? |
14342 | ;; |
14343 | siemens) |
14344 | ## LD is ld it makes a PLAMLIB |
14345 | ## CC just makes a GrossModule. |
14346 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
14347 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
14348 | hardcode_direct_F77=no |
14349 | ;; |
14350 | motorola) |
14351 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14352 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
14353 | ;; |
14354 | esac |
14355 | runpath_var='LD_RUN_PATH' |
14356 | hardcode_shlibpath_var_F77=no |
14357 | ;; |
14358 | |
14359 | sysv4.3*) |
14360 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14361 | hardcode_shlibpath_var_F77=no |
14362 | export_dynamic_flag_spec_F77='-Bexport' |
14363 | ;; |
14364 | |
14365 | sysv4*MP*) |
14366 | if test -d /usr/nec; then |
14367 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14368 | hardcode_shlibpath_var_F77=no |
14369 | runpath_var=LD_RUN_PATH |
14370 | hardcode_runpath_var=yes |
14371 | ld_shlibs_F77=yes |
14372 | fi |
14373 | ;; |
14374 | |
14375 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
14376 | no_undefined_flag_F77='${wl}-z,text' |
14377 | archive_cmds_need_lc_F77=no |
14378 | hardcode_shlibpath_var_F77=no |
14379 | runpath_var='LD_RUN_PATH' |
14380 | |
14381 | if test "$GCC" = yes; then |
14382 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14383 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14384 | else |
14385 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14386 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14387 | fi |
14388 | ;; |
14389 | |
14390 | sysv5* | sco3.2v5* | sco5v6*) |
14391 | # Note: We can NOT use -z defs as we might desire, because we do not |
14392 | # link with -lc, and that would cause any symbols used from libc to |
14393 | # always be unresolved, which means just about no library would |
14394 | # ever link correctly. If we're not using GNU ld we use -z text |
14395 | # though, which does catch some bad symbols but isn't as heavy-handed |
14396 | # as -z defs. |
14397 | no_undefined_flag_F77='${wl}-z,text' |
14398 | allow_undefined_flag_F77='${wl}-z,nodefs' |
14399 | archive_cmds_need_lc_F77=no |
14400 | hardcode_shlibpath_var_F77=no |
14401 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
14402 | hardcode_libdir_separator_F77=':' |
14403 | link_all_deplibs_F77=yes |
14404 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
14405 | runpath_var='LD_RUN_PATH' |
14406 | |
14407 | if test "$GCC" = yes; then |
14408 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14409 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14410 | else |
14411 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14412 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14413 | fi |
14414 | ;; |
14415 | |
14416 | uts4*) |
14417 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14418 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14419 | hardcode_shlibpath_var_F77=no |
14420 | ;; |
14421 | |
14422 | *) |
14423 | ld_shlibs_F77=no |
14424 | ;; |
14425 | esac |
14426 | fi |
14427 | |
14428 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
14429 | echo "${ECHO_T}$ld_shlibs_F77" >&6 |
14430 | test "$ld_shlibs_F77" = no && can_build_shared=no |
14431 | |
14432 | # |
14433 | # Do we need to explicitly link libc? |
14434 | # |
14435 | case "x$archive_cmds_need_lc_F77" in |
14436 | x|xyes) |
14437 | # Assume -lc should be added |
14438 | archive_cmds_need_lc_F77=yes |
14439 | |
14440 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
14441 | case $archive_cmds_F77 in |
14442 | *'~'*) |
14443 | # FIXME: we may have to deal with multi-command sequences. |
14444 | ;; |
14445 | '$CC '*) |
14446 | # Test whether the compiler implicitly links with -lc since on some |
14447 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
14448 | # to ld, don't add -lc before -lgcc. |
14449 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
14450 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
14451 | $rm conftest* |
14452 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
14453 | |
14454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
14455 | (eval $ac_compile) 2>&5 |
14456 | ac_status=$? |
14457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14458 | (exit $ac_status); } 2>conftest.err; then |
14459 | soname=conftest |
14460 | lib=conftest |
14461 | libobjs=conftest.$ac_objext |
14462 | deplibs= |
14463 | wl=$lt_prog_compiler_wl_F77 |
14464 | pic_flag=$lt_prog_compiler_pic_F77 |
14465 | compiler_flags=-v |
14466 | linker_flags=-v |
14467 | verstring= |
14468 | output_objdir=. |
14469 | libname=conftest |
14470 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
14471 | allow_undefined_flag_F77= |
14472 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
14473 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
14474 | ac_status=$? |
14475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14476 | (exit $ac_status); } |
14477 | then |
14478 | archive_cmds_need_lc_F77=no |
14479 | else |
14480 | archive_cmds_need_lc_F77=yes |
14481 | fi |
14482 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
14483 | else |
14484 | cat conftest.err 1>&5 |
14485 | fi |
14486 | $rm conftest* |
14487 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
14488 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
14489 | ;; |
14490 | esac |
14491 | fi |
14492 | ;; |
14493 | esac |
14494 | |
14495 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
14496 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
14497 | library_names_spec= |
14498 | libname_spec='lib$name' |
14499 | soname_spec= |
14500 | shrext_cmds=".so" |
14501 | postinstall_cmds= |
14502 | postuninstall_cmds= |
14503 | finish_cmds= |
14504 | finish_eval= |
14505 | shlibpath_var= |
14506 | shlibpath_overrides_runpath=unknown |
14507 | version_type=none |
14508 | dynamic_linker="$host_os ld.so" |
14509 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
14510 | if test "$GCC" = yes; then |
14511 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
14512 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
14513 | # if the path contains ";" then we assume it to be the separator |
14514 | # otherwise default to the standard path separator (i.e. ":") - it is |
14515 | # assumed that no part of a normal pathname contains ";" but that should |
14516 | # okay in the real world where ";" in dirpaths is itself problematic. |
14517 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
14518 | else |
14519 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
14520 | fi |
14521 | else |
14522 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
14523 | fi |
14524 | need_lib_prefix=unknown |
14525 | hardcode_into_libs=no |
14526 | |
14527 | # when you set need_version to no, make sure it does not cause -set_version |
14528 | # flags to be left without arguments |
14529 | need_version=unknown |
14530 | |
14531 | case $host_os in |
14532 | aix3*) |
14533 | version_type=linux |
14534 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
14535 | shlibpath_var=LIBPATH |
14536 | |
14537 | # AIX 3 has no versioning support, so we append a major version to the name. |
14538 | soname_spec='${libname}${release}${shared_ext}$major' |
14539 | ;; |
14540 | |
14541 | aix4* | aix5*) |
14542 | version_type=linux |
14543 | need_lib_prefix=no |
14544 | need_version=no |
14545 | hardcode_into_libs=yes |
14546 | if test "$host_cpu" = ia64; then |
14547 | # AIX 5 supports IA64 |
14548 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
14549 | shlibpath_var=LD_LIBRARY_PATH |
14550 | else |
14551 | # With GCC up to 2.95.x, collect2 would create an import file |
14552 | # for dependence libraries. The import file would start with |
14553 | # the line `#! .'. This would cause the generated library to |
14554 | # depend on `.', always an invalid library. This was fixed in |
14555 | # development snapshots of GCC prior to 3.0. |
14556 | case $host_os in |
14557 | aix4 | aix4.[01] | aix4.[01].*) |
14558 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
14559 | echo ' yes ' |
14560 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
14561 | : |
14562 | else |
14563 | can_build_shared=no |
14564 | fi |
14565 | ;; |
14566 | esac |
14567 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
14568 | # soname into executable. Probably we can add versioning support to |
14569 | # collect2, so additional links can be useful in future. |
14570 | if test "$aix_use_runtimelinking" = yes; then |
14571 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
14572 | # instead of lib<name>.a to let people know that these are not |
14573 | # typical AIX shared libraries. |
14574 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14575 | else |
14576 | # We preserve .a as extension for shared libraries through AIX4.2 |
14577 | # and later when we are not doing run time linking. |
14578 | library_names_spec='${libname}${release}.a $libname.a' |
14579 | soname_spec='${libname}${release}${shared_ext}$major' |
14580 | fi |
14581 | shlibpath_var=LIBPATH |
14582 | fi |
14583 | ;; |
14584 | |
14585 | amigaos*) |
14586 | library_names_spec='$libname.ixlibrary $libname.a' |
14587 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
14588 | 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' |
14589 | ;; |
14590 | |
14591 | beos*) |
14592 | library_names_spec='${libname}${shared_ext}' |
14593 | dynamic_linker="$host_os ld.so" |
14594 | shlibpath_var=LIBRARY_PATH |
14595 | ;; |
14596 | |
14597 | bsdi[45]*) |
14598 | version_type=linux |
14599 | need_version=no |
14600 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14601 | soname_spec='${libname}${release}${shared_ext}$major' |
14602 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
14603 | shlibpath_var=LD_LIBRARY_PATH |
14604 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
14605 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
14606 | # the default ld.so.conf also contains /usr/contrib/lib and |
14607 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
14608 | # libtool to hard-code these into programs |
14609 | ;; |
14610 | |
14611 | cygwin* | mingw* | pw32*) |
14612 | version_type=windows |
14613 | shrext_cmds=".dll" |
14614 | need_version=no |
14615 | need_lib_prefix=no |
14616 | |
14617 | case $GCC,$host_os in |
14618 | yes,cygwin* | yes,mingw* | yes,pw32*) |
14619 | library_names_spec='$libname.dll.a' |
14620 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
14621 | postinstall_cmds='base_file=`basename \${file}`~ |
14622 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
14623 | dldir=$destdir/`dirname \$dlpath`~ |
14624 | test -d \$dldir || mkdir -p \$dldir~ |
14625 | $install_prog $dir/$dlname \$dldir/$dlname~ |
14626 | chmod a+x \$dldir/$dlname' |
14627 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
14628 | dlpath=$dir/\$dldll~ |
14629 | $rm \$dlpath' |
14630 | shlibpath_overrides_runpath=yes |
14631 | |
14632 | case $host_os in |
14633 | cygwin*) |
14634 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
14635 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
14636 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
14637 | ;; |
14638 | mingw*) |
14639 | # MinGW DLLs use traditional 'lib' prefix |
14640 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
14641 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
14642 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
14643 | # It is most probably a Windows format PATH printed by |
14644 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
14645 | # path with ; separators, and with drive letters. We can handle the |
14646 | # drive letters (cygwin fileutils understands them), so leave them, |
14647 | # especially as we might pass files found there to a mingw objdump, |
14648 | # which wouldn't understand a cygwinified path. Ahh. |
14649 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
14650 | else |
14651 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
14652 | fi |
14653 | ;; |
14654 | pw32*) |
14655 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
14656 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
14657 | ;; |
14658 | esac |
14659 | ;; |
14660 | |
14661 | *) |
14662 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
14663 | ;; |
14664 | esac |
14665 | dynamic_linker='Win32 ld.exe' |
14666 | # FIXME: first we should search . and the directory the executable is in |
14667 | shlibpath_var=PATH |
14668 | ;; |
14669 | |
14670 | darwin* | rhapsody*) |
14671 | dynamic_linker="$host_os dyld" |
14672 | version_type=darwin |
14673 | need_lib_prefix=no |
14674 | need_version=no |
14675 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
14676 | soname_spec='${libname}${release}${major}$shared_ext' |
14677 | shlibpath_overrides_runpath=yes |
14678 | shlibpath_var=DYLD_LIBRARY_PATH |
14679 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
14680 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
14681 | if test "$GCC" = yes; then |
14682 | 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"` |
14683 | else |
14684 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
14685 | fi |
14686 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
14687 | ;; |
14688 | |
14689 | dgux*) |
14690 | version_type=linux |
14691 | need_lib_prefix=no |
14692 | need_version=no |
14693 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
14694 | soname_spec='${libname}${release}${shared_ext}$major' |
14695 | shlibpath_var=LD_LIBRARY_PATH |
14696 | ;; |
14697 | |
14698 | freebsd1*) |
14699 | dynamic_linker=no |
14700 | ;; |
14701 | |
14702 | kfreebsd*-gnu) |
14703 | version_type=linux |
14704 | need_lib_prefix=no |
14705 | need_version=no |
14706 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
14707 | soname_spec='${libname}${release}${shared_ext}$major' |
14708 | shlibpath_var=LD_LIBRARY_PATH |
14709 | shlibpath_overrides_runpath=no |
14710 | hardcode_into_libs=yes |
14711 | dynamic_linker='GNU ld.so' |
14712 | ;; |
14713 | |
14714 | freebsd* | dragonfly*) |
14715 | # DragonFly does not have aout. When/if they implement a new |
14716 | # versioning mechanism, adjust this. |
14717 | if test -x /usr/bin/objformat; then |
14718 | objformat=`/usr/bin/objformat` |
14719 | else |
14720 | case $host_os in |
14721 | freebsd[123]*) objformat=aout ;; |
14722 | *) objformat=elf ;; |
14723 | esac |
14724 | fi |
14725 | version_type=freebsd-$objformat |
14726 | case $version_type in |
14727 | freebsd-elf*) |
14728 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
14729 | need_version=no |
14730 | need_lib_prefix=no |
14731 | ;; |
14732 | freebsd-*) |
14733 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
14734 | need_version=yes |
14735 | ;; |
14736 | esac |
14737 | shlibpath_var=LD_LIBRARY_PATH |
14738 | case $host_os in |
14739 | freebsd2*) |
14740 | shlibpath_overrides_runpath=yes |
14741 | ;; |
14742 | freebsd3.[01]* | freebsdelf3.[01]*) |
14743 | shlibpath_overrides_runpath=yes |
14744 | hardcode_into_libs=yes |
14745 | ;; |
14746 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
14747 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
14748 | shlibpath_overrides_runpath=no |
14749 | hardcode_into_libs=yes |
14750 | ;; |
14751 | freebsd*) # from 4.6 on |
14752 | shlibpath_overrides_runpath=yes |
14753 | hardcode_into_libs=yes |
14754 | ;; |
14755 | esac |
14756 | ;; |
14757 | |
14758 | gnu*) |
14759 | version_type=linux |
14760 | need_lib_prefix=no |
14761 | need_version=no |
14762 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
14763 | soname_spec='${libname}${release}${shared_ext}$major' |
14764 | shlibpath_var=LD_LIBRARY_PATH |
14765 | hardcode_into_libs=yes |
14766 | ;; |
14767 | |
14768 | hpux9* | hpux10* | hpux11*) |
14769 | # Give a soname corresponding to the major version so that dld.sl refuses to |
14770 | # link against other versions. |
14771 | version_type=sunos |
14772 | need_lib_prefix=no |
14773 | need_version=no |
14774 | case $host_cpu in |
14775 | ia64*) |
14776 | shrext_cmds='.so' |
14777 | hardcode_into_libs=yes |
14778 | dynamic_linker="$host_os dld.so" |
14779 | shlibpath_var=LD_LIBRARY_PATH |
14780 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
14781 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14782 | soname_spec='${libname}${release}${shared_ext}$major' |
14783 | if test "X$HPUX_IA64_MODE" = X32; then |
14784 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
14785 | else |
14786 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
14787 | fi |
14788 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
14789 | ;; |
14790 | hppa*64*) |
14791 | shrext_cmds='.sl' |
14792 | hardcode_into_libs=yes |
14793 | dynamic_linker="$host_os dld.sl" |
14794 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
14795 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
14796 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14797 | soname_spec='${libname}${release}${shared_ext}$major' |
14798 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
14799 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
14800 | ;; |
14801 | *) |
14802 | shrext_cmds='.sl' |
14803 | dynamic_linker="$host_os dld.sl" |
14804 | shlibpath_var=SHLIB_PATH |
14805 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
14806 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14807 | soname_spec='${libname}${release}${shared_ext}$major' |
14808 | ;; |
14809 | esac |
14810 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
14811 | postinstall_cmds='chmod 555 $lib' |
14812 | ;; |
14813 | |
14814 | interix3*) |
14815 | version_type=linux |
14816 | need_lib_prefix=no |
14817 | need_version=no |
14818 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
14819 | soname_spec='${libname}${release}${shared_ext}$major' |
14820 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
14821 | shlibpath_var=LD_LIBRARY_PATH |
14822 | shlibpath_overrides_runpath=no |
14823 | hardcode_into_libs=yes |
14824 | ;; |
14825 | |
14826 | irix5* | irix6* | nonstopux*) |
14827 | case $host_os in |
14828 | nonstopux*) version_type=nonstopux ;; |
14829 | *) |
14830 | if test "$lt_cv_prog_gnu_ld" = yes; then |
14831 | version_type=linux |
14832 | else |
14833 | version_type=irix |
14834 | fi ;; |
14835 | esac |
14836 | need_lib_prefix=no |
14837 | need_version=no |
14838 | soname_spec='${libname}${release}${shared_ext}$major' |
14839 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
14840 | case $host_os in |
14841 | irix5* | nonstopux*) |
14842 | libsuff= shlibsuff= |
14843 | ;; |
14844 | *) |
14845 | case $LD in # libtool.m4 will add one of these switches to LD |
14846 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
14847 | libsuff= shlibsuff= libmagic=32-bit;; |
14848 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
14849 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
14850 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
14851 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
14852 | *) libsuff= shlibsuff= libmagic=never-match;; |
14853 | esac |
14854 | ;; |
14855 | esac |
14856 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
14857 | shlibpath_overrides_runpath=no |
14858 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
14859 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
14860 | hardcode_into_libs=yes |
14861 | ;; |
14862 | |
14863 | # No shared lib support for Linux oldld, aout, or coff. |
14864 | linux*oldld* | linux*aout* | linux*coff*) |
14865 | dynamic_linker=no |
14866 | ;; |
14867 | |
14868 | # This must be Linux ELF. |
14869 | linux*) |
14870 | version_type=linux |
14871 | need_lib_prefix=no |
14872 | need_version=no |
14873 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14874 | soname_spec='${libname}${release}${shared_ext}$major' |
14875 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
14876 | shlibpath_var=LD_LIBRARY_PATH |
14877 | shlibpath_overrides_runpath=no |
14878 | # This implies no fast_install, which is unacceptable. |
14879 | # Some rework will be needed to allow for fast_install |
14880 | # before this can be enabled. |
14881 | hardcode_into_libs=yes |
14882 | |
14883 | # find out which ABI we are using |
14884 | libsuff= |
14885 | case "$host_cpu" in |
14886 | x86_64*|s390x*|powerpc64*) |
14887 | echo '#line 14887 "configure"' > conftest.$ac_ext |
14888 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
14889 | (eval $ac_compile) 2>&5 |
14890 | ac_status=$? |
14891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14892 | (exit $ac_status); }; then |
14893 | case `/usr/bin/file conftest.$ac_objext` in |
14894 | *64-bit*) |
14895 | libsuff=64 |
14896 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
14897 | ;; |
14898 | esac |
14899 | fi |
14900 | rm -rf conftest* |
14901 | ;; |
14902 | esac |
14903 | |
14904 | # Append ld.so.conf contents to the search path |
14905 | if test -f /etc/ld.so.conf; then |
14906 | 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' ' '` |
14907 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
14908 | fi |
14909 | |
14910 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
14911 | # powerpc, because MkLinux only supported shared libraries with the |
14912 | # GNU dynamic linker. Since this was broken with cross compilers, |
14913 | # most powerpc-linux boxes support dynamic linking these days and |
14914 | # people can always --disable-shared, the test was removed, and we |
14915 | # assume the GNU/Linux dynamic linker is in use. |
14916 | dynamic_linker='GNU/Linux ld.so' |
14917 | ;; |
14918 | |
14919 | knetbsd*-gnu) |
14920 | version_type=linux |
14921 | need_lib_prefix=no |
14922 | need_version=no |
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 | shlibpath_var=LD_LIBRARY_PATH |
14926 | shlibpath_overrides_runpath=no |
14927 | hardcode_into_libs=yes |
14928 | dynamic_linker='GNU ld.so' |
14929 | ;; |
14930 | |
14931 | netbsd*) |
14932 | version_type=sunos |
14933 | need_lib_prefix=no |
14934 | need_version=no |
14935 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14936 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
14937 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
14938 | dynamic_linker='NetBSD (a.out) ld.so' |
14939 | else |
14940 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
14941 | soname_spec='${libname}${release}${shared_ext}$major' |
14942 | dynamic_linker='NetBSD ld.elf_so' |
14943 | fi |
14944 | shlibpath_var=LD_LIBRARY_PATH |
14945 | shlibpath_overrides_runpath=yes |
14946 | hardcode_into_libs=yes |
14947 | ;; |
14948 | |
14949 | newsos6) |
14950 | version_type=linux |
14951 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14952 | shlibpath_var=LD_LIBRARY_PATH |
14953 | shlibpath_overrides_runpath=yes |
14954 | ;; |
14955 | |
14956 | nto-qnx*) |
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 | shlibpath_var=LD_LIBRARY_PATH |
14963 | shlibpath_overrides_runpath=yes |
14964 | ;; |
14965 | |
14966 | openbsd*) |
14967 | version_type=sunos |
14968 | sys_lib_dlsearch_path_spec="/usr/lib" |
14969 | need_lib_prefix=no |
14970 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
14971 | case $host_os in |
14972 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
14973 | *) need_version=no ;; |
14974 | esac |
14975 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
14976 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
14977 | shlibpath_var=LD_LIBRARY_PATH |
14978 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
14979 | case $host_os in |
14980 | openbsd2.[89] | openbsd2.[89].*) |
14981 | shlibpath_overrides_runpath=no |
14982 | ;; |
14983 | *) |
14984 | shlibpath_overrides_runpath=yes |
14985 | ;; |
14986 | esac |
14987 | else |
14988 | shlibpath_overrides_runpath=yes |
14989 | fi |
14990 | ;; |
14991 | |
14992 | os2*) |
14993 | libname_spec='$name' |
14994 | shrext_cmds=".dll" |
14995 | need_lib_prefix=no |
14996 | library_names_spec='$libname${shared_ext} $libname.a' |
14997 | dynamic_linker='OS/2 ld.exe' |
14998 | shlibpath_var=LIBPATH |
14999 | ;; |
15000 | |
15001 | osf3* | osf4* | osf5*) |
15002 | version_type=osf |
15003 | need_lib_prefix=no |
15004 | need_version=no |
15005 | soname_spec='${libname}${release}${shared_ext}$major' |
15006 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15007 | shlibpath_var=LD_LIBRARY_PATH |
15008 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
15009 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
15010 | ;; |
15011 | |
15012 | solaris*) |
15013 | version_type=linux |
15014 | need_lib_prefix=no |
15015 | need_version=no |
15016 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15017 | soname_spec='${libname}${release}${shared_ext}$major' |
15018 | shlibpath_var=LD_LIBRARY_PATH |
15019 | shlibpath_overrides_runpath=yes |
15020 | hardcode_into_libs=yes |
15021 | # ldd complains unless libraries are executable |
15022 | postinstall_cmds='chmod +x $lib' |
15023 | ;; |
15024 | |
15025 | sunos4*) |
15026 | version_type=sunos |
15027 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15028 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
15029 | shlibpath_var=LD_LIBRARY_PATH |
15030 | shlibpath_overrides_runpath=yes |
15031 | if test "$with_gnu_ld" = yes; then |
15032 | need_lib_prefix=no |
15033 | fi |
15034 | need_version=yes |
15035 | ;; |
15036 | |
15037 | sysv4 | sysv4.3*) |
15038 | version_type=linux |
15039 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15040 | soname_spec='${libname}${release}${shared_ext}$major' |
15041 | shlibpath_var=LD_LIBRARY_PATH |
15042 | case $host_vendor in |
15043 | sni) |
15044 | shlibpath_overrides_runpath=no |
15045 | need_lib_prefix=no |
15046 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
15047 | runpath_var=LD_RUN_PATH |
15048 | ;; |
15049 | siemens) |
15050 | need_lib_prefix=no |
15051 | ;; |
15052 | motorola) |
15053 | need_lib_prefix=no |
15054 | need_version=no |
15055 | shlibpath_overrides_runpath=no |
15056 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
15057 | ;; |
15058 | esac |
15059 | ;; |
15060 | |
15061 | sysv4*MP*) |
15062 | if test -d /usr/nec ;then |
15063 | version_type=linux |
15064 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
15065 | soname_spec='$libname${shared_ext}.$major' |
15066 | shlibpath_var=LD_LIBRARY_PATH |
15067 | fi |
15068 | ;; |
15069 | |
15070 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
15071 | version_type=freebsd-elf |
15072 | need_lib_prefix=no |
15073 | need_version=no |
15074 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15075 | soname_spec='${libname}${release}${shared_ext}$major' |
15076 | shlibpath_var=LD_LIBRARY_PATH |
15077 | hardcode_into_libs=yes |
15078 | if test "$with_gnu_ld" = yes; then |
15079 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
15080 | shlibpath_overrides_runpath=no |
15081 | else |
15082 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
15083 | shlibpath_overrides_runpath=yes |
15084 | case $host_os in |
15085 | sco3.2v5*) |
15086 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
15087 | ;; |
15088 | esac |
15089 | fi |
15090 | sys_lib_dlsearch_path_spec='/usr/lib' |
15091 | ;; |
15092 | |
15093 | uts4*) |
15094 | version_type=linux |
15095 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15096 | soname_spec='${libname}${release}${shared_ext}$major' |
15097 | shlibpath_var=LD_LIBRARY_PATH |
15098 | ;; |
15099 | |
15100 | *) |
15101 | dynamic_linker=no |
15102 | ;; |
15103 | esac |
15104 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
15105 | echo "${ECHO_T}$dynamic_linker" >&6 |
15106 | test "$dynamic_linker" = no && can_build_shared=no |
15107 | |
15108 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
15109 | if test "$GCC" = yes; then |
15110 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
15111 | fi |
15112 | |
15113 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
15114 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
15115 | hardcode_action_F77= |
15116 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
15117 | test -n "$runpath_var_F77" || \ |
15118 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
15119 | |
15120 | # We can hardcode non-existant directories. |
15121 | if test "$hardcode_direct_F77" != no && |
15122 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
15123 | # have to relink, otherwise we might link with an installed library |
15124 | # when we should be linking with a yet-to-be-installed one |
15125 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
15126 | test "$hardcode_minus_L_F77" != no; then |
15127 | # Linking always hardcodes the temporary library directory. |
15128 | hardcode_action_F77=relink |
15129 | else |
15130 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
15131 | hardcode_action_F77=immediate |
15132 | fi |
15133 | else |
15134 | # We cannot hardcode anything, or else we can only hardcode existing |
15135 | # directories. |
15136 | hardcode_action_F77=unsupported |
15137 | fi |
15138 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
15139 | echo "${ECHO_T}$hardcode_action_F77" >&6 |
15140 | |
15141 | if test "$hardcode_action_F77" = relink; then |
15142 | # Fast installation is not supported |
15143 | enable_fast_install=no |
15144 | elif test "$shlibpath_overrides_runpath" = yes || |
15145 | test "$enable_shared" = no; then |
15146 | # Fast installation is not necessary |
15147 | enable_fast_install=needless |
15148 | fi |
15149 | |
15150 | |
15151 | # The else clause should only fire when bootstrapping the |
15152 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
15153 | # with your package, and you will get complaints that there are |
15154 | # no rules to generate ltmain.sh. |
15155 | if test -f "$ltmain"; then |
15156 | # See if we are running on zsh, and set the options which allow our commands through |
15157 | # without removal of \ escapes. |
15158 | if test -n "${ZSH_VERSION+set}" ; then |
15159 | setopt NO_GLOB_SUBST |
15160 | fi |
15161 | # Now quote all the things that may contain metacharacters while being |
15162 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
15163 | # variables and quote the copies for generation of the libtool script. |
15164 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
15165 | SED SHELL STRIP \ |
15166 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
15167 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
15168 | deplibs_check_method reload_flag reload_cmds need_locks \ |
15169 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
15170 | lt_cv_sys_global_symbol_to_c_name_address \ |
15171 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
15172 | old_postinstall_cmds old_postuninstall_cmds \ |
15173 | compiler_F77 \ |
15174 | CC_F77 \ |
15175 | LD_F77 \ |
15176 | lt_prog_compiler_wl_F77 \ |
15177 | lt_prog_compiler_pic_F77 \ |
15178 | lt_prog_compiler_static_F77 \ |
15179 | lt_prog_compiler_no_builtin_flag_F77 \ |
15180 | export_dynamic_flag_spec_F77 \ |
15181 | thread_safe_flag_spec_F77 \ |
15182 | whole_archive_flag_spec_F77 \ |
15183 | enable_shared_with_static_runtimes_F77 \ |
15184 | old_archive_cmds_F77 \ |
15185 | old_archive_from_new_cmds_F77 \ |
15186 | predep_objects_F77 \ |
15187 | postdep_objects_F77 \ |
15188 | predeps_F77 \ |
15189 | postdeps_F77 \ |
15190 | compiler_lib_search_path_F77 \ |
15191 | archive_cmds_F77 \ |
15192 | archive_expsym_cmds_F77 \ |
15193 | postinstall_cmds_F77 \ |
15194 | postuninstall_cmds_F77 \ |
15195 | old_archive_from_expsyms_cmds_F77 \ |
15196 | allow_undefined_flag_F77 \ |
15197 | no_undefined_flag_F77 \ |
15198 | export_symbols_cmds_F77 \ |
15199 | hardcode_libdir_flag_spec_F77 \ |
15200 | hardcode_libdir_flag_spec_ld_F77 \ |
15201 | hardcode_libdir_separator_F77 \ |
15202 | hardcode_automatic_F77 \ |
15203 | module_cmds_F77 \ |
15204 | module_expsym_cmds_F77 \ |
15205 | lt_cv_prog_compiler_c_o_F77 \ |
15206 | exclude_expsyms_F77 \ |
15207 | include_expsyms_F77; do |
15208 | |
15209 | case $var in |
15210 | old_archive_cmds_F77 | \ |
15211 | old_archive_from_new_cmds_F77 | \ |
15212 | archive_cmds_F77 | \ |
15213 | archive_expsym_cmds_F77 | \ |
15214 | module_cmds_F77 | \ |
15215 | module_expsym_cmds_F77 | \ |
15216 | old_archive_from_expsyms_cmds_F77 | \ |
15217 | export_symbols_cmds_F77 | \ |
15218 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
15219 | postinstall_cmds | postuninstall_cmds | \ |
15220 | old_postinstall_cmds | old_postuninstall_cmds | \ |
15221 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
15222 | # Double-quote double-evaled strings. |
15223 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
15224 | ;; |
15225 | *) |
15226 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
15227 | ;; |
15228 | esac |
15229 | done |
15230 | |
15231 | case $lt_echo in |
15232 | *'\$0 --fallback-echo"') |
15233 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
15234 | ;; |
15235 | esac |
15236 | |
15237 | cfgfile="$ofile" |
15238 | |
15239 | cat <<__EOF__ >> "$cfgfile" |
15240 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
15241 | |
15242 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
15243 | |
15244 | # Shell to use when invoking shell scripts. |
15245 | SHELL=$lt_SHELL |
15246 | |
15247 | # Whether or not to build shared libraries. |
15248 | build_libtool_libs=$enable_shared |
15249 | |
15250 | # Whether or not to build static libraries. |
15251 | build_old_libs=$enable_static |
15252 | |
15253 | # Whether or not to add -lc for building shared libraries. |
15254 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
15255 | |
15256 | # Whether or not to disallow shared libs when runtime libs are static |
15257 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
15258 | |
15259 | # Whether or not to optimize for fast installation. |
15260 | fast_install=$enable_fast_install |
15261 | |
15262 | # The host system. |
15263 | host_alias=$host_alias |
15264 | host=$host |
15265 | host_os=$host_os |
15266 | |
15267 | # The build system. |
15268 | build_alias=$build_alias |
15269 | build=$build |
15270 | build_os=$build_os |
15271 | |
15272 | # An echo program that does not interpret backslashes. |
15273 | echo=$lt_echo |
15274 | |
15275 | # The archiver. |
15276 | AR=$lt_AR |
15277 | AR_FLAGS=$lt_AR_FLAGS |
15278 | |
15279 | # A C compiler. |
15280 | LTCC=$lt_LTCC |
15281 | |
15282 | # LTCC compiler flags. |
15283 | LTCFLAGS=$lt_LTCFLAGS |
15284 | |
15285 | # A language-specific compiler. |
15286 | CC=$lt_compiler_F77 |
15287 | |
15288 | # Is the compiler the GNU C compiler? |
15289 | with_gcc=$GCC_F77 |
15290 | |
15291 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
15292 | gcc_ver=\`gcc -dumpversion\` |
15293 | |
15294 | # An ERE matcher. |
15295 | EGREP=$lt_EGREP |
15296 | |
15297 | # The linker used to build libraries. |
15298 | LD=$lt_LD_F77 |
15299 | |
15300 | # Whether we need hard or soft links. |
15301 | LN_S=$lt_LN_S |
15302 | |
15303 | # A BSD-compatible nm program. |
15304 | NM=$lt_NM |
15305 | |
15306 | # A symbol stripping program |
15307 | STRIP=$lt_STRIP |
15308 | |
15309 | # Used to examine libraries when file_magic_cmd begins "file" |
15310 | MAGIC_CMD=$MAGIC_CMD |
15311 | |
15312 | # Used on cygwin: DLL creation program. |
15313 | DLLTOOL="$DLLTOOL" |
15314 | |
15315 | # Used on cygwin: object dumper. |
15316 | OBJDUMP="$OBJDUMP" |
15317 | |
15318 | # Used on cygwin: assembler. |
15319 | AS="$AS" |
15320 | |
15321 | # The name of the directory that contains temporary libtool files. |
15322 | objdir=$objdir |
15323 | |
15324 | # How to create reloadable object files. |
15325 | reload_flag=$lt_reload_flag |
15326 | reload_cmds=$lt_reload_cmds |
15327 | |
15328 | # How to pass a linker flag through the compiler. |
15329 | wl=$lt_lt_prog_compiler_wl_F77 |
15330 | |
15331 | # Object file suffix (normally "o"). |
15332 | objext="$ac_objext" |
15333 | |
15334 | # Old archive suffix (normally "a"). |
15335 | libext="$libext" |
15336 | |
15337 | # Shared library suffix (normally ".so"). |
15338 | shrext_cmds='$shrext_cmds' |
15339 | |
15340 | # Executable file suffix (normally ""). |
15341 | exeext="$exeext" |
15342 | |
15343 | # Additional compiler flags for building library objects. |
15344 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
15345 | pic_mode=$pic_mode |
15346 | |
15347 | # What is the maximum length of a command? |
15348 | max_cmd_len=$lt_cv_sys_max_cmd_len |
15349 | |
15350 | # Does compiler simultaneously support -c and -o options? |
15351 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
15352 | |
15353 | # Must we lock files when doing compilation? |
15354 | need_locks=$lt_need_locks |
15355 | |
15356 | # Do we need the lib prefix for modules? |
15357 | need_lib_prefix=$need_lib_prefix |
15358 | |
15359 | # Do we need a version for libraries? |
15360 | need_version=$need_version |
15361 | |
15362 | # Whether dlopen is supported. |
15363 | dlopen_support=$enable_dlopen |
15364 | |
15365 | # Whether dlopen of programs is supported. |
15366 | dlopen_self=$enable_dlopen_self |
15367 | |
15368 | # Whether dlopen of statically linked programs is supported. |
15369 | dlopen_self_static=$enable_dlopen_self_static |
15370 | |
15371 | # Compiler flag to prevent dynamic linking. |
15372 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
15373 | |
15374 | # Compiler flag to turn off builtin functions. |
15375 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
15376 | |
15377 | # Compiler flag to allow reflexive dlopens. |
15378 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
15379 | |
15380 | # Compiler flag to generate shared objects directly from archives. |
15381 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
15382 | |
15383 | # Compiler flag to generate thread-safe objects. |
15384 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
15385 | |
15386 | # Library versioning type. |
15387 | version_type=$version_type |
15388 | |
15389 | # Format of library name prefix. |
15390 | libname_spec=$lt_libname_spec |
15391 | |
15392 | # List of archive names. First name is the real one, the rest are links. |
15393 | # The last name is the one that the linker finds with -lNAME. |
15394 | library_names_spec=$lt_library_names_spec |
15395 | |
15396 | # The coded name of the library, if different from the real name. |
15397 | soname_spec=$lt_soname_spec |
15398 | |
15399 | # Commands used to build and install an old-style archive. |
15400 | RANLIB=$lt_RANLIB |
15401 | old_archive_cmds=$lt_old_archive_cmds_F77 |
15402 | old_postinstall_cmds=$lt_old_postinstall_cmds |
15403 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
15404 | |
15405 | # Create an old-style archive from a shared archive. |
15406 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
15407 | |
15408 | # Create a temporary old-style archive to link instead of a shared archive. |
15409 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
15410 | |
15411 | # Commands used to build and install a shared archive. |
15412 | archive_cmds=$lt_archive_cmds_F77 |
15413 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
15414 | postinstall_cmds=$lt_postinstall_cmds |
15415 | postuninstall_cmds=$lt_postuninstall_cmds |
15416 | |
15417 | # Commands used to build a loadable module (assumed same as above if empty) |
15418 | module_cmds=$lt_module_cmds_F77 |
15419 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
15420 | |
15421 | # Commands to strip libraries. |
15422 | old_striplib=$lt_old_striplib |
15423 | striplib=$lt_striplib |
15424 | |
15425 | # Dependencies to place before the objects being linked to create a |
15426 | # shared library. |
15427 | predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
15428 | |
15429 | # Dependencies to place after the objects being linked to create a |
15430 | # shared library. |
15431 | postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
15432 | |
15433 | # Dependencies to place before the objects being linked to create a |
15434 | # shared library. |
15435 | predeps=$lt_predeps_F77 |
15436 | |
15437 | # Dependencies to place after the objects being linked to create a |
15438 | # shared library. |
15439 | postdeps=$lt_postdeps_F77 |
15440 | |
15441 | # The library search path used internally by the compiler when linking |
15442 | # a shared library. |
15443 | 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"\` |
15444 | |
15445 | # Method to check whether dependent libraries are shared objects. |
15446 | deplibs_check_method=$lt_deplibs_check_method |
15447 | |
15448 | # Command to use when deplibs_check_method == file_magic. |
15449 | file_magic_cmd=$lt_file_magic_cmd |
15450 | |
15451 | # Flag that allows shared libraries with undefined symbols to be built. |
15452 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
15453 | |
15454 | # Flag that forces no undefined symbols. |
15455 | no_undefined_flag=$lt_no_undefined_flag_F77 |
15456 | |
15457 | # Commands used to finish a libtool library installation in a directory. |
15458 | finish_cmds=$lt_finish_cmds |
15459 | |
15460 | # Same as above, but a single script fragment to be evaled but not shown. |
15461 | finish_eval=$lt_finish_eval |
15462 | |
15463 | # Take the output of nm and produce a listing of raw symbols and C names. |
15464 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
15465 | |
15466 | # Transform the output of nm in a proper C declaration |
15467 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
15468 | |
15469 | # Transform the output of nm in a C name address pair |
15470 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
15471 | |
15472 | # This is the shared library runtime path variable. |
15473 | runpath_var=$runpath_var |
15474 | |
15475 | # This is the shared library path variable. |
15476 | shlibpath_var=$shlibpath_var |
15477 | |
15478 | # Is shlibpath searched before the hard-coded library search path? |
15479 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
15480 | |
15481 | # How to hardcode a shared library path into an executable. |
15482 | hardcode_action=$hardcode_action_F77 |
15483 | |
15484 | # Whether we should hardcode library paths into libraries. |
15485 | hardcode_into_libs=$hardcode_into_libs |
15486 | |
15487 | # Flag to hardcode \$libdir into a binary during linking. |
15488 | # This must work even if \$libdir does not exist. |
15489 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
15490 | |
15491 | # If ld is used when linking, flag to hardcode \$libdir into |
15492 | # a binary during linking. This must work even if \$libdir does |
15493 | # not exist. |
15494 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
15495 | |
15496 | # Whether we need a single -rpath flag with a separated argument. |
15497 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
15498 | |
15499 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
15500 | # resulting binary. |
15501 | hardcode_direct=$hardcode_direct_F77 |
15502 | |
15503 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
15504 | # resulting binary. |
15505 | hardcode_minus_L=$hardcode_minus_L_F77 |
15506 | |
15507 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
15508 | # the resulting binary. |
15509 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
15510 | |
15511 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
15512 | # and all subsequent libraries and executables linked against it. |
15513 | hardcode_automatic=$hardcode_automatic_F77 |
15514 | |
15515 | # Variables whose values should be saved in libtool wrapper scripts and |
15516 | # restored at relink time. |
15517 | variables_saved_for_relink="$variables_saved_for_relink" |
15518 | |
15519 | # Whether libtool must link a program against all its dependency libraries. |
15520 | link_all_deplibs=$link_all_deplibs_F77 |
15521 | |
15522 | # Compile-time system search path for libraries |
15523 | 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"\` |
15524 | |
15525 | # Run-time system search path for libraries |
15526 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
15527 | |
15528 | # Fix the shell variable \$srcfile for the compiler. |
15529 | fix_srcfile_path="$fix_srcfile_path_F77" |
15530 | |
15531 | # Set to yes if exported symbols are required. |
15532 | always_export_symbols=$always_export_symbols_F77 |
15533 | |
15534 | # The commands to list exported symbols. |
15535 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
15536 | |
15537 | # The commands to extract the exported symbol list from a shared archive. |
15538 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
15539 | |
15540 | # Symbols that should not be listed in the preloaded symbols. |
15541 | exclude_expsyms=$lt_exclude_expsyms_F77 |
15542 | |
15543 | # Symbols that must always be exported. |
15544 | include_expsyms=$lt_include_expsyms_F77 |
15545 | |
15546 | # ### END LIBTOOL TAG CONFIG: $tagname |
15547 | |
15548 | __EOF__ |
15549 | |
15550 | |
15551 | else |
15552 | # If there is no Makefile yet, we rely on a make rule to execute |
15553 | # `config.status --recheck' to rerun these tests and create the |
15554 | # libtool script then. |
15555 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
15556 | if test -f "$ltmain_in"; then |
15557 | test -f Makefile && make "$ltmain" |
15558 | fi |
15559 | fi |
15560 | |
15561 | |
15562 | ac_ext=c |
15563 | ac_cpp='$CPP $CPPFLAGS' |
15564 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
15565 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
15566 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
15567 | |
15568 | CC="$lt_save_CC" |
15569 | |
15570 | else |
15571 | tagname="" |
15572 | fi |
15573 | ;; |
15574 | |
15575 | GCJ) |
15576 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
15577 | |
15578 | |
15579 | |
15580 | # Source file extension for Java test sources. |
15581 | ac_ext=java |
15582 | |
15583 | # Object file extension for compiled Java test sources. |
15584 | objext=o |
15585 | objext_GCJ=$objext |
15586 | |
15587 | # Code to be used in simple compile tests |
15588 | lt_simple_compile_test_code="class foo {}\n" |
15589 | |
15590 | # Code to be used in simple link tests |
15591 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
15592 | |
15593 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
15594 | |
15595 | # If no C compiler was specified, use CC. |
15596 | LTCC=${LTCC-"$CC"} |
15597 | |
15598 | # If no C compiler flags were specified, use CFLAGS. |
15599 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
15600 | |
15601 | # Allow CC to be a program name with arguments. |
15602 | compiler=$CC |
15603 | |
15604 | |
15605 | # save warnings/boilerplate of simple test code |
15606 | ac_outfile=conftest.$ac_objext |
15607 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
15608 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
15609 | _lt_compiler_boilerplate=`cat conftest.err` |
15610 | $rm conftest* |
15611 | |
15612 | ac_outfile=conftest.$ac_objext |
15613 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
15614 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
15615 | _lt_linker_boilerplate=`cat conftest.err` |
15616 | $rm conftest* |
15617 | |
15618 | |
15619 | # Allow CC to be a program name with arguments. |
15620 | lt_save_CC="$CC" |
15621 | CC=${GCJ-"gcj"} |
15622 | compiler=$CC |
15623 | compiler_GCJ=$CC |
15624 | for cc_temp in $compiler""; do |
15625 | case $cc_temp in |
15626 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
15627 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
15628 | \-*) ;; |
15629 | *) break;; |
15630 | esac |
15631 | done |
15632 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
15633 | |
15634 | |
15635 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
15636 | archive_cmds_need_lc_GCJ=no |
15637 | |
15638 | old_archive_cmds_GCJ=$old_archive_cmds |
15639 | |
15640 | |
15641 | lt_prog_compiler_no_builtin_flag_GCJ= |
15642 | |
15643 | if test "$GCC" = yes; then |
15644 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
15645 | |
15646 | |
15647 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
15648 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
15649 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
15650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15651 | else |
15652 | lt_cv_prog_compiler_rtti_exceptions=no |
15653 | ac_outfile=conftest.$ac_objext |
15654 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
15655 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
15656 | # Insert the option either (1) after the last *FLAGS variable, or |
15657 | # (2) before a word containing "conftest.", or (3) at the end. |
15658 | # Note that $ac_compile itself does not contain backslashes and begins |
15659 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
15660 | # The option is referenced via a variable to avoid confusing sed. |
15661 | lt_compile=`echo "$ac_compile" | $SED \ |
15662 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
15663 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
15664 | -e 's:$: $lt_compiler_flag:'` |
15665 | (eval echo "\"\$as_me:15665: $lt_compile\"" >&5) |
15666 | (eval "$lt_compile" 2>conftest.err) |
15667 | ac_status=$? |
15668 | cat conftest.err >&5 |
15669 | echo "$as_me:15669: \$? = $ac_status" >&5 |
15670 | if (exit $ac_status) && test -s "$ac_outfile"; then |
15671 | # The compiler can only warn and ignore the option if not recognized |
15672 | # So say no if there are warnings other than the usual output. |
15673 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
15674 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
15675 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
15676 | lt_cv_prog_compiler_rtti_exceptions=yes |
15677 | fi |
15678 | fi |
15679 | $rm conftest* |
15680 | |
15681 | fi |
15682 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
15683 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
15684 | |
15685 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
15686 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
15687 | else |
15688 | : |
15689 | fi |
15690 | |
15691 | fi |
15692 | |
15693 | lt_prog_compiler_wl_GCJ= |
15694 | lt_prog_compiler_pic_GCJ= |
15695 | lt_prog_compiler_static_GCJ= |
15696 | |
15697 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
15698 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
15699 | |
15700 | if test "$GCC" = yes; then |
15701 | lt_prog_compiler_wl_GCJ='-Wl,' |
15702 | lt_prog_compiler_static_GCJ='-static' |
15703 | |
15704 | case $host_os in |
15705 | aix*) |
15706 | # All AIX code is PIC. |
15707 | if test "$host_cpu" = ia64; then |
15708 | # AIX 5 now supports IA64 processor |
15709 | lt_prog_compiler_static_GCJ='-Bstatic' |
15710 | fi |
15711 | ;; |
15712 | |
15713 | amigaos*) |
15714 | # FIXME: we need at least 68020 code to build shared libraries, but |
15715 | # adding the `-m68020' flag to GCC prevents building anything better, |
15716 | # like `-m68040'. |
15717 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
15718 | ;; |
15719 | |
15720 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
15721 | # PIC is the default for these OSes. |
15722 | ;; |
15723 | |
15724 | mingw* | pw32* | os2*) |
15725 | # This hack is so that the source file can tell whether it is being |
15726 | # built for inclusion in a dll (and should export symbols for example). |
15727 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
15728 | ;; |
15729 | |
15730 | darwin* | rhapsody*) |
15731 | # PIC is the default on this platform |
15732 | # Common symbols not allowed in MH_DYLIB files |
15733 | lt_prog_compiler_pic_GCJ='-fno-common' |
15734 | ;; |
15735 | |
15736 | interix3*) |
15737 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
15738 | # Instead, we relocate shared libraries at runtime. |
15739 | ;; |
15740 | |
15741 | msdosdjgpp*) |
15742 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
15743 | # on systems that don't support them. |
15744 | lt_prog_compiler_can_build_shared_GCJ=no |
15745 | enable_shared=no |
15746 | ;; |
15747 | |
15748 | sysv4*MP*) |
15749 | if test -d /usr/nec; then |
15750 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
15751 | fi |
15752 | ;; |
15753 | |
15754 | hpux*) |
15755 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
15756 | # not for PA HP-UX. |
15757 | case $host_cpu in |
15758 | hppa*64*|ia64*) |
15759 | # +Z the default |
15760 | ;; |
15761 | *) |
15762 | lt_prog_compiler_pic_GCJ='-fPIC' |
15763 | ;; |
15764 | esac |
15765 | ;; |
15766 | |
15767 | *) |
15768 | lt_prog_compiler_pic_GCJ='-fPIC' |
15769 | ;; |
15770 | esac |
15771 | else |
15772 | # PORTME Check for flag to pass linker flags through the system compiler. |
15773 | case $host_os in |
15774 | aix*) |
15775 | lt_prog_compiler_wl_GCJ='-Wl,' |
15776 | if test "$host_cpu" = ia64; then |
15777 | # AIX 5 now supports IA64 processor |
15778 | lt_prog_compiler_static_GCJ='-Bstatic' |
15779 | else |
15780 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
15781 | fi |
15782 | ;; |
15783 | darwin*) |
15784 | # PIC is the default on this platform |
15785 | # Common symbols not allowed in MH_DYLIB files |
15786 | case $cc_basename in |
15787 | xlc*) |
15788 | lt_prog_compiler_pic_GCJ='-qnocommon' |
15789 | lt_prog_compiler_wl_GCJ='-Wl,' |
15790 | ;; |
15791 | esac |
15792 | ;; |
15793 | |
15794 | mingw* | pw32* | os2*) |
15795 | # This hack is so that the source file can tell whether it is being |
15796 | # built for inclusion in a dll (and should export symbols for example). |
15797 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
15798 | ;; |
15799 | |
15800 | hpux9* | hpux10* | hpux11*) |
15801 | lt_prog_compiler_wl_GCJ='-Wl,' |
15802 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
15803 | # not for PA HP-UX. |
15804 | case $host_cpu in |
15805 | hppa*64*|ia64*) |
15806 | # +Z the default |
15807 | ;; |
15808 | *) |
15809 | lt_prog_compiler_pic_GCJ='+Z' |
15810 | ;; |
15811 | esac |
15812 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
15813 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
15814 | ;; |
15815 | |
15816 | irix5* | irix6* | nonstopux*) |
15817 | lt_prog_compiler_wl_GCJ='-Wl,' |
15818 | # PIC (with -KPIC) is the default. |
15819 | lt_prog_compiler_static_GCJ='-non_shared' |
15820 | ;; |
15821 | |
15822 | newsos6) |
15823 | lt_prog_compiler_pic_GCJ='-KPIC' |
15824 | lt_prog_compiler_static_GCJ='-Bstatic' |
15825 | ;; |
15826 | |
15827 | linux*) |
15828 | case $cc_basename in |
15829 | icc* | ecc*) |
15830 | lt_prog_compiler_wl_GCJ='-Wl,' |
15831 | lt_prog_compiler_pic_GCJ='-KPIC' |
15832 | lt_prog_compiler_static_GCJ='-static' |
15833 | ;; |
15834 | pgcc* | pgf77* | pgf90* | pgf95*) |
15835 | # Portland Group compilers (*not* the Pentium gcc compiler, |
15836 | # which looks to be a dead project) |
15837 | lt_prog_compiler_wl_GCJ='-Wl,' |
15838 | lt_prog_compiler_pic_GCJ='-fpic' |
15839 | lt_prog_compiler_static_GCJ='-Bstatic' |
15840 | ;; |
15841 | ccc*) |
15842 | lt_prog_compiler_wl_GCJ='-Wl,' |
15843 | # All Alpha code is PIC. |
15844 | lt_prog_compiler_static_GCJ='-non_shared' |
15845 | ;; |
15846 | esac |
15847 | ;; |
15848 | |
15849 | osf3* | osf4* | osf5*) |
15850 | lt_prog_compiler_wl_GCJ='-Wl,' |
15851 | # All OSF/1 code is PIC. |
15852 | lt_prog_compiler_static_GCJ='-non_shared' |
15853 | ;; |
15854 | |
15855 | solaris*) |
15856 | lt_prog_compiler_pic_GCJ='-KPIC' |
15857 | lt_prog_compiler_static_GCJ='-Bstatic' |
15858 | case $cc_basename in |
15859 | f77* | f90* | f95*) |
15860 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
15861 | *) |
15862 | lt_prog_compiler_wl_GCJ='-Wl,';; |
15863 | esac |
15864 | ;; |
15865 | |
15866 | sunos4*) |
15867 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
15868 | lt_prog_compiler_pic_GCJ='-PIC' |
15869 | lt_prog_compiler_static_GCJ='-Bstatic' |
15870 | ;; |
15871 | |
15872 | sysv4 | sysv4.2uw2* | sysv4.3*) |
15873 | lt_prog_compiler_wl_GCJ='-Wl,' |
15874 | lt_prog_compiler_pic_GCJ='-KPIC' |
15875 | lt_prog_compiler_static_GCJ='-Bstatic' |
15876 | ;; |
15877 | |
15878 | sysv4*MP*) |
15879 | if test -d /usr/nec ;then |
15880 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
15881 | lt_prog_compiler_static_GCJ='-Bstatic' |
15882 | fi |
15883 | ;; |
15884 | |
15885 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
15886 | lt_prog_compiler_wl_GCJ='-Wl,' |
15887 | lt_prog_compiler_pic_GCJ='-KPIC' |
15888 | lt_prog_compiler_static_GCJ='-Bstatic' |
15889 | ;; |
15890 | |
15891 | unicos*) |
15892 | lt_prog_compiler_wl_GCJ='-Wl,' |
15893 | lt_prog_compiler_can_build_shared_GCJ=no |
15894 | ;; |
15895 | |
15896 | uts4*) |
15897 | lt_prog_compiler_pic_GCJ='-pic' |
15898 | lt_prog_compiler_static_GCJ='-Bstatic' |
15899 | ;; |
15900 | |
15901 | *) |
15902 | lt_prog_compiler_can_build_shared_GCJ=no |
15903 | ;; |
15904 | esac |
15905 | fi |
15906 | |
15907 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
15908 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
15909 | |
15910 | # |
15911 | # Check to make sure the PIC flag actually works. |
15912 | # |
15913 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
15914 | |
15915 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
15916 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
15917 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
15918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15919 | else |
15920 | lt_prog_compiler_pic_works_GCJ=no |
15921 | ac_outfile=conftest.$ac_objext |
15922 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
15923 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
15924 | # Insert the option either (1) after the last *FLAGS variable, or |
15925 | # (2) before a word containing "conftest.", or (3) at the end. |
15926 | # Note that $ac_compile itself does not contain backslashes and begins |
15927 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
15928 | # The option is referenced via a variable to avoid confusing sed. |
15929 | lt_compile=`echo "$ac_compile" | $SED \ |
15930 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
15931 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
15932 | -e 's:$: $lt_compiler_flag:'` |
15933 | (eval echo "\"\$as_me:15933: $lt_compile\"" >&5) |
15934 | (eval "$lt_compile" 2>conftest.err) |
15935 | ac_status=$? |
15936 | cat conftest.err >&5 |
15937 | echo "$as_me:15937: \$? = $ac_status" >&5 |
15938 | if (exit $ac_status) && test -s "$ac_outfile"; then |
15939 | # The compiler can only warn and ignore the option if not recognized |
15940 | # So say no if there are warnings other than the usual output. |
15941 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
15942 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
15943 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
15944 | lt_prog_compiler_pic_works_GCJ=yes |
15945 | fi |
15946 | fi |
15947 | $rm conftest* |
15948 | |
15949 | fi |
15950 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
15951 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
15952 | |
15953 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
15954 | case $lt_prog_compiler_pic_GCJ in |
15955 | "" | " "*) ;; |
15956 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
15957 | esac |
15958 | else |
15959 | lt_prog_compiler_pic_GCJ= |
15960 | lt_prog_compiler_can_build_shared_GCJ=no |
15961 | fi |
15962 | |
15963 | fi |
15964 | case $host_os in |
15965 | # For platforms which do not support PIC, -DPIC is meaningless: |
15966 | *djgpp*) |
15967 | lt_prog_compiler_pic_GCJ= |
15968 | ;; |
15969 | *) |
15970 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
15971 | ;; |
15972 | esac |
15973 | |
15974 | # |
15975 | # Check to make sure the static flag actually works. |
15976 | # |
15977 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
15978 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
15979 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
15980 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
15981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15982 | else |
15983 | lt_prog_compiler_static_works_GCJ=no |
15984 | save_LDFLAGS="$LDFLAGS" |
15985 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
15986 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
15987 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
15988 | # The linker can only warn and ignore the option if not recognized |
15989 | # So say no if there are warnings |
15990 | if test -s conftest.err; then |
15991 | # Append any errors to the config.log. |
15992 | cat conftest.err 1>&5 |
15993 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
15994 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
15995 | if diff conftest.exp conftest.er2 >/dev/null; then |
15996 | lt_prog_compiler_static_works_GCJ=yes |
15997 | fi |
15998 | else |
15999 | lt_prog_compiler_static_works_GCJ=yes |
16000 | fi |
16001 | fi |
16002 | $rm conftest* |
16003 | LDFLAGS="$save_LDFLAGS" |
16004 | |
16005 | fi |
16006 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
16007 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 |
16008 | |
16009 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
16010 | : |
16011 | else |
16012 | lt_prog_compiler_static_GCJ= |
16013 | fi |
16014 | |
16015 | |
16016 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
16017 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
16018 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
16019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16020 | else |
16021 | lt_cv_prog_compiler_c_o_GCJ=no |
16022 | $rm -r conftest 2>/dev/null |
16023 | mkdir conftest |
16024 | cd conftest |
16025 | mkdir out |
16026 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16027 | |
16028 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
16029 | # Insert the option either (1) after the last *FLAGS variable, or |
16030 | # (2) before a word containing "conftest.", or (3) at the end. |
16031 | # Note that $ac_compile itself does not contain backslashes and begins |
16032 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16033 | lt_compile=`echo "$ac_compile" | $SED \ |
16034 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16035 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16036 | -e 's:$: $lt_compiler_flag:'` |
16037 | (eval echo "\"\$as_me:16037: $lt_compile\"" >&5) |
16038 | (eval "$lt_compile" 2>out/conftest.err) |
16039 | ac_status=$? |
16040 | cat out/conftest.err >&5 |
16041 | echo "$as_me:16041: \$? = $ac_status" >&5 |
16042 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16043 | then |
16044 | # The compiler can only warn and ignore the option if not recognized |
16045 | # So say no if there are warnings |
16046 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
16047 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
16048 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
16049 | lt_cv_prog_compiler_c_o_GCJ=yes |
16050 | fi |
16051 | fi |
16052 | chmod u+w . 2>&5 |
16053 | $rm conftest* |
16054 | # SGI C++ compiler will create directory out/ii_files/ for |
16055 | # template instantiation |
16056 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
16057 | $rm out/* && rmdir out |
16058 | cd .. |
16059 | rmdir conftest |
16060 | $rm conftest* |
16061 | |
16062 | fi |
16063 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
16064 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
16065 | |
16066 | |
16067 | hard_links="nottested" |
16068 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
16069 | # do not overwrite the value of need_locks provided by the user |
16070 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
16071 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
16072 | hard_links=yes |
16073 | $rm conftest* |
16074 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16075 | touch conftest.a |
16076 | ln conftest.a conftest.b 2>&5 || hard_links=no |
16077 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16078 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
16079 | echo "${ECHO_T}$hard_links" >&6 |
16080 | if test "$hard_links" = no; then |
16081 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
16082 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
16083 | need_locks=warn |
16084 | fi |
16085 | else |
16086 | need_locks=no |
16087 | fi |
16088 | |
16089 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
16090 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
16091 | |
16092 | runpath_var= |
16093 | allow_undefined_flag_GCJ= |
16094 | enable_shared_with_static_runtimes_GCJ=no |
16095 | archive_cmds_GCJ= |
16096 | archive_expsym_cmds_GCJ= |
16097 | old_archive_From_new_cmds_GCJ= |
16098 | old_archive_from_expsyms_cmds_GCJ= |
16099 | export_dynamic_flag_spec_GCJ= |
16100 | whole_archive_flag_spec_GCJ= |
16101 | thread_safe_flag_spec_GCJ= |
16102 | hardcode_libdir_flag_spec_GCJ= |
16103 | hardcode_libdir_flag_spec_ld_GCJ= |
16104 | hardcode_libdir_separator_GCJ= |
16105 | hardcode_direct_GCJ=no |
16106 | hardcode_minus_L_GCJ=no |
16107 | hardcode_shlibpath_var_GCJ=unsupported |
16108 | link_all_deplibs_GCJ=unknown |
16109 | hardcode_automatic_GCJ=no |
16110 | module_cmds_GCJ= |
16111 | module_expsym_cmds_GCJ= |
16112 | always_export_symbols_GCJ=no |
16113 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
16114 | # include_expsyms should be a list of space-separated symbols to be *always* |
16115 | # included in the symbol list |
16116 | include_expsyms_GCJ= |
16117 | # exclude_expsyms can be an extended regexp of symbols to exclude |
16118 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
16119 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
16120 | # as well as any symbol that contains `d'. |
16121 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
16122 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
16123 | # platforms (ab)use it in PIC code, but their linkers get confused if |
16124 | # the symbol is explicitly referenced. Since portable code cannot |
16125 | # rely on this symbol name, it's probably fine to never include it in |
16126 | # preloaded symbol tables. |
16127 | extract_expsyms_cmds= |
16128 | # Just being paranoid about ensuring that cc_basename is set. |
16129 | for cc_temp in $compiler""; do |
16130 | case $cc_temp in |
16131 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16132 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16133 | \-*) ;; |
16134 | *) break;; |
16135 | esac |
16136 | done |
16137 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16138 | |
16139 | case $host_os in |
16140 | cygwin* | mingw* | pw32*) |
16141 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
16142 | # When not using gcc, we currently assume that we are using |
16143 | # Microsoft Visual C++. |
16144 | if test "$GCC" != yes; then |
16145 | with_gnu_ld=no |
16146 | fi |
16147 | ;; |
16148 | interix*) |
16149 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
16150 | with_gnu_ld=yes |
16151 | ;; |
16152 | openbsd*) |
16153 | with_gnu_ld=no |
16154 | ;; |
16155 | esac |
16156 | |
16157 | ld_shlibs_GCJ=yes |
16158 | if test "$with_gnu_ld" = yes; then |
16159 | # If archive_cmds runs LD, not CC, wlarc should be empty |
16160 | wlarc='${wl}' |
16161 | |
16162 | # Set some defaults for GNU ld with shared library support. These |
16163 | # are reset later if shared libraries are not supported. Putting them |
16164 | # here allows them to be overridden if necessary. |
16165 | runpath_var=LD_RUN_PATH |
16166 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
16167 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
16168 | # ancient GNU ld didn't support --whole-archive et. al. |
16169 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
16170 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
16171 | else |
16172 | whole_archive_flag_spec_GCJ= |
16173 | fi |
16174 | supports_anon_versioning=no |
16175 | case `$LD -v 2>/dev/null` in |
16176 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
16177 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
16178 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
16179 | *\ 2.11.*) ;; # other 2.11 versions |
16180 | *) supports_anon_versioning=yes ;; |
16181 | esac |
16182 | |
16183 | # See if GNU ld supports shared libraries. |
16184 | case $host_os in |
16185 | aix3* | aix4* | aix5*) |
16186 | # On AIX/PPC, the GNU linker is very broken |
16187 | if test "$host_cpu" != ia64; then |
16188 | ld_shlibs_GCJ=no |
16189 | cat <<EOF 1>&2 |
16190 | |
16191 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
16192 | *** to be unable to reliably create shared libraries on AIX. |
16193 | *** Therefore, libtool is disabling shared libraries support. If you |
16194 | *** really care for shared libraries, you may want to modify your PATH |
16195 | *** so that a non-GNU linker is found, and then restart. |
16196 | |
16197 | EOF |
16198 | fi |
16199 | ;; |
16200 | |
16201 | amigaos*) |
16202 | 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)' |
16203 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16204 | hardcode_minus_L_GCJ=yes |
16205 | |
16206 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
16207 | # that the semantics of dynamic libraries on AmigaOS, at least up |
16208 | # to version 4, is to share data among multiple programs linked |
16209 | # with the same dynamic library. Since this doesn't match the |
16210 | # behavior of shared libraries on other platforms, we can't use |
16211 | # them. |
16212 | ld_shlibs_GCJ=no |
16213 | ;; |
16214 | |
16215 | beos*) |
16216 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16217 | allow_undefined_flag_GCJ=unsupported |
16218 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
16219 | # support --undefined. This deserves some investigation. FIXME |
16220 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16221 | else |
16222 | ld_shlibs_GCJ=no |
16223 | fi |
16224 | ;; |
16225 | |
16226 | cygwin* | mingw* | pw32*) |
16227 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
16228 | # as there is no search path for DLLs. |
16229 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16230 | allow_undefined_flag_GCJ=unsupported |
16231 | always_export_symbols_GCJ=no |
16232 | enable_shared_with_static_runtimes_GCJ=yes |
16233 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
16234 | |
16235 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
16236 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16237 | # If the export-symbols file already is a .def file (1st line |
16238 | # is EXPORTS), use it as is; otherwise, prepend... |
16239 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
16240 | cp $export_symbols $output_objdir/$soname.def; |
16241 | else |
16242 | echo EXPORTS > $output_objdir/$soname.def; |
16243 | cat $export_symbols >> $output_objdir/$soname.def; |
16244 | fi~ |
16245 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16246 | else |
16247 | ld_shlibs_GCJ=no |
16248 | fi |
16249 | ;; |
16250 | |
16251 | interix3*) |
16252 | hardcode_direct_GCJ=no |
16253 | hardcode_shlibpath_var_GCJ=no |
16254 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
16255 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16256 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
16257 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
16258 | # default) and relocated if they conflict, which is a slow very memory |
16259 | # consuming and fragmenting process. To avoid this, we pick a random, |
16260 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
16261 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
16262 | 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' |
16263 | 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' |
16264 | ;; |
16265 | |
16266 | linux*) |
16267 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16268 | tmp_addflag= |
16269 | case $cc_basename,$host_cpu in |
16270 | pgcc*) # Portland Group C compiler |
16271 | 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' |
16272 | tmp_addflag=' $pic_flag' |
16273 | ;; |
16274 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
16275 | 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' |
16276 | tmp_addflag=' $pic_flag -Mnomain' ;; |
16277 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
16278 | tmp_addflag=' -i_dynamic' ;; |
16279 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
16280 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
16281 | ifc* | ifort*) # Intel Fortran compiler |
16282 | tmp_addflag=' -nofor_main' ;; |
16283 | esac |
16284 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16285 | |
16286 | if test $supports_anon_versioning = yes; then |
16287 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
16288 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
16289 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
16290 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
16291 | fi |
16292 | else |
16293 | ld_shlibs_GCJ=no |
16294 | fi |
16295 | ;; |
16296 | |
16297 | netbsd*) |
16298 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
16299 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
16300 | wlarc= |
16301 | else |
16302 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16303 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16304 | fi |
16305 | ;; |
16306 | |
16307 | solaris*) |
16308 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
16309 | ld_shlibs_GCJ=no |
16310 | cat <<EOF 1>&2 |
16311 | |
16312 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
16313 | *** create shared libraries on Solaris systems. Therefore, libtool |
16314 | *** is disabling shared libraries support. We urge you to upgrade GNU |
16315 | *** binutils to release 2.9.1 or newer. Another option is to modify |
16316 | *** your PATH or compiler configuration so that the native linker is |
16317 | *** used, and then restart. |
16318 | |
16319 | EOF |
16320 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16321 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16322 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16323 | else |
16324 | ld_shlibs_GCJ=no |
16325 | fi |
16326 | ;; |
16327 | |
16328 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
16329 | case `$LD -v 2>&1` in |
16330 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
16331 | ld_shlibs_GCJ=no |
16332 | cat <<_LT_EOF 1>&2 |
16333 | |
16334 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
16335 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
16336 | *** is disabling shared libraries support. We urge you to upgrade GNU |
16337 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
16338 | *** your PATH or compiler configuration so that the native linker is |
16339 | *** used, and then restart. |
16340 | |
16341 | _LT_EOF |
16342 | ;; |
16343 | *) |
16344 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16345 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
16346 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
16347 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
16348 | else |
16349 | ld_shlibs_GCJ=no |
16350 | fi |
16351 | ;; |
16352 | esac |
16353 | ;; |
16354 | |
16355 | sunos4*) |
16356 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16357 | wlarc= |
16358 | hardcode_direct_GCJ=yes |
16359 | hardcode_shlibpath_var_GCJ=no |
16360 | ;; |
16361 | |
16362 | *) |
16363 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16364 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16365 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16366 | else |
16367 | ld_shlibs_GCJ=no |
16368 | fi |
16369 | ;; |
16370 | esac |
16371 | |
16372 | if test "$ld_shlibs_GCJ" = no; then |
16373 | runpath_var= |
16374 | hardcode_libdir_flag_spec_GCJ= |
16375 | export_dynamic_flag_spec_GCJ= |
16376 | whole_archive_flag_spec_GCJ= |
16377 | fi |
16378 | else |
16379 | # PORTME fill in a description of your system's linker (not GNU ld) |
16380 | case $host_os in |
16381 | aix3*) |
16382 | allow_undefined_flag_GCJ=unsupported |
16383 | always_export_symbols_GCJ=yes |
16384 | 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' |
16385 | # Note: this linker hardcodes the directories in LIBPATH if there |
16386 | # are no directories specified by -L. |
16387 | hardcode_minus_L_GCJ=yes |
16388 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
16389 | # Neither direct hardcoding nor static linking is supported with a |
16390 | # broken collect2. |
16391 | hardcode_direct_GCJ=unsupported |
16392 | fi |
16393 | ;; |
16394 | |
16395 | aix4* | aix5*) |
16396 | if test "$host_cpu" = ia64; then |
16397 | # On IA64, the linker does run time linking by default, so we don't |
16398 | # have to do anything special. |
16399 | aix_use_runtimelinking=no |
16400 | exp_sym_flag='-Bexport' |
16401 | no_entry_flag="" |
16402 | else |
16403 | # If we're using GNU nm, then we don't want the "-C" option. |
16404 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
16405 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
16406 | 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' |
16407 | else |
16408 | 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' |
16409 | fi |
16410 | aix_use_runtimelinking=no |
16411 | |
16412 | # Test if we are trying to use run time linking or normal |
16413 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
16414 | # need to do runtime linking. |
16415 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
16416 | for ld_flag in $LDFLAGS; do |
16417 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
16418 | aix_use_runtimelinking=yes |
16419 | break |
16420 | fi |
16421 | done |
16422 | ;; |
16423 | esac |
16424 | |
16425 | exp_sym_flag='-bexport' |
16426 | no_entry_flag='-bnoentry' |
16427 | fi |
16428 | |
16429 | # When large executables or shared objects are built, AIX ld can |
16430 | # have problems creating the table of contents. If linking a library |
16431 | # or program results in "error TOC overflow" add -mminimal-toc to |
16432 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
16433 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
16434 | |
16435 | archive_cmds_GCJ='' |
16436 | hardcode_direct_GCJ=yes |
16437 | hardcode_libdir_separator_GCJ=':' |
16438 | link_all_deplibs_GCJ=yes |
16439 | |
16440 | if test "$GCC" = yes; then |
16441 | case $host_os in aix4.[012]|aix4.[012].*) |
16442 | # We only want to do this on AIX 4.2 and lower, the check |
16443 | # below for broken collect2 doesn't work under 4.3+ |
16444 | collect2name=`${CC} -print-prog-name=collect2` |
16445 | if test -f "$collect2name" && \ |
16446 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
16447 | then |
16448 | # We have reworked collect2 |
16449 | hardcode_direct_GCJ=yes |
16450 | else |
16451 | # We have old collect2 |
16452 | hardcode_direct_GCJ=unsupported |
16453 | # It fails to find uninstalled libraries when the uninstalled |
16454 | # path is not listed in the libpath. Setting hardcode_minus_L |
16455 | # to unsupported forces relinking |
16456 | hardcode_minus_L_GCJ=yes |
16457 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16458 | hardcode_libdir_separator_GCJ= |
16459 | fi |
16460 | ;; |
16461 | esac |
16462 | shared_flag='-shared' |
16463 | if test "$aix_use_runtimelinking" = yes; then |
16464 | shared_flag="$shared_flag "'${wl}-G' |
16465 | fi |
16466 | else |
16467 | # not using gcc |
16468 | if test "$host_cpu" = ia64; then |
16469 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
16470 | # chokes on -Wl,-G. The following line is correct: |
16471 | shared_flag='-G' |
16472 | else |
16473 | if test "$aix_use_runtimelinking" = yes; then |
16474 | shared_flag='${wl}-G' |
16475 | else |
16476 | shared_flag='${wl}-bM:SRE' |
16477 | fi |
16478 | fi |
16479 | fi |
16480 | |
16481 | # It seems that -bexpall does not export symbols beginning with |
16482 | # underscore (_), so it is better to generate a list of symbols to export. |
16483 | always_export_symbols_GCJ=yes |
16484 | if test "$aix_use_runtimelinking" = yes; then |
16485 | # Warning - without using the other runtime loading flags (-brtl), |
16486 | # -berok will link without error, but may produce a broken library. |
16487 | allow_undefined_flag_GCJ='-berok' |
16488 | # Determine the default libpath from the value encoded in an empty executable. |
16489 | cat >conftest.$ac_ext <<_ACEOF |
16490 | /* confdefs.h. */ |
16491 | _ACEOF |
16492 | cat confdefs.h >>conftest.$ac_ext |
16493 | cat >>conftest.$ac_ext <<_ACEOF |
16494 | /* end confdefs.h. */ |
16495 | |
16496 | int |
16497 | main () |
16498 | { |
16499 | |
16500 | ; |
16501 | return 0; |
16502 | } |
16503 | _ACEOF |
16504 | rm -f conftest.$ac_objext conftest$ac_exeext |
16505 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16506 | (eval $ac_link) 2>conftest.er1 |
16507 | ac_status=$? |
16508 | grep -v '^ *+' conftest.er1 >conftest.err |
16509 | rm -f conftest.er1 |
16510 | cat conftest.err >&5 |
16511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16512 | (exit $ac_status); } && |
16513 | { ac_try='test -z "$ac_c_werror_flag" |
16514 | || test ! -s conftest.err' |
16515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16516 | (eval $ac_try) 2>&5 |
16517 | ac_status=$? |
16518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16519 | (exit $ac_status); }; } && |
16520 | { ac_try='test -s conftest$ac_exeext' |
16521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16522 | (eval $ac_try) 2>&5 |
16523 | ac_status=$? |
16524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16525 | (exit $ac_status); }; }; then |
16526 | |
16527 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
16528 | }'` |
16529 | # Check for a 64-bit object if we didn't find anything. |
16530 | 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; } |
16531 | }'`; fi |
16532 | else |
16533 | echo "$as_me: failed program was:" >&5 |
16534 | sed 's/^/| /' conftest.$ac_ext >&5 |
16535 | |
16536 | fi |
16537 | rm -f conftest.err conftest.$ac_objext \ |
16538 | conftest$ac_exeext conftest.$ac_ext |
16539 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
16540 | |
16541 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
16542 | 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" |
16543 | else |
16544 | if test "$host_cpu" = ia64; then |
16545 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
16546 | allow_undefined_flag_GCJ="-z nodefs" |
16547 | 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" |
16548 | else |
16549 | # Determine the default libpath from the value encoded in an empty executable. |
16550 | cat >conftest.$ac_ext <<_ACEOF |
16551 | /* confdefs.h. */ |
16552 | _ACEOF |
16553 | cat confdefs.h >>conftest.$ac_ext |
16554 | cat >>conftest.$ac_ext <<_ACEOF |
16555 | /* end confdefs.h. */ |
16556 | |
16557 | int |
16558 | main () |
16559 | { |
16560 | |
16561 | ; |
16562 | return 0; |
16563 | } |
16564 | _ACEOF |
16565 | rm -f conftest.$ac_objext conftest$ac_exeext |
16566 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16567 | (eval $ac_link) 2>conftest.er1 |
16568 | ac_status=$? |
16569 | grep -v '^ *+' conftest.er1 >conftest.err |
16570 | rm -f conftest.er1 |
16571 | cat conftest.err >&5 |
16572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16573 | (exit $ac_status); } && |
16574 | { ac_try='test -z "$ac_c_werror_flag" |
16575 | || test ! -s conftest.err' |
16576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16577 | (eval $ac_try) 2>&5 |
16578 | ac_status=$? |
16579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16580 | (exit $ac_status); }; } && |
16581 | { ac_try='test -s conftest$ac_exeext' |
16582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16583 | (eval $ac_try) 2>&5 |
16584 | ac_status=$? |
16585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16586 | (exit $ac_status); }; }; then |
16587 | |
16588 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
16589 | }'` |
16590 | # Check for a 64-bit object if we didn't find anything. |
16591 | 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; } |
16592 | }'`; fi |
16593 | else |
16594 | echo "$as_me: failed program was:" >&5 |
16595 | sed 's/^/| /' conftest.$ac_ext >&5 |
16596 | |
16597 | fi |
16598 | rm -f conftest.err conftest.$ac_objext \ |
16599 | conftest$ac_exeext conftest.$ac_ext |
16600 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
16601 | |
16602 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
16603 | # Warning - without using the other run time loading flags, |
16604 | # -berok will link without error, but may produce a broken library. |
16605 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
16606 | allow_undefined_flag_GCJ=' ${wl}-berok' |
16607 | # Exported symbols can be pulled into shared objects from archives |
16608 | whole_archive_flag_spec_GCJ='$convenience' |
16609 | archive_cmds_need_lc_GCJ=yes |
16610 | # This is similar to how AIX traditionally builds its shared libraries. |
16611 | 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' |
16612 | fi |
16613 | fi |
16614 | ;; |
16615 | |
16616 | amigaos*) |
16617 | 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)' |
16618 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16619 | hardcode_minus_L_GCJ=yes |
16620 | # see comment about different semantics on the GNU ld section |
16621 | ld_shlibs_GCJ=no |
16622 | ;; |
16623 | |
16624 | bsdi[45]*) |
16625 | export_dynamic_flag_spec_GCJ=-rdynamic |
16626 | ;; |
16627 | |
16628 | cygwin* | mingw* | pw32*) |
16629 | # When not using gcc, we currently assume that we are using |
16630 | # Microsoft Visual C++. |
16631 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
16632 | # no search path for DLLs. |
16633 | hardcode_libdir_flag_spec_GCJ=' ' |
16634 | allow_undefined_flag_GCJ=unsupported |
16635 | # Tell ltmain to make .lib files, not .a files. |
16636 | libext=lib |
16637 | # Tell ltmain to make .dll files, not .so files. |
16638 | shrext_cmds=".dll" |
16639 | # FIXME: Setting linknames here is a bad hack. |
16640 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
16641 | # The linker will automatically build a .lib file if we build a DLL. |
16642 | old_archive_From_new_cmds_GCJ='true' |
16643 | # FIXME: Should let the user specify the lib program. |
16644 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
16645 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
16646 | enable_shared_with_static_runtimes_GCJ=yes |
16647 | ;; |
16648 | |
16649 | darwin* | rhapsody*) |
16650 | case $host_os in |
16651 | rhapsody* | darwin1.[012]) |
16652 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
16653 | ;; |
16654 | *) # Darwin 1.3 on |
16655 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
16656 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
16657 | else |
16658 | case ${MACOSX_DEPLOYMENT_TARGET} in |
16659 | 10.[012]) |
16660 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
16661 | ;; |
16662 | 10.*) |
16663 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
16664 | ;; |
16665 | esac |
16666 | fi |
16667 | ;; |
16668 | esac |
16669 | archive_cmds_need_lc_GCJ=no |
16670 | hardcode_direct_GCJ=no |
16671 | hardcode_automatic_GCJ=yes |
16672 | hardcode_shlibpath_var_GCJ=unsupported |
16673 | whole_archive_flag_spec_GCJ='' |
16674 | link_all_deplibs_GCJ=yes |
16675 | if test "$GCC" = yes ; then |
16676 | output_verbose_link_cmd='echo' |
16677 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
16678 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
16679 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
16680 | 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}' |
16681 | 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}' |
16682 | else |
16683 | case $cc_basename in |
16684 | xlc*) |
16685 | output_verbose_link_cmd='echo' |
16686 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
16687 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
16688 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
16689 | 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}' |
16690 | 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}' |
16691 | ;; |
16692 | *) |
16693 | ld_shlibs_GCJ=no |
16694 | ;; |
16695 | esac |
16696 | fi |
16697 | ;; |
16698 | |
16699 | dgux*) |
16700 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16701 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16702 | hardcode_shlibpath_var_GCJ=no |
16703 | ;; |
16704 | |
16705 | freebsd1*) |
16706 | ld_shlibs_GCJ=no |
16707 | ;; |
16708 | |
16709 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
16710 | # support. Future versions do this automatically, but an explicit c++rt0.o |
16711 | # does not break anything, and helps significantly (at the cost of a little |
16712 | # extra space). |
16713 | freebsd2.2*) |
16714 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
16715 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16716 | hardcode_direct_GCJ=yes |
16717 | hardcode_shlibpath_var_GCJ=no |
16718 | ;; |
16719 | |
16720 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
16721 | freebsd2*) |
16722 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16723 | hardcode_direct_GCJ=yes |
16724 | hardcode_minus_L_GCJ=yes |
16725 | hardcode_shlibpath_var_GCJ=no |
16726 | ;; |
16727 | |
16728 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
16729 | freebsd* | kfreebsd*-gnu | dragonfly*) |
16730 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
16731 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16732 | hardcode_direct_GCJ=yes |
16733 | hardcode_shlibpath_var_GCJ=no |
16734 | ;; |
16735 | |
16736 | hpux9*) |
16737 | if test "$GCC" = yes; then |
16738 | 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' |
16739 | else |
16740 | 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' |
16741 | fi |
16742 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
16743 | hardcode_libdir_separator_GCJ=: |
16744 | hardcode_direct_GCJ=yes |
16745 | |
16746 | # hardcode_minus_L: Not really in the search PATH, |
16747 | # but as the default location of the library. |
16748 | hardcode_minus_L_GCJ=yes |
16749 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16750 | ;; |
16751 | |
16752 | hpux10*) |
16753 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
16754 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
16755 | else |
16756 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
16757 | fi |
16758 | if test "$with_gnu_ld" = no; then |
16759 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
16760 | hardcode_libdir_separator_GCJ=: |
16761 | |
16762 | hardcode_direct_GCJ=yes |
16763 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16764 | |
16765 | # hardcode_minus_L: Not really in the search PATH, |
16766 | # but as the default location of the library. |
16767 | hardcode_minus_L_GCJ=yes |
16768 | fi |
16769 | ;; |
16770 | |
16771 | hpux11*) |
16772 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
16773 | case $host_cpu in |
16774 | hppa*64*) |
16775 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16776 | ;; |
16777 | ia64*) |
16778 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
16779 | ;; |
16780 | *) |
16781 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
16782 | ;; |
16783 | esac |
16784 | else |
16785 | case $host_cpu in |
16786 | hppa*64*) |
16787 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16788 | ;; |
16789 | ia64*) |
16790 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
16791 | ;; |
16792 | *) |
16793 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
16794 | ;; |
16795 | esac |
16796 | fi |
16797 | if test "$with_gnu_ld" = no; then |
16798 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
16799 | hardcode_libdir_separator_GCJ=: |
16800 | |
16801 | case $host_cpu in |
16802 | hppa*64*|ia64*) |
16803 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
16804 | hardcode_direct_GCJ=no |
16805 | hardcode_shlibpath_var_GCJ=no |
16806 | ;; |
16807 | *) |
16808 | hardcode_direct_GCJ=yes |
16809 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16810 | |
16811 | # hardcode_minus_L: Not really in the search PATH, |
16812 | # but as the default location of the library. |
16813 | hardcode_minus_L_GCJ=yes |
16814 | ;; |
16815 | esac |
16816 | fi |
16817 | ;; |
16818 | |
16819 | irix5* | irix6* | nonstopux*) |
16820 | if test "$GCC" = yes; then |
16821 | 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' |
16822 | else |
16823 | 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' |
16824 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
16825 | fi |
16826 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16827 | hardcode_libdir_separator_GCJ=: |
16828 | link_all_deplibs_GCJ=yes |
16829 | ;; |
16830 | |
16831 | netbsd*) |
16832 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
16833 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
16834 | else |
16835 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
16836 | fi |
16837 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16838 | hardcode_direct_GCJ=yes |
16839 | hardcode_shlibpath_var_GCJ=no |
16840 | ;; |
16841 | |
16842 | newsos6) |
16843 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16844 | hardcode_direct_GCJ=yes |
16845 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16846 | hardcode_libdir_separator_GCJ=: |
16847 | hardcode_shlibpath_var_GCJ=no |
16848 | ;; |
16849 | |
16850 | openbsd*) |
16851 | hardcode_direct_GCJ=yes |
16852 | hardcode_shlibpath_var_GCJ=no |
16853 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
16854 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
16855 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
16856 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
16857 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16858 | else |
16859 | case $host_os in |
16860 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
16861 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16862 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16863 | ;; |
16864 | *) |
16865 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
16866 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
16867 | ;; |
16868 | esac |
16869 | fi |
16870 | ;; |
16871 | |
16872 | os2*) |
16873 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16874 | hardcode_minus_L_GCJ=yes |
16875 | allow_undefined_flag_GCJ=unsupported |
16876 | 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' |
16877 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
16878 | ;; |
16879 | |
16880 | osf3*) |
16881 | if test "$GCC" = yes; then |
16882 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
16883 | 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' |
16884 | else |
16885 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
16886 | 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' |
16887 | fi |
16888 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16889 | hardcode_libdir_separator_GCJ=: |
16890 | ;; |
16891 | |
16892 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
16893 | if test "$GCC" = yes; then |
16894 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
16895 | 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' |
16896 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16897 | else |
16898 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
16899 | 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' |
16900 | 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~ |
16901 | $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' |
16902 | |
16903 | # Both c and cxx compiler support -rpath directly |
16904 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
16905 | fi |
16906 | hardcode_libdir_separator_GCJ=: |
16907 | ;; |
16908 | |
16909 | solaris*) |
16910 | no_undefined_flag_GCJ=' -z text' |
16911 | if test "$GCC" = yes; then |
16912 | wlarc='${wl}' |
16913 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16914 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
16915 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
16916 | else |
16917 | wlarc='' |
16918 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16919 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
16920 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
16921 | fi |
16922 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16923 | hardcode_shlibpath_var_GCJ=no |
16924 | case $host_os in |
16925 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
16926 | *) |
16927 | # The compiler driver will combine linker options so we |
16928 | # cannot just pass the convience library names through |
16929 | # without $wl, iff we do not link with $LD. |
16930 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
16931 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
16932 | case $wlarc in |
16933 | '') |
16934 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
16935 | *) |
16936 | 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' ;; |
16937 | esac ;; |
16938 | esac |
16939 | link_all_deplibs_GCJ=yes |
16940 | ;; |
16941 | |
16942 | sunos4*) |
16943 | if test "x$host_vendor" = xsequent; then |
16944 | # Use $CC to link under sequent, because it throws in some extra .o |
16945 | # files that make .init and .fini sections work. |
16946 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
16947 | else |
16948 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
16949 | fi |
16950 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16951 | hardcode_direct_GCJ=yes |
16952 | hardcode_minus_L_GCJ=yes |
16953 | hardcode_shlibpath_var_GCJ=no |
16954 | ;; |
16955 | |
16956 | sysv4) |
16957 | case $host_vendor in |
16958 | sni) |
16959 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16960 | hardcode_direct_GCJ=yes # is this really true??? |
16961 | ;; |
16962 | siemens) |
16963 | ## LD is ld it makes a PLAMLIB |
16964 | ## CC just makes a GrossModule. |
16965 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
16966 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
16967 | hardcode_direct_GCJ=no |
16968 | ;; |
16969 | motorola) |
16970 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16971 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
16972 | ;; |
16973 | esac |
16974 | runpath_var='LD_RUN_PATH' |
16975 | hardcode_shlibpath_var_GCJ=no |
16976 | ;; |
16977 | |
16978 | sysv4.3*) |
16979 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16980 | hardcode_shlibpath_var_GCJ=no |
16981 | export_dynamic_flag_spec_GCJ='-Bexport' |
16982 | ;; |
16983 | |
16984 | sysv4*MP*) |
16985 | if test -d /usr/nec; then |
16986 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16987 | hardcode_shlibpath_var_GCJ=no |
16988 | runpath_var=LD_RUN_PATH |
16989 | hardcode_runpath_var=yes |
16990 | ld_shlibs_GCJ=yes |
16991 | fi |
16992 | ;; |
16993 | |
16994 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
16995 | no_undefined_flag_GCJ='${wl}-z,text' |
16996 | archive_cmds_need_lc_GCJ=no |
16997 | hardcode_shlibpath_var_GCJ=no |
16998 | runpath_var='LD_RUN_PATH' |
16999 | |
17000 | if test "$GCC" = yes; then |
17001 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17002 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17003 | else |
17004 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17005 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17006 | fi |
17007 | ;; |
17008 | |
17009 | sysv5* | sco3.2v5* | sco5v6*) |
17010 | # Note: We can NOT use -z defs as we might desire, because we do not |
17011 | # link with -lc, and that would cause any symbols used from libc to |
17012 | # always be unresolved, which means just about no library would |
17013 | # ever link correctly. If we're not using GNU ld we use -z text |
17014 | # though, which does catch some bad symbols but isn't as heavy-handed |
17015 | # as -z defs. |
17016 | no_undefined_flag_GCJ='${wl}-z,text' |
17017 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
17018 | archive_cmds_need_lc_GCJ=no |
17019 | hardcode_shlibpath_var_GCJ=no |
17020 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
17021 | hardcode_libdir_separator_GCJ=':' |
17022 | link_all_deplibs_GCJ=yes |
17023 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
17024 | runpath_var='LD_RUN_PATH' |
17025 | |
17026 | if test "$GCC" = yes; then |
17027 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17028 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17029 | else |
17030 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17031 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17032 | fi |
17033 | ;; |
17034 | |
17035 | uts4*) |
17036 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17037 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17038 | hardcode_shlibpath_var_GCJ=no |
17039 | ;; |
17040 | |
17041 | *) |
17042 | ld_shlibs_GCJ=no |
17043 | ;; |
17044 | esac |
17045 | fi |
17046 | |
17047 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
17048 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
17049 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
17050 | |
17051 | # |
17052 | # Do we need to explicitly link libc? |
17053 | # |
17054 | case "x$archive_cmds_need_lc_GCJ" in |
17055 | x|xyes) |
17056 | # Assume -lc should be added |
17057 | archive_cmds_need_lc_GCJ=yes |
17058 | |
17059 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
17060 | case $archive_cmds_GCJ in |
17061 | *'~'*) |
17062 | # FIXME: we may have to deal with multi-command sequences. |
17063 | ;; |
17064 | '$CC '*) |
17065 | # Test whether the compiler implicitly links with -lc since on some |
17066 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
17067 | # to ld, don't add -lc before -lgcc. |
17068 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
17069 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
17070 | $rm conftest* |
17071 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
17072 | |
17073 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17074 | (eval $ac_compile) 2>&5 |
17075 | ac_status=$? |
17076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17077 | (exit $ac_status); } 2>conftest.err; then |
17078 | soname=conftest |
17079 | lib=conftest |
17080 | libobjs=conftest.$ac_objext |
17081 | deplibs= |
17082 | wl=$lt_prog_compiler_wl_GCJ |
17083 | pic_flag=$lt_prog_compiler_pic_GCJ |
17084 | compiler_flags=-v |
17085 | linker_flags=-v |
17086 | verstring= |
17087 | output_objdir=. |
17088 | libname=conftest |
17089 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
17090 | allow_undefined_flag_GCJ= |
17091 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
17092 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
17093 | ac_status=$? |
17094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17095 | (exit $ac_status); } |
17096 | then |
17097 | archive_cmds_need_lc_GCJ=no |
17098 | else |
17099 | archive_cmds_need_lc_GCJ=yes |
17100 | fi |
17101 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
17102 | else |
17103 | cat conftest.err 1>&5 |
17104 | fi |
17105 | $rm conftest* |
17106 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
17107 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
17108 | ;; |
17109 | esac |
17110 | fi |
17111 | ;; |
17112 | esac |
17113 | |
17114 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
17115 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
17116 | library_names_spec= |
17117 | libname_spec='lib$name' |
17118 | soname_spec= |
17119 | shrext_cmds=".so" |
17120 | postinstall_cmds= |
17121 | postuninstall_cmds= |
17122 | finish_cmds= |
17123 | finish_eval= |
17124 | shlibpath_var= |
17125 | shlibpath_overrides_runpath=unknown |
17126 | version_type=none |
17127 | dynamic_linker="$host_os ld.so" |
17128 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
17129 | if test "$GCC" = yes; then |
17130 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17131 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
17132 | # if the path contains ";" then we assume it to be the separator |
17133 | # otherwise default to the standard path separator (i.e. ":") - it is |
17134 | # assumed that no part of a normal pathname contains ";" but that should |
17135 | # okay in the real world where ";" in dirpaths is itself problematic. |
17136 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17137 | else |
17138 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17139 | fi |
17140 | else |
17141 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
17142 | fi |
17143 | need_lib_prefix=unknown |
17144 | hardcode_into_libs=no |
17145 | |
17146 | # when you set need_version to no, make sure it does not cause -set_version |
17147 | # flags to be left without arguments |
17148 | need_version=unknown |
17149 | |
17150 | case $host_os in |
17151 | aix3*) |
17152 | version_type=linux |
17153 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
17154 | shlibpath_var=LIBPATH |
17155 | |
17156 | # AIX 3 has no versioning support, so we append a major version to the name. |
17157 | soname_spec='${libname}${release}${shared_ext}$major' |
17158 | ;; |
17159 | |
17160 | aix4* | aix5*) |
17161 | version_type=linux |
17162 | need_lib_prefix=no |
17163 | need_version=no |
17164 | hardcode_into_libs=yes |
17165 | if test "$host_cpu" = ia64; then |
17166 | # AIX 5 supports IA64 |
17167 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
17168 | shlibpath_var=LD_LIBRARY_PATH |
17169 | else |
17170 | # With GCC up to 2.95.x, collect2 would create an import file |
17171 | # for dependence libraries. The import file would start with |
17172 | # the line `#! .'. This would cause the generated library to |
17173 | # depend on `.', always an invalid library. This was fixed in |
17174 | # development snapshots of GCC prior to 3.0. |
17175 | case $host_os in |
17176 | aix4 | aix4.[01] | aix4.[01].*) |
17177 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
17178 | echo ' yes ' |
17179 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
17180 | : |
17181 | else |
17182 | can_build_shared=no |
17183 | fi |
17184 | ;; |
17185 | esac |
17186 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
17187 | # soname into executable. Probably we can add versioning support to |
17188 | # collect2, so additional links can be useful in future. |
17189 | if test "$aix_use_runtimelinking" = yes; then |
17190 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
17191 | # instead of lib<name>.a to let people know that these are not |
17192 | # typical AIX shared libraries. |
17193 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17194 | else |
17195 | # We preserve .a as extension for shared libraries through AIX4.2 |
17196 | # and later when we are not doing run time linking. |
17197 | library_names_spec='${libname}${release}.a $libname.a' |
17198 | soname_spec='${libname}${release}${shared_ext}$major' |
17199 | fi |
17200 | shlibpath_var=LIBPATH |
17201 | fi |
17202 | ;; |
17203 | |
17204 | amigaos*) |
17205 | library_names_spec='$libname.ixlibrary $libname.a' |
17206 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
17207 | 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' |
17208 | ;; |
17209 | |
17210 | beos*) |
17211 | library_names_spec='${libname}${shared_ext}' |
17212 | dynamic_linker="$host_os ld.so" |
17213 | shlibpath_var=LIBRARY_PATH |
17214 | ;; |
17215 | |
17216 | bsdi[45]*) |
17217 | version_type=linux |
17218 | need_version=no |
17219 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17220 | soname_spec='${libname}${release}${shared_ext}$major' |
17221 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
17222 | shlibpath_var=LD_LIBRARY_PATH |
17223 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
17224 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
17225 | # the default ld.so.conf also contains /usr/contrib/lib and |
17226 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
17227 | # libtool to hard-code these into programs |
17228 | ;; |
17229 | |
17230 | cygwin* | mingw* | pw32*) |
17231 | version_type=windows |
17232 | shrext_cmds=".dll" |
17233 | need_version=no |
17234 | need_lib_prefix=no |
17235 | |
17236 | case $GCC,$host_os in |
17237 | yes,cygwin* | yes,mingw* | yes,pw32*) |
17238 | library_names_spec='$libname.dll.a' |
17239 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
17240 | postinstall_cmds='base_file=`basename \${file}`~ |
17241 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
17242 | dldir=$destdir/`dirname \$dlpath`~ |
17243 | test -d \$dldir || mkdir -p \$dldir~ |
17244 | $install_prog $dir/$dlname \$dldir/$dlname~ |
17245 | chmod a+x \$dldir/$dlname' |
17246 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
17247 | dlpath=$dir/\$dldll~ |
17248 | $rm \$dlpath' |
17249 | shlibpath_overrides_runpath=yes |
17250 | |
17251 | case $host_os in |
17252 | cygwin*) |
17253 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
17254 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17255 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
17256 | ;; |
17257 | mingw*) |
17258 | # MinGW DLLs use traditional 'lib' prefix |
17259 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17260 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17261 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
17262 | # It is most probably a Windows format PATH printed by |
17263 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
17264 | # path with ; separators, and with drive letters. We can handle the |
17265 | # drive letters (cygwin fileutils understands them), so leave them, |
17266 | # especially as we might pass files found there to a mingw objdump, |
17267 | # which wouldn't understand a cygwinified path. Ahh. |
17268 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17269 | else |
17270 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17271 | fi |
17272 | ;; |
17273 | pw32*) |
17274 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
17275 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17276 | ;; |
17277 | esac |
17278 | ;; |
17279 | |
17280 | *) |
17281 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
17282 | ;; |
17283 | esac |
17284 | dynamic_linker='Win32 ld.exe' |
17285 | # FIXME: first we should search . and the directory the executable is in |
17286 | shlibpath_var=PATH |
17287 | ;; |
17288 | |
17289 | darwin* | rhapsody*) |
17290 | dynamic_linker="$host_os dyld" |
17291 | version_type=darwin |
17292 | need_lib_prefix=no |
17293 | need_version=no |
17294 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
17295 | soname_spec='${libname}${release}${major}$shared_ext' |
17296 | shlibpath_overrides_runpath=yes |
17297 | shlibpath_var=DYLD_LIBRARY_PATH |
17298 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
17299 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
17300 | if test "$GCC" = yes; then |
17301 | 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"` |
17302 | else |
17303 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
17304 | fi |
17305 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
17306 | ;; |
17307 | |
17308 | dgux*) |
17309 | version_type=linux |
17310 | need_lib_prefix=no |
17311 | need_version=no |
17312 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
17313 | soname_spec='${libname}${release}${shared_ext}$major' |
17314 | shlibpath_var=LD_LIBRARY_PATH |
17315 | ;; |
17316 | |
17317 | freebsd1*) |
17318 | dynamic_linker=no |
17319 | ;; |
17320 | |
17321 | kfreebsd*-gnu) |
17322 | version_type=linux |
17323 | need_lib_prefix=no |
17324 | need_version=no |
17325 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17326 | soname_spec='${libname}${release}${shared_ext}$major' |
17327 | shlibpath_var=LD_LIBRARY_PATH |
17328 | shlibpath_overrides_runpath=no |
17329 | hardcode_into_libs=yes |
17330 | dynamic_linker='GNU ld.so' |
17331 | ;; |
17332 | |
17333 | freebsd* | dragonfly*) |
17334 | # DragonFly does not have aout. When/if they implement a new |
17335 | # versioning mechanism, adjust this. |
17336 | if test -x /usr/bin/objformat; then |
17337 | objformat=`/usr/bin/objformat` |
17338 | else |
17339 | case $host_os in |
17340 | freebsd[123]*) objformat=aout ;; |
17341 | *) objformat=elf ;; |
17342 | esac |
17343 | fi |
17344 | version_type=freebsd-$objformat |
17345 | case $version_type in |
17346 | freebsd-elf*) |
17347 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
17348 | need_version=no |
17349 | need_lib_prefix=no |
17350 | ;; |
17351 | freebsd-*) |
17352 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
17353 | need_version=yes |
17354 | ;; |
17355 | esac |
17356 | shlibpath_var=LD_LIBRARY_PATH |
17357 | case $host_os in |
17358 | freebsd2*) |
17359 | shlibpath_overrides_runpath=yes |
17360 | ;; |
17361 | freebsd3.[01]* | freebsdelf3.[01]*) |
17362 | shlibpath_overrides_runpath=yes |
17363 | hardcode_into_libs=yes |
17364 | ;; |
17365 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
17366 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
17367 | shlibpath_overrides_runpath=no |
17368 | hardcode_into_libs=yes |
17369 | ;; |
17370 | freebsd*) # from 4.6 on |
17371 | shlibpath_overrides_runpath=yes |
17372 | hardcode_into_libs=yes |
17373 | ;; |
17374 | esac |
17375 | ;; |
17376 | |
17377 | gnu*) |
17378 | version_type=linux |
17379 | need_lib_prefix=no |
17380 | need_version=no |
17381 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
17382 | soname_spec='${libname}${release}${shared_ext}$major' |
17383 | shlibpath_var=LD_LIBRARY_PATH |
17384 | hardcode_into_libs=yes |
17385 | ;; |
17386 | |
17387 | hpux9* | hpux10* | hpux11*) |
17388 | # Give a soname corresponding to the major version so that dld.sl refuses to |
17389 | # link against other versions. |
17390 | version_type=sunos |
17391 | need_lib_prefix=no |
17392 | need_version=no |
17393 | case $host_cpu in |
17394 | ia64*) |
17395 | shrext_cmds='.so' |
17396 | hardcode_into_libs=yes |
17397 | dynamic_linker="$host_os dld.so" |
17398 | shlibpath_var=LD_LIBRARY_PATH |
17399 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
17400 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17401 | soname_spec='${libname}${release}${shared_ext}$major' |
17402 | if test "X$HPUX_IA64_MODE" = X32; then |
17403 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
17404 | else |
17405 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
17406 | fi |
17407 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
17408 | ;; |
17409 | hppa*64*) |
17410 | shrext_cmds='.sl' |
17411 | hardcode_into_libs=yes |
17412 | dynamic_linker="$host_os dld.sl" |
17413 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
17414 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
17415 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17416 | soname_spec='${libname}${release}${shared_ext}$major' |
17417 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
17418 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
17419 | ;; |
17420 | *) |
17421 | shrext_cmds='.sl' |
17422 | dynamic_linker="$host_os dld.sl" |
17423 | shlibpath_var=SHLIB_PATH |
17424 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
17425 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17426 | soname_spec='${libname}${release}${shared_ext}$major' |
17427 | ;; |
17428 | esac |
17429 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
17430 | postinstall_cmds='chmod 555 $lib' |
17431 | ;; |
17432 | |
17433 | interix3*) |
17434 | version_type=linux |
17435 | need_lib_prefix=no |
17436 | need_version=no |
17437 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17438 | soname_spec='${libname}${release}${shared_ext}$major' |
17439 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
17440 | shlibpath_var=LD_LIBRARY_PATH |
17441 | shlibpath_overrides_runpath=no |
17442 | hardcode_into_libs=yes |
17443 | ;; |
17444 | |
17445 | irix5* | irix6* | nonstopux*) |
17446 | case $host_os in |
17447 | nonstopux*) version_type=nonstopux ;; |
17448 | *) |
17449 | if test "$lt_cv_prog_gnu_ld" = yes; then |
17450 | version_type=linux |
17451 | else |
17452 | version_type=irix |
17453 | fi ;; |
17454 | esac |
17455 | need_lib_prefix=no |
17456 | need_version=no |
17457 | soname_spec='${libname}${release}${shared_ext}$major' |
17458 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
17459 | case $host_os in |
17460 | irix5* | nonstopux*) |
17461 | libsuff= shlibsuff= |
17462 | ;; |
17463 | *) |
17464 | case $LD in # libtool.m4 will add one of these switches to LD |
17465 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
17466 | libsuff= shlibsuff= libmagic=32-bit;; |
17467 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
17468 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
17469 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
17470 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
17471 | *) libsuff= shlibsuff= libmagic=never-match;; |
17472 | esac |
17473 | ;; |
17474 | esac |
17475 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
17476 | shlibpath_overrides_runpath=no |
17477 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
17478 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
17479 | hardcode_into_libs=yes |
17480 | ;; |
17481 | |
17482 | # No shared lib support for Linux oldld, aout, or coff. |
17483 | linux*oldld* | linux*aout* | linux*coff*) |
17484 | dynamic_linker=no |
17485 | ;; |
17486 | |
17487 | # This must be Linux ELF. |
17488 | linux*) |
17489 | version_type=linux |
17490 | need_lib_prefix=no |
17491 | need_version=no |
17492 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17493 | soname_spec='${libname}${release}${shared_ext}$major' |
17494 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
17495 | shlibpath_var=LD_LIBRARY_PATH |
17496 | shlibpath_overrides_runpath=no |
17497 | # This implies no fast_install, which is unacceptable. |
17498 | # Some rework will be needed to allow for fast_install |
17499 | # before this can be enabled. |
17500 | hardcode_into_libs=yes |
17501 | |
17502 | # find out which ABI we are using |
17503 | libsuff= |
17504 | case "$host_cpu" in |
17505 | x86_64*|s390x*|powerpc64*) |
17506 | echo '#line 17506 "configure"' > conftest.$ac_ext |
17507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17508 | (eval $ac_compile) 2>&5 |
17509 | ac_status=$? |
17510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17511 | (exit $ac_status); }; then |
17512 | case `/usr/bin/file conftest.$ac_objext` in |
17513 | *64-bit*) |
17514 | libsuff=64 |
17515 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
17516 | ;; |
17517 | esac |
17518 | fi |
17519 | rm -rf conftest* |
17520 | ;; |
17521 | esac |
17522 | |
17523 | # Append ld.so.conf contents to the search path |
17524 | if test -f /etc/ld.so.conf; then |
17525 | 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' ' '` |
17526 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
17527 | fi |
17528 | |
17529 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
17530 | # powerpc, because MkLinux only supported shared libraries with the |
17531 | # GNU dynamic linker. Since this was broken with cross compilers, |
17532 | # most powerpc-linux boxes support dynamic linking these days and |
17533 | # people can always --disable-shared, the test was removed, and we |
17534 | # assume the GNU/Linux dynamic linker is in use. |
17535 | dynamic_linker='GNU/Linux ld.so' |
17536 | ;; |
17537 | |
17538 | knetbsd*-gnu) |
17539 | version_type=linux |
17540 | need_lib_prefix=no |
17541 | need_version=no |
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 | shlibpath_var=LD_LIBRARY_PATH |
17545 | shlibpath_overrides_runpath=no |
17546 | hardcode_into_libs=yes |
17547 | dynamic_linker='GNU ld.so' |
17548 | ;; |
17549 | |
17550 | netbsd*) |
17551 | version_type=sunos |
17552 | need_lib_prefix=no |
17553 | need_version=no |
17554 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17555 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17556 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
17557 | dynamic_linker='NetBSD (a.out) ld.so' |
17558 | else |
17559 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17560 | soname_spec='${libname}${release}${shared_ext}$major' |
17561 | dynamic_linker='NetBSD ld.elf_so' |
17562 | fi |
17563 | shlibpath_var=LD_LIBRARY_PATH |
17564 | shlibpath_overrides_runpath=yes |
17565 | hardcode_into_libs=yes |
17566 | ;; |
17567 | |
17568 | newsos6) |
17569 | version_type=linux |
17570 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17571 | shlibpath_var=LD_LIBRARY_PATH |
17572 | shlibpath_overrides_runpath=yes |
17573 | ;; |
17574 | |
17575 | nto-qnx*) |
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 | shlibpath_var=LD_LIBRARY_PATH |
17582 | shlibpath_overrides_runpath=yes |
17583 | ;; |
17584 | |
17585 | openbsd*) |
17586 | version_type=sunos |
17587 | sys_lib_dlsearch_path_spec="/usr/lib" |
17588 | need_lib_prefix=no |
17589 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
17590 | case $host_os in |
17591 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
17592 | *) need_version=no ;; |
17593 | esac |
17594 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17595 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
17596 | shlibpath_var=LD_LIBRARY_PATH |
17597 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
17598 | case $host_os in |
17599 | openbsd2.[89] | openbsd2.[89].*) |
17600 | shlibpath_overrides_runpath=no |
17601 | ;; |
17602 | *) |
17603 | shlibpath_overrides_runpath=yes |
17604 | ;; |
17605 | esac |
17606 | else |
17607 | shlibpath_overrides_runpath=yes |
17608 | fi |
17609 | ;; |
17610 | |
17611 | os2*) |
17612 | libname_spec='$name' |
17613 | shrext_cmds=".dll" |
17614 | need_lib_prefix=no |
17615 | library_names_spec='$libname${shared_ext} $libname.a' |
17616 | dynamic_linker='OS/2 ld.exe' |
17617 | shlibpath_var=LIBPATH |
17618 | ;; |
17619 | |
17620 | osf3* | osf4* | osf5*) |
17621 | version_type=osf |
17622 | need_lib_prefix=no |
17623 | need_version=no |
17624 | soname_spec='${libname}${release}${shared_ext}$major' |
17625 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17626 | shlibpath_var=LD_LIBRARY_PATH |
17627 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
17628 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
17629 | ;; |
17630 | |
17631 | solaris*) |
17632 | version_type=linux |
17633 | need_lib_prefix=no |
17634 | need_version=no |
17635 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17636 | soname_spec='${libname}${release}${shared_ext}$major' |
17637 | shlibpath_var=LD_LIBRARY_PATH |
17638 | shlibpath_overrides_runpath=yes |
17639 | hardcode_into_libs=yes |
17640 | # ldd complains unless libraries are executable |
17641 | postinstall_cmds='chmod +x $lib' |
17642 | ;; |
17643 | |
17644 | sunos4*) |
17645 | version_type=sunos |
17646 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17647 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
17648 | shlibpath_var=LD_LIBRARY_PATH |
17649 | shlibpath_overrides_runpath=yes |
17650 | if test "$with_gnu_ld" = yes; then |
17651 | need_lib_prefix=no |
17652 | fi |
17653 | need_version=yes |
17654 | ;; |
17655 | |
17656 | sysv4 | sysv4.3*) |
17657 | version_type=linux |
17658 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17659 | soname_spec='${libname}${release}${shared_ext}$major' |
17660 | shlibpath_var=LD_LIBRARY_PATH |
17661 | case $host_vendor in |
17662 | sni) |
17663 | shlibpath_overrides_runpath=no |
17664 | need_lib_prefix=no |
17665 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
17666 | runpath_var=LD_RUN_PATH |
17667 | ;; |
17668 | siemens) |
17669 | need_lib_prefix=no |
17670 | ;; |
17671 | motorola) |
17672 | need_lib_prefix=no |
17673 | need_version=no |
17674 | shlibpath_overrides_runpath=no |
17675 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
17676 | ;; |
17677 | esac |
17678 | ;; |
17679 | |
17680 | sysv4*MP*) |
17681 | if test -d /usr/nec ;then |
17682 | version_type=linux |
17683 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
17684 | soname_spec='$libname${shared_ext}.$major' |
17685 | shlibpath_var=LD_LIBRARY_PATH |
17686 | fi |
17687 | ;; |
17688 | |
17689 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
17690 | version_type=freebsd-elf |
17691 | need_lib_prefix=no |
17692 | need_version=no |
17693 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
17694 | soname_spec='${libname}${release}${shared_ext}$major' |
17695 | shlibpath_var=LD_LIBRARY_PATH |
17696 | hardcode_into_libs=yes |
17697 | if test "$with_gnu_ld" = yes; then |
17698 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
17699 | shlibpath_overrides_runpath=no |
17700 | else |
17701 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
17702 | shlibpath_overrides_runpath=yes |
17703 | case $host_os in |
17704 | sco3.2v5*) |
17705 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
17706 | ;; |
17707 | esac |
17708 | fi |
17709 | sys_lib_dlsearch_path_spec='/usr/lib' |
17710 | ;; |
17711 | |
17712 | uts4*) |
17713 | version_type=linux |
17714 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17715 | soname_spec='${libname}${release}${shared_ext}$major' |
17716 | shlibpath_var=LD_LIBRARY_PATH |
17717 | ;; |
17718 | |
17719 | *) |
17720 | dynamic_linker=no |
17721 | ;; |
17722 | esac |
17723 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
17724 | echo "${ECHO_T}$dynamic_linker" >&6 |
17725 | test "$dynamic_linker" = no && can_build_shared=no |
17726 | |
17727 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
17728 | if test "$GCC" = yes; then |
17729 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
17730 | fi |
17731 | |
17732 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
17733 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
17734 | hardcode_action_GCJ= |
17735 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
17736 | test -n "$runpath_var_GCJ" || \ |
17737 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
17738 | |
17739 | # We can hardcode non-existant directories. |
17740 | if test "$hardcode_direct_GCJ" != no && |
17741 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
17742 | # have to relink, otherwise we might link with an installed library |
17743 | # when we should be linking with a yet-to-be-installed one |
17744 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
17745 | test "$hardcode_minus_L_GCJ" != no; then |
17746 | # Linking always hardcodes the temporary library directory. |
17747 | hardcode_action_GCJ=relink |
17748 | else |
17749 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
17750 | hardcode_action_GCJ=immediate |
17751 | fi |
17752 | else |
17753 | # We cannot hardcode anything, or else we can only hardcode existing |
17754 | # directories. |
17755 | hardcode_action_GCJ=unsupported |
17756 | fi |
17757 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
17758 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
17759 | |
17760 | if test "$hardcode_action_GCJ" = relink; then |
17761 | # Fast installation is not supported |
17762 | enable_fast_install=no |
17763 | elif test "$shlibpath_overrides_runpath" = yes || |
17764 | test "$enable_shared" = no; then |
17765 | # Fast installation is not necessary |
17766 | enable_fast_install=needless |
17767 | fi |
17768 | |
17769 | |
17770 | # The else clause should only fire when bootstrapping the |
17771 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
17772 | # with your package, and you will get complaints that there are |
17773 | # no rules to generate ltmain.sh. |
17774 | if test -f "$ltmain"; then |
17775 | # See if we are running on zsh, and set the options which allow our commands through |
17776 | # without removal of \ escapes. |
17777 | if test -n "${ZSH_VERSION+set}" ; then |
17778 | setopt NO_GLOB_SUBST |
17779 | fi |
17780 | # Now quote all the things that may contain metacharacters while being |
17781 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
17782 | # variables and quote the copies for generation of the libtool script. |
17783 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
17784 | SED SHELL STRIP \ |
17785 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
17786 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
17787 | deplibs_check_method reload_flag reload_cmds need_locks \ |
17788 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
17789 | lt_cv_sys_global_symbol_to_c_name_address \ |
17790 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
17791 | old_postinstall_cmds old_postuninstall_cmds \ |
17792 | compiler_GCJ \ |
17793 | CC_GCJ \ |
17794 | LD_GCJ \ |
17795 | lt_prog_compiler_wl_GCJ \ |
17796 | lt_prog_compiler_pic_GCJ \ |
17797 | lt_prog_compiler_static_GCJ \ |
17798 | lt_prog_compiler_no_builtin_flag_GCJ \ |
17799 | export_dynamic_flag_spec_GCJ \ |
17800 | thread_safe_flag_spec_GCJ \ |
17801 | whole_archive_flag_spec_GCJ \ |
17802 | enable_shared_with_static_runtimes_GCJ \ |
17803 | old_archive_cmds_GCJ \ |
17804 | old_archive_from_new_cmds_GCJ \ |
17805 | predep_objects_GCJ \ |
17806 | postdep_objects_GCJ \ |
17807 | predeps_GCJ \ |
17808 | postdeps_GCJ \ |
17809 | compiler_lib_search_path_GCJ \ |
17810 | archive_cmds_GCJ \ |
17811 | archive_expsym_cmds_GCJ \ |
17812 | postinstall_cmds_GCJ \ |
17813 | postuninstall_cmds_GCJ \ |
17814 | old_archive_from_expsyms_cmds_GCJ \ |
17815 | allow_undefined_flag_GCJ \ |
17816 | no_undefined_flag_GCJ \ |
17817 | export_symbols_cmds_GCJ \ |
17818 | hardcode_libdir_flag_spec_GCJ \ |
17819 | hardcode_libdir_flag_spec_ld_GCJ \ |
17820 | hardcode_libdir_separator_GCJ \ |
17821 | hardcode_automatic_GCJ \ |
17822 | module_cmds_GCJ \ |
17823 | module_expsym_cmds_GCJ \ |
17824 | lt_cv_prog_compiler_c_o_GCJ \ |
17825 | exclude_expsyms_GCJ \ |
17826 | include_expsyms_GCJ; do |
17827 | |
17828 | case $var in |
17829 | old_archive_cmds_GCJ | \ |
17830 | old_archive_from_new_cmds_GCJ | \ |
17831 | archive_cmds_GCJ | \ |
17832 | archive_expsym_cmds_GCJ | \ |
17833 | module_cmds_GCJ | \ |
17834 | module_expsym_cmds_GCJ | \ |
17835 | old_archive_from_expsyms_cmds_GCJ | \ |
17836 | export_symbols_cmds_GCJ | \ |
17837 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
17838 | postinstall_cmds | postuninstall_cmds | \ |
17839 | old_postinstall_cmds | old_postuninstall_cmds | \ |
17840 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
17841 | # Double-quote double-evaled strings. |
17842 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
17843 | ;; |
17844 | *) |
17845 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
17846 | ;; |
17847 | esac |
17848 | done |
17849 | |
17850 | case $lt_echo in |
17851 | *'\$0 --fallback-echo"') |
17852 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
17853 | ;; |
17854 | esac |
17855 | |
17856 | cfgfile="$ofile" |
17857 | |
17858 | cat <<__EOF__ >> "$cfgfile" |
17859 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
17860 | |
17861 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
17862 | |
17863 | # Shell to use when invoking shell scripts. |
17864 | SHELL=$lt_SHELL |
17865 | |
17866 | # Whether or not to build shared libraries. |
17867 | build_libtool_libs=$enable_shared |
17868 | |
17869 | # Whether or not to build static libraries. |
17870 | build_old_libs=$enable_static |
17871 | |
17872 | # Whether or not to add -lc for building shared libraries. |
17873 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
17874 | |
17875 | # Whether or not to disallow shared libs when runtime libs are static |
17876 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
17877 | |
17878 | # Whether or not to optimize for fast installation. |
17879 | fast_install=$enable_fast_install |
17880 | |
17881 | # The host system. |
17882 | host_alias=$host_alias |
17883 | host=$host |
17884 | host_os=$host_os |
17885 | |
17886 | # The build system. |
17887 | build_alias=$build_alias |
17888 | build=$build |
17889 | build_os=$build_os |
17890 | |
17891 | # An echo program that does not interpret backslashes. |
17892 | echo=$lt_echo |
17893 | |
17894 | # The archiver. |
17895 | AR=$lt_AR |
17896 | AR_FLAGS=$lt_AR_FLAGS |
17897 | |
17898 | # A C compiler. |
17899 | LTCC=$lt_LTCC |
17900 | |
17901 | # LTCC compiler flags. |
17902 | LTCFLAGS=$lt_LTCFLAGS |
17903 | |
17904 | # A language-specific compiler. |
17905 | CC=$lt_compiler_GCJ |
17906 | |
17907 | # Is the compiler the GNU C compiler? |
17908 | with_gcc=$GCC_GCJ |
17909 | |
17910 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
17911 | gcc_ver=\`gcc -dumpversion\` |
17912 | |
17913 | # An ERE matcher. |
17914 | EGREP=$lt_EGREP |
17915 | |
17916 | # The linker used to build libraries. |
17917 | LD=$lt_LD_GCJ |
17918 | |
17919 | # Whether we need hard or soft links. |
17920 | LN_S=$lt_LN_S |
17921 | |
17922 | # A BSD-compatible nm program. |
17923 | NM=$lt_NM |
17924 | |
17925 | # A symbol stripping program |
17926 | STRIP=$lt_STRIP |
17927 | |
17928 | # Used to examine libraries when file_magic_cmd begins "file" |
17929 | MAGIC_CMD=$MAGIC_CMD |
17930 | |
17931 | # Used on cygwin: DLL creation program. |
17932 | DLLTOOL="$DLLTOOL" |
17933 | |
17934 | # Used on cygwin: object dumper. |
17935 | OBJDUMP="$OBJDUMP" |
17936 | |
17937 | # Used on cygwin: assembler. |
17938 | AS="$AS" |
17939 | |
17940 | # The name of the directory that contains temporary libtool files. |
17941 | objdir=$objdir |
17942 | |
17943 | # How to create reloadable object files. |
17944 | reload_flag=$lt_reload_flag |
17945 | reload_cmds=$lt_reload_cmds |
17946 | |
17947 | # How to pass a linker flag through the compiler. |
17948 | wl=$lt_lt_prog_compiler_wl_GCJ |
17949 | |
17950 | # Object file suffix (normally "o"). |
17951 | objext="$ac_objext" |
17952 | |
17953 | # Old archive suffix (normally "a"). |
17954 | libext="$libext" |
17955 | |
17956 | # Shared library suffix (normally ".so"). |
17957 | shrext_cmds='$shrext_cmds' |
17958 | |
17959 | # Executable file suffix (normally ""). |
17960 | exeext="$exeext" |
17961 | |
17962 | # Additional compiler flags for building library objects. |
17963 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
17964 | pic_mode=$pic_mode |
17965 | |
17966 | # What is the maximum length of a command? |
17967 | max_cmd_len=$lt_cv_sys_max_cmd_len |
17968 | |
17969 | # Does compiler simultaneously support -c and -o options? |
17970 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
17971 | |
17972 | # Must we lock files when doing compilation? |
17973 | need_locks=$lt_need_locks |
17974 | |
17975 | # Do we need the lib prefix for modules? |
17976 | need_lib_prefix=$need_lib_prefix |
17977 | |
17978 | # Do we need a version for libraries? |
17979 | need_version=$need_version |
17980 | |
17981 | # Whether dlopen is supported. |
17982 | dlopen_support=$enable_dlopen |
17983 | |
17984 | # Whether dlopen of programs is supported. |
17985 | dlopen_self=$enable_dlopen_self |
17986 | |
17987 | # Whether dlopen of statically linked programs is supported. |
17988 | dlopen_self_static=$enable_dlopen_self_static |
17989 | |
17990 | # Compiler flag to prevent dynamic linking. |
17991 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
17992 | |
17993 | # Compiler flag to turn off builtin functions. |
17994 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
17995 | |
17996 | # Compiler flag to allow reflexive dlopens. |
17997 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
17998 | |
17999 | # Compiler flag to generate shared objects directly from archives. |
18000 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
18001 | |
18002 | # Compiler flag to generate thread-safe objects. |
18003 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
18004 | |
18005 | # Library versioning type. |
18006 | version_type=$version_type |
18007 | |
18008 | # Format of library name prefix. |
18009 | libname_spec=$lt_libname_spec |
18010 | |
18011 | # List of archive names. First name is the real one, the rest are links. |
18012 | # The last name is the one that the linker finds with -lNAME. |
18013 | library_names_spec=$lt_library_names_spec |
18014 | |
18015 | # The coded name of the library, if different from the real name. |
18016 | soname_spec=$lt_soname_spec |
18017 | |
18018 | # Commands used to build and install an old-style archive. |
18019 | RANLIB=$lt_RANLIB |
18020 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
18021 | old_postinstall_cmds=$lt_old_postinstall_cmds |
18022 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
18023 | |
18024 | # Create an old-style archive from a shared archive. |
18025 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
18026 | |
18027 | # Create a temporary old-style archive to link instead of a shared archive. |
18028 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
18029 | |
18030 | # Commands used to build and install a shared archive. |
18031 | archive_cmds=$lt_archive_cmds_GCJ |
18032 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
18033 | postinstall_cmds=$lt_postinstall_cmds |
18034 | postuninstall_cmds=$lt_postuninstall_cmds |
18035 | |
18036 | # Commands used to build a loadable module (assumed same as above if empty) |
18037 | module_cmds=$lt_module_cmds_GCJ |
18038 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
18039 | |
18040 | # Commands to strip libraries. |
18041 | old_striplib=$lt_old_striplib |
18042 | striplib=$lt_striplib |
18043 | |
18044 | # Dependencies to place before the objects being linked to create a |
18045 | # shared library. |
18046 | predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18047 | |
18048 | # Dependencies to place after the objects being linked to create a |
18049 | # shared library. |
18050 | postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18051 | |
18052 | # Dependencies to place before the objects being linked to create a |
18053 | # shared library. |
18054 | predeps=$lt_predeps_GCJ |
18055 | |
18056 | # Dependencies to place after the objects being linked to create a |
18057 | # shared library. |
18058 | postdeps=$lt_postdeps_GCJ |
18059 | |
18060 | # The library search path used internally by the compiler when linking |
18061 | # a shared library. |
18062 | 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"\` |
18063 | |
18064 | # Method to check whether dependent libraries are shared objects. |
18065 | deplibs_check_method=$lt_deplibs_check_method |
18066 | |
18067 | # Command to use when deplibs_check_method == file_magic. |
18068 | file_magic_cmd=$lt_file_magic_cmd |
18069 | |
18070 | # Flag that allows shared libraries with undefined symbols to be built. |
18071 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
18072 | |
18073 | # Flag that forces no undefined symbols. |
18074 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
18075 | |
18076 | # Commands used to finish a libtool library installation in a directory. |
18077 | finish_cmds=$lt_finish_cmds |
18078 | |
18079 | # Same as above, but a single script fragment to be evaled but not shown. |
18080 | finish_eval=$lt_finish_eval |
18081 | |
18082 | # Take the output of nm and produce a listing of raw symbols and C names. |
18083 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
18084 | |
18085 | # Transform the output of nm in a proper C declaration |
18086 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
18087 | |
18088 | # Transform the output of nm in a C name address pair |
18089 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
18090 | |
18091 | # This is the shared library runtime path variable. |
18092 | runpath_var=$runpath_var |
18093 | |
18094 | # This is the shared library path variable. |
18095 | shlibpath_var=$shlibpath_var |
18096 | |
18097 | # Is shlibpath searched before the hard-coded library search path? |
18098 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
18099 | |
18100 | # How to hardcode a shared library path into an executable. |
18101 | hardcode_action=$hardcode_action_GCJ |
18102 | |
18103 | # Whether we should hardcode library paths into libraries. |
18104 | hardcode_into_libs=$hardcode_into_libs |
18105 | |
18106 | # Flag to hardcode \$libdir into a binary during linking. |
18107 | # This must work even if \$libdir does not exist. |
18108 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
18109 | |
18110 | # If ld is used when linking, flag to hardcode \$libdir into |
18111 | # a binary during linking. This must work even if \$libdir does |
18112 | # not exist. |
18113 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
18114 | |
18115 | # Whether we need a single -rpath flag with a separated argument. |
18116 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
18117 | |
18118 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
18119 | # resulting binary. |
18120 | hardcode_direct=$hardcode_direct_GCJ |
18121 | |
18122 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
18123 | # resulting binary. |
18124 | hardcode_minus_L=$hardcode_minus_L_GCJ |
18125 | |
18126 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
18127 | # the resulting binary. |
18128 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
18129 | |
18130 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
18131 | # and all subsequent libraries and executables linked against it. |
18132 | hardcode_automatic=$hardcode_automatic_GCJ |
18133 | |
18134 | # Variables whose values should be saved in libtool wrapper scripts and |
18135 | # restored at relink time. |
18136 | variables_saved_for_relink="$variables_saved_for_relink" |
18137 | |
18138 | # Whether libtool must link a program against all its dependency libraries. |
18139 | link_all_deplibs=$link_all_deplibs_GCJ |
18140 | |
18141 | # Compile-time system search path for libraries |
18142 | 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"\` |
18143 | |
18144 | # Run-time system search path for libraries |
18145 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
18146 | |
18147 | # Fix the shell variable \$srcfile for the compiler. |
18148 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
18149 | |
18150 | # Set to yes if exported symbols are required. |
18151 | always_export_symbols=$always_export_symbols_GCJ |
18152 | |
18153 | # The commands to list exported symbols. |
18154 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
18155 | |
18156 | # The commands to extract the exported symbol list from a shared archive. |
18157 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
18158 | |
18159 | # Symbols that should not be listed in the preloaded symbols. |
18160 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
18161 | |
18162 | # Symbols that must always be exported. |
18163 | include_expsyms=$lt_include_expsyms_GCJ |
18164 | |
18165 | # ### END LIBTOOL TAG CONFIG: $tagname |
18166 | |
18167 | __EOF__ |
18168 | |
18169 | |
18170 | else |
18171 | # If there is no Makefile yet, we rely on a make rule to execute |
18172 | # `config.status --recheck' to rerun these tests and create the |
18173 | # libtool script then. |
18174 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
18175 | if test -f "$ltmain_in"; then |
18176 | test -f Makefile && make "$ltmain" |
18177 | fi |
18178 | fi |
18179 | |
18180 | |
18181 | ac_ext=c |
18182 | ac_cpp='$CPP $CPPFLAGS' |
18183 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18184 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
18185 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
18186 | |
18187 | CC="$lt_save_CC" |
18188 | |
18189 | else |
18190 | tagname="" |
18191 | fi |
18192 | ;; |
18193 | |
18194 | RC) |
18195 | |
18196 | |
18197 | |
18198 | # Source file extension for RC test sources. |
18199 | ac_ext=rc |
18200 | |
18201 | # Object file extension for compiled RC test sources. |
18202 | objext=o |
18203 | objext_RC=$objext |
18204 | |
18205 | # Code to be used in simple compile tests |
18206 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
18207 | |
18208 | # Code to be used in simple link tests |
18209 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
18210 | |
18211 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
18212 | |
18213 | # If no C compiler was specified, use CC. |
18214 | LTCC=${LTCC-"$CC"} |
18215 | |
18216 | # If no C compiler flags were specified, use CFLAGS. |
18217 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
18218 | |
18219 | # Allow CC to be a program name with arguments. |
18220 | compiler=$CC |
18221 | |
18222 | |
18223 | # save warnings/boilerplate of simple test code |
18224 | ac_outfile=conftest.$ac_objext |
18225 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
18226 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
18227 | _lt_compiler_boilerplate=`cat conftest.err` |
18228 | $rm conftest* |
18229 | |
18230 | ac_outfile=conftest.$ac_objext |
18231 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
18232 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
18233 | _lt_linker_boilerplate=`cat conftest.err` |
18234 | $rm conftest* |
18235 | |
18236 | |
18237 | # Allow CC to be a program name with arguments. |
18238 | lt_save_CC="$CC" |
18239 | CC=${RC-"windres"} |
18240 | compiler=$CC |
18241 | compiler_RC=$CC |
18242 | for cc_temp in $compiler""; do |
18243 | case $cc_temp in |
18244 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
18245 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
18246 | \-*) ;; |
18247 | *) break;; |
18248 | esac |
18249 | done |
18250 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
18251 | |
18252 | lt_cv_prog_compiler_c_o_RC=yes |
18253 | |
18254 | # The else clause should only fire when bootstrapping the |
18255 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18256 | # with your package, and you will get complaints that there are |
18257 | # no rules to generate ltmain.sh. |
18258 | if test -f "$ltmain"; then |
18259 | # See if we are running on zsh, and set the options which allow our commands through |
18260 | # without removal of \ escapes. |
18261 | if test -n "${ZSH_VERSION+set}" ; then |
18262 | setopt NO_GLOB_SUBST |
18263 | fi |
18264 | # Now quote all the things that may contain metacharacters while being |
18265 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
18266 | # variables and quote the copies for generation of the libtool script. |
18267 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
18268 | SED SHELL STRIP \ |
18269 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18270 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18271 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18272 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18273 | lt_cv_sys_global_symbol_to_c_name_address \ |
18274 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18275 | old_postinstall_cmds old_postuninstall_cmds \ |
18276 | compiler_RC \ |
18277 | CC_RC \ |
18278 | LD_RC \ |
18279 | lt_prog_compiler_wl_RC \ |
18280 | lt_prog_compiler_pic_RC \ |
18281 | lt_prog_compiler_static_RC \ |
18282 | lt_prog_compiler_no_builtin_flag_RC \ |
18283 | export_dynamic_flag_spec_RC \ |
18284 | thread_safe_flag_spec_RC \ |
18285 | whole_archive_flag_spec_RC \ |
18286 | enable_shared_with_static_runtimes_RC \ |
18287 | old_archive_cmds_RC \ |
18288 | old_archive_from_new_cmds_RC \ |
18289 | predep_objects_RC \ |
18290 | postdep_objects_RC \ |
18291 | predeps_RC \ |
18292 | postdeps_RC \ |
18293 | compiler_lib_search_path_RC \ |
18294 | archive_cmds_RC \ |
18295 | archive_expsym_cmds_RC \ |
18296 | postinstall_cmds_RC \ |
18297 | postuninstall_cmds_RC \ |
18298 | old_archive_from_expsyms_cmds_RC \ |
18299 | allow_undefined_flag_RC \ |
18300 | no_undefined_flag_RC \ |
18301 | export_symbols_cmds_RC \ |
18302 | hardcode_libdir_flag_spec_RC \ |
18303 | hardcode_libdir_flag_spec_ld_RC \ |
18304 | hardcode_libdir_separator_RC \ |
18305 | hardcode_automatic_RC \ |
18306 | module_cmds_RC \ |
18307 | module_expsym_cmds_RC \ |
18308 | lt_cv_prog_compiler_c_o_RC \ |
18309 | exclude_expsyms_RC \ |
18310 | include_expsyms_RC; do |
18311 | |
18312 | case $var in |
18313 | old_archive_cmds_RC | \ |
18314 | old_archive_from_new_cmds_RC | \ |
18315 | archive_cmds_RC | \ |
18316 | archive_expsym_cmds_RC | \ |
18317 | module_cmds_RC | \ |
18318 | module_expsym_cmds_RC | \ |
18319 | old_archive_from_expsyms_cmds_RC | \ |
18320 | export_symbols_cmds_RC | \ |
18321 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
18322 | postinstall_cmds | postuninstall_cmds | \ |
18323 | old_postinstall_cmds | old_postuninstall_cmds | \ |
18324 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
18325 | # Double-quote double-evaled strings. |
18326 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
18327 | ;; |
18328 | *) |
18329 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
18330 | ;; |
18331 | esac |
18332 | done |
18333 | |
18334 | case $lt_echo in |
18335 | *'\$0 --fallback-echo"') |
18336 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
18337 | ;; |
18338 | esac |
18339 | |
18340 | cfgfile="$ofile" |
18341 | |
18342 | cat <<__EOF__ >> "$cfgfile" |
18343 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
18344 | |
18345 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18346 | |
18347 | # Shell to use when invoking shell scripts. |
18348 | SHELL=$lt_SHELL |
18349 | |
18350 | # Whether or not to build shared libraries. |
18351 | build_libtool_libs=$enable_shared |
18352 | |
18353 | # Whether or not to build static libraries. |
18354 | build_old_libs=$enable_static |
18355 | |
18356 | # Whether or not to add -lc for building shared libraries. |
18357 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
18358 | |
18359 | # Whether or not to disallow shared libs when runtime libs are static |
18360 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
18361 | |
18362 | # Whether or not to optimize for fast installation. |
18363 | fast_install=$enable_fast_install |
18364 | |
18365 | # The host system. |
18366 | host_alias=$host_alias |
18367 | host=$host |
18368 | host_os=$host_os |
18369 | |
18370 | # The build system. |
18371 | build_alias=$build_alias |
18372 | build=$build |
18373 | build_os=$build_os |
18374 | |
18375 | # An echo program that does not interpret backslashes. |
18376 | echo=$lt_echo |
18377 | |
18378 | # The archiver. |
18379 | AR=$lt_AR |
18380 | AR_FLAGS=$lt_AR_FLAGS |
18381 | |
18382 | # A C compiler. |
18383 | LTCC=$lt_LTCC |
18384 | |
18385 | # LTCC compiler flags. |
18386 | LTCFLAGS=$lt_LTCFLAGS |
18387 | |
18388 | # A language-specific compiler. |
18389 | CC=$lt_compiler_RC |
18390 | |
18391 | # Is the compiler the GNU C compiler? |
18392 | with_gcc=$GCC_RC |
18393 | |
18394 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
18395 | gcc_ver=\`gcc -dumpversion\` |
18396 | |
18397 | # An ERE matcher. |
18398 | EGREP=$lt_EGREP |
18399 | |
18400 | # The linker used to build libraries. |
18401 | LD=$lt_LD_RC |
18402 | |
18403 | # Whether we need hard or soft links. |
18404 | LN_S=$lt_LN_S |
18405 | |
18406 | # A BSD-compatible nm program. |
18407 | NM=$lt_NM |
18408 | |
18409 | # A symbol stripping program |
18410 | STRIP=$lt_STRIP |
18411 | |
18412 | # Used to examine libraries when file_magic_cmd begins "file" |
18413 | MAGIC_CMD=$MAGIC_CMD |
18414 | |
18415 | # Used on cygwin: DLL creation program. |
18416 | DLLTOOL="$DLLTOOL" |
18417 | |
18418 | # Used on cygwin: object dumper. |
18419 | OBJDUMP="$OBJDUMP" |
18420 | |
18421 | # Used on cygwin: assembler. |
18422 | AS="$AS" |
18423 | |
18424 | # The name of the directory that contains temporary libtool files. |
18425 | objdir=$objdir |
18426 | |
18427 | # How to create reloadable object files. |
18428 | reload_flag=$lt_reload_flag |
18429 | reload_cmds=$lt_reload_cmds |
18430 | |
18431 | # How to pass a linker flag through the compiler. |
18432 | wl=$lt_lt_prog_compiler_wl_RC |
18433 | |
18434 | # Object file suffix (normally "o"). |
18435 | objext="$ac_objext" |
18436 | |
18437 | # Old archive suffix (normally "a"). |
18438 | libext="$libext" |
18439 | |
18440 | # Shared library suffix (normally ".so"). |
18441 | shrext_cmds='$shrext_cmds' |
18442 | |
18443 | # Executable file suffix (normally ""). |
18444 | exeext="$exeext" |
18445 | |
18446 | # Additional compiler flags for building library objects. |
18447 | pic_flag=$lt_lt_prog_compiler_pic_RC |
18448 | pic_mode=$pic_mode |
18449 | |
18450 | # What is the maximum length of a command? |
18451 | max_cmd_len=$lt_cv_sys_max_cmd_len |
18452 | |
18453 | # Does compiler simultaneously support -c and -o options? |
18454 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
18455 | |
18456 | # Must we lock files when doing compilation? |
18457 | need_locks=$lt_need_locks |
18458 | |
18459 | # Do we need the lib prefix for modules? |
18460 | need_lib_prefix=$need_lib_prefix |
18461 | |
18462 | # Do we need a version for libraries? |
18463 | need_version=$need_version |
18464 | |
18465 | # Whether dlopen is supported. |
18466 | dlopen_support=$enable_dlopen |
18467 | |
18468 | # Whether dlopen of programs is supported. |
18469 | dlopen_self=$enable_dlopen_self |
18470 | |
18471 | # Whether dlopen of statically linked programs is supported. |
18472 | dlopen_self_static=$enable_dlopen_self_static |
18473 | |
18474 | # Compiler flag to prevent dynamic linking. |
18475 | link_static_flag=$lt_lt_prog_compiler_static_RC |
18476 | |
18477 | # Compiler flag to turn off builtin functions. |
18478 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
18479 | |
18480 | # Compiler flag to allow reflexive dlopens. |
18481 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
18482 | |
18483 | # Compiler flag to generate shared objects directly from archives. |
18484 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
18485 | |
18486 | # Compiler flag to generate thread-safe objects. |
18487 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
18488 | |
18489 | # Library versioning type. |
18490 | version_type=$version_type |
18491 | |
18492 | # Format of library name prefix. |
18493 | libname_spec=$lt_libname_spec |
18494 | |
18495 | # List of archive names. First name is the real one, the rest are links. |
18496 | # The last name is the one that the linker finds with -lNAME. |
18497 | library_names_spec=$lt_library_names_spec |
18498 | |
18499 | # The coded name of the library, if different from the real name. |
18500 | soname_spec=$lt_soname_spec |
18501 | |
18502 | # Commands used to build and install an old-style archive. |
18503 | RANLIB=$lt_RANLIB |
18504 | old_archive_cmds=$lt_old_archive_cmds_RC |
18505 | old_postinstall_cmds=$lt_old_postinstall_cmds |
18506 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
18507 | |
18508 | # Create an old-style archive from a shared archive. |
18509 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
18510 | |
18511 | # Create a temporary old-style archive to link instead of a shared archive. |
18512 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
18513 | |
18514 | # Commands used to build and install a shared archive. |
18515 | archive_cmds=$lt_archive_cmds_RC |
18516 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
18517 | postinstall_cmds=$lt_postinstall_cmds |
18518 | postuninstall_cmds=$lt_postuninstall_cmds |
18519 | |
18520 | # Commands used to build a loadable module (assumed same as above if empty) |
18521 | module_cmds=$lt_module_cmds_RC |
18522 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
18523 | |
18524 | # Commands to strip libraries. |
18525 | old_striplib=$lt_old_striplib |
18526 | striplib=$lt_striplib |
18527 | |
18528 | # Dependencies to place before the objects being linked to create a |
18529 | # shared library. |
18530 | predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18531 | |
18532 | # Dependencies to place after the objects being linked to create a |
18533 | # shared library. |
18534 | postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18535 | |
18536 | # Dependencies to place before the objects being linked to create a |
18537 | # shared library. |
18538 | predeps=$lt_predeps_RC |
18539 | |
18540 | # Dependencies to place after the objects being linked to create a |
18541 | # shared library. |
18542 | postdeps=$lt_postdeps_RC |
18543 | |
18544 | # The library search path used internally by the compiler when linking |
18545 | # a shared library. |
18546 | 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"\` |
18547 | |
18548 | # Method to check whether dependent libraries are shared objects. |
18549 | deplibs_check_method=$lt_deplibs_check_method |
18550 | |
18551 | # Command to use when deplibs_check_method == file_magic. |
18552 | file_magic_cmd=$lt_file_magic_cmd |
18553 | |
18554 | # Flag that allows shared libraries with undefined symbols to be built. |
18555 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
18556 | |
18557 | # Flag that forces no undefined symbols. |
18558 | no_undefined_flag=$lt_no_undefined_flag_RC |
18559 | |
18560 | # Commands used to finish a libtool library installation in a directory. |
18561 | finish_cmds=$lt_finish_cmds |
18562 | |
18563 | # Same as above, but a single script fragment to be evaled but not shown. |
18564 | finish_eval=$lt_finish_eval |
18565 | |
18566 | # Take the output of nm and produce a listing of raw symbols and C names. |
18567 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
18568 | |
18569 | # Transform the output of nm in a proper C declaration |
18570 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
18571 | |
18572 | # Transform the output of nm in a C name address pair |
18573 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
18574 | |
18575 | # This is the shared library runtime path variable. |
18576 | runpath_var=$runpath_var |
18577 | |
18578 | # This is the shared library path variable. |
18579 | shlibpath_var=$shlibpath_var |
18580 | |
18581 | # Is shlibpath searched before the hard-coded library search path? |
18582 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
18583 | |
18584 | # How to hardcode a shared library path into an executable. |
18585 | hardcode_action=$hardcode_action_RC |
18586 | |
18587 | # Whether we should hardcode library paths into libraries. |
18588 | hardcode_into_libs=$hardcode_into_libs |
18589 | |
18590 | # Flag to hardcode \$libdir into a binary during linking. |
18591 | # This must work even if \$libdir does not exist. |
18592 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
18593 | |
18594 | # If ld is used when linking, flag to hardcode \$libdir into |
18595 | # a binary during linking. This must work even if \$libdir does |
18596 | # not exist. |
18597 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
18598 | |
18599 | # Whether we need a single -rpath flag with a separated argument. |
18600 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
18601 | |
18602 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
18603 | # resulting binary. |
18604 | hardcode_direct=$hardcode_direct_RC |
18605 | |
18606 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
18607 | # resulting binary. |
18608 | hardcode_minus_L=$hardcode_minus_L_RC |
18609 | |
18610 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
18611 | # the resulting binary. |
18612 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
18613 | |
18614 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
18615 | # and all subsequent libraries and executables linked against it. |
18616 | hardcode_automatic=$hardcode_automatic_RC |
18617 | |
18618 | # Variables whose values should be saved in libtool wrapper scripts and |
18619 | # restored at relink time. |
18620 | variables_saved_for_relink="$variables_saved_for_relink" |
18621 | |
18622 | # Whether libtool must link a program against all its dependency libraries. |
18623 | link_all_deplibs=$link_all_deplibs_RC |
18624 | |
18625 | # Compile-time system search path for libraries |
18626 | 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"\` |
18627 | |
18628 | # Run-time system search path for libraries |
18629 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
18630 | |
18631 | # Fix the shell variable \$srcfile for the compiler. |
18632 | fix_srcfile_path="$fix_srcfile_path_RC" |
18633 | |
18634 | # Set to yes if exported symbols are required. |
18635 | always_export_symbols=$always_export_symbols_RC |
18636 | |
18637 | # The commands to list exported symbols. |
18638 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
18639 | |
18640 | # The commands to extract the exported symbol list from a shared archive. |
18641 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
18642 | |
18643 | # Symbols that should not be listed in the preloaded symbols. |
18644 | exclude_expsyms=$lt_exclude_expsyms_RC |
18645 | |
18646 | # Symbols that must always be exported. |
18647 | include_expsyms=$lt_include_expsyms_RC |
18648 | |
18649 | # ### END LIBTOOL TAG CONFIG: $tagname |
18650 | |
18651 | __EOF__ |
18652 | |
18653 | |
18654 | else |
18655 | # If there is no Makefile yet, we rely on a make rule to execute |
18656 | # `config.status --recheck' to rerun these tests and create the |
18657 | # libtool script then. |
18658 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
18659 | if test -f "$ltmain_in"; then |
18660 | test -f Makefile && make "$ltmain" |
18661 | fi |
18662 | fi |
18663 | |
18664 | |
18665 | ac_ext=c |
18666 | ac_cpp='$CPP $CPPFLAGS' |
18667 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18668 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
18669 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
18670 | |
18671 | CC="$lt_save_CC" |
18672 | |
18673 | ;; |
18674 | |
18675 | *) |
18676 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
18677 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
18678 | { (exit 1); exit 1; }; } |
18679 | ;; |
18680 | esac |
18681 | |
18682 | # Append the new tag name to the list of available tags. |
18683 | if test -n "$tagname" ; then |
18684 | available_tags="$available_tags $tagname" |
18685 | fi |
18686 | fi |
18687 | done |
18688 | IFS="$lt_save_ifs" |
18689 | |
18690 | # Now substitute the updated list of available tags. |
18691 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
18692 | mv "${ofile}T" "$ofile" |
18693 | chmod +x "$ofile" |
18694 | else |
18695 | rm -f "${ofile}T" |
18696 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
18697 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
18698 | { (exit 1); exit 1; }; } |
18699 | fi |
18700 | fi |
18701 | |
18702 | |
18703 | |
18704 | # This can be used to rebuild libtool when needed |
18705 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
18706 | |
18707 | # Always use our own libtool. |
18708 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
18709 | |
18710 | # Prevent multiple expansion |
18711 | |
18712 | |
18713 | |
18714 | |
18715 | |
18716 | |
18717 | |
18718 | |
18719 | |
18720 | |
18721 | |
18722 | |
18723 | |
18724 | |
18725 | |
18726 | |
18727 | |
18728 | |
18729 | |
18730 | |
18731 | |
18732 | |
18733 | |
18734 | |
18735 | |
18736 | |
18737 | |
18738 | |
18739 | |
18740 | for ac_header in errno.h fcntl.h sys/fcntl.h sys/ioctl.h sys/file.h unistd.h sysexits.h |
18741 | do |
18742 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
18743 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18744 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
18745 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18746 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18748 | fi |
18749 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
18750 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
18751 | else |
18752 | # Is the header compilable? |
18753 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
18754 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
18755 | cat >conftest.$ac_ext <<_ACEOF |
18756 | /* confdefs.h. */ |
18757 | _ACEOF |
18758 | cat confdefs.h >>conftest.$ac_ext |
18759 | cat >>conftest.$ac_ext <<_ACEOF |
18760 | /* end confdefs.h. */ |
18761 | $ac_includes_default |
18762 | #include <$ac_header> |
18763 | _ACEOF |
18764 | rm -f conftest.$ac_objext |
18765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18766 | (eval $ac_compile) 2>conftest.er1 |
18767 | ac_status=$? |
18768 | grep -v '^ *+' conftest.er1 >conftest.err |
18769 | rm -f conftest.er1 |
18770 | cat conftest.err >&5 |
18771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18772 | (exit $ac_status); } && |
18773 | { ac_try='test -z "$ac_c_werror_flag" |
18774 | || test ! -s conftest.err' |
18775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18776 | (eval $ac_try) 2>&5 |
18777 | ac_status=$? |
18778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18779 | (exit $ac_status); }; } && |
18780 | { ac_try='test -s conftest.$ac_objext' |
18781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18782 | (eval $ac_try) 2>&5 |
18783 | ac_status=$? |
18784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18785 | (exit $ac_status); }; }; then |
18786 | ac_header_compiler=yes |
18787 | else |
18788 | echo "$as_me: failed program was:" >&5 |
18789 | sed 's/^/| /' conftest.$ac_ext >&5 |
18790 | |
18791 | ac_header_compiler=no |
18792 | fi |
18793 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
18794 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18795 | echo "${ECHO_T}$ac_header_compiler" >&6 |
18796 | |
18797 | # Is the header present? |
18798 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
18799 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
18800 | cat >conftest.$ac_ext <<_ACEOF |
18801 | /* confdefs.h. */ |
18802 | _ACEOF |
18803 | cat confdefs.h >>conftest.$ac_ext |
18804 | cat >>conftest.$ac_ext <<_ACEOF |
18805 | /* end confdefs.h. */ |
18806 | #include <$ac_header> |
18807 | _ACEOF |
18808 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
18809 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18810 | ac_status=$? |
18811 | grep -v '^ *+' conftest.er1 >conftest.err |
18812 | rm -f conftest.er1 |
18813 | cat conftest.err >&5 |
18814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18815 | (exit $ac_status); } >/dev/null; then |
18816 | if test -s conftest.err; then |
18817 | ac_cpp_err=$ac_c_preproc_warn_flag |
18818 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
18819 | else |
18820 | ac_cpp_err= |
18821 | fi |
18822 | else |
18823 | ac_cpp_err=yes |
18824 | fi |
18825 | if test -z "$ac_cpp_err"; then |
18826 | ac_header_preproc=yes |
18827 | else |
18828 | echo "$as_me: failed program was:" >&5 |
18829 | sed 's/^/| /' conftest.$ac_ext >&5 |
18830 | |
18831 | ac_header_preproc=no |
18832 | fi |
18833 | rm -f conftest.err conftest.$ac_ext |
18834 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18835 | echo "${ECHO_T}$ac_header_preproc" >&6 |
18836 | |
18837 | # So? What about this header? |
18838 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18839 | yes:no: ) |
18840 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18841 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
18842 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18843 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
18844 | ac_header_preproc=yes |
18845 | ;; |
18846 | no:yes:* ) |
18847 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18848 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
18849 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18850 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
18851 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
18852 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
18853 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
18854 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
18855 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
18856 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
18857 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18858 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
18859 | ( |
18860 | cat <<\_ASBOX |
18861 | ## -------------------------------------------------- ## |
18862 | ## Report this to courier-users@lists.sourceforge.net ## |
18863 | ## -------------------------------------------------- ## |
18864 | _ASBOX |
18865 | ) | |
18866 | sed "s/^/$as_me: WARNING: /" >&2 |
18867 | ;; |
18868 | esac |
18869 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
18870 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18871 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18873 | else |
18874 | eval "$as_ac_Header=\$ac_header_preproc" |
18875 | fi |
18876 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
18877 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
18878 | |
18879 | fi |
18880 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
18881 | cat >>confdefs.h <<_ACEOF |
18882 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
18883 | _ACEOF |
18884 | |
18885 | fi |
18886 | |
18887 | done |
18888 | |
18889 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
18890 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
18891 | if test "${ac_cv_header_stdc+set}" = set; then |
18892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18893 | else |
18894 | cat >conftest.$ac_ext <<_ACEOF |
18895 | /* confdefs.h. */ |
18896 | _ACEOF |
18897 | cat confdefs.h >>conftest.$ac_ext |
18898 | cat >>conftest.$ac_ext <<_ACEOF |
18899 | /* end confdefs.h. */ |
18900 | #include <stdlib.h> |
18901 | #include <stdarg.h> |
18902 | #include <string.h> |
18903 | #include <float.h> |
18904 | |
18905 | int |
18906 | main () |
18907 | { |
18908 | |
18909 | ; |
18910 | return 0; |
18911 | } |
18912 | _ACEOF |
18913 | rm -f conftest.$ac_objext |
18914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18915 | (eval $ac_compile) 2>conftest.er1 |
18916 | ac_status=$? |
18917 | grep -v '^ *+' conftest.er1 >conftest.err |
18918 | rm -f conftest.er1 |
18919 | cat conftest.err >&5 |
18920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18921 | (exit $ac_status); } && |
18922 | { ac_try='test -z "$ac_c_werror_flag" |
18923 | || test ! -s conftest.err' |
18924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18925 | (eval $ac_try) 2>&5 |
18926 | ac_status=$? |
18927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18928 | (exit $ac_status); }; } && |
18929 | { ac_try='test -s conftest.$ac_objext' |
18930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18931 | (eval $ac_try) 2>&5 |
18932 | ac_status=$? |
18933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18934 | (exit $ac_status); }; }; then |
18935 | ac_cv_header_stdc=yes |
18936 | else |
18937 | echo "$as_me: failed program was:" >&5 |
18938 | sed 's/^/| /' conftest.$ac_ext >&5 |
18939 | |
18940 | ac_cv_header_stdc=no |
18941 | fi |
18942 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
18943 | |
18944 | if test $ac_cv_header_stdc = yes; then |
18945 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
18946 | cat >conftest.$ac_ext <<_ACEOF |
18947 | /* confdefs.h. */ |
18948 | _ACEOF |
18949 | cat confdefs.h >>conftest.$ac_ext |
18950 | cat >>conftest.$ac_ext <<_ACEOF |
18951 | /* end confdefs.h. */ |
18952 | #include <string.h> |
18953 | |
18954 | _ACEOF |
18955 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
18956 | $EGREP "memchr" >/dev/null 2>&1; then |
18957 | : |
18958 | else |
18959 | ac_cv_header_stdc=no |
18960 | fi |
18961 | rm -f conftest* |
18962 | |
18963 | fi |
18964 | |
18965 | if test $ac_cv_header_stdc = yes; then |
18966 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
18967 | cat >conftest.$ac_ext <<_ACEOF |
18968 | /* confdefs.h. */ |
18969 | _ACEOF |
18970 | cat confdefs.h >>conftest.$ac_ext |
18971 | cat >>conftest.$ac_ext <<_ACEOF |
18972 | /* end confdefs.h. */ |
18973 | #include <stdlib.h> |
18974 | |
18975 | _ACEOF |
18976 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
18977 | $EGREP "free" >/dev/null 2>&1; then |
18978 | : |
18979 | else |
18980 | ac_cv_header_stdc=no |
18981 | fi |
18982 | rm -f conftest* |
18983 | |
18984 | fi |
18985 | |
18986 | if test $ac_cv_header_stdc = yes; then |
18987 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
18988 | if test "$cross_compiling" = yes; then |
18989 | : |
18990 | else |
18991 | cat >conftest.$ac_ext <<_ACEOF |
18992 | /* confdefs.h. */ |
18993 | _ACEOF |
18994 | cat confdefs.h >>conftest.$ac_ext |
18995 | cat >>conftest.$ac_ext <<_ACEOF |
18996 | /* end confdefs.h. */ |
18997 | #include <ctype.h> |
18998 | #if ((' ' & 0x0FF) == 0x020) |
18999 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
19000 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
19001 | #else |
19002 | # define ISLOWER(c) \ |
19003 | (('a' <= (c) && (c) <= 'i') \ |
19004 | || ('j' <= (c) && (c) <= 'r') \ |
19005 | || ('s' <= (c) && (c) <= 'z')) |
19006 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
19007 | #endif |
19008 | |
19009 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
19010 | int |
19011 | main () |
19012 | { |
19013 | int i; |
19014 | for (i = 0; i < 256; i++) |
19015 | if (XOR (islower (i), ISLOWER (i)) |
19016 | || toupper (i) != TOUPPER (i)) |
19017 | exit(2); |
19018 | exit (0); |
19019 | } |
19020 | _ACEOF |
19021 | rm -f conftest$ac_exeext |
19022 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19023 | (eval $ac_link) 2>&5 |
19024 | ac_status=$? |
19025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19026 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
19027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19028 | (eval $ac_try) 2>&5 |
19029 | ac_status=$? |
19030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19031 | (exit $ac_status); }; }; then |
19032 | : |
19033 | else |
19034 | echo "$as_me: program exited with status $ac_status" >&5 |
19035 | echo "$as_me: failed program was:" >&5 |
19036 | sed 's/^/| /' conftest.$ac_ext >&5 |
19037 | |
19038 | ( exit $ac_status ) |
19039 | ac_cv_header_stdc=no |
19040 | fi |
19041 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
19042 | fi |
19043 | fi |
19044 | fi |
19045 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
19046 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
19047 | if test $ac_cv_header_stdc = yes; then |
19048 | |
19049 | cat >>confdefs.h <<\_ACEOF |
19050 | #define STDC_HEADERS 1 |
19051 | _ACEOF |
19052 | |
19053 | fi |
19054 | |
19055 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
19056 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
19057 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
19058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19059 | else |
19060 | cat >conftest.$ac_ext <<_ACEOF |
19061 | /* confdefs.h. */ |
19062 | _ACEOF |
19063 | cat confdefs.h >>conftest.$ac_ext |
19064 | cat >>conftest.$ac_ext <<_ACEOF |
19065 | /* end confdefs.h. */ |
19066 | #include <sys/types.h> |
19067 | #include <sys/wait.h> |
19068 | #ifndef WEXITSTATUS |
19069 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
19070 | #endif |
19071 | #ifndef WIFEXITED |
19072 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
19073 | #endif |
19074 | |
19075 | int |
19076 | main () |
19077 | { |
19078 | int s; |
19079 | wait (&s); |
19080 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
19081 | ; |
19082 | return 0; |
19083 | } |
19084 | _ACEOF |
19085 | rm -f conftest.$ac_objext |
19086 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19087 | (eval $ac_compile) 2>conftest.er1 |
19088 | ac_status=$? |
19089 | grep -v '^ *+' conftest.er1 >conftest.err |
19090 | rm -f conftest.er1 |
19091 | cat conftest.err >&5 |
19092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19093 | (exit $ac_status); } && |
19094 | { ac_try='test -z "$ac_c_werror_flag" |
19095 | || test ! -s conftest.err' |
19096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19097 | (eval $ac_try) 2>&5 |
19098 | ac_status=$? |
19099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19100 | (exit $ac_status); }; } && |
19101 | { ac_try='test -s conftest.$ac_objext' |
19102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19103 | (eval $ac_try) 2>&5 |
19104 | ac_status=$? |
19105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19106 | (exit $ac_status); }; }; then |
19107 | ac_cv_header_sys_wait_h=yes |
19108 | else |
19109 | echo "$as_me: failed program was:" >&5 |
19110 | sed 's/^/| /' conftest.$ac_ext >&5 |
19111 | |
19112 | ac_cv_header_sys_wait_h=no |
19113 | fi |
19114 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19115 | fi |
19116 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
19117 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
19118 | if test $ac_cv_header_sys_wait_h = yes; then |
19119 | |
19120 | cat >>confdefs.h <<\_ACEOF |
19121 | #define HAVE_SYS_WAIT_H 1 |
19122 | _ACEOF |
19123 | |
19124 | fi |
19125 | |
19126 | |
19127 | |
19128 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
19129 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
19130 | if test "${ac_cv_c_const+set}" = set; then |
19131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19132 | else |
19133 | cat >conftest.$ac_ext <<_ACEOF |
19134 | /* confdefs.h. */ |
19135 | _ACEOF |
19136 | cat confdefs.h >>conftest.$ac_ext |
19137 | cat >>conftest.$ac_ext <<_ACEOF |
19138 | /* end confdefs.h. */ |
19139 | |
19140 | int |
19141 | main () |
19142 | { |
19143 | /* FIXME: Include the comments suggested by Paul. */ |
19144 | #ifndef __cplusplus |
19145 | /* Ultrix mips cc rejects this. */ |
19146 | typedef int charset[2]; |
19147 | const charset x; |
19148 | /* SunOS 4.1.1 cc rejects this. */ |
19149 | char const *const *ccp; |
19150 | char **p; |
19151 | /* NEC SVR4.0.2 mips cc rejects this. */ |
19152 | struct point {int x, y;}; |
19153 | static struct point const zero = {0,0}; |
19154 | /* AIX XL C 1.02.0.0 rejects this. |
19155 | It does not let you subtract one const X* pointer from another in |
19156 | an arm of an if-expression whose if-part is not a constant |
19157 | expression */ |
19158 | const char *g = "string"; |
19159 | ccp = &g + (g ? g-g : 0); |
19160 | /* HPUX 7.0 cc rejects these. */ |
19161 | ++ccp; |
19162 | p = (char**) ccp; |
19163 | ccp = (char const *const *) p; |
19164 | { /* SCO 3.2v4 cc rejects this. */ |
19165 | char *t; |
19166 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
19167 | |
19168 | *t++ = 0; |
19169 | } |
19170 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
19171 | int x[] = {25, 17}; |
19172 | const int *foo = &x[0]; |
19173 | ++foo; |
19174 | } |
19175 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
19176 | typedef const int *iptr; |
19177 | iptr p = 0; |
19178 | ++p; |
19179 | } |
19180 | { /* AIX XL C 1.02.0.0 rejects this saying |
19181 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
19182 | struct s { int j; const int *ap[3]; }; |
19183 | struct s *b; b->j = 5; |
19184 | } |
19185 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
19186 | const int foo = 10; |
19187 | } |
19188 | #endif |
19189 | |
19190 | ; |
19191 | return 0; |
19192 | } |
19193 | _ACEOF |
19194 | rm -f conftest.$ac_objext |
19195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19196 | (eval $ac_compile) 2>conftest.er1 |
19197 | ac_status=$? |
19198 | grep -v '^ *+' conftest.er1 >conftest.err |
19199 | rm -f conftest.er1 |
19200 | cat conftest.err >&5 |
19201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19202 | (exit $ac_status); } && |
19203 | { ac_try='test -z "$ac_c_werror_flag" |
19204 | || test ! -s conftest.err' |
19205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19206 | (eval $ac_try) 2>&5 |
19207 | ac_status=$? |
19208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19209 | (exit $ac_status); }; } && |
19210 | { ac_try='test -s conftest.$ac_objext' |
19211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19212 | (eval $ac_try) 2>&5 |
19213 | ac_status=$? |
19214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19215 | (exit $ac_status); }; }; then |
19216 | ac_cv_c_const=yes |
19217 | else |
19218 | echo "$as_me: failed program was:" >&5 |
19219 | sed 's/^/| /' conftest.$ac_ext >&5 |
19220 | |
19221 | ac_cv_c_const=no |
19222 | fi |
19223 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19224 | fi |
19225 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
19226 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
19227 | if test $ac_cv_c_const = no; then |
19228 | |
19229 | cat >>confdefs.h <<\_ACEOF |
19230 | #define const |
19231 | _ACEOF |
19232 | |
19233 | fi |
19234 | |
19235 | echo "$as_me:$LINENO: checking for off_t" >&5 |
19236 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
19237 | if test "${ac_cv_type_off_t+set}" = set; then |
19238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19239 | else |
19240 | cat >conftest.$ac_ext <<_ACEOF |
19241 | /* confdefs.h. */ |
19242 | _ACEOF |
19243 | cat confdefs.h >>conftest.$ac_ext |
19244 | cat >>conftest.$ac_ext <<_ACEOF |
19245 | /* end confdefs.h. */ |
19246 | $ac_includes_default |
19247 | int |
19248 | main () |
19249 | { |
19250 | if ((off_t *) 0) |
19251 | return 0; |
19252 | if (sizeof (off_t)) |
19253 | return 0; |
19254 | ; |
19255 | return 0; |
19256 | } |
19257 | _ACEOF |
19258 | rm -f conftest.$ac_objext |
19259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19260 | (eval $ac_compile) 2>conftest.er1 |
19261 | ac_status=$? |
19262 | grep -v '^ *+' conftest.er1 >conftest.err |
19263 | rm -f conftest.er1 |
19264 | cat conftest.err >&5 |
19265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19266 | (exit $ac_status); } && |
19267 | { ac_try='test -z "$ac_c_werror_flag" |
19268 | || test ! -s conftest.err' |
19269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19270 | (eval $ac_try) 2>&5 |
19271 | ac_status=$? |
19272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19273 | (exit $ac_status); }; } && |
19274 | { ac_try='test -s conftest.$ac_objext' |
19275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19276 | (eval $ac_try) 2>&5 |
19277 | ac_status=$? |
19278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19279 | (exit $ac_status); }; }; then |
19280 | ac_cv_type_off_t=yes |
19281 | else |
19282 | echo "$as_me: failed program was:" >&5 |
19283 | sed 's/^/| /' conftest.$ac_ext >&5 |
19284 | |
19285 | ac_cv_type_off_t=no |
19286 | fi |
19287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19288 | fi |
19289 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
19290 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
19291 | if test $ac_cv_type_off_t = yes; then |
19292 | : |
19293 | else |
19294 | |
19295 | cat >>confdefs.h <<_ACEOF |
19296 | #define off_t long |
19297 | _ACEOF |
19298 | |
19299 | fi |
19300 | |
19301 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
19302 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
19303 | if test "${ac_cv_type_pid_t+set}" = set; then |
19304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19305 | else |
19306 | cat >conftest.$ac_ext <<_ACEOF |
19307 | /* confdefs.h. */ |
19308 | _ACEOF |
19309 | cat confdefs.h >>conftest.$ac_ext |
19310 | cat >>conftest.$ac_ext <<_ACEOF |
19311 | /* end confdefs.h. */ |
19312 | $ac_includes_default |
19313 | int |
19314 | main () |
19315 | { |
19316 | if ((pid_t *) 0) |
19317 | return 0; |
19318 | if (sizeof (pid_t)) |
19319 | return 0; |
19320 | ; |
19321 | return 0; |
19322 | } |
19323 | _ACEOF |
19324 | rm -f conftest.$ac_objext |
19325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19326 | (eval $ac_compile) 2>conftest.er1 |
19327 | ac_status=$? |
19328 | grep -v '^ *+' conftest.er1 >conftest.err |
19329 | rm -f conftest.er1 |
19330 | cat conftest.err >&5 |
19331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19332 | (exit $ac_status); } && |
19333 | { ac_try='test -z "$ac_c_werror_flag" |
19334 | || test ! -s conftest.err' |
19335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19336 | (eval $ac_try) 2>&5 |
19337 | ac_status=$? |
19338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19339 | (exit $ac_status); }; } && |
19340 | { ac_try='test -s conftest.$ac_objext' |
19341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19342 | (eval $ac_try) 2>&5 |
19343 | ac_status=$? |
19344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19345 | (exit $ac_status); }; }; then |
19346 | ac_cv_type_pid_t=yes |
19347 | else |
19348 | echo "$as_me: failed program was:" >&5 |
19349 | sed 's/^/| /' conftest.$ac_ext >&5 |
19350 | |
19351 | ac_cv_type_pid_t=no |
19352 | fi |
19353 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19354 | fi |
19355 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
19356 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
19357 | if test $ac_cv_type_pid_t = yes; then |
19358 | : |
19359 | else |
19360 | |
19361 | cat >>confdefs.h <<_ACEOF |
19362 | #define pid_t int |
19363 | _ACEOF |
19364 | |
19365 | fi |
19366 | |
19367 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
19368 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
19369 | if test "${ac_cv_type_signal+set}" = set; then |
19370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19371 | else |
19372 | cat >conftest.$ac_ext <<_ACEOF |
19373 | /* confdefs.h. */ |
19374 | _ACEOF |
19375 | cat confdefs.h >>conftest.$ac_ext |
19376 | cat >>conftest.$ac_ext <<_ACEOF |
19377 | /* end confdefs.h. */ |
19378 | #include <sys/types.h> |
19379 | #include <signal.h> |
19380 | #ifdef signal |
19381 | # undef signal |
19382 | #endif |
19383 | #ifdef __cplusplus |
19384 | extern "C" void (*signal (int, void (*)(int)))(int); |
19385 | #else |
19386 | void (*signal ()) (); |
19387 | #endif |
19388 | |
19389 | int |
19390 | main () |
19391 | { |
19392 | int i; |
19393 | ; |
19394 | return 0; |
19395 | } |
19396 | _ACEOF |
19397 | rm -f conftest.$ac_objext |
19398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19399 | (eval $ac_compile) 2>conftest.er1 |
19400 | ac_status=$? |
19401 | grep -v '^ *+' conftest.er1 >conftest.err |
19402 | rm -f conftest.er1 |
19403 | cat conftest.err >&5 |
19404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19405 | (exit $ac_status); } && |
19406 | { ac_try='test -z "$ac_c_werror_flag" |
19407 | || test ! -s conftest.err' |
19408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19409 | (eval $ac_try) 2>&5 |
19410 | ac_status=$? |
19411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19412 | (exit $ac_status); }; } && |
19413 | { ac_try='test -s conftest.$ac_objext' |
19414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19415 | (eval $ac_try) 2>&5 |
19416 | ac_status=$? |
19417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19418 | (exit $ac_status); }; }; then |
19419 | ac_cv_type_signal=void |
19420 | else |
19421 | echo "$as_me: failed program was:" >&5 |
19422 | sed 's/^/| /' conftest.$ac_ext >&5 |
19423 | |
19424 | ac_cv_type_signal=int |
19425 | fi |
19426 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19427 | fi |
19428 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
19429 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
19430 | |
19431 | cat >>confdefs.h <<_ACEOF |
19432 | #define RETSIGTYPE $ac_cv_type_signal |
19433 | _ACEOF |
19434 | |
19435 | |
19436 | |
19437 | echo "$as_me:$LINENO: checking for off64_t" >&5 |
19438 | echo $ECHO_N "checking for off64_t... $ECHO_C" >&6 |
19439 | if test "${liblock_cv_hasoff64t+set}" = set; then |
19440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19441 | else |
19442 | liblock_cv_hasoff64t="no" |
19443 | cat >conftest.$ac_ext <<_ACEOF |
19444 | /* confdefs.h. */ |
19445 | _ACEOF |
19446 | cat confdefs.h >>conftest.$ac_ext |
19447 | cat >>conftest.$ac_ext <<_ACEOF |
19448 | /* end confdefs.h. */ |
19449 | |
19450 | #include <sys/types.h> |
19451 | |
19452 | int |
19453 | main () |
19454 | { |
19455 | |
19456 | off64_t n; |
19457 | |
19458 | n=0; |
19459 | |
19460 | ; |
19461 | return 0; |
19462 | } |
19463 | _ACEOF |
19464 | rm -f conftest.$ac_objext |
19465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19466 | (eval $ac_compile) 2>conftest.er1 |
19467 | ac_status=$? |
19468 | grep -v '^ *+' conftest.er1 >conftest.err |
19469 | rm -f conftest.er1 |
19470 | cat conftest.err >&5 |
19471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19472 | (exit $ac_status); } && |
19473 | { ac_try='test -z "$ac_c_werror_flag" |
19474 | || test ! -s conftest.err' |
19475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19476 | (eval $ac_try) 2>&5 |
19477 | ac_status=$? |
19478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19479 | (exit $ac_status); }; } && |
19480 | { ac_try='test -s conftest.$ac_objext' |
19481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19482 | (eval $ac_try) 2>&5 |
19483 | ac_status=$? |
19484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19485 | (exit $ac_status); }; }; then |
19486 | liblock_cv_hasoff64t="yes" |
19487 | else |
19488 | echo "$as_me: failed program was:" >&5 |
19489 | sed 's/^/| /' conftest.$ac_ext >&5 |
19490 | |
19491 | fi |
19492 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19493 | |
19494 | |
19495 | fi |
19496 | echo "$as_me:$LINENO: result: $liblock_cv_hasoff64t" >&5 |
19497 | echo "${ECHO_T}$liblock_cv_hasoff64t" >&6 |
19498 | |
19499 | if test "$liblock_cv_hasoff64t" = "yes" |
19500 | then |
19501 | LL_OFFSET_TYPE=off64_t |
19502 | else |
19503 | LL_OFFSET_TYPE=off_t |
19504 | fi |
19505 | |
19506 | cat >>confdefs.h <<_ACEOF |
19507 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE |
19508 | _ACEOF |
19509 | |
19510 | |
19511 | echo "$as_me:$LINENO: checking for flock_t" >&5 |
19512 | echo $ECHO_N "checking for flock_t... $ECHO_C" >&6 |
19513 | if test "${liblock_cv_hasflock_t+set}" = set; then |
19514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19515 | else |
19516 | liblock_cv_hasflock_t="no" |
19517 | cat >conftest.$ac_ext <<_ACEOF |
19518 | /* confdefs.h. */ |
19519 | _ACEOF |
19520 | cat confdefs.h >>conftest.$ac_ext |
19521 | cat >>conftest.$ac_ext <<_ACEOF |
19522 | /* end confdefs.h. */ |
19523 | |
19524 | #if HAVE_CONFIG_H |
19525 | #include "config.h" |
19526 | #endif |
19527 | #include <sys/types.h> |
19528 | #if HAVE_FCNTL_H |
19529 | #include <fcntl.h> |
19530 | #endif |
19531 | #if HAVE_SYS_FCNTL_H |
19532 | #include <sys/fcntl.h> |
19533 | #endif |
19534 | |
19535 | int |
19536 | main () |
19537 | { |
19538 | |
19539 | flock_t t; |
19540 | |
19541 | ; |
19542 | return 0; |
19543 | } |
19544 | _ACEOF |
19545 | rm -f conftest.$ac_objext |
19546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19547 | (eval $ac_compile) 2>conftest.er1 |
19548 | ac_status=$? |
19549 | grep -v '^ *+' conftest.er1 >conftest.err |
19550 | rm -f conftest.er1 |
19551 | cat conftest.err >&5 |
19552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19553 | (exit $ac_status); } && |
19554 | { ac_try='test -z "$ac_c_werror_flag" |
19555 | || test ! -s conftest.err' |
19556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19557 | (eval $ac_try) 2>&5 |
19558 | ac_status=$? |
19559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19560 | (exit $ac_status); }; } && |
19561 | { ac_try='test -s conftest.$ac_objext' |
19562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19563 | (eval $ac_try) 2>&5 |
19564 | ac_status=$? |
19565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19566 | (exit $ac_status); }; }; then |
19567 | liblock_cv_hasflock_t="yes" |
19568 | else |
19569 | echo "$as_me: failed program was:" >&5 |
19570 | sed 's/^/| /' conftest.$ac_ext >&5 |
19571 | |
19572 | fi |
19573 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19574 | fi |
19575 | echo "$as_me:$LINENO: result: $liblock_cv_hasflock_t" >&5 |
19576 | echo "${ECHO_T}$liblock_cv_hasflock_t" >&6 |
19577 | |
19578 | if test "$liblock_cv_hasflock_t" = "yes" |
19579 | then |
19580 | |
19581 | cat >>confdefs.h <<_ACEOF |
19582 | #define HAS_FLOCK_T 1 |
19583 | _ACEOF |
19584 | |
19585 | fi |
19586 | |
19587 | |
19588 | |
19589 | for ac_func in setpgrp |
19590 | do |
19591 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
19592 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19593 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
19594 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
19595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19596 | else |
19597 | cat >conftest.$ac_ext <<_ACEOF |
19598 | /* confdefs.h. */ |
19599 | _ACEOF |
19600 | cat confdefs.h >>conftest.$ac_ext |
19601 | cat >>conftest.$ac_ext <<_ACEOF |
19602 | /* end confdefs.h. */ |
19603 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19604 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
19605 | #define $ac_func innocuous_$ac_func |
19606 | |
19607 | /* System header to define __stub macros and hopefully few prototypes, |
19608 | which can conflict with char $ac_func (); below. |
19609 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
19610 | <limits.h> exists even on freestanding compilers. */ |
19611 | |
19612 | #ifdef __STDC__ |
19613 | # include <limits.h> |
19614 | #else |
19615 | # include <assert.h> |
19616 | #endif |
19617 | |
19618 | #undef $ac_func |
19619 | |
19620 | /* Override any gcc2 internal prototype to avoid an error. */ |
19621 | #ifdef __cplusplus |
19622 | extern "C" |
19623 | { |
19624 | #endif |
19625 | /* We use char because int might match the return type of a gcc2 |
19626 | builtin and then its argument prototype would still apply. */ |
19627 | char $ac_func (); |
19628 | /* The GNU C library defines this for functions which it implements |
19629 | to always fail with ENOSYS. Some functions are actually named |
19630 | something starting with __ and the normal name is an alias. */ |
19631 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
19632 | choke me |
19633 | #else |
19634 | char (*f) () = $ac_func; |
19635 | #endif |
19636 | #ifdef __cplusplus |
19637 | } |
19638 | #endif |
19639 | |
19640 | int |
19641 | main () |
19642 | { |
19643 | return f != $ac_func; |
19644 | ; |
19645 | return 0; |
19646 | } |
19647 | _ACEOF |
19648 | rm -f conftest.$ac_objext conftest$ac_exeext |
19649 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19650 | (eval $ac_link) 2>conftest.er1 |
19651 | ac_status=$? |
19652 | grep -v '^ *+' conftest.er1 >conftest.err |
19653 | rm -f conftest.er1 |
19654 | cat conftest.err >&5 |
19655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19656 | (exit $ac_status); } && |
19657 | { ac_try='test -z "$ac_c_werror_flag" |
19658 | || test ! -s conftest.err' |
19659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19660 | (eval $ac_try) 2>&5 |
19661 | ac_status=$? |
19662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19663 | (exit $ac_status); }; } && |
19664 | { ac_try='test -s conftest$ac_exeext' |
19665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19666 | (eval $ac_try) 2>&5 |
19667 | ac_status=$? |
19668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19669 | (exit $ac_status); }; }; then |
19670 | eval "$as_ac_var=yes" |
19671 | else |
19672 | echo "$as_me: failed program was:" >&5 |
19673 | sed 's/^/| /' conftest.$ac_ext >&5 |
19674 | |
19675 | eval "$as_ac_var=no" |
19676 | fi |
19677 | rm -f conftest.err conftest.$ac_objext \ |
19678 | conftest$ac_exeext conftest.$ac_ext |
19679 | fi |
19680 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
19681 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
19682 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
19683 | cat >>confdefs.h <<_ACEOF |
19684 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
19685 | _ACEOF |
19686 | |
19687 | fi |
19688 | done |
19689 | |
19690 | echo "$as_me:$LINENO: checking for setpgrp" >&5 |
19691 | echo $ECHO_N "checking for setpgrp... $ECHO_C" >&6 |
19692 | if test "${ac_cv_func_setpgrp+set}" = set; then |
19693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19694 | else |
19695 | cat >conftest.$ac_ext <<_ACEOF |
19696 | /* confdefs.h. */ |
19697 | _ACEOF |
19698 | cat confdefs.h >>conftest.$ac_ext |
19699 | cat >>conftest.$ac_ext <<_ACEOF |
19700 | /* end confdefs.h. */ |
19701 | /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp. |
19702 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
19703 | #define setpgrp innocuous_setpgrp |
19704 | |
19705 | /* System header to define __stub macros and hopefully few prototypes, |
19706 | which can conflict with char setpgrp (); below. |
19707 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
19708 | <limits.h> exists even on freestanding compilers. */ |
19709 | |
19710 | #ifdef __STDC__ |
19711 | # include <limits.h> |
19712 | #else |
19713 | # include <assert.h> |
19714 | #endif |
19715 | |
19716 | #undef setpgrp |
19717 | |
19718 | /* Override any gcc2 internal prototype to avoid an error. */ |
19719 | #ifdef __cplusplus |
19720 | extern "C" |
19721 | { |
19722 | #endif |
19723 | /* We use char because int might match the return type of a gcc2 |
19724 | builtin and then its argument prototype would still apply. */ |
19725 | char setpgrp (); |
19726 | /* The GNU C library defines this for functions which it implements |
19727 | to always fail with ENOSYS. Some functions are actually named |
19728 | something starting with __ and the normal name is an alias. */ |
19729 | #if defined (__stub_setpgrp) || defined (__stub___setpgrp) |
19730 | choke me |
19731 | #else |
19732 | char (*f) () = setpgrp; |
19733 | #endif |
19734 | #ifdef __cplusplus |
19735 | } |
19736 | #endif |
19737 | |
19738 | int |
19739 | main () |
19740 | { |
19741 | return f != setpgrp; |
19742 | ; |
19743 | return 0; |
19744 | } |
19745 | _ACEOF |
19746 | rm -f conftest.$ac_objext conftest$ac_exeext |
19747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19748 | (eval $ac_link) 2>conftest.er1 |
19749 | ac_status=$? |
19750 | grep -v '^ *+' conftest.er1 >conftest.err |
19751 | rm -f conftest.er1 |
19752 | cat conftest.err >&5 |
19753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19754 | (exit $ac_status); } && |
19755 | { ac_try='test -z "$ac_c_werror_flag" |
19756 | || test ! -s conftest.err' |
19757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19758 | (eval $ac_try) 2>&5 |
19759 | ac_status=$? |
19760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19761 | (exit $ac_status); }; } && |
19762 | { ac_try='test -s conftest$ac_exeext' |
19763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19764 | (eval $ac_try) 2>&5 |
19765 | ac_status=$? |
19766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19767 | (exit $ac_status); }; }; then |
19768 | ac_cv_func_setpgrp=yes |
19769 | else |
19770 | echo "$as_me: failed program was:" >&5 |
19771 | sed 's/^/| /' conftest.$ac_ext >&5 |
19772 | |
19773 | ac_cv_func_setpgrp=no |
19774 | fi |
19775 | rm -f conftest.err conftest.$ac_objext \ |
19776 | conftest$ac_exeext conftest.$ac_ext |
19777 | fi |
19778 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5 |
19779 | echo "${ECHO_T}$ac_cv_func_setpgrp" >&6 |
19780 | if test $ac_cv_func_setpgrp = yes; then |
19781 | |
19782 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
19783 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 |
19784 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
19785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19786 | else |
19787 | if test "$cross_compiling" = yes; then |
19788 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 |
19789 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} |
19790 | { (exit 1); exit 1; }; } |
19791 | else |
19792 | cat >conftest.$ac_ext <<_ACEOF |
19793 | /* confdefs.h. */ |
19794 | _ACEOF |
19795 | cat confdefs.h >>conftest.$ac_ext |
19796 | cat >>conftest.$ac_ext <<_ACEOF |
19797 | /* end confdefs.h. */ |
19798 | #if HAVE_UNISTD_H |
19799 | # include <unistd.h> |
19800 | #endif |
19801 | |
19802 | int |
19803 | main () |
19804 | { |
19805 | /* If this system has a BSD-style setpgrp which takes arguments, |
19806 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case |
19807 | exit successfully. */ |
19808 | exit (setpgrp (1,1) == -1 ? 0 : 1); |
19809 | ; |
19810 | return 0; |
19811 | } |
19812 | _ACEOF |
19813 | rm -f conftest$ac_exeext |
19814 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19815 | (eval $ac_link) 2>&5 |
19816 | ac_status=$? |
19817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19818 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
19819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19820 | (eval $ac_try) 2>&5 |
19821 | ac_status=$? |
19822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19823 | (exit $ac_status); }; }; then |
19824 | ac_cv_func_setpgrp_void=no |
19825 | else |
19826 | echo "$as_me: program exited with status $ac_status" >&5 |
19827 | echo "$as_me: failed program was:" >&5 |
19828 | sed 's/^/| /' conftest.$ac_ext >&5 |
19829 | |
19830 | ( exit $ac_status ) |
19831 | ac_cv_func_setpgrp_void=yes |
19832 | fi |
19833 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
19834 | fi |
19835 | fi |
19836 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
19837 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 |
19838 | if test $ac_cv_func_setpgrp_void = yes; then |
19839 | |
19840 | cat >>confdefs.h <<\_ACEOF |
19841 | #define SETPGRP_VOID 1 |
19842 | _ACEOF |
19843 | |
19844 | fi |
19845 | |
19846 | |
19847 | |
19848 | fi |
19849 | |
19850 | |
19851 | echo "$as_me:$LINENO: checking for fcntl" >&5 |
19852 | echo $ECHO_N "checking for fcntl... $ECHO_C" >&6 |
19853 | if test "${liblock_cv_hasfcntl+set}" = set; then |
19854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19855 | else |
19856 | liblock_cv_hasfcntl="no" |
19857 | cat >conftest.$ac_ext <<_ACEOF |
19858 | /* confdefs.h. */ |
19859 | _ACEOF |
19860 | cat confdefs.h >>conftest.$ac_ext |
19861 | cat >>conftest.$ac_ext <<_ACEOF |
19862 | /* end confdefs.h. */ |
19863 | |
19864 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE |
19865 | #include "${srcdir}/lockfcntl.c" |
19866 | |
19867 | int |
19868 | main () |
19869 | { |
19870 | |
19871 | int n; |
19872 | |
19873 | ; |
19874 | return 0; |
19875 | } |
19876 | _ACEOF |
19877 | rm -f conftest.$ac_objext conftest$ac_exeext |
19878 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19879 | (eval $ac_link) 2>conftest.er1 |
19880 | ac_status=$? |
19881 | grep -v '^ *+' conftest.er1 >conftest.err |
19882 | rm -f conftest.er1 |
19883 | cat conftest.err >&5 |
19884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19885 | (exit $ac_status); } && |
19886 | { ac_try='test -z "$ac_c_werror_flag" |
19887 | || test ! -s conftest.err' |
19888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19889 | (eval $ac_try) 2>&5 |
19890 | ac_status=$? |
19891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19892 | (exit $ac_status); }; } && |
19893 | { ac_try='test -s conftest$ac_exeext' |
19894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19895 | (eval $ac_try) 2>&5 |
19896 | ac_status=$? |
19897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19898 | (exit $ac_status); }; }; then |
19899 | liblock_cv_hasfcntl="yes" |
19900 | else |
19901 | echo "$as_me: failed program was:" >&5 |
19902 | sed 's/^/| /' conftest.$ac_ext >&5 |
19903 | |
19904 | fi |
19905 | rm -f conftest.err conftest.$ac_objext \ |
19906 | conftest$ac_exeext conftest.$ac_ext |
19907 | fi |
19908 | echo "$as_me:$LINENO: result: $liblock_cv_hasfcntl" >&5 |
19909 | echo "${ECHO_T}$liblock_cv_hasfcntl" >&6 |
19910 | if test "$liblock_cv_hasfcntl" = "yes" |
19911 | then |
19912 | |
19913 | cat >>confdefs.h <<_ACEOF |
19914 | #define HAS_FCNTL 1 |
19915 | _ACEOF |
19916 | |
19917 | fi |
19918 | |
19919 | echo "$as_me:$LINENO: checking for flock" >&5 |
19920 | echo $ECHO_N "checking for flock... $ECHO_C" >&6 |
19921 | if test "${liblock_cv_hasflock+set}" = set; then |
19922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19923 | else |
19924 | liblock_cv_hasflock="no" |
19925 | cat >conftest.$ac_ext <<_ACEOF |
19926 | /* confdefs.h. */ |
19927 | _ACEOF |
19928 | cat confdefs.h >>conftest.$ac_ext |
19929 | cat >>conftest.$ac_ext <<_ACEOF |
19930 | /* end confdefs.h. */ |
19931 | |
19932 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE |
19933 | #include "${srcdir}/lockflock.c" |
19934 | |
19935 | int |
19936 | main () |
19937 | { |
19938 | |
19939 | int n; |
19940 | |
19941 | ; |
19942 | return 0; |
19943 | } |
19944 | _ACEOF |
19945 | rm -f conftest.$ac_objext conftest$ac_exeext |
19946 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19947 | (eval $ac_link) 2>conftest.er1 |
19948 | ac_status=$? |
19949 | grep -v '^ *+' conftest.er1 >conftest.err |
19950 | rm -f conftest.er1 |
19951 | cat conftest.err >&5 |
19952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19953 | (exit $ac_status); } && |
19954 | { ac_try='test -z "$ac_c_werror_flag" |
19955 | || test ! -s conftest.err' |
19956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19957 | (eval $ac_try) 2>&5 |
19958 | ac_status=$? |
19959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19960 | (exit $ac_status); }; } && |
19961 | { ac_try='test -s conftest$ac_exeext' |
19962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19963 | (eval $ac_try) 2>&5 |
19964 | ac_status=$? |
19965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19966 | (exit $ac_status); }; }; then |
19967 | liblock_cv_hasflock="yes" |
19968 | else |
19969 | echo "$as_me: failed program was:" >&5 |
19970 | sed 's/^/| /' conftest.$ac_ext >&5 |
19971 | |
19972 | fi |
19973 | rm -f conftest.err conftest.$ac_objext \ |
19974 | conftest$ac_exeext conftest.$ac_ext |
19975 | fi |
19976 | echo "$as_me:$LINENO: result: $liblock_cv_hasflock" >&5 |
19977 | echo "${ECHO_T}$liblock_cv_hasflock" >&6 |
19978 | if test "$liblock_cv_hasflock" = "yes" |
19979 | then |
19980 | |
19981 | cat >>confdefs.h <<_ACEOF |
19982 | #define HAS_FLOCK 1 |
19983 | _ACEOF |
19984 | |
19985 | fi |
19986 | |
19987 | echo "$as_me:$LINENO: checking for lockf" >&5 |
19988 | echo $ECHO_N "checking for lockf... $ECHO_C" >&6 |
19989 | if test "${liblock_cv_haslockf+set}" = set; then |
19990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19991 | else |
19992 | liblock_cv_haslockf="no" |
19993 | cat >conftest.$ac_ext <<_ACEOF |
19994 | /* confdefs.h. */ |
19995 | _ACEOF |
19996 | cat confdefs.h >>conftest.$ac_ext |
19997 | cat >>conftest.$ac_ext <<_ACEOF |
19998 | /* end confdefs.h. */ |
19999 | |
20000 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE |
20001 | #include "${srcdir}/locklockf.c" |
20002 | |
20003 | int |
20004 | main () |
20005 | { |
20006 | |
20007 | int n; |
20008 | |
20009 | ; |
20010 | return 0; |
20011 | } |
20012 | _ACEOF |
20013 | rm -f conftest.$ac_objext conftest$ac_exeext |
20014 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20015 | (eval $ac_link) 2>conftest.er1 |
20016 | ac_status=$? |
20017 | grep -v '^ *+' conftest.er1 >conftest.err |
20018 | rm -f conftest.er1 |
20019 | cat conftest.err >&5 |
20020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20021 | (exit $ac_status); } && |
20022 | { ac_try='test -z "$ac_c_werror_flag" |
20023 | || test ! -s conftest.err' |
20024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20025 | (eval $ac_try) 2>&5 |
20026 | ac_status=$? |
20027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20028 | (exit $ac_status); }; } && |
20029 | { ac_try='test -s conftest$ac_exeext' |
20030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20031 | (eval $ac_try) 2>&5 |
20032 | ac_status=$? |
20033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20034 | (exit $ac_status); }; }; then |
20035 | liblock_cv_haslockf="yes" |
20036 | else |
20037 | echo "$as_me: failed program was:" >&5 |
20038 | sed 's/^/| /' conftest.$ac_ext >&5 |
20039 | |
20040 | fi |
20041 | rm -f conftest.err conftest.$ac_objext \ |
20042 | conftest$ac_exeext conftest.$ac_ext |
20043 | fi |
20044 | echo "$as_me:$LINENO: result: $liblock_cv_haslockf" >&5 |
20045 | echo "${ECHO_T}$liblock_cv_haslockf" >&6 |
20046 | if test "$liblock_cv_haslockf" = "yes" |
20047 | then |
20048 | |
20049 | cat >>confdefs.h <<_ACEOF |
20050 | #define HAS_LOCKF 1 |
20051 | _ACEOF |
20052 | |
20053 | fi |
20054 | |
20055 | echo "$as_me:$LINENO: checking for locking method" >&5 |
20056 | echo $ECHO_N "checking for locking method... $ECHO_C" >&6 |
20057 | |
20058 | # Check whether --with-locking-method or --without-locking-method was given. |
20059 | if test "${with_locking_method+set}" = set; then |
20060 | withval="$with_locking_method" |
20061 | lockmethod="$withval" |
20062 | else |
20063 | lockmethod="" |
20064 | fi; |
20065 | |
20066 | case x$lockmethod in |
20067 | xfcntl) |
20068 | if test "$cross_compiling" = yes; then |
20069 | : |
20070 | |
20071 | else |
20072 | cat >conftest.$ac_ext <<_ACEOF |
20073 | /* confdefs.h. */ |
20074 | _ACEOF |
20075 | cat confdefs.h >>conftest.$ac_ext |
20076 | cat >>conftest.$ac_ext <<_ACEOF |
20077 | /* end confdefs.h. */ |
20078 | |
20079 | #define USE_FCNTL 1 |
20080 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE |
20081 | #include "${srcdir}/locktest.c" |
20082 | |
20083 | _ACEOF |
20084 | rm -f conftest$ac_exeext |
20085 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20086 | (eval $ac_link) 2>&5 |
20087 | ac_status=$? |
20088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20089 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
20090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20091 | (eval $ac_try) 2>&5 |
20092 | ac_status=$? |
20093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20094 | (exit $ac_status); }; }; then |
20095 | : |
20096 | else |
20097 | echo "$as_me: program exited with status $ac_status" >&5 |
20098 | echo "$as_me: failed program was:" >&5 |
20099 | sed 's/^/| /' conftest.$ac_ext >&5 |
20100 | |
20101 | ( exit $ac_status ) |
20102 | { { echo "$as_me:$LINENO: error: fcntl test failed." >&5 |
20103 | echo "$as_me: error: fcntl test failed." >&2;} |
20104 | { (exit 1); exit 1; }; } |
20105 | fi |
20106 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
20107 | fi |
20108 | ;; |
20109 | x) |
20110 | if test "$cross_compiling" = yes; then |
20111 | { { echo "$as_me:$LINENO: error: --with-locking-method option required" >&5 |
20112 | echo "$as_me: error: --with-locking-method option required" >&2;} |
20113 | { (exit 1); exit 1; }; } |
20114 | else |
20115 | cat >conftest.$ac_ext <<_ACEOF |
20116 | /* confdefs.h. */ |
20117 | _ACEOF |
20118 | cat confdefs.h >>conftest.$ac_ext |
20119 | cat >>conftest.$ac_ext <<_ACEOF |
20120 | /* end confdefs.h. */ |
20121 | |
20122 | #define USE_FCNTL 1 |
20123 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE |
20124 | #include "${srcdir}/locktest.c" |
20125 | |
20126 | _ACEOF |
20127 | rm -f conftest$ac_exeext |
20128 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20129 | (eval $ac_link) 2>&5 |
20130 | ac_status=$? |
20131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20132 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
20133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20134 | (eval $ac_try) 2>&5 |
20135 | ac_status=$? |
20136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20137 | (exit $ac_status); }; }; then |
20138 | lockmethod=fcntl |
20139 | else |
20140 | echo "$as_me: program exited with status $ac_status" >&5 |
20141 | echo "$as_me: failed program was:" >&5 |
20142 | sed 's/^/| /' conftest.$ac_ext >&5 |
20143 | |
20144 | fi |
20145 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
20146 | fi |
20147 | ;; |
20148 | esac |
20149 | |
20150 | case x$lockmethod in |
20151 | xlockf) |
20152 | if test "$cross_compiling" = yes; then |
20153 | : |
20154 | |
20155 | else |
20156 | cat >conftest.$ac_ext <<_ACEOF |
20157 | /* confdefs.h. */ |
20158 | _ACEOF |
20159 | cat confdefs.h >>conftest.$ac_ext |
20160 | cat >>conftest.$ac_ext <<_ACEOF |
20161 | /* end confdefs.h. */ |
20162 | |
20163 | #define USE_LOCKF 1 |
20164 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE |
20165 | #include "${srcdir}/locktest.c" |
20166 | |
20167 | _ACEOF |
20168 | rm -f conftest$ac_exeext |
20169 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20170 | (eval $ac_link) 2>&5 |
20171 | ac_status=$? |
20172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20173 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
20174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20175 | (eval $ac_try) 2>&5 |
20176 | ac_status=$? |
20177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20178 | (exit $ac_status); }; }; then |
20179 | : |
20180 | else |
20181 | echo "$as_me: program exited with status $ac_status" >&5 |
20182 | echo "$as_me: failed program was:" >&5 |
20183 | sed 's/^/| /' conftest.$ac_ext >&5 |
20184 | |
20185 | ( exit $ac_status ) |
20186 | { { echo "$as_me:$LINENO: error: lockf test failed." >&5 |
20187 | echo "$as_me: error: lockf test failed." >&2;} |
20188 | { (exit 1); exit 1; }; } |
20189 | fi |
20190 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
20191 | fi |
20192 | ;; |
20193 | x) |
20194 | if test "$cross_compiling" = yes; then |
20195 | { { echo "$as_me:$LINENO: error: --with-locking-method option required" >&5 |
20196 | echo "$as_me: error: --with-locking-method option required" >&2;} |
20197 | { (exit 1); exit 1; }; } |
20198 | else |
20199 | cat >conftest.$ac_ext <<_ACEOF |
20200 | /* confdefs.h. */ |
20201 | _ACEOF |
20202 | cat confdefs.h >>conftest.$ac_ext |
20203 | cat >>conftest.$ac_ext <<_ACEOF |
20204 | /* end confdefs.h. */ |
20205 | |
20206 | #define USE_LOCKF 1 |
20207 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE |
20208 | #include "${srcdir}/locktest.c" |
20209 | |
20210 | _ACEOF |
20211 | rm -f conftest$ac_exeext |
20212 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20213 | (eval $ac_link) 2>&5 |
20214 | ac_status=$? |
20215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20216 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
20217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20218 | (eval $ac_try) 2>&5 |
20219 | ac_status=$? |
20220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20221 | (exit $ac_status); }; }; then |
20222 | lockmethod=lockf |
20223 | else |
20224 | echo "$as_me: program exited with status $ac_status" >&5 |
20225 | echo "$as_me: failed program was:" >&5 |
20226 | sed 's/^/| /' conftest.$ac_ext >&5 |
20227 | |
20228 | fi |
20229 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
20230 | fi |
20231 | ;; |
20232 | esac |
20233 | |
20234 | |
20235 | case x$lockmethod in |
20236 | xflock) |
20237 | if test "$cross_compiling" = yes; then |
20238 | : |
20239 | |
20240 | else |
20241 | cat >conftest.$ac_ext <<_ACEOF |
20242 | /* confdefs.h. */ |
20243 | _ACEOF |
20244 | cat confdefs.h >>conftest.$ac_ext |
20245 | cat >>conftest.$ac_ext <<_ACEOF |
20246 | /* end confdefs.h. */ |
20247 | |
20248 | #define USE_FLOCK 1 |
20249 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE |
20250 | #include "${srcdir}/locktest.c" |
20251 | |
20252 | _ACEOF |
20253 | rm -f conftest$ac_exeext |
20254 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20255 | (eval $ac_link) 2>&5 |
20256 | ac_status=$? |
20257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20258 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
20259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20260 | (eval $ac_try) 2>&5 |
20261 | ac_status=$? |
20262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20263 | (exit $ac_status); }; }; then |
20264 | : |
20265 | else |
20266 | echo "$as_me: program exited with status $ac_status" >&5 |
20267 | echo "$as_me: failed program was:" >&5 |
20268 | sed 's/^/| /' conftest.$ac_ext >&5 |
20269 | |
20270 | ( exit $ac_status ) |
20271 | { { echo "$as_me:$LINENO: error: flock test failed." >&5 |
20272 | echo "$as_me: error: flock test failed." >&2;} |
20273 | { (exit 1); exit 1; }; } |
20274 | fi |
20275 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
20276 | fi |
20277 | ;; |
20278 | x) |
20279 | if test "$cross_compiling" = yes; then |
20280 | { { echo "$as_me:$LINENO: error: --with-locking-method option required" >&5 |
20281 | echo "$as_me: error: --with-locking-method option required" >&2;} |
20282 | { (exit 1); exit 1; }; } |
20283 | else |
20284 | cat >conftest.$ac_ext <<_ACEOF |
20285 | /* confdefs.h. */ |
20286 | _ACEOF |
20287 | cat confdefs.h >>conftest.$ac_ext |
20288 | cat >>conftest.$ac_ext <<_ACEOF |
20289 | /* end confdefs.h. */ |
20290 | |
20291 | #define USE_FLOCK 1 |
20292 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE |
20293 | #include "${srcdir}/locktest.c" |
20294 | |
20295 | _ACEOF |
20296 | rm -f conftest$ac_exeext |
20297 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20298 | (eval $ac_link) 2>&5 |
20299 | ac_status=$? |
20300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20301 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
20302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20303 | (eval $ac_try) 2>&5 |
20304 | ac_status=$? |
20305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20306 | (exit $ac_status); }; }; then |
20307 | lockmethod=flock |
20308 | else |
20309 | echo "$as_me: program exited with status $ac_status" >&5 |
20310 | echo "$as_me: failed program was:" >&5 |
20311 | sed 's/^/| /' conftest.$ac_ext >&5 |
20312 | |
20313 | fi |
20314 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
20315 | fi |
20316 | ;; |
20317 | esac |
20318 | |
20319 | case x$lockmethod in |
20320 | xlockf) |
20321 | ;; |
20322 | xflock) |
20323 | ;; |
20324 | xfcntl) |
20325 | ;; |
20326 | *) |
20327 | { { echo "$as_me:$LINENO: error: must specify --with-locking-method option" >&5 |
20328 | echo "$as_me: error: must specify --with-locking-method option" >&2;} |
20329 | { (exit 1); exit 1; }; } |
20330 | ;; |
20331 | esac |
20332 | |
20333 | echo "$as_me:$LINENO: result: $lockmethod" >&5 |
20334 | echo "${ECHO_T}$lockmethod" >&6 |
20335 | |
20336 | |
20337 | |
20338 | if test "$lockmethod" = "fcntl"; then |
20339 | USE_FCNTL_TRUE= |
20340 | USE_FCNTL_FALSE='#' |
20341 | else |
20342 | USE_FCNTL_TRUE='#' |
20343 | USE_FCNTL_FALSE= |
20344 | fi |
20345 | |
20346 | |
20347 | |
20348 | if test "$lockmethod" = "flock"; then |
20349 | USE_FLOCK_TRUE= |
20350 | USE_FLOCK_FALSE='#' |
20351 | else |
20352 | USE_FLOCK_TRUE='#' |
20353 | USE_FLOCK_FALSE= |
20354 | fi |
20355 | |
20356 | |
20357 | |
20358 | if test "$lockmethod" = "lockf"; then |
20359 | USE_LOCKF_TRUE= |
20360 | USE_LOCKF_FALSE='#' |
20361 | else |
20362 | USE_LOCKF_TRUE='#' |
20363 | USE_LOCKF_FALSE= |
20364 | fi |
20365 | |
20366 | |
20367 | |
20368 | |
20369 | if test -d ${srcdir}/../docbook; then |
20370 | HAVE_SGML_TRUE= |
20371 | HAVE_SGML_FALSE='#' |
20372 | else |
20373 | HAVE_SGML_TRUE='#' |
20374 | HAVE_SGML_FALSE= |
20375 | fi |
20376 | |
20377 | |
20378 | |
20379 | cat >>confdefs.h <<_ACEOF |
20380 | #define liblock_config_h 1 |
20381 | _ACEOF |
20382 | |
20383 | |
20384 | ac_config_files="$ac_config_files Makefile" |
20385 | cat >confcache <<\_ACEOF |
20386 | # This file is a shell script that caches the results of configure |
20387 | # tests run on this system so they can be shared between configure |
20388 | # scripts and configure runs, see configure's option --config-cache. |
20389 | # It is not useful on other systems. If it contains results you don't |
20390 | # want to keep, you may remove or edit it. |
20391 | # |
20392 | # config.status only pays attention to the cache file if you give it |
20393 | # the --recheck option to rerun configure. |
20394 | # |
20395 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
20396 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
20397 | # following values. |
20398 | |
20399 | _ACEOF |
20400 | |
20401 | # The following way of writing the cache mishandles newlines in values, |
20402 | # but we know of no workaround that is simple, portable, and efficient. |
20403 | # So, don't put newlines in cache variables' values. |
20404 | # Ultrix sh set writes to stderr and can't be redirected directly, |
20405 | # and sets the high bit in the cache file unless we assign to the vars. |
20406 | { |
20407 | (set) 2>&1 | |
20408 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
20409 | *ac_space=\ *) |
20410 | # `set' does not quote correctly, so add quotes (double-quote |
20411 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
20412 | sed -n \ |
20413 | "s/'/'\\\\''/g; |
20414 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
20415 | ;; |
20416 | *) |
20417 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
20418 | sed -n \ |
20419 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
20420 | ;; |
20421 | esac; |
20422 | } | |
20423 | sed ' |
20424 | t clear |
20425 | : clear |
20426 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
20427 | t end |
20428 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
20429 | : end' >>confcache |
20430 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
20431 | if test -w $cache_file; then |
20432 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
20433 | cat confcache >$cache_file |
20434 | else |
20435 | echo "not updating unwritable cache $cache_file" |
20436 | fi |
20437 | fi |
20438 | rm -f confcache |
20439 | |
20440 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
20441 | # Let make expand exec_prefix. |
20442 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
20443 | |
20444 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
20445 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
20446 | # trailing colons and then remove the whole line if VPATH becomes empty |
20447 | # (actually we leave an empty line to preserve line numbers). |
20448 | if test "x$srcdir" = x.; then |
20449 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
20450 | s/:*\$(srcdir):*/:/; |
20451 | s/:*\${srcdir}:*/:/; |
20452 | s/:*@srcdir@:*/:/; |
20453 | s/^\([^=]*=[ ]*\):*/\1/; |
20454 | s/:*$//; |
20455 | s/^[^=]*=[ ]*$//; |
20456 | }' |
20457 | fi |
20458 | |
20459 | DEFS=-DHAVE_CONFIG_H |
20460 | |
20461 | ac_libobjs= |
20462 | ac_ltlibobjs= |
20463 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
20464 | # 1. Remove the extension, and $U if already installed. |
20465 | ac_i=`echo "$ac_i" | |
20466 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
20467 | # 2. Add them. |
20468 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
20469 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
20470 | done |
20471 | LIBOBJS=$ac_libobjs |
20472 | |
20473 | LTLIBOBJS=$ac_ltlibobjs |
20474 | |
20475 | |
20476 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
20477 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
20478 | Usually this means the macro was only invoked conditionally." >&5 |
20479 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
20480 | Usually this means the macro was only invoked conditionally." >&2;} |
20481 | { (exit 1); exit 1; }; } |
20482 | fi |
20483 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
20484 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
20485 | Usually this means the macro was only invoked conditionally." >&5 |
20486 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
20487 | Usually this means the macro was only invoked conditionally." >&2;} |
20488 | { (exit 1); exit 1; }; } |
20489 | fi |
20490 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
20491 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
20492 | Usually this means the macro was only invoked conditionally." >&5 |
20493 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
20494 | Usually this means the macro was only invoked conditionally." >&2;} |
20495 | { (exit 1); exit 1; }; } |
20496 | fi |
20497 | if test -z "${USE_FCNTL_TRUE}" && test -z "${USE_FCNTL_FALSE}"; then |
20498 | { { echo "$as_me:$LINENO: error: conditional \"USE_FCNTL\" was never defined. |
20499 | Usually this means the macro was only invoked conditionally." >&5 |
20500 | echo "$as_me: error: conditional \"USE_FCNTL\" was never defined. |
20501 | Usually this means the macro was only invoked conditionally." >&2;} |
20502 | { (exit 1); exit 1; }; } |
20503 | fi |
20504 | if test -z "${USE_FLOCK_TRUE}" && test -z "${USE_FLOCK_FALSE}"; then |
20505 | { { echo "$as_me:$LINENO: error: conditional \"USE_FLOCK\" was never defined. |
20506 | Usually this means the macro was only invoked conditionally." >&5 |
20507 | echo "$as_me: error: conditional \"USE_FLOCK\" was never defined. |
20508 | Usually this means the macro was only invoked conditionally." >&2;} |
20509 | { (exit 1); exit 1; }; } |
20510 | fi |
20511 | if test -z "${USE_LOCKF_TRUE}" && test -z "${USE_LOCKF_FALSE}"; then |
20512 | { { echo "$as_me:$LINENO: error: conditional \"USE_LOCKF\" was never defined. |
20513 | Usually this means the macro was only invoked conditionally." >&5 |
20514 | echo "$as_me: error: conditional \"USE_LOCKF\" was never defined. |
20515 | Usually this means the macro was only invoked conditionally." >&2;} |
20516 | { (exit 1); exit 1; }; } |
20517 | fi |
20518 | if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then |
20519 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined. |
20520 | Usually this means the macro was only invoked conditionally." >&5 |
20521 | echo "$as_me: error: conditional \"HAVE_SGML\" was never defined. |
20522 | Usually this means the macro was only invoked conditionally." >&2;} |
20523 | { (exit 1); exit 1; }; } |
20524 | fi |
20525 | |
20526 | : ${CONFIG_STATUS=./config.status} |
20527 | ac_clean_files_save=$ac_clean_files |
20528 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
20529 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
20530 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
20531 | cat >$CONFIG_STATUS <<_ACEOF |
20532 | #! $SHELL |
20533 | # Generated by $as_me. |
20534 | # Run this file to recreate the current configuration. |
20535 | # Compiler output produced by configure, useful for debugging |
20536 | # configure, is in config.log if it exists. |
20537 | |
20538 | debug=false |
20539 | ac_cs_recheck=false |
20540 | ac_cs_silent=false |
20541 | SHELL=\${CONFIG_SHELL-$SHELL} |
20542 | _ACEOF |
20543 | |
20544 | cat >>$CONFIG_STATUS <<\_ACEOF |
20545 | ## --------------------- ## |
20546 | ## M4sh Initialization. ## |
20547 | ## --------------------- ## |
20548 | |
20549 | # Be Bourne compatible |
20550 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
20551 | emulate sh |
20552 | NULLCMD=: |
20553 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
20554 | # is contrary to our usage. Disable this feature. |
20555 | alias -g '${1+"$@"}'='"$@"' |
20556 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
20557 | set -o posix |
20558 | fi |
20559 | DUALCASE=1; export DUALCASE # for MKS sh |
20560 | |
20561 | # Support unset when possible. |
20562 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
20563 | as_unset=unset |
20564 | else |
20565 | as_unset=false |
20566 | fi |
20567 | |
20568 | |
20569 | # Work around bugs in pre-3.0 UWIN ksh. |
20570 | $as_unset ENV MAIL MAILPATH |
20571 | PS1='$ ' |
20572 | PS2='> ' |
20573 | PS4='+ ' |
20574 | |
20575 | # NLS nuisances. |
20576 | for as_var in \ |
20577 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
20578 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
20579 | LC_TELEPHONE LC_TIME |
20580 | do |
20581 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
20582 | eval $as_var=C; export $as_var |
20583 | else |
20584 | $as_unset $as_var |
20585 | fi |
20586 | done |
20587 | |
20588 | # Required to use basename. |
20589 | if expr a : '\(a\)' >/dev/null 2>&1; then |
20590 | as_expr=expr |
20591 | else |
20592 | as_expr=false |
20593 | fi |
20594 | |
20595 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
20596 | as_basename=basename |
20597 | else |
20598 | as_basename=false |
20599 | fi |
20600 | |
20601 | |
20602 | # Name of the executable. |
20603 | as_me=`$as_basename "$0" || |
20604 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
20605 | X"$0" : 'X\(//\)$' \| \ |
20606 | X"$0" : 'X\(/\)$' \| \ |
20607 | . : '\(.\)' 2>/dev/null || |
20608 | echo X/"$0" | |
20609 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
20610 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
20611 | /^X\/\(\/\).*/{ s//\1/; q; } |
20612 | s/.*/./; q'` |
20613 | |
20614 | |
20615 | # PATH needs CR, and LINENO needs CR and PATH. |
20616 | # Avoid depending upon Character Ranges. |
20617 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
20618 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
20619 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
20620 | as_cr_digits='0123456789' |
20621 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
20622 | |
20623 | # The user is always right. |
20624 | if test "${PATH_SEPARATOR+set}" != set; then |
20625 | echo "#! /bin/sh" >conf$$.sh |
20626 | echo "exit 0" >>conf$$.sh |
20627 | chmod +x conf$$.sh |
20628 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
20629 | PATH_SEPARATOR=';' |
20630 | else |
20631 | PATH_SEPARATOR=: |
20632 | fi |
20633 | rm -f conf$$.sh |
20634 | fi |
20635 | |
20636 | |
20637 | as_lineno_1=$LINENO |
20638 | as_lineno_2=$LINENO |
20639 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
20640 | test "x$as_lineno_1" != "x$as_lineno_2" && |
20641 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
20642 | # Find who we are. Look in the path if we contain no path at all |
20643 | # relative or not. |
20644 | case $0 in |
20645 | *[\\/]* ) as_myself=$0 ;; |
20646 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20647 | for as_dir in $PATH |
20648 | do |
20649 | IFS=$as_save_IFS |
20650 | test -z "$as_dir" && as_dir=. |
20651 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
20652 | done |
20653 | |
20654 | ;; |
20655 | esac |
20656 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
20657 | # in which case we are not to be found in the path. |
20658 | if test "x$as_myself" = x; then |
20659 | as_myself=$0 |
20660 | fi |
20661 | if test ! -f "$as_myself"; then |
20662 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
20663 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
20664 | { (exit 1); exit 1; }; } |
20665 | fi |
20666 | case $CONFIG_SHELL in |
20667 | '') |
20668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20669 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
20670 | do |
20671 | IFS=$as_save_IFS |
20672 | test -z "$as_dir" && as_dir=. |
20673 | for as_base in sh bash ksh sh5; do |
20674 | case $as_dir in |
20675 | /*) |
20676 | if ("$as_dir/$as_base" -c ' |
20677 | as_lineno_1=$LINENO |
20678 | as_lineno_2=$LINENO |
20679 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
20680 | test "x$as_lineno_1" != "x$as_lineno_2" && |
20681 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
20682 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
20683 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
20684 | CONFIG_SHELL=$as_dir/$as_base |
20685 | export CONFIG_SHELL |
20686 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
20687 | fi;; |
20688 | esac |
20689 | done |
20690 | done |
20691 | ;; |
20692 | esac |
20693 | |
20694 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
20695 | # uniformly replaced by the line number. The first 'sed' inserts a |
20696 | # line-number line before each line; the second 'sed' does the real |
20697 | # work. The second script uses 'N' to pair each line-number line |
20698 | # with the numbered line, and appends trailing '-' during |
20699 | # substitution so that $LINENO is not a special case at line end. |
20700 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
20701 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
20702 | sed '=' <$as_myself | |
20703 | sed ' |
20704 | N |
20705 | s,$,-, |
20706 | : loop |
20707 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
20708 | t loop |
20709 | s,-$,, |
20710 | s,^['$as_cr_digits']*\n,, |
20711 | ' >$as_me.lineno && |
20712 | chmod +x $as_me.lineno || |
20713 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
20714 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
20715 | { (exit 1); exit 1; }; } |
20716 | |
20717 | # Don't try to exec as it changes $[0], causing all sort of problems |
20718 | # (the dirname of $[0] is not the place where we might find the |
20719 | # original and so on. Autoconf is especially sensible to this). |
20720 | . ./$as_me.lineno |
20721 | # Exit status is that of the last command. |
20722 | exit |
20723 | } |
20724 | |
20725 | |
20726 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
20727 | *c*,-n*) ECHO_N= ECHO_C=' |
20728 | ' ECHO_T=' ' ;; |
20729 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
20730 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
20731 | esac |
20732 | |
20733 | if expr a : '\(a\)' >/dev/null 2>&1; then |
20734 | as_expr=expr |
20735 | else |
20736 | as_expr=false |
20737 | fi |
20738 | |
20739 | rm -f conf$$ conf$$.exe conf$$.file |
20740 | echo >conf$$.file |
20741 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
20742 | # We could just check for DJGPP; but this test a) works b) is more generic |
20743 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
20744 | if test -f conf$$.exe; then |
20745 | # Don't use ln at all; we don't have any links |
20746 | as_ln_s='cp -p' |
20747 | else |
20748 | as_ln_s='ln -s' |
20749 | fi |
20750 | elif ln conf$$.file conf$$ 2>/dev/null; then |
20751 | as_ln_s=ln |
20752 | else |
20753 | as_ln_s='cp -p' |
20754 | fi |
20755 | rm -f conf$$ conf$$.exe conf$$.file |
20756 | |
20757 | if mkdir -p . 2>/dev/null; then |
20758 | as_mkdir_p=: |
20759 | else |
20760 | test -d ./-p && rmdir ./-p |
20761 | as_mkdir_p=false |
20762 | fi |
20763 | |
20764 | as_executable_p="test -f" |
20765 | |
20766 | # Sed expression to map a string onto a valid CPP name. |
20767 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
20768 | |
20769 | # Sed expression to map a string onto a valid variable name. |
20770 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
20771 | |
20772 | |
20773 | # IFS |
20774 | # We need space, tab and new line, in precisely that order. |
20775 | as_nl=' |
20776 | ' |
20777 | IFS=" $as_nl" |
20778 | |
20779 | # CDPATH. |
20780 | $as_unset CDPATH |
20781 | |
20782 | exec 6>&1 |
20783 | |
20784 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
20785 | # report actual input values of CONFIG_FILES etc. instead of their |
20786 | # values after options handling. Logging --version etc. is OK. |
20787 | exec 5>>config.log |
20788 | { |
20789 | echo |
20790 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
20791 | ## Running $as_me. ## |
20792 | _ASBOX |
20793 | } >&5 |
20794 | cat >&5 <<_CSEOF |
20795 | |
20796 | This file was extended by liblock $as_me 0.60, which was |
20797 | generated by GNU Autoconf 2.59. Invocation command line was |
20798 | |
20799 | CONFIG_FILES = $CONFIG_FILES |
20800 | CONFIG_HEADERS = $CONFIG_HEADERS |
20801 | CONFIG_LINKS = $CONFIG_LINKS |
20802 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
20803 | $ $0 $@ |
20804 | |
20805 | _CSEOF |
20806 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
20807 | echo >&5 |
20808 | _ACEOF |
20809 | |
20810 | # Files that config.status was made for. |
20811 | if test -n "$ac_config_files"; then |
20812 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
20813 | fi |
20814 | |
20815 | if test -n "$ac_config_headers"; then |
20816 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
20817 | fi |
20818 | |
20819 | if test -n "$ac_config_links"; then |
20820 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
20821 | fi |
20822 | |
20823 | if test -n "$ac_config_commands"; then |
20824 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
20825 | fi |
20826 | |
20827 | cat >>$CONFIG_STATUS <<\_ACEOF |
20828 | |
20829 | ac_cs_usage="\ |
20830 | \`$as_me' instantiates files from templates according to the |
20831 | current configuration. |
20832 | |
20833 | Usage: $0 [OPTIONS] [FILE]... |
20834 | |
20835 | -h, --help print this help, then exit |
20836 | -V, --version print version number, then exit |
20837 | -q, --quiet do not print progress messages |
20838 | -d, --debug don't remove temporary files |
20839 | --recheck update $as_me by reconfiguring in the same conditions |
20840 | --file=FILE[:TEMPLATE] |
20841 | instantiate the configuration file FILE |
20842 | --header=FILE[:TEMPLATE] |
20843 | instantiate the configuration header FILE |
20844 | |
20845 | Configuration files: |
20846 | $config_files |
20847 | |
20848 | Configuration headers: |
20849 | $config_headers |
20850 | |
20851 | Configuration commands: |
20852 | $config_commands |
20853 | |
20854 | Report bugs to <bug-autoconf@gnu.org>." |
20855 | _ACEOF |
20856 | |
20857 | cat >>$CONFIG_STATUS <<_ACEOF |
20858 | ac_cs_version="\\ |
20859 | liblock config.status 0.60 |
20860 | configured by $0, generated by GNU Autoconf 2.59, |
20861 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
20862 | |
20863 | Copyright (C) 2003 Free Software Foundation, Inc. |
20864 | This config.status script is free software; the Free Software Foundation |
20865 | gives unlimited permission to copy, distribute and modify it." |
20866 | srcdir=$srcdir |
20867 | INSTALL="$INSTALL" |
20868 | _ACEOF |
20869 | |
20870 | cat >>$CONFIG_STATUS <<\_ACEOF |
20871 | # If no file are specified by the user, then we need to provide default |
20872 | # value. By we need to know if files were specified by the user. |
20873 | ac_need_defaults=: |
20874 | while test $# != 0 |
20875 | do |
20876 | case $1 in |
20877 | --*=*) |
20878 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
20879 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
20880 | ac_shift=: |
20881 | ;; |
20882 | -*) |
20883 | ac_option=$1 |
20884 | ac_optarg=$2 |
20885 | ac_shift=shift |
20886 | ;; |
20887 | *) # This is not an option, so the user has probably given explicit |
20888 | # arguments. |
20889 | ac_option=$1 |
20890 | ac_need_defaults=false;; |
20891 | esac |
20892 | |
20893 | case $ac_option in |
20894 | # Handling of the options. |
20895 | _ACEOF |
20896 | cat >>$CONFIG_STATUS <<\_ACEOF |
20897 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
20898 | ac_cs_recheck=: ;; |
20899 | --version | --vers* | -V ) |
20900 | echo "$ac_cs_version"; exit 0 ;; |
20901 | --he | --h) |
20902 | # Conflict between --help and --header |
20903 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
20904 | Try \`$0 --help' for more information." >&5 |
20905 | echo "$as_me: error: ambiguous option: $1 |
20906 | Try \`$0 --help' for more information." >&2;} |
20907 | { (exit 1); exit 1; }; };; |
20908 | --help | --hel | -h ) |
20909 | echo "$ac_cs_usage"; exit 0 ;; |
20910 | --debug | --d* | -d ) |
20911 | debug=: ;; |
20912 | --file | --fil | --fi | --f ) |
20913 | $ac_shift |
20914 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
20915 | ac_need_defaults=false;; |
20916 | --header | --heade | --head | --hea ) |
20917 | $ac_shift |
20918 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
20919 | ac_need_defaults=false;; |
20920 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
20921 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
20922 | ac_cs_silent=: ;; |
20923 | |
20924 | # This is an error. |
20925 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
20926 | Try \`$0 --help' for more information." >&5 |
20927 | echo "$as_me: error: unrecognized option: $1 |
20928 | Try \`$0 --help' for more information." >&2;} |
20929 | { (exit 1); exit 1; }; } ;; |
20930 | |
20931 | *) ac_config_targets="$ac_config_targets $1" ;; |
20932 | |
20933 | esac |
20934 | shift |
20935 | done |
20936 | |
20937 | ac_configure_extra_args= |
20938 | |
20939 | if $ac_cs_silent; then |
20940 | exec 6>/dev/null |
20941 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
20942 | fi |
20943 | |
20944 | _ACEOF |
20945 | cat >>$CONFIG_STATUS <<_ACEOF |
20946 | if \$ac_cs_recheck; then |
20947 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
20948 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
20949 | fi |
20950 | |
20951 | _ACEOF |
20952 | |
20953 | cat >>$CONFIG_STATUS <<_ACEOF |
20954 | # |
20955 | # INIT-COMMANDS section. |
20956 | # |
20957 | |
20958 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
20959 | |
20960 | _ACEOF |
20961 | |
20962 | |
20963 | |
20964 | cat >>$CONFIG_STATUS <<\_ACEOF |
20965 | for ac_config_target in $ac_config_targets |
20966 | do |
20967 | case "$ac_config_target" in |
20968 | # Handling of arguments. |
20969 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
20970 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
20971 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
20972 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
20973 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
20974 | { (exit 1); exit 1; }; };; |
20975 | esac |
20976 | done |
20977 | |
20978 | # If the user did not use the arguments to specify the items to instantiate, |
20979 | # then the envvar interface is used. Set only those that are not. |
20980 | # We use the long form for the default assignment because of an extremely |
20981 | # bizarre bug on SunOS 4.1.3. |
20982 | if $ac_need_defaults; then |
20983 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
20984 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
20985 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
20986 | fi |
20987 | |
20988 | # Have a temporary directory for convenience. Make it in the build tree |
20989 | # simply because there is no reason to put it here, and in addition, |
20990 | # creating and moving files from /tmp can sometimes cause problems. |
20991 | # Create a temporary directory, and hook for its removal unless debugging. |
20992 | $debug || |
20993 | { |
20994 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
20995 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
20996 | } |
20997 | |
20998 | # Create a (secure) tmp directory for tmp files. |
20999 | |
21000 | { |
21001 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
21002 | test -n "$tmp" && test -d "$tmp" |
21003 | } || |
21004 | { |
21005 | tmp=./confstat$$-$RANDOM |
21006 | (umask 077 && mkdir $tmp) |
21007 | } || |
21008 | { |
21009 | echo "$me: cannot create a temporary directory in ." >&2 |
21010 | { (exit 1); exit 1; } |
21011 | } |
21012 | |
21013 | _ACEOF |
21014 | |
21015 | cat >>$CONFIG_STATUS <<_ACEOF |
21016 | |
21017 | # |
21018 | # CONFIG_FILES section. |
21019 | # |
21020 | |
21021 | # No need to generate the scripts if there are no CONFIG_FILES. |
21022 | # This happens for instance when ./config.status config.h |
21023 | if test -n "\$CONFIG_FILES"; then |
21024 | # Protect against being on the right side of a sed subst in config.status. |
21025 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
21026 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
21027 | s,@SHELL@,$SHELL,;t t |
21028 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
21029 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
21030 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
21031 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
21032 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
21033 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
21034 | s,@exec_prefix@,$exec_prefix,;t t |
21035 | s,@prefix@,$prefix,;t t |
21036 | s,@program_transform_name@,$program_transform_name,;t t |
21037 | s,@bindir@,$bindir,;t t |
21038 | s,@sbindir@,$sbindir,;t t |
21039 | s,@libexecdir@,$libexecdir,;t t |
21040 | s,@datadir@,$datadir,;t t |
21041 | s,@sysconfdir@,$sysconfdir,;t t |
21042 | s,@sharedstatedir@,$sharedstatedir,;t t |
21043 | s,@localstatedir@,$localstatedir,;t t |
21044 | s,@libdir@,$libdir,;t t |
21045 | s,@includedir@,$includedir,;t t |
21046 | s,@oldincludedir@,$oldincludedir,;t t |
21047 | s,@infodir@,$infodir,;t t |
21048 | s,@mandir@,$mandir,;t t |
21049 | s,@build_alias@,$build_alias,;t t |
21050 | s,@host_alias@,$host_alias,;t t |
21051 | s,@target_alias@,$target_alias,;t t |
21052 | s,@DEFS@,$DEFS,;t t |
21053 | s,@ECHO_C@,$ECHO_C,;t t |
21054 | s,@ECHO_N@,$ECHO_N,;t t |
21055 | s,@ECHO_T@,$ECHO_T,;t t |
21056 | s,@LIBS@,$LIBS,;t t |
21057 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
21058 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
21059 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
21060 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
21061 | s,@PACKAGE@,$PACKAGE,;t t |
21062 | s,@VERSION@,$VERSION,;t t |
21063 | s,@ACLOCAL@,$ACLOCAL,;t t |
21064 | s,@AUTOCONF@,$AUTOCONF,;t t |
21065 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
21066 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
21067 | s,@MAKEINFO@,$MAKEINFO,;t t |
21068 | s,@install_sh@,$install_sh,;t t |
21069 | s,@STRIP@,$STRIP,;t t |
21070 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
21071 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
21072 | s,@mkdir_p@,$mkdir_p,;t t |
21073 | s,@AWK@,$AWK,;t t |
21074 | s,@SET_MAKE@,$SET_MAKE,;t t |
21075 | s,@am__leading_dot@,$am__leading_dot,;t t |
21076 | s,@AMTAR@,$AMTAR,;t t |
21077 | s,@am__tar@,$am__tar,;t t |
21078 | s,@am__untar@,$am__untar,;t t |
21079 | s,@CC@,$CC,;t t |
21080 | s,@CFLAGS@,$CFLAGS,;t t |
21081 | s,@LDFLAGS@,$LDFLAGS,;t t |
21082 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
21083 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
21084 | s,@EXEEXT@,$EXEEXT,;t t |
21085 | s,@OBJEXT@,$OBJEXT,;t t |
21086 | s,@DEPDIR@,$DEPDIR,;t t |
21087 | s,@am__include@,$am__include,;t t |
21088 | s,@am__quote@,$am__quote,;t t |
21089 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
21090 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
21091 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
21092 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
21093 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
21094 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
21095 | s,@LN_S@,$LN_S,;t t |
21096 | s,@build@,$build,;t t |
21097 | s,@build_cpu@,$build_cpu,;t t |
21098 | s,@build_vendor@,$build_vendor,;t t |
21099 | s,@build_os@,$build_os,;t t |
21100 | s,@host@,$host,;t t |
21101 | s,@host_cpu@,$host_cpu,;t t |
21102 | s,@host_vendor@,$host_vendor,;t t |
21103 | s,@host_os@,$host_os,;t t |
21104 | s,@SED@,$SED,;t t |
21105 | s,@EGREP@,$EGREP,;t t |
21106 | s,@ECHO@,$ECHO,;t t |
21107 | s,@AR@,$AR,;t t |
21108 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
21109 | s,@RANLIB@,$RANLIB,;t t |
21110 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
21111 | s,@CPP@,$CPP,;t t |
21112 | s,@CXX@,$CXX,;t t |
21113 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
21114 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
21115 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
21116 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
21117 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
21118 | s,@CXXCPP@,$CXXCPP,;t t |
21119 | s,@F77@,$F77,;t t |
21120 | s,@FFLAGS@,$FFLAGS,;t t |
21121 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
21122 | s,@LIBTOOL@,$LIBTOOL,;t t |
21123 | s,@USE_FCNTL_TRUE@,$USE_FCNTL_TRUE,;t t |
21124 | s,@USE_FCNTL_FALSE@,$USE_FCNTL_FALSE,;t t |
21125 | s,@USE_FLOCK_TRUE@,$USE_FLOCK_TRUE,;t t |
21126 | s,@USE_FLOCK_FALSE@,$USE_FLOCK_FALSE,;t t |
21127 | s,@USE_LOCKF_TRUE@,$USE_LOCKF_TRUE,;t t |
21128 | s,@USE_LOCKF_FALSE@,$USE_LOCKF_FALSE,;t t |
21129 | s,@HAVE_SGML_TRUE@,$HAVE_SGML_TRUE,;t t |
21130 | s,@HAVE_SGML_FALSE@,$HAVE_SGML_FALSE,;t t |
21131 | s,@LIBOBJS@,$LIBOBJS,;t t |
21132 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
21133 | CEOF |
21134 | |
21135 | _ACEOF |
21136 | |
21137 | cat >>$CONFIG_STATUS <<\_ACEOF |
21138 | # Split the substitutions into bite-sized pieces for seds with |
21139 | # small command number limits, like on Digital OSF/1 and HP-UX. |
21140 | ac_max_sed_lines=48 |
21141 | ac_sed_frag=1 # Number of current file. |
21142 | ac_beg=1 # First line for current file. |
21143 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
21144 | ac_more_lines=: |
21145 | ac_sed_cmds= |
21146 | while $ac_more_lines; do |
21147 | if test $ac_beg -gt 1; then |
21148 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
21149 | else |
21150 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
21151 | fi |
21152 | if test ! -s $tmp/subs.frag; then |
21153 | ac_more_lines=false |
21154 | else |
21155 | # The purpose of the label and of the branching condition is to |
21156 | # speed up the sed processing (if there are no `@' at all, there |
21157 | # is no need to browse any of the substitutions). |
21158 | # These are the two extra sed commands mentioned above. |
21159 | (echo ':t |
21160 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
21161 | if test -z "$ac_sed_cmds"; then |
21162 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
21163 | else |
21164 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
21165 | fi |
21166 | ac_sed_frag=`expr $ac_sed_frag + 1` |
21167 | ac_beg=$ac_end |
21168 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
21169 | fi |
21170 | done |
21171 | if test -z "$ac_sed_cmds"; then |
21172 | ac_sed_cmds=cat |
21173 | fi |
21174 | fi # test -n "$CONFIG_FILES" |
21175 | |
21176 | _ACEOF |
21177 | cat >>$CONFIG_STATUS <<\_ACEOF |
21178 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
21179 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
21180 | case $ac_file in |
21181 | - | *:- | *:-:* ) # input from stdin |
21182 | cat >$tmp/stdin |
21183 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
21184 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
21185 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
21186 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
21187 | * ) ac_file_in=$ac_file.in ;; |
21188 | esac |
21189 | |
21190 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
21191 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
21192 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21193 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
21194 | X"$ac_file" : 'X\(//\)$' \| \ |
21195 | X"$ac_file" : 'X\(/\)' \| \ |
21196 | . : '\(.\)' 2>/dev/null || |
21197 | echo X"$ac_file" | |
21198 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
21199 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
21200 | /^X\(\/\/\)$/{ s//\1/; q; } |
21201 | /^X\(\/\).*/{ s//\1/; q; } |
21202 | s/.*/./; q'` |
21203 | { if $as_mkdir_p; then |
21204 | mkdir -p "$ac_dir" |
21205 | else |
21206 | as_dir="$ac_dir" |
21207 | as_dirs= |
21208 | while test ! -d "$as_dir"; do |
21209 | as_dirs="$as_dir $as_dirs" |
21210 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
21211 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21212 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
21213 | X"$as_dir" : 'X\(//\)$' \| \ |
21214 | X"$as_dir" : 'X\(/\)' \| \ |
21215 | . : '\(.\)' 2>/dev/null || |
21216 | echo X"$as_dir" | |
21217 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
21218 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
21219 | /^X\(\/\/\)$/{ s//\1/; q; } |
21220 | /^X\(\/\).*/{ s//\1/; q; } |
21221 | s/.*/./; q'` |
21222 | done |
21223 | test ! -n "$as_dirs" || mkdir $as_dirs |
21224 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
21225 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
21226 | { (exit 1); exit 1; }; }; } |
21227 | |
21228 | ac_builddir=. |
21229 | |
21230 | if test "$ac_dir" != .; then |
21231 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
21232 | # A "../" for each directory in $ac_dir_suffix. |
21233 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
21234 | else |
21235 | ac_dir_suffix= ac_top_builddir= |
21236 | fi |
21237 | |
21238 | case $srcdir in |
21239 | .) # No --srcdir option. We are building in place. |
21240 | ac_srcdir=. |
21241 | if test -z "$ac_top_builddir"; then |
21242 | ac_top_srcdir=. |
21243 | else |
21244 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
21245 | fi ;; |
21246 | [\\/]* | ?:[\\/]* ) # Absolute path. |
21247 | ac_srcdir=$srcdir$ac_dir_suffix; |
21248 | ac_top_srcdir=$srcdir ;; |
21249 | *) # Relative path. |
21250 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
21251 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
21252 | esac |
21253 | |
21254 | # Do not use `cd foo && pwd` to compute absolute paths, because |
21255 | # the directories may not exist. |
21256 | case `pwd` in |
21257 | .) ac_abs_builddir="$ac_dir";; |
21258 | *) |
21259 | case "$ac_dir" in |
21260 | .) ac_abs_builddir=`pwd`;; |
21261 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
21262 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
21263 | esac;; |
21264 | esac |
21265 | case $ac_abs_builddir in |
21266 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
21267 | *) |
21268 | case ${ac_top_builddir}. in |
21269 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
21270 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
21271 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
21272 | esac;; |
21273 | esac |
21274 | case $ac_abs_builddir in |
21275 | .) ac_abs_srcdir=$ac_srcdir;; |
21276 | *) |
21277 | case $ac_srcdir in |
21278 | .) ac_abs_srcdir=$ac_abs_builddir;; |
21279 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
21280 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
21281 | esac;; |
21282 | esac |
21283 | case $ac_abs_builddir in |
21284 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
21285 | *) |
21286 | case $ac_top_srcdir in |
21287 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
21288 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
21289 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
21290 | esac;; |
21291 | esac |
21292 | |
21293 | |
21294 | case $INSTALL in |
21295 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
21296 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
21297 | esac |
21298 | |
21299 | if test x"$ac_file" != x-; then |
21300 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
21301 | echo "$as_me: creating $ac_file" >&6;} |
21302 | rm -f "$ac_file" |
21303 | fi |
21304 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
21305 | # use $as_me), people would be surprised to read: |
21306 | # /* config.h. Generated by config.status. */ |
21307 | if test x"$ac_file" = x-; then |
21308 | configure_input= |
21309 | else |
21310 | configure_input="$ac_file. " |
21311 | fi |
21312 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
21313 | sed 's,.*/,,'` by configure." |
21314 | |
21315 | # First look for the input files in the build tree, otherwise in the |
21316 | # src tree. |
21317 | ac_file_inputs=`IFS=: |
21318 | for f in $ac_file_in; do |
21319 | case $f in |
21320 | -) echo $tmp/stdin ;; |
21321 | [\\/$]*) |
21322 | # Absolute (can't be DOS-style, as IFS=:) |
21323 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
21324 | echo "$as_me: error: cannot find input file: $f" >&2;} |
21325 | { (exit 1); exit 1; }; } |
21326 | echo "$f";; |
21327 | *) # Relative |
21328 | if test -f "$f"; then |
21329 | # Build tree |
21330 | echo "$f" |
21331 | elif test -f "$srcdir/$f"; then |
21332 | # Source tree |
21333 | echo "$srcdir/$f" |
21334 | else |
21335 | # /dev/null tree |
21336 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
21337 | echo "$as_me: error: cannot find input file: $f" >&2;} |
21338 | { (exit 1); exit 1; }; } |
21339 | fi;; |
21340 | esac |
21341 | done` || { (exit 1); exit 1; } |
21342 | _ACEOF |
21343 | cat >>$CONFIG_STATUS <<_ACEOF |
21344 | sed "$ac_vpsub |
21345 | $extrasub |
21346 | _ACEOF |
21347 | cat >>$CONFIG_STATUS <<\_ACEOF |
21348 | :t |
21349 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
21350 | s,@configure_input@,$configure_input,;t t |
21351 | s,@srcdir@,$ac_srcdir,;t t |
21352 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
21353 | s,@top_srcdir@,$ac_top_srcdir,;t t |
21354 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
21355 | s,@builddir@,$ac_builddir,;t t |
21356 | s,@abs_builddir@,$ac_abs_builddir,;t t |
21357 | s,@top_builddir@,$ac_top_builddir,;t t |
21358 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
21359 | s,@INSTALL@,$ac_INSTALL,;t t |
21360 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
21361 | rm -f $tmp/stdin |
21362 | if test x"$ac_file" != x-; then |
21363 | mv $tmp/out $ac_file |
21364 | else |
21365 | cat $tmp/out |
21366 | rm -f $tmp/out |
21367 | fi |
21368 | |
21369 | done |
21370 | _ACEOF |
21371 | cat >>$CONFIG_STATUS <<\_ACEOF |
21372 | |
21373 | # |
21374 | # CONFIG_HEADER section. |
21375 | # |
21376 | |
21377 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
21378 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
21379 | # |
21380 | # ac_d sets the value in "#define NAME VALUE" lines. |
21381 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
21382 | ac_dB='[ ].*$,\1#\2' |
21383 | ac_dC=' ' |
21384 | ac_dD=',;t' |
21385 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
21386 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
21387 | ac_uB='$,\1#\2define\3' |
21388 | ac_uC=' ' |
21389 | ac_uD=',;t' |
21390 | |
21391 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
21392 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
21393 | case $ac_file in |
21394 | - | *:- | *:-:* ) # input from stdin |
21395 | cat >$tmp/stdin |
21396 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
21397 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
21398 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
21399 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
21400 | * ) ac_file_in=$ac_file.in ;; |
21401 | esac |
21402 | |
21403 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
21404 | echo "$as_me: creating $ac_file" >&6;} |
21405 | |
21406 | # First look for the input files in the build tree, otherwise in the |
21407 | # src tree. |
21408 | ac_file_inputs=`IFS=: |
21409 | for f in $ac_file_in; do |
21410 | case $f in |
21411 | -) echo $tmp/stdin ;; |
21412 | [\\/$]*) |
21413 | # Absolute (can't be DOS-style, as IFS=:) |
21414 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
21415 | echo "$as_me: error: cannot find input file: $f" >&2;} |
21416 | { (exit 1); exit 1; }; } |
21417 | # Do quote $f, to prevent DOS paths from being IFS'd. |
21418 | echo "$f";; |
21419 | *) # Relative |
21420 | if test -f "$f"; then |
21421 | # Build tree |
21422 | echo "$f" |
21423 | elif test -f "$srcdir/$f"; then |
21424 | # Source tree |
21425 | echo "$srcdir/$f" |
21426 | else |
21427 | # /dev/null tree |
21428 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
21429 | echo "$as_me: error: cannot find input file: $f" >&2;} |
21430 | { (exit 1); exit 1; }; } |
21431 | fi;; |
21432 | esac |
21433 | done` || { (exit 1); exit 1; } |
21434 | # Remove the trailing spaces. |
21435 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
21436 | |
21437 | _ACEOF |
21438 | |
21439 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
21440 | # `conftest.undefs', that substitutes the proper values into |
21441 | # config.h.in to produce config.h. The first handles `#define' |
21442 | # templates, and the second `#undef' templates. |
21443 | # And first: Protect against being on the right side of a sed subst in |
21444 | # config.status. Protect against being in an unquoted here document |
21445 | # in config.status. |
21446 | rm -f conftest.defines conftest.undefs |
21447 | # Using a here document instead of a string reduces the quoting nightmare. |
21448 | # Putting comments in sed scripts is not portable. |
21449 | # |
21450 | # `end' is used to avoid that the second main sed command (meant for |
21451 | # 0-ary CPP macros) applies to n-ary macro definitions. |
21452 | # See the Autoconf documentation for `clear'. |
21453 | cat >confdef2sed.sed <<\_ACEOF |
21454 | s/[\\&,]/\\&/g |
21455 | s,[\\$`],\\&,g |
21456 | t clear |
21457 | : clear |
21458 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
21459 | t end |
21460 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
21461 | : end |
21462 | _ACEOF |
21463 | # If some macros were called several times there might be several times |
21464 | # the same #defines, which is useless. Nevertheless, we may not want to |
21465 | # sort them, since we want the *last* AC-DEFINE to be honored. |
21466 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
21467 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
21468 | rm -f confdef2sed.sed |
21469 | |
21470 | # This sed command replaces #undef with comments. This is necessary, for |
21471 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
21472 | # on some systems where configure will not decide to define it. |
21473 | cat >>conftest.undefs <<\_ACEOF |
21474 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
21475 | _ACEOF |
21476 | |
21477 | # Break up conftest.defines because some shells have a limit on the size |
21478 | # of here documents, and old seds have small limits too (100 cmds). |
21479 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
21480 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
21481 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
21482 | echo ' :' >>$CONFIG_STATUS |
21483 | rm -f conftest.tail |
21484 | while grep . conftest.defines >/dev/null |
21485 | do |
21486 | # Write a limited-size here document to $tmp/defines.sed. |
21487 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
21488 | # Speed up: don't consider the non `#define' lines. |
21489 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
21490 | # Work around the forget-to-reset-the-flag bug. |
21491 | echo 't clr' >>$CONFIG_STATUS |
21492 | echo ': clr' >>$CONFIG_STATUS |
21493 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
21494 | echo 'CEOF |
21495 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
21496 | rm -f $tmp/in |
21497 | mv $tmp/out $tmp/in |
21498 | ' >>$CONFIG_STATUS |
21499 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
21500 | rm -f conftest.defines |
21501 | mv conftest.tail conftest.defines |
21502 | done |
21503 | rm -f conftest.defines |
21504 | echo ' fi # grep' >>$CONFIG_STATUS |
21505 | echo >>$CONFIG_STATUS |
21506 | |
21507 | # Break up conftest.undefs because some shells have a limit on the size |
21508 | # of here documents, and old seds have small limits too (100 cmds). |
21509 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
21510 | rm -f conftest.tail |
21511 | while grep . conftest.undefs >/dev/null |
21512 | do |
21513 | # Write a limited-size here document to $tmp/undefs.sed. |
21514 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
21515 | # Speed up: don't consider the non `#undef' |
21516 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
21517 | # Work around the forget-to-reset-the-flag bug. |
21518 | echo 't clr' >>$CONFIG_STATUS |
21519 | echo ': clr' >>$CONFIG_STATUS |
21520 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
21521 | echo 'CEOF |
21522 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
21523 | rm -f $tmp/in |
21524 | mv $tmp/out $tmp/in |
21525 | ' >>$CONFIG_STATUS |
21526 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
21527 | rm -f conftest.undefs |
21528 | mv conftest.tail conftest.undefs |
21529 | done |
21530 | rm -f conftest.undefs |
21531 | |
21532 | cat >>$CONFIG_STATUS <<\_ACEOF |
21533 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
21534 | # use $as_me), people would be surprised to read: |
21535 | # /* config.h. Generated by config.status. */ |
21536 | if test x"$ac_file" = x-; then |
21537 | echo "/* Generated by configure. */" >$tmp/config.h |
21538 | else |
21539 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
21540 | fi |
21541 | cat $tmp/in >>$tmp/config.h |
21542 | rm -f $tmp/in |
21543 | if test x"$ac_file" != x-; then |
21544 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
21545 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
21546 | echo "$as_me: $ac_file is unchanged" >&6;} |
21547 | else |
21548 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
21549 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21550 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
21551 | X"$ac_file" : 'X\(//\)$' \| \ |
21552 | X"$ac_file" : 'X\(/\)' \| \ |
21553 | . : '\(.\)' 2>/dev/null || |
21554 | echo X"$ac_file" | |
21555 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
21556 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
21557 | /^X\(\/\/\)$/{ s//\1/; q; } |
21558 | /^X\(\/\).*/{ s//\1/; q; } |
21559 | s/.*/./; q'` |
21560 | { if $as_mkdir_p; then |
21561 | mkdir -p "$ac_dir" |
21562 | else |
21563 | as_dir="$ac_dir" |
21564 | as_dirs= |
21565 | while test ! -d "$as_dir"; do |
21566 | as_dirs="$as_dir $as_dirs" |
21567 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
21568 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21569 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
21570 | X"$as_dir" : 'X\(//\)$' \| \ |
21571 | X"$as_dir" : 'X\(/\)' \| \ |
21572 | . : '\(.\)' 2>/dev/null || |
21573 | echo X"$as_dir" | |
21574 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
21575 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
21576 | /^X\(\/\/\)$/{ s//\1/; q; } |
21577 | /^X\(\/\).*/{ s//\1/; q; } |
21578 | s/.*/./; q'` |
21579 | done |
21580 | test ! -n "$as_dirs" || mkdir $as_dirs |
21581 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
21582 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
21583 | { (exit 1); exit 1; }; }; } |
21584 | |
21585 | rm -f $ac_file |
21586 | mv $tmp/config.h $ac_file |
21587 | fi |
21588 | else |
21589 | cat $tmp/config.h |
21590 | rm -f $tmp/config.h |
21591 | fi |
21592 | # Compute $ac_file's index in $config_headers. |
21593 | _am_stamp_count=1 |
21594 | for _am_header in $config_headers :; do |
21595 | case $_am_header in |
21596 | $ac_file | $ac_file:* ) |
21597 | break ;; |
21598 | * ) |
21599 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
21600 | esac |
21601 | done |
21602 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
21603 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21604 | X$ac_file : 'X\(//\)[^/]' \| \ |
21605 | X$ac_file : 'X\(//\)$' \| \ |
21606 | X$ac_file : 'X\(/\)' \| \ |
21607 | . : '\(.\)' 2>/dev/null || |
21608 | echo X$ac_file | |
21609 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
21610 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
21611 | /^X\(\/\/\)$/{ s//\1/; q; } |
21612 | /^X\(\/\).*/{ s//\1/; q; } |
21613 | s/.*/./; q'`/stamp-h$_am_stamp_count |
21614 | done |
21615 | _ACEOF |
21616 | cat >>$CONFIG_STATUS <<\_ACEOF |
21617 | |
21618 | # |
21619 | # CONFIG_COMMANDS section. |
21620 | # |
21621 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
21622 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
21623 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
21624 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
21625 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21626 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
21627 | X"$ac_dest" : 'X\(//\)$' \| \ |
21628 | X"$ac_dest" : 'X\(/\)' \| \ |
21629 | . : '\(.\)' 2>/dev/null || |
21630 | echo X"$ac_dest" | |
21631 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
21632 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
21633 | /^X\(\/\/\)$/{ s//\1/; q; } |
21634 | /^X\(\/\).*/{ s//\1/; q; } |
21635 | s/.*/./; q'` |
21636 | { if $as_mkdir_p; then |
21637 | mkdir -p "$ac_dir" |
21638 | else |
21639 | as_dir="$ac_dir" |
21640 | as_dirs= |
21641 | while test ! -d "$as_dir"; do |
21642 | as_dirs="$as_dir $as_dirs" |
21643 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
21644 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21645 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
21646 | X"$as_dir" : 'X\(//\)$' \| \ |
21647 | X"$as_dir" : 'X\(/\)' \| \ |
21648 | . : '\(.\)' 2>/dev/null || |
21649 | echo X"$as_dir" | |
21650 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
21651 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
21652 | /^X\(\/\/\)$/{ s//\1/; q; } |
21653 | /^X\(\/\).*/{ s//\1/; q; } |
21654 | s/.*/./; q'` |
21655 | done |
21656 | test ! -n "$as_dirs" || mkdir $as_dirs |
21657 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
21658 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
21659 | { (exit 1); exit 1; }; }; } |
21660 | |
21661 | ac_builddir=. |
21662 | |
21663 | if test "$ac_dir" != .; then |
21664 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
21665 | # A "../" for each directory in $ac_dir_suffix. |
21666 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
21667 | else |
21668 | ac_dir_suffix= ac_top_builddir= |
21669 | fi |
21670 | |
21671 | case $srcdir in |
21672 | .) # No --srcdir option. We are building in place. |
21673 | ac_srcdir=. |
21674 | if test -z "$ac_top_builddir"; then |
21675 | ac_top_srcdir=. |
21676 | else |
21677 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
21678 | fi ;; |
21679 | [\\/]* | ?:[\\/]* ) # Absolute path. |
21680 | ac_srcdir=$srcdir$ac_dir_suffix; |
21681 | ac_top_srcdir=$srcdir ;; |
21682 | *) # Relative path. |
21683 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
21684 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
21685 | esac |
21686 | |
21687 | # Do not use `cd foo && pwd` to compute absolute paths, because |
21688 | # the directories may not exist. |
21689 | case `pwd` in |
21690 | .) ac_abs_builddir="$ac_dir";; |
21691 | *) |
21692 | case "$ac_dir" in |
21693 | .) ac_abs_builddir=`pwd`;; |
21694 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
21695 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
21696 | esac;; |
21697 | esac |
21698 | case $ac_abs_builddir in |
21699 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
21700 | *) |
21701 | case ${ac_top_builddir}. in |
21702 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
21703 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
21704 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
21705 | esac;; |
21706 | esac |
21707 | case $ac_abs_builddir in |
21708 | .) ac_abs_srcdir=$ac_srcdir;; |
21709 | *) |
21710 | case $ac_srcdir in |
21711 | .) ac_abs_srcdir=$ac_abs_builddir;; |
21712 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
21713 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
21714 | esac;; |
21715 | esac |
21716 | case $ac_abs_builddir in |
21717 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
21718 | *) |
21719 | case $ac_top_srcdir in |
21720 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
21721 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
21722 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
21723 | esac;; |
21724 | esac |
21725 | |
21726 | |
21727 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
21728 | echo "$as_me: executing $ac_dest commands" >&6;} |
21729 | case $ac_dest in |
21730 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
21731 | # Strip MF so we end up with the name of the file. |
21732 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
21733 | # Check whether this is an Automake generated Makefile or not. |
21734 | # We used to match only the files named `Makefile.in', but |
21735 | # some people rename them; so instead we look at the file content. |
21736 | # Grep'ing the first line is not enough: some people post-process |
21737 | # each Makefile.in and add a new line on top of each file to say so. |
21738 | # So let's grep whole file. |
21739 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
21740 | dirpart=`(dirname "$mf") 2>/dev/null || |
21741 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21742 | X"$mf" : 'X\(//\)[^/]' \| \ |
21743 | X"$mf" : 'X\(//\)$' \| \ |
21744 | X"$mf" : 'X\(/\)' \| \ |
21745 | . : '\(.\)' 2>/dev/null || |
21746 | echo X"$mf" | |
21747 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
21748 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
21749 | /^X\(\/\/\)$/{ s//\1/; q; } |
21750 | /^X\(\/\).*/{ s//\1/; q; } |
21751 | s/.*/./; q'` |
21752 | else |
21753 | continue |
21754 | fi |
21755 | # Extract the definition of DEPDIR, am__include, and am__quote |
21756 | # from the Makefile without running `make'. |
21757 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
21758 | test -z "$DEPDIR" && continue |
21759 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
21760 | test -z "am__include" && continue |
21761 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
21762 | # When using ansi2knr, U may be empty or an underscore; expand it |
21763 | U=`sed -n 's/^U = //p' < "$mf"` |
21764 | # Find all dependency output files, they are included files with |
21765 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
21766 | # simplest approach to changing $(DEPDIR) to its actual value in the |
21767 | # expansion. |
21768 | for file in `sed -n " |
21769 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
21770 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
21771 | # Make sure the directory exists. |
21772 | test -f "$dirpart/$file" && continue |
21773 | fdir=`(dirname "$file") 2>/dev/null || |
21774 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21775 | X"$file" : 'X\(//\)[^/]' \| \ |
21776 | X"$file" : 'X\(//\)$' \| \ |
21777 | X"$file" : 'X\(/\)' \| \ |
21778 | . : '\(.\)' 2>/dev/null || |
21779 | echo X"$file" | |
21780 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
21781 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
21782 | /^X\(\/\/\)$/{ s//\1/; q; } |
21783 | /^X\(\/\).*/{ s//\1/; q; } |
21784 | s/.*/./; q'` |
21785 | { if $as_mkdir_p; then |
21786 | mkdir -p $dirpart/$fdir |
21787 | else |
21788 | as_dir=$dirpart/$fdir |
21789 | as_dirs= |
21790 | while test ! -d "$as_dir"; do |
21791 | as_dirs="$as_dir $as_dirs" |
21792 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
21793 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21794 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
21795 | X"$as_dir" : 'X\(//\)$' \| \ |
21796 | X"$as_dir" : 'X\(/\)' \| \ |
21797 | . : '\(.\)' 2>/dev/null || |
21798 | echo X"$as_dir" | |
21799 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
21800 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
21801 | /^X\(\/\/\)$/{ s//\1/; q; } |
21802 | /^X\(\/\).*/{ s//\1/; q; } |
21803 | s/.*/./; q'` |
21804 | done |
21805 | test ! -n "$as_dirs" || mkdir $as_dirs |
21806 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
21807 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
21808 | { (exit 1); exit 1; }; }; } |
21809 | |
21810 | # echo "creating $dirpart/$file" |
21811 | echo '# dummy' > "$dirpart/$file" |
21812 | done |
21813 | done |
21814 | ;; |
21815 | esac |
21816 | done |
21817 | _ACEOF |
21818 | |
21819 | cat >>$CONFIG_STATUS <<\_ACEOF |
21820 | |
21821 | { (exit 0); exit 0; } |
21822 | _ACEOF |
21823 | chmod +x $CONFIG_STATUS |
21824 | ac_clean_files=$ac_clean_files_save |
21825 | |
21826 | |
21827 | # configure is writing to config.log, and then calls config.status. |
21828 | # config.status does its own redirection, appending to config.log. |
21829 | # Unfortunately, on DOS this fails, as config.log is still kept open |
21830 | # by configure, so config.status won't be able to write to it; its |
21831 | # output is simply discarded. So we exec the FD to /dev/null, |
21832 | # effectively closing config.log, so it can be properly (re)opened and |
21833 | # appended to by config.status. When coming back to configure, we |
21834 | # need to make the FD available again. |
21835 | if test "$no_create" != yes; then |
21836 | ac_cs_success=: |
21837 | ac_config_status_args= |
21838 | test "$silent" = yes && |
21839 | ac_config_status_args="$ac_config_status_args --quiet" |
21840 | exec 5>/dev/null |
21841 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
21842 | exec 5>>config.log |
21843 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
21844 | # would make configure fail if this is the last instruction. |
21845 | $ac_cs_success || { (exit 1); exit 1; } |
21846 | fi |
21847 | |