OLD | NEW |
| (Empty) |
1 #! /bin/sh | |
2 # Guess values for system-dependent variables and create Makefiles. | |
3 # Generated by GNU Autoconf 2.59 for open-vcdiff 0.1. | |
4 # | |
5 # Report bugs to <opensource@google.com>. | |
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 te
st'; 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 "$e
cho_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='open-vcdiff' | |
425 PACKAGE_TARNAME='open-vcdiff' | |
426 PACKAGE_VERSION='0.1' | |
427 PACKAGE_STRING='open-vcdiff 0.1' | |
428 PACKAGE_BUGREPORT='opensource@google.com' | |
429 | |
430 ac_unique_file="README" | |
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 bind
ir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir inc
ludedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS EC
HO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PA
CKAGE 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__ta
r am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include
am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am
__fastdepCC_FALSE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__
fastdepCXX_FALSE GCC_TRUE GCC_FALSE build build_cpu build_vendor build_os host h
ost_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXC
PP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS acx_pthread_config PTHREAD_CC PTHRE
AD_LIBS PTHREAD_CFLAGS 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_opti
on} | |
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 --ho
st. | |
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 open-vcdiff 0.1 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 open-vcdiff 0.1:";; | |
1024 esac | |
1025 cat <<\_ACEOF | |
1026 | |
1027 Optional Features: | |
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1030 --disable-dependency-tracking speeds up one-time build | |
1031 --enable-dependency-tracking do not reject slow dependency extractors | |
1032 --enable-shared[=PKGS] | |
1033 build shared libraries [default=yes] | |
1034 --enable-static[=PKGS] | |
1035 build static libraries [default=yes] | |
1036 --enable-fast-install[=PKGS] | |
1037 optimize for fast installation [default=yes] | |
1038 --disable-libtool-lock avoid locking (might break parallel builds) | |
1039 | |
1040 Optional Packages: | |
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1043 --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1044 --with-pic try to use only PIC/non-PIC objects [default=use | |
1045 both] | |
1046 --with-tags[=TAGS] | |
1047 include additional configurations [automatic] | |
1048 | |
1049 Some influential environment variables: | |
1050 CC C compiler command | |
1051 CFLAGS C compiler flags | |
1052 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1053 nonstandard directory <lib dir> | |
1054 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1055 headers in a nonstandard directory <include dir> | |
1056 CPP C preprocessor | |
1057 CXX C++ compiler command | |
1058 CXXFLAGS C++ compiler flags | |
1059 CXXCPP C++ preprocessor | |
1060 F77 Fortran 77 compiler command | |
1061 FFLAGS Fortran 77 compiler flags | |
1062 | |
1063 Use these variables to override the choices made by `configure' or to help | |
1064 it to find libraries and programs with nonstandard names/locations. | |
1065 | |
1066 Report bugs to <opensource@google.com>. | |
1067 _ACEOF | |
1068 fi | |
1069 | |
1070 if test "$ac_init_help" = "recursive"; then | |
1071 # If there are subdirs, report their specific --help. | |
1072 ac_popdir=`pwd` | |
1073 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1074 test -d $ac_dir || continue | |
1075 ac_builddir=. | |
1076 | |
1077 if test "$ac_dir" != .; then | |
1078 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1079 # A "../" for each directory in $ac_dir_suffix. | |
1080 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1081 else | |
1082 ac_dir_suffix= ac_top_builddir= | |
1083 fi | |
1084 | |
1085 case $srcdir in | |
1086 .) # No --srcdir option. We are building in place. | |
1087 ac_srcdir=. | |
1088 if test -z "$ac_top_builddir"; then | |
1089 ac_top_srcdir=. | |
1090 else | |
1091 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1092 fi ;; | |
1093 [\\/]* | ?:[\\/]* ) # Absolute path. | |
1094 ac_srcdir=$srcdir$ac_dir_suffix; | |
1095 ac_top_srcdir=$srcdir ;; | |
1096 *) # Relative path. | |
1097 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1098 ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1099 esac | |
1100 | |
1101 # Do not use `cd foo && pwd` to compute absolute paths, because | |
1102 # the directories may not exist. | |
1103 case `pwd` in | |
1104 .) ac_abs_builddir="$ac_dir";; | |
1105 *) | |
1106 case "$ac_dir" in | |
1107 .) ac_abs_builddir=`pwd`;; | |
1108 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1109 *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1110 esac;; | |
1111 esac | |
1112 case $ac_abs_builddir in | |
1113 .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1114 *) | |
1115 case ${ac_top_builddir}. in | |
1116 .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1117 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1118 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1119 esac;; | |
1120 esac | |
1121 case $ac_abs_builddir in | |
1122 .) ac_abs_srcdir=$ac_srcdir;; | |
1123 *) | |
1124 case $ac_srcdir in | |
1125 .) ac_abs_srcdir=$ac_abs_builddir;; | |
1126 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1127 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1128 esac;; | |
1129 esac | |
1130 case $ac_abs_builddir in | |
1131 .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1132 *) | |
1133 case $ac_top_srcdir in | |
1134 .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1135 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1136 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1137 esac;; | |
1138 esac | |
1139 | |
1140 cd $ac_dir | |
1141 # Check for guested configure; otherwise get Cygnus style configure. | |
1142 if test -f $ac_srcdir/configure.gnu; then | |
1143 echo | |
1144 $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1145 elif test -f $ac_srcdir/configure; then | |
1146 echo | |
1147 $SHELL $ac_srcdir/configure --help=recursive | |
1148 elif test -f $ac_srcdir/configure.ac || | |
1149 test -f $ac_srcdir/configure.in; then | |
1150 echo | |
1151 $ac_configure --help | |
1152 else | |
1153 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1154 fi | |
1155 cd "$ac_popdir" | |
1156 done | |
1157 fi | |
1158 | |
1159 test -n "$ac_init_help" && exit 0 | |
1160 if $ac_init_version; then | |
1161 cat <<\_ACEOF | |
1162 open-vcdiff configure 0.1 | |
1163 generated by GNU Autoconf 2.59 | |
1164 | |
1165 Copyright (C) 2003 Free Software Foundation, Inc. | |
1166 This configure script is free software; the Free Software Foundation | |
1167 gives unlimited permission to copy, distribute and modify it. | |
1168 _ACEOF | |
1169 exit 0 | |
1170 fi | |
1171 exec 5>config.log | |
1172 cat >&5 <<_ACEOF | |
1173 This file contains any messages produced by compilers while | |
1174 running configure, to aid debugging if configure makes a mistake. | |
1175 | |
1176 It was created by open-vcdiff $as_me 0.1, which was | |
1177 generated by GNU Autoconf 2.59. Invocation command line was | |
1178 | |
1179 $ $0 $@ | |
1180 | |
1181 _ACEOF | |
1182 { | |
1183 cat <<_ASUNAME | |
1184 ## --------- ## | |
1185 ## Platform. ## | |
1186 ## --------- ## | |
1187 | |
1188 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1189 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1190 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1191 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1192 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1193 | |
1194 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1195 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1196 | |
1197 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1198 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1199 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1200 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1201 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1202 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1203 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1204 | |
1205 _ASUNAME | |
1206 | |
1207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1208 for as_dir in $PATH | |
1209 do | |
1210 IFS=$as_save_IFS | |
1211 test -z "$as_dir" && as_dir=. | |
1212 echo "PATH: $as_dir" | |
1213 done | |
1214 | |
1215 } >&5 | |
1216 | |
1217 cat >&5 <<_ACEOF | |
1218 | |
1219 | |
1220 ## ----------- ## | |
1221 ## Core tests. ## | |
1222 ## ----------- ## | |
1223 | |
1224 _ACEOF | |
1225 | |
1226 | |
1227 # Keep a trace of the command line. | |
1228 # Strip out --no-create and --no-recursion so they do not pile up. | |
1229 # Strip out --silent because we don't want to record it for future runs. | |
1230 # Also quote any args containing shell meta-characters. | |
1231 # Make two passes to allow for proper duplicate-argument suppression. | |
1232 ac_configure_args= | |
1233 ac_configure_args0= | |
1234 ac_configure_args1= | |
1235 ac_sep= | |
1236 ac_must_keep_next=false | |
1237 for ac_pass in 1 2 | |
1238 do | |
1239 for ac_arg | |
1240 do | |
1241 case $ac_arg in | |
1242 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1244 | -silent | --silent | --silen | --sile | --sil) | |
1245 continue ;; | |
1246 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1247 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1248 esac | |
1249 case $ac_pass in | |
1250 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1251 2) | |
1252 ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1253 if test $ac_must_keep_next = true; then | |
1254 ac_must_keep_next=false # Got value, back to normal. | |
1255 else | |
1256 case $ac_arg in | |
1257 *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1258 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1259 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1260 | -with-* | --with-* | -without-* | --without-* | --x) | |
1261 case "$ac_configure_args0 " in | |
1262 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1263 esac | |
1264 ;; | |
1265 -* ) ac_must_keep_next=true ;; | |
1266 esac | |
1267 fi | |
1268 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1269 # Get rid of the leading space. | |
1270 ac_sep=" " | |
1271 ;; | |
1272 esac | |
1273 done | |
1274 done | |
1275 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_
configure_args0=; export ac_configure_args0; } | |
1276 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_
configure_args1=; export ac_configure_args1; } | |
1277 | |
1278 # When interrupted or exit'd, cleanup temporary files, and complete | |
1279 # config.log. We remove comments because anyway the quotes in there | |
1280 # would cause problems or look ugly. | |
1281 # WARNING: Be sure not to use single quotes in there, as some shells, | |
1282 # such as our DU 5.0 friend, will then `close' the trap. | |
1283 trap 'exit_status=$? | |
1284 # Save into config.log some information that might help in debugging. | |
1285 { | |
1286 echo | |
1287 | |
1288 cat <<\_ASBOX | |
1289 ## ---------------- ## | |
1290 ## Cache variables. ## | |
1291 ## ---------------- ## | |
1292 _ASBOX | |
1293 echo | |
1294 # The following way of writing the cache mishandles newlines in values, | |
1295 { | |
1296 (set) 2>&1 | | |
1297 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1298 *ac_space=\ *) | |
1299 sed -n \ | |
1300 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'
"'/p" | |
1302 ;; | |
1303 *) | |
1304 sed -n \ | |
1305 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1306 ;; | |
1307 esac; | |
1308 } | |
1309 echo | |
1310 | |
1311 cat <<\_ASBOX | |
1312 ## ----------------- ## | |
1313 ## Output variables. ## | |
1314 ## ----------------- ## | |
1315 _ASBOX | |
1316 echo | |
1317 for ac_var in $ac_subst_vars | |
1318 do | |
1319 eval ac_val=$`echo $ac_var` | |
1320 echo "$ac_var='"'"'$ac_val'"'"'" | |
1321 done | sort | |
1322 echo | |
1323 | |
1324 if test -n "$ac_subst_files"; then | |
1325 cat <<\_ASBOX | |
1326 ## ------------- ## | |
1327 ## Output files. ## | |
1328 ## ------------- ## | |
1329 _ASBOX | |
1330 echo | |
1331 for ac_var in $ac_subst_files | |
1332 do | |
1333 eval ac_val=$`echo $ac_var` | |
1334 echo "$ac_var='"'"'$ac_val'"'"'" | |
1335 done | sort | |
1336 echo | |
1337 fi | |
1338 | |
1339 if test -s confdefs.h; then | |
1340 cat <<\_ASBOX | |
1341 ## ----------- ## | |
1342 ## confdefs.h. ## | |
1343 ## ----------- ## | |
1344 _ASBOX | |
1345 echo | |
1346 sed "/^$/d" confdefs.h | sort | |
1347 echo | |
1348 fi | |
1349 test "$ac_signal" != 0 && | |
1350 echo "$as_me: caught signal $ac_signal" | |
1351 echo "$as_me: exit $exit_status" | |
1352 } >&5 | |
1353 rm -f core *.core && | |
1354 rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1355 exit $exit_status | |
1356 ' 0 | |
1357 for ac_signal in 1 2 13 15; do | |
1358 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1359 done | |
1360 ac_signal=0 | |
1361 | |
1362 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1363 rm -rf conftest* confdefs.h | |
1364 # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1365 echo >confdefs.h | |
1366 | |
1367 # Predefined preprocessor variables. | |
1368 | |
1369 cat >>confdefs.h <<_ACEOF | |
1370 #define PACKAGE_NAME "$PACKAGE_NAME" | |
1371 _ACEOF | |
1372 | |
1373 | |
1374 cat >>confdefs.h <<_ACEOF | |
1375 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1376 _ACEOF | |
1377 | |
1378 | |
1379 cat >>confdefs.h <<_ACEOF | |
1380 #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1381 _ACEOF | |
1382 | |
1383 | |
1384 cat >>confdefs.h <<_ACEOF | |
1385 #define PACKAGE_STRING "$PACKAGE_STRING" | |
1386 _ACEOF | |
1387 | |
1388 | |
1389 cat >>confdefs.h <<_ACEOF | |
1390 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1391 _ACEOF | |
1392 | |
1393 | |
1394 # Let the site file select an alternate cache file if it wants to. | |
1395 # Prefer explicitly selected file to automatically selected ones. | |
1396 if test -z "$CONFIG_SITE"; then | |
1397 if test "x$prefix" != xNONE; then | |
1398 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1399 else | |
1400 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/con
fig.site" | |
1401 fi | |
1402 fi | |
1403 for ac_site_file in $CONFIG_SITE; do | |
1404 if test -r "$ac_site_file"; then | |
1405 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1406 echo "$as_me: loading site script $ac_site_file" >&6;} | |
1407 sed 's/^/| /' "$ac_site_file" >&5 | |
1408 . "$ac_site_file" | |
1409 fi | |
1410 done | |
1411 | |
1412 if test -r "$cache_file"; then | |
1413 # Some versions of bash will fail to source /dev/null (special | |
1414 # files actually), so we avoid doing that. | |
1415 if test -f "$cache_file"; then | |
1416 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1417 echo "$as_me: loading cache $cache_file" >&6;} | |
1418 case $cache_file in | |
1419 [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1420 *) . ./$cache_file;; | |
1421 esac | |
1422 fi | |
1423 else | |
1424 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1425 echo "$as_me: creating cache $cache_file" >&6;} | |
1426 >$cache_file | |
1427 fi | |
1428 | |
1429 # Check that the precious variables saved in the cache have kept the same | |
1430 # value. | |
1431 ac_cache_corrupted=false | |
1432 for ac_var in `(set) 2>&1 | | |
1433 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1434 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1435 eval ac_new_set=\$ac_env_${ac_var}_set | |
1436 eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1437 eval ac_new_val="\$ac_env_${ac_var}_value" | |
1438 case $ac_old_set,$ac_new_set in | |
1439 set,) | |
1440 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the
previous run" >&5 | |
1441 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >
&2;} | |
1442 ac_cache_corrupted=: ;; | |
1443 ,set) | |
1444 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run"
>&5 | |
1445 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1446 ac_cache_corrupted=: ;; | |
1447 ,);; | |
1448 *) | |
1449 if test "x$ac_old_val" != "x$ac_new_val"; then | |
1450 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous
run:" >&5 | |
1451 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1452 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1453 echo "$as_me: former value: $ac_old_val" >&2;} | |
1454 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1455 echo "$as_me: current value: $ac_new_val" >&2;} | |
1456 ac_cache_corrupted=: | |
1457 fi;; | |
1458 esac | |
1459 # Pass precious variables to config.status. | |
1460 if test "$ac_new_set" = set; then | |
1461 case $ac_new_val in | |
1462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1463 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1464 *) ac_arg=$ac_var=$ac_new_val ;; | |
1465 esac | |
1466 case " $ac_configure_args " in | |
1467 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1468 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1469 esac | |
1470 fi | |
1471 done | |
1472 if $ac_cache_corrupted; then | |
1473 { echo "$as_me:$LINENO: error: changes in the environment can compromise the b
uild" >&5 | |
1474 echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1475 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file
' and start over" >&5 | |
1476 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start ov
er" >&2;} | |
1477 { (exit 1); exit 1; }; } | |
1478 fi | |
1479 | |
1480 ac_ext=c | |
1481 ac_cpp='$CPP $CPPFLAGS' | |
1482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' | |
1484 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1485 | |
1486 | |
1487 | |
1488 | |
1489 | |
1490 | |
1491 | |
1492 | |
1493 | |
1494 | |
1495 | |
1496 | |
1497 | |
1498 | |
1499 | |
1500 | |
1501 | |
1502 | |
1503 | |
1504 | |
1505 | |
1506 | |
1507 | |
1508 | |
1509 | |
1510 | |
1511 | |
1512 | |
1513 am__api_version="1.9" | |
1514 ac_aux_dir= | |
1515 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1516 if test -f $ac_dir/install-sh; then | |
1517 ac_aux_dir=$ac_dir | |
1518 ac_install_sh="$ac_aux_dir/install-sh -c" | |
1519 break | |
1520 elif test -f $ac_dir/install.sh; then | |
1521 ac_aux_dir=$ac_dir | |
1522 ac_install_sh="$ac_aux_dir/install.sh -c" | |
1523 break | |
1524 elif test -f $ac_dir/shtool; then | |
1525 ac_aux_dir=$ac_dir | |
1526 ac_install_sh="$ac_aux_dir/shtool install -c" | |
1527 break | |
1528 fi | |
1529 done | |
1530 if test -z "$ac_aux_dir"; then | |
1531 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcd
ir $srcdir/.. $srcdir/../.." >&5 | |
1532 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/..
$srcdir/../.." >&2;} | |
1533 { (exit 1); exit 1; }; } | |
1534 fi | |
1535 ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1536 ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1537 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1538 | |
1539 # Find a good install program. We prefer a C program (faster), | |
1540 # so one script is as good as another. But avoid the broken or | |
1541 # incompatible versions: | |
1542 # SysV /etc/install, /usr/sbin/install | |
1543 # SunOS /usr/etc/install | |
1544 # IRIX /sbin/install | |
1545 # AIX /bin/install | |
1546 # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1547 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1548 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1549 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1550 # OS/2's system install, which has a completely different semantic | |
1551 # ./install, which can be erroneously created by make from ./install.sh. | |
1552 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1553 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1554 if test -z "$INSTALL"; then | |
1555 if test "${ac_cv_path_install+set}" = set; then | |
1556 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1557 else | |
1558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1559 for as_dir in $PATH | |
1560 do | |
1561 IFS=$as_save_IFS | |
1562 test -z "$as_dir" && as_dir=. | |
1563 # Account for people who put trailing slashes in PATH elements. | |
1564 case $as_dir/ in | |
1565 ./ | .// | /cC/* | \ | |
1566 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1567 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1568 /usr/ucb/* ) ;; | |
1569 *) | |
1570 # OSF1 and SCO ODT 3.0 have their own names for install. | |
1571 # Don't use installbsd from OSF since it installs stuff as root | |
1572 # by default. | |
1573 for ac_prog in ginstall scoinst install; do | |
1574 for ac_exec_ext in '' $ac_executable_extensions; do | |
1575 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
1576 if test $ac_prog = install && | |
1577 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1578 # AIX install. It has an incompatible calling convention. | |
1579 : | |
1580 elif test $ac_prog = install && | |
1581 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1582 # program-specific install script used by HP pwplus--don't use. | |
1583 : | |
1584 else | |
1585 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1586 break 3 | |
1587 fi | |
1588 fi | |
1589 done | |
1590 done | |
1591 ;; | |
1592 esac | |
1593 done | |
1594 | |
1595 | |
1596 fi | |
1597 if test "${ac_cv_path_install+set}" = set; then | |
1598 INSTALL=$ac_cv_path_install | |
1599 else | |
1600 # As a last resort, use the slow shell script. We don't cache a | |
1601 # path for INSTALL within a source directory, because that will | |
1602 # break other packages using the cache if that directory is | |
1603 # removed, or if the path is relative. | |
1604 INSTALL=$ac_install_sh | |
1605 fi | |
1606 fi | |
1607 echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1608 echo "${ECHO_T}$INSTALL" >&6 | |
1609 | |
1610 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1611 # It thinks the first close brace ends the variable substitution. | |
1612 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1613 | |
1614 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1615 | |
1616 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1617 | |
1618 echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
1619 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1620 # Just in case | |
1621 sleep 1 | |
1622 echo timestamp > conftest.file | |
1623 # Do `set' in a subshell so we don't clobber the current shell's | |
1624 # arguments. Must try -L first in case configure is actually a | |
1625 # symlink; some systems play weird games with the mod time of symlinks | |
1626 # (eg FreeBSD returns the mod time of the symlink's containing | |
1627 # directory). | |
1628 if ( | |
1629 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1630 if test "$*" = "X"; then | |
1631 # -L didn't work. | |
1632 set X `ls -t $srcdir/configure conftest.file` | |
1633 fi | |
1634 rm -f conftest.file | |
1635 if test "$*" != "X $srcdir/configure conftest.file" \ | |
1636 && test "$*" != "X conftest.file $srcdir/configure"; then | |
1637 | |
1638 # If neither matched, then we have a broken ls. This can happen | |
1639 # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1640 # broken ls alias from the environment. This has actually | |
1641 # happened. Such a system could not be considered "sane". | |
1642 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there i
s not a broken | |
1643 alias in your environment" >&5 | |
1644 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1645 alias in your environment" >&2;} | |
1646 { (exit 1); exit 1; }; } | |
1647 fi | |
1648 | |
1649 test "$2" = conftest.file | |
1650 ) | |
1651 then | |
1652 # Ok. | |
1653 : | |
1654 else | |
1655 { { echo "$as_me:$LINENO: error: newly created file is older than distributed
files! | |
1656 Check your system clock" >&5 | |
1657 echo "$as_me: error: newly created file is older than distributed files! | |
1658 Check your system clock" >&2;} | |
1659 { (exit 1); exit 1; }; } | |
1660 fi | |
1661 echo "$as_me:$LINENO: result: yes" >&5 | |
1662 echo "${ECHO_T}yes" >&6 | |
1663 test "$program_prefix" != NONE && | |
1664 program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1665 # Use a double $ so make ignores it. | |
1666 test "$program_suffix" != NONE && | |
1667 program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1668 # Double any \ or $. echo might interpret backslashes. | |
1669 # By default was `s,x,x', remove it if useless. | |
1670 cat <<\_ACEOF >conftest.sed | |
1671 s/[\\$]/&&/g;s/;s,x,x,$// | |
1672 _ACEOF | |
1673 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1674 rm conftest.sed | |
1675 | |
1676 # expand $ac_aux_dir to an absolute path | |
1677 am_aux_dir=`cd $ac_aux_dir && pwd` | |
1678 | |
1679 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1680 # Use eval to expand $SHELL | |
1681 if eval "$MISSING --run true"; then | |
1682 am_missing_run="$MISSING --run " | |
1683 else | |
1684 am_missing_run= | |
1685 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1686 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1687 fi | |
1688 | |
1689 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
1690 # We used to keeping the `.' as first argument, in order to | |
1691 # allow $(mkdir_p) to be used without argument. As in | |
1692 # $(mkdir_p) $(somedir) | |
1693 # where $(somedir) is conditionally defined. However this is wrong | |
1694 # for two reasons: | |
1695 # 1. if the package is installed by a user who cannot write `.' | |
1696 # make install will fail, | |
1697 # 2. the above comment should most certainly read | |
1698 # $(mkdir_p) $(DESTDIR)$(somedir) | |
1699 # so it does not work when $(somedir) is undefined and | |
1700 # $(DESTDIR) is not. | |
1701 # To support the latter case, we have to write | |
1702 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
1703 # so the `.' trick is pointless. | |
1704 mkdir_p='mkdir -p --' | |
1705 else | |
1706 # On NextStep and OpenStep, the `mkdir' command does not | |
1707 # recognize any option. It will interpret all options as | |
1708 # directories to create, and then abort because `.' already | |
1709 # exists. | |
1710 for d in ./-p ./--version; | |
1711 do | |
1712 test -d $d && rmdir $d | |
1713 done | |
1714 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
1715 if test -f "$ac_aux_dir/mkinstalldirs"; then | |
1716 mkdir_p='$(mkinstalldirs)' | |
1717 else | |
1718 mkdir_p='$(install_sh) -d' | |
1719 fi | |
1720 fi | |
1721 | |
1722 for ac_prog in gawk mawk nawk awk | |
1723 do | |
1724 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1725 set dummy $ac_prog; ac_word=$2 | |
1726 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1728 if test "${ac_cv_prog_AWK+set}" = set; then | |
1729 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1730 else | |
1731 if test -n "$AWK"; then | |
1732 ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1733 else | |
1734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1735 for as_dir in $PATH | |
1736 do | |
1737 IFS=$as_save_IFS | |
1738 test -z "$as_dir" && as_dir=. | |
1739 for ac_exec_ext in '' $ac_executable_extensions; do | |
1740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1741 ac_cv_prog_AWK="$ac_prog" | |
1742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1743 break 2 | |
1744 fi | |
1745 done | |
1746 done | |
1747 | |
1748 fi | |
1749 fi | |
1750 AWK=$ac_cv_prog_AWK | |
1751 if test -n "$AWK"; then | |
1752 echo "$as_me:$LINENO: result: $AWK" >&5 | |
1753 echo "${ECHO_T}$AWK" >&6 | |
1754 else | |
1755 echo "$as_me:$LINENO: result: no" >&5 | |
1756 echo "${ECHO_T}no" >&6 | |
1757 fi | |
1758 | |
1759 test -n "$AWK" && break | |
1760 done | |
1761 | |
1762 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
1763 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
1764 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
1765 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1766 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1767 else | |
1768 cat >conftest.make <<\_ACEOF | |
1769 all: | |
1770 @echo 'ac_maketemp="$(MAKE)"' | |
1771 _ACEOF | |
1772 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1773 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1774 if test -n "$ac_maketemp"; then | |
1775 eval ac_cv_prog_make_${ac_make}_set=yes | |
1776 else | |
1777 eval ac_cv_prog_make_${ac_make}_set=no | |
1778 fi | |
1779 rm -f conftest.make | |
1780 fi | |
1781 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1782 echo "$as_me:$LINENO: result: yes" >&5 | |
1783 echo "${ECHO_T}yes" >&6 | |
1784 SET_MAKE= | |
1785 else | |
1786 echo "$as_me:$LINENO: result: no" >&5 | |
1787 echo "${ECHO_T}no" >&6 | |
1788 SET_MAKE="MAKE=${MAKE-make}" | |
1789 fi | |
1790 | |
1791 rm -rf .tst 2>/dev/null | |
1792 mkdir .tst 2>/dev/null | |
1793 if test -d .tst; then | |
1794 am__leading_dot=. | |
1795 else | |
1796 am__leading_dot=_ | |
1797 fi | |
1798 rmdir .tst 2>/dev/null | |
1799 | |
1800 # test to see if srcdir already configured | |
1801 if test "`cd $srcdir && pwd`" != "`pwd`" && | |
1802 test -f $srcdir/config.status; then | |
1803 { { echo "$as_me:$LINENO: error: source directory already configured; run \"ma
ke distclean\" there first" >&5 | |
1804 echo "$as_me: error: source directory already configured; run \"make distclean\"
there first" >&2;} | |
1805 { (exit 1); exit 1; }; } | |
1806 fi | |
1807 | |
1808 # test whether we have cygpath | |
1809 if test -z "$CYGPATH_W"; then | |
1810 if (cygpath --version) >/dev/null 2>/dev/null; then | |
1811 CYGPATH_W='cygpath -w' | |
1812 else | |
1813 CYGPATH_W=echo | |
1814 fi | |
1815 fi | |
1816 | |
1817 | |
1818 # Define the identity of the package. | |
1819 PACKAGE='open-vcdiff' | |
1820 VERSION='0.1' | |
1821 | |
1822 | |
1823 cat >>confdefs.h <<_ACEOF | |
1824 #define PACKAGE "$PACKAGE" | |
1825 _ACEOF | |
1826 | |
1827 | |
1828 cat >>confdefs.h <<_ACEOF | |
1829 #define VERSION "$VERSION" | |
1830 _ACEOF | |
1831 | |
1832 # Some tools Automake needs. | |
1833 | |
1834 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
1835 | |
1836 | |
1837 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
1838 | |
1839 | |
1840 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
1841 | |
1842 | |
1843 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
1844 | |
1845 | |
1846 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
1847 | |
1848 install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
1849 | |
1850 # Installed binaries are usually stripped using `strip' when the user | |
1851 # run `make install-strip'. However `strip' might not be the right | |
1852 # tool to use in cross-compilation environments, therefore Automake | |
1853 # will honor the `STRIP' environment variable to overrule this program. | |
1854 if test "$cross_compiling" != no; then | |
1855 if test -n "$ac_tool_prefix"; then | |
1856 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program n
ame with args. | |
1857 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1858 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1860 if test "${ac_cv_prog_STRIP+set}" = set; then | |
1861 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1862 else | |
1863 if test -n "$STRIP"; then | |
1864 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1865 else | |
1866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1867 for as_dir in $PATH | |
1868 do | |
1869 IFS=$as_save_IFS | |
1870 test -z "$as_dir" && as_dir=. | |
1871 for ac_exec_ext in '' $ac_executable_extensions; do | |
1872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1873 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1875 break 2 | |
1876 fi | |
1877 done | |
1878 done | |
1879 | |
1880 fi | |
1881 fi | |
1882 STRIP=$ac_cv_prog_STRIP | |
1883 if test -n "$STRIP"; then | |
1884 echo "$as_me:$LINENO: result: $STRIP" >&5 | |
1885 echo "${ECHO_T}$STRIP" >&6 | |
1886 else | |
1887 echo "$as_me:$LINENO: result: no" >&5 | |
1888 echo "${ECHO_T}no" >&6 | |
1889 fi | |
1890 | |
1891 fi | |
1892 if test -z "$ac_cv_prog_STRIP"; then | |
1893 ac_ct_STRIP=$STRIP | |
1894 # Extract the first word of "strip", so it can be a program name with args. | |
1895 set dummy strip; ac_word=$2 | |
1896 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1898 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
1899 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1900 else | |
1901 if test -n "$ac_ct_STRIP"; then | |
1902 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
1903 else | |
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1905 for as_dir in $PATH | |
1906 do | |
1907 IFS=$as_save_IFS | |
1908 test -z "$as_dir" && as_dir=. | |
1909 for ac_exec_ext in '' $ac_executable_extensions; do | |
1910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1911 ac_cv_prog_ac_ct_STRIP="strip" | |
1912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1913 break 2 | |
1914 fi | |
1915 done | |
1916 done | |
1917 | |
1918 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
1919 fi | |
1920 fi | |
1921 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
1922 if test -n "$ac_ct_STRIP"; then | |
1923 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
1924 echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
1925 else | |
1926 echo "$as_me:$LINENO: result: no" >&5 | |
1927 echo "${ECHO_T}no" >&6 | |
1928 fi | |
1929 | |
1930 STRIP=$ac_ct_STRIP | |
1931 else | |
1932 STRIP="$ac_cv_prog_STRIP" | |
1933 fi | |
1934 | |
1935 fi | |
1936 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
1937 | |
1938 # We need awk for the "check" target. The system "awk" is bad on | |
1939 # some platforms. | |
1940 # Always define AMTAR for backward compatibility. | |
1941 | |
1942 AMTAR=${AMTAR-"${am_missing_run}tar"} | |
1943 | |
1944 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
1945 | |
1946 | |
1947 | |
1948 | |
1949 | |
1950 ac_config_headers="$ac_config_headers src/config.h" | |
1951 | |
1952 | |
1953 # Checks for programs. | |
1954 ac_ext=c | |
1955 ac_cpp='$CPP $CPPFLAGS' | |
1956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' | |
1958 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1959 if test -n "$ac_tool_prefix"; then | |
1960 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program nam
e with args. | |
1961 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1962 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1964 if test "${ac_cv_prog_CC+set}" = set; then | |
1965 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1966 else | |
1967 if test -n "$CC"; then | |
1968 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1969 else | |
1970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1971 for as_dir in $PATH | |
1972 do | |
1973 IFS=$as_save_IFS | |
1974 test -z "$as_dir" && as_dir=. | |
1975 for ac_exec_ext in '' $ac_executable_extensions; do | |
1976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1977 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1979 break 2 | |
1980 fi | |
1981 done | |
1982 done | |
1983 | |
1984 fi | |
1985 fi | |
1986 CC=$ac_cv_prog_CC | |
1987 if test -n "$CC"; then | |
1988 echo "$as_me:$LINENO: result: $CC" >&5 | |
1989 echo "${ECHO_T}$CC" >&6 | |
1990 else | |
1991 echo "$as_me:$LINENO: result: no" >&5 | |
1992 echo "${ECHO_T}no" >&6 | |
1993 fi | |
1994 | |
1995 fi | |
1996 if test -z "$ac_cv_prog_CC"; then | |
1997 ac_ct_CC=$CC | |
1998 # Extract the first word of "gcc", so it can be a program name with args. | |
1999 set dummy gcc; ac_word=$2 | |
2000 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2002 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2003 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2004 else | |
2005 if test -n "$ac_ct_CC"; then | |
2006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2007 else | |
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2009 for as_dir in $PATH | |
2010 do | |
2011 IFS=$as_save_IFS | |
2012 test -z "$as_dir" && as_dir=. | |
2013 for ac_exec_ext in '' $ac_executable_extensions; do | |
2014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2015 ac_cv_prog_ac_ct_CC="gcc" | |
2016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2017 break 2 | |
2018 fi | |
2019 done | |
2020 done | |
2021 | |
2022 fi | |
2023 fi | |
2024 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2025 if test -n "$ac_ct_CC"; then | |
2026 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2027 echo "${ECHO_T}$ac_ct_CC" >&6 | |
2028 else | |
2029 echo "$as_me:$LINENO: result: no" >&5 | |
2030 echo "${ECHO_T}no" >&6 | |
2031 fi | |
2032 | |
2033 CC=$ac_ct_CC | |
2034 else | |
2035 CC="$ac_cv_prog_CC" | |
2036 fi | |
2037 | |
2038 if test -z "$CC"; then | |
2039 if test -n "$ac_tool_prefix"; then | |
2040 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name
with args. | |
2041 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2042 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2044 if test "${ac_cv_prog_CC+set}" = set; then | |
2045 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2046 else | |
2047 if test -n "$CC"; then | |
2048 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2049 else | |
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2051 for as_dir in $PATH | |
2052 do | |
2053 IFS=$as_save_IFS | |
2054 test -z "$as_dir" && as_dir=. | |
2055 for ac_exec_ext in '' $ac_executable_extensions; do | |
2056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2057 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2059 break 2 | |
2060 fi | |
2061 done | |
2062 done | |
2063 | |
2064 fi | |
2065 fi | |
2066 CC=$ac_cv_prog_CC | |
2067 if test -n "$CC"; then | |
2068 echo "$as_me:$LINENO: result: $CC" >&5 | |
2069 echo "${ECHO_T}$CC" >&6 | |
2070 else | |
2071 echo "$as_me:$LINENO: result: no" >&5 | |
2072 echo "${ECHO_T}no" >&6 | |
2073 fi | |
2074 | |
2075 fi | |
2076 if test -z "$ac_cv_prog_CC"; then | |
2077 ac_ct_CC=$CC | |
2078 # Extract the first word of "cc", so it can be a program name with args. | |
2079 set dummy cc; ac_word=$2 | |
2080 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2082 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2083 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2084 else | |
2085 if test -n "$ac_ct_CC"; then | |
2086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2087 else | |
2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2089 for as_dir in $PATH | |
2090 do | |
2091 IFS=$as_save_IFS | |
2092 test -z "$as_dir" && as_dir=. | |
2093 for ac_exec_ext in '' $ac_executable_extensions; do | |
2094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2095 ac_cv_prog_ac_ct_CC="cc" | |
2096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2097 break 2 | |
2098 fi | |
2099 done | |
2100 done | |
2101 | |
2102 fi | |
2103 fi | |
2104 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2105 if test -n "$ac_ct_CC"; then | |
2106 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2107 echo "${ECHO_T}$ac_ct_CC" >&6 | |
2108 else | |
2109 echo "$as_me:$LINENO: result: no" >&5 | |
2110 echo "${ECHO_T}no" >&6 | |
2111 fi | |
2112 | |
2113 CC=$ac_ct_CC | |
2114 else | |
2115 CC="$ac_cv_prog_CC" | |
2116 fi | |
2117 | |
2118 fi | |
2119 if test -z "$CC"; then | |
2120 # Extract the first word of "cc", so it can be a program name with args. | |
2121 set dummy cc; ac_word=$2 | |
2122 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2124 if test "${ac_cv_prog_CC+set}" = set; then | |
2125 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2126 else | |
2127 if test -n "$CC"; then | |
2128 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2129 else | |
2130 ac_prog_rejected=no | |
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2132 for as_dir in $PATH | |
2133 do | |
2134 IFS=$as_save_IFS | |
2135 test -z "$as_dir" && as_dir=. | |
2136 for ac_exec_ext in '' $ac_executable_extensions; do | |
2137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2138 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2139 ac_prog_rejected=yes | |
2140 continue | |
2141 fi | |
2142 ac_cv_prog_CC="cc" | |
2143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2144 break 2 | |
2145 fi | |
2146 done | |
2147 done | |
2148 | |
2149 if test $ac_prog_rejected = yes; then | |
2150 # We found a bogon in the path, so make sure we never use it. | |
2151 set dummy $ac_cv_prog_CC | |
2152 shift | |
2153 if test $# != 0; then | |
2154 # We chose a different compiler from the bogus one. | |
2155 # However, it has the same basename, so the bogon will be chosen | |
2156 # first if we set CC to just the basename; use the full file name. | |
2157 shift | |
2158 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2159 fi | |
2160 fi | |
2161 fi | |
2162 fi | |
2163 CC=$ac_cv_prog_CC | |
2164 if test -n "$CC"; then | |
2165 echo "$as_me:$LINENO: result: $CC" >&5 | |
2166 echo "${ECHO_T}$CC" >&6 | |
2167 else | |
2168 echo "$as_me:$LINENO: result: no" >&5 | |
2169 echo "${ECHO_T}no" >&6 | |
2170 fi | |
2171 | |
2172 fi | |
2173 if test -z "$CC"; then | |
2174 if test -n "$ac_tool_prefix"; then | |
2175 for ac_prog in cl | |
2176 do | |
2177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra
m name with args. | |
2178 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2179 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2181 if test "${ac_cv_prog_CC+set}" = set; then | |
2182 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2183 else | |
2184 if test -n "$CC"; then | |
2185 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2186 else | |
2187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2188 for as_dir in $PATH | |
2189 do | |
2190 IFS=$as_save_IFS | |
2191 test -z "$as_dir" && as_dir=. | |
2192 for ac_exec_ext in '' $ac_executable_extensions; do | |
2193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2194 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2196 break 2 | |
2197 fi | |
2198 done | |
2199 done | |
2200 | |
2201 fi | |
2202 fi | |
2203 CC=$ac_cv_prog_CC | |
2204 if test -n "$CC"; then | |
2205 echo "$as_me:$LINENO: result: $CC" >&5 | |
2206 echo "${ECHO_T}$CC" >&6 | |
2207 else | |
2208 echo "$as_me:$LINENO: result: no" >&5 | |
2209 echo "${ECHO_T}no" >&6 | |
2210 fi | |
2211 | |
2212 test -n "$CC" && break | |
2213 done | |
2214 fi | |
2215 if test -z "$CC"; then | |
2216 ac_ct_CC=$CC | |
2217 for ac_prog in cl | |
2218 do | |
2219 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2220 set dummy $ac_prog; ac_word=$2 | |
2221 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2223 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2224 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2225 else | |
2226 if test -n "$ac_ct_CC"; then | |
2227 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2228 else | |
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2230 for as_dir in $PATH | |
2231 do | |
2232 IFS=$as_save_IFS | |
2233 test -z "$as_dir" && as_dir=. | |
2234 for ac_exec_ext in '' $ac_executable_extensions; do | |
2235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2236 ac_cv_prog_ac_ct_CC="$ac_prog" | |
2237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2238 break 2 | |
2239 fi | |
2240 done | |
2241 done | |
2242 | |
2243 fi | |
2244 fi | |
2245 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2246 if test -n "$ac_ct_CC"; then | |
2247 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2248 echo "${ECHO_T}$ac_ct_CC" >&6 | |
2249 else | |
2250 echo "$as_me:$LINENO: result: no" >&5 | |
2251 echo "${ECHO_T}no" >&6 | |
2252 fi | |
2253 | |
2254 test -n "$ac_ct_CC" && break | |
2255 done | |
2256 | |
2257 CC=$ac_ct_CC | |
2258 fi | |
2259 | |
2260 fi | |
2261 | |
2262 | |
2263 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found
in \$PATH | |
2264 See \`config.log' for more details." >&5 | |
2265 echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2266 See \`config.log' for more details." >&2;} | |
2267 { (exit 1); exit 1; }; } | |
2268 | |
2269 # Provide some information about the compiler. | |
2270 echo "$as_me:$LINENO:" \ | |
2271 "checking for C compiler version" >&5 | |
2272 ac_compiler=`set X $ac_compile; echo $2` | |
2273 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2274 (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2275 ac_status=$? | |
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2277 (exit $ac_status); } | |
2278 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2279 (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2280 ac_status=$? | |
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2282 (exit $ac_status); } | |
2283 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2284 (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2285 ac_status=$? | |
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2287 (exit $ac_status); } | |
2288 | |
2289 cat >conftest.$ac_ext <<_ACEOF | |
2290 /* confdefs.h. */ | |
2291 _ACEOF | |
2292 cat confdefs.h >>conftest.$ac_ext | |
2293 cat >>conftest.$ac_ext <<_ACEOF | |
2294 /* end confdefs.h. */ | |
2295 | |
2296 int | |
2297 main () | |
2298 { | |
2299 | |
2300 ; | |
2301 return 0; | |
2302 } | |
2303 _ACEOF | |
2304 ac_clean_files_save=$ac_clean_files | |
2305 ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2306 # Try to create an executable without -o first, disregard a.out. | |
2307 # It will help us diagnose broken compilers, and finding out an intuition | |
2308 # of exeext. | |
2309 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2310 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
2311 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2312 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2313 (eval $ac_link_default) 2>&5 | |
2314 ac_status=$? | |
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2316 (exit $ac_status); }; then | |
2317 # Find the output, starting from the most likely. This scheme is | |
2318 # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2319 # resort. | |
2320 | |
2321 # Be careful to initialize this variable, since it used to be cached. | |
2322 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2323 ac_cv_exeext= | |
2324 # b.out is created by i960 compilers. | |
2325 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2326 do | |
2327 test -f "$ac_file" || continue | |
2328 case $ac_file in | |
2329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.
obj ) | |
2330 ;; | |
2331 conftest.$ac_ext ) | |
2332 # This is the source file. | |
2333 ;; | |
2334 [ab].out ) | |
2335 # We found the default executable, but exeext='' is most | |
2336 # certainly right. | |
2337 break;; | |
2338 *.* ) | |
2339 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2340 # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2341 # but it would be cool to find out if it's true. Does anybody | |
2342 # maintain Libtool? --akim. | |
2343 export ac_cv_exeext | |
2344 break;; | |
2345 * ) | |
2346 break;; | |
2347 esac | |
2348 done | |
2349 else | |
2350 echo "$as_me: failed program was:" >&5 | |
2351 sed 's/^/| /' conftest.$ac_ext >&5 | |
2352 | |
2353 { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2354 See \`config.log' for more details." >&5 | |
2355 echo "$as_me: error: C compiler cannot create executables | |
2356 See \`config.log' for more details." >&2;} | |
2357 { (exit 77); exit 77; }; } | |
2358 fi | |
2359 | |
2360 ac_exeext=$ac_cv_exeext | |
2361 echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2362 echo "${ECHO_T}$ac_file" >&6 | |
2363 | |
2364 # Check the compiler produces executables we can run. If not, either | |
2365 # the compiler is broken, or we cross compile. | |
2366 echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2367 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2368 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2369 # If not cross compiling, check that we can run a simple program. | |
2370 if test "$cross_compiling" != yes; then | |
2371 if { ac_try='./$ac_file' | |
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2373 (eval $ac_try) 2>&5 | |
2374 ac_status=$? | |
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2376 (exit $ac_status); }; }; then | |
2377 cross_compiling=no | |
2378 else | |
2379 if test "$cross_compiling" = maybe; then | |
2380 cross_compiling=yes | |
2381 else | |
2382 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2383 If you meant to cross compile, use \`--host'. | |
2384 See \`config.log' for more details." >&5 | |
2385 echo "$as_me: error: cannot run C compiled programs. | |
2386 If you meant to cross compile, use \`--host'. | |
2387 See \`config.log' for more details." >&2;} | |
2388 { (exit 1); exit 1; }; } | |
2389 fi | |
2390 fi | |
2391 fi | |
2392 echo "$as_me:$LINENO: result: yes" >&5 | |
2393 echo "${ECHO_T}yes" >&6 | |
2394 | |
2395 rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2396 ac_clean_files=$ac_clean_files_save | |
2397 # Check the compiler produces executables we can run. If not, either | |
2398 # the compiler is broken, or we cross compile. | |
2399 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2400 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2401 echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2402 echo "${ECHO_T}$cross_compiling" >&6 | |
2403 | |
2404 echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2405 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2407 (eval $ac_link) 2>&5 | |
2408 ac_status=$? | |
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2410 (exit $ac_status); }; then | |
2411 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2412 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2413 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2414 # `rm'. | |
2415 for ac_file in conftest.exe conftest conftest.*; do | |
2416 test -f "$ac_file" || continue | |
2417 case $ac_file in | |
2418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.
obj ) ;; | |
2419 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2420 export ac_cv_exeext | |
2421 break;; | |
2422 * ) break;; | |
2423 esac | |
2424 done | |
2425 else | |
2426 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot
compile and link | |
2427 See \`config.log' for more details." >&5 | |
2428 echo "$as_me: error: cannot compute suffix of executables: cannot compile and li
nk | |
2429 See \`config.log' for more details." >&2;} | |
2430 { (exit 1); exit 1; }; } | |
2431 fi | |
2432 | |
2433 rm -f conftest$ac_cv_exeext | |
2434 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2435 echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2436 | |
2437 rm -f conftest.$ac_ext | |
2438 EXEEXT=$ac_cv_exeext | |
2439 ac_exeext=$EXEEXT | |
2440 echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2441 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2442 if test "${ac_cv_objext+set}" = set; then | |
2443 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2444 else | |
2445 cat >conftest.$ac_ext <<_ACEOF | |
2446 /* confdefs.h. */ | |
2447 _ACEOF | |
2448 cat confdefs.h >>conftest.$ac_ext | |
2449 cat >>conftest.$ac_ext <<_ACEOF | |
2450 /* end confdefs.h. */ | |
2451 | |
2452 int | |
2453 main () | |
2454 { | |
2455 | |
2456 ; | |
2457 return 0; | |
2458 } | |
2459 _ACEOF | |
2460 rm -f conftest.o conftest.obj | |
2461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2462 (eval $ac_compile) 2>&5 | |
2463 ac_status=$? | |
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2465 (exit $ac_status); }; then | |
2466 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2467 case $ac_file in | |
2468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2469 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2470 break;; | |
2471 esac | |
2472 done | |
2473 else | |
2474 echo "$as_me: failed program was:" >&5 | |
2475 sed 's/^/| /' conftest.$ac_ext >&5 | |
2476 | |
2477 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot c
ompile | |
2478 See \`config.log' for more details." >&5 | |
2479 echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2480 See \`config.log' for more details." >&2;} | |
2481 { (exit 1); exit 1; }; } | |
2482 fi | |
2483 | |
2484 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2485 fi | |
2486 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2487 echo "${ECHO_T}$ac_cv_objext" >&6 | |
2488 OBJEXT=$ac_cv_objext | |
2489 ac_objext=$OBJEXT | |
2490 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2491 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2492 if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2493 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2494 else | |
2495 cat >conftest.$ac_ext <<_ACEOF | |
2496 /* confdefs.h. */ | |
2497 _ACEOF | |
2498 cat confdefs.h >>conftest.$ac_ext | |
2499 cat >>conftest.$ac_ext <<_ACEOF | |
2500 /* end confdefs.h. */ | |
2501 | |
2502 int | |
2503 main () | |
2504 { | |
2505 #ifndef __GNUC__ | |
2506 choke me | |
2507 #endif | |
2508 | |
2509 ; | |
2510 return 0; | |
2511 } | |
2512 _ACEOF | |
2513 rm -f conftest.$ac_objext | |
2514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2515 (eval $ac_compile) 2>conftest.er1 | |
2516 ac_status=$? | |
2517 grep -v '^ *+' conftest.er1 >conftest.err | |
2518 rm -f conftest.er1 | |
2519 cat conftest.err >&5 | |
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2521 (exit $ac_status); } && | |
2522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2524 (eval $ac_try) 2>&5 | |
2525 ac_status=$? | |
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2527 (exit $ac_status); }; } && | |
2528 { ac_try='test -s conftest.$ac_objext' | |
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2530 (eval $ac_try) 2>&5 | |
2531 ac_status=$? | |
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2533 (exit $ac_status); }; }; then | |
2534 ac_compiler_gnu=yes | |
2535 else | |
2536 echo "$as_me: failed program was:" >&5 | |
2537 sed 's/^/| /' conftest.$ac_ext >&5 | |
2538 | |
2539 ac_compiler_gnu=no | |
2540 fi | |
2541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2542 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2543 | |
2544 fi | |
2545 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2546 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2547 GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2548 ac_test_CFLAGS=${CFLAGS+set} | |
2549 ac_save_CFLAGS=$CFLAGS | |
2550 CFLAGS="-g" | |
2551 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2552 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2553 if test "${ac_cv_prog_cc_g+set}" = set; then | |
2554 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2555 else | |
2556 cat >conftest.$ac_ext <<_ACEOF | |
2557 /* confdefs.h. */ | |
2558 _ACEOF | |
2559 cat confdefs.h >>conftest.$ac_ext | |
2560 cat >>conftest.$ac_ext <<_ACEOF | |
2561 /* end confdefs.h. */ | |
2562 | |
2563 int | |
2564 main () | |
2565 { | |
2566 | |
2567 ; | |
2568 return 0; | |
2569 } | |
2570 _ACEOF | |
2571 rm -f conftest.$ac_objext | |
2572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2573 (eval $ac_compile) 2>conftest.er1 | |
2574 ac_status=$? | |
2575 grep -v '^ *+' conftest.er1 >conftest.err | |
2576 rm -f conftest.er1 | |
2577 cat conftest.err >&5 | |
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2579 (exit $ac_status); } && | |
2580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2582 (eval $ac_try) 2>&5 | |
2583 ac_status=$? | |
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2585 (exit $ac_status); }; } && | |
2586 { ac_try='test -s conftest.$ac_objext' | |
2587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2588 (eval $ac_try) 2>&5 | |
2589 ac_status=$? | |
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2591 (exit $ac_status); }; }; then | |
2592 ac_cv_prog_cc_g=yes | |
2593 else | |
2594 echo "$as_me: failed program was:" >&5 | |
2595 sed 's/^/| /' conftest.$ac_ext >&5 | |
2596 | |
2597 ac_cv_prog_cc_g=no | |
2598 fi | |
2599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2600 fi | |
2601 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2602 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2603 if test "$ac_test_CFLAGS" = set; then | |
2604 CFLAGS=$ac_save_CFLAGS | |
2605 elif test $ac_cv_prog_cc_g = yes; then | |
2606 if test "$GCC" = yes; then | |
2607 CFLAGS="-g -O2" | |
2608 else | |
2609 CFLAGS="-g" | |
2610 fi | |
2611 else | |
2612 if test "$GCC" = yes; then | |
2613 CFLAGS="-O2" | |
2614 else | |
2615 CFLAGS= | |
2616 fi | |
2617 fi | |
2618 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2619 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2620 if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2621 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2622 else | |
2623 ac_cv_prog_cc_stdc=no | |
2624 ac_save_CC=$CC | |
2625 cat >conftest.$ac_ext <<_ACEOF | |
2626 /* confdefs.h. */ | |
2627 _ACEOF | |
2628 cat confdefs.h >>conftest.$ac_ext | |
2629 cat >>conftest.$ac_ext <<_ACEOF | |
2630 /* end confdefs.h. */ | |
2631 #include <stdarg.h> | |
2632 #include <stdio.h> | |
2633 #include <sys/types.h> | |
2634 #include <sys/stat.h> | |
2635 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2636 struct buf { int x; }; | |
2637 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2638 static char *e (p, i) | |
2639 char **p; | |
2640 int i; | |
2641 { | |
2642 return p[i]; | |
2643 } | |
2644 static char *f (char * (*g) (char **, int), char **p, ...) | |
2645 { | |
2646 char *s; | |
2647 va_list v; | |
2648 va_start (v,p); | |
2649 s = g (p, va_arg (v,int)); | |
2650 va_end (v); | |
2651 return s; | |
2652 } | |
2653 | |
2654 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2655 function prototypes and stuff, but not '\xHH' hex character constants. | |
2656 These don't provoke an error unfortunately, instead are silently treated | |
2657 as 'x'. The following induces an error, until -std1 is added to get | |
2658 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2659 array size at least. It's necessary to write '\x00'==0 to get something | |
2660 that's true only with -std1. */ | |
2661 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2662 | |
2663 int test (int i, double x); | |
2664 struct s1 {int (*f) (int a);}; | |
2665 struct s2 {int (*f) (double a);}; | |
2666 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, i
nt); | |
2667 int argc; | |
2668 char **argv; | |
2669 int | |
2670 main () | |
2671 { | |
2672 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2673 ; | |
2674 return 0; | |
2675 } | |
2676 _ACEOF | |
2677 # Don't try gcc -ansi; that turns off useful extensions and | |
2678 # breaks some systems' header files. | |
2679 # AIX -qlanglvl=ansi | |
2680 # Ultrix and OSF/1 -std1 | |
2681 # HP-UX 10.20 and later -Ae | |
2682 # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2683 # SVR4 -Xc -D__EXTENSIONS__ | |
2684 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIO
NS__" | |
2685 do | |
2686 CC="$ac_save_CC $ac_arg" | |
2687 rm -f conftest.$ac_objext | |
2688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2689 (eval $ac_compile) 2>conftest.er1 | |
2690 ac_status=$? | |
2691 grep -v '^ *+' conftest.er1 >conftest.err | |
2692 rm -f conftest.er1 | |
2693 cat conftest.err >&5 | |
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2695 (exit $ac_status); } && | |
2696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2698 (eval $ac_try) 2>&5 | |
2699 ac_status=$? | |
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2701 (exit $ac_status); }; } && | |
2702 { ac_try='test -s conftest.$ac_objext' | |
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2704 (eval $ac_try) 2>&5 | |
2705 ac_status=$? | |
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2707 (exit $ac_status); }; }; then | |
2708 ac_cv_prog_cc_stdc=$ac_arg | |
2709 break | |
2710 else | |
2711 echo "$as_me: failed program was:" >&5 | |
2712 sed 's/^/| /' conftest.$ac_ext >&5 | |
2713 | |
2714 fi | |
2715 rm -f conftest.err conftest.$ac_objext | |
2716 done | |
2717 rm -f conftest.$ac_ext conftest.$ac_objext | |
2718 CC=$ac_save_CC | |
2719 | |
2720 fi | |
2721 | |
2722 case "x$ac_cv_prog_cc_stdc" in | |
2723 x|xno) | |
2724 echo "$as_me:$LINENO: result: none needed" >&5 | |
2725 echo "${ECHO_T}none needed" >&6 ;; | |
2726 *) | |
2727 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2728 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2729 CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2730 esac | |
2731 | |
2732 # Some people use a C++ compiler to compile C. Since we use `exit', | |
2733 # in C++ we need to declare it. In case someone uses the same compiler | |
2734 # for both compiling C and C++ we need to have the C++ compiler decide | |
2735 # the declaration of exit, since it's the most demanding environment. | |
2736 cat >conftest.$ac_ext <<_ACEOF | |
2737 #ifndef __cplusplus | |
2738 choke me | |
2739 #endif | |
2740 _ACEOF | |
2741 rm -f conftest.$ac_objext | |
2742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2743 (eval $ac_compile) 2>conftest.er1 | |
2744 ac_status=$? | |
2745 grep -v '^ *+' conftest.er1 >conftest.err | |
2746 rm -f conftest.er1 | |
2747 cat conftest.err >&5 | |
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2749 (exit $ac_status); } && | |
2750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
2751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2752 (eval $ac_try) 2>&5 | |
2753 ac_status=$? | |
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2755 (exit $ac_status); }; } && | |
2756 { ac_try='test -s conftest.$ac_objext' | |
2757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2758 (eval $ac_try) 2>&5 | |
2759 ac_status=$? | |
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2761 (exit $ac_status); }; }; then | |
2762 for ac_declaration in \ | |
2763 '' \ | |
2764 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2765 'extern "C" void std::exit (int); using std::exit;' \ | |
2766 'extern "C" void exit (int) throw ();' \ | |
2767 'extern "C" void exit (int);' \ | |
2768 'void exit (int);' | |
2769 do | |
2770 cat >conftest.$ac_ext <<_ACEOF | |
2771 /* confdefs.h. */ | |
2772 _ACEOF | |
2773 cat confdefs.h >>conftest.$ac_ext | |
2774 cat >>conftest.$ac_ext <<_ACEOF | |
2775 /* end confdefs.h. */ | |
2776 $ac_declaration | |
2777 #include <stdlib.h> | |
2778 int | |
2779 main () | |
2780 { | |
2781 exit (42); | |
2782 ; | |
2783 return 0; | |
2784 } | |
2785 _ACEOF | |
2786 rm -f conftest.$ac_objext | |
2787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2788 (eval $ac_compile) 2>conftest.er1 | |
2789 ac_status=$? | |
2790 grep -v '^ *+' conftest.er1 >conftest.err | |
2791 rm -f conftest.er1 | |
2792 cat conftest.err >&5 | |
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2794 (exit $ac_status); } && | |
2795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2797 (eval $ac_try) 2>&5 | |
2798 ac_status=$? | |
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2800 (exit $ac_status); }; } && | |
2801 { ac_try='test -s conftest.$ac_objext' | |
2802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2803 (eval $ac_try) 2>&5 | |
2804 ac_status=$? | |
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2806 (exit $ac_status); }; }; then | |
2807 : | |
2808 else | |
2809 echo "$as_me: failed program was:" >&5 | |
2810 sed 's/^/| /' conftest.$ac_ext >&5 | |
2811 | |
2812 continue | |
2813 fi | |
2814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2815 cat >conftest.$ac_ext <<_ACEOF | |
2816 /* confdefs.h. */ | |
2817 _ACEOF | |
2818 cat confdefs.h >>conftest.$ac_ext | |
2819 cat >>conftest.$ac_ext <<_ACEOF | |
2820 /* end confdefs.h. */ | |
2821 $ac_declaration | |
2822 int | |
2823 main () | |
2824 { | |
2825 exit (42); | |
2826 ; | |
2827 return 0; | |
2828 } | |
2829 _ACEOF | |
2830 rm -f conftest.$ac_objext | |
2831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2832 (eval $ac_compile) 2>conftest.er1 | |
2833 ac_status=$? | |
2834 grep -v '^ *+' conftest.er1 >conftest.err | |
2835 rm -f conftest.er1 | |
2836 cat conftest.err >&5 | |
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2838 (exit $ac_status); } && | |
2839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
2840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2841 (eval $ac_try) 2>&5 | |
2842 ac_status=$? | |
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2844 (exit $ac_status); }; } && | |
2845 { ac_try='test -s conftest.$ac_objext' | |
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2847 (eval $ac_try) 2>&5 | |
2848 ac_status=$? | |
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2850 (exit $ac_status); }; }; then | |
2851 break | |
2852 else | |
2853 echo "$as_me: failed program was:" >&5 | |
2854 sed 's/^/| /' conftest.$ac_ext >&5 | |
2855 | |
2856 fi | |
2857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2858 done | |
2859 rm -f conftest* | |
2860 if test -n "$ac_declaration"; then | |
2861 echo '#ifdef __cplusplus' >>confdefs.h | |
2862 echo $ac_declaration >>confdefs.h | |
2863 echo '#endif' >>confdefs.h | |
2864 fi | |
2865 | |
2866 else | |
2867 echo "$as_me: failed program was:" >&5 | |
2868 sed 's/^/| /' conftest.$ac_ext >&5 | |
2869 | |
2870 fi | |
2871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2872 ac_ext=c | |
2873 ac_cpp='$CPP $CPPFLAGS' | |
2874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' | |
2876 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2877 DEPDIR="${am__leading_dot}deps" | |
2878 | |
2879 ac_config_commands="$ac_config_commands depfiles" | |
2880 | |
2881 | |
2882 am_make=${MAKE-make} | |
2883 cat > confinc << 'END' | |
2884 am__doit: | |
2885 @echo done | |
2886 .PHONY: am__doit | |
2887 END | |
2888 # If we don't find an include directive, just comment out the code. | |
2889 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2890 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2891 am__include="#" | |
2892 am__quote= | |
2893 _am_result=none | |
2894 # First try GNU make style include. | |
2895 echo "include confinc" > confmf | |
2896 # We grep out `Entering directory' and `Leaving directory' | |
2897 # messages which can occur if `w' ends up in MAKEFLAGS. | |
2898 # In particular we don't look at `^make:' because GNU make might | |
2899 # be invoked under some other name (usually "gmake"), in which | |
2900 # case it prints its new name instead of `make'. | |
2901 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done
"; then | |
2902 am__include=include | |
2903 am__quote= | |
2904 _am_result=GNU | |
2905 fi | |
2906 # Now try BSD make style include. | |
2907 if test "$am__include" = "#"; then | |
2908 echo '.include "confinc"' > confmf | |
2909 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2910 am__include=.include | |
2911 am__quote="\"" | |
2912 _am_result=BSD | |
2913 fi | |
2914 fi | |
2915 | |
2916 | |
2917 echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2918 echo "${ECHO_T}$_am_result" >&6 | |
2919 rm -f confinc confmf | |
2920 | |
2921 # Check whether --enable-dependency-tracking or --disable-dependency-tracking wa
s given. | |
2922 if test "${enable_dependency_tracking+set}" = set; then | |
2923 enableval="$enable_dependency_tracking" | |
2924 | |
2925 fi; | |
2926 if test "x$enable_dependency_tracking" != xno; then | |
2927 am_depcomp="$ac_aux_dir/depcomp" | |
2928 AMDEPBACKSLASH='\' | |
2929 fi | |
2930 | |
2931 | |
2932 if test "x$enable_dependency_tracking" != xno; then | |
2933 AMDEP_TRUE= | |
2934 AMDEP_FALSE='#' | |
2935 else | |
2936 AMDEP_TRUE='#' | |
2937 AMDEP_FALSE= | |
2938 fi | |
2939 | |
2940 | |
2941 | |
2942 | |
2943 depcc="$CC" am_compiler_list= | |
2944 | |
2945 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
2946 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
2947 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
2948 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2949 else | |
2950 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
2951 # We make a subdir and do the tests there. Otherwise we can end up | |
2952 # making bogus files that we don't know about and never remove. For | |
2953 # instance it was reported that on HP-UX the gcc test will end up | |
2954 # making a dummy file named `D' -- because `-MD' means `put the output | |
2955 # in D'. | |
2956 mkdir conftest.dir | |
2957 # Copy depcomp to subdir because otherwise we won't find it if we're | |
2958 # using a relative directory. | |
2959 cp "$am_depcomp" conftest.dir | |
2960 cd conftest.dir | |
2961 # We will build objects and dependencies in a subdirectory because | |
2962 # it helps to detect inapplicable dependency modes. For instance | |
2963 # both Tru64's cc and ICC support -MD to output dependencies as a | |
2964 # side effect of compilation, but ICC will put the dependencies in | |
2965 # the current directory while Tru64 will put them in the object | |
2966 # directory. | |
2967 mkdir sub | |
2968 | |
2969 am_cv_CC_dependencies_compiler_type=none | |
2970 if test "$am_compiler_list" = ""; then | |
2971 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
2972 fi | |
2973 for depmode in $am_compiler_list; do | |
2974 # Setup a source with many dependencies, because some compilers | |
2975 # like to wrap large dependency lists on column 80 (with \), and | |
2976 # we should not choose a depcomp mode which is confused by this. | |
2977 # | |
2978 # We need to recreate these files for each test, as the compiler may | |
2979 # overwrite some of them when testing with obscure command lines. | |
2980 # This happens at least with the AIX C compiler. | |
2981 : > sub/conftest.c | |
2982 for i in 1 2 3 4 5 6; do | |
2983 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
2984 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
2985 # Solaris 8's {/usr,}/bin/sh. | |
2986 touch sub/conftst$i.h | |
2987 done | |
2988 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
2989 | |
2990 case $depmode in | |
2991 nosideeffect) | |
2992 # after this tag, mechanisms are not by side-effect, so they'll | |
2993 # only be used when explicitly requested | |
2994 if test "x$enable_dependency_tracking" = xyes; then | |
2995 continue | |
2996 else | |
2997 break | |
2998 fi | |
2999 ;; | |
3000 none) break ;; | |
3001 esac | |
3002 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3003 # mode. It turns out that the SunPro C++ compiler does not properly | |
3004 # handle `-M -o', and we need to detect this. | |
3005 if depmode=$depmode \ | |
3006 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3007 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3008 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3009 >/dev/null 2>conftest.err && | |
3010 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3011 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3012 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3013 # icc doesn't choke on unknown options, it will just issue warnings | |
3014 # or remarks (even with -Werror). So we grep stderr for any message | |
3015 # that says an option was ignored or not supported. | |
3016 # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3017 # icc: Command line warning: ignoring option '-M'; no argument required | |
3018 # The diagnosis changed in icc 8.0: | |
3019 # icc: Command line remark: option '-MP' not supported | |
3020 if (grep 'ignoring option' conftest.err || | |
3021 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3022 am_cv_CC_dependencies_compiler_type=$depmode | |
3023 break | |
3024 fi | |
3025 fi | |
3026 done | |
3027 | |
3028 cd .. | |
3029 rm -rf conftest.dir | |
3030 else | |
3031 am_cv_CC_dependencies_compiler_type=none | |
3032 fi | |
3033 | |
3034 fi | |
3035 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3036 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3037 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3038 | |
3039 | |
3040 | |
3041 if | |
3042 test "x$enable_dependency_tracking" != xno \ | |
3043 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3044 am__fastdepCC_TRUE= | |
3045 am__fastdepCC_FALSE='#' | |
3046 else | |
3047 am__fastdepCC_TRUE='#' | |
3048 am__fastdepCC_FALSE= | |
3049 fi | |
3050 | |
3051 | |
3052 ac_ext=c | |
3053 ac_cpp='$CPP $CPPFLAGS' | |
3054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' | |
3056 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3057 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
3058 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
3059 # On Suns, sometimes $CPP names a directory. | |
3060 if test -n "$CPP" && test -d "$CPP"; then | |
3061 CPP= | |
3062 fi | |
3063 if test -z "$CPP"; then | |
3064 if test "${ac_cv_prog_CPP+set}" = set; then | |
3065 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3066 else | |
3067 # Double quotes because CPP needs to be expanded | |
3068 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3069 do | |
3070 ac_preproc_ok=false | |
3071 for ac_c_preproc_warn_flag in '' yes | |
3072 do | |
3073 # Use a header file that comes with gcc, so configuring glibc | |
3074 # with a fresh cross-compiler works. | |
3075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3076 # <limits.h> exists even on freestanding compilers. | |
3077 # On the NeXT, cc -E runs the code through the compiler's parser, | |
3078 # not just through cpp. "Syntax error" is here to catch this case. | |
3079 cat >conftest.$ac_ext <<_ACEOF | |
3080 /* confdefs.h. */ | |
3081 _ACEOF | |
3082 cat confdefs.h >>conftest.$ac_ext | |
3083 cat >>conftest.$ac_ext <<_ACEOF | |
3084 /* end confdefs.h. */ | |
3085 #ifdef __STDC__ | |
3086 # include <limits.h> | |
3087 #else | |
3088 # include <assert.h> | |
3089 #endif | |
3090 Syntax error | |
3091 _ACEOF | |
3092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3094 ac_status=$? | |
3095 grep -v '^ *+' conftest.er1 >conftest.err | |
3096 rm -f conftest.er1 | |
3097 cat conftest.err >&5 | |
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3099 (exit $ac_status); } >/dev/null; then | |
3100 if test -s conftest.err; then | |
3101 ac_cpp_err=$ac_c_preproc_warn_flag | |
3102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3103 else | |
3104 ac_cpp_err= | |
3105 fi | |
3106 else | |
3107 ac_cpp_err=yes | |
3108 fi | |
3109 if test -z "$ac_cpp_err"; then | |
3110 : | |
3111 else | |
3112 echo "$as_me: failed program was:" >&5 | |
3113 sed 's/^/| /' conftest.$ac_ext >&5 | |
3114 | |
3115 # Broken: fails on valid input. | |
3116 continue | |
3117 fi | |
3118 rm -f conftest.err conftest.$ac_ext | |
3119 | |
3120 # OK, works on sane cases. Now check whether non-existent headers | |
3121 # can be detected and how. | |
3122 cat >conftest.$ac_ext <<_ACEOF | |
3123 /* confdefs.h. */ | |
3124 _ACEOF | |
3125 cat confdefs.h >>conftest.$ac_ext | |
3126 cat >>conftest.$ac_ext <<_ACEOF | |
3127 /* end confdefs.h. */ | |
3128 #include <ac_nonexistent.h> | |
3129 _ACEOF | |
3130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3132 ac_status=$? | |
3133 grep -v '^ *+' conftest.er1 >conftest.err | |
3134 rm -f conftest.er1 | |
3135 cat conftest.err >&5 | |
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3137 (exit $ac_status); } >/dev/null; then | |
3138 if test -s conftest.err; then | |
3139 ac_cpp_err=$ac_c_preproc_warn_flag | |
3140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3141 else | |
3142 ac_cpp_err= | |
3143 fi | |
3144 else | |
3145 ac_cpp_err=yes | |
3146 fi | |
3147 if test -z "$ac_cpp_err"; then | |
3148 # Broken: success on invalid input. | |
3149 continue | |
3150 else | |
3151 echo "$as_me: failed program was:" >&5 | |
3152 sed 's/^/| /' conftest.$ac_ext >&5 | |
3153 | |
3154 # Passes both tests. | |
3155 ac_preproc_ok=: | |
3156 break | |
3157 fi | |
3158 rm -f conftest.err conftest.$ac_ext | |
3159 | |
3160 done | |
3161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3162 rm -f conftest.err conftest.$ac_ext | |
3163 if $ac_preproc_ok; then | |
3164 break | |
3165 fi | |
3166 | |
3167 done | |
3168 ac_cv_prog_CPP=$CPP | |
3169 | |
3170 fi | |
3171 CPP=$ac_cv_prog_CPP | |
3172 else | |
3173 ac_cv_prog_CPP=$CPP | |
3174 fi | |
3175 echo "$as_me:$LINENO: result: $CPP" >&5 | |
3176 echo "${ECHO_T}$CPP" >&6 | |
3177 ac_preproc_ok=false | |
3178 for ac_c_preproc_warn_flag in '' yes | |
3179 do | |
3180 # Use a header file that comes with gcc, so configuring glibc | |
3181 # with a fresh cross-compiler works. | |
3182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3183 # <limits.h> exists even on freestanding compilers. | |
3184 # On the NeXT, cc -E runs the code through the compiler's parser, | |
3185 # not just through cpp. "Syntax error" is here to catch this case. | |
3186 cat >conftest.$ac_ext <<_ACEOF | |
3187 /* confdefs.h. */ | |
3188 _ACEOF | |
3189 cat confdefs.h >>conftest.$ac_ext | |
3190 cat >>conftest.$ac_ext <<_ACEOF | |
3191 /* end confdefs.h. */ | |
3192 #ifdef __STDC__ | |
3193 # include <limits.h> | |
3194 #else | |
3195 # include <assert.h> | |
3196 #endif | |
3197 Syntax error | |
3198 _ACEOF | |
3199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3201 ac_status=$? | |
3202 grep -v '^ *+' conftest.er1 >conftest.err | |
3203 rm -f conftest.er1 | |
3204 cat conftest.err >&5 | |
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3206 (exit $ac_status); } >/dev/null; then | |
3207 if test -s conftest.err; then | |
3208 ac_cpp_err=$ac_c_preproc_warn_flag | |
3209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3210 else | |
3211 ac_cpp_err= | |
3212 fi | |
3213 else | |
3214 ac_cpp_err=yes | |
3215 fi | |
3216 if test -z "$ac_cpp_err"; then | |
3217 : | |
3218 else | |
3219 echo "$as_me: failed program was:" >&5 | |
3220 sed 's/^/| /' conftest.$ac_ext >&5 | |
3221 | |
3222 # Broken: fails on valid input. | |
3223 continue | |
3224 fi | |
3225 rm -f conftest.err conftest.$ac_ext | |
3226 | |
3227 # OK, works on sane cases. Now check whether non-existent headers | |
3228 # can be detected and how. | |
3229 cat >conftest.$ac_ext <<_ACEOF | |
3230 /* confdefs.h. */ | |
3231 _ACEOF | |
3232 cat confdefs.h >>conftest.$ac_ext | |
3233 cat >>conftest.$ac_ext <<_ACEOF | |
3234 /* end confdefs.h. */ | |
3235 #include <ac_nonexistent.h> | |
3236 _ACEOF | |
3237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3239 ac_status=$? | |
3240 grep -v '^ *+' conftest.er1 >conftest.err | |
3241 rm -f conftest.er1 | |
3242 cat conftest.err >&5 | |
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3244 (exit $ac_status); } >/dev/null; then | |
3245 if test -s conftest.err; then | |
3246 ac_cpp_err=$ac_c_preproc_warn_flag | |
3247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3248 else | |
3249 ac_cpp_err= | |
3250 fi | |
3251 else | |
3252 ac_cpp_err=yes | |
3253 fi | |
3254 if test -z "$ac_cpp_err"; then | |
3255 # Broken: success on invalid input. | |
3256 continue | |
3257 else | |
3258 echo "$as_me: failed program was:" >&5 | |
3259 sed 's/^/| /' conftest.$ac_ext >&5 | |
3260 | |
3261 # Passes both tests. | |
3262 ac_preproc_ok=: | |
3263 break | |
3264 fi | |
3265 rm -f conftest.err conftest.$ac_ext | |
3266 | |
3267 done | |
3268 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3269 rm -f conftest.err conftest.$ac_ext | |
3270 if $ac_preproc_ok; then | |
3271 : | |
3272 else | |
3273 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
3274 See \`config.log' for more details." >&5 | |
3275 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3276 See \`config.log' for more details." >&2;} | |
3277 { (exit 1); exit 1; }; } | |
3278 fi | |
3279 | |
3280 ac_ext=c | |
3281 ac_cpp='$CPP $CPPFLAGS' | |
3282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' | |
3284 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3285 | |
3286 ac_ext=cc | |
3287 ac_cpp='$CXXCPP $CPPFLAGS' | |
3288 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3289 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex
t $LIBS >&5' | |
3290 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3291 if test -n "$ac_tool_prefix"; then | |
3292 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
3293 do | |
3294 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra
m name with args. | |
3295 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3296 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3298 if test "${ac_cv_prog_CXX+set}" = set; then | |
3299 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3300 else | |
3301 if test -n "$CXX"; then | |
3302 ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3303 else | |
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3305 for as_dir in $PATH | |
3306 do | |
3307 IFS=$as_save_IFS | |
3308 test -z "$as_dir" && as_dir=. | |
3309 for ac_exec_ext in '' $ac_executable_extensions; do | |
3310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3311 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
3312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3313 break 2 | |
3314 fi | |
3315 done | |
3316 done | |
3317 | |
3318 fi | |
3319 fi | |
3320 CXX=$ac_cv_prog_CXX | |
3321 if test -n "$CXX"; then | |
3322 echo "$as_me:$LINENO: result: $CXX" >&5 | |
3323 echo "${ECHO_T}$CXX" >&6 | |
3324 else | |
3325 echo "$as_me:$LINENO: result: no" >&5 | |
3326 echo "${ECHO_T}no" >&6 | |
3327 fi | |
3328 | |
3329 test -n "$CXX" && break | |
3330 done | |
3331 fi | |
3332 if test -z "$CXX"; then | |
3333 ac_ct_CXX=$CXX | |
3334 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
3335 do | |
3336 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3337 set dummy $ac_prog; ac_word=$2 | |
3338 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3340 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
3341 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3342 else | |
3343 if test -n "$ac_ct_CXX"; then | |
3344 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3345 else | |
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3347 for as_dir in $PATH | |
3348 do | |
3349 IFS=$as_save_IFS | |
3350 test -z "$as_dir" && as_dir=. | |
3351 for ac_exec_ext in '' $ac_executable_extensions; do | |
3352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3353 ac_cv_prog_ac_ct_CXX="$ac_prog" | |
3354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3355 break 2 | |
3356 fi | |
3357 done | |
3358 done | |
3359 | |
3360 fi | |
3361 fi | |
3362 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3363 if test -n "$ac_ct_CXX"; then | |
3364 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
3365 echo "${ECHO_T}$ac_ct_CXX" >&6 | |
3366 else | |
3367 echo "$as_me:$LINENO: result: no" >&5 | |
3368 echo "${ECHO_T}no" >&6 | |
3369 fi | |
3370 | |
3371 test -n "$ac_ct_CXX" && break | |
3372 done | |
3373 test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
3374 | |
3375 CXX=$ac_ct_CXX | |
3376 fi | |
3377 | |
3378 | |
3379 # Provide some information about the compiler. | |
3380 echo "$as_me:$LINENO:" \ | |
3381 "checking for C++ compiler version" >&5 | |
3382 ac_compiler=`set X $ac_compile; echo $2` | |
3383 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
3384 (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
3385 ac_status=$? | |
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3387 (exit $ac_status); } | |
3388 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
3389 (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
3390 ac_status=$? | |
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3392 (exit $ac_status); } | |
3393 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
3394 (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
3395 ac_status=$? | |
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3397 (exit $ac_status); } | |
3398 | |
3399 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
3400 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
3401 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
3402 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3403 else | |
3404 cat >conftest.$ac_ext <<_ACEOF | |
3405 /* confdefs.h. */ | |
3406 _ACEOF | |
3407 cat confdefs.h >>conftest.$ac_ext | |
3408 cat >>conftest.$ac_ext <<_ACEOF | |
3409 /* end confdefs.h. */ | |
3410 | |
3411 int | |
3412 main () | |
3413 { | |
3414 #ifndef __GNUC__ | |
3415 choke me | |
3416 #endif | |
3417 | |
3418 ; | |
3419 return 0; | |
3420 } | |
3421 _ACEOF | |
3422 rm -f conftest.$ac_objext | |
3423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3424 (eval $ac_compile) 2>conftest.er1 | |
3425 ac_status=$? | |
3426 grep -v '^ *+' conftest.er1 >conftest.err | |
3427 rm -f conftest.er1 | |
3428 cat conftest.err >&5 | |
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3430 (exit $ac_status); } && | |
3431 { ac_try='test -z "$ac_cxx_werror_flag" || test
! -s conftest.err' | |
3432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3433 (eval $ac_try) 2>&5 | |
3434 ac_status=$? | |
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3436 (exit $ac_status); }; } && | |
3437 { ac_try='test -s conftest.$ac_objext' | |
3438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3439 (eval $ac_try) 2>&5 | |
3440 ac_status=$? | |
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3442 (exit $ac_status); }; }; then | |
3443 ac_compiler_gnu=yes | |
3444 else | |
3445 echo "$as_me: failed program was:" >&5 | |
3446 sed 's/^/| /' conftest.$ac_ext >&5 | |
3447 | |
3448 ac_compiler_gnu=no | |
3449 fi | |
3450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3451 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
3452 | |
3453 fi | |
3454 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
3455 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
3456 GXX=`test $ac_compiler_gnu = yes && echo yes` | |
3457 ac_test_CXXFLAGS=${CXXFLAGS+set} | |
3458 ac_save_CXXFLAGS=$CXXFLAGS | |
3459 CXXFLAGS="-g" | |
3460 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
3461 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
3462 if test "${ac_cv_prog_cxx_g+set}" = set; then | |
3463 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3464 else | |
3465 cat >conftest.$ac_ext <<_ACEOF | |
3466 /* confdefs.h. */ | |
3467 _ACEOF | |
3468 cat confdefs.h >>conftest.$ac_ext | |
3469 cat >>conftest.$ac_ext <<_ACEOF | |
3470 /* end confdefs.h. */ | |
3471 | |
3472 int | |
3473 main () | |
3474 { | |
3475 | |
3476 ; | |
3477 return 0; | |
3478 } | |
3479 _ACEOF | |
3480 rm -f conftest.$ac_objext | |
3481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3482 (eval $ac_compile) 2>conftest.er1 | |
3483 ac_status=$? | |
3484 grep -v '^ *+' conftest.er1 >conftest.err | |
3485 rm -f conftest.er1 | |
3486 cat conftest.err >&5 | |
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3488 (exit $ac_status); } && | |
3489 { ac_try='test -z "$ac_cxx_werror_flag" || test
! -s conftest.err' | |
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3491 (eval $ac_try) 2>&5 | |
3492 ac_status=$? | |
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3494 (exit $ac_status); }; } && | |
3495 { ac_try='test -s conftest.$ac_objext' | |
3496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3497 (eval $ac_try) 2>&5 | |
3498 ac_status=$? | |
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3500 (exit $ac_status); }; }; then | |
3501 ac_cv_prog_cxx_g=yes | |
3502 else | |
3503 echo "$as_me: failed program was:" >&5 | |
3504 sed 's/^/| /' conftest.$ac_ext >&5 | |
3505 | |
3506 ac_cv_prog_cxx_g=no | |
3507 fi | |
3508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3509 fi | |
3510 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
3511 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
3512 if test "$ac_test_CXXFLAGS" = set; then | |
3513 CXXFLAGS=$ac_save_CXXFLAGS | |
3514 elif test $ac_cv_prog_cxx_g = yes; then | |
3515 if test "$GXX" = yes; then | |
3516 CXXFLAGS="-g -O2" | |
3517 else | |
3518 CXXFLAGS="-g" | |
3519 fi | |
3520 else | |
3521 if test "$GXX" = yes; then | |
3522 CXXFLAGS="-O2" | |
3523 else | |
3524 CXXFLAGS= | |
3525 fi | |
3526 fi | |
3527 for ac_declaration in \ | |
3528 '' \ | |
3529 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
3530 'extern "C" void std::exit (int); using std::exit;' \ | |
3531 'extern "C" void exit (int) throw ();' \ | |
3532 'extern "C" void exit (int);' \ | |
3533 'void exit (int);' | |
3534 do | |
3535 cat >conftest.$ac_ext <<_ACEOF | |
3536 /* confdefs.h. */ | |
3537 _ACEOF | |
3538 cat confdefs.h >>conftest.$ac_ext | |
3539 cat >>conftest.$ac_ext <<_ACEOF | |
3540 /* end confdefs.h. */ | |
3541 $ac_declaration | |
3542 #include <stdlib.h> | |
3543 int | |
3544 main () | |
3545 { | |
3546 exit (42); | |
3547 ; | |
3548 return 0; | |
3549 } | |
3550 _ACEOF | |
3551 rm -f conftest.$ac_objext | |
3552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3553 (eval $ac_compile) 2>conftest.er1 | |
3554 ac_status=$? | |
3555 grep -v '^ *+' conftest.er1 >conftest.err | |
3556 rm -f conftest.er1 | |
3557 cat conftest.err >&5 | |
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3559 (exit $ac_status); } && | |
3560 { ac_try='test -z "$ac_cxx_werror_flag" || test
! -s conftest.err' | |
3561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3562 (eval $ac_try) 2>&5 | |
3563 ac_status=$? | |
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3565 (exit $ac_status); }; } && | |
3566 { ac_try='test -s conftest.$ac_objext' | |
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3568 (eval $ac_try) 2>&5 | |
3569 ac_status=$? | |
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3571 (exit $ac_status); }; }; then | |
3572 : | |
3573 else | |
3574 echo "$as_me: failed program was:" >&5 | |
3575 sed 's/^/| /' conftest.$ac_ext >&5 | |
3576 | |
3577 continue | |
3578 fi | |
3579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3580 cat >conftest.$ac_ext <<_ACEOF | |
3581 /* confdefs.h. */ | |
3582 _ACEOF | |
3583 cat confdefs.h >>conftest.$ac_ext | |
3584 cat >>conftest.$ac_ext <<_ACEOF | |
3585 /* end confdefs.h. */ | |
3586 $ac_declaration | |
3587 int | |
3588 main () | |
3589 { | |
3590 exit (42); | |
3591 ; | |
3592 return 0; | |
3593 } | |
3594 _ACEOF | |
3595 rm -f conftest.$ac_objext | |
3596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3597 (eval $ac_compile) 2>conftest.er1 | |
3598 ac_status=$? | |
3599 grep -v '^ *+' conftest.er1 >conftest.err | |
3600 rm -f conftest.er1 | |
3601 cat conftest.err >&5 | |
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3603 (exit $ac_status); } && | |
3604 { ac_try='test -z "$ac_cxx_werror_flag" || test
! -s conftest.err' | |
3605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3606 (eval $ac_try) 2>&5 | |
3607 ac_status=$? | |
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3609 (exit $ac_status); }; } && | |
3610 { ac_try='test -s conftest.$ac_objext' | |
3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3612 (eval $ac_try) 2>&5 | |
3613 ac_status=$? | |
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3615 (exit $ac_status); }; }; then | |
3616 break | |
3617 else | |
3618 echo "$as_me: failed program was:" >&5 | |
3619 sed 's/^/| /' conftest.$ac_ext >&5 | |
3620 | |
3621 fi | |
3622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3623 done | |
3624 rm -f conftest* | |
3625 if test -n "$ac_declaration"; then | |
3626 echo '#ifdef __cplusplus' >>confdefs.h | |
3627 echo $ac_declaration >>confdefs.h | |
3628 echo '#endif' >>confdefs.h | |
3629 fi | |
3630 | |
3631 ac_ext=c | |
3632 ac_cpp='$CPP $CPPFLAGS' | |
3633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' | |
3635 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3636 | |
3637 depcc="$CXX" am_compiler_list= | |
3638 | |
3639 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3640 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
3641 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then | |
3642 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3643 else | |
3644 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3645 # We make a subdir and do the tests there. Otherwise we can end up | |
3646 # making bogus files that we don't know about and never remove. For | |
3647 # instance it was reported that on HP-UX the gcc test will end up | |
3648 # making a dummy file named `D' -- because `-MD' means `put the output | |
3649 # in D'. | |
3650 mkdir conftest.dir | |
3651 # Copy depcomp to subdir because otherwise we won't find it if we're | |
3652 # using a relative directory. | |
3653 cp "$am_depcomp" conftest.dir | |
3654 cd conftest.dir | |
3655 # We will build objects and dependencies in a subdirectory because | |
3656 # it helps to detect inapplicable dependency modes. For instance | |
3657 # both Tru64's cc and ICC support -MD to output dependencies as a | |
3658 # side effect of compilation, but ICC will put the dependencies in | |
3659 # the current directory while Tru64 will put them in the object | |
3660 # directory. | |
3661 mkdir sub | |
3662 | |
3663 am_cv_CXX_dependencies_compiler_type=none | |
3664 if test "$am_compiler_list" = ""; then | |
3665 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3666 fi | |
3667 for depmode in $am_compiler_list; do | |
3668 # Setup a source with many dependencies, because some compilers | |
3669 # like to wrap large dependency lists on column 80 (with \), and | |
3670 # we should not choose a depcomp mode which is confused by this. | |
3671 # | |
3672 # We need to recreate these files for each test, as the compiler may | |
3673 # overwrite some of them when testing with obscure command lines. | |
3674 # This happens at least with the AIX C compiler. | |
3675 : > sub/conftest.c | |
3676 for i in 1 2 3 4 5 6; do | |
3677 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3678 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3679 # Solaris 8's {/usr,}/bin/sh. | |
3680 touch sub/conftst$i.h | |
3681 done | |
3682 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3683 | |
3684 case $depmode in | |
3685 nosideeffect) | |
3686 # after this tag, mechanisms are not by side-effect, so they'll | |
3687 # only be used when explicitly requested | |
3688 if test "x$enable_dependency_tracking" = xyes; then | |
3689 continue | |
3690 else | |
3691 break | |
3692 fi | |
3693 ;; | |
3694 none) break ;; | |
3695 esac | |
3696 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3697 # mode. It turns out that the SunPro C++ compiler does not properly | |
3698 # handle `-M -o', and we need to detect this. | |
3699 if depmode=$depmode \ | |
3700 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3701 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3702 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3703 >/dev/null 2>conftest.err && | |
3704 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3705 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3706 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3707 # icc doesn't choke on unknown options, it will just issue warnings | |
3708 # or remarks (even with -Werror). So we grep stderr for any message | |
3709 # that says an option was ignored or not supported. | |
3710 # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3711 # icc: Command line warning: ignoring option '-M'; no argument required | |
3712 # The diagnosis changed in icc 8.0: | |
3713 # icc: Command line remark: option '-MP' not supported | |
3714 if (grep 'ignoring option' conftest.err || | |
3715 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3716 am_cv_CXX_dependencies_compiler_type=$depmode | |
3717 break | |
3718 fi | |
3719 fi | |
3720 done | |
3721 | |
3722 cd .. | |
3723 rm -rf conftest.dir | |
3724 else | |
3725 am_cv_CXX_dependencies_compiler_type=none | |
3726 fi | |
3727 | |
3728 fi | |
3729 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
3730 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 | |
3731 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
3732 | |
3733 | |
3734 | |
3735 if | |
3736 test "x$enable_dependency_tracking" != xno \ | |
3737 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
3738 am__fastdepCXX_TRUE= | |
3739 am__fastdepCXX_FALSE='#' | |
3740 else | |
3741 am__fastdepCXX_TRUE='#' | |
3742 am__fastdepCXX_FALSE= | |
3743 fi | |
3744 | |
3745 | |
3746 | |
3747 | |
3748 if test "$GCC" = yes; then | |
3749 GCC_TRUE= | |
3750 GCC_FALSE='#' | |
3751 else | |
3752 GCC_TRUE='#' | |
3753 GCC_FALSE= | |
3754 fi | |
3755 # let the Makefile know if we're gcc | |
3756 | |
3757 # Check whether --enable-shared or --disable-shared was given. | |
3758 if test "${enable_shared+set}" = set; then | |
3759 enableval="$enable_shared" | |
3760 p=${PACKAGE-default} | |
3761 case $enableval in | |
3762 yes) enable_shared=yes ;; | |
3763 no) enable_shared=no ;; | |
3764 *) | |
3765 enable_shared=no | |
3766 # Look at the argument we got. We use all the common list separators. | |
3767 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3768 for pkg in $enableval; do | |
3769 IFS="$lt_save_ifs" | |
3770 if test "X$pkg" = "X$p"; then | |
3771 enable_shared=yes | |
3772 fi | |
3773 done | |
3774 IFS="$lt_save_ifs" | |
3775 ;; | |
3776 esac | |
3777 else | |
3778 enable_shared=yes | |
3779 fi; | |
3780 | |
3781 # Check whether --enable-static or --disable-static was given. | |
3782 if test "${enable_static+set}" = set; then | |
3783 enableval="$enable_static" | |
3784 p=${PACKAGE-default} | |
3785 case $enableval in | |
3786 yes) enable_static=yes ;; | |
3787 no) enable_static=no ;; | |
3788 *) | |
3789 enable_static=no | |
3790 # Look at the argument we got. We use all the common list separators. | |
3791 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3792 for pkg in $enableval; do | |
3793 IFS="$lt_save_ifs" | |
3794 if test "X$pkg" = "X$p"; then | |
3795 enable_static=yes | |
3796 fi | |
3797 done | |
3798 IFS="$lt_save_ifs" | |
3799 ;; | |
3800 esac | |
3801 else | |
3802 enable_static=yes | |
3803 fi; | |
3804 | |
3805 # Check whether --enable-fast-install or --disable-fast-install was given. | |
3806 if test "${enable_fast_install+set}" = set; then | |
3807 enableval="$enable_fast_install" | |
3808 p=${PACKAGE-default} | |
3809 case $enableval in | |
3810 yes) enable_fast_install=yes ;; | |
3811 no) enable_fast_install=no ;; | |
3812 *) | |
3813 enable_fast_install=no | |
3814 # Look at the argument we got. We use all the common list separators. | |
3815 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3816 for pkg in $enableval; do | |
3817 IFS="$lt_save_ifs" | |
3818 if test "X$pkg" = "X$p"; then | |
3819 enable_fast_install=yes | |
3820 fi | |
3821 done | |
3822 IFS="$lt_save_ifs" | |
3823 ;; | |
3824 esac | |
3825 else | |
3826 enable_fast_install=yes | |
3827 fi; | |
3828 | |
3829 # Make sure we can run config.sub. | |
3830 $ac_config_sub sun4 >/dev/null 2>&1 || | |
3831 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
3832 echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
3833 { (exit 1); exit 1; }; } | |
3834 | |
3835 echo "$as_me:$LINENO: checking build system type" >&5 | |
3836 echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
3837 if test "${ac_cv_build+set}" = set; then | |
3838 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3839 else | |
3840 ac_cv_build_alias=$build_alias | |
3841 test -z "$ac_cv_build_alias" && | |
3842 ac_cv_build_alias=`$ac_config_guess` | |
3843 test -z "$ac_cv_build_alias" && | |
3844 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one
" >&5 | |
3845 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
3846 { (exit 1); exit 1; }; } | |
3847 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
3848 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
3849 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
3850 { (exit 1); exit 1; }; } | |
3851 | |
3852 fi | |
3853 echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
3854 echo "${ECHO_T}$ac_cv_build" >&6 | |
3855 build=$ac_cv_build | |
3856 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3857 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3858 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
3859 | |
3860 | |
3861 echo "$as_me:$LINENO: checking host system type" >&5 | |
3862 echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
3863 if test "${ac_cv_host+set}" = set; then | |
3864 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3865 else | |
3866 ac_cv_host_alias=$host_alias | |
3867 test -z "$ac_cv_host_alias" && | |
3868 ac_cv_host_alias=$ac_cv_build_alias | |
3869 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
3870 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
3871 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
3872 { (exit 1); exit 1; }; } | |
3873 | |
3874 fi | |
3875 echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
3876 echo "${ECHO_T}$ac_cv_host" >&6 | |
3877 host=$ac_cv_host | |
3878 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3879 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3880 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
3881 | |
3882 | |
3883 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
3884 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | |
3885 if test "${lt_cv_path_SED+set}" = set; then | |
3886 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3887 else | |
3888 # Loop through the user's path and test for sed and gsed. | |
3889 # Then use that list of sed's as ones to test for truncation. | |
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3891 for as_dir in $PATH | |
3892 do | |
3893 IFS=$as_save_IFS | |
3894 test -z "$as_dir" && as_dir=. | |
3895 for lt_ac_prog in sed gsed; do | |
3896 for ac_exec_ext in '' $ac_executable_extensions; do | |
3897 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | |
3898 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | |
3899 fi | |
3900 done | |
3901 done | |
3902 done | |
3903 lt_ac_max=0 | |
3904 lt_ac_count=0 | |
3905 # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
3906 # along with /bin/sed that truncates output. | |
3907 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
3908 test ! -f $lt_ac_sed && continue | |
3909 cat /dev/null > conftest.in | |
3910 lt_ac_count=0 | |
3911 echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
3912 # Check for GNU sed and select it if it is found. | |
3913 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
3914 lt_cv_path_SED=$lt_ac_sed | |
3915 break | |
3916 fi | |
3917 while true; do | |
3918 cat conftest.in conftest.in >conftest.tmp | |
3919 mv conftest.tmp conftest.in | |
3920 cp conftest.in conftest.nl | |
3921 echo >>conftest.nl | |
3922 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
3923 cmp -s conftest.out conftest.nl || break | |
3924 # 10000 chars as input seems more than enough | |
3925 test $lt_ac_count -gt 10 && break | |
3926 lt_ac_count=`expr $lt_ac_count + 1` | |
3927 if test $lt_ac_count -gt $lt_ac_max; then | |
3928 lt_ac_max=$lt_ac_count | |
3929 lt_cv_path_SED=$lt_ac_sed | |
3930 fi | |
3931 done | |
3932 done | |
3933 | |
3934 fi | |
3935 | |
3936 SED=$lt_cv_path_SED | |
3937 echo "$as_me:$LINENO: result: $SED" >&5 | |
3938 echo "${ECHO_T}$SED" >&6 | |
3939 | |
3940 echo "$as_me:$LINENO: checking for egrep" >&5 | |
3941 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
3942 if test "${ac_cv_prog_egrep+set}" = set; then | |
3943 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3944 else | |
3945 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
3946 then ac_cv_prog_egrep='grep -E' | |
3947 else ac_cv_prog_egrep='egrep' | |
3948 fi | |
3949 fi | |
3950 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
3951 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
3952 EGREP=$ac_cv_prog_egrep | |
3953 | |
3954 | |
3955 | |
3956 # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
3957 if test "${with_gnu_ld+set}" = set; then | |
3958 withval="$with_gnu_ld" | |
3959 test "$withval" = no || with_gnu_ld=yes | |
3960 else | |
3961 with_gnu_ld=no | |
3962 fi; | |
3963 ac_prog=ld | |
3964 if test "$GCC" = yes; then | |
3965 # Check if gcc -print-prog-name=ld gives a path. | |
3966 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
3967 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
3968 case $host in | |
3969 *-*-mingw*) | |
3970 # gcc leaves a trailing carriage return which upsets mingw | |
3971 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3972 *) | |
3973 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3974 esac | |
3975 case $ac_prog in | |
3976 # Accept absolute paths. | |
3977 [\\/]* | ?:[\\/]*) | |
3978 re_direlt='/[^/][^/]*/\.\./' | |
3979 # Canonicalize the pathname of ld | |
3980 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | |
3981 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3982 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | |
3983 done | |
3984 test -z "$LD" && LD="$ac_prog" | |
3985 ;; | |
3986 "") | |
3987 # If it fails, then pretend we aren't using GCC. | |
3988 ac_prog=ld | |
3989 ;; | |
3990 *) | |
3991 # If it is relative, then search for the first ld in PATH. | |
3992 with_gnu_ld=unknown | |
3993 ;; | |
3994 esac | |
3995 elif test "$with_gnu_ld" = yes; then | |
3996 echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
3997 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
3998 else | |
3999 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
4000 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
4001 fi | |
4002 if test "${lt_cv_path_LD+set}" = set; then | |
4003 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4004 else | |
4005 if test -z "$LD"; then | |
4006 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4007 for ac_dir in $PATH; do | |
4008 IFS="$lt_save_ifs" | |
4009 test -z "$ac_dir" && ac_dir=. | |
4010 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4011 lt_cv_path_LD="$ac_dir/$ac_prog" | |
4012 # Check to see if the program is GNU ld. I'd rather use --version, | |
4013 # but apparently some variants of GNU ld only accept -v. | |
4014 # Break only if it was the GNU/non-GNU ld that we prefer. | |
4015 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4016 *GNU* | *'with BFD'*) | |
4017 test "$with_gnu_ld" != no && break | |
4018 ;; | |
4019 *) | |
4020 test "$with_gnu_ld" != yes && break | |
4021 ;; | |
4022 esac | |
4023 fi | |
4024 done | |
4025 IFS="$lt_save_ifs" | |
4026 else | |
4027 lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4028 fi | |
4029 fi | |
4030 | |
4031 LD="$lt_cv_path_LD" | |
4032 if test -n "$LD"; then | |
4033 echo "$as_me:$LINENO: result: $LD" >&5 | |
4034 echo "${ECHO_T}$LD" >&6 | |
4035 else | |
4036 echo "$as_me:$LINENO: result: no" >&5 | |
4037 echo "${ECHO_T}no" >&6 | |
4038 fi | |
4039 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PA
TH" >&5 | |
4040 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
4041 { (exit 1); exit 1; }; } | |
4042 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
4043 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
4044 if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
4045 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4046 else | |
4047 # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4048 case `$LD -v 2>&1 </dev/null` in | |
4049 *GNU* | *'with BFD'*) | |
4050 lt_cv_prog_gnu_ld=yes | |
4051 ;; | |
4052 *) | |
4053 lt_cv_prog_gnu_ld=no | |
4054 ;; | |
4055 esac | |
4056 fi | |
4057 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
4058 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
4059 with_gnu_ld=$lt_cv_prog_gnu_ld | |
4060 | |
4061 | |
4062 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
4063 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
4064 if test "${lt_cv_ld_reload_flag+set}" = set; then | |
4065 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4066 else | |
4067 lt_cv_ld_reload_flag='-r' | |
4068 fi | |
4069 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
4070 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
4071 reload_flag=$lt_cv_ld_reload_flag | |
4072 case $reload_flag in | |
4073 "" | " "*) ;; | |
4074 *) reload_flag=" $reload_flag" ;; | |
4075 esac | |
4076 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4077 case $host_os in | |
4078 darwin*) | |
4079 if test "$GCC" = yes; then | |
4080 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4081 else | |
4082 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4083 fi | |
4084 ;; | |
4085 esac | |
4086 | |
4087 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | |
4088 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
4089 if test "${lt_cv_path_NM+set}" = set; then | |
4090 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4091 else | |
4092 if test -n "$NM"; then | |
4093 # Let the user override the test. | |
4094 lt_cv_path_NM="$NM" | |
4095 else | |
4096 lt_nm_to_check="${ac_tool_prefix}nm" | |
4097 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4098 lt_nm_to_check="$lt_nm_to_check nm" | |
4099 fi | |
4100 for lt_tmp_nm in $lt_nm_to_check; do | |
4101 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4102 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4103 IFS="$lt_save_ifs" | |
4104 test -z "$ac_dir" && ac_dir=. | |
4105 tmp_nm="$ac_dir/$lt_tmp_nm" | |
4106 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4107 # Check to see if the nm accepts a BSD-compat flag. | |
4108 # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4109 # nm: unknown option "B" ignored | |
4110 # Tru64's nm complains that /dev/null is an invalid object file | |
4111 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4112 */dev/null* | *'Invalid file or object type'*) | |
4113 lt_cv_path_NM="$tmp_nm -B" | |
4114 break | |
4115 ;; | |
4116 *) | |
4117 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4118 */dev/null*) | |
4119 lt_cv_path_NM="$tmp_nm -p" | |
4120 break | |
4121 ;; | |
4122 *) | |
4123 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4124 continue # so that we can try to find one that supports BSD flags | |
4125 ;; | |
4126 esac | |
4127 ;; | |
4128 esac | |
4129 fi | |
4130 done | |
4131 IFS="$lt_save_ifs" | |
4132 done | |
4133 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | |
4134 fi | |
4135 fi | |
4136 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | |
4137 echo "${ECHO_T}$lt_cv_path_NM" >&6 | |
4138 NM="$lt_cv_path_NM" | |
4139 | |
4140 echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
4141 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
4142 LN_S=$as_ln_s | |
4143 if test "$LN_S" = "ln -s"; then | |
4144 echo "$as_me:$LINENO: result: yes" >&5 | |
4145 echo "${ECHO_T}yes" >&6 | |
4146 else | |
4147 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
4148 echo "${ECHO_T}no, using $LN_S" >&6 | |
4149 fi | |
4150 | |
4151 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 | |
4152 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 | |
4153 if test "${lt_cv_deplibs_check_method+set}" = set; then | |
4154 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4155 else | |
4156 lt_cv_file_magic_cmd='$MAGIC_CMD' | |
4157 lt_cv_file_magic_test_file= | |
4158 lt_cv_deplibs_check_method='unknown' | |
4159 # Need to set the preceding variable on all platforms that support | |
4160 # interlibrary dependencies. | |
4161 # 'none' -- dependencies not supported. | |
4162 # `unknown' -- same as none, but documents that we really don't know. | |
4163 # 'pass_all' -- all dependencies passed with no checks. | |
4164 # 'test_compile' -- check by making test program. | |
4165 # 'file_magic [[regex]]' -- check by looking for files in library path | |
4166 # which responds to the $file_magic_cmd with a given extended regex. | |
4167 # If you have `file' or equivalent on your system and you're not sure | |
4168 # whether `pass_all' will *always* work, you probably want this one. | |
4169 | |
4170 case $host_os in | |
4171 aix4* | aix5*) | |
4172 lt_cv_deplibs_check_method=pass_all | |
4173 ;; | |
4174 | |
4175 beos*) | |
4176 lt_cv_deplibs_check_method=pass_all | |
4177 ;; | |
4178 | |
4179 bsdi[45]*) | |
4180 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared obje
ct|dynamic lib)' | |
4181 lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4182 lt_cv_file_magic_test_file=/shlib/libc.so | |
4183 ;; | |
4184 | |
4185 cygwin*) | |
4186 # func_win32_libid is a shell function defined in ltmain.sh | |
4187 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4188 lt_cv_file_magic_cmd='func_win32_libid' | |
4189 ;; | |
4190 | |
4191 mingw* | pw32*) | |
4192 # Base MSYS/MinGW do not provide the 'file' command needed by | |
4193 # func_win32_libid shell function, so use a weaker test based on 'objdump'. | |
4194 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i
386)?' | |
4195 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4196 ;; | |
4197 | |
4198 darwin* | rhapsody*) | |
4199 lt_cv_deplibs_check_method=pass_all | |
4200 ;; | |
4201 | |
4202 freebsd* | kfreebsd*-gnu | dragonfly*) | |
4203 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
4204 case $host_cpu in | |
4205 i*86 ) | |
4206 # Not sure whether the presence of OpenBSD here was a mistake. | |
4207 # Let's accept both of them until this is cleared up. | |
4208 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]8
6 (compact )?demand paged shared library' | |
4209 lt_cv_file_magic_cmd=/usr/bin/file | |
4210 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4211 ;; | |
4212 esac | |
4213 else | |
4214 lt_cv_deplibs_check_method=pass_all | |
4215 fi | |
4216 ;; | |
4217 | |
4218 gnu*) | |
4219 lt_cv_deplibs_check_method=pass_all | |
4220 ;; | |
4221 | |
4222 hpux10.20* | hpux11*) | |
4223 lt_cv_file_magic_cmd=/usr/bin/file | |
4224 case $host_cpu in | |
4225 ia64*) | |
4226 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) sha
red object file - IA64' | |
4227 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
4228 ;; | |
4229 hppa*64*) | |
4230 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) sha
red object file - PA-RISC [0-9].[0-9]' | |
4231 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
4232 ;; | |
4233 *) | |
4234 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9])
shared library' | |
4235 lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
4236 ;; | |
4237 esac | |
4238 ;; | |
4239 | |
4240 interix3*) | |
4241 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
4242 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
4243 ;; | |
4244 | |
4245 irix5* | irix6* | nonstopux*) | |
4246 case $LD in | |
4247 *-32|*"-32 ") libmagic=32-bit;; | |
4248 *-n32|*"-n32 ") libmagic=N32;; | |
4249 *-64|*"-64 ") libmagic=64-bit;; | |
4250 *) libmagic=never-match;; | |
4251 esac | |
4252 lt_cv_deplibs_check_method=pass_all | |
4253 ;; | |
4254 | |
4255 # This must be Linux ELF. | |
4256 linux*) | |
4257 lt_cv_deplibs_check_method=pass_all | |
4258 ;; | |
4259 | |
4260 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | |
4261 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
4262 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pi
c\.a)$' | |
4263 else | |
4264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
4265 fi | |
4266 ;; | |
4267 | |
4268 newos6*) | |
4269 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|
dynamic lib)' | |
4270 lt_cv_file_magic_cmd=/usr/bin/file | |
4271 lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
4272 ;; | |
4273 | |
4274 nto-qnx*) | |
4275 lt_cv_deplibs_check_method=unknown | |
4276 ;; | |
4277 | |
4278 openbsd*) | |
4279 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_
cpu" = "openbsd2.8-powerpc"; then | |
4280 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.s
o|_pic\.a)$' | |
4281 else | |
4282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pi
c\.a)$' | |
4283 fi | |
4284 ;; | |
4285 | |
4286 osf3* | osf4* | osf5*) | |
4287 lt_cv_deplibs_check_method=pass_all | |
4288 ;; | |
4289 | |
4290 solaris*) | |
4291 lt_cv_deplibs_check_method=pass_all | |
4292 ;; | |
4293 | |
4294 sysv4 | sysv4.3*) | |
4295 case $host_vendor in | |
4296 motorola) | |
4297 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared ob
ject|dynamic lib) M[0-9][0-9]* Version [0-9]' | |
4298 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
4299 ;; | |
4300 ncr) | |
4301 lt_cv_deplibs_check_method=pass_all | |
4302 ;; | |
4303 sequent) | |
4304 lt_cv_file_magic_cmd='/bin/file' | |
4305 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared ob
ject|dynamic lib )' | |
4306 ;; | |
4307 sni) | |
4308 lt_cv_file_magic_cmd='/bin/file' | |
4309 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic li
b" | |
4310 lt_cv_file_magic_test_file=/lib/libc.so | |
4311 ;; | |
4312 siemens) | |
4313 lt_cv_deplibs_check_method=pass_all | |
4314 ;; | |
4315 pc) | |
4316 lt_cv_deplibs_check_method=pass_all | |
4317 ;; | |
4318 esac | |
4319 ;; | |
4320 | |
4321 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
4322 lt_cv_deplibs_check_method=pass_all | |
4323 ;; | |
4324 esac | |
4325 | |
4326 fi | |
4327 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
4328 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
4329 file_magic_cmd=$lt_cv_file_magic_cmd | |
4330 deplibs_check_method=$lt_cv_deplibs_check_method | |
4331 test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
4332 | |
4333 | |
4334 | |
4335 | |
4336 # If no C compiler was specified, use CC. | |
4337 LTCC=${LTCC-"$CC"} | |
4338 | |
4339 # If no C compiler flags were specified, use CFLAGS. | |
4340 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
4341 | |
4342 # Allow CC to be a program name with arguments. | |
4343 compiler=$CC | |
4344 | |
4345 | |
4346 # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
4347 if test "${enable_libtool_lock+set}" = set; then | |
4348 enableval="$enable_libtool_lock" | |
4349 | |
4350 fi; | |
4351 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
4352 | |
4353 # Some flags need to be propagated to the compiler or linker for good | |
4354 # libtool support. | |
4355 case $host in | |
4356 ia64-*-hpux*) | |
4357 # Find out which ABI we are using. | |
4358 echo 'int i;' > conftest.$ac_ext | |
4359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4360 (eval $ac_compile) 2>&5 | |
4361 ac_status=$? | |
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4363 (exit $ac_status); }; then | |
4364 case `/usr/bin/file conftest.$ac_objext` in | |
4365 *ELF-32*) | |
4366 HPUX_IA64_MODE="32" | |
4367 ;; | |
4368 *ELF-64*) | |
4369 HPUX_IA64_MODE="64" | |
4370 ;; | |
4371 esac | |
4372 fi | |
4373 rm -rf conftest* | |
4374 ;; | |
4375 *-*-irix6*) | |
4376 # Find out which ABI we are using. | |
4377 echo '#line 4377 "configure"' > conftest.$ac_ext | |
4378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4379 (eval $ac_compile) 2>&5 | |
4380 ac_status=$? | |
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4382 (exit $ac_status); }; then | |
4383 if test "$lt_cv_prog_gnu_ld" = yes; then | |
4384 case `/usr/bin/file conftest.$ac_objext` in | |
4385 *32-bit*) | |
4386 LD="${LD-ld} -melf32bsmip" | |
4387 ;; | |
4388 *N32*) | |
4389 LD="${LD-ld} -melf32bmipn32" | |
4390 ;; | |
4391 *64-bit*) | |
4392 LD="${LD-ld} -melf64bmip" | |
4393 ;; | |
4394 esac | |
4395 else | |
4396 case `/usr/bin/file conftest.$ac_objext` in | |
4397 *32-bit*) | |
4398 LD="${LD-ld} -32" | |
4399 ;; | |
4400 *N32*) | |
4401 LD="${LD-ld} -n32" | |
4402 ;; | |
4403 *64-bit*) | |
4404 LD="${LD-ld} -64" | |
4405 ;; | |
4406 esac | |
4407 fi | |
4408 fi | |
4409 rm -rf conftest* | |
4410 ;; | |
4411 | |
4412 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | |
4413 # Find out which ABI we are using. | |
4414 echo 'int i;' > conftest.$ac_ext | |
4415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4416 (eval $ac_compile) 2>&5 | |
4417 ac_status=$? | |
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4419 (exit $ac_status); }; then | |
4420 case `/usr/bin/file conftest.o` in | |
4421 *32-bit*) | |
4422 case $host in | |
4423 x86_64-*linux*) | |
4424 LD="${LD-ld} -m elf_i386" | |
4425 ;; | |
4426 ppc64-*linux*|powerpc64-*linux*) | |
4427 LD="${LD-ld} -m elf32ppclinux" | |
4428 ;; | |
4429 s390x-*linux*) | |
4430 LD="${LD-ld} -m elf_s390" | |
4431 ;; | |
4432 sparc64-*linux*) | |
4433 LD="${LD-ld} -m elf32_sparc" | |
4434 ;; | |
4435 esac | |
4436 ;; | |
4437 *64-bit*) | |
4438 case $host in | |
4439 x86_64-*linux*) | |
4440 LD="${LD-ld} -m elf_x86_64" | |
4441 ;; | |
4442 ppc*-*linux*|powerpc*-*linux*) | |
4443 LD="${LD-ld} -m elf64ppc" | |
4444 ;; | |
4445 s390*-*linux*) | |
4446 LD="${LD-ld} -m elf64_s390" | |
4447 ;; | |
4448 sparc*-*linux*) | |
4449 LD="${LD-ld} -m elf64_sparc" | |
4450 ;; | |
4451 esac | |
4452 ;; | |
4453 esac | |
4454 fi | |
4455 rm -rf conftest* | |
4456 ;; | |
4457 | |
4458 *-*-sco3.2v5*) | |
4459 # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
4460 SAVE_CFLAGS="$CFLAGS" | |
4461 CFLAGS="$CFLAGS -belf" | |
4462 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
4463 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
4464 if test "${lt_cv_cc_needs_belf+set}" = set; then | |
4465 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4466 else | |
4467 ac_ext=c | |
4468 ac_cpp='$CPP $CPPFLAGS' | |
4469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' | |
4471 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4472 | |
4473 cat >conftest.$ac_ext <<_ACEOF | |
4474 /* confdefs.h. */ | |
4475 _ACEOF | |
4476 cat confdefs.h >>conftest.$ac_ext | |
4477 cat >>conftest.$ac_ext <<_ACEOF | |
4478 /* end confdefs.h. */ | |
4479 | |
4480 int | |
4481 main () | |
4482 { | |
4483 | |
4484 ; | |
4485 return 0; | |
4486 } | |
4487 _ACEOF | |
4488 rm -f conftest.$ac_objext conftest$ac_exeext | |
4489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4490 (eval $ac_link) 2>conftest.er1 | |
4491 ac_status=$? | |
4492 grep -v '^ *+' conftest.er1 >conftest.err | |
4493 rm -f conftest.er1 | |
4494 cat conftest.err >&5 | |
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4496 (exit $ac_status); } && | |
4497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4499 (eval $ac_try) 2>&5 | |
4500 ac_status=$? | |
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4502 (exit $ac_status); }; } && | |
4503 { ac_try='test -s conftest$ac_exeext' | |
4504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4505 (eval $ac_try) 2>&5 | |
4506 ac_status=$? | |
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4508 (exit $ac_status); }; }; then | |
4509 lt_cv_cc_needs_belf=yes | |
4510 else | |
4511 echo "$as_me: failed program was:" >&5 | |
4512 sed 's/^/| /' conftest.$ac_ext >&5 | |
4513 | |
4514 lt_cv_cc_needs_belf=no | |
4515 fi | |
4516 rm -f conftest.err conftest.$ac_objext \ | |
4517 conftest$ac_exeext conftest.$ac_ext | |
4518 ac_ext=c | |
4519 ac_cpp='$CPP $CPPFLAGS' | |
4520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' | |
4522 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4523 | |
4524 fi | |
4525 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
4526 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
4527 if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
4528 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4529 CFLAGS="$SAVE_CFLAGS" | |
4530 fi | |
4531 ;; | |
4532 sparc*-*solaris*) | |
4533 # Find out which ABI we are using. | |
4534 echo 'int i;' > conftest.$ac_ext | |
4535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4536 (eval $ac_compile) 2>&5 | |
4537 ac_status=$? | |
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4539 (exit $ac_status); }; then | |
4540 case `/usr/bin/file conftest.o` in | |
4541 *64-bit*) | |
4542 case $lt_cv_prog_gnu_ld in | |
4543 yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
4544 *) LD="${LD-ld} -64" ;; | |
4545 esac | |
4546 ;; | |
4547 esac | |
4548 fi | |
4549 rm -rf conftest* | |
4550 ;; | |
4551 | |
4552 | |
4553 esac | |
4554 | |
4555 need_locks="$enable_libtool_lock" | |
4556 | |
4557 | |
4558 | |
4559 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
4560 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4561 if test "${ac_cv_header_stdc+set}" = set; then | |
4562 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4563 else | |
4564 cat >conftest.$ac_ext <<_ACEOF | |
4565 /* confdefs.h. */ | |
4566 _ACEOF | |
4567 cat confdefs.h >>conftest.$ac_ext | |
4568 cat >>conftest.$ac_ext <<_ACEOF | |
4569 /* end confdefs.h. */ | |
4570 #include <stdlib.h> | |
4571 #include <stdarg.h> | |
4572 #include <string.h> | |
4573 #include <float.h> | |
4574 | |
4575 int | |
4576 main () | |
4577 { | |
4578 | |
4579 ; | |
4580 return 0; | |
4581 } | |
4582 _ACEOF | |
4583 rm -f conftest.$ac_objext | |
4584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4585 (eval $ac_compile) 2>conftest.er1 | |
4586 ac_status=$? | |
4587 grep -v '^ *+' conftest.er1 >conftest.err | |
4588 rm -f conftest.er1 | |
4589 cat conftest.err >&5 | |
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4591 (exit $ac_status); } && | |
4592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4594 (eval $ac_try) 2>&5 | |
4595 ac_status=$? | |
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4597 (exit $ac_status); }; } && | |
4598 { ac_try='test -s conftest.$ac_objext' | |
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4600 (eval $ac_try) 2>&5 | |
4601 ac_status=$? | |
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4603 (exit $ac_status); }; }; then | |
4604 ac_cv_header_stdc=yes | |
4605 else | |
4606 echo "$as_me: failed program was:" >&5 | |
4607 sed 's/^/| /' conftest.$ac_ext >&5 | |
4608 | |
4609 ac_cv_header_stdc=no | |
4610 fi | |
4611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4612 | |
4613 if test $ac_cv_header_stdc = yes; then | |
4614 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4615 cat >conftest.$ac_ext <<_ACEOF | |
4616 /* confdefs.h. */ | |
4617 _ACEOF | |
4618 cat confdefs.h >>conftest.$ac_ext | |
4619 cat >>conftest.$ac_ext <<_ACEOF | |
4620 /* end confdefs.h. */ | |
4621 #include <string.h> | |
4622 | |
4623 _ACEOF | |
4624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4625 $EGREP "memchr" >/dev/null 2>&1; then | |
4626 : | |
4627 else | |
4628 ac_cv_header_stdc=no | |
4629 fi | |
4630 rm -f conftest* | |
4631 | |
4632 fi | |
4633 | |
4634 if test $ac_cv_header_stdc = yes; then | |
4635 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4636 cat >conftest.$ac_ext <<_ACEOF | |
4637 /* confdefs.h. */ | |
4638 _ACEOF | |
4639 cat confdefs.h >>conftest.$ac_ext | |
4640 cat >>conftest.$ac_ext <<_ACEOF | |
4641 /* end confdefs.h. */ | |
4642 #include <stdlib.h> | |
4643 | |
4644 _ACEOF | |
4645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4646 $EGREP "free" >/dev/null 2>&1; then | |
4647 : | |
4648 else | |
4649 ac_cv_header_stdc=no | |
4650 fi | |
4651 rm -f conftest* | |
4652 | |
4653 fi | |
4654 | |
4655 if test $ac_cv_header_stdc = yes; then | |
4656 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4657 if test "$cross_compiling" = yes; then | |
4658 : | |
4659 else | |
4660 cat >conftest.$ac_ext <<_ACEOF | |
4661 /* confdefs.h. */ | |
4662 _ACEOF | |
4663 cat confdefs.h >>conftest.$ac_ext | |
4664 cat >>conftest.$ac_ext <<_ACEOF | |
4665 /* end confdefs.h. */ | |
4666 #include <ctype.h> | |
4667 #if ((' ' & 0x0FF) == 0x020) | |
4668 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4669 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4670 #else | |
4671 # define ISLOWER(c) \ | |
4672 (('a' <= (c) && (c) <= 'i') \ | |
4673 || ('j' <= (c) && (c) <= 'r') \ | |
4674 || ('s' <= (c) && (c) <= 'z')) | |
4675 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4676 #endif | |
4677 | |
4678 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4679 int | |
4680 main () | |
4681 { | |
4682 int i; | |
4683 for (i = 0; i < 256; i++) | |
4684 if (XOR (islower (i), ISLOWER (i)) | |
4685 || toupper (i) != TOUPPER (i)) | |
4686 exit(2); | |
4687 exit (0); | |
4688 } | |
4689 _ACEOF | |
4690 rm -f conftest$ac_exeext | |
4691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4692 (eval $ac_link) 2>&5 | |
4693 ac_status=$? | |
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4697 (eval $ac_try) 2>&5 | |
4698 ac_status=$? | |
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4700 (exit $ac_status); }; }; then | |
4701 : | |
4702 else | |
4703 echo "$as_me: program exited with status $ac_status" >&5 | |
4704 echo "$as_me: failed program was:" >&5 | |
4705 sed 's/^/| /' conftest.$ac_ext >&5 | |
4706 | |
4707 ( exit $ac_status ) | |
4708 ac_cv_header_stdc=no | |
4709 fi | |
4710 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftes
t.$ac_ext | |
4711 fi | |
4712 fi | |
4713 fi | |
4714 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4715 echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4716 if test $ac_cv_header_stdc = yes; then | |
4717 | |
4718 cat >>confdefs.h <<\_ACEOF | |
4719 #define STDC_HEADERS 1 | |
4720 _ACEOF | |
4721 | |
4722 fi | |
4723 | |
4724 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4725 | |
4726 | |
4727 | |
4728 | |
4729 | |
4730 | |
4731 | |
4732 | |
4733 | |
4734 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4735 inttypes.h stdint.h unistd.h | |
4736 do | |
4737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4738 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4740 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4741 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4742 else | |
4743 cat >conftest.$ac_ext <<_ACEOF | |
4744 /* confdefs.h. */ | |
4745 _ACEOF | |
4746 cat confdefs.h >>conftest.$ac_ext | |
4747 cat >>conftest.$ac_ext <<_ACEOF | |
4748 /* end confdefs.h. */ | |
4749 $ac_includes_default | |
4750 | |
4751 #include <$ac_header> | |
4752 _ACEOF | |
4753 rm -f conftest.$ac_objext | |
4754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4755 (eval $ac_compile) 2>conftest.er1 | |
4756 ac_status=$? | |
4757 grep -v '^ *+' conftest.er1 >conftest.err | |
4758 rm -f conftest.er1 | |
4759 cat conftest.err >&5 | |
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4761 (exit $ac_status); } && | |
4762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4764 (eval $ac_try) 2>&5 | |
4765 ac_status=$? | |
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4767 (exit $ac_status); }; } && | |
4768 { ac_try='test -s conftest.$ac_objext' | |
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4770 (eval $ac_try) 2>&5 | |
4771 ac_status=$? | |
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4773 (exit $ac_status); }; }; then | |
4774 eval "$as_ac_Header=yes" | |
4775 else | |
4776 echo "$as_me: failed program was:" >&5 | |
4777 sed 's/^/| /' conftest.$ac_ext >&5 | |
4778 | |
4779 eval "$as_ac_Header=no" | |
4780 fi | |
4781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4782 fi | |
4783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4785 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4786 cat >>confdefs.h <<_ACEOF | |
4787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4788 _ACEOF | |
4789 | |
4790 fi | |
4791 | |
4792 done | |
4793 | |
4794 | |
4795 | |
4796 for ac_header in dlfcn.h | |
4797 do | |
4798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4799 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4800 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4802 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4803 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4804 fi | |
4805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4807 else | |
4808 # Is the header compilable? | |
4809 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4811 cat >conftest.$ac_ext <<_ACEOF | |
4812 /* confdefs.h. */ | |
4813 _ACEOF | |
4814 cat confdefs.h >>conftest.$ac_ext | |
4815 cat >>conftest.$ac_ext <<_ACEOF | |
4816 /* end confdefs.h. */ | |
4817 $ac_includes_default | |
4818 #include <$ac_header> | |
4819 _ACEOF | |
4820 rm -f conftest.$ac_objext | |
4821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4822 (eval $ac_compile) 2>conftest.er1 | |
4823 ac_status=$? | |
4824 grep -v '^ *+' conftest.er1 >conftest.err | |
4825 rm -f conftest.er1 | |
4826 cat conftest.err >&5 | |
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4828 (exit $ac_status); } && | |
4829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
4830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4831 (eval $ac_try) 2>&5 | |
4832 ac_status=$? | |
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4834 (exit $ac_status); }; } && | |
4835 { ac_try='test -s conftest.$ac_objext' | |
4836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4837 (eval $ac_try) 2>&5 | |
4838 ac_status=$? | |
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4840 (exit $ac_status); }; }; then | |
4841 ac_header_compiler=yes | |
4842 else | |
4843 echo "$as_me: failed program was:" >&5 | |
4844 sed 's/^/| /' conftest.$ac_ext >&5 | |
4845 | |
4846 ac_header_compiler=no | |
4847 fi | |
4848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4849 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4850 echo "${ECHO_T}$ac_header_compiler" >&6 | |
4851 | |
4852 # Is the header present? | |
4853 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4855 cat >conftest.$ac_ext <<_ACEOF | |
4856 /* confdefs.h. */ | |
4857 _ACEOF | |
4858 cat confdefs.h >>conftest.$ac_ext | |
4859 cat >>conftest.$ac_ext <<_ACEOF | |
4860 /* end confdefs.h. */ | |
4861 #include <$ac_header> | |
4862 _ACEOF | |
4863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4865 ac_status=$? | |
4866 grep -v '^ *+' conftest.er1 >conftest.err | |
4867 rm -f conftest.er1 | |
4868 cat conftest.err >&5 | |
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4870 (exit $ac_status); } >/dev/null; then | |
4871 if test -s conftest.err; then | |
4872 ac_cpp_err=$ac_c_preproc_warn_flag | |
4873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4874 else | |
4875 ac_cpp_err= | |
4876 fi | |
4877 else | |
4878 ac_cpp_err=yes | |
4879 fi | |
4880 if test -z "$ac_cpp_err"; then | |
4881 ac_header_preproc=yes | |
4882 else | |
4883 echo "$as_me: failed program was:" >&5 | |
4884 sed 's/^/| /' conftest.$ac_ext >&5 | |
4885 | |
4886 ac_header_preproc=no | |
4887 fi | |
4888 rm -f conftest.err conftest.$ac_ext | |
4889 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4890 echo "${ECHO_T}$ac_header_preproc" >&6 | |
4891 | |
4892 # So? What about this header? | |
4893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4894 yes:no: ) | |
4895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejec
ted by the preprocessor!" >&5 | |
4896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the pre
processor!" >&2;} | |
4897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's
result" >&5 | |
4898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4899 ac_header_preproc=yes | |
4900 ;; | |
4901 no:yes:* ) | |
4902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled"
>&5 | |
4903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequis
ite headers?" >&5 | |
4905 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?"
>&2;} | |
4906 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation"
>&5 | |
4907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4908 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Canno
t Be Compiled\"" >&5 | |
4909 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\
"" >&2;} | |
4910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocesso
r's result" >&5 | |
4911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
2;} | |
4912 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler wil
l take precedence" >&5 | |
4913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precede
nce" >&2;} | |
4914 ( | |
4915 cat <<\_ASBOX | |
4916 ## ------------------------------------ ## | |
4917 ## Report this to opensource@google.com ## | |
4918 ## ------------------------------------ ## | |
4919 _ASBOX | |
4920 ) | | |
4921 sed "s/^/$as_me: WARNING: /" >&2 | |
4922 ;; | |
4923 esac | |
4924 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4926 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4927 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4928 else | |
4929 eval "$as_ac_Header=\$ac_header_preproc" | |
4930 fi | |
4931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4933 | |
4934 fi | |
4935 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4936 cat >>confdefs.h <<_ACEOF | |
4937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4938 _ACEOF | |
4939 | |
4940 fi | |
4941 | |
4942 done | |
4943 | |
4944 | |
4945 | |
4946 if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
4947 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
4948 (test "X$CXX" != "Xg++"))) ; then | |
4949 ac_ext=cc | |
4950 ac_cpp='$CXXCPP $CPPFLAGS' | |
4951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex
t $LIBS >&5' | |
4953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4954 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
4955 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
4956 if test -z "$CXXCPP"; then | |
4957 if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
4958 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4959 else | |
4960 # Double quotes because CXXCPP needs to be expanded | |
4961 for CXXCPP in "$CXX -E" "/lib/cpp" | |
4962 do | |
4963 ac_preproc_ok=false | |
4964 for ac_cxx_preproc_warn_flag in '' yes | |
4965 do | |
4966 # Use a header file that comes with gcc, so configuring glibc | |
4967 # with a fresh cross-compiler works. | |
4968 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4969 # <limits.h> exists even on freestanding compilers. | |
4970 # On the NeXT, cc -E runs the code through the compiler's parser, | |
4971 # not just through cpp. "Syntax error" is here to catch this case. | |
4972 cat >conftest.$ac_ext <<_ACEOF | |
4973 /* confdefs.h. */ | |
4974 _ACEOF | |
4975 cat confdefs.h >>conftest.$ac_ext | |
4976 cat >>conftest.$ac_ext <<_ACEOF | |
4977 /* end confdefs.h. */ | |
4978 #ifdef __STDC__ | |
4979 # include <limits.h> | |
4980 #else | |
4981 # include <assert.h> | |
4982 #endif | |
4983 Syntax error | |
4984 _ACEOF | |
4985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4987 ac_status=$? | |
4988 grep -v '^ *+' conftest.er1 >conftest.err | |
4989 rm -f conftest.er1 | |
4990 cat conftest.err >&5 | |
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4992 (exit $ac_status); } >/dev/null; then | |
4993 if test -s conftest.err; then | |
4994 ac_cpp_err=$ac_cxx_preproc_warn_flag | |
4995 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
4996 else | |
4997 ac_cpp_err= | |
4998 fi | |
4999 else | |
5000 ac_cpp_err=yes | |
5001 fi | |
5002 if test -z "$ac_cpp_err"; then | |
5003 : | |
5004 else | |
5005 echo "$as_me: failed program was:" >&5 | |
5006 sed 's/^/| /' conftest.$ac_ext >&5 | |
5007 | |
5008 # Broken: fails on valid input. | |
5009 continue | |
5010 fi | |
5011 rm -f conftest.err conftest.$ac_ext | |
5012 | |
5013 # OK, works on sane cases. Now check whether non-existent headers | |
5014 # can be detected and how. | |
5015 cat >conftest.$ac_ext <<_ACEOF | |
5016 /* confdefs.h. */ | |
5017 _ACEOF | |
5018 cat confdefs.h >>conftest.$ac_ext | |
5019 cat >>conftest.$ac_ext <<_ACEOF | |
5020 /* end confdefs.h. */ | |
5021 #include <ac_nonexistent.h> | |
5022 _ACEOF | |
5023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5025 ac_status=$? | |
5026 grep -v '^ *+' conftest.er1 >conftest.err | |
5027 rm -f conftest.er1 | |
5028 cat conftest.err >&5 | |
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5030 (exit $ac_status); } >/dev/null; then | |
5031 if test -s conftest.err; then | |
5032 ac_cpp_err=$ac_cxx_preproc_warn_flag | |
5033 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
5034 else | |
5035 ac_cpp_err= | |
5036 fi | |
5037 else | |
5038 ac_cpp_err=yes | |
5039 fi | |
5040 if test -z "$ac_cpp_err"; then | |
5041 # Broken: success on invalid input. | |
5042 continue | |
5043 else | |
5044 echo "$as_me: failed program was:" >&5 | |
5045 sed 's/^/| /' conftest.$ac_ext >&5 | |
5046 | |
5047 # Passes both tests. | |
5048 ac_preproc_ok=: | |
5049 break | |
5050 fi | |
5051 rm -f conftest.err conftest.$ac_ext | |
5052 | |
5053 done | |
5054 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5055 rm -f conftest.err conftest.$ac_ext | |
5056 if $ac_preproc_ok; then | |
5057 break | |
5058 fi | |
5059 | |
5060 done | |
5061 ac_cv_prog_CXXCPP=$CXXCPP | |
5062 | |
5063 fi | |
5064 CXXCPP=$ac_cv_prog_CXXCPP | |
5065 else | |
5066 ac_cv_prog_CXXCPP=$CXXCPP | |
5067 fi | |
5068 echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
5069 echo "${ECHO_T}$CXXCPP" >&6 | |
5070 ac_preproc_ok=false | |
5071 for ac_cxx_preproc_warn_flag in '' yes | |
5072 do | |
5073 # Use a header file that comes with gcc, so configuring glibc | |
5074 # with a fresh cross-compiler works. | |
5075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5076 # <limits.h> exists even on freestanding compilers. | |
5077 # On the NeXT, cc -E runs the code through the compiler's parser, | |
5078 # not just through cpp. "Syntax error" is here to catch this case. | |
5079 cat >conftest.$ac_ext <<_ACEOF | |
5080 /* confdefs.h. */ | |
5081 _ACEOF | |
5082 cat confdefs.h >>conftest.$ac_ext | |
5083 cat >>conftest.$ac_ext <<_ACEOF | |
5084 /* end confdefs.h. */ | |
5085 #ifdef __STDC__ | |
5086 # include <limits.h> | |
5087 #else | |
5088 # include <assert.h> | |
5089 #endif | |
5090 Syntax error | |
5091 _ACEOF | |
5092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5094 ac_status=$? | |
5095 grep -v '^ *+' conftest.er1 >conftest.err | |
5096 rm -f conftest.er1 | |
5097 cat conftest.err >&5 | |
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5099 (exit $ac_status); } >/dev/null; then | |
5100 if test -s conftest.err; then | |
5101 ac_cpp_err=$ac_cxx_preproc_warn_flag | |
5102 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
5103 else | |
5104 ac_cpp_err= | |
5105 fi | |
5106 else | |
5107 ac_cpp_err=yes | |
5108 fi | |
5109 if test -z "$ac_cpp_err"; then | |
5110 : | |
5111 else | |
5112 echo "$as_me: failed program was:" >&5 | |
5113 sed 's/^/| /' conftest.$ac_ext >&5 | |
5114 | |
5115 # Broken: fails on valid input. | |
5116 continue | |
5117 fi | |
5118 rm -f conftest.err conftest.$ac_ext | |
5119 | |
5120 # OK, works on sane cases. Now check whether non-existent headers | |
5121 # can be detected and how. | |
5122 cat >conftest.$ac_ext <<_ACEOF | |
5123 /* confdefs.h. */ | |
5124 _ACEOF | |
5125 cat confdefs.h >>conftest.$ac_ext | |
5126 cat >>conftest.$ac_ext <<_ACEOF | |
5127 /* end confdefs.h. */ | |
5128 #include <ac_nonexistent.h> | |
5129 _ACEOF | |
5130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5132 ac_status=$? | |
5133 grep -v '^ *+' conftest.er1 >conftest.err | |
5134 rm -f conftest.er1 | |
5135 cat conftest.err >&5 | |
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5137 (exit $ac_status); } >/dev/null; then | |
5138 if test -s conftest.err; then | |
5139 ac_cpp_err=$ac_cxx_preproc_warn_flag | |
5140 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
5141 else | |
5142 ac_cpp_err= | |
5143 fi | |
5144 else | |
5145 ac_cpp_err=yes | |
5146 fi | |
5147 if test -z "$ac_cpp_err"; then | |
5148 # Broken: success on invalid input. | |
5149 continue | |
5150 else | |
5151 echo "$as_me: failed program was:" >&5 | |
5152 sed 's/^/| /' conftest.$ac_ext >&5 | |
5153 | |
5154 # Passes both tests. | |
5155 ac_preproc_ok=: | |
5156 break | |
5157 fi | |
5158 rm -f conftest.err conftest.$ac_ext | |
5159 | |
5160 done | |
5161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5162 rm -f conftest.err conftest.$ac_ext | |
5163 if $ac_preproc_ok; then | |
5164 : | |
5165 else | |
5166 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity che
ck | |
5167 See \`config.log' for more details." >&5 | |
5168 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
5169 See \`config.log' for more details." >&2;} | |
5170 { (exit 1); exit 1; }; } | |
5171 fi | |
5172 | |
5173 ac_ext=cc | |
5174 ac_cpp='$CXXCPP $CPPFLAGS' | |
5175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex
t $LIBS >&5' | |
5177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5178 | |
5179 fi | |
5180 | |
5181 | |
5182 ac_ext=f | |
5183 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
5184 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5185 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
5186 if test -n "$ac_tool_prefix"; then | |
5187 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f
95 fort xlf95 ifc efc pgf95 lf95 gfortran | |
5188 do | |
5189 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra
m name with args. | |
5190 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5191 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5193 if test "${ac_cv_prog_F77+set}" = set; then | |
5194 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5195 else | |
5196 if test -n "$F77"; then | |
5197 ac_cv_prog_F77="$F77" # Let the user override the test. | |
5198 else | |
5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5200 for as_dir in $PATH | |
5201 do | |
5202 IFS=$as_save_IFS | |
5203 test -z "$as_dir" && as_dir=. | |
5204 for ac_exec_ext in '' $ac_executable_extensions; do | |
5205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5206 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | |
5207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5208 break 2 | |
5209 fi | |
5210 done | |
5211 done | |
5212 | |
5213 fi | |
5214 fi | |
5215 F77=$ac_cv_prog_F77 | |
5216 if test -n "$F77"; then | |
5217 echo "$as_me:$LINENO: result: $F77" >&5 | |
5218 echo "${ECHO_T}$F77" >&6 | |
5219 else | |
5220 echo "$as_me:$LINENO: result: no" >&5 | |
5221 echo "${ECHO_T}no" >&6 | |
5222 fi | |
5223 | |
5224 test -n "$F77" && break | |
5225 done | |
5226 fi | |
5227 if test -z "$F77"; then | |
5228 ac_ct_F77=$F77 | |
5229 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f
95 fort xlf95 ifc efc pgf95 lf95 gfortran | |
5230 do | |
5231 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5232 set dummy $ac_prog; ac_word=$2 | |
5233 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5235 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then | |
5236 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5237 else | |
5238 if test -n "$ac_ct_F77"; then | |
5239 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | |
5240 else | |
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5242 for as_dir in $PATH | |
5243 do | |
5244 IFS=$as_save_IFS | |
5245 test -z "$as_dir" && as_dir=. | |
5246 for ac_exec_ext in '' $ac_executable_extensions; do | |
5247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5248 ac_cv_prog_ac_ct_F77="$ac_prog" | |
5249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5250 break 2 | |
5251 fi | |
5252 done | |
5253 done | |
5254 | |
5255 fi | |
5256 fi | |
5257 ac_ct_F77=$ac_cv_prog_ac_ct_F77 | |
5258 if test -n "$ac_ct_F77"; then | |
5259 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 | |
5260 echo "${ECHO_T}$ac_ct_F77" >&6 | |
5261 else | |
5262 echo "$as_me:$LINENO: result: no" >&5 | |
5263 echo "${ECHO_T}no" >&6 | |
5264 fi | |
5265 | |
5266 test -n "$ac_ct_F77" && break | |
5267 done | |
5268 | |
5269 F77=$ac_ct_F77 | |
5270 fi | |
5271 | |
5272 | |
5273 # Provide some information about the compiler. | |
5274 echo "$as_me:5274:" \ | |
5275 "checking for Fortran 77 compiler version" >&5 | |
5276 ac_compiler=`set X $ac_compile; echo $2` | |
5277 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
5278 (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
5279 ac_status=$? | |
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5281 (exit $ac_status); } | |
5282 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
5283 (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
5284 ac_status=$? | |
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5286 (exit $ac_status); } | |
5287 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
5288 (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
5289 ac_status=$? | |
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5291 (exit $ac_status); } | |
5292 rm -f a.out | |
5293 | |
5294 # If we don't use `.F' as extension, the preprocessor is not run on the | |
5295 # input file. (Note that this only needs to work for GNU compilers.) | |
5296 ac_save_ext=$ac_ext | |
5297 ac_ext=F | |
5298 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler"
>&5 | |
5299 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO
_C" >&6 | |
5300 if test "${ac_cv_f77_compiler_gnu+set}" = set; then | |
5301 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5302 else | |
5303 cat >conftest.$ac_ext <<_ACEOF | |
5304 program main | |
5305 #ifndef __GNUC__ | |
5306 choke me | |
5307 #endif | |
5308 | |
5309 end | |
5310 _ACEOF | |
5311 rm -f conftest.$ac_objext | |
5312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5313 (eval $ac_compile) 2>conftest.er1 | |
5314 ac_status=$? | |
5315 grep -v '^ *+' conftest.er1 >conftest.err | |
5316 rm -f conftest.er1 | |
5317 cat conftest.err >&5 | |
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5319 (exit $ac_status); } && | |
5320 { ac_try='test -z "$ac_f77_werror_flag" || test
! -s conftest.err' | |
5321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5322 (eval $ac_try) 2>&5 | |
5323 ac_status=$? | |
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5325 (exit $ac_status); }; } && | |
5326 { ac_try='test -s conftest.$ac_objext' | |
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5328 (eval $ac_try) 2>&5 | |
5329 ac_status=$? | |
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5331 (exit $ac_status); }; }; then | |
5332 ac_compiler_gnu=yes | |
5333 else | |
5334 echo "$as_me: failed program was:" >&5 | |
5335 sed 's/^/| /' conftest.$ac_ext >&5 | |
5336 | |
5337 ac_compiler_gnu=no | |
5338 fi | |
5339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5340 ac_cv_f77_compiler_gnu=$ac_compiler_gnu | |
5341 | |
5342 fi | |
5343 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 | |
5344 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 | |
5345 ac_ext=$ac_save_ext | |
5346 ac_test_FFLAGS=${FFLAGS+set} | |
5347 ac_save_FFLAGS=$FFLAGS | |
5348 FFLAGS= | |
5349 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 | |
5350 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 | |
5351 if test "${ac_cv_prog_f77_g+set}" = set; then | |
5352 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5353 else | |
5354 FFLAGS=-g | |
5355 cat >conftest.$ac_ext <<_ACEOF | |
5356 program main | |
5357 | |
5358 end | |
5359 _ACEOF | |
5360 rm -f conftest.$ac_objext | |
5361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5362 (eval $ac_compile) 2>conftest.er1 | |
5363 ac_status=$? | |
5364 grep -v '^ *+' conftest.er1 >conftest.err | |
5365 rm -f conftest.er1 | |
5366 cat conftest.err >&5 | |
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5368 (exit $ac_status); } && | |
5369 { ac_try='test -z "$ac_f77_werror_flag" || test
! -s conftest.err' | |
5370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5371 (eval $ac_try) 2>&5 | |
5372 ac_status=$? | |
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5374 (exit $ac_status); }; } && | |
5375 { ac_try='test -s conftest.$ac_objext' | |
5376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5377 (eval $ac_try) 2>&5 | |
5378 ac_status=$? | |
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5380 (exit $ac_status); }; }; then | |
5381 ac_cv_prog_f77_g=yes | |
5382 else | |
5383 echo "$as_me: failed program was:" >&5 | |
5384 sed 's/^/| /' conftest.$ac_ext >&5 | |
5385 | |
5386 ac_cv_prog_f77_g=no | |
5387 fi | |
5388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5389 | |
5390 fi | |
5391 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 | |
5392 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 | |
5393 if test "$ac_test_FFLAGS" = set; then | |
5394 FFLAGS=$ac_save_FFLAGS | |
5395 elif test $ac_cv_prog_f77_g = yes; then | |
5396 if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
5397 FFLAGS="-g -O2" | |
5398 else | |
5399 FFLAGS="-g" | |
5400 fi | |
5401 else | |
5402 if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
5403 FFLAGS="-O2" | |
5404 else | |
5405 FFLAGS= | |
5406 fi | |
5407 fi | |
5408 | |
5409 G77=`test $ac_compiler_gnu = yes && echo yes` | |
5410 ac_ext=c | |
5411 ac_cpp='$CPP $CPPFLAGS' | |
5412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' | |
5414 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5415 | |
5416 | |
5417 | |
5418 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
5419 | |
5420 # find the maximum length of command line arguments | |
5421 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
5422 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C"
>&6 | |
5423 if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
5424 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5425 else | |
5426 i=0 | |
5427 teststring="ABCD" | |
5428 | |
5429 case $build_os in | |
5430 msdosdjgpp*) | |
5431 # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5432 # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5433 # during glob expansion). Even if it were fixed, the result of this | |
5434 # check would be larger than it should be. | |
5435 lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5436 ;; | |
5437 | |
5438 gnu*) | |
5439 # Under GNU Hurd, this test is not required because there is | |
5440 # no limit to the length of command line arguments. | |
5441 # Libtool will interpret -1 as no limit whatsoever | |
5442 lt_cv_sys_max_cmd_len=-1; | |
5443 ;; | |
5444 | |
5445 cygwin* | mingw*) | |
5446 # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5447 # about 5 minutes as the teststring grows exponentially. | |
5448 # Worse, since 9x/ME are not pre-emptively multitasking, | |
5449 # you end up with a "frozen" computer, even though with patience | |
5450 # the test eventually succeeds (with a max line length of 256k). | |
5451 # Instead, let's just punt: use the minimum linelength reported by | |
5452 # all of the supported platforms: 8192 (on NT/2K/XP). | |
5453 lt_cv_sys_max_cmd_len=8192; | |
5454 ;; | |
5455 | |
5456 amigaos*) | |
5457 # On AmigaOS with pdksh, this test takes hours, literally. | |
5458 # So we just punt and use a minimum line length of 8192. | |
5459 lt_cv_sys_max_cmd_len=8192; | |
5460 ;; | |
5461 | |
5462 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5463 # This has been around since 386BSD, at least. Likely further. | |
5464 if test -x /sbin/sysctl; then | |
5465 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5466 elif test -x /usr/sbin/sysctl; then | |
5467 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5468 else | |
5469 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5470 fi | |
5471 # And add a safety zone | |
5472 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5473 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5474 ;; | |
5475 | |
5476 interix*) | |
5477 # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5478 lt_cv_sys_max_cmd_len=196608 | |
5479 ;; | |
5480 | |
5481 osf*) | |
5482 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5483 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5484 # nice to cause kernel panics so lets avoid the loop below. | |
5485 # First set a reasonable default. | |
5486 lt_cv_sys_max_cmd_len=16384 | |
5487 # | |
5488 if test -x /sbin/sysconfig; then | |
5489 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5490 *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5491 esac | |
5492 fi | |
5493 ;; | |
5494 sco3.2v5*) | |
5495 lt_cv_sys_max_cmd_len=102400 | |
5496 ;; | |
5497 sysv5* | sco5v6* | sysv4.2uw2*) | |
5498 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5499 if test -n "$kargmax"; then | |
5500 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5501 else | |
5502 lt_cv_sys_max_cmd_len=32768 | |
5503 fi | |
5504 ;; | |
5505 *) | |
5506 # If test is not a shell built-in, we'll probably end up computing a | |
5507 # maximum length that is only half of the actual maximum length, but | |
5508 # we can't tell. | |
5509 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5510 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ | |
5511 = "XX$teststring") >/dev/null 2>&1 && | |
5512 new_result=`expr "X$teststring" : ".*" 2>&1` && | |
5513 lt_cv_sys_max_cmd_len=$new_result && | |
5514 test $i != 17 # 1/2 MB should be enough | |
5515 do | |
5516 i=`expr $i + 1` | |
5517 teststring=$teststring$teststring | |
5518 done | |
5519 teststring= | |
5520 # Add a significant safety factor because C++ compilers can tack on massive | |
5521 # amounts of additional arguments before passing them to the linker. | |
5522 # It appears as though 1/2 is a usable value. | |
5523 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5524 ;; | |
5525 esac | |
5526 | |
5527 fi | |
5528 | |
5529 if test -n $lt_cv_sys_max_cmd_len ; then | |
5530 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
5531 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
5532 else | |
5533 echo "$as_me:$LINENO: result: none" >&5 | |
5534 echo "${ECHO_T}none" >&6 | |
5535 fi | |
5536 | |
5537 | |
5538 | |
5539 | |
5540 # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5541 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object
" >&5 | |
5542 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECH
O_C" >&6 | |
5543 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
5544 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5545 else | |
5546 | |
5547 # These are sane defaults that work on at least a few old systems. | |
5548 # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5549 | |
5550 # Character class describing NM global symbol codes. | |
5551 symcode='[BCDEGRST]' | |
5552 | |
5553 # Regexp to match symbols that can be accessed directly from C. | |
5554 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5555 | |
5556 # Transform an extracted symbol line into a proper C declaration | |
5557 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | |
5558 | |
5559 # Transform an extracted symbol line into symbol name and symbol address | |
5560 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'" | |
5561 | |
5562 # Define system-specific variables. | |
5563 case $host_os in | |
5564 aix*) | |
5565 symcode='[BCDT]' | |
5566 ;; | |
5567 cygwin* | mingw* | pw32*) | |
5568 symcode='[ABCDGISTW]' | |
5569 ;; | |
5570 hpux*) # Its linker distinguishes data from code symbols | |
5571 if test "$host_cpu" = ia64; then | |
5572 symcode='[ABCDEGRST]' | |
5573 fi | |
5574 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/
p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5575 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'" | |
5576 ;; | |
5577 linux*) | |
5578 if test "$host_cpu" = ia64; then | |
5579 symcode='[ABCDGIRSTW]' | |
5580 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1()
;/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5581 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\
\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_p
tr) \&\2},/p'" | |
5582 fi | |
5583 ;; | |
5584 irix* | nonstopux*) | |
5585 symcode='[BCDEGRST]' | |
5586 ;; | |
5587 osf*) | |
5588 symcode='[BCDEGQRST]' | |
5589 ;; | |
5590 solaris*) | |
5591 symcode='[BDRT]' | |
5592 ;; | |
5593 sco3.2v5*) | |
5594 symcode='[DT]' | |
5595 ;; | |
5596 sysv4.2uw2*) | |
5597 symcode='[DT]' | |
5598 ;; | |
5599 sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5600 symcode='[ABDT]' | |
5601 ;; | |
5602 sysv4) | |
5603 symcode='[DFNSTU]' | |
5604 ;; | |
5605 esac | |
5606 | |
5607 # Handle CRLF in mingw tool chain | |
5608 opt_cr= | |
5609 case $build_os in | |
5610 mingw*) | |
5611 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5612 ;; | |
5613 esac | |
5614 | |
5615 # If we're using GNU nm, then use its standard symbol codes. | |
5616 case `$NM -V 2>&1` in | |
5617 *GNU* | *'with BFD'*) | |
5618 symcode='[ABCDGIRSTW]' ;; | |
5619 esac | |
5620 | |
5621 # Try without a prefix undercore, then with it. | |
5622 for ac_symprfx in "" "_"; do | |
5623 | |
5624 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5625 symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5626 | |
5627 # Write the raw and C identifiers. | |
5628 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[
][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5629 | |
5630 # Check to see that the pipe works correctly. | |
5631 pipe_works=no | |
5632 | |
5633 rm -f conftest* | |
5634 cat > conftest.$ac_ext <<EOF | |
5635 #ifdef __cplusplus | |
5636 extern "C" { | |
5637 #endif | |
5638 char nm_test_var; | |
5639 void nm_test_func(){} | |
5640 #ifdef __cplusplus | |
5641 } | |
5642 #endif | |
5643 int main(){nm_test_var='a';nm_test_func();return(0);} | |
5644 EOF | |
5645 | |
5646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5647 (eval $ac_compile) 2>&5 | |
5648 ac_status=$? | |
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5650 (exit $ac_status); }; then | |
5651 # Now try to grab the symbols. | |
5652 nlist=conftest.nm | |
5653 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_glo
bal_symbol_pipe \> $nlist\"") >&5 | |
5654 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5655 ac_status=$? | |
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5657 (exit $ac_status); } && test -s "$nlist"; then | |
5658 # Try sorting and uniquifying the output. | |
5659 if sort "$nlist" | uniq > "$nlist"T; then | |
5660 mv -f "$nlist"T "$nlist" | |
5661 else | |
5662 rm -f "$nlist"T | |
5663 fi | |
5664 | |
5665 # Make sure that we snagged all the symbols we need. | |
5666 if grep ' nm_test_var$' "$nlist" >/dev/null; then | |
5667 if grep ' nm_test_func$' "$nlist" >/dev/null; then | |
5668 cat <<EOF > conftest.$ac_ext | |
5669 #ifdef __cplusplus | |
5670 extern "C" { | |
5671 #endif | |
5672 | |
5673 EOF | |
5674 # Now generate the symbol file. | |
5675 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >>
conftest.$ac_ext' | |
5676 | |
5677 cat <<EOF >> conftest.$ac_ext | |
5678 #if defined (__STDC__) && __STDC__ | |
5679 # define lt_ptr_t void * | |
5680 #else | |
5681 # define lt_ptr_t char * | |
5682 # define const | |
5683 #endif | |
5684 | |
5685 /* The mapping between symbol names and symbols. */ | |
5686 const struct { | |
5687 const char *name; | |
5688 lt_ptr_t address; | |
5689 } | |
5690 lt_preloaded_symbols[] = | |
5691 { | |
5692 EOF | |
5693 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},
/" < "$nlist" | grep -v main >> conftest.$ac_ext | |
5694 cat <<\EOF >> conftest.$ac_ext | |
5695 {0, (lt_ptr_t) 0} | |
5696 }; | |
5697 | |
5698 #ifdef __cplusplus | |
5699 } | |
5700 #endif | |
5701 EOF | |
5702 # Now try linking the two files. | |
5703 mv conftest.$ac_objext conftstm.$ac_objext | |
5704 lt_save_LIBS="$LIBS" | |
5705 lt_save_CFLAGS="$CFLAGS" | |
5706 LIBS="conftstm.$ac_objext" | |
5707 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5709 (eval $ac_link) 2>&5 | |
5710 ac_status=$? | |
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5712 (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
5713 pipe_works=yes | |
5714 fi | |
5715 LIBS="$lt_save_LIBS" | |
5716 CFLAGS="$lt_save_CFLAGS" | |
5717 else | |
5718 echo "cannot find nm_test_func in $nlist" >&5 | |
5719 fi | |
5720 else | |
5721 echo "cannot find nm_test_var in $nlist" >&5 | |
5722 fi | |
5723 else | |
5724 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5725 fi | |
5726 else | |
5727 echo "$progname: failed program was:" >&5 | |
5728 cat conftest.$ac_ext >&5 | |
5729 fi | |
5730 rm -f conftest* conftst* | |
5731 | |
5732 # Do not use the global_symbol_pipe unless it works. | |
5733 if test "$pipe_works" = yes; then | |
5734 break | |
5735 else | |
5736 lt_cv_sys_global_symbol_pipe= | |
5737 fi | |
5738 done | |
5739 | |
5740 fi | |
5741 | |
5742 if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5743 lt_cv_sys_global_symbol_to_cdecl= | |
5744 fi | |
5745 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; the
n | |
5746 echo "$as_me:$LINENO: result: failed" >&5 | |
5747 echo "${ECHO_T}failed" >&6 | |
5748 else | |
5749 echo "$as_me:$LINENO: result: ok" >&5 | |
5750 echo "${ECHO_T}ok" >&6 | |
5751 fi | |
5752 | |
5753 echo "$as_me:$LINENO: checking for objdir" >&5 | |
5754 echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | |
5755 if test "${lt_cv_objdir+set}" = set; then | |
5756 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5757 else | |
5758 rm -f .libs 2>/dev/null | |
5759 mkdir .libs 2>/dev/null | |
5760 if test -d .libs; then | |
5761 lt_cv_objdir=.libs | |
5762 else | |
5763 # MS-DOS does not allow filenames that begin with a dot. | |
5764 lt_cv_objdir=_libs | |
5765 fi | |
5766 rmdir .libs 2>/dev/null | |
5767 fi | |
5768 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
5769 echo "${ECHO_T}$lt_cv_objdir" >&6 | |
5770 objdir=$lt_cv_objdir | |
5771 | |
5772 | |
5773 | |
5774 | |
5775 | |
5776 case $host_os in | |
5777 aix3*) | |
5778 # AIX sometimes has problems with the GCC collect2 program. For some | |
5779 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
5780 # vanish in a puff of smoke. | |
5781 if test "X${COLLECT_NAMES+set}" != Xset; then | |
5782 COLLECT_NAMES= | |
5783 export COLLECT_NAMES | |
5784 fi | |
5785 ;; | |
5786 esac | |
5787 | |
5788 # Sed substitution that helps us do robust quoting. It backslashifies | |
5789 # metacharacters that are still active within double-quoted strings. | |
5790 Xsed='sed -e 1s/^X//' | |
5791 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | |
5792 | |
5793 # Same as above, but do not quote variable references. | |
5794 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | |
5795 | |
5796 # Sed substitution to delay expansion of an escaped shell variable in a | |
5797 # double_quote_subst'ed string. | |
5798 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5799 | |
5800 # Sed substitution to avoid accidental globbing in evaled expressions | |
5801 no_glob_subst='s/\*/\\\*/g' | |
5802 | |
5803 # Constants: | |
5804 rm="rm -f" | |
5805 | |
5806 # Global variables: | |
5807 default_ofile=libtool | |
5808 can_build_shared=yes | |
5809 | |
5810 # All known linkers require a `.a' archive for static linking (except MSVC, | |
5811 # which needs '.lib'). | |
5812 libext=a | |
5813 ltmain="$ac_aux_dir/ltmain.sh" | |
5814 ofile="$default_ofile" | |
5815 with_gnu_ld="$lt_cv_prog_gnu_ld" | |
5816 | |
5817 if test -n "$ac_tool_prefix"; then | |
5818 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name
with args. | |
5819 set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5820 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5822 if test "${ac_cv_prog_AR+set}" = set; then | |
5823 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5824 else | |
5825 if test -n "$AR"; then | |
5826 ac_cv_prog_AR="$AR" # Let the user override the test. | |
5827 else | |
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5829 for as_dir in $PATH | |
5830 do | |
5831 IFS=$as_save_IFS | |
5832 test -z "$as_dir" && as_dir=. | |
5833 for ac_exec_ext in '' $ac_executable_extensions; do | |
5834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5835 ac_cv_prog_AR="${ac_tool_prefix}ar" | |
5836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5837 break 2 | |
5838 fi | |
5839 done | |
5840 done | |
5841 | |
5842 fi | |
5843 fi | |
5844 AR=$ac_cv_prog_AR | |
5845 if test -n "$AR"; then | |
5846 echo "$as_me:$LINENO: result: $AR" >&5 | |
5847 echo "${ECHO_T}$AR" >&6 | |
5848 else | |
5849 echo "$as_me:$LINENO: result: no" >&5 | |
5850 echo "${ECHO_T}no" >&6 | |
5851 fi | |
5852 | |
5853 fi | |
5854 if test -z "$ac_cv_prog_AR"; then | |
5855 ac_ct_AR=$AR | |
5856 # Extract the first word of "ar", so it can be a program name with args. | |
5857 set dummy ar; ac_word=$2 | |
5858 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5860 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
5861 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5862 else | |
5863 if test -n "$ac_ct_AR"; then | |
5864 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5865 else | |
5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5867 for as_dir in $PATH | |
5868 do | |
5869 IFS=$as_save_IFS | |
5870 test -z "$as_dir" && as_dir=. | |
5871 for ac_exec_ext in '' $ac_executable_extensions; do | |
5872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5873 ac_cv_prog_ac_ct_AR="ar" | |
5874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5875 break 2 | |
5876 fi | |
5877 done | |
5878 done | |
5879 | |
5880 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" | |
5881 fi | |
5882 fi | |
5883 ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5884 if test -n "$ac_ct_AR"; then | |
5885 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
5886 echo "${ECHO_T}$ac_ct_AR" >&6 | |
5887 else | |
5888 echo "$as_me:$LINENO: result: no" >&5 | |
5889 echo "${ECHO_T}no" >&6 | |
5890 fi | |
5891 | |
5892 AR=$ac_ct_AR | |
5893 else | |
5894 AR="$ac_cv_prog_AR" | |
5895 fi | |
5896 | |
5897 if test -n "$ac_tool_prefix"; then | |
5898 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program
name with args. | |
5899 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5900 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5902 if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5903 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5904 else | |
5905 if test -n "$RANLIB"; then | |
5906 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5907 else | |
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5909 for as_dir in $PATH | |
5910 do | |
5911 IFS=$as_save_IFS | |
5912 test -z "$as_dir" && as_dir=. | |
5913 for ac_exec_ext in '' $ac_executable_extensions; do | |
5914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5915 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5917 break 2 | |
5918 fi | |
5919 done | |
5920 done | |
5921 | |
5922 fi | |
5923 fi | |
5924 RANLIB=$ac_cv_prog_RANLIB | |
5925 if test -n "$RANLIB"; then | |
5926 echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5927 echo "${ECHO_T}$RANLIB" >&6 | |
5928 else | |
5929 echo "$as_me:$LINENO: result: no" >&5 | |
5930 echo "${ECHO_T}no" >&6 | |
5931 fi | |
5932 | |
5933 fi | |
5934 if test -z "$ac_cv_prog_RANLIB"; then | |
5935 ac_ct_RANLIB=$RANLIB | |
5936 # Extract the first word of "ranlib", so it can be a program name with args. | |
5937 set dummy ranlib; ac_word=$2 | |
5938 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5940 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5941 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5942 else | |
5943 if test -n "$ac_ct_RANLIB"; then | |
5944 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5945 else | |
5946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5947 for as_dir in $PATH | |
5948 do | |
5949 IFS=$as_save_IFS | |
5950 test -z "$as_dir" && as_dir=. | |
5951 for ac_exec_ext in '' $ac_executable_extensions; do | |
5952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5953 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5955 break 2 | |
5956 fi | |
5957 done | |
5958 done | |
5959 | |
5960 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
5961 fi | |
5962 fi | |
5963 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5964 if test -n "$ac_ct_RANLIB"; then | |
5965 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5966 echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
5967 else | |
5968 echo "$as_me:$LINENO: result: no" >&5 | |
5969 echo "${ECHO_T}no" >&6 | |
5970 fi | |
5971 | |
5972 RANLIB=$ac_ct_RANLIB | |
5973 else | |
5974 RANLIB="$ac_cv_prog_RANLIB" | |
5975 fi | |
5976 | |
5977 if test -n "$ac_tool_prefix"; then | |
5978 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program n
ame with args. | |
5979 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5980 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5982 if test "${ac_cv_prog_STRIP+set}" = set; then | |
5983 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5984 else | |
5985 if test -n "$STRIP"; then | |
5986 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5987 else | |
5988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5989 for as_dir in $PATH | |
5990 do | |
5991 IFS=$as_save_IFS | |
5992 test -z "$as_dir" && as_dir=. | |
5993 for ac_exec_ext in '' $ac_executable_extensions; do | |
5994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5995 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
5996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5997 break 2 | |
5998 fi | |
5999 done | |
6000 done | |
6001 | |
6002 fi | |
6003 fi | |
6004 STRIP=$ac_cv_prog_STRIP | |
6005 if test -n "$STRIP"; then | |
6006 echo "$as_me:$LINENO: result: $STRIP" >&5 | |
6007 echo "${ECHO_T}$STRIP" >&6 | |
6008 else | |
6009 echo "$as_me:$LINENO: result: no" >&5 | |
6010 echo "${ECHO_T}no" >&6 | |
6011 fi | |
6012 | |
6013 fi | |
6014 if test -z "$ac_cv_prog_STRIP"; then | |
6015 ac_ct_STRIP=$STRIP | |
6016 # Extract the first word of "strip", so it can be a program name with args. | |
6017 set dummy strip; ac_word=$2 | |
6018 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6020 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
6021 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6022 else | |
6023 if test -n "$ac_ct_STRIP"; then | |
6024 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6025 else | |
6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6027 for as_dir in $PATH | |
6028 do | |
6029 IFS=$as_save_IFS | |
6030 test -z "$as_dir" && as_dir=. | |
6031 for ac_exec_ext in '' $ac_executable_extensions; do | |
6032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6033 ac_cv_prog_ac_ct_STRIP="strip" | |
6034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6035 break 2 | |
6036 fi | |
6037 done | |
6038 done | |
6039 | |
6040 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
6041 fi | |
6042 fi | |
6043 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6044 if test -n "$ac_ct_STRIP"; then | |
6045 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
6046 echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
6047 else | |
6048 echo "$as_me:$LINENO: result: no" >&5 | |
6049 echo "${ECHO_T}no" >&6 | |
6050 fi | |
6051 | |
6052 STRIP=$ac_ct_STRIP | |
6053 else | |
6054 STRIP="$ac_cv_prog_STRIP" | |
6055 fi | |
6056 | |
6057 | |
6058 old_CC="$CC" | |
6059 old_CFLAGS="$CFLAGS" | |
6060 | |
6061 # Set sane defaults for various variables | |
6062 test -z "$AR" && AR=ar | |
6063 test -z "$AR_FLAGS" && AR_FLAGS=cru | |
6064 test -z "$AS" && AS=as | |
6065 test -z "$CC" && CC=cc | |
6066 test -z "$LTCC" && LTCC=$CC | |
6067 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
6068 test -z "$DLLTOOL" && DLLTOOL=dlltool | |
6069 test -z "$LD" && LD=ld | |
6070 test -z "$LN_S" && LN_S="ln -s" | |
6071 test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
6072 test -z "$NM" && NM=nm | |
6073 test -z "$SED" && SED=sed | |
6074 test -z "$OBJDUMP" && OBJDUMP=objdump | |
6075 test -z "$RANLIB" && RANLIB=: | |
6076 test -z "$STRIP" && STRIP=: | |
6077 test -z "$ac_objext" && ac_objext=o | |
6078 | |
6079 # Determine commands to create old-style static archives. | |
6080 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
6081 old_postinstall_cmds='chmod 644 $oldlib' | |
6082 old_postuninstall_cmds= | |
6083 | |
6084 if test -n "$RANLIB"; then | |
6085 case $host_os in | |
6086 openbsd*) | |
6087 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6088 ;; | |
6089 *) | |
6090 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6091 ;; | |
6092 esac | |
6093 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
6094 fi | |
6095 | |
6096 for cc_temp in $compiler""; do | |
6097 case $cc_temp in | |
6098 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6099 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6100 \-*) ;; | |
6101 *) break;; | |
6102 esac | |
6103 done | |
6104 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
6105 | |
6106 | |
6107 # Only perform the check for file, if the check method requires it | |
6108 case $deplibs_check_method in | |
6109 file_magic*) | |
6110 if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
6111 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
6112 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
6113 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
6114 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6115 else | |
6116 case $MAGIC_CMD in | |
6117 [\\/*] | ?:[\\/]*) | |
6118 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path
. | |
6119 ;; | |
6120 *) | |
6121 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6122 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6123 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6124 for ac_dir in $ac_dummy; do | |
6125 IFS="$lt_save_ifs" | |
6126 test -z "$ac_dir" && ac_dir=. | |
6127 if test -f $ac_dir/${ac_tool_prefix}file; then | |
6128 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
6129 if test -n "$file_magic_test_file"; then | |
6130 case $deplibs_check_method in | |
6131 "file_magic "*) | |
6132 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6133 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6134 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6135 $EGREP "$file_magic_regex" > /dev/null; then | |
6136 : | |
6137 else | |
6138 cat <<EOF 1>&2 | |
6139 | |
6140 *** Warning: the command libtool uses to detect shared libraries, | |
6141 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6142 *** The result is that libtool may fail to recognize shared libraries | |
6143 *** as such. This will affect the creation of libtool libraries that | |
6144 *** depend on shared libraries, but programs linked with such libtool | |
6145 *** libraries will work regardless of this problem. Nevertheless, you | |
6146 *** may want to report the problem to your system manager and/or to | |
6147 *** bug-libtool@gnu.org | |
6148 | |
6149 EOF | |
6150 fi ;; | |
6151 esac | |
6152 fi | |
6153 break | |
6154 fi | |
6155 done | |
6156 IFS="$lt_save_ifs" | |
6157 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6158 ;; | |
6159 esac | |
6160 fi | |
6161 | |
6162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6163 if test -n "$MAGIC_CMD"; then | |
6164 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6165 echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6166 else | |
6167 echo "$as_me:$LINENO: result: no" >&5 | |
6168 echo "${ECHO_T}no" >&6 | |
6169 fi | |
6170 | |
6171 if test -z "$lt_cv_path_MAGIC_CMD"; then | |
6172 if test -n "$ac_tool_prefix"; then | |
6173 echo "$as_me:$LINENO: checking for file" >&5 | |
6174 echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
6175 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
6176 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6177 else | |
6178 case $MAGIC_CMD in | |
6179 [\\/*] | ?:[\\/]*) | |
6180 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path
. | |
6181 ;; | |
6182 *) | |
6183 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6184 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6185 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6186 for ac_dir in $ac_dummy; do | |
6187 IFS="$lt_save_ifs" | |
6188 test -z "$ac_dir" && ac_dir=. | |
6189 if test -f $ac_dir/file; then | |
6190 lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
6191 if test -n "$file_magic_test_file"; then | |
6192 case $deplibs_check_method in | |
6193 "file_magic "*) | |
6194 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6195 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6196 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6197 $EGREP "$file_magic_regex" > /dev/null; then | |
6198 : | |
6199 else | |
6200 cat <<EOF 1>&2 | |
6201 | |
6202 *** Warning: the command libtool uses to detect shared libraries, | |
6203 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6204 *** The result is that libtool may fail to recognize shared libraries | |
6205 *** as such. This will affect the creation of libtool libraries that | |
6206 *** depend on shared libraries, but programs linked with such libtool | |
6207 *** libraries will work regardless of this problem. Nevertheless, you | |
6208 *** may want to report the problem to your system manager and/or to | |
6209 *** bug-libtool@gnu.org | |
6210 | |
6211 EOF | |
6212 fi ;; | |
6213 esac | |
6214 fi | |
6215 break | |
6216 fi | |
6217 done | |
6218 IFS="$lt_save_ifs" | |
6219 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6220 ;; | |
6221 esac | |
6222 fi | |
6223 | |
6224 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6225 if test -n "$MAGIC_CMD"; then | |
6226 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6227 echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6228 else | |
6229 echo "$as_me:$LINENO: result: no" >&5 | |
6230 echo "${ECHO_T}no" >&6 | |
6231 fi | |
6232 | |
6233 else | |
6234 MAGIC_CMD=: | |
6235 fi | |
6236 fi | |
6237 | |
6238 fi | |
6239 ;; | |
6240 esac | |
6241 | |
6242 enable_dlopen=no | |
6243 enable_win32_dll=no | |
6244 | |
6245 # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
6246 if test "${enable_libtool_lock+set}" = set; then | |
6247 enableval="$enable_libtool_lock" | |
6248 | |
6249 fi; | |
6250 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
6251 | |
6252 | |
6253 # Check whether --with-pic or --without-pic was given. | |
6254 if test "${with_pic+set}" = set; then | |
6255 withval="$with_pic" | |
6256 pic_mode="$withval" | |
6257 else | |
6258 pic_mode=default | |
6259 fi; | |
6260 test -z "$pic_mode" && pic_mode=default | |
6261 | |
6262 # Use C for the default configuration in the libtool script | |
6263 tagname= | |
6264 lt_save_CC="$CC" | |
6265 ac_ext=c | |
6266 ac_cpp='$CPP $CPPFLAGS' | |
6267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' | |
6269 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6270 | |
6271 | |
6272 # Source file extension for C test sources. | |
6273 ac_ext=c | |
6274 | |
6275 # Object file extension for compiled C test sources. | |
6276 objext=o | |
6277 objext=$objext | |
6278 | |
6279 # Code to be used in simple compile tests | |
6280 lt_simple_compile_test_code="int some_variable = 0;\n" | |
6281 | |
6282 # Code to be used in simple link tests | |
6283 lt_simple_link_test_code='int main(){return(0);}\n' | |
6284 | |
6285 | |
6286 # If no C compiler was specified, use CC. | |
6287 LTCC=${LTCC-"$CC"} | |
6288 | |
6289 # If no C compiler flags were specified, use CFLAGS. | |
6290 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6291 | |
6292 # Allow CC to be a program name with arguments. | |
6293 compiler=$CC | |
6294 | |
6295 | |
6296 # save warnings/boilerplate of simple test code | |
6297 ac_outfile=conftest.$ac_objext | |
6298 printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
6299 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6300 _lt_compiler_boilerplate=`cat conftest.err` | |
6301 $rm conftest* | |
6302 | |
6303 ac_outfile=conftest.$ac_objext | |
6304 printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
6305 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6306 _lt_linker_boilerplate=`cat conftest.err` | |
6307 $rm conftest* | |
6308 | |
6309 | |
6310 | |
6311 lt_prog_compiler_no_builtin_flag= | |
6312 | |
6313 if test "$GCC" = yes; then | |
6314 lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
6315 | |
6316 | |
6317 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions"
>&5 | |
6318 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_
C" >&6 | |
6319 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
6320 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6321 else | |
6322 lt_cv_prog_compiler_rtti_exceptions=no | |
6323 ac_outfile=conftest.$ac_objext | |
6324 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6325 lt_compiler_flag="-fno-rtti -fno-exceptions" | |
6326 # Insert the option either (1) after the last *FLAGS variable, or | |
6327 # (2) before a word containing "conftest.", or (3) at the end. | |
6328 # Note that $ac_compile itself does not contain backslashes and begins | |
6329 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6330 # The option is referenced via a variable to avoid confusing sed. | |
6331 lt_compile=`echo "$ac_compile" | $SED \ | |
6332 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
6333 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6334 -e 's:$: $lt_compiler_flag:'` | |
6335 (eval echo "\"\$as_me:6335: $lt_compile\"" >&5) | |
6336 (eval "$lt_compile" 2>conftest.err) | |
6337 ac_status=$? | |
6338 cat conftest.err >&5 | |
6339 echo "$as_me:6339: \$? = $ac_status" >&5 | |
6340 if (exit $ac_status) && test -s "$ac_outfile"; then | |
6341 # The compiler can only warn and ignore the option if not recognized | |
6342 # So say no if there are warnings other than the usual output. | |
6343 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
6344 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
6345 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the
n | |
6346 lt_cv_prog_compiler_rtti_exceptions=yes | |
6347 fi | |
6348 fi | |
6349 $rm conftest* | |
6350 | |
6351 fi | |
6352 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
6353 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
6354 | |
6355 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
6356 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtt
i -fno-exceptions" | |
6357 else | |
6358 : | |
6359 fi | |
6360 | |
6361 fi | |
6362 | |
6363 lt_prog_compiler_wl= | |
6364 lt_prog_compiler_pic= | |
6365 lt_prog_compiler_static= | |
6366 | |
6367 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
6368 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
6369 | |
6370 if test "$GCC" = yes; then | |
6371 lt_prog_compiler_wl='-Wl,' | |
6372 lt_prog_compiler_static='-static' | |
6373 | |
6374 case $host_os in | |
6375 aix*) | |
6376 # All AIX code is PIC. | |
6377 if test "$host_cpu" = ia64; then | |
6378 # AIX 5 now supports IA64 processor | |
6379 lt_prog_compiler_static='-Bstatic' | |
6380 fi | |
6381 ;; | |
6382 | |
6383 amigaos*) | |
6384 # FIXME: we need at least 68020 code to build shared libraries, but | |
6385 # adding the `-m68020' flag to GCC prevents building anything better, | |
6386 # like `-m68040'. | |
6387 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
6388 ;; | |
6389 | |
6390 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
6391 # PIC is the default for these OSes. | |
6392 ;; | |
6393 | |
6394 mingw* | pw32* | os2*) | |
6395 # This hack is so that the source file can tell whether it is being | |
6396 # built for inclusion in a dll (and should export symbols for example). | |
6397 lt_prog_compiler_pic='-DDLL_EXPORT' | |
6398 ;; | |
6399 | |
6400 darwin* | rhapsody*) | |
6401 # PIC is the default on this platform | |
6402 # Common symbols not allowed in MH_DYLIB files | |
6403 lt_prog_compiler_pic='-fno-common' | |
6404 ;; | |
6405 | |
6406 interix3*) | |
6407 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
6408 # Instead, we relocate shared libraries at runtime. | |
6409 ;; | |
6410 | |
6411 msdosdjgpp*) | |
6412 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
6413 # on systems that don't support them. | |
6414 lt_prog_compiler_can_build_shared=no | |
6415 enable_shared=no | |
6416 ;; | |
6417 | |
6418 sysv4*MP*) | |
6419 if test -d /usr/nec; then | |
6420 lt_prog_compiler_pic=-Kconform_pic | |
6421 fi | |
6422 ;; | |
6423 | |
6424 hpux*) | |
6425 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6426 # not for PA HP-UX. | |
6427 case $host_cpu in | |
6428 hppa*64*|ia64*) | |
6429 # +Z the default | |
6430 ;; | |
6431 *) | |
6432 lt_prog_compiler_pic='-fPIC' | |
6433 ;; | |
6434 esac | |
6435 ;; | |
6436 | |
6437 *) | |
6438 lt_prog_compiler_pic='-fPIC' | |
6439 ;; | |
6440 esac | |
6441 else | |
6442 # PORTME Check for flag to pass linker flags through the system compiler. | |
6443 case $host_os in | |
6444 aix*) | |
6445 lt_prog_compiler_wl='-Wl,' | |
6446 if test "$host_cpu" = ia64; then | |
6447 # AIX 5 now supports IA64 processor | |
6448 lt_prog_compiler_static='-Bstatic' | |
6449 else | |
6450 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
6451 fi | |
6452 ;; | |
6453 darwin*) | |
6454 # PIC is the default on this platform | |
6455 # Common symbols not allowed in MH_DYLIB files | |
6456 case $cc_basename in | |
6457 xlc*) | |
6458 lt_prog_compiler_pic='-qnocommon' | |
6459 lt_prog_compiler_wl='-Wl,' | |
6460 ;; | |
6461 esac | |
6462 ;; | |
6463 | |
6464 mingw* | pw32* | os2*) | |
6465 # This hack is so that the source file can tell whether it is being | |
6466 # built for inclusion in a dll (and should export symbols for example). | |
6467 lt_prog_compiler_pic='-DDLL_EXPORT' | |
6468 ;; | |
6469 | |
6470 hpux9* | hpux10* | hpux11*) | |
6471 lt_prog_compiler_wl='-Wl,' | |
6472 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6473 # not for PA HP-UX. | |
6474 case $host_cpu in | |
6475 hppa*64*|ia64*) | |
6476 # +Z the default | |
6477 ;; | |
6478 *) | |
6479 lt_prog_compiler_pic='+Z' | |
6480 ;; | |
6481 esac | |
6482 # Is there a better lt_prog_compiler_static that works with the bundled CC
? | |
6483 lt_prog_compiler_static='${wl}-a ${wl}archive' | |
6484 ;; | |
6485 | |
6486 irix5* | irix6* | nonstopux*) | |
6487 lt_prog_compiler_wl='-Wl,' | |
6488 # PIC (with -KPIC) is the default. | |
6489 lt_prog_compiler_static='-non_shared' | |
6490 ;; | |
6491 | |
6492 newsos6) | |
6493 lt_prog_compiler_pic='-KPIC' | |
6494 lt_prog_compiler_static='-Bstatic' | |
6495 ;; | |
6496 | |
6497 linux*) | |
6498 case $cc_basename in | |
6499 icc* | ecc*) | |
6500 lt_prog_compiler_wl='-Wl,' | |
6501 lt_prog_compiler_pic='-KPIC' | |
6502 lt_prog_compiler_static='-static' | |
6503 ;; | |
6504 pgcc* | pgf77* | pgf90* | pgf95*) | |
6505 # Portland Group compilers (*not* the Pentium gcc compiler, | |
6506 # which looks to be a dead project) | |
6507 lt_prog_compiler_wl='-Wl,' | |
6508 lt_prog_compiler_pic='-fpic' | |
6509 lt_prog_compiler_static='-Bstatic' | |
6510 ;; | |
6511 ccc*) | |
6512 lt_prog_compiler_wl='-Wl,' | |
6513 # All Alpha code is PIC. | |
6514 lt_prog_compiler_static='-non_shared' | |
6515 ;; | |
6516 esac | |
6517 ;; | |
6518 | |
6519 osf3* | osf4* | osf5*) | |
6520 lt_prog_compiler_wl='-Wl,' | |
6521 # All OSF/1 code is PIC. | |
6522 lt_prog_compiler_static='-non_shared' | |
6523 ;; | |
6524 | |
6525 solaris*) | |
6526 lt_prog_compiler_pic='-KPIC' | |
6527 lt_prog_compiler_static='-Bstatic' | |
6528 case $cc_basename in | |
6529 f77* | f90* | f95*) | |
6530 lt_prog_compiler_wl='-Qoption ld ';; | |
6531 *) | |
6532 lt_prog_compiler_wl='-Wl,';; | |
6533 esac | |
6534 ;; | |
6535 | |
6536 sunos4*) | |
6537 lt_prog_compiler_wl='-Qoption ld ' | |
6538 lt_prog_compiler_pic='-PIC' | |
6539 lt_prog_compiler_static='-Bstatic' | |
6540 ;; | |
6541 | |
6542 sysv4 | sysv4.2uw2* | sysv4.3*) | |
6543 lt_prog_compiler_wl='-Wl,' | |
6544 lt_prog_compiler_pic='-KPIC' | |
6545 lt_prog_compiler_static='-Bstatic' | |
6546 ;; | |
6547 | |
6548 sysv4*MP*) | |
6549 if test -d /usr/nec ;then | |
6550 lt_prog_compiler_pic='-Kconform_pic' | |
6551 lt_prog_compiler_static='-Bstatic' | |
6552 fi | |
6553 ;; | |
6554 | |
6555 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
6556 lt_prog_compiler_wl='-Wl,' | |
6557 lt_prog_compiler_pic='-KPIC' | |
6558 lt_prog_compiler_static='-Bstatic' | |
6559 ;; | |
6560 | |
6561 unicos*) | |
6562 lt_prog_compiler_wl='-Wl,' | |
6563 lt_prog_compiler_can_build_shared=no | |
6564 ;; | |
6565 | |
6566 uts4*) | |
6567 lt_prog_compiler_pic='-pic' | |
6568 lt_prog_compiler_static='-Bstatic' | |
6569 ;; | |
6570 | |
6571 *) | |
6572 lt_prog_compiler_can_build_shared=no | |
6573 ;; | |
6574 esac | |
6575 fi | |
6576 | |
6577 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
6578 echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | |
6579 | |
6580 # | |
6581 # Check to make sure the PIC flag actually works. | |
6582 # | |
6583 if test -n "$lt_prog_compiler_pic"; then | |
6584 | |
6585 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works
" >&5 | |
6586 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECH
O_C" >&6 | |
6587 if test "${lt_prog_compiler_pic_works+set}" = set; then | |
6588 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6589 else | |
6590 lt_prog_compiler_pic_works=no | |
6591 ac_outfile=conftest.$ac_objext | |
6592 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6593 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
6594 # Insert the option either (1) after the last *FLAGS variable, or | |
6595 # (2) before a word containing "conftest.", or (3) at the end. | |
6596 # Note that $ac_compile itself does not contain backslashes and begins | |
6597 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6598 # The option is referenced via a variable to avoid confusing sed. | |
6599 lt_compile=`echo "$ac_compile" | $SED \ | |
6600 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
6601 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6602 -e 's:$: $lt_compiler_flag:'` | |
6603 (eval echo "\"\$as_me:6603: $lt_compile\"" >&5) | |
6604 (eval "$lt_compile" 2>conftest.err) | |
6605 ac_status=$? | |
6606 cat conftest.err >&5 | |
6607 echo "$as_me:6607: \$? = $ac_status" >&5 | |
6608 if (exit $ac_status) && test -s "$ac_outfile"; then | |
6609 # The compiler can only warn and ignore the option if not recognized | |
6610 # So say no if there are warnings other than the usual output. | |
6611 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
6612 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
6613 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the
n | |
6614 lt_prog_compiler_pic_works=yes | |
6615 fi | |
6616 fi | |
6617 $rm conftest* | |
6618 | |
6619 fi | |
6620 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | |
6621 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | |
6622 | |
6623 if test x"$lt_prog_compiler_pic_works" = xyes; then | |
6624 case $lt_prog_compiler_pic in | |
6625 "" | " "*) ;; | |
6626 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
6627 esac | |
6628 else | |
6629 lt_prog_compiler_pic= | |
6630 lt_prog_compiler_can_build_shared=no | |
6631 fi | |
6632 | |
6633 fi | |
6634 case $host_os in | |
6635 # For platforms which do not support PIC, -DPIC is meaningless: | |
6636 *djgpp*) | |
6637 lt_prog_compiler_pic= | |
6638 ;; | |
6639 *) | |
6640 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
6641 ;; | |
6642 esac | |
6643 | |
6644 # | |
6645 # Check to make sure the static flag actually works. | |
6646 # | |
6647 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
6648 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag work
s" >&5 | |
6649 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $EC
HO_C" >&6 | |
6650 if test "${lt_prog_compiler_static_works+set}" = set; then | |
6651 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6652 else | |
6653 lt_prog_compiler_static_works=no | |
6654 save_LDFLAGS="$LDFLAGS" | |
6655 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
6656 printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
6657 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
6658 # The linker can only warn and ignore the option if not recognized | |
6659 # So say no if there are warnings | |
6660 if test -s conftest.err; then | |
6661 # Append any errors to the config.log. | |
6662 cat conftest.err 1>&5 | |
6663 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
6664 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
6665 if diff conftest.exp conftest.er2 >/dev/null; then | |
6666 lt_prog_compiler_static_works=yes | |
6667 fi | |
6668 else | |
6669 lt_prog_compiler_static_works=yes | |
6670 fi | |
6671 fi | |
6672 $rm conftest* | |
6673 LDFLAGS="$save_LDFLAGS" | |
6674 | |
6675 fi | |
6676 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | |
6677 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | |
6678 | |
6679 if test x"$lt_prog_compiler_static_works" = xyes; then | |
6680 : | |
6681 else | |
6682 lt_prog_compiler_static= | |
6683 fi | |
6684 | |
6685 | |
6686 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
6687 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >
&6 | |
6688 if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
6689 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6690 else | |
6691 lt_cv_prog_compiler_c_o=no | |
6692 $rm -r conftest 2>/dev/null | |
6693 mkdir conftest | |
6694 cd conftest | |
6695 mkdir out | |
6696 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6697 | |
6698 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
6699 # Insert the option either (1) after the last *FLAGS variable, or | |
6700 # (2) before a word containing "conftest.", or (3) at the end. | |
6701 # Note that $ac_compile itself does not contain backslashes and begins | |
6702 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6703 lt_compile=`echo "$ac_compile" | $SED \ | |
6704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
6705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6706 -e 's:$: $lt_compiler_flag:'` | |
6707 (eval echo "\"\$as_me:6707: $lt_compile\"" >&5) | |
6708 (eval "$lt_compile" 2>out/conftest.err) | |
6709 ac_status=$? | |
6710 cat out/conftest.err >&5 | |
6711 echo "$as_me:6711: \$? = $ac_status" >&5 | |
6712 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
6713 then | |
6714 # The compiler can only warn and ignore the option if not recognized | |
6715 # So say no if there are warnings | |
6716 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
6717 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
6718 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/d
ev/null; then | |
6719 lt_cv_prog_compiler_c_o=yes | |
6720 fi | |
6721 fi | |
6722 chmod u+w . 2>&5 | |
6723 $rm conftest* | |
6724 # SGI C++ compiler will create directory out/ii_files/ for | |
6725 # template instantiation | |
6726 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
6727 $rm out/* && rmdir out | |
6728 cd .. | |
6729 rmdir conftest | |
6730 $rm conftest* | |
6731 | |
6732 fi | |
6733 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
6734 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
6735 | |
6736 | |
6737 hard_links="nottested" | |
6738 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
6739 # do not overwrite the value of need_locks provided by the user | |
6740 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
6741 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
6742 hard_links=yes | |
6743 $rm conftest* | |
6744 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
6745 touch conftest.a | |
6746 ln conftest.a conftest.b 2>&5 || hard_links=no | |
6747 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
6748 echo "$as_me:$LINENO: result: $hard_links" >&5 | |
6749 echo "${ECHO_T}$hard_links" >&6 | |
6750 if test "$hard_links" = no; then | |
6751 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make
-j' may be unsafe" >&5 | |
6752 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be un
safe" >&2;} | |
6753 need_locks=warn | |
6754 fi | |
6755 else | |
6756 need_locks=no | |
6757 fi | |
6758 | |
6759 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports share
d libraries" >&5 | |
6760 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
ies... $ECHO_C" >&6 | |
6761 | |
6762 runpath_var= | |
6763 allow_undefined_flag= | |
6764 enable_shared_with_static_runtimes=no | |
6765 archive_cmds= | |
6766 archive_expsym_cmds= | |
6767 old_archive_From_new_cmds= | |
6768 old_archive_from_expsyms_cmds= | |
6769 export_dynamic_flag_spec= | |
6770 whole_archive_flag_spec= | |
6771 thread_safe_flag_spec= | |
6772 hardcode_libdir_flag_spec= | |
6773 hardcode_libdir_flag_spec_ld= | |
6774 hardcode_libdir_separator= | |
6775 hardcode_direct=no | |
6776 hardcode_minus_L=no | |
6777 hardcode_shlibpath_var=unsupported | |
6778 link_all_deplibs=unknown | |
6779 hardcode_automatic=no | |
6780 module_cmds= | |
6781 module_expsym_cmds= | |
6782 always_export_symbols=no | |
6783 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\
''s/.* //'\'' | sort | uniq > $export_symbols' | |
6784 # include_expsyms should be a list of space-separated symbols to be *always* | |
6785 # included in the symbol list | |
6786 include_expsyms= | |
6787 # exclude_expsyms can be an extended regexp of symbols to exclude | |
6788 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
6789 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
6790 # as well as any symbol that contains `d'. | |
6791 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | |
6792 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
6793 # platforms (ab)use it in PIC code, but their linkers get confused if | |
6794 # the symbol is explicitly referenced. Since portable code cannot | |
6795 # rely on this symbol name, it's probably fine to never include it in | |
6796 # preloaded symbol tables. | |
6797 extract_expsyms_cmds= | |
6798 # Just being paranoid about ensuring that cc_basename is set. | |
6799 for cc_temp in $compiler""; do | |
6800 case $cc_temp in | |
6801 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6802 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6803 \-*) ;; | |
6804 *) break;; | |
6805 esac | |
6806 done | |
6807 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
6808 | |
6809 case $host_os in | |
6810 cygwin* | mingw* | pw32*) | |
6811 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
6812 # When not using gcc, we currently assume that we are using | |
6813 # Microsoft Visual C++. | |
6814 if test "$GCC" != yes; then | |
6815 with_gnu_ld=no | |
6816 fi | |
6817 ;; | |
6818 interix*) | |
6819 # we just hope/assume this is gcc and not c89 (= MSVC++) | |
6820 with_gnu_ld=yes | |
6821 ;; | |
6822 openbsd*) | |
6823 with_gnu_ld=no | |
6824 ;; | |
6825 esac | |
6826 | |
6827 ld_shlibs=yes | |
6828 if test "$with_gnu_ld" = yes; then | |
6829 # If archive_cmds runs LD, not CC, wlarc should be empty | |
6830 wlarc='${wl}' | |
6831 | |
6832 # Set some defaults for GNU ld with shared library support. These | |
6833 # are reset later if shared libraries are not supported. Putting them | |
6834 # here allows them to be overridden if necessary. | |
6835 runpath_var=LD_RUN_PATH | |
6836 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | |
6837 export_dynamic_flag_spec='${wl}--export-dynamic' | |
6838 # ancient GNU ld didn't support --whole-archive et. al. | |
6839 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
6840 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'-
-no-whole-archive' | |
6841 else | |
6842 whole_archive_flag_spec= | |
6843 fi | |
6844 supports_anon_versioning=no | |
6845 case `$LD -v 2>/dev/null` in | |
6846 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
6847 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
6848 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
6849 *\ 2.11.*) ;; # other 2.11 versions | |
6850 *) supports_anon_versioning=yes ;; | |
6851 esac | |
6852 | |
6853 # See if GNU ld supports shared libraries. | |
6854 case $host_os in | |
6855 aix3* | aix4* | aix5*) | |
6856 # On AIX/PPC, the GNU linker is very broken | |
6857 if test "$host_cpu" != ia64; then | |
6858 ld_shlibs=no | |
6859 cat <<EOF 1>&2 | |
6860 | |
6861 *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
6862 *** to be unable to reliably create shared libraries on AIX. | |
6863 *** Therefore, libtool is disabling shared libraries support. If you | |
6864 *** really care for shared libraries, you may want to modify your PATH | |
6865 *** so that a non-GNU linker is found, and then restart. | |
6866 | |
6867 EOF | |
6868 fi | |
6869 ;; | |
6870 | |
6871 amigaos*) | |
6872 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $lib
name" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_
objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlib
rary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~
$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
6873 hardcode_libdir_flag_spec='-L$libdir' | |
6874 hardcode_minus_L=yes | |
6875 | |
6876 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
6877 # that the semantics of dynamic libraries on AmigaOS, at least up | |
6878 # to version 4, is to share data among multiple programs linked | |
6879 # with the same dynamic library. Since this doesn't match the | |
6880 # behavior of shared libraries on other platforms, we can't use | |
6881 # them. | |
6882 ld_shlibs=no | |
6883 ;; | |
6884 | |
6885 beos*) | |
6886 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
6887 allow_undefined_flag=unsupported | |
6888 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
6889 # support --undefined. This deserves some investigation. FIXME | |
6890 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-sonam
e $wl$soname -o $lib' | |
6891 else | |
6892 ld_shlibs=no | |
6893 fi | |
6894 ;; | |
6895 | |
6896 cygwin* | mingw* | pw32*) | |
6897 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
6898 # as there is no search path for DLLs. | |
6899 hardcode_libdir_flag_spec='-L$libdir' | |
6900 allow_undefined_flag=unsupported | |
6901 always_export_symbols=no | |
6902 enable_shared_with_static_runtimes=yes | |
6903 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SE
D -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //
'\'' | sort | uniq > $export_symbols' | |
6904 | |
6905 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
6906 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_o
bjdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
6907 # If the export-symbols file already is a .def file (1st line | |
6908 # is EXPORTS), use it as is; otherwise, prepend... | |
6909 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; th
en | |
6910 cp $export_symbols $output_objdir/$soname.def; | |
6911 else | |
6912 echo EXPORTS > $output_objdir/$soname.def; | |
6913 cat $export_symbols >> $output_objdir/$soname.def; | |
6914 fi~ | |
6915 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags
-o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -
Xlinker $lib' | |
6916 else | |
6917 ld_shlibs=no | |
6918 fi | |
6919 ;; | |
6920 | |
6921 interix3*) | |
6922 hardcode_direct=no | |
6923 hardcode_shlibpath_var=no | |
6924 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
6925 export_dynamic_flag_spec='${wl}-E' | |
6926 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
6927 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
6928 # default) and relocated if they conflict, which is a slow very memory | |
6929 # consuming and fragmenting process. To avoid this, we pick a random, | |
6930 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
6931 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
6932 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl
}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 13421772
80` -o $lib' | |
6933 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' | |
6934 ;; | |
6935 | |
6936 linux*) | |
6937 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
6938 tmp_addflag= | |
6939 case $cc_basename,$host_cpu in | |
6940 pgcc*) # Portland Group C compiler | |
6941 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' | |
6942 tmp_addflag=' $pic_flag' | |
6943 ;; | |
6944 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
6945 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' | |
6946 tmp_addflag=' $pic_flag -Mnomain' ;; | |
6947 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
6948 tmp_addflag=' -i_dynamic' ;; | |
6949 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
6950 tmp_addflag=' -i_dynamic -nofor_main' ;; | |
6951 ifc* | ifort*) # Intel Fortran compiler | |
6952 tmp_addflag=' -nofor_main' ;; | |
6953 esac | |
6954 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_fl
ags ${wl}-soname $wl$soname -o $lib' | |
6955 | |
6956 if test $supports_anon_versioning = yes; then | |
6957 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | |
6958 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
6959 $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
6960 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-so
name $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
6961 fi | |
6962 link_all_deplibs=no | |
6963 else | |
6964 ld_shlibs=no | |
6965 fi | |
6966 ;; | |
6967 | |
6968 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | |
6969 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
6970 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
6971 wlarc= | |
6972 else | |
6973 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname
$wl$soname -o $lib' | |
6974 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}
-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
6975 fi | |
6976 ;; | |
6977 | |
6978 solaris*) | |
6979 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
6980 ld_shlibs=no | |
6981 cat <<EOF 1>&2 | |
6982 | |
6983 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
6984 *** create shared libraries on Solaris systems. Therefore, libtool | |
6985 *** is disabling shared libraries support. We urge you to upgrade GNU | |
6986 *** binutils to release 2.9.1 or newer. Another option is to modify | |
6987 *** your PATH or compiler configuration so that the native linker is | |
6988 *** used, and then restart. | |
6989 | |
6990 EOF | |
6991 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
6992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname
$wl$soname -o $lib' | |
6993 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}
-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
6994 else | |
6995 ld_shlibs=no | |
6996 fi | |
6997 ;; | |
6998 | |
6999 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
7000 case `$LD -v 2>&1` in | |
7001 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
7002 ld_shlibs=no | |
7003 cat <<_LT_EOF 1>&2 | |
7004 | |
7005 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
7006 *** reliably create shared libraries on SCO systems. Therefore, libtool | |
7007 *** is disabling shared libraries support. We urge you to upgrade GNU | |
7008 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
7009 *** your PATH or compiler configuration so that the native linker is | |
7010 *** used, and then restart. | |
7011 | |
7012 _LT_EOF | |
7013 ;; | |
7014 *) | |
7015 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; th
en | |
7016 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpat
h,$libdir`' | |
7017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so
name,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
7018 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $
{wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$expo
rt_symbols -o $lib' | |
7019 else | |
7020 ld_shlibs=no | |
7021 fi | |
7022 ;; | |
7023 esac | |
7024 ;; | |
7025 | |
7026 sunos4*) | |
7027 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs
$linker_flags' | |
7028 wlarc= | |
7029 hardcode_direct=yes | |
7030 hardcode_shlibpath_var=no | |
7031 ;; | |
7032 | |
7033 *) | |
7034 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
7035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname
$wl$soname -o $lib' | |
7036 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}
-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7037 else | |
7038 ld_shlibs=no | |
7039 fi | |
7040 ;; | |
7041 esac | |
7042 | |
7043 if test "$ld_shlibs" = no; then | |
7044 runpath_var= | |
7045 hardcode_libdir_flag_spec= | |
7046 export_dynamic_flag_spec= | |
7047 whole_archive_flag_spec= | |
7048 fi | |
7049 else | |
7050 # PORTME fill in a description of your system's linker (not GNU ld) | |
7051 case $host_os in | |
7052 aix3*) | |
7053 allow_undefined_flag=unsupported | |
7054 always_export_symbols=yes | |
7055 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $link
er_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objd
ir/$soname' | |
7056 # Note: this linker hardcodes the directories in LIBPATH if there | |
7057 # are no directories specified by -L. | |
7058 hardcode_minus_L=yes | |
7059 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
7060 # Neither direct hardcoding nor static linking is supported with a | |
7061 # broken collect2. | |
7062 hardcode_direct=unsupported | |
7063 fi | |
7064 ;; | |
7065 | |
7066 aix4* | aix5*) | |
7067 if test "$host_cpu" = ia64; then | |
7068 # On IA64, the linker does run time linking by default, so we don't | |
7069 # have to do anything special. | |
7070 aix_use_runtimelinking=no | |
7071 exp_sym_flag='-Bexport' | |
7072 no_entry_flag="" | |
7073 else | |
7074 # If we're using GNU nm, then we don't want the "-C" option. | |
7075 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
7076 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
7077 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((
\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { prin
t \$3 } }'\'' | sort -u > $export_symbols' | |
7078 else | |
7079 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if ((
(\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { pri
nt \$3 } }'\'' | sort -u > $export_symbols' | |
7080 fi | |
7081 aix_use_runtimelinking=no | |
7082 | |
7083 # Test if we are trying to use run time linking or normal | |
7084 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
7085 # need to do runtime linking. | |
7086 case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
7087 for ld_flag in $LDFLAGS; do | |
7088 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
7089 aix_use_runtimelinking=yes | |
7090 break | |
7091 fi | |
7092 done | |
7093 ;; | |
7094 esac | |
7095 | |
7096 exp_sym_flag='-bexport' | |
7097 no_entry_flag='-bnoentry' | |
7098 fi | |
7099 | |
7100 # When large executables or shared objects are built, AIX ld can | |
7101 # have problems creating the table of contents. If linking a library | |
7102 # or program results in "error TOC overflow" add -mminimal-toc to | |
7103 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
7104 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
7105 | |
7106 archive_cmds='' | |
7107 hardcode_direct=yes | |
7108 hardcode_libdir_separator=':' | |
7109 link_all_deplibs=yes | |
7110 | |
7111 if test "$GCC" = yes; then | |
7112 case $host_os in aix4.[012]|aix4.[012].*) | |
7113 # We only want to do this on AIX 4.2 and lower, the check | |
7114 # below for broken collect2 doesn't work under 4.3+ | |
7115 collect2name=`${CC} -print-prog-name=collect2` | |
7116 if test -f "$collect2name" && \ | |
7117 strings "$collect2name" | grep resolve_lib_name >/dev/null | |
7118 then | |
7119 # We have reworked collect2 | |
7120 hardcode_direct=yes | |
7121 else | |
7122 # We have old collect2 | |
7123 hardcode_direct=unsupported | |
7124 # It fails to find uninstalled libraries when the uninstalled | |
7125 # path is not listed in the libpath. Setting hardcode_minus_L | |
7126 # to unsupported forces relinking | |
7127 hardcode_minus_L=yes | |
7128 hardcode_libdir_flag_spec='-L$libdir' | |
7129 hardcode_libdir_separator= | |
7130 fi | |
7131 ;; | |
7132 esac | |
7133 shared_flag='-shared' | |
7134 if test "$aix_use_runtimelinking" = yes; then | |
7135 shared_flag="$shared_flag "'${wl}-G' | |
7136 fi | |
7137 else | |
7138 # not using gcc | |
7139 if test "$host_cpu" = ia64; then | |
7140 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
7141 # chokes on -Wl,-G. The following line is correct: | |
7142 shared_flag='-G' | |
7143 else | |
7144 if test "$aix_use_runtimelinking" = yes; then | |
7145 shared_flag='${wl}-G' | |
7146 else | |
7147 shared_flag='${wl}-bM:SRE' | |
7148 fi | |
7149 fi | |
7150 fi | |
7151 | |
7152 # It seems that -bexpall does not export symbols beginning with | |
7153 # underscore (_), so it is better to generate a list of symbols to export. | |
7154 always_export_symbols=yes | |
7155 if test "$aix_use_runtimelinking" = yes; then | |
7156 # Warning - without using the other runtime loading flags (-brtl), | |
7157 # -berok will link without error, but may produce a broken library. | |
7158 allow_undefined_flag='-berok' | |
7159 # Determine the default libpath from the value encoded in an empty execut
able. | |
7160 cat >conftest.$ac_ext <<_ACEOF | |
7161 /* confdefs.h. */ | |
7162 _ACEOF | |
7163 cat confdefs.h >>conftest.$ac_ext | |
7164 cat >>conftest.$ac_ext <<_ACEOF | |
7165 /* end confdefs.h. */ | |
7166 | |
7167 int | |
7168 main () | |
7169 { | |
7170 | |
7171 ; | |
7172 return 0; | |
7173 } | |
7174 _ACEOF | |
7175 rm -f conftest.$ac_objext conftest$ac_exeext | |
7176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7177 (eval $ac_link) 2>conftest.er1 | |
7178 ac_status=$? | |
7179 grep -v '^ *+' conftest.er1 >conftest.err | |
7180 rm -f conftest.er1 | |
7181 cat conftest.err >&5 | |
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7183 (exit $ac_status); } && | |
7184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
7185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7186 (eval $ac_try) 2>&5 | |
7187 ac_status=$? | |
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7189 (exit $ac_status); }; } && | |
7190 { ac_try='test -s conftest$ac_exeext' | |
7191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7192 (eval $ac_try) 2>&5 | |
7193 ac_status=$? | |
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7195 (exit $ac_status); }; }; then | |
7196 | |
7197 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File S
trings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
7198 }'` | |
7199 # Check for a 64-bit object if we didn't find anything. | |
7200 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/de
v/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p;
} | |
7201 }'`; fi | |
7202 else | |
7203 echo "$as_me: failed program was:" >&5 | |
7204 sed 's/^/| /' conftest.$ac_ext >&5 | |
7205 | |
7206 fi | |
7207 rm -f conftest.err conftest.$ac_objext \ | |
7208 conftest$ac_exeext conftest.$ac_ext | |
7209 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7210 | |
7211 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7212 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" | |
7213 else | |
7214 if test "$host_cpu" = ia64; then | |
7215 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
7216 allow_undefined_flag="-z nodefs" | |
7217 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $li
bobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_f
lag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
7218 else | |
7219 # Determine the default libpath from the value encoded in an empty exec
utable. | |
7220 cat >conftest.$ac_ext <<_ACEOF | |
7221 /* confdefs.h. */ | |
7222 _ACEOF | |
7223 cat confdefs.h >>conftest.$ac_ext | |
7224 cat >>conftest.$ac_ext <<_ACEOF | |
7225 /* end confdefs.h. */ | |
7226 | |
7227 int | |
7228 main () | |
7229 { | |
7230 | |
7231 ; | |
7232 return 0; | |
7233 } | |
7234 _ACEOF | |
7235 rm -f conftest.$ac_objext conftest$ac_exeext | |
7236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7237 (eval $ac_link) 2>conftest.er1 | |
7238 ac_status=$? | |
7239 grep -v '^ *+' conftest.er1 >conftest.err | |
7240 rm -f conftest.er1 | |
7241 cat conftest.err >&5 | |
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7243 (exit $ac_status); } && | |
7244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7246 (eval $ac_try) 2>&5 | |
7247 ac_status=$? | |
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7249 (exit $ac_status); }; } && | |
7250 { ac_try='test -s conftest$ac_exeext' | |
7251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7252 (eval $ac_try) 2>&5 | |
7253 ac_status=$? | |
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7255 (exit $ac_status); }; }; then | |
7256 | |
7257 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File S
trings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
7258 }'` | |
7259 # Check for a 64-bit object if we didn't find anything. | |
7260 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/de
v/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p;
} | |
7261 }'`; fi | |
7262 else | |
7263 echo "$as_me: failed program was:" >&5 | |
7264 sed 's/^/| /' conftest.$ac_ext >&5 | |
7265 | |
7266 fi | |
7267 rm -f conftest.err conftest.$ac_objext \ | |
7268 conftest$ac_exeext conftest.$ac_ext | |
7269 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7270 | |
7271 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7272 # Warning - without using the other run time loading flags, | |
7273 # -berok will link without error, but may produce a broken library. | |
7274 no_undefined_flag=' ${wl}-bernotok' | |
7275 allow_undefined_flag=' ${wl}-berok' | |
7276 # Exported symbols can be pulled into shared objects from archives | |
7277 whole_archive_flag_spec='$convenience' | |
7278 archive_cmds_need_lc=yes | |
7279 # This is similar to how AIX traditionally builds its shared libraries
. | |
7280 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $li
bobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_un
defined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$so
name' | |
7281 fi | |
7282 fi | |
7283 ;; | |
7284 | |
7285 amigaos*) | |
7286 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $lib
name" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_
objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlib
rary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~
$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
7287 hardcode_libdir_flag_spec='-L$libdir' | |
7288 hardcode_minus_L=yes | |
7289 # see comment about different semantics on the GNU ld section | |
7290 ld_shlibs=no | |
7291 ;; | |
7292 | |
7293 bsdi[45]*) | |
7294 export_dynamic_flag_spec=-rdynamic | |
7295 ;; | |
7296 | |
7297 cygwin* | mingw* | pw32*) | |
7298 # When not using gcc, we currently assume that we are using | |
7299 # Microsoft Visual C++. | |
7300 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
7301 # no search path for DLLs. | |
7302 hardcode_libdir_flag_spec=' ' | |
7303 allow_undefined_flag=unsupported | |
7304 # Tell ltmain to make .lib files, not .a files. | |
7305 libext=lib | |
7306 # Tell ltmain to make .dll files, not .so files. | |
7307 shrext_cmds=".dll" | |
7308 # FIXME: Setting linknames here is a bad hack. | |
7309 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED
-e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
7310 # The linker will automatically build a .lib file if we build a DLL. | |
7311 old_archive_From_new_cmds='true' | |
7312 # FIXME: Should let the user specify the lib program. | |
7313 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
7314 fix_srcfile_path='`cygpath -w "$srcfile"`' | |
7315 enable_shared_with_static_runtimes=yes | |
7316 ;; | |
7317 | |
7318 darwin* | rhapsody*) | |
7319 case $host_os in | |
7320 rhapsody* | darwin1.[012]) | |
7321 allow_undefined_flag='${wl}-undefined ${wl}suppress' | |
7322 ;; | |
7323 *) # Darwin 1.3 on | |
7324 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
7325 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppr
ess' | |
7326 else | |
7327 case ${MACOSX_DEPLOYMENT_TARGET} in | |
7328 10.[012]) | |
7329 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}s
uppress' | |
7330 ;; | |
7331 10.*) | |
7332 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | |
7333 ;; | |
7334 esac | |
7335 fi | |
7336 ;; | |
7337 esac | |
7338 archive_cmds_need_lc=no | |
7339 hardcode_direct=no | |
7340 hardcode_automatic=yes | |
7341 hardcode_shlibpath_var=unsupported | |
7342 whole_archive_flag_spec='' | |
7343 link_all_deplibs=yes | |
7344 if test "$GCC" = yes ; then | |
7345 output_verbose_link_cmd='echo' | |
7346 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $de
plibs $compiler_flags -install_name $rpath/$soname $verstring' | |
7347 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$c
ompiler_flags' | |
7348 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't e
xist in older darwin lds | |
7349 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 $rp
ath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}
' | |
7350 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&,"
< $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefin
ed_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objd
ir/${libname}-symbols.expsym ${lib}' | |
7351 else | |
7352 case $cc_basename in | |
7353 xlc*) | |
7354 output_verbose_link_cmd='echo' | |
7355 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $de
plibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
7356 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplib
s$compiler_flags' | |
7357 # Don't fix this by using the ld -exported_symbols_list flag, it doesn
't exist in older darwin lds | |
7358 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_n
ame ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.e
xpsym ${lib}' | |
7359 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),
_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_und
efined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_
objdir/${libname}-symbols.expsym ${lib}' | |
7360 ;; | |
7361 *) | |
7362 ld_shlibs=no | |
7363 ;; | |
7364 esac | |
7365 fi | |
7366 ;; | |
7367 | |
7368 dgux*) | |
7369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7370 hardcode_libdir_flag_spec='-L$libdir' | |
7371 hardcode_shlibpath_var=no | |
7372 ;; | |
7373 | |
7374 freebsd1*) | |
7375 ld_shlibs=no | |
7376 ;; | |
7377 | |
7378 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
7379 # support. Future versions do this automatically, but an explicit c++rt0.o | |
7380 # does not break anything, and helps significantly (at the cost of a little | |
7381 # extra space). | |
7382 freebsd2.2*) | |
7383 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr
/lib/c++rt0.o' | |
7384 hardcode_libdir_flag_spec='-R$libdir' | |
7385 hardcode_direct=yes | |
7386 hardcode_shlibpath_var=no | |
7387 ;; | |
7388 | |
7389 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
7390 freebsd2*) | |
7391 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7392 hardcode_direct=yes | |
7393 hardcode_minus_L=yes | |
7394 hardcode_shlibpath_var=no | |
7395 ;; | |
7396 | |
7397 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
7398 freebsd* | dragonfly*) | |
7399 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
7400 hardcode_libdir_flag_spec='-R$libdir' | |
7401 hardcode_direct=yes | |
7402 hardcode_shlibpath_var=no | |
7403 ;; | |
7404 | |
7405 # GNU/kFreeBSD uses gcc -shared to do shared libraries. | |
7406 kfreebsd*-gnu) | |
7407 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
7408 hardcode_libdir_flag_spec='-R$libdir' | |
7409 hardcode_direct=yes | |
7410 hardcode_shlibpath_var=no | |
7411 link_all_deplibs=no | |
7412 ;; | |
7413 | |
7414 hpux9*) | |
7415 if test "$GCC" = yes; then | |
7416 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' | |
7417 else | |
7418 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $o
utput_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname
= $lib || mv $output_objdir/$soname $lib' | |
7419 fi | |
7420 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7421 hardcode_libdir_separator=: | |
7422 hardcode_direct=yes | |
7423 | |
7424 # hardcode_minus_L: Not really in the search PATH, | |
7425 # but as the default location of the library. | |
7426 hardcode_minus_L=yes | |
7427 export_dynamic_flag_spec='${wl}-E' | |
7428 ;; | |
7429 | |
7430 hpux10*) | |
7431 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
7432 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$insta
ll_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
7433 else | |
7434 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $dep
libs $linker_flags' | |
7435 fi | |
7436 if test "$with_gnu_ld" = no; then | |
7437 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7438 hardcode_libdir_separator=: | |
7439 | |
7440 hardcode_direct=yes | |
7441 export_dynamic_flag_spec='${wl}-E' | |
7442 | |
7443 # hardcode_minus_L: Not really in the search PATH, | |
7444 # but as the default location of the library. | |
7445 hardcode_minus_L=yes | |
7446 fi | |
7447 ;; | |
7448 | |
7449 hpux11*) | |
7450 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
7451 case $host_cpu in | |
7452 hppa*64*) | |
7453 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $depli
bs $compiler_flags' | |
7454 ;; | |
7455 ia64*) | |
7456 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o
$lib $libobjs $deplibs $compiler_flags' | |
7457 ;; | |
7458 *) | |
7459 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$ins
tall_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
7460 ;; | |
7461 esac | |
7462 else | |
7463 case $host_cpu in | |
7464 hppa*64*) | |
7465 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $c
ompiler_flags' | |
7466 ;; | |
7467 ia64*) | |
7468 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib
$libobjs $deplibs $compiler_flags' | |
7469 ;; | |
7470 *) | |
7471 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir
-o $lib $libobjs $deplibs $compiler_flags' | |
7472 ;; | |
7473 esac | |
7474 fi | |
7475 if test "$with_gnu_ld" = no; then | |
7476 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7477 hardcode_libdir_separator=: | |
7478 | |
7479 case $host_cpu in | |
7480 hppa*64*|ia64*) | |
7481 hardcode_libdir_flag_spec_ld='+b $libdir' | |
7482 hardcode_direct=no | |
7483 hardcode_shlibpath_var=no | |
7484 ;; | |
7485 *) | |
7486 hardcode_direct=yes | |
7487 export_dynamic_flag_spec='${wl}-E' | |
7488 | |
7489 # hardcode_minus_L: Not really in the search PATH, | |
7490 # but as the default location of the library. | |
7491 hardcode_minus_L=yes | |
7492 ;; | |
7493 esac | |
7494 fi | |
7495 ;; | |
7496 | |
7497 irix5* | irix6* | nonstopux*) | |
7498 if test "$GCC" = yes; then | |
7499 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' | |
7500 else | |
7501 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $sonam
e `test -n "$verstring" && echo -set_version $verstring` -update_registry ${outp
ut_objdir}/so_locations -o $lib' | |
7502 hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
7503 fi | |
7504 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7505 hardcode_libdir_separator=: | |
7506 link_all_deplibs=yes | |
7507 ;; | |
7508 | |
7509 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | |
7510 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
7511 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
# a.out | |
7512 else | |
7513 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'
# ELF | |
7514 fi | |
7515 hardcode_libdir_flag_spec='-R$libdir' | |
7516 hardcode_direct=yes | |
7517 hardcode_shlibpath_var=no | |
7518 ;; | |
7519 | |
7520 newsos6) | |
7521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7522 hardcode_direct=yes | |
7523 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7524 hardcode_libdir_separator=: | |
7525 hardcode_shlibpath_var=no | |
7526 ;; | |
7527 | |
7528 openbsd*) | |
7529 hardcode_direct=yes | |
7530 hardcode_shlibpath_var=no | |
7531 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$h
ost_cpu" = "openbsd2.8-powerpc"; then | |
7532 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_
flags' | |
7533 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $co
mpiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
7534 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7535 export_dynamic_flag_spec='${wl}-E' | |
7536 else | |
7537 case $host_os in | |
7538 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
7539 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags
' | |
7540 hardcode_libdir_flag_spec='-R$libdir' | |
7541 ;; | |
7542 *) | |
7543 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compil
er_flags' | |
7544 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7545 ;; | |
7546 esac | |
7547 fi | |
7548 ;; | |
7549 | |
7550 os2*) | |
7551 hardcode_libdir_flag_spec='-L$libdir' | |
7552 hardcode_minus_L=yes | |
7553 allow_undefined_flag=unsupported | |
7554 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libn
ame.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DA
TA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$l
ibname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $outp
ut_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_fl
ags $output_objdir/$libname.def' | |
7555 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_obj
dir/$libname.def' | |
7556 ;; | |
7557 | |
7558 osf3*) | |
7559 if test "$GCC" = yes; then | |
7560 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
7561 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $comp
iler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_ver
sion ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -
o $lib' | |
7562 else | |
7563 allow_undefined_flag=' -expect_unresolved \*' | |
7564 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $link
er_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring`
-update_registry ${output_objdir}/so_locations -o $lib' | |
7565 fi | |
7566 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7567 hardcode_libdir_separator=: | |
7568 ;; | |
7569 | |
7570 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
7571 if test "$GCC" = yes; then | |
7572 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
7573 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $comp
iler_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' | |
7574 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7575 else | |
7576 allow_undefined_flag=' -expect_unresolved \*' | |
7577 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $link
er_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verst
ring` -update_registry ${output_objdir}/so_locations -o $lib' | |
7578 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n
" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
7579 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobj
s $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring
` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | |
7580 | |
7581 # Both c and cxx compiler support -rpath directly | |
7582 hardcode_libdir_flag_spec='-rpath $libdir' | |
7583 fi | |
7584 hardcode_libdir_separator=: | |
7585 ;; | |
7586 | |
7587 solaris*) | |
7588 no_undefined_flag=' -z text' | |
7589 if test "$GCC" = yes; then | |
7590 wlarc='${wl}' | |
7591 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs
$compiler_flags' | |
7592 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols |
$SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
7593 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobj
s $deplibs $compiler_flags~$rm $lib.exp' | |
7594 else | |
7595 wlarc='' | |
7596 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs
$deplibs $linker_flags' | |
7597 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols |
$SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
7598 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $d
eplibs $linker_flags~$rm $lib.exp' | |
7599 fi | |
7600 hardcode_libdir_flag_spec='-R$libdir' | |
7601 hardcode_shlibpath_var=no | |
7602 case $host_os in | |
7603 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
7604 *) | |
7605 # The compiler driver will combine linker options so we | |
7606 # cannot just pass the convience library names through | |
7607 # without $wl, iff we do not link with $LD. | |
7608 # Luckily, gcc supports the same syntax we need for Sun Studio. | |
7609 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
7610 case $wlarc in | |
7611 '') | |
7612 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
;; | |
7613 *) | |
7614 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenie
nce\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; don
e; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | |
7615 esac ;; | |
7616 esac | |
7617 link_all_deplibs=yes | |
7618 ;; | |
7619 | |
7620 sunos4*) | |
7621 if test "x$host_vendor" = xsequent; then | |
7622 # Use $CC to link under sequent, because it throws in some extra .o | |
7623 # files that make .init and .fini sections work. | |
7624 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler
_flags' | |
7625 else | |
7626 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $
linker_flags' | |
7627 fi | |
7628 hardcode_libdir_flag_spec='-L$libdir' | |
7629 hardcode_direct=yes | |
7630 hardcode_minus_L=yes | |
7631 hardcode_shlibpath_var=no | |
7632 ;; | |
7633 | |
7634 sysv4) | |
7635 case $host_vendor in | |
7636 sni) | |
7637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag
s' | |
7638 hardcode_direct=yes # is this really true??? | |
7639 ;; | |
7640 siemens) | |
7641 ## LD is ld it makes a PLAMLIB | |
7642 ## CC just makes a GrossModule. | |
7643 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
7644 reload_cmds='$CC -r -o $output$reload_objs' | |
7645 hardcode_direct=no | |
7646 ;; | |
7647 motorola) | |
7648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag
s' | |
7649 hardcode_direct=no #Motorola manual says yes, but my tests say they li
e | |
7650 ;; | |
7651 esac | |
7652 runpath_var='LD_RUN_PATH' | |
7653 hardcode_shlibpath_var=no | |
7654 ;; | |
7655 | |
7656 sysv4.3*) | |
7657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7658 hardcode_shlibpath_var=no | |
7659 export_dynamic_flag_spec='-Bexport' | |
7660 ;; | |
7661 | |
7662 sysv4*MP*) | |
7663 if test -d /usr/nec; then | |
7664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7665 hardcode_shlibpath_var=no | |
7666 runpath_var=LD_RUN_PATH | |
7667 hardcode_runpath_var=yes | |
7668 ld_shlibs=yes | |
7669 fi | |
7670 ;; | |
7671 | |
7672 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | |
7673 no_undefined_flag='${wl}-z,text' | |
7674 archive_cmds_need_lc=no | |
7675 hardcode_shlibpath_var=no | |
7676 runpath_var='LD_RUN_PATH' | |
7677 | |
7678 if test "$GCC" = yes; then | |
7679 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $com
piler_flags' | |
7680 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$
soname -o $lib $libobjs $deplibs $compiler_flags' | |
7681 else | |
7682 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler
_flags' | |
7683 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$sonam
e -o $lib $libobjs $deplibs $compiler_flags' | |
7684 fi | |
7685 ;; | |
7686 | |
7687 sysv5* | sco3.2v5* | sco5v6*) | |
7688 # Note: We can NOT use -z defs as we might desire, because we do not | |
7689 # link with -lc, and that would cause any symbols used from libc to | |
7690 # always be unresolved, which means just about no library would | |
7691 # ever link correctly. If we're not using GNU ld we use -z text | |
7692 # though, which does catch some bad symbols but isn't as heavy-handed | |
7693 # as -z defs. | |
7694 no_undefined_flag='${wl}-z,text' | |
7695 allow_undefined_flag='${wl}-z,nodefs' | |
7696 archive_cmds_need_lc=no | |
7697 hardcode_shlibpath_var=no | |
7698 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`
' | |
7699 hardcode_libdir_separator=':' | |
7700 link_all_deplibs=yes | |
7701 export_dynamic_flag_spec='${wl}-Bexport' | |
7702 runpath_var='LD_RUN_PATH' | |
7703 | |
7704 if test "$GCC" = yes; then | |
7705 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$son
ame -o $lib $libobjs $deplibs $compiler_flags' | |
7706 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\
${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_fla
gs' | |
7707 else | |
7708 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -
o $lib $libobjs $deplibs $compiler_flags' | |
7709 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCO
ABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7710 fi | |
7711 ;; | |
7712 | |
7713 uts4*) | |
7714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7715 hardcode_libdir_flag_spec='-L$libdir' | |
7716 hardcode_shlibpath_var=no | |
7717 ;; | |
7718 | |
7719 *) | |
7720 ld_shlibs=no | |
7721 ;; | |
7722 esac | |
7723 fi | |
7724 | |
7725 echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
7726 echo "${ECHO_T}$ld_shlibs" >&6 | |
7727 test "$ld_shlibs" = no && can_build_shared=no | |
7728 | |
7729 # | |
7730 # Do we need to explicitly link libc? | |
7731 # | |
7732 case "x$archive_cmds_need_lc" in | |
7733 x|xyes) | |
7734 # Assume -lc should be added | |
7735 archive_cmds_need_lc=yes | |
7736 | |
7737 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
7738 case $archive_cmds in | |
7739 *'~'*) | |
7740 # FIXME: we may have to deal with multi-command sequences. | |
7741 ;; | |
7742 '$CC '*) | |
7743 # Test whether the compiler implicitly links with -lc since on some | |
7744 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
7745 # to ld, don't add -lc before -lgcc. | |
7746 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in"
>&5 | |
7747 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
6 | |
7748 $rm conftest* | |
7749 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7750 | |
7751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7752 (eval $ac_compile) 2>&5 | |
7753 ac_status=$? | |
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7755 (exit $ac_status); } 2>conftest.err; then | |
7756 soname=conftest | |
7757 lib=conftest | |
7758 libobjs=conftest.$ac_objext | |
7759 deplibs= | |
7760 wl=$lt_prog_compiler_wl | |
7761 pic_flag=$lt_prog_compiler_pic | |
7762 compiler_flags=-v | |
7763 linker_flags=-v | |
7764 verstring= | |
7765 output_objdir=. | |
7766 libname=conftest | |
7767 lt_save_allow_undefined_flag=$allow_undefined_flag | |
7768 allow_undefined_flag= | |
7769 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \
" \>/dev/null 2\>\&1\"") >&5 | |
7770 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
7771 ac_status=$? | |
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7773 (exit $ac_status); } | |
7774 then | |
7775 archive_cmds_need_lc=no | |
7776 else | |
7777 archive_cmds_need_lc=yes | |
7778 fi | |
7779 allow_undefined_flag=$lt_save_allow_undefined_flag | |
7780 else | |
7781 cat conftest.err 1>&5 | |
7782 fi | |
7783 $rm conftest* | |
7784 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
7785 echo "${ECHO_T}$archive_cmds_need_lc" >&6 | |
7786 ;; | |
7787 esac | |
7788 fi | |
7789 ;; | |
7790 esac | |
7791 | |
7792 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
7793 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
7794 library_names_spec= | |
7795 libname_spec='lib$name' | |
7796 soname_spec= | |
7797 shrext_cmds=".so" | |
7798 postinstall_cmds= | |
7799 postuninstall_cmds= | |
7800 finish_cmds= | |
7801 finish_eval= | |
7802 shlibpath_var= | |
7803 shlibpath_overrides_runpath=unknown | |
7804 version_type=none | |
7805 dynamic_linker="$host_os ld.so" | |
7806 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
7807 if test "$GCC" = yes; then | |
7808 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -
e "s/^libraries://" -e "s,=/,/,g"` | |
7809 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
7810 # if the path contains ";" then we assume it to be the separator | |
7811 # otherwise default to the standard path separator (i.e. ":") - it is | |
7812 # assumed that no part of a normal pathname contains ";" but that should | |
7813 # okay in the real world where ";" in dirpaths is itself problematic. | |
7814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /
g'` | |
7815 else | |
7816 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PA
TH_SEPARATOR/ /g"` | |
7817 fi | |
7818 else | |
7819 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
7820 fi | |
7821 need_lib_prefix=unknown | |
7822 hardcode_into_libs=no | |
7823 | |
7824 # when you set need_version to no, make sure it does not cause -set_version | |
7825 # flags to be left without arguments | |
7826 need_version=unknown | |
7827 | |
7828 case $host_os in | |
7829 aix3*) | |
7830 version_type=linux | |
7831 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
7832 shlibpath_var=LIBPATH | |
7833 | |
7834 # AIX 3 has no versioning support, so we append a major version to the name. | |
7835 soname_spec='${libname}${release}${shared_ext}$major' | |
7836 ;; | |
7837 | |
7838 aix4* | aix5*) | |
7839 version_type=linux | |
7840 need_lib_prefix=no | |
7841 need_version=no | |
7842 hardcode_into_libs=yes | |
7843 if test "$host_cpu" = ia64; then | |
7844 # AIX 5 supports IA64 | |
7845 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${rele
ase}${shared_ext}$versuffix $libname${shared_ext}' | |
7846 shlibpath_var=LD_LIBRARY_PATH | |
7847 else | |
7848 # With GCC up to 2.95.x, collect2 would create an import file | |
7849 # for dependence libraries. The import file would start with | |
7850 # the line `#! .'. This would cause the generated library to | |
7851 # depend on `.', always an invalid library. This was fixed in | |
7852 # development snapshots of GCC prior to 3.0. | |
7853 case $host_os in | |
7854 aix4 | aix4.[01] | aix4.[01].*) | |
7855 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
7856 echo ' yes ' | |
7857 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
7858 : | |
7859 else | |
7860 can_build_shared=no | |
7861 fi | |
7862 ;; | |
7863 esac | |
7864 # AIX (on Power*) has no versioning support, so currently we can not hardcod
e correct | |
7865 # soname into executable. Probably we can add versioning support to | |
7866 # collect2, so additional links can be useful in future. | |
7867 if test "$aix_use_runtimelinking" = yes; then | |
7868 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
7869 # instead of lib<name>.a to let people know that these are not | |
7870 # typical AIX shared libraries. | |
7871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}
${release}${shared_ext}$major $libname${shared_ext}' | |
7872 else | |
7873 # We preserve .a as extension for shared libraries through AIX4.2 | |
7874 # and later when we are not doing run time linking. | |
7875 library_names_spec='${libname}${release}.a $libname.a' | |
7876 soname_spec='${libname}${release}${shared_ext}$major' | |
7877 fi | |
7878 shlibpath_var=LIBPATH | |
7879 fi | |
7880 ;; | |
7881 | |
7882 amigaos*) | |
7883 library_names_spec='$libname.ixlibrary $libname.a' | |
7884 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
7885 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ech
o "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/lib
s/${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' | |
7886 ;; | |
7887 | |
7888 beos*) | |
7889 library_names_spec='${libname}${shared_ext}' | |
7890 dynamic_linker="$host_os ld.so" | |
7891 shlibpath_var=LIBRARY_PATH | |
7892 ;; | |
7893 | |
7894 bsdi[45]*) | |
7895 version_type=linux | |
7896 need_version=no | |
7897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
7898 soname_spec='${libname}${release}${shared_ext}$major' | |
7899 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
7900 shlibpath_var=LD_LIBRARY_PATH | |
7901 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /
usr/local/lib" | |
7902 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
7903 # the default ld.so.conf also contains /usr/contrib/lib and | |
7904 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
7905 # libtool to hard-code these into programs | |
7906 ;; | |
7907 | |
7908 cygwin* | mingw* | pw32*) | |
7909 version_type=windows | |
7910 shrext_cmds=".dll" | |
7911 need_version=no | |
7912 need_lib_prefix=no | |
7913 | |
7914 case $GCC,$host_os in | |
7915 yes,cygwin* | yes,mingw* | yes,pw32*) | |
7916 library_names_spec='$libname.dll.a' | |
7917 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
7918 postinstall_cmds='base_file=`basename \${file}`~ | |
7919 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''
`~ | |
7920 dldir=$destdir/`dirname \$dlpath`~ | |
7921 test -d \$dldir || mkdir -p \$dldir~ | |
7922 $install_prog $dir/$dlname \$dldir/$dlname~ | |
7923 chmod a+x \$dldir/$dlname' | |
7924 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
7925 dlpath=$dir/\$dldll~ | |
7926 $rm \$dlpath' | |
7927 shlibpath_overrides_runpath=yes | |
7928 | |
7929 case $host_os in | |
7930 cygwin*) | |
7931 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
7932 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $S
ED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
7933 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
7934 ;; | |
7935 mingw*) | |
7936 # MinGW DLLs use traditional 'lib' prefix | |
7937 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}
${shared_ext}' | |
7938 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $S
ED -e "s/^libraries://" -e "s,=/,/,g"` | |
7939 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
7940 # It is most probably a Windows format PATH printed by | |
7941 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
7942 # path with ; separators, and with drive letters. We can handle the | |
7943 # drive letters (cygwin fileutils understands them), so leave them, | |
7944 # especially as we might pass files found there to a mingw objdump, | |
7945 # which wouldn't understand a cygwinified path. Ahh. | |
7946 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/
;/ /g'` | |
7947 else | |
7948 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g"` | |
7949 fi | |
7950 ;; | |
7951 pw32*) | |
7952 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
7953 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release
} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
7954 ;; | |
7955 esac | |
7956 ;; | |
7957 | |
7958 *) | |
7959 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versu
ffix}${shared_ext} $libname.lib' | |
7960 ;; | |
7961 esac | |
7962 dynamic_linker='Win32 ld.exe' | |
7963 # FIXME: first we should search . and the directory the executable is in | |
7964 shlibpath_var=PATH | |
7965 ;; | |
7966 | |
7967 darwin* | rhapsody*) | |
7968 dynamic_linker="$host_os dyld" | |
7969 version_type=darwin | |
7970 need_lib_prefix=no | |
7971 need_version=no | |
7972 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${re
lease}${major}$shared_ext ${libname}$shared_ext' | |
7973 soname_spec='${libname}${release}${major}$shared_ext' | |
7974 shlibpath_overrides_runpath=yes | |
7975 shlibpath_var=DYLD_LIBRARY_PATH | |
7976 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
7977 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
7978 if test "$GCC" = yes; then | |
7979 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 /us
r/lib /usr/local/lib,g"` | |
7980 else | |
7981 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
7982 fi | |
7983 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
7984 ;; | |
7985 | |
7986 dgux*) | |
7987 version_type=linux | |
7988 need_lib_prefix=no | |
7989 need_version=no | |
7990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname$shared_ext' | |
7991 soname_spec='${libname}${release}${shared_ext}$major' | |
7992 shlibpath_var=LD_LIBRARY_PATH | |
7993 ;; | |
7994 | |
7995 freebsd1*) | |
7996 dynamic_linker=no | |
7997 ;; | |
7998 | |
7999 kfreebsd*-gnu) | |
8000 version_type=linux | |
8001 need_lib_prefix=no | |
8002 need_version=no | |
8003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${shared_ext}' | |
8004 soname_spec='${libname}${release}${shared_ext}$major' | |
8005 shlibpath_var=LD_LIBRARY_PATH | |
8006 shlibpath_overrides_runpath=no | |
8007 hardcode_into_libs=yes | |
8008 dynamic_linker='GNU ld.so' | |
8009 ;; | |
8010 | |
8011 freebsd* | dragonfly*) | |
8012 # DragonFly does not have aout. When/if they implement a new | |
8013 # versioning mechanism, adjust this. | |
8014 if test -x /usr/bin/objformat; then | |
8015 objformat=`/usr/bin/objformat` | |
8016 else | |
8017 case $host_os in | |
8018 freebsd[123]*) objformat=aout ;; | |
8019 *) objformat=elf ;; | |
8020 esac | |
8021 fi | |
8022 version_type=freebsd-$objformat | |
8023 case $version_type in | |
8024 freebsd-elf*) | |
8025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}
${release}${shared_ext} $libname${shared_ext}' | |
8026 need_version=no | |
8027 need_lib_prefix=no | |
8028 ;; | |
8029 freebsd-*) | |
8030 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${
shared_ext}$versuffix' | |
8031 need_version=yes | |
8032 ;; | |
8033 esac | |
8034 shlibpath_var=LD_LIBRARY_PATH | |
8035 case $host_os in | |
8036 freebsd2*) | |
8037 shlibpath_overrides_runpath=yes | |
8038 ;; | |
8039 freebsd3.[01]* | freebsdelf3.[01]*) | |
8040 shlibpath_overrides_runpath=yes | |
8041 hardcode_into_libs=yes | |
8042 ;; | |
8043 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
8044 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
8045 shlibpath_overrides_runpath=no | |
8046 hardcode_into_libs=yes | |
8047 ;; | |
8048 freebsd*) # from 4.6 on | |
8049 shlibpath_overrides_runpath=yes | |
8050 hardcode_into_libs=yes | |
8051 ;; | |
8052 esac | |
8053 ;; | |
8054 | |
8055 gnu*) | |
8056 version_type=linux | |
8057 need_lib_prefix=no | |
8058 need_version=no | |
8059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}${major} ${libname}${shared_ext}' | |
8060 soname_spec='${libname}${release}${shared_ext}$major' | |
8061 shlibpath_var=LD_LIBRARY_PATH | |
8062 hardcode_into_libs=yes | |
8063 ;; | |
8064 | |
8065 hpux9* | hpux10* | hpux11*) | |
8066 # Give a soname corresponding to the major version so that dld.sl refuses to | |
8067 # link against other versions. | |
8068 version_type=sunos | |
8069 need_lib_prefix=no | |
8070 need_version=no | |
8071 case $host_cpu in | |
8072 ia64*) | |
8073 shrext_cmds='.so' | |
8074 hardcode_into_libs=yes | |
8075 dynamic_linker="$host_os dld.so" | |
8076 shlibpath_var=LD_LIBRARY_PATH | |
8077 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major $libname${shared_ext}' | |
8079 soname_spec='${libname}${release}${shared_ext}$major' | |
8080 if test "X$HPUX_IA64_MODE" = X32; then | |
8081 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local
/lib" | |
8082 else | |
8083 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
8084 fi | |
8085 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8086 ;; | |
8087 hppa*64*) | |
8088 shrext_cmds='.sl' | |
8089 hardcode_into_libs=yes | |
8090 dynamic_linker="$host_os dld.sl" | |
8091 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
8092 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}$
{release}${shared_ext}$major $libname${shared_ext}' | |
8094 soname_spec='${libname}${release}${shared_ext}$major' | |
8095 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
8096 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8097 ;; | |
8098 *) | |
8099 shrext_cmds='.sl' | |
8100 dynamic_linker="$host_os dld.sl" | |
8101 shlibpath_var=SHLIB_PATH | |
8102 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
8103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major $libname${shared_ext}' | |
8104 soname_spec='${libname}${release}${shared_ext}$major' | |
8105 ;; | |
8106 esac | |
8107 # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
8108 postinstall_cmds='chmod 555 $lib' | |
8109 ;; | |
8110 | |
8111 interix3*) | |
8112 version_type=linux | |
8113 need_lib_prefix=no | |
8114 need_version=no | |
8115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${shared_ext}' | |
8116 soname_spec='${libname}${release}${shared_ext}$major' | |
8117 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
8118 shlibpath_var=LD_LIBRARY_PATH | |
8119 shlibpath_overrides_runpath=no | |
8120 hardcode_into_libs=yes | |
8121 ;; | |
8122 | |
8123 irix5* | irix6* | nonstopux*) | |
8124 case $host_os in | |
8125 nonstopux*) version_type=nonstopux ;; | |
8126 *) | |
8127 if test "$lt_cv_prog_gnu_ld" = yes; then | |
8128 version_type=linux | |
8129 else | |
8130 version_type=irix | |
8131 fi ;; | |
8132 esac | |
8133 need_lib_prefix=no | |
8134 need_version=no | |
8135 soname_spec='${libname}${release}${shared_ext}$major' | |
8136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext
}' | |
8137 case $host_os in | |
8138 irix5* | nonstopux*) | |
8139 libsuff= shlibsuff= | |
8140 ;; | |
8141 *) | |
8142 case $LD in # libtool.m4 will add one of these switches to LD | |
8143 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
8144 libsuff= shlibsuff= libmagic=32-bit;; | |
8145 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
8146 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
8147 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
8148 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
8149 *) libsuff= shlibsuff= libmagic=never-match;; | |
8150 esac | |
8151 ;; | |
8152 esac | |
8153 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
8154 shlibpath_overrides_runpath=no | |
8155 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${li
bsuff}" | |
8156 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
8157 hardcode_into_libs=yes | |
8158 ;; | |
8159 | |
8160 # No shared lib support for Linux oldld, aout, or coff. | |
8161 linux*oldld* | linux*aout* | linux*coff*) | |
8162 dynamic_linker=no | |
8163 ;; | |
8164 | |
8165 # This must be Linux ELF. | |
8166 linux*) | |
8167 version_type=linux | |
8168 need_lib_prefix=no | |
8169 need_version=no | |
8170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
8171 soname_spec='${libname}${release}${shared_ext}$major' | |
8172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
8173 shlibpath_var=LD_LIBRARY_PATH | |
8174 shlibpath_overrides_runpath=no | |
8175 # This implies no fast_install, which is unacceptable. | |
8176 # Some rework will be needed to allow for fast_install | |
8177 # before this can be enabled. | |
8178 hardcode_into_libs=yes | |
8179 | |
8180 # Append ld.so.conf contents to the search path | |
8181 if test -f /etc/ld.so.conf; then | |
8182 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); ski
p = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*
//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
8183 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
8184 fi | |
8185 | |
8186 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
8187 # powerpc, because MkLinux only supported shared libraries with the | |
8188 # GNU dynamic linker. Since this was broken with cross compilers, | |
8189 # most powerpc-linux boxes support dynamic linking these days and | |
8190 # people can always --disable-shared, the test was removed, and we | |
8191 # assume the GNU/Linux dynamic linker is in use. | |
8192 dynamic_linker='GNU/Linux ld.so' | |
8193 ;; | |
8194 | |
8195 netbsdelf*-gnu) | |
8196 version_type=linux | |
8197 need_lib_prefix=no | |
8198 need_version=no | |
8199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${shared_ext}' | |
8200 soname_spec='${libname}${release}${shared_ext}$major' | |
8201 shlibpath_var=LD_LIBRARY_PATH | |
8202 shlibpath_overrides_runpath=no | |
8203 hardcode_into_libs=yes | |
8204 dynamic_linker='NetBSD ld.elf_so' | |
8205 ;; | |
8206 | |
8207 knetbsd*-gnu) | |
8208 version_type=linux | |
8209 need_lib_prefix=no | |
8210 need_version=no | |
8211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${shared_ext}' | |
8212 soname_spec='${libname}${release}${shared_ext}$major' | |
8213 shlibpath_var=LD_LIBRARY_PATH | |
8214 shlibpath_overrides_runpath=no | |
8215 hardcode_into_libs=yes | |
8216 dynamic_linker='GNU ld.so' | |
8217 ;; | |
8218 | |
8219 netbsd*) | |
8220 version_type=sunos | |
8221 need_lib_prefix=no | |
8222 need_version=no | |
8223 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
8224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
shared_ext}$versuffix' | |
8225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
8226 dynamic_linker='NetBSD (a.out) ld.so' | |
8227 else | |
8228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major ${libname}${shared_ext}' | |
8229 soname_spec='${libname}${release}${shared_ext}$major' | |
8230 dynamic_linker='NetBSD ld.elf_so' | |
8231 fi | |
8232 shlibpath_var=LD_LIBRARY_PATH | |
8233 shlibpath_overrides_runpath=yes | |
8234 hardcode_into_libs=yes | |
8235 ;; | |
8236 | |
8237 newsos6) | |
8238 version_type=linux | |
8239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
8240 shlibpath_var=LD_LIBRARY_PATH | |
8241 shlibpath_overrides_runpath=yes | |
8242 ;; | |
8243 | |
8244 nto-qnx*) | |
8245 version_type=linux | |
8246 need_lib_prefix=no | |
8247 need_version=no | |
8248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
8249 soname_spec='${libname}${release}${shared_ext}$major' | |
8250 shlibpath_var=LD_LIBRARY_PATH | |
8251 shlibpath_overrides_runpath=yes | |
8252 ;; | |
8253 | |
8254 openbsd*) | |
8255 version_type=sunos | |
8256 sys_lib_dlsearch_path_spec="/usr/lib" | |
8257 need_lib_prefix=no | |
8258 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
8259 case $host_os in | |
8260 openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
8261 *) need_version=no ;; | |
8262 esac | |
8263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh
ared_ext}$versuffix' | |
8264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
8265 shlibpath_var=LD_LIBRARY_PATH | |
8266 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_
cpu" = "openbsd2.8-powerpc"; then | |
8267 case $host_os in | |
8268 openbsd2.[89] | openbsd2.[89].*) | |
8269 shlibpath_overrides_runpath=no | |
8270 ;; | |
8271 *) | |
8272 shlibpath_overrides_runpath=yes | |
8273 ;; | |
8274 esac | |
8275 else | |
8276 shlibpath_overrides_runpath=yes | |
8277 fi | |
8278 ;; | |
8279 | |
8280 os2*) | |
8281 libname_spec='$name' | |
8282 shrext_cmds=".dll" | |
8283 need_lib_prefix=no | |
8284 library_names_spec='$libname${shared_ext} $libname.a' | |
8285 dynamic_linker='OS/2 ld.exe' | |
8286 shlibpath_var=LIBPATH | |
8287 ;; | |
8288 | |
8289 osf3* | osf4* | osf5*) | |
8290 version_type=osf | |
8291 need_lib_prefix=no | |
8292 need_version=no | |
8293 soname_spec='${libname}${release}${shared_ext}$major' | |
8294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
8295 shlibpath_var=LD_LIBRARY_PATH | |
8296 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib
/usr/local/lib /var/shlib" | |
8297 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
8298 ;; | |
8299 | |
8300 solaris*) | |
8301 version_type=linux | |
8302 need_lib_prefix=no | |
8303 need_version=no | |
8304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
8305 soname_spec='${libname}${release}${shared_ext}$major' | |
8306 shlibpath_var=LD_LIBRARY_PATH | |
8307 shlibpath_overrides_runpath=yes | |
8308 hardcode_into_libs=yes | |
8309 # ldd complains unless libraries are executable | |
8310 postinstall_cmds='chmod +x $lib' | |
8311 ;; | |
8312 | |
8313 sunos4*) | |
8314 version_type=sunos | |
8315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh
ared_ext}$versuffix' | |
8316 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
8317 shlibpath_var=LD_LIBRARY_PATH | |
8318 shlibpath_overrides_runpath=yes | |
8319 if test "$with_gnu_ld" = yes; then | |
8320 need_lib_prefix=no | |
8321 fi | |
8322 need_version=yes | |
8323 ;; | |
8324 | |
8325 sysv4 | sysv4.3*) | |
8326 version_type=linux | |
8327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
8328 soname_spec='${libname}${release}${shared_ext}$major' | |
8329 shlibpath_var=LD_LIBRARY_PATH | |
8330 case $host_vendor in | |
8331 sni) | |
8332 shlibpath_overrides_runpath=no | |
8333 need_lib_prefix=no | |
8334 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
8335 runpath_var=LD_RUN_PATH | |
8336 ;; | |
8337 siemens) | |
8338 need_lib_prefix=no | |
8339 ;; | |
8340 motorola) | |
8341 need_lib_prefix=no | |
8342 need_version=no | |
8343 shlibpath_overrides_runpath=no | |
8344 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
8345 ;; | |
8346 esac | |
8347 ;; | |
8348 | |
8349 sysv4*MP*) | |
8350 if test -d /usr/nec ;then | |
8351 version_type=linux | |
8352 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$
major $libname${shared_ext}' | |
8353 soname_spec='$libname${shared_ext}.$major' | |
8354 shlibpath_var=LD_LIBRARY_PATH | |
8355 fi | |
8356 ;; | |
8357 | |
8358 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
8359 version_type=freebsd-elf | |
8360 need_lib_prefix=no | |
8361 need_version=no | |
8362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext} $libname${shared_ext}' | |
8363 soname_spec='${libname}${release}${shared_ext}$major' | |
8364 shlibpath_var=LD_LIBRARY_PATH | |
8365 hardcode_into_libs=yes | |
8366 if test "$with_gnu_ld" = yes; then | |
8367 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib
/lib' | |
8368 shlibpath_overrides_runpath=no | |
8369 else | |
8370 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
8371 shlibpath_overrides_runpath=yes | |
8372 case $host_os in | |
8373 sco3.2v5*) | |
8374 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
8375 ;; | |
8376 esac | |
8377 fi | |
8378 sys_lib_dlsearch_path_spec='/usr/lib' | |
8379 ;; | |
8380 | |
8381 uts4*) | |
8382 version_type=linux | |
8383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
8384 soname_spec='${libname}${release}${shared_ext}$major' | |
8385 shlibpath_var=LD_LIBRARY_PATH | |
8386 ;; | |
8387 | |
8388 *) | |
8389 dynamic_linker=no | |
8390 ;; | |
8391 esac | |
8392 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
8393 echo "${ECHO_T}$dynamic_linker" >&6 | |
8394 test "$dynamic_linker" = no && can_build_shared=no | |
8395 | |
8396 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
8397 if test "$GCC" = yes; then | |
8398 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPIL
ER_PATH LIBRARY_PATH" | |
8399 fi | |
8400 | |
8401 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
8402 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >
&6 | |
8403 hardcode_action= | |
8404 if test -n "$hardcode_libdir_flag_spec" || \ | |
8405 test -n "$runpath_var" || \ | |
8406 test "X$hardcode_automatic" = "Xyes" ; then | |
8407 | |
8408 # We can hardcode non-existant directories. | |
8409 if test "$hardcode_direct" != no && | |
8410 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
8411 # have to relink, otherwise we might link with an installed library | |
8412 # when we should be linking with a yet-to-be-installed one | |
8413 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | |
8414 test "$hardcode_minus_L" != no; then | |
8415 # Linking always hardcodes the temporary library directory. | |
8416 hardcode_action=relink | |
8417 else | |
8418 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
8419 hardcode_action=immediate | |
8420 fi | |
8421 else | |
8422 # We cannot hardcode anything, or else we can only hardcode existing | |
8423 # directories. | |
8424 hardcode_action=unsupported | |
8425 fi | |
8426 echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
8427 echo "${ECHO_T}$hardcode_action" >&6 | |
8428 | |
8429 if test "$hardcode_action" = relink; then | |
8430 # Fast installation is not supported | |
8431 enable_fast_install=no | |
8432 elif test "$shlibpath_overrides_runpath" = yes || | |
8433 test "$enable_shared" = no; then | |
8434 # Fast installation is not necessary | |
8435 enable_fast_install=needless | |
8436 fi | |
8437 | |
8438 striplib= | |
8439 old_striplib= | |
8440 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
8441 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
8442 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
8443 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
8444 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
8445 echo "$as_me:$LINENO: result: yes" >&5 | |
8446 echo "${ECHO_T}yes" >&6 | |
8447 else | |
8448 # FIXME - insert some real tests, host_os isn't really good enough | |
8449 case $host_os in | |
8450 darwin*) | |
8451 if test -n "$STRIP" ; then | |
8452 striplib="$STRIP -x" | |
8453 echo "$as_me:$LINENO: result: yes" >&5 | |
8454 echo "${ECHO_T}yes" >&6 | |
8455 else | |
8456 echo "$as_me:$LINENO: result: no" >&5 | |
8457 echo "${ECHO_T}no" >&6 | |
8458 fi | |
8459 ;; | |
8460 *) | |
8461 echo "$as_me:$LINENO: result: no" >&5 | |
8462 echo "${ECHO_T}no" >&6 | |
8463 ;; | |
8464 esac | |
8465 fi | |
8466 | |
8467 if test "x$enable_dlopen" != xyes; then | |
8468 enable_dlopen=unknown | |
8469 enable_dlopen_self=unknown | |
8470 enable_dlopen_self_static=unknown | |
8471 else | |
8472 lt_cv_dlopen=no | |
8473 lt_cv_dlopen_libs= | |
8474 | |
8475 case $host_os in | |
8476 beos*) | |
8477 lt_cv_dlopen="load_add_on" | |
8478 lt_cv_dlopen_libs= | |
8479 lt_cv_dlopen_self=yes | |
8480 ;; | |
8481 | |
8482 mingw* | pw32*) | |
8483 lt_cv_dlopen="LoadLibrary" | |
8484 lt_cv_dlopen_libs= | |
8485 ;; | |
8486 | |
8487 cygwin*) | |
8488 lt_cv_dlopen="dlopen" | |
8489 lt_cv_dlopen_libs= | |
8490 ;; | |
8491 | |
8492 darwin*) | |
8493 # if libdl is installed we need to link against it | |
8494 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
8495 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
8496 if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
8497 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8498 else | |
8499 ac_check_lib_save_LIBS=$LIBS | |
8500 LIBS="-ldl $LIBS" | |
8501 cat >conftest.$ac_ext <<_ACEOF | |
8502 /* confdefs.h. */ | |
8503 _ACEOF | |
8504 cat confdefs.h >>conftest.$ac_ext | |
8505 cat >>conftest.$ac_ext <<_ACEOF | |
8506 /* end confdefs.h. */ | |
8507 | |
8508 /* Override any gcc2 internal prototype to avoid an error. */ | |
8509 #ifdef __cplusplus | |
8510 extern "C" | |
8511 #endif | |
8512 /* We use char because int might match the return type of a gcc2 | |
8513 builtin and then its argument prototype would still apply. */ | |
8514 char dlopen (); | |
8515 int | |
8516 main () | |
8517 { | |
8518 dlopen (); | |
8519 ; | |
8520 return 0; | |
8521 } | |
8522 _ACEOF | |
8523 rm -f conftest.$ac_objext conftest$ac_exeext | |
8524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8525 (eval $ac_link) 2>conftest.er1 | |
8526 ac_status=$? | |
8527 grep -v '^ *+' conftest.er1 >conftest.err | |
8528 rm -f conftest.er1 | |
8529 cat conftest.err >&5 | |
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8531 (exit $ac_status); } && | |
8532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
8533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8534 (eval $ac_try) 2>&5 | |
8535 ac_status=$? | |
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8537 (exit $ac_status); }; } && | |
8538 { ac_try='test -s conftest$ac_exeext' | |
8539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8540 (eval $ac_try) 2>&5 | |
8541 ac_status=$? | |
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8543 (exit $ac_status); }; }; then | |
8544 ac_cv_lib_dl_dlopen=yes | |
8545 else | |
8546 echo "$as_me: failed program was:" >&5 | |
8547 sed 's/^/| /' conftest.$ac_ext >&5 | |
8548 | |
8549 ac_cv_lib_dl_dlopen=no | |
8550 fi | |
8551 rm -f conftest.err conftest.$ac_objext \ | |
8552 conftest$ac_exeext conftest.$ac_ext | |
8553 LIBS=$ac_check_lib_save_LIBS | |
8554 fi | |
8555 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
8556 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
8557 if test $ac_cv_lib_dl_dlopen = yes; then | |
8558 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
8559 else | |
8560 | |
8561 lt_cv_dlopen="dyld" | |
8562 lt_cv_dlopen_libs= | |
8563 lt_cv_dlopen_self=yes | |
8564 | |
8565 fi | |
8566 | |
8567 ;; | |
8568 | |
8569 *) | |
8570 echo "$as_me:$LINENO: checking for shl_load" >&5 | |
8571 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
8572 if test "${ac_cv_func_shl_load+set}" = set; then | |
8573 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8574 else | |
8575 cat >conftest.$ac_ext <<_ACEOF | |
8576 /* confdefs.h. */ | |
8577 _ACEOF | |
8578 cat confdefs.h >>conftest.$ac_ext | |
8579 cat >>conftest.$ac_ext <<_ACEOF | |
8580 /* end confdefs.h. */ | |
8581 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load
. | |
8582 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8583 #define shl_load innocuous_shl_load | |
8584 | |
8585 /* System header to define __stub macros and hopefully few prototypes, | |
8586 which can conflict with char shl_load (); below. | |
8587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8588 <limits.h> exists even on freestanding compilers. */ | |
8589 | |
8590 #ifdef __STDC__ | |
8591 # include <limits.h> | |
8592 #else | |
8593 # include <assert.h> | |
8594 #endif | |
8595 | |
8596 #undef shl_load | |
8597 | |
8598 /* Override any gcc2 internal prototype to avoid an error. */ | |
8599 #ifdef __cplusplus | |
8600 extern "C" | |
8601 { | |
8602 #endif | |
8603 /* We use char because int might match the return type of a gcc2 | |
8604 builtin and then its argument prototype would still apply. */ | |
8605 char shl_load (); | |
8606 /* The GNU C library defines this for functions which it implements | |
8607 to always fail with ENOSYS. Some functions are actually named | |
8608 something starting with __ and the normal name is an alias. */ | |
8609 #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
8610 choke me | |
8611 #else | |
8612 char (*f) () = shl_load; | |
8613 #endif | |
8614 #ifdef __cplusplus | |
8615 } | |
8616 #endif | |
8617 | |
8618 int | |
8619 main () | |
8620 { | |
8621 return f != shl_load; | |
8622 ; | |
8623 return 0; | |
8624 } | |
8625 _ACEOF | |
8626 rm -f conftest.$ac_objext conftest$ac_exeext | |
8627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8628 (eval $ac_link) 2>conftest.er1 | |
8629 ac_status=$? | |
8630 grep -v '^ *+' conftest.er1 >conftest.err | |
8631 rm -f conftest.er1 | |
8632 cat conftest.err >&5 | |
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8634 (exit $ac_status); } && | |
8635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
8636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8637 (eval $ac_try) 2>&5 | |
8638 ac_status=$? | |
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8640 (exit $ac_status); }; } && | |
8641 { ac_try='test -s conftest$ac_exeext' | |
8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8643 (eval $ac_try) 2>&5 | |
8644 ac_status=$? | |
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8646 (exit $ac_status); }; }; then | |
8647 ac_cv_func_shl_load=yes | |
8648 else | |
8649 echo "$as_me: failed program was:" >&5 | |
8650 sed 's/^/| /' conftest.$ac_ext >&5 | |
8651 | |
8652 ac_cv_func_shl_load=no | |
8653 fi | |
8654 rm -f conftest.err conftest.$ac_objext \ | |
8655 conftest$ac_exeext conftest.$ac_ext | |
8656 fi | |
8657 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
8658 echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
8659 if test $ac_cv_func_shl_load = yes; then | |
8660 lt_cv_dlopen="shl_load" | |
8661 else | |
8662 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
8663 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
8664 if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
8665 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8666 else | |
8667 ac_check_lib_save_LIBS=$LIBS | |
8668 LIBS="-ldld $LIBS" | |
8669 cat >conftest.$ac_ext <<_ACEOF | |
8670 /* confdefs.h. */ | |
8671 _ACEOF | |
8672 cat confdefs.h >>conftest.$ac_ext | |
8673 cat >>conftest.$ac_ext <<_ACEOF | |
8674 /* end confdefs.h. */ | |
8675 | |
8676 /* Override any gcc2 internal prototype to avoid an error. */ | |
8677 #ifdef __cplusplus | |
8678 extern "C" | |
8679 #endif | |
8680 /* We use char because int might match the return type of a gcc2 | |
8681 builtin and then its argument prototype would still apply. */ | |
8682 char shl_load (); | |
8683 int | |
8684 main () | |
8685 { | |
8686 shl_load (); | |
8687 ; | |
8688 return 0; | |
8689 } | |
8690 _ACEOF | |
8691 rm -f conftest.$ac_objext conftest$ac_exeext | |
8692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8693 (eval $ac_link) 2>conftest.er1 | |
8694 ac_status=$? | |
8695 grep -v '^ *+' conftest.er1 >conftest.err | |
8696 rm -f conftest.er1 | |
8697 cat conftest.err >&5 | |
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8699 (exit $ac_status); } && | |
8700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
8701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8702 (eval $ac_try) 2>&5 | |
8703 ac_status=$? | |
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8705 (exit $ac_status); }; } && | |
8706 { ac_try='test -s conftest$ac_exeext' | |
8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8708 (eval $ac_try) 2>&5 | |
8709 ac_status=$? | |
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8711 (exit $ac_status); }; }; then | |
8712 ac_cv_lib_dld_shl_load=yes | |
8713 else | |
8714 echo "$as_me: failed program was:" >&5 | |
8715 sed 's/^/| /' conftest.$ac_ext >&5 | |
8716 | |
8717 ac_cv_lib_dld_shl_load=no | |
8718 fi | |
8719 rm -f conftest.err conftest.$ac_objext \ | |
8720 conftest$ac_exeext conftest.$ac_ext | |
8721 LIBS=$ac_check_lib_save_LIBS | |
8722 fi | |
8723 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
8724 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
8725 if test $ac_cv_lib_dld_shl_load = yes; then | |
8726 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
8727 else | |
8728 echo "$as_me:$LINENO: checking for dlopen" >&5 | |
8729 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
8730 if test "${ac_cv_func_dlopen+set}" = set; then | |
8731 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8732 else | |
8733 cat >conftest.$ac_ext <<_ACEOF | |
8734 /* confdefs.h. */ | |
8735 _ACEOF | |
8736 cat confdefs.h >>conftest.$ac_ext | |
8737 cat >>conftest.$ac_ext <<_ACEOF | |
8738 /* end confdefs.h. */ | |
8739 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
8740 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8741 #define dlopen innocuous_dlopen | |
8742 | |
8743 /* System header to define __stub macros and hopefully few prototypes, | |
8744 which can conflict with char dlopen (); below. | |
8745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8746 <limits.h> exists even on freestanding compilers. */ | |
8747 | |
8748 #ifdef __STDC__ | |
8749 # include <limits.h> | |
8750 #else | |
8751 # include <assert.h> | |
8752 #endif | |
8753 | |
8754 #undef dlopen | |
8755 | |
8756 /* Override any gcc2 internal prototype to avoid an error. */ | |
8757 #ifdef __cplusplus | |
8758 extern "C" | |
8759 { | |
8760 #endif | |
8761 /* We use char because int might match the return type of a gcc2 | |
8762 builtin and then its argument prototype would still apply. */ | |
8763 char dlopen (); | |
8764 /* The GNU C library defines this for functions which it implements | |
8765 to always fail with ENOSYS. Some functions are actually named | |
8766 something starting with __ and the normal name is an alias. */ | |
8767 #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
8768 choke me | |
8769 #else | |
8770 char (*f) () = dlopen; | |
8771 #endif | |
8772 #ifdef __cplusplus | |
8773 } | |
8774 #endif | |
8775 | |
8776 int | |
8777 main () | |
8778 { | |
8779 return f != dlopen; | |
8780 ; | |
8781 return 0; | |
8782 } | |
8783 _ACEOF | |
8784 rm -f conftest.$ac_objext conftest$ac_exeext | |
8785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8786 (eval $ac_link) 2>conftest.er1 | |
8787 ac_status=$? | |
8788 grep -v '^ *+' conftest.er1 >conftest.err | |
8789 rm -f conftest.er1 | |
8790 cat conftest.err >&5 | |
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8792 (exit $ac_status); } && | |
8793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
8794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8795 (eval $ac_try) 2>&5 | |
8796 ac_status=$? | |
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8798 (exit $ac_status); }; } && | |
8799 { ac_try='test -s conftest$ac_exeext' | |
8800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8801 (eval $ac_try) 2>&5 | |
8802 ac_status=$? | |
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8804 (exit $ac_status); }; }; then | |
8805 ac_cv_func_dlopen=yes | |
8806 else | |
8807 echo "$as_me: failed program was:" >&5 | |
8808 sed 's/^/| /' conftest.$ac_ext >&5 | |
8809 | |
8810 ac_cv_func_dlopen=no | |
8811 fi | |
8812 rm -f conftest.err conftest.$ac_objext \ | |
8813 conftest$ac_exeext conftest.$ac_ext | |
8814 fi | |
8815 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
8816 echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
8817 if test $ac_cv_func_dlopen = yes; then | |
8818 lt_cv_dlopen="dlopen" | |
8819 else | |
8820 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
8821 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
8822 if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
8823 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8824 else | |
8825 ac_check_lib_save_LIBS=$LIBS | |
8826 LIBS="-ldl $LIBS" | |
8827 cat >conftest.$ac_ext <<_ACEOF | |
8828 /* confdefs.h. */ | |
8829 _ACEOF | |
8830 cat confdefs.h >>conftest.$ac_ext | |
8831 cat >>conftest.$ac_ext <<_ACEOF | |
8832 /* end confdefs.h. */ | |
8833 | |
8834 /* Override any gcc2 internal prototype to avoid an error. */ | |
8835 #ifdef __cplusplus | |
8836 extern "C" | |
8837 #endif | |
8838 /* We use char because int might match the return type of a gcc2 | |
8839 builtin and then its argument prototype would still apply. */ | |
8840 char dlopen (); | |
8841 int | |
8842 main () | |
8843 { | |
8844 dlopen (); | |
8845 ; | |
8846 return 0; | |
8847 } | |
8848 _ACEOF | |
8849 rm -f conftest.$ac_objext conftest$ac_exeext | |
8850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8851 (eval $ac_link) 2>conftest.er1 | |
8852 ac_status=$? | |
8853 grep -v '^ *+' conftest.er1 >conftest.err | |
8854 rm -f conftest.er1 | |
8855 cat conftest.err >&5 | |
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8857 (exit $ac_status); } && | |
8858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
8859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8860 (eval $ac_try) 2>&5 | |
8861 ac_status=$? | |
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8863 (exit $ac_status); }; } && | |
8864 { ac_try='test -s conftest$ac_exeext' | |
8865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8866 (eval $ac_try) 2>&5 | |
8867 ac_status=$? | |
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8869 (exit $ac_status); }; }; then | |
8870 ac_cv_lib_dl_dlopen=yes | |
8871 else | |
8872 echo "$as_me: failed program was:" >&5 | |
8873 sed 's/^/| /' conftest.$ac_ext >&5 | |
8874 | |
8875 ac_cv_lib_dl_dlopen=no | |
8876 fi | |
8877 rm -f conftest.err conftest.$ac_objext \ | |
8878 conftest$ac_exeext conftest.$ac_ext | |
8879 LIBS=$ac_check_lib_save_LIBS | |
8880 fi | |
8881 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
8882 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
8883 if test $ac_cv_lib_dl_dlopen = yes; then | |
8884 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
8885 else | |
8886 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
8887 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
8888 if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
8889 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8890 else | |
8891 ac_check_lib_save_LIBS=$LIBS | |
8892 LIBS="-lsvld $LIBS" | |
8893 cat >conftest.$ac_ext <<_ACEOF | |
8894 /* confdefs.h. */ | |
8895 _ACEOF | |
8896 cat confdefs.h >>conftest.$ac_ext | |
8897 cat >>conftest.$ac_ext <<_ACEOF | |
8898 /* end confdefs.h. */ | |
8899 | |
8900 /* Override any gcc2 internal prototype to avoid an error. */ | |
8901 #ifdef __cplusplus | |
8902 extern "C" | |
8903 #endif | |
8904 /* We use char because int might match the return type of a gcc2 | |
8905 builtin and then its argument prototype would still apply. */ | |
8906 char dlopen (); | |
8907 int | |
8908 main () | |
8909 { | |
8910 dlopen (); | |
8911 ; | |
8912 return 0; | |
8913 } | |
8914 _ACEOF | |
8915 rm -f conftest.$ac_objext conftest$ac_exeext | |
8916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8917 (eval $ac_link) 2>conftest.er1 | |
8918 ac_status=$? | |
8919 grep -v '^ *+' conftest.er1 >conftest.err | |
8920 rm -f conftest.er1 | |
8921 cat conftest.err >&5 | |
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8923 (exit $ac_status); } && | |
8924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
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); }; } && | |
8930 { ac_try='test -s conftest$ac_exeext' | |
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8932 (eval $ac_try) 2>&5 | |
8933 ac_status=$? | |
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8935 (exit $ac_status); }; }; then | |
8936 ac_cv_lib_svld_dlopen=yes | |
8937 else | |
8938 echo "$as_me: failed program was:" >&5 | |
8939 sed 's/^/| /' conftest.$ac_ext >&5 | |
8940 | |
8941 ac_cv_lib_svld_dlopen=no | |
8942 fi | |
8943 rm -f conftest.err conftest.$ac_objext \ | |
8944 conftest$ac_exeext conftest.$ac_ext | |
8945 LIBS=$ac_check_lib_save_LIBS | |
8946 fi | |
8947 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
8948 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
8949 if test $ac_cv_lib_svld_dlopen = yes; then | |
8950 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
8951 else | |
8952 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
8953 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
8954 if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
8955 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8956 else | |
8957 ac_check_lib_save_LIBS=$LIBS | |
8958 LIBS="-ldld $LIBS" | |
8959 cat >conftest.$ac_ext <<_ACEOF | |
8960 /* confdefs.h. */ | |
8961 _ACEOF | |
8962 cat confdefs.h >>conftest.$ac_ext | |
8963 cat >>conftest.$ac_ext <<_ACEOF | |
8964 /* end confdefs.h. */ | |
8965 | |
8966 /* Override any gcc2 internal prototype to avoid an error. */ | |
8967 #ifdef __cplusplus | |
8968 extern "C" | |
8969 #endif | |
8970 /* We use char because int might match the return type of a gcc2 | |
8971 builtin and then its argument prototype would still apply. */ | |
8972 char dld_link (); | |
8973 int | |
8974 main () | |
8975 { | |
8976 dld_link (); | |
8977 ; | |
8978 return 0; | |
8979 } | |
8980 _ACEOF | |
8981 rm -f conftest.$ac_objext conftest$ac_exeext | |
8982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8983 (eval $ac_link) 2>conftest.er1 | |
8984 ac_status=$? | |
8985 grep -v '^ *+' conftest.er1 >conftest.err | |
8986 rm -f conftest.er1 | |
8987 cat conftest.err >&5 | |
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8989 (exit $ac_status); } && | |
8990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
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); }; } && | |
8996 { ac_try='test -s conftest$ac_exeext' | |
8997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8998 (eval $ac_try) 2>&5 | |
8999 ac_status=$? | |
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9001 (exit $ac_status); }; }; then | |
9002 ac_cv_lib_dld_dld_link=yes | |
9003 else | |
9004 echo "$as_me: failed program was:" >&5 | |
9005 sed 's/^/| /' conftest.$ac_ext >&5 | |
9006 | |
9007 ac_cv_lib_dld_dld_link=no | |
9008 fi | |
9009 rm -f conftest.err conftest.$ac_objext \ | |
9010 conftest$ac_exeext conftest.$ac_ext | |
9011 LIBS=$ac_check_lib_save_LIBS | |
9012 fi | |
9013 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
9014 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
9015 if test $ac_cv_lib_dld_dld_link = yes; then | |
9016 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
9017 fi | |
9018 | |
9019 | |
9020 fi | |
9021 | |
9022 | |
9023 fi | |
9024 | |
9025 | |
9026 fi | |
9027 | |
9028 | |
9029 fi | |
9030 | |
9031 | |
9032 fi | |
9033 | |
9034 ;; | |
9035 esac | |
9036 | |
9037 if test "x$lt_cv_dlopen" != xno; then | |
9038 enable_dlopen=yes | |
9039 else | |
9040 enable_dlopen=no | |
9041 fi | |
9042 | |
9043 case $lt_cv_dlopen in | |
9044 dlopen) | |
9045 save_CPPFLAGS="$CPPFLAGS" | |
9046 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
9047 | |
9048 save_LDFLAGS="$LDFLAGS" | |
9049 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
9050 | |
9051 save_LIBS="$LIBS" | |
9052 LIBS="$lt_cv_dlopen_libs $LIBS" | |
9053 | |
9054 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
9055 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
9056 if test "${lt_cv_dlopen_self+set}" = set; then | |
9057 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9058 else | |
9059 if test "$cross_compiling" = yes; then : | |
9060 lt_cv_dlopen_self=cross | |
9061 else | |
9062 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9063 lt_status=$lt_dlunknown | |
9064 cat > conftest.$ac_ext <<EOF | |
9065 #line 9065 "configure" | |
9066 #include "confdefs.h" | |
9067 | |
9068 #if HAVE_DLFCN_H | |
9069 #include <dlfcn.h> | |
9070 #endif | |
9071 | |
9072 #include <stdio.h> | |
9073 | |
9074 #ifdef RTLD_GLOBAL | |
9075 # define LT_DLGLOBAL RTLD_GLOBAL | |
9076 #else | |
9077 # ifdef DL_GLOBAL | |
9078 # define LT_DLGLOBAL DL_GLOBAL | |
9079 # else | |
9080 # define LT_DLGLOBAL 0 | |
9081 # endif | |
9082 #endif | |
9083 | |
9084 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9085 find out it does not work in some platform. */ | |
9086 #ifndef LT_DLLAZY_OR_NOW | |
9087 # ifdef RTLD_LAZY | |
9088 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9089 # else | |
9090 # ifdef DL_LAZY | |
9091 # define LT_DLLAZY_OR_NOW DL_LAZY | |
9092 # else | |
9093 # ifdef RTLD_NOW | |
9094 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9095 # else | |
9096 # ifdef DL_NOW | |
9097 # define LT_DLLAZY_OR_NOW DL_NOW | |
9098 # else | |
9099 # define LT_DLLAZY_OR_NOW 0 | |
9100 # endif | |
9101 # endif | |
9102 # endif | |
9103 # endif | |
9104 #endif | |
9105 | |
9106 #ifdef __cplusplus | |
9107 extern "C" void exit (int); | |
9108 #endif | |
9109 | |
9110 void fnord() { int i=42;} | |
9111 int main () | |
9112 { | |
9113 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9114 int status = $lt_dlunknown; | |
9115 | |
9116 if (self) | |
9117 { | |
9118 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9119 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9120 /* dlclose (self); */ | |
9121 } | |
9122 else | |
9123 puts (dlerror ()); | |
9124 | |
9125 exit (status); | |
9126 } | |
9127 EOF | |
9128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9129 (eval $ac_link) 2>&5 | |
9130 ac_status=$? | |
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9132 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
9133 (./conftest; exit; ) >&5 2>/dev/null | |
9134 lt_status=$? | |
9135 case x$lt_status in | |
9136 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
9137 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
9138 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
9139 esac | |
9140 else : | |
9141 # compilation failed | |
9142 lt_cv_dlopen_self=no | |
9143 fi | |
9144 fi | |
9145 rm -fr conftest* | |
9146 | |
9147 | |
9148 fi | |
9149 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
9150 echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
9151 | |
9152 if test "x$lt_cv_dlopen_self" = xyes; then | |
9153 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\
" | |
9154 echo "$as_me:$LINENO: checking whether a statically linked program can dlo
pen itself" >&5 | |
9155 echo $ECHO_N "checking whether a statically linked program can dlopen itself...
$ECHO_C" >&6 | |
9156 if test "${lt_cv_dlopen_self_static+set}" = set; then | |
9157 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9158 else | |
9159 if test "$cross_compiling" = yes; then : | |
9160 lt_cv_dlopen_self_static=cross | |
9161 else | |
9162 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9163 lt_status=$lt_dlunknown | |
9164 cat > conftest.$ac_ext <<EOF | |
9165 #line 9165 "configure" | |
9166 #include "confdefs.h" | |
9167 | |
9168 #if HAVE_DLFCN_H | |
9169 #include <dlfcn.h> | |
9170 #endif | |
9171 | |
9172 #include <stdio.h> | |
9173 | |
9174 #ifdef RTLD_GLOBAL | |
9175 # define LT_DLGLOBAL RTLD_GLOBAL | |
9176 #else | |
9177 # ifdef DL_GLOBAL | |
9178 # define LT_DLGLOBAL DL_GLOBAL | |
9179 # else | |
9180 # define LT_DLGLOBAL 0 | |
9181 # endif | |
9182 #endif | |
9183 | |
9184 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9185 find out it does not work in some platform. */ | |
9186 #ifndef LT_DLLAZY_OR_NOW | |
9187 # ifdef RTLD_LAZY | |
9188 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9189 # else | |
9190 # ifdef DL_LAZY | |
9191 # define LT_DLLAZY_OR_NOW DL_LAZY | |
9192 # else | |
9193 # ifdef RTLD_NOW | |
9194 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9195 # else | |
9196 # ifdef DL_NOW | |
9197 # define LT_DLLAZY_OR_NOW DL_NOW | |
9198 # else | |
9199 # define LT_DLLAZY_OR_NOW 0 | |
9200 # endif | |
9201 # endif | |
9202 # endif | |
9203 # endif | |
9204 #endif | |
9205 | |
9206 #ifdef __cplusplus | |
9207 extern "C" void exit (int); | |
9208 #endif | |
9209 | |
9210 void fnord() { int i=42;} | |
9211 int main () | |
9212 { | |
9213 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9214 int status = $lt_dlunknown; | |
9215 | |
9216 if (self) | |
9217 { | |
9218 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9219 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9220 /* dlclose (self); */ | |
9221 } | |
9222 else | |
9223 puts (dlerror ()); | |
9224 | |
9225 exit (status); | |
9226 } | |
9227 EOF | |
9228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9229 (eval $ac_link) 2>&5 | |
9230 ac_status=$? | |
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9232 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
9233 (./conftest; exit; ) >&5 2>/dev/null | |
9234 lt_status=$? | |
9235 case x$lt_status in | |
9236 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
9237 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
9238 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
9239 esac | |
9240 else : | |
9241 # compilation failed | |
9242 lt_cv_dlopen_self_static=no | |
9243 fi | |
9244 fi | |
9245 rm -fr conftest* | |
9246 | |
9247 | |
9248 fi | |
9249 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
9250 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
9251 fi | |
9252 | |
9253 CPPFLAGS="$save_CPPFLAGS" | |
9254 LDFLAGS="$save_LDFLAGS" | |
9255 LIBS="$save_LIBS" | |
9256 ;; | |
9257 esac | |
9258 | |
9259 case $lt_cv_dlopen_self in | |
9260 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
9261 *) enable_dlopen_self=unknown ;; | |
9262 esac | |
9263 | |
9264 case $lt_cv_dlopen_self_static in | |
9265 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
9266 *) enable_dlopen_self_static=unknown ;; | |
9267 esac | |
9268 fi | |
9269 | |
9270 | |
9271 # Report which library types will actually be built | |
9272 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
9273 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
9274 echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
9275 echo "${ECHO_T}$can_build_shared" >&6 | |
9276 | |
9277 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
9278 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
9279 test "$can_build_shared" = "no" && enable_shared=no | |
9280 | |
9281 # On AIX, shared libraries and static libraries use the same namespace, and | |
9282 # are all built from PIC. | |
9283 case $host_os in | |
9284 aix3*) | |
9285 test "$enable_shared" = yes && enable_static=no | |
9286 if test -n "$RANLIB"; then | |
9287 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
9288 postinstall_cmds='$RANLIB $lib' | |
9289 fi | |
9290 ;; | |
9291 | |
9292 aix4* | aix5*) | |
9293 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
9294 test "$enable_shared" = yes && enable_static=no | |
9295 fi | |
9296 ;; | |
9297 esac | |
9298 echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
9299 echo "${ECHO_T}$enable_shared" >&6 | |
9300 | |
9301 echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
9302 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
9303 # Make sure either enable_shared or enable_static is yes. | |
9304 test "$enable_shared" = yes || enable_static=yes | |
9305 echo "$as_me:$LINENO: result: $enable_static" >&5 | |
9306 echo "${ECHO_T}$enable_static" >&6 | |
9307 | |
9308 # The else clause should only fire when bootstrapping the | |
9309 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
9310 # with your package, and you will get complaints that there are | |
9311 # no rules to generate ltmain.sh. | |
9312 if test -f "$ltmain"; then | |
9313 # See if we are running on zsh, and set the options which allow our commands t
hrough | |
9314 # without removal of \ escapes. | |
9315 if test -n "${ZSH_VERSION+set}" ; then | |
9316 setopt NO_GLOB_SUBST | |
9317 fi | |
9318 # Now quote all the things that may contain metacharacters while being | |
9319 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
9320 # variables and quote the copies for generation of the libtool script. | |
9321 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS
NM \ | |
9322 SED SHELL STRIP \ | |
9323 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
9324 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
9325 deplibs_check_method reload_flag reload_cmds need_locks \ | |
9326 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
9327 lt_cv_sys_global_symbol_to_c_name_address \ | |
9328 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
9329 old_postinstall_cmds old_postuninstall_cmds \ | |
9330 compiler \ | |
9331 CC \ | |
9332 LD \ | |
9333 lt_prog_compiler_wl \ | |
9334 lt_prog_compiler_pic \ | |
9335 lt_prog_compiler_static \ | |
9336 lt_prog_compiler_no_builtin_flag \ | |
9337 export_dynamic_flag_spec \ | |
9338 thread_safe_flag_spec \ | |
9339 whole_archive_flag_spec \ | |
9340 enable_shared_with_static_runtimes \ | |
9341 old_archive_cmds \ | |
9342 old_archive_from_new_cmds \ | |
9343 predep_objects \ | |
9344 postdep_objects \ | |
9345 predeps \ | |
9346 postdeps \ | |
9347 compiler_lib_search_path \ | |
9348 archive_cmds \ | |
9349 archive_expsym_cmds \ | |
9350 postinstall_cmds \ | |
9351 postuninstall_cmds \ | |
9352 old_archive_from_expsyms_cmds \ | |
9353 allow_undefined_flag \ | |
9354 no_undefined_flag \ | |
9355 export_symbols_cmds \ | |
9356 hardcode_libdir_flag_spec \ | |
9357 hardcode_libdir_flag_spec_ld \ | |
9358 hardcode_libdir_separator \ | |
9359 hardcode_automatic \ | |
9360 module_cmds \ | |
9361 module_expsym_cmds \ | |
9362 lt_cv_prog_compiler_c_o \ | |
9363 exclude_expsyms \ | |
9364 include_expsyms; do | |
9365 | |
9366 case $var in | |
9367 old_archive_cmds | \ | |
9368 old_archive_from_new_cmds | \ | |
9369 archive_cmds | \ | |
9370 archive_expsym_cmds | \ | |
9371 module_cmds | \ | |
9372 module_expsym_cmds | \ | |
9373 old_archive_from_expsyms_cmds | \ | |
9374 export_symbols_cmds | \ | |
9375 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
9376 postinstall_cmds | postuninstall_cmds | \ | |
9377 old_postinstall_cmds | old_postuninstall_cmds | \ | |
9378 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
9379 # Double-quote double-evaled strings. | |
9380 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\
" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
9381 ;; | |
9382 *) | |
9383 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`
\\\"" | |
9384 ;; | |
9385 esac | |
9386 done | |
9387 | |
9388 case $lt_echo in | |
9389 *'\$0 --fallback-echo"') | |
9390 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fa
llback-echo"/'` | |
9391 ;; | |
9392 esac | |
9393 | |
9394 cfgfile="${ofile}T" | |
9395 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | |
9396 $rm -f "$cfgfile" | |
9397 { echo "$as_me:$LINENO: creating $ofile" >&5 | |
9398 echo "$as_me: creating $ofile" >&6;} | |
9399 | |
9400 cat <<__EOF__ >> "$cfgfile" | |
9401 #! $SHELL | |
9402 | |
9403 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building sup
port services. | |
9404 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | |
9405 # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
9406 # | |
9407 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | |
9408 # Free Software Foundation, Inc. | |
9409 # | |
9410 # This file is part of GNU Libtool: | |
9411 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
9412 # | |
9413 # This program is free software; you can redistribute it and/or modify | |
9414 # it under the terms of the GNU General Public License as published by | |
9415 # the Free Software Foundation; either version 2 of the License, or | |
9416 # (at your option) any later version. | |
9417 # | |
9418 # This program is distributed in the hope that it will be useful, but | |
9419 # WITHOUT ANY WARRANTY; without even the implied warranty of | |
9420 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
9421 # General Public License for more details. | |
9422 # | |
9423 # You should have received a copy of the GNU General Public License | |
9424 # along with this program; if not, write to the Free Software | |
9425 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
9426 # | |
9427 # As a special exception to the GNU General Public License, if you | |
9428 # distribute this file as part of a program that contains a | |
9429 # configuration script generated by Autoconf, you may include it under | |
9430 # the same distribution terms that you use for the rest of that program. | |
9431 | |
9432 # A sed program that does not truncate output. | |
9433 SED=$lt_SED | |
9434 | |
9435 # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
9436 Xsed="$SED -e 1s/^X//" | |
9437 | |
9438 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
9439 # if CDPATH is set. | |
9440 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
9441 | |
9442 # The names of the tagged configurations supported by this script. | |
9443 available_tags= | |
9444 | |
9445 # ### BEGIN LIBTOOL CONFIG | |
9446 | |
9447 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
9448 | |
9449 # Shell to use when invoking shell scripts. | |
9450 SHELL=$lt_SHELL | |
9451 | |
9452 # Whether or not to build shared libraries. | |
9453 build_libtool_libs=$enable_shared | |
9454 | |
9455 # Whether or not to build static libraries. | |
9456 build_old_libs=$enable_static | |
9457 | |
9458 # Whether or not to add -lc for building shared libraries. | |
9459 build_libtool_need_lc=$archive_cmds_need_lc | |
9460 | |
9461 # Whether or not to disallow shared libs when runtime libs are static | |
9462 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
9463 | |
9464 # Whether or not to optimize for fast installation. | |
9465 fast_install=$enable_fast_install | |
9466 | |
9467 # The host system. | |
9468 host_alias=$host_alias | |
9469 host=$host | |
9470 host_os=$host_os | |
9471 | |
9472 # The build system. | |
9473 build_alias=$build_alias | |
9474 build=$build | |
9475 build_os=$build_os | |
9476 | |
9477 # An echo program that does not interpret backslashes. | |
9478 echo=$lt_echo | |
9479 | |
9480 # The archiver. | |
9481 AR=$lt_AR | |
9482 AR_FLAGS=$lt_AR_FLAGS | |
9483 | |
9484 # A C compiler. | |
9485 LTCC=$lt_LTCC | |
9486 | |
9487 # LTCC compiler flags. | |
9488 LTCFLAGS=$lt_LTCFLAGS | |
9489 | |
9490 # A language-specific compiler. | |
9491 CC=$lt_compiler | |
9492 | |
9493 # Is the compiler the GNU C compiler? | |
9494 with_gcc=$GCC | |
9495 | |
9496 # An ERE matcher. | |
9497 EGREP=$lt_EGREP | |
9498 | |
9499 # The linker used to build libraries. | |
9500 LD=$lt_LD | |
9501 | |
9502 # Whether we need hard or soft links. | |
9503 LN_S=$lt_LN_S | |
9504 | |
9505 # A BSD-compatible nm program. | |
9506 NM=$lt_NM | |
9507 | |
9508 # A symbol stripping program | |
9509 STRIP=$lt_STRIP | |
9510 | |
9511 # Used to examine libraries when file_magic_cmd begins "file" | |
9512 MAGIC_CMD=$MAGIC_CMD | |
9513 | |
9514 # Used on cygwin: DLL creation program. | |
9515 DLLTOOL="$DLLTOOL" | |
9516 | |
9517 # Used on cygwin: object dumper. | |
9518 OBJDUMP="$OBJDUMP" | |
9519 | |
9520 # Used on cygwin: assembler. | |
9521 AS="$AS" | |
9522 | |
9523 # The name of the directory that contains temporary libtool files. | |
9524 objdir=$objdir | |
9525 | |
9526 # How to create reloadable object files. | |
9527 reload_flag=$lt_reload_flag | |
9528 reload_cmds=$lt_reload_cmds | |
9529 | |
9530 # How to pass a linker flag through the compiler. | |
9531 wl=$lt_lt_prog_compiler_wl | |
9532 | |
9533 # Object file suffix (normally "o"). | |
9534 objext="$ac_objext" | |
9535 | |
9536 # Old archive suffix (normally "a"). | |
9537 libext="$libext" | |
9538 | |
9539 # Shared library suffix (normally ".so"). | |
9540 shrext_cmds='$shrext_cmds' | |
9541 | |
9542 # Executable file suffix (normally ""). | |
9543 exeext="$exeext" | |
9544 | |
9545 # Additional compiler flags for building library objects. | |
9546 pic_flag=$lt_lt_prog_compiler_pic | |
9547 pic_mode=$pic_mode | |
9548 | |
9549 # What is the maximum length of a command? | |
9550 max_cmd_len=$lt_cv_sys_max_cmd_len | |
9551 | |
9552 # Does compiler simultaneously support -c and -o options? | |
9553 compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
9554 | |
9555 # Must we lock files when doing compilation? | |
9556 need_locks=$lt_need_locks | |
9557 | |
9558 # Do we need the lib prefix for modules? | |
9559 need_lib_prefix=$need_lib_prefix | |
9560 | |
9561 # Do we need a version for libraries? | |
9562 need_version=$need_version | |
9563 | |
9564 # Whether dlopen is supported. | |
9565 dlopen_support=$enable_dlopen | |
9566 | |
9567 # Whether dlopen of programs is supported. | |
9568 dlopen_self=$enable_dlopen_self | |
9569 | |
9570 # Whether dlopen of statically linked programs is supported. | |
9571 dlopen_self_static=$enable_dlopen_self_static | |
9572 | |
9573 # Compiler flag to prevent dynamic linking. | |
9574 link_static_flag=$lt_lt_prog_compiler_static | |
9575 | |
9576 # Compiler flag to turn off builtin functions. | |
9577 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
9578 | |
9579 # Compiler flag to allow reflexive dlopens. | |
9580 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
9581 | |
9582 # Compiler flag to generate shared objects directly from archives. | |
9583 whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
9584 | |
9585 # Compiler flag to generate thread-safe objects. | |
9586 thread_safe_flag_spec=$lt_thread_safe_flag_spec | |
9587 | |
9588 # Library versioning type. | |
9589 version_type=$version_type | |
9590 | |
9591 # Format of library name prefix. | |
9592 libname_spec=$lt_libname_spec | |
9593 | |
9594 # List of archive names. First name is the real one, the rest are links. | |
9595 # The last name is the one that the linker finds with -lNAME. | |
9596 library_names_spec=$lt_library_names_spec | |
9597 | |
9598 # The coded name of the library, if different from the real name. | |
9599 soname_spec=$lt_soname_spec | |
9600 | |
9601 # Commands used to build and install an old-style archive. | |
9602 RANLIB=$lt_RANLIB | |
9603 old_archive_cmds=$lt_old_archive_cmds | |
9604 old_postinstall_cmds=$lt_old_postinstall_cmds | |
9605 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
9606 | |
9607 # Create an old-style archive from a shared archive. | |
9608 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
9609 | |
9610 # Create a temporary old-style archive to link instead of a shared archive. | |
9611 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
9612 | |
9613 # Commands used to build and install a shared archive. | |
9614 archive_cmds=$lt_archive_cmds | |
9615 archive_expsym_cmds=$lt_archive_expsym_cmds | |
9616 postinstall_cmds=$lt_postinstall_cmds | |
9617 postuninstall_cmds=$lt_postuninstall_cmds | |
9618 | |
9619 # Commands used to build a loadable module (assumed same as above if empty) | |
9620 module_cmds=$lt_module_cmds | |
9621 module_expsym_cmds=$lt_module_expsym_cmds | |
9622 | |
9623 # Commands to strip libraries. | |
9624 old_striplib=$lt_old_striplib | |
9625 striplib=$lt_striplib | |
9626 | |
9627 # Dependencies to place before the objects being linked to create a | |
9628 # shared library. | |
9629 predep_objects=$lt_predep_objects | |
9630 | |
9631 # Dependencies to place after the objects being linked to create a | |
9632 # shared library. | |
9633 postdep_objects=$lt_postdep_objects | |
9634 | |
9635 # Dependencies to place before the objects being linked to create a | |
9636 # shared library. | |
9637 predeps=$lt_predeps | |
9638 | |
9639 # Dependencies to place after the objects being linked to create a | |
9640 # shared library. | |
9641 postdeps=$lt_postdeps | |
9642 | |
9643 # The library search path used internally by the compiler when linking | |
9644 # a shared library. | |
9645 compiler_lib_search_path=$lt_compiler_lib_search_path | |
9646 | |
9647 # Method to check whether dependent libraries are shared objects. | |
9648 deplibs_check_method=$lt_deplibs_check_method | |
9649 | |
9650 # Command to use when deplibs_check_method == file_magic. | |
9651 file_magic_cmd=$lt_file_magic_cmd | |
9652 | |
9653 # Flag that allows shared libraries with undefined symbols to be built. | |
9654 allow_undefined_flag=$lt_allow_undefined_flag | |
9655 | |
9656 # Flag that forces no undefined symbols. | |
9657 no_undefined_flag=$lt_no_undefined_flag | |
9658 | |
9659 # Commands used to finish a libtool library installation in a directory. | |
9660 finish_cmds=$lt_finish_cmds | |
9661 | |
9662 # Same as above, but a single script fragment to be evaled but not shown. | |
9663 finish_eval=$lt_finish_eval | |
9664 | |
9665 # Take the output of nm and produce a listing of raw symbols and C names. | |
9666 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
9667 | |
9668 # Transform the output of nm in a proper C declaration | |
9669 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
9670 | |
9671 # Transform the output of nm in a C name address pair | |
9672 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
9673 | |
9674 # This is the shared library runtime path variable. | |
9675 runpath_var=$runpath_var | |
9676 | |
9677 # This is the shared library path variable. | |
9678 shlibpath_var=$shlibpath_var | |
9679 | |
9680 # Is shlibpath searched before the hard-coded library search path? | |
9681 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
9682 | |
9683 # How to hardcode a shared library path into an executable. | |
9684 hardcode_action=$hardcode_action | |
9685 | |
9686 # Whether we should hardcode library paths into libraries. | |
9687 hardcode_into_libs=$hardcode_into_libs | |
9688 | |
9689 # Flag to hardcode \$libdir into a binary during linking. | |
9690 # This must work even if \$libdir does not exist. | |
9691 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
9692 | |
9693 # If ld is used when linking, flag to hardcode \$libdir into | |
9694 # a binary during linking. This must work even if \$libdir does | |
9695 # not exist. | |
9696 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
9697 | |
9698 # Whether we need a single -rpath flag with a separated argument. | |
9699 hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
9700 | |
9701 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into
the | |
9702 # resulting binary. | |
9703 hardcode_direct=$hardcode_direct | |
9704 | |
9705 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
9706 # resulting binary. | |
9707 hardcode_minus_L=$hardcode_minus_L | |
9708 | |
9709 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
9710 # the resulting binary. | |
9711 hardcode_shlibpath_var=$hardcode_shlibpath_var | |
9712 | |
9713 # Set to yes if building a shared library automatically hardcodes DIR into the l
ibrary | |
9714 # and all subsequent libraries and executables linked against it. | |
9715 hardcode_automatic=$hardcode_automatic | |
9716 | |
9717 # Variables whose values should be saved in libtool wrapper scripts and | |
9718 # restored at relink time. | |
9719 variables_saved_for_relink="$variables_saved_for_relink" | |
9720 | |
9721 # Whether libtool must link a program against all its dependency libraries. | |
9722 link_all_deplibs=$link_all_deplibs | |
9723 | |
9724 # Compile-time system search path for libraries | |
9725 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
9726 | |
9727 # Run-time system search path for libraries | |
9728 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
9729 | |
9730 # Fix the shell variable \$srcfile for the compiler. | |
9731 fix_srcfile_path="$fix_srcfile_path" | |
9732 | |
9733 # Set to yes if exported symbols are required. | |
9734 always_export_symbols=$always_export_symbols | |
9735 | |
9736 # The commands to list exported symbols. | |
9737 export_symbols_cmds=$lt_export_symbols_cmds | |
9738 | |
9739 # The commands to extract the exported symbol list from a shared archive. | |
9740 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
9741 | |
9742 # Symbols that should not be listed in the preloaded symbols. | |
9743 exclude_expsyms=$lt_exclude_expsyms | |
9744 | |
9745 # Symbols that must always be exported. | |
9746 include_expsyms=$lt_include_expsyms | |
9747 | |
9748 # ### END LIBTOOL CONFIG | |
9749 | |
9750 __EOF__ | |
9751 | |
9752 | |
9753 case $host_os in | |
9754 aix3*) | |
9755 cat <<\EOF >> "$cfgfile" | |
9756 | |
9757 # AIX sometimes has problems with the GCC collect2 program. For some | |
9758 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
9759 # vanish in a puff of smoke. | |
9760 if test "X${COLLECT_NAMES+set}" != Xset; then | |
9761 COLLECT_NAMES= | |
9762 export COLLECT_NAMES | |
9763 fi | |
9764 EOF | |
9765 ;; | |
9766 esac | |
9767 | |
9768 # We use sed instead of cat because bash on DJGPP gets confused if | |
9769 # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
9770 # text mode, it properly converts lines to CR/LF. This bash problem | |
9771 # is reportedly fixed, but why not run on old versions too? | |
9772 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | |
9773 | |
9774 mv -f "$cfgfile" "$ofile" || \ | |
9775 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
9776 chmod +x "$ofile" | |
9777 | |
9778 else | |
9779 # If there is no Makefile yet, we rely on a make rule to execute | |
9780 # `config.status --recheck' to rerun these tests and create the | |
9781 # libtool script then. | |
9782 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
9783 if test -f "$ltmain_in"; then | |
9784 test -f Makefile && make "$ltmain" | |
9785 fi | |
9786 fi | |
9787 | |
9788 | |
9789 ac_ext=c | |
9790 ac_cpp='$CPP $CPPFLAGS' | |
9791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' | |
9793 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9794 | |
9795 CC="$lt_save_CC" | |
9796 | |
9797 | |
9798 # Check whether --with-tags or --without-tags was given. | |
9799 if test "${with_tags+set}" = set; then | |
9800 withval="$with_tags" | |
9801 tagnames="$withval" | |
9802 fi; | |
9803 | |
9804 if test -f "$ltmain" && test -n "$tagnames"; then | |
9805 if test ! -f "${ofile}"; then | |
9806 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 | |
9807 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | |
9808 fi | |
9809 | |
9810 if test -z "$LTCC"; then | |
9811 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | |
9812 if test -z "$LTCC"; then | |
9813 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like
a libtool script" >&5 | |
9814 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script
" >&2;} | |
9815 else | |
9816 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$of
ile'" >&5 | |
9817 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | |
9818 fi | |
9819 fi | |
9820 if test -z "$LTCFLAGS"; then | |
9821 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" | |
9822 fi | |
9823 | |
9824 # Extract list of available tagged configurations in $ofile. | |
9825 # Note that this assumes the entire list is on one line. | |
9826 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags
=\(.*$\)/\1/' -e 's/\"//g'` | |
9827 | |
9828 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9829 for tagname in $tagnames; do | |
9830 IFS="$lt_save_ifs" | |
9831 # Check whether tagname contains only valid characters | |
9832 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghi
jklmnopqrstuvwxyz1234567890,/]::g'` in | |
9833 "") ;; | |
9834 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 | |
9835 echo "$as_me: error: invalid tag name: $tagname" >&2;} | |
9836 { (exit 1); exit 1; }; } | |
9837 ;; | |
9838 esac | |
9839 | |
9840 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/nul
l | |
9841 then | |
9842 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 | |
9843 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | |
9844 { (exit 1); exit 1; }; } | |
9845 fi | |
9846 | |
9847 # Update the list of available tags. | |
9848 if test -n "$tagname"; then | |
9849 echo appending configuration tag \"$tagname\" to $ofile | |
9850 | |
9851 case $tagname in | |
9852 CXX) | |
9853 if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
9854 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
9855 (test "X$CXX" != "Xg++"))) ; then | |
9856 ac_ext=cc | |
9857 ac_cpp='$CXXCPP $CPPFLAGS' | |
9858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex
t $LIBS >&5' | |
9860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9861 | |
9862 | |
9863 | |
9864 | |
9865 archive_cmds_need_lc_CXX=no | |
9866 allow_undefined_flag_CXX= | |
9867 always_export_symbols_CXX=no | |
9868 archive_expsym_cmds_CXX= | |
9869 export_dynamic_flag_spec_CXX= | |
9870 hardcode_direct_CXX=no | |
9871 hardcode_libdir_flag_spec_CXX= | |
9872 hardcode_libdir_flag_spec_ld_CXX= | |
9873 hardcode_libdir_separator_CXX= | |
9874 hardcode_minus_L_CXX=no | |
9875 hardcode_shlibpath_var_CXX=unsupported | |
9876 hardcode_automatic_CXX=no | |
9877 module_cmds_CXX= | |
9878 module_expsym_cmds_CXX= | |
9879 link_all_deplibs_CXX=unknown | |
9880 old_archive_cmds_CXX=$old_archive_cmds | |
9881 no_undefined_flag_CXX= | |
9882 whole_archive_flag_spec_CXX= | |
9883 enable_shared_with_static_runtimes_CXX=no | |
9884 | |
9885 # Dependencies to place before and after the object being linked: | |
9886 predep_objects_CXX= | |
9887 postdep_objects_CXX= | |
9888 predeps_CXX= | |
9889 postdeps_CXX= | |
9890 compiler_lib_search_path_CXX= | |
9891 | |
9892 # Source file extension for C++ test sources. | |
9893 ac_ext=cpp | |
9894 | |
9895 # Object file extension for compiled C++ test sources. | |
9896 objext=o | |
9897 objext_CXX=$objext | |
9898 | |
9899 # Code to be used in simple compile tests | |
9900 lt_simple_compile_test_code="int some_variable = 0;\n" | |
9901 | |
9902 # Code to be used in simple link tests | |
9903 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' | |
9904 | |
9905 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
9906 | |
9907 # If no C compiler was specified, use CC. | |
9908 LTCC=${LTCC-"$CC"} | |
9909 | |
9910 # If no C compiler flags were specified, use CFLAGS. | |
9911 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9912 | |
9913 # Allow CC to be a program name with arguments. | |
9914 compiler=$CC | |
9915 | |
9916 | |
9917 # save warnings/boilerplate of simple test code | |
9918 ac_outfile=conftest.$ac_objext | |
9919 printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9920 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9921 _lt_compiler_boilerplate=`cat conftest.err` | |
9922 $rm conftest* | |
9923 | |
9924 ac_outfile=conftest.$ac_objext | |
9925 printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
9926 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9927 _lt_linker_boilerplate=`cat conftest.err` | |
9928 $rm conftest* | |
9929 | |
9930 | |
9931 # Allow CC to be a program name with arguments. | |
9932 lt_save_CC=$CC | |
9933 lt_save_LD=$LD | |
9934 lt_save_GCC=$GCC | |
9935 GCC=$GXX | |
9936 lt_save_with_gnu_ld=$with_gnu_ld | |
9937 lt_save_path_LD=$lt_cv_path_LD | |
9938 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
9939 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
9940 else | |
9941 $as_unset lt_cv_prog_gnu_ld | |
9942 fi | |
9943 if test -n "${lt_cv_path_LDCXX+set}"; then | |
9944 lt_cv_path_LD=$lt_cv_path_LDCXX | |
9945 else | |
9946 $as_unset lt_cv_path_LD | |
9947 fi | |
9948 test -z "${LDCXX+set}" || LD=$LDCXX | |
9949 CC=${CXX-"c++"} | |
9950 compiler=$CC | |
9951 compiler_CXX=$CC | |
9952 for cc_temp in $compiler""; do | |
9953 case $cc_temp in | |
9954 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
9955 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
9956 \-*) ;; | |
9957 *) break;; | |
9958 esac | |
9959 done | |
9960 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
9961 | |
9962 | |
9963 # We don't want -fno-exception wen compiling C++ code, so set the | |
9964 # no_builtin_flag separately | |
9965 if test "$GXX" = yes; then | |
9966 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
9967 else | |
9968 lt_prog_compiler_no_builtin_flag_CXX= | |
9969 fi | |
9970 | |
9971 if test "$GXX" = yes; then | |
9972 # Set up default GNU C++ configuration | |
9973 | |
9974 | |
9975 # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
9976 if test "${with_gnu_ld+set}" = set; then | |
9977 withval="$with_gnu_ld" | |
9978 test "$withval" = no || with_gnu_ld=yes | |
9979 else | |
9980 with_gnu_ld=no | |
9981 fi; | |
9982 ac_prog=ld | |
9983 if test "$GCC" = yes; then | |
9984 # Check if gcc -print-prog-name=ld gives a path. | |
9985 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
9986 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
9987 case $host in | |
9988 *-*-mingw*) | |
9989 # gcc leaves a trailing carriage return which upsets mingw | |
9990 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
9991 *) | |
9992 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
9993 esac | |
9994 case $ac_prog in | |
9995 # Accept absolute paths. | |
9996 [\\/]* | ?:[\\/]*) | |
9997 re_direlt='/[^/][^/]*/\.\./' | |
9998 # Canonicalize the pathname of ld | |
9999 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | |
10000 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
10001 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | |
10002 done | |
10003 test -z "$LD" && LD="$ac_prog" | |
10004 ;; | |
10005 "") | |
10006 # If it fails, then pretend we aren't using GCC. | |
10007 ac_prog=ld | |
10008 ;; | |
10009 *) | |
10010 # If it is relative, then search for the first ld in PATH. | |
10011 with_gnu_ld=unknown | |
10012 ;; | |
10013 esac | |
10014 elif test "$with_gnu_ld" = yes; then | |
10015 echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
10016 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
10017 else | |
10018 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
10019 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
10020 fi | |
10021 if test "${lt_cv_path_LD+set}" = set; then | |
10022 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10023 else | |
10024 if test -z "$LD"; then | |
10025 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
10026 for ac_dir in $PATH; do | |
10027 IFS="$lt_save_ifs" | |
10028 test -z "$ac_dir" && ac_dir=. | |
10029 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
10030 lt_cv_path_LD="$ac_dir/$ac_prog" | |
10031 # Check to see if the program is GNU ld. I'd rather use --version, | |
10032 # but apparently some variants of GNU ld only accept -v. | |
10033 # Break only if it was the GNU/non-GNU ld that we prefer. | |
10034 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
10035 *GNU* | *'with BFD'*) | |
10036 test "$with_gnu_ld" != no && break | |
10037 ;; | |
10038 *) | |
10039 test "$with_gnu_ld" != yes && break | |
10040 ;; | |
10041 esac | |
10042 fi | |
10043 done | |
10044 IFS="$lt_save_ifs" | |
10045 else | |
10046 lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
10047 fi | |
10048 fi | |
10049 | |
10050 LD="$lt_cv_path_LD" | |
10051 if test -n "$LD"; then | |
10052 echo "$as_me:$LINENO: result: $LD" >&5 | |
10053 echo "${ECHO_T}$LD" >&6 | |
10054 else | |
10055 echo "$as_me:$LINENO: result: no" >&5 | |
10056 echo "${ECHO_T}no" >&6 | |
10057 fi | |
10058 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PA
TH" >&5 | |
10059 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
10060 { (exit 1); exit 1; }; } | |
10061 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
10062 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
10063 if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
10064 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10065 else | |
10066 # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
10067 case `$LD -v 2>&1 </dev/null` in | |
10068 *GNU* | *'with BFD'*) | |
10069 lt_cv_prog_gnu_ld=yes | |
10070 ;; | |
10071 *) | |
10072 lt_cv_prog_gnu_ld=no | |
10073 ;; | |
10074 esac | |
10075 fi | |
10076 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
10077 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
10078 with_gnu_ld=$lt_cv_prog_gnu_ld | |
10079 | |
10080 | |
10081 | |
10082 # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
10083 # archiving commands below assume that GNU ld is being used. | |
10084 if test "$with_gnu_ld" = yes; then | |
10085 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $p
ostdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10086 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $dep
libs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbo
ls-file $wl$export_symbols -o $lib' | |
10087 | |
10088 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
10089 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
10090 | |
10091 # If archive_cmds runs LD, not CC, wlarc should be empty | |
10092 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
10093 # investigate it a little bit more. (MM) | |
10094 wlarc='${wl}' | |
10095 | |
10096 # ancient GNU ld didn't support --whole-archive et. al. | |
10097 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | |
10098 grep 'no-whole-archive' > /dev/null; then | |
10099 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"
'--no-whole-archive' | |
10100 else | |
10101 whole_archive_flag_spec_CXX= | |
10102 fi | |
10103 else | |
10104 with_gnu_ld=no | |
10105 wlarc= | |
10106 | |
10107 # A generic and very simple default shared library creation | |
10108 # command for GNU C++ for the case where it uses the native | |
10109 # linker, instead of GNU ld. If possible, this setting should | |
10110 # overridden to take advantage of the native linker features on | |
10111 # the platform it is being used on. | |
10112 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $p
ostdep_objects $compiler_flags -o $lib' | |
10113 fi | |
10114 | |
10115 # Commands to make compiler produce verbose output that lists | |
10116 # what "hidden" libraries, object files and flags are used when | |
10117 # linking a shared library. | |
10118 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "
\-L"' | |
10119 | |
10120 else | |
10121 GXX=no | |
10122 with_gnu_ld=no | |
10123 wlarc= | |
10124 fi | |
10125 | |
10126 # PORTME: fill in a description of your system's C++ link characteristics | |
10127 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports share
d libraries" >&5 | |
10128 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
ies... $ECHO_C" >&6 | |
10129 ld_shlibs_CXX=yes | |
10130 case $host_os in | |
10131 aix3*) | |
10132 # FIXME: insert proper C++ library support | |
10133 ld_shlibs_CXX=no | |
10134 ;; | |
10135 aix4* | aix5*) | |
10136 if test "$host_cpu" = ia64; then | |
10137 # On IA64, the linker does run time linking by default, so we don't | |
10138 # have to do anything special. | |
10139 aix_use_runtimelinking=no | |
10140 exp_sym_flag='-Bexport' | |
10141 no_entry_flag="" | |
10142 else | |
10143 aix_use_runtimelinking=no | |
10144 | |
10145 # Test if we are trying to use run time linking or normal | |
10146 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10147 # need to do runtime linking. | |
10148 case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
10149 for ld_flag in $LDFLAGS; do | |
10150 case $ld_flag in | |
10151 *-brtl*) | |
10152 aix_use_runtimelinking=yes | |
10153 break | |
10154 ;; | |
10155 esac | |
10156 done | |
10157 ;; | |
10158 esac | |
10159 | |
10160 exp_sym_flag='-bexport' | |
10161 no_entry_flag='-bnoentry' | |
10162 fi | |
10163 | |
10164 # When large executables or shared objects are built, AIX ld can | |
10165 # have problems creating the table of contents. If linking a library | |
10166 # or program results in "error TOC overflow" add -mminimal-toc to | |
10167 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10168 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10169 | |
10170 archive_cmds_CXX='' | |
10171 hardcode_direct_CXX=yes | |
10172 hardcode_libdir_separator_CXX=':' | |
10173 link_all_deplibs_CXX=yes | |
10174 | |
10175 if test "$GXX" = yes; then | |
10176 case $host_os in aix4.[012]|aix4.[012].*) | |
10177 # We only want to do this on AIX 4.2 and lower, the check | |
10178 # below for broken collect2 doesn't work under 4.3+ | |
10179 collect2name=`${CC} -print-prog-name=collect2` | |
10180 if test -f "$collect2name" && \ | |
10181 strings "$collect2name" | grep resolve_lib_name >/dev/null | |
10182 then | |
10183 # We have reworked collect2 | |
10184 hardcode_direct_CXX=yes | |
10185 else | |
10186 # We have old collect2 | |
10187 hardcode_direct_CXX=unsupported | |
10188 # It fails to find uninstalled libraries when the uninstalled | |
10189 # path is not listed in the libpath. Setting hardcode_minus_L | |
10190 # to unsupported forces relinking | |
10191 hardcode_minus_L_CXX=yes | |
10192 hardcode_libdir_flag_spec_CXX='-L$libdir' | |
10193 hardcode_libdir_separator_CXX= | |
10194 fi | |
10195 ;; | |
10196 esac | |
10197 shared_flag='-shared' | |
10198 if test "$aix_use_runtimelinking" = yes; then | |
10199 shared_flag="$shared_flag "'${wl}-G' | |
10200 fi | |
10201 else | |
10202 # not using gcc | |
10203 if test "$host_cpu" = ia64; then | |
10204 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10205 # chokes on -Wl,-G. The following line is correct: | |
10206 shared_flag='-G' | |
10207 else | |
10208 if test "$aix_use_runtimelinking" = yes; then | |
10209 shared_flag='${wl}-G' | |
10210 else | |
10211 shared_flag='${wl}-bM:SRE' | |
10212 fi | |
10213 fi | |
10214 fi | |
10215 | |
10216 # It seems that -bexpall does not export symbols beginning with | |
10217 # underscore (_), so it is better to generate a list of symbols to export. | |
10218 always_export_symbols_CXX=yes | |
10219 if test "$aix_use_runtimelinking" = yes; then | |
10220 # Warning - without using the other runtime loading flags (-brtl), | |
10221 # -berok will link without error, but may produce a broken library. | |
10222 allow_undefined_flag_CXX='-berok' | |
10223 # Determine the default libpath from the value encoded in an empty executa
ble. | |
10224 cat >conftest.$ac_ext <<_ACEOF | |
10225 /* confdefs.h. */ | |
10226 _ACEOF | |
10227 cat confdefs.h >>conftest.$ac_ext | |
10228 cat >>conftest.$ac_ext <<_ACEOF | |
10229 /* end confdefs.h. */ | |
10230 | |
10231 int | |
10232 main () | |
10233 { | |
10234 | |
10235 ; | |
10236 return 0; | |
10237 } | |
10238 _ACEOF | |
10239 rm -f conftest.$ac_objext conftest$ac_exeext | |
10240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10241 (eval $ac_link) 2>conftest.er1 | |
10242 ac_status=$? | |
10243 grep -v '^ *+' conftest.er1 >conftest.err | |
10244 rm -f conftest.er1 | |
10245 cat conftest.err >&5 | |
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10247 (exit $ac_status); } && | |
10248 { ac_try='test -z "$ac_cxx_werror_flag" || test
! -s conftest.err' | |
10249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10250 (eval $ac_try) 2>&5 | |
10251 ac_status=$? | |
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10253 (exit $ac_status); }; } && | |
10254 { ac_try='test -s conftest$ac_exeext' | |
10255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10256 (eval $ac_try) 2>&5 | |
10257 ac_status=$? | |
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10259 (exit $ac_status); }; }; then | |
10260 | |
10261 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File S
trings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
10262 }'` | |
10263 # Check for a 64-bit object if we didn't find anything. | |
10264 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/de
v/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p;
} | |
10265 }'`; fi | |
10266 else | |
10267 echo "$as_me: failed program was:" >&5 | |
10268 sed 's/^/| /' conftest.$ac_ext >&5 | |
10269 | |
10270 fi | |
10271 rm -f conftest.err conftest.$ac_objext \ | |
10272 conftest$ac_exeext conftest.$ac_ext | |
10273 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
10274 | |
10275 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10276 | |
10277 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplib
s '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" !
= "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_fl
ag:\$export_symbols $shared_flag" | |
10278 else | |
10279 if test "$host_cpu" = ia64; then | |
10280 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
10281 allow_undefined_flag_CXX="-z nodefs" | |
10282 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" | |
10283 else | |
10284 # Determine the default libpath from the value encoded in an empty execu
table. | |
10285 cat >conftest.$ac_ext <<_ACEOF | |
10286 /* confdefs.h. */ | |
10287 _ACEOF | |
10288 cat confdefs.h >>conftest.$ac_ext | |
10289 cat >>conftest.$ac_ext <<_ACEOF | |
10290 /* end confdefs.h. */ | |
10291 | |
10292 int | |
10293 main () | |
10294 { | |
10295 | |
10296 ; | |
10297 return 0; | |
10298 } | |
10299 _ACEOF | |
10300 rm -f conftest.$ac_objext conftest$ac_exeext | |
10301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10302 (eval $ac_link) 2>conftest.er1 | |
10303 ac_status=$? | |
10304 grep -v '^ *+' conftest.er1 >conftest.err | |
10305 rm -f conftest.er1 | |
10306 cat conftest.err >&5 | |
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10308 (exit $ac_status); } && | |
10309 { ac_try='test -z "$ac_cxx_werror_flag" || test
! -s conftest.err' | |
10310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10311 (eval $ac_try) 2>&5 | |
10312 ac_status=$? | |
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10314 (exit $ac_status); }; } && | |
10315 { ac_try='test -s conftest$ac_exeext' | |
10316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10317 (eval $ac_try) 2>&5 | |
10318 ac_status=$? | |
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10320 (exit $ac_status); }; }; then | |
10321 | |
10322 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File S
trings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
10323 }'` | |
10324 # Check for a 64-bit object if we didn't find anything. | |
10325 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/de
v/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p;
} | |
10326 }'`; fi | |
10327 else | |
10328 echo "$as_me: failed program was:" >&5 | |
10329 sed 's/^/| /' conftest.$ac_ext >&5 | |
10330 | |
10331 fi | |
10332 rm -f conftest.err conftest.$ac_objext \ | |
10333 conftest$ac_exeext conftest.$ac_ext | |
10334 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
10335 | |
10336 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10337 # Warning - without using the other run time loading flags, | |
10338 # -berok will link without error, but may produce a broken library. | |
10339 no_undefined_flag_CXX=' ${wl}-bernotok' | |
10340 allow_undefined_flag_CXX=' ${wl}-berok' | |
10341 # Exported symbols can be pulled into shared objects from archives | |
10342 whole_archive_flag_spec_CXX='$convenience' | |
10343 archive_cmds_need_lc_CXX=yes | |
10344 # This is similar to how AIX traditionally builds its shared libraries. | |
10345 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' | |
10346 fi | |
10347 fi | |
10348 ;; | |
10349 | |
10350 beos*) | |
10351 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
10352 allow_undefined_flag_CXX=unsupported | |
10353 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
10354 # support --undefined. This deserves some investigation. FIXME | |
10355 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-son
ame $wl$soname -o $lib' | |
10356 else | |
10357 ld_shlibs_CXX=no | |
10358 fi | |
10359 ;; | |
10360 | |
10361 chorus*) | |
10362 case $cc_basename in | |
10363 *) | |
10364 # FIXME: insert proper C++ library support | |
10365 ld_shlibs_CXX=no | |
10366 ;; | |
10367 esac | |
10368 ;; | |
10369 | |
10370 cygwin* | mingw* | pw32*) | |
10371 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
10372 # as there is no search path for DLLs. | |
10373 hardcode_libdir_flag_spec_CXX='-L$libdir' | |
10374 allow_undefined_flag_CXX=unsupported | |
10375 always_export_symbols_CXX=no | |
10376 enable_shared_with_static_runtimes_CXX=yes | |
10377 | |
10378 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
10379 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs
$postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-im
age-base -Xlinker --out-implib -Xlinker $lib' | |
10380 # If the export-symbols file already is a .def file (1st line | |
10381 # is EXPORTS), use it as is; otherwise, prepend... | |
10382 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS;
then | |
10383 cp $export_symbols $output_objdir/$soname.def; | |
10384 else | |
10385 echo EXPORTS > $output_objdir/$soname.def; | |
10386 cat $export_symbols >> $output_objdir/$soname.def; | |
10387 fi~ | |
10388 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs
$deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enabl
e-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10389 else | |
10390 ld_shlibs_CXX=no | |
10391 fi | |
10392 ;; | |
10393 darwin* | rhapsody*) | |
10394 case $host_os in | |
10395 rhapsody* | darwin1.[012]) | |
10396 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' | |
10397 ;; | |
10398 *) # Darwin 1.3 on | |
10399 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
10400 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}s
uppress' | |
10401 else | |
10402 case ${MACOSX_DEPLOYMENT_TARGET} in | |
10403 10.[012]) | |
10404 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${
wl}suppress' | |
10405 ;; | |
10406 10.*) | |
10407 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' | |
10408 ;; | |
10409 esac | |
10410 fi | |
10411 ;; | |
10412 esac | |
10413 archive_cmds_need_lc_CXX=no | |
10414 hardcode_direct_CXX=no | |
10415 hardcode_automatic_CXX=yes | |
10416 hardcode_shlibpath_var_CXX=unsupported | |
10417 whole_archive_flag_spec_CXX='' | |
10418 link_all_deplibs_CXX=yes | |
10419 | |
10420 if test "$GXX" = yes ; then | |
10421 lt_int_apple_cc_single_mod=no | |
10422 output_verbose_link_cmd='echo' | |
10423 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then | |
10424 lt_int_apple_cc_single_mod=yes | |
10425 fi | |
10426 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
10427 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o
$lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
10428 else | |
10429 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-mas
ter.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $de
plibs $compiler_flags -install_name $rpath/$soname $verstring' | |
10430 fi | |
10431 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $dep
libs$compiler_flags' | |
10432 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't
exist in older darwin lds | |
10433 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
10434 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\
(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dy
namiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compile
r_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libna
me}-symbols.expsym ${lib}' | |
10435 else | |
10436 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 $all
ow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name
$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${
lib}' | |
10437 fi | |
10438 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(
..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $all
ow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $o
utput_objdir/${libname}-symbols.expsym ${lib}' | |
10439 else | |
10440 case $cc_basename in | |
10441 xlc*) | |
10442 output_verbose_link_cmd='echo' | |
10443 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_
flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rp
ath/$soname` $verstring' | |
10444 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $d
eplibs$compiler_flags' | |
10445 # Don't fix this by using the ld -exported_symbols_list flag, it doesn
't exist in older darwin lds | |
10446 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(.
.*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmks
hrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compi
ler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_ob
jdir/${libname}-symbols.expsym ${lib}' | |
10447 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 $out
put_objdir/${libname}-symbols.expsym ${lib}' | |
10448 ;; | |
10449 *) | |
10450 ld_shlibs_CXX=no | |
10451 ;; | |
10452 esac | |
10453 fi | |
10454 ;; | |
10455 | |
10456 dgux*) | |
10457 case $cc_basename in | |
10458 ec++*) | |
10459 # FIXME: insert proper C++ library support | |
10460 ld_shlibs_CXX=no | |
10461 ;; | |
10462 ghcx*) | |
10463 # Green Hills C++ Compiler | |
10464 # FIXME: insert proper C++ library support | |
10465 ld_shlibs_CXX=no | |
10466 ;; | |
10467 *) | |
10468 # FIXME: insert proper C++ library support | |
10469 ld_shlibs_CXX=no | |
10470 ;; | |
10471 esac | |
10472 ;; | |
10473 freebsd[12]*) | |
10474 # C++ shared libraries reported to be fairly broken before switch to ELF | |
10475 ld_shlibs_CXX=no | |
10476 ;; | |
10477 freebsd-elf*) | |
10478 archive_cmds_need_lc_CXX=no | |
10479 ;; | |
10480 freebsd* | kfreebsd*-gnu | dragonfly*) | |
10481 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
10482 # conventions | |
10483 ld_shlibs_CXX=yes | |
10484 ;; | |
10485 gnu*) | |
10486 ;; | |
10487 hpux9*) | |
10488 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
10489 hardcode_libdir_separator_CXX=: | |
10490 export_dynamic_flag_spec_CXX='${wl}-E' | |
10491 hardcode_direct_CXX=yes | |
10492 hardcode_minus_L_CXX=yes # Not in the search PATH, | |
10493 # but as the default | |
10494 # location of the library. | |
10495 | |
10496 case $cc_basename in | |
10497 CC*) | |
10498 # FIXME: insert proper C++ library support | |
10499 ld_shlibs_CXX=no | |
10500 ;; | |
10501 aCC*) | |
10502 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_
libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_obje
cts $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$son
ame $lib' | |
10503 # Commands to make compiler produce verbose output that lists | |
10504 # what "hidden" libraries, object files and flags are used when | |
10505 # linking a shared library. | |
10506 # | |
10507 # There doesn't appear to be a way to prevent this compiler from | |
10508 # explicitly linking system object files so we need to strip them | |
10509 # from the output so that they don't get included in the library | |
10510 # dependencies. | |
10511 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' | |
10512 ;; | |
10513 *) | |
10514 if test "$GXX" = yes; then | |
10515 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' | |
10516 else | |
10517 # FIXME: insert proper C++ library support | |
10518 ld_shlibs_CXX=no | |
10519 fi | |
10520 ;; | |
10521 esac | |
10522 ;; | |
10523 hpux10*|hpux11*) | |
10524 if test $with_gnu_ld = no; then | |
10525 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
10526 hardcode_libdir_separator_CXX=: | |
10527 | |
10528 case $host_cpu in | |
10529 hppa*64*|ia64*) | |
10530 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' | |
10531 ;; | |
10532 *) | |
10533 export_dynamic_flag_spec_CXX='${wl}-E' | |
10534 ;; | |
10535 esac | |
10536 fi | |
10537 case $host_cpu in | |
10538 hppa*64*|ia64*) | |
10539 hardcode_direct_CXX=no | |
10540 hardcode_shlibpath_var_CXX=no | |
10541 ;; | |
10542 *) | |
10543 hardcode_direct_CXX=yes | |
10544 hardcode_minus_L_CXX=yes # Not in the search PATH, | |
10545 # but as the default | |
10546 # location of the library. | |
10547 ;; | |
10548 esac | |
10549 | |
10550 case $cc_basename in | |
10551 CC*) | |
10552 # FIXME: insert proper C++ library support | |
10553 ld_shlibs_CXX=no | |
10554 ;; | |
10555 aCC*) | |
10556 case $host_cpu in | |
10557 hppa*64*) | |
10558 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects
$libobjs $deplibs $postdep_objects $compiler_flags' | |
10559 ;; | |
10560 ia64*) | |
10561 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o
$lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
10562 ;; | |
10563 *) | |
10564 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_li
bdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
10565 ;; | |
10566 esac | |
10567 # Commands to make compiler produce verbose output that lists | |
10568 # what "hidden" libraries, object files and flags are used when | |
10569 # linking a shared library. | |
10570 # | |
10571 # There doesn't appear to be a way to prevent this compiler from | |
10572 # explicitly linking system object files so we need to strip them | |
10573 # from the output so that they don't get included in the library | |
10574 # dependencies. | |
10575 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' | |
10576 ;; | |
10577 *) | |
10578 if test "$GXX" = yes; then | |
10579 if test $with_gnu_ld = no; then | |
10580 case $host_cpu in | |
10581 hppa*64*) | |
10582 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname
-o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
10583 ;; | |
10584 ia64*) | |
10585 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname
${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects
$compiler_flags' | |
10586 ;; | |
10587 *) | |
10588 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' | |
10589 ;; | |
10590 esac | |
10591 fi | |
10592 else | |
10593 # FIXME: insert proper C++ library support | |
10594 ld_shlibs_CXX=no | |
10595 fi | |
10596 ;; | |
10597 esac | |
10598 ;; | |
10599 interix3*) | |
10600 hardcode_direct_CXX=no | |
10601 hardcode_shlibpath_var_CXX=no | |
10602 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
10603 export_dynamic_flag_spec_CXX='${wl}-E' | |
10604 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
10605 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
10606 # default) and relocated if they conflict, which is a slow very memory | |
10607 # consuming and fragmenting process. To avoid this, we pick a random, | |
10608 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
10609 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
10610 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${
wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 134217
7280` -o $lib' | |
10611 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$sonam
e.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname
${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`exp
r ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
10612 ;; | |
10613 irix5* | irix6*) | |
10614 case $cc_basename in | |
10615 CC*) | |
10616 # SGI C++ | |
10617 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $d
eplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" &&
echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o
$lib' | |
10618 | |
10619 # Archives containing C++ object files must be created using | |
10620 # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
10621 # necessary to make sure instantiated templates are included | |
10622 # in the archive. | |
10623 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
10624 ;; | |
10625 *) | |
10626 if test "$GXX" = yes; then | |
10627 if test "$with_gnu_ld" = no; then | |
10628 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $de
plibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$vers
tring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${o
utput_objdir}/so_locations -o $lib' | |
10629 else | |
10630 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $de
plibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$vers
tring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' | |
10631 fi | |
10632 fi | |
10633 link_all_deplibs_CXX=yes | |
10634 ;; | |
10635 esac | |
10636 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
10637 hardcode_libdir_separator_CXX=: | |
10638 ;; | |
10639 linux*) | |
10640 case $cc_basename in | |
10641 KCC*) | |
10642 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
10643 | |
10644 # KCC will only create a shared library if the output file | |
10645 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
10646 # to its proper name (with version) after linking. | |
10647 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Z
a-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' | |
10648 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 \$temp
lib $lib' | |
10649 # Commands to make compiler produce verbose output that lists | |
10650 # what "hidden" libraries, object files and flags are used when | |
10651 # linking a shared library. | |
10652 # | |
10653 # There doesn't appear to be a way to prevent this compiler from | |
10654 # explicitly linking system object files so we need to strip them | |
10655 # from the output so that they don't get included in the library | |
10656 # dependencies. | |
10657 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o li
bconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; f
or z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);
; *) list="$list $z";;esac; done; echo $list' | |
10658 | |
10659 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | |
10660 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
10661 | |
10662 # Archives containing C++ object files must be created using | |
10663 # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
10664 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
10665 ;; | |
10666 icpc*) | |
10667 # Intel C++ | |
10668 with_gnu_ld=yes | |
10669 # version 8.0 and above of icpc choke on multiply defined symbols | |
10670 # if we add $predep_objects and $postdep_objects, however 7.1 and | |
10671 # earlier do not add the objects themselves. | |
10672 case `$CC -V 2>&1` in | |
10673 *"Version 7."*) | |
10674 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postd
ep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10675 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs
$postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-f
ile $wl$export_symbols -o $lib' | |
10676 ;; | |
10677 *) # Version 8.0 or newer | |
10678 tmp_idyn= | |
10679 case $host_cpu in | |
10680 ia64*) tmp_idyn=' -i_dynamic';; | |
10681 esac | |
10682 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler
_flags ${wl}-soname $wl$soname -o $lib' | |
10683 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $c
ompiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbo
ls -o $lib' | |
10684 ;; | |
10685 esac | |
10686 archive_cmds_need_lc_CXX=no | |
10687 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
10688 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
10689 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-
whole-archive' | |
10690 ;; | |
10691 pgCC*) | |
10692 # Portland Group C++ compiler | |
10693 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplib
s $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
10694 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' | |
10695 | |
10696 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
10697 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
10698 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenien
ce\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; don
e; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
10699 ;; | |
10700 cxx*) | |
10701 # Compaq C++ | |
10702 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep
_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10703 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $
postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-sy
mbols-file $wl$export_symbols' | |
10704 | |
10705 runpath_var=LD_RUN_PATH | |
10706 hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
10707 hardcode_libdir_separator_CXX=: | |
10708 | |
10709 # Commands to make compiler produce verbose output that lists | |
10710 # what "hidden" libraries, object files and flags are used when | |
10711 # linking a shared library. | |
10712 # | |
10713 # There doesn't appear to be a way to prevent this compiler from | |
10714 # explicitly linking system object files so we need to strip them | |
10715 # from the output so that they don't get included in the library | |
10716 # dependencies. | |
10717 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$obje
xt 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\
)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$lis
t $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
10718 ;; | |
10719 esac | |
10720 ;; | |
10721 lynxos*) | |
10722 # FIXME: insert proper C++ library support | |
10723 ld_shlibs_CXX=no | |
10724 ;; | |
10725 m88k*) | |
10726 # FIXME: insert proper C++ library support | |
10727 ld_shlibs_CXX=no | |
10728 ;; | |
10729 mvs*) | |
10730 case $cc_basename in | |
10731 cxx*) | |
10732 # FIXME: insert proper C++ library support | |
10733 ld_shlibs_CXX=no | |
10734 ;; | |
10735 *) | |
10736 # FIXME: insert proper C++ library support | |
10737 ld_shlibs_CXX=no | |
10738 ;; | |
10739 esac | |
10740 ;; | |
10741 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | |
10742 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
10743 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $depli
bs $postdep_objects $linker_flags' | |
10744 wlarc= | |
10745 hardcode_libdir_flag_spec_CXX='-R$libdir' | |
10746 hardcode_direct_CXX=yes | |
10747 hardcode_shlibpath_var_CXX=no | |
10748 fi | |
10749 # Workaround some broken pre-1.5 toolchains | |
10750 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep
conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
10751 ;; | |
10752 openbsd2*) | |
10753 # C++ shared libraries are fairly broken | |
10754 ld_shlibs_CXX=no | |
10755 ;; | |
10756 openbsd*) | |
10757 hardcode_direct_CXX=yes | |
10758 hardcode_shlibpath_var_CXX=no | |
10759 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $p
ostdep_objects $compiler_flags -o $lib' | |
10760 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
10761 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$hos
t_cpu" = "openbsd2.8-powerpc"; then | |
10762 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $d
eplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbol
s -o $lib' | |
10763 export_dynamic_flag_spec_CXX='${wl}-E' | |
10764 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"
'--no-whole-archive' | |
10765 fi | |
10766 output_verbose_link_cmd='echo' | |
10767 ;; | |
10768 osf3*) | |
10769 case $cc_basename in | |
10770 KCC*) | |
10771 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
10772 | |
10773 # KCC will only create a shared library if the output file | |
10774 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
10775 # to its proper name (with version) after linking. | |
10776 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Z
a-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' | |
10777 | |
10778 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
10779 hardcode_libdir_separator_CXX=: | |
10780 | |
10781 # Archives containing C++ object files must be created using | |
10782 # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
10783 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
10784 | |
10785 ;; | |
10786 RCC*) | |
10787 # Rational C++ 2.4.1 | |
10788 # FIXME: insert proper C++ library support | |
10789 ld_shlibs_CXX=no | |
10790 ;; | |
10791 cxx*) | |
10792 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
10793 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $li
bobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$
verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdi
r}/so_locations -o $lib' | |
10794 | |
10795 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
10796 hardcode_libdir_separator_CXX=: | |
10797 | |
10798 # Commands to make compiler produce verbose output that lists | |
10799 # what "hidden" libraries, object files and flags are used when | |
10800 # linking a shared library. | |
10801 # | |
10802 # There doesn't appear to be a way to prevent this compiler from | |
10803 # explicitly linking system object files so we need to strip them | |
10804 # from the output so that they don't get included in the library | |
10805 # dependencies. | |
10806 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$obje
xt 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.$obj
ext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
10807 ;; | |
10808 *) | |
10809 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
10810 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
10811 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $prede
p_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$
soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-up
date_registry ${wl}${output_objdir}/so_locations -o $lib' | |
10812 | |
10813 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
10814 hardcode_libdir_separator_CXX=: | |
10815 | |
10816 # Commands to make compiler produce verbose output that lists | |
10817 # what "hidden" libraries, object files and flags are used when | |
10818 # linking a shared library. | |
10819 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1
| grep "\-L"' | |
10820 | |
10821 else | |
10822 # FIXME: insert proper C++ library support | |
10823 ld_shlibs_CXX=no | |
10824 fi | |
10825 ;; | |
10826 esac | |
10827 ;; | |
10828 osf4* | osf5*) | |
10829 case $cc_basename in | |
10830 KCC*) | |
10831 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
10832 | |
10833 # KCC will only create a shared library if the output file | |
10834 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
10835 # to its proper name (with version) after linking. | |
10836 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Z
a-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' | |
10837 | |
10838 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
10839 hardcode_libdir_separator_CXX=: | |
10840 | |
10841 # Archives containing C++ object files must be created using | |
10842 # the KAI C++ compiler. | |
10843 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | |
10844 ;; | |
10845 RCC*) | |
10846 # Rational C++ 2.4.1 | |
10847 # FIXME: insert proper C++ library support | |
10848 ld_shlibs_CXX=no | |
10849 ;; | |
10850 cxx*) | |
10851 allow_undefined_flag_CXX=' -expect_unresolved \*' | |
10852 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $li
bobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "
$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/s
o_locations -o $lib' | |
10853 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %
s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
10854 echo "-hidden">> $lib.exp~ | |
10855 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $po
stdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `te
st -n "$verstring" && echo -set_version $verstring` -update_registry ${output_ob
jdir}/so_locations -o $lib~ | |
10856 $rm $lib.exp' | |
10857 | |
10858 hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
10859 hardcode_libdir_separator_CXX=: | |
10860 | |
10861 # Commands to make compiler produce verbose output that lists | |
10862 # what "hidden" libraries, object files and flags are used when | |
10863 # linking a shared library. | |
10864 # | |
10865 # There doesn't appear to be a way to prevent this compiler from | |
10866 # explicitly linking system object files so we need to strip them | |
10867 # from the output so that they don't get included in the library | |
10868 # dependencies. | |
10869 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$obje
xt 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.$obj
ext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
10870 ;; | |
10871 *) | |
10872 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
10873 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
10874 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep
_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-son
ame ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring
` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
10875 | |
10876 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
10877 hardcode_libdir_separator_CXX=: | |
10878 | |
10879 # Commands to make compiler produce verbose output that lists | |
10880 # what "hidden" libraries, object files and flags are used when | |
10881 # linking a shared library. | |
10882 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1
| grep "\-L"' | |
10883 | |
10884 else | |
10885 # FIXME: insert proper C++ library support | |
10886 ld_shlibs_CXX=no | |
10887 fi | |
10888 ;; | |
10889 esac | |
10890 ;; | |
10891 psos*) | |
10892 # FIXME: insert proper C++ library support | |
10893 ld_shlibs_CXX=no | |
10894 ;; | |
10895 sunos4*) | |
10896 case $cc_basename in | |
10897 CC*) | |
10898 # Sun C++ 4.x | |
10899 # FIXME: insert proper C++ library support | |
10900 ld_shlibs_CXX=no | |
10901 ;; | |
10902 lcc*) | |
10903 # Lucid | |
10904 # FIXME: insert proper C++ library support | |
10905 ld_shlibs_CXX=no | |
10906 ;; | |
10907 *) | |
10908 # FIXME: insert proper C++ library support | |
10909 ld_shlibs_CXX=no | |
10910 ;; | |
10911 esac | |
10912 ;; | |
10913 solaris*) | |
10914 case $cc_basename in | |
10915 CC*) | |
10916 # Sun C++ 4.2, 5.x and Centerline C++ | |
10917 archive_cmds_need_lc_CXX=yes | |
10918 no_undefined_flag_CXX=' -zdefs' | |
10919 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $pred
ep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
10920 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbol
s | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
10921 $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' | |
10922 | |
10923 hardcode_libdir_flag_spec_CXX='-R$libdir' | |
10924 hardcode_shlibpath_var_CXX=no | |
10925 case $host_os in | |
10926 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10927 *) | |
10928 # The C++ compiler is used as linker so we must use $wl | |
10929 # flag to pass the commands to the underlying system | |
10930 # linker. We must also pass each convience library through | |
10931 # to the system linker between allextract/defaultextract. | |
10932 # The C++ compiler will combine linker options so we | |
10933 # cannot just pass the convience library names through | |
10934 # without $wl. | |
10935 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10936 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $co
nvenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\
"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' | |
10937 ;; | |
10938 esac | |
10939 link_all_deplibs_CXX=yes | |
10940 | |
10941 output_verbose_link_cmd='echo' | |
10942 | |
10943 # Archives containing C++ object files must be created using | |
10944 # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
10945 # necessary to make sure instantiated templates are included | |
10946 # in the archive. | |
10947 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
10948 ;; | |
10949 gcx*) | |
10950 # Green Hills C++ Compiler | |
10951 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep
_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
10952 | |
10953 # The C++ compiler must be used to create the archive. | |
10954 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
10955 ;; | |
10956 *) | |
10957 # GNU C++ compiler with Solaris linker | |
10958 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
10959 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
10960 if $CC --version | grep -v '^2\.7' > /dev/null; then | |
10961 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $li
bobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
10962 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_sy
mbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
10963 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_object
s $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
10964 | |
10965 # Commands to make compiler produce verbose output that lists | |
10966 # what "hidden" libraries, object files and flags are used when | |
10967 # linking a shared library. | |
10968 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&
1 | grep \"\-L\"" | |
10969 else | |
10970 # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
10971 # platform. | |
10972 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs
$deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
10973 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_sy
mbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
10974 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $li
bobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
10975 | |
10976 # Commands to make compiler produce verbose output that lists | |
10977 # what "hidden" libraries, object files and flags are used when | |
10978 # linking a shared library. | |
10979 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | g
rep \"\-L\"" | |
10980 fi | |
10981 | |
10982 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
10983 fi | |
10984 ;; | |
10985 esac | |
10986 ;; | |
10987 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v
5.0.[024]*) | |
10988 no_undefined_flag_CXX='${wl}-z,text' | |
10989 archive_cmds_need_lc_CXX=no | |
10990 hardcode_shlibpath_var_CXX=no | |
10991 runpath_var='LD_RUN_PATH' | |
10992 | |
10993 case $cc_basename in | |
10994 CC*) | |
10995 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $comp
iler_flags' | |
10996 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$s
oname -o $lib $libobjs $deplibs $compiler_flags' | |
10997 ;; | |
10998 *) | |
10999 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs
$compiler_flags' | |
11000 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}
-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11001 ;; | |
11002 esac | |
11003 ;; | |
11004 sysv5* | sco3.2v5* | sco5v6*) | |
11005 # Note: We can NOT use -z defs as we might desire, because we do not | |
11006 # link with -lc, and that would cause any symbols used from libc to | |
11007 # always be unresolved, which means just about no library would | |
11008 # ever link correctly. If we're not using GNU ld we use -z text | |
11009 # though, which does catch some bad symbols but isn't as heavy-handed | |
11010 # as -z defs. | |
11011 # For security reasons, it is highly recommended that you always | |
11012 # use absolute paths for naming shared libraries, and exclude the | |
11013 # DT_RUNPATH tag from executables and libraries. But doing so | |
11014 # requires that you compile everything twice, which is a pain. | |
11015 # So that behaviour is only enabled if SCOABSPATH is set to a | |
11016 # non-empty value in the environment. Most likely only useful for | |
11017 # creating official distributions of packages. | |
11018 # This is a hack until libtool officially supports absolute path | |
11019 # names for shared libraries. | |
11020 no_undefined_flag_CXX='${wl}-z,text' | |
11021 allow_undefined_flag_CXX='${wl}-z,nodefs' | |
11022 archive_cmds_need_lc_CXX=no | |
11023 hardcode_shlibpath_var_CXX=no | |
11024 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdi
r`' | |
11025 hardcode_libdir_separator_CXX=':' | |
11026 link_all_deplibs_CXX=yes | |
11027 export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
11028 runpath_var='LD_RUN_PATH' | |
11029 | |
11030 case $cc_basename in | |
11031 CC*) | |
11032 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$sona
me -o $lib $libobjs $deplibs $compiler_flags' | |
11033 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\$
{SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flag
s' | |
11034 ;; | |
11035 *) | |
11036 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}
$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11037 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}
-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler
_flags' | |
11038 ;; | |
11039 esac | |
11040 ;; | |
11041 tandem*) | |
11042 case $cc_basename in | |
11043 NCC*) | |
11044 # NonStop-UX NCC 3.20 | |
11045 # FIXME: insert proper C++ library support | |
11046 ld_shlibs_CXX=no | |
11047 ;; | |
11048 *) | |
11049 # FIXME: insert proper C++ library support | |
11050 ld_shlibs_CXX=no | |
11051 ;; | |
11052 esac | |
11053 ;; | |
11054 vxworks*) | |
11055 # FIXME: insert proper C++ library support | |
11056 ld_shlibs_CXX=no | |
11057 ;; | |
11058 *) | |
11059 # FIXME: insert proper C++ library support | |
11060 ld_shlibs_CXX=no | |
11061 ;; | |
11062 esac | |
11063 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
11064 echo "${ECHO_T}$ld_shlibs_CXX" >&6 | |
11065 test "$ld_shlibs_CXX" = no && can_build_shared=no | |
11066 | |
11067 GCC_CXX="$GXX" | |
11068 LD_CXX="$LD" | |
11069 | |
11070 | |
11071 cat > conftest.$ac_ext <<EOF | |
11072 class Foo | |
11073 { | |
11074 public: | |
11075 Foo (void) { a = 0; } | |
11076 private: | |
11077 int a; | |
11078 }; | |
11079 EOF | |
11080 | |
11081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11082 (eval $ac_compile) 2>&5 | |
11083 ac_status=$? | |
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11085 (exit $ac_status); }; then | |
11086 # Parse the compiler output and extract the necessary | |
11087 # objects, libraries and library flags. | |
11088 | |
11089 # Sentinel used to keep track of whether or not we are before | |
11090 # the conftest object file. | |
11091 pre_test_object_deps_done=no | |
11092 | |
11093 # The `*' in the case matches for architectures that use `case' in | |
11094 # $output_verbose_cmd can trigger glob expansion during the loop | |
11095 # eval without this substitution. | |
11096 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glo
b_subst"` | |
11097 | |
11098 for p in `eval $output_verbose_link_cmd`; do | |
11099 case $p in | |
11100 | |
11101 -L* | -R* | -l*) | |
11102 # Some compilers place space between "-{L,R}" and the path. | |
11103 # Remove the space. | |
11104 if test $p = "-L" \ | |
11105 || test $p = "-R"; then | |
11106 prev=$p | |
11107 continue | |
11108 else | |
11109 prev= | |
11110 fi | |
11111 | |
11112 if test "$pre_test_object_deps_done" = no; then | |
11113 case $p in | |
11114 -L* | -R*) | |
11115 # Internal compiler library paths should come after those | |
11116 # provided the user. The postdeps already come after the | |
11117 # user supplied libs so there is no need to process them. | |
11118 if test -z "$compiler_lib_search_path_CXX"; then | |
11119 compiler_lib_search_path_CXX="${prev}${p}" | |
11120 else | |
11121 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${pre
v}${p}" | |
11122 fi | |
11123 ;; | |
11124 # The "-l" case would never come before the object being | |
11125 # linked, so don't bother handling this case. | |
11126 esac | |
11127 else | |
11128 if test -z "$postdeps_CXX"; then | |
11129 postdeps_CXX="${prev}${p}" | |
11130 else | |
11131 postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
11132 fi | |
11133 fi | |
11134 ;; | |
11135 | |
11136 *.$objext) | |
11137 # This assumes that the test object file only shows up | |
11138 # once in the compiler output. | |
11139 if test "$p" = "conftest.$objext"; then | |
11140 pre_test_object_deps_done=yes | |
11141 continue | |
11142 fi | |
11143 | |
11144 if test "$pre_test_object_deps_done" = no; then | |
11145 if test -z "$predep_objects_CXX"; then | |
11146 predep_objects_CXX="$p" | |
11147 else | |
11148 predep_objects_CXX="$predep_objects_CXX $p" | |
11149 fi | |
11150 else | |
11151 if test -z "$postdep_objects_CXX"; then | |
11152 postdep_objects_CXX="$p" | |
11153 else | |
11154 postdep_objects_CXX="$postdep_objects_CXX $p" | |
11155 fi | |
11156 fi | |
11157 ;; | |
11158 | |
11159 *) ;; # Ignore the rest. | |
11160 | |
11161 esac | |
11162 done | |
11163 | |
11164 # Clean up. | |
11165 rm -f a.out a.exe | |
11166 else | |
11167 echo "libtool.m4: error: problem compiling CXX test program" | |
11168 fi | |
11169 | |
11170 $rm -f confest.$objext | |
11171 | |
11172 # PORTME: override above test on systems where it is broken | |
11173 case $host_os in | |
11174 interix3*) | |
11175 # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
11176 # hack all around it, let's just trust "g++" to DTRT. | |
11177 predep_objects_CXX= | |
11178 postdep_objects_CXX= | |
11179 postdeps_CXX= | |
11180 ;; | |
11181 | |
11182 solaris*) | |
11183 case $cc_basename in | |
11184 CC*) | |
11185 # Adding this requires a known-good setup of shared libraries for | |
11186 # Sun compiler versions before 5.6, else PIC objects from an old | |
11187 # archive will be linked into the output, leading to subtle bugs. | |
11188 postdeps_CXX='-lCstd -lCrun' | |
11189 ;; | |
11190 esac | |
11191 ;; | |
11192 esac | |
11193 | |
11194 | |
11195 case " $postdeps_CXX " in | |
11196 *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
11197 esac | |
11198 | |
11199 lt_prog_compiler_wl_CXX= | |
11200 lt_prog_compiler_pic_CXX= | |
11201 lt_prog_compiler_static_CXX= | |
11202 | |
11203 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
11204 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
11205 | |
11206 # C++ specific cases for pic, static, wl, etc. | |
11207 if test "$GXX" = yes; then | |
11208 lt_prog_compiler_wl_CXX='-Wl,' | |
11209 lt_prog_compiler_static_CXX='-static' | |
11210 | |
11211 case $host_os in | |
11212 aix*) | |
11213 # All AIX code is PIC. | |
11214 if test "$host_cpu" = ia64; then | |
11215 # AIX 5 now supports IA64 processor | |
11216 lt_prog_compiler_static_CXX='-Bstatic' | |
11217 fi | |
11218 ;; | |
11219 amigaos*) | |
11220 # FIXME: we need at least 68020 code to build shared libraries, but | |
11221 # adding the `-m68020' flag to GCC prevents building anything better, | |
11222 # like `-m68040'. | |
11223 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
11224 ;; | |
11225 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
11226 # PIC is the default for these OSes. | |
11227 ;; | |
11228 mingw* | os2* | pw32*) | |
11229 # This hack is so that the source file can tell whether it is being | |
11230 # built for inclusion in a dll (and should export symbols for example). | |
11231 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
11232 ;; | |
11233 darwin* | rhapsody*) | |
11234 # PIC is the default on this platform | |
11235 # Common symbols not allowed in MH_DYLIB files | |
11236 lt_prog_compiler_pic_CXX='-fno-common' | |
11237 ;; | |
11238 *djgpp*) | |
11239 # DJGPP does not support shared libraries at all | |
11240 lt_prog_compiler_pic_CXX= | |
11241 ;; | |
11242 interix3*) | |
11243 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
11244 # Instead, we relocate shared libraries at runtime. | |
11245 ;; | |
11246 sysv4*MP*) | |
11247 if test -d /usr/nec; then | |
11248 lt_prog_compiler_pic_CXX=-Kconform_pic | |
11249 fi | |
11250 ;; | |
11251 hpux*) | |
11252 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
11253 # not for PA HP-UX. | |
11254 case $host_cpu in | |
11255 hppa*64*|ia64*) | |
11256 ;; | |
11257 *) | |
11258 lt_prog_compiler_pic_CXX='-fPIC' | |
11259 ;; | |
11260 esac | |
11261 ;; | |
11262 *) | |
11263 lt_prog_compiler_pic_CXX='-fPIC' | |
11264 ;; | |
11265 esac | |
11266 else | |
11267 case $host_os in | |
11268 aix4* | aix5*) | |
11269 # All AIX code is PIC. | |
11270 if test "$host_cpu" = ia64; then | |
11271 # AIX 5 now supports IA64 processor | |
11272 lt_prog_compiler_static_CXX='-Bstatic' | |
11273 else | |
11274 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
11275 fi | |
11276 ;; | |
11277 chorus*) | |
11278 case $cc_basename in | |
11279 cxch68*) | |
11280 # Green Hills C++ Compiler | |
11281 # _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/lib
C.a $MVME_DIR/lib/classix/libcx.s.a" | |
11282 ;; | |
11283 esac | |
11284 ;; | |
11285 darwin*) | |
11286 # PIC is the default on this platform | |
11287 # Common symbols not allowed in MH_DYLIB files | |
11288 case $cc_basename in | |
11289 xlc*) | |
11290 lt_prog_compiler_pic_CXX='-qnocommon' | |
11291 lt_prog_compiler_wl_CXX='-Wl,' | |
11292 ;; | |
11293 esac | |
11294 ;; | |
11295 dgux*) | |
11296 case $cc_basename in | |
11297 ec++*) | |
11298 lt_prog_compiler_pic_CXX='-KPIC' | |
11299 ;; | |
11300 ghcx*) | |
11301 # Green Hills C++ Compiler | |
11302 lt_prog_compiler_pic_CXX='-pic' | |
11303 ;; | |
11304 *) | |
11305 ;; | |
11306 esac | |
11307 ;; | |
11308 freebsd* | kfreebsd*-gnu | dragonfly*) | |
11309 # FreeBSD uses GNU C++ | |
11310 ;; | |
11311 hpux9* | hpux10* | hpux11*) | |
11312 case $cc_basename in | |
11313 CC*) | |
11314 lt_prog_compiler_wl_CXX='-Wl,' | |
11315 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
11316 if test "$host_cpu" != ia64; then | |
11317 lt_prog_compiler_pic_CXX='+Z' | |
11318 fi | |
11319 ;; | |
11320 aCC*) | |
11321 lt_prog_compiler_wl_CXX='-Wl,' | |
11322 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
11323 case $host_cpu in | |
11324 hppa*64*|ia64*) | |
11325 # +Z the default | |
11326 ;; | |
11327 *) | |
11328 lt_prog_compiler_pic_CXX='+Z' | |
11329 ;; | |
11330 esac | |
11331 ;; | |
11332 *) | |
11333 ;; | |
11334 esac | |
11335 ;; | |
11336 interix*) | |
11337 # This is c89, which is MS Visual C++ (no shared libs) | |
11338 # Anyone wants to do a port? | |
11339 ;; | |
11340 irix5* | irix6* | nonstopux*) | |
11341 case $cc_basename in | |
11342 CC*) | |
11343 lt_prog_compiler_wl_CXX='-Wl,' | |
11344 lt_prog_compiler_static_CXX='-non_shared' | |
11345 # CC pic flag -KPIC is the default. | |
11346 ;; | |
11347 *) | |
11348 ;; | |
11349 esac | |
11350 ;; | |
11351 linux*) | |
11352 case $cc_basename in | |
11353 KCC*) | |
11354 # KAI C++ Compiler | |
11355 lt_prog_compiler_wl_CXX='--backend -Wl,' | |
11356 lt_prog_compiler_pic_CXX='-fPIC' | |
11357 ;; | |
11358 icpc* | ecpc*) | |
11359 # Intel C++ | |
11360 lt_prog_compiler_wl_CXX='-Wl,' | |
11361 lt_prog_compiler_pic_CXX='-KPIC' | |
11362 lt_prog_compiler_static_CXX='-static' | |
11363 ;; | |
11364 pgCC*) | |
11365 # Portland Group C++ compiler. | |
11366 lt_prog_compiler_wl_CXX='-Wl,' | |
11367 lt_prog_compiler_pic_CXX='-fpic' | |
11368 lt_prog_compiler_static_CXX='-Bstatic' | |
11369 ;; | |
11370 cxx*) | |
11371 # Compaq C++ | |
11372 # Make sure the PIC flag is empty. It appears that all Alpha | |
11373 # Linux and Compaq Tru64 Unix objects are PIC. | |
11374 lt_prog_compiler_pic_CXX= | |
11375 lt_prog_compiler_static_CXX='-non_shared' | |
11376 ;; | |
11377 *) | |
11378 ;; | |
11379 esac | |
11380 ;; | |
11381 lynxos*) | |
11382 ;; | |
11383 m88k*) | |
11384 ;; | |
11385 mvs*) | |
11386 case $cc_basename in | |
11387 cxx*) | |
11388 lt_prog_compiler_pic_CXX='-W c,exportall' | |
11389 ;; | |
11390 *) | |
11391 ;; | |
11392 esac | |
11393 ;; | |
11394 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | |
11395 ;; | |
11396 osf3* | osf4* | osf5*) | |
11397 case $cc_basename in | |
11398 KCC*) | |
11399 lt_prog_compiler_wl_CXX='--backend -Wl,' | |
11400 ;; | |
11401 RCC*) | |
11402 # Rational C++ 2.4.1 | |
11403 lt_prog_compiler_pic_CXX='-pic' | |
11404 ;; | |
11405 cxx*) | |
11406 # Digital/Compaq C++ | |
11407 lt_prog_compiler_wl_CXX='-Wl,' | |
11408 # Make sure the PIC flag is empty. It appears that all Alpha | |
11409 # Linux and Compaq Tru64 Unix objects are PIC. | |
11410 lt_prog_compiler_pic_CXX= | |
11411 lt_prog_compiler_static_CXX='-non_shared' | |
11412 ;; | |
11413 *) | |
11414 ;; | |
11415 esac | |
11416 ;; | |
11417 psos*) | |
11418 ;; | |
11419 solaris*) | |
11420 case $cc_basename in | |
11421 CC*) | |
11422 # Sun C++ 4.2, 5.x and Centerline C++ | |
11423 lt_prog_compiler_pic_CXX='-KPIC' | |
11424 lt_prog_compiler_static_CXX='-Bstatic' | |
11425 lt_prog_compiler_wl_CXX='-Qoption ld ' | |
11426 ;; | |
11427 gcx*) | |
11428 # Green Hills C++ Compiler | |
11429 lt_prog_compiler_pic_CXX='-PIC' | |
11430 ;; | |
11431 *) | |
11432 ;; | |
11433 esac | |
11434 ;; | |
11435 sunos4*) | |
11436 case $cc_basename in | |
11437 CC*) | |
11438 # Sun C++ 4.x | |
11439 lt_prog_compiler_pic_CXX='-pic' | |
11440 lt_prog_compiler_static_CXX='-Bstatic' | |
11441 ;; | |
11442 lcc*) | |
11443 # Lucid | |
11444 lt_prog_compiler_pic_CXX='-pic' | |
11445 ;; | |
11446 *) | |
11447 ;; | |
11448 esac | |
11449 ;; | |
11450 tandem*) | |
11451 case $cc_basename in | |
11452 NCC*) | |
11453 # NonStop-UX NCC 3.20 | |
11454 lt_prog_compiler_pic_CXX='-KPIC' | |
11455 ;; | |
11456 *) | |
11457 ;; | |
11458 esac | |
11459 ;; | |
11460 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
11461 case $cc_basename in | |
11462 CC*) | |
11463 lt_prog_compiler_wl_CXX='-Wl,' | |
11464 lt_prog_compiler_pic_CXX='-KPIC' | |
11465 lt_prog_compiler_static_CXX='-Bstatic' | |
11466 ;; | |
11467 esac | |
11468 ;; | |
11469 vxworks*) | |
11470 ;; | |
11471 *) | |
11472 lt_prog_compiler_can_build_shared_CXX=no | |
11473 ;; | |
11474 esac | |
11475 fi | |
11476 | |
11477 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | |
11478 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 | |
11479 | |
11480 # | |
11481 # Check to make sure the PIC flag actually works. | |
11482 # | |
11483 if test -n "$lt_prog_compiler_pic_CXX"; then | |
11484 | |
11485 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX w
orks" >&5 | |
11486 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works...
$ECHO_C" >&6 | |
11487 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | |
11488 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11489 else | |
11490 lt_prog_compiler_pic_works_CXX=no | |
11491 ac_outfile=conftest.$ac_objext | |
11492 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11493 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
11494 # Insert the option either (1) after the last *FLAGS variable, or | |
11495 # (2) before a word containing "conftest.", or (3) at the end. | |
11496 # Note that $ac_compile itself does not contain backslashes and begins | |
11497 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
11498 # The option is referenced via a variable to avoid confusing sed. | |
11499 lt_compile=`echo "$ac_compile" | $SED \ | |
11500 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
11501 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
11502 -e 's:$: $lt_compiler_flag:'` | |
11503 (eval echo "\"\$as_me:11503: $lt_compile\"" >&5) | |
11504 (eval "$lt_compile" 2>conftest.err) | |
11505 ac_status=$? | |
11506 cat conftest.err >&5 | |
11507 echo "$as_me:11507: \$? = $ac_status" >&5 | |
11508 if (exit $ac_status) && test -s "$ac_outfile"; then | |
11509 # The compiler can only warn and ignore the option if not recognized | |
11510 # So say no if there are warnings other than the usual output. | |
11511 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
11512 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11513 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the
n | |
11514 lt_prog_compiler_pic_works_CXX=yes | |
11515 fi | |
11516 fi | |
11517 $rm conftest* | |
11518 | |
11519 fi | |
11520 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | |
11521 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 | |
11522 | |
11523 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | |
11524 case $lt_prog_compiler_pic_CXX in | |
11525 "" | " "*) ;; | |
11526 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
11527 esac | |
11528 else | |
11529 lt_prog_compiler_pic_CXX= | |
11530 lt_prog_compiler_can_build_shared_CXX=no | |
11531 fi | |
11532 | |
11533 fi | |
11534 case $host_os in | |
11535 # For platforms which do not support PIC, -DPIC is meaningless: | |
11536 *djgpp*) | |
11537 lt_prog_compiler_pic_CXX= | |
11538 ;; | |
11539 *) | |
11540 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
11541 ;; | |
11542 esac | |
11543 | |
11544 # | |
11545 # Check to make sure the static flag actually works. | |
11546 # | |
11547 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_C
XX\" | |
11548 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag work
s" >&5 | |
11549 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $EC
HO_C" >&6 | |
11550 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then | |
11551 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11552 else | |
11553 lt_prog_compiler_static_works_CXX=no | |
11554 save_LDFLAGS="$LDFLAGS" | |
11555 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
11556 printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
11557 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
11558 # The linker can only warn and ignore the option if not recognized | |
11559 # So say no if there are warnings | |
11560 if test -s conftest.err; then | |
11561 # Append any errors to the config.log. | |
11562 cat conftest.err 1>&5 | |
11563 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
11564 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11565 if diff conftest.exp conftest.er2 >/dev/null; then | |
11566 lt_prog_compiler_static_works_CXX=yes | |
11567 fi | |
11568 else | |
11569 lt_prog_compiler_static_works_CXX=yes | |
11570 fi | |
11571 fi | |
11572 $rm conftest* | |
11573 LDFLAGS="$save_LDFLAGS" | |
11574 | |
11575 fi | |
11576 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 | |
11577 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 | |
11578 | |
11579 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then | |
11580 : | |
11581 else | |
11582 lt_prog_compiler_static_CXX= | |
11583 fi | |
11584 | |
11585 | |
11586 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
11587 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >
&6 | |
11588 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | |
11589 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11590 else | |
11591 lt_cv_prog_compiler_c_o_CXX=no | |
11592 $rm -r conftest 2>/dev/null | |
11593 mkdir conftest | |
11594 cd conftest | |
11595 mkdir out | |
11596 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11597 | |
11598 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
11599 # Insert the option either (1) after the last *FLAGS variable, or | |
11600 # (2) before a word containing "conftest.", or (3) at the end. | |
11601 # Note that $ac_compile itself does not contain backslashes and begins | |
11602 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
11603 lt_compile=`echo "$ac_compile" | $SED \ | |
11604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
11605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
11606 -e 's:$: $lt_compiler_flag:'` | |
11607 (eval echo "\"\$as_me:11607: $lt_compile\"" >&5) | |
11608 (eval "$lt_compile" 2>out/conftest.err) | |
11609 ac_status=$? | |
11610 cat out/conftest.err >&5 | |
11611 echo "$as_me:11611: \$? = $ac_status" >&5 | |
11612 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
11613 then | |
11614 # The compiler can only warn and ignore the option if not recognized | |
11615 # So say no if there are warnings | |
11616 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
11617 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
11618 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/d
ev/null; then | |
11619 lt_cv_prog_compiler_c_o_CXX=yes | |
11620 fi | |
11621 fi | |
11622 chmod u+w . 2>&5 | |
11623 $rm conftest* | |
11624 # SGI C++ compiler will create directory out/ii_files/ for | |
11625 # template instantiation | |
11626 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
11627 $rm out/* && rmdir out | |
11628 cd .. | |
11629 rmdir conftest | |
11630 $rm conftest* | |
11631 | |
11632 fi | |
11633 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
11634 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 | |
11635 | |
11636 | |
11637 hard_links="nottested" | |
11638 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
11639 # do not overwrite the value of need_locks provided by the user | |
11640 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
11641 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
11642 hard_links=yes | |
11643 $rm conftest* | |
11644 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
11645 touch conftest.a | |
11646 ln conftest.a conftest.b 2>&5 || hard_links=no | |
11647 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
11648 echo "$as_me:$LINENO: result: $hard_links" >&5 | |
11649 echo "${ECHO_T}$hard_links" >&6 | |
11650 if test "$hard_links" = no; then | |
11651 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make
-j' may be unsafe" >&5 | |
11652 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be un
safe" >&2;} | |
11653 need_locks=warn | |
11654 fi | |
11655 else | |
11656 need_locks=no | |
11657 fi | |
11658 | |
11659 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports share
d libraries" >&5 | |
11660 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
ies... $ECHO_C" >&6 | |
11661 | |
11662 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SE
D '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
11663 case $host_os in | |
11664 aix4* | aix5*) | |
11665 # If we're using GNU nm, then we don't want the "-C" option. | |
11666 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
11667 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
11668 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((
\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { prin
t \$3 } }'\'' | sort -u > $export_symbols' | |
11669 else | |
11670 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if ((
(\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { pri
nt \$3 } }'\'' | sort -u > $export_symbols' | |
11671 fi | |
11672 ;; | |
11673 pw32*) | |
11674 export_symbols_cmds_CXX="$ltdll_cmds" | |
11675 ;; | |
11676 cygwin* | mingw*) | |
11677 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' | |
11678 ;; | |
11679 kfreebsd*-gnu) | |
11680 link_all_deplibs_CXX=no | |
11681 ;; | |
11682 linux*) | |
11683 link_all_deplibs_CXX=no | |
11684 ;; | |
11685 *) | |
11686 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $
SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
11687 ;; | |
11688 esac | |
11689 | |
11690 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
11691 echo "${ECHO_T}$ld_shlibs_CXX" >&6 | |
11692 test "$ld_shlibs_CXX" = no && can_build_shared=no | |
11693 | |
11694 # | |
11695 # Do we need to explicitly link libc? | |
11696 # | |
11697 case "x$archive_cmds_need_lc_CXX" in | |
11698 x|xyes) | |
11699 # Assume -lc should be added | |
11700 archive_cmds_need_lc_CXX=yes | |
11701 | |
11702 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
11703 case $archive_cmds_CXX in | |
11704 *'~'*) | |
11705 # FIXME: we may have to deal with multi-command sequences. | |
11706 ;; | |
11707 '$CC '*) | |
11708 # Test whether the compiler implicitly links with -lc since on some | |
11709 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11710 # to ld, don't add -lc before -lgcc. | |
11711 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in"
>&5 | |
11712 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
6 | |
11713 $rm conftest* | |
11714 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11715 | |
11716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11717 (eval $ac_compile) 2>&5 | |
11718 ac_status=$? | |
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11720 (exit $ac_status); } 2>conftest.err; then | |
11721 soname=conftest | |
11722 lib=conftest | |
11723 libobjs=conftest.$ac_objext | |
11724 deplibs= | |
11725 wl=$lt_prog_compiler_wl_CXX | |
11726 pic_flag=$lt_prog_compiler_pic_CXX | |
11727 compiler_flags=-v | |
11728 linker_flags=-v | |
11729 verstring= | |
11730 output_objdir=. | |
11731 libname=conftest | |
11732 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
11733 allow_undefined_flag_CXX= | |
11734 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -
lc \" \>/dev/null 2\>\&1\"") >&5 | |
11735 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
11736 ac_status=$? | |
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11738 (exit $ac_status); } | |
11739 then | |
11740 archive_cmds_need_lc_CXX=no | |
11741 else | |
11742 archive_cmds_need_lc_CXX=yes | |
11743 fi | |
11744 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
11745 else | |
11746 cat conftest.err 1>&5 | |
11747 fi | |
11748 $rm conftest* | |
11749 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | |
11750 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 | |
11751 ;; | |
11752 esac | |
11753 fi | |
11754 ;; | |
11755 esac | |
11756 | |
11757 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
11758 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
11759 library_names_spec= | |
11760 libname_spec='lib$name' | |
11761 soname_spec= | |
11762 shrext_cmds=".so" | |
11763 postinstall_cmds= | |
11764 postuninstall_cmds= | |
11765 finish_cmds= | |
11766 finish_eval= | |
11767 shlibpath_var= | |
11768 shlibpath_overrides_runpath=unknown | |
11769 version_type=none | |
11770 dynamic_linker="$host_os ld.so" | |
11771 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11772 if test "$GCC" = yes; then | |
11773 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -
e "s/^libraries://" -e "s,=/,/,g"` | |
11774 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
11775 # if the path contains ";" then we assume it to be the separator | |
11776 # otherwise default to the standard path separator (i.e. ":") - it is | |
11777 # assumed that no part of a normal pathname contains ";" but that should | |
11778 # okay in the real world where ";" in dirpaths is itself problematic. | |
11779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /
g'` | |
11780 else | |
11781 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PA
TH_SEPARATOR/ /g"` | |
11782 fi | |
11783 else | |
11784 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11785 fi | |
11786 need_lib_prefix=unknown | |
11787 hardcode_into_libs=no | |
11788 | |
11789 # when you set need_version to no, make sure it does not cause -set_version | |
11790 # flags to be left without arguments | |
11791 need_version=unknown | |
11792 | |
11793 case $host_os in | |
11794 aix3*) | |
11795 version_type=linux | |
11796 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11797 shlibpath_var=LIBPATH | |
11798 | |
11799 # AIX 3 has no versioning support, so we append a major version to the name. | |
11800 soname_spec='${libname}${release}${shared_ext}$major' | |
11801 ;; | |
11802 | |
11803 aix4* | aix5*) | |
11804 version_type=linux | |
11805 need_lib_prefix=no | |
11806 need_version=no | |
11807 hardcode_into_libs=yes | |
11808 if test "$host_cpu" = ia64; then | |
11809 # AIX 5 supports IA64 | |
11810 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${rele
ase}${shared_ext}$versuffix $libname${shared_ext}' | |
11811 shlibpath_var=LD_LIBRARY_PATH | |
11812 else | |
11813 # With GCC up to 2.95.x, collect2 would create an import file | |
11814 # for dependence libraries. The import file would start with | |
11815 # the line `#! .'. This would cause the generated library to | |
11816 # depend on `.', always an invalid library. This was fixed in | |
11817 # development snapshots of GCC prior to 3.0. | |
11818 case $host_os in | |
11819 aix4 | aix4.[01] | aix4.[01].*) | |
11820 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11821 echo ' yes ' | |
11822 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
11823 : | |
11824 else | |
11825 can_build_shared=no | |
11826 fi | |
11827 ;; | |
11828 esac | |
11829 # AIX (on Power*) has no versioning support, so currently we can not hardcod
e correct | |
11830 # soname into executable. Probably we can add versioning support to | |
11831 # collect2, so additional links can be useful in future. | |
11832 if test "$aix_use_runtimelinking" = yes; then | |
11833 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11834 # instead of lib<name>.a to let people know that these are not | |
11835 # typical AIX shared libraries. | |
11836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}
${release}${shared_ext}$major $libname${shared_ext}' | |
11837 else | |
11838 # We preserve .a as extension for shared libraries through AIX4.2 | |
11839 # and later when we are not doing run time linking. | |
11840 library_names_spec='${libname}${release}.a $libname.a' | |
11841 soname_spec='${libname}${release}${shared_ext}$major' | |
11842 fi | |
11843 shlibpath_var=LIBPATH | |
11844 fi | |
11845 ;; | |
11846 | |
11847 amigaos*) | |
11848 library_names_spec='$libname.ixlibrary $libname.a' | |
11849 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
11850 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ech
o "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/lib
s/${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' | |
11851 ;; | |
11852 | |
11853 beos*) | |
11854 library_names_spec='${libname}${shared_ext}' | |
11855 dynamic_linker="$host_os ld.so" | |
11856 shlibpath_var=LIBRARY_PATH | |
11857 ;; | |
11858 | |
11859 bsdi[45]*) | |
11860 version_type=linux | |
11861 need_version=no | |
11862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
11863 soname_spec='${libname}${release}${shared_ext}$major' | |
11864 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11865 shlibpath_var=LD_LIBRARY_PATH | |
11866 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /
usr/local/lib" | |
11867 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11868 # the default ld.so.conf also contains /usr/contrib/lib and | |
11869 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11870 # libtool to hard-code these into programs | |
11871 ;; | |
11872 | |
11873 cygwin* | mingw* | pw32*) | |
11874 version_type=windows | |
11875 shrext_cmds=".dll" | |
11876 need_version=no | |
11877 need_lib_prefix=no | |
11878 | |
11879 case $GCC,$host_os in | |
11880 yes,cygwin* | yes,mingw* | yes,pw32*) | |
11881 library_names_spec='$libname.dll.a' | |
11882 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11883 postinstall_cmds='base_file=`basename \${file}`~ | |
11884 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''
`~ | |
11885 dldir=$destdir/`dirname \$dlpath`~ | |
11886 test -d \$dldir || mkdir -p \$dldir~ | |
11887 $install_prog $dir/$dlname \$dldir/$dlname~ | |
11888 chmod a+x \$dldir/$dlname' | |
11889 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11890 dlpath=$dir/\$dldll~ | |
11891 $rm \$dlpath' | |
11892 shlibpath_overrides_runpath=yes | |
11893 | |
11894 case $host_os in | |
11895 cygwin*) | |
11896 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11897 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $S
ED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11898 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
11899 ;; | |
11900 mingw*) | |
11901 # MinGW DLLs use traditional 'lib' prefix | |
11902 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}
${shared_ext}' | |
11903 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $S
ED -e "s/^libraries://" -e "s,=/,/,g"` | |
11904 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
11905 # It is most probably a Windows format PATH printed by | |
11906 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
11907 # path with ; separators, and with drive letters. We can handle the | |
11908 # drive letters (cygwin fileutils understands them), so leave them, | |
11909 # especially as we might pass files found there to a mingw objdump, | |
11910 # which wouldn't understand a cygwinified path. Ahh. | |
11911 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/
;/ /g'` | |
11912 else | |
11913 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g"` | |
11914 fi | |
11915 ;; | |
11916 pw32*) | |
11917 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11918 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release
} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11919 ;; | |
11920 esac | |
11921 ;; | |
11922 | |
11923 *) | |
11924 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versu
ffix}${shared_ext} $libname.lib' | |
11925 ;; | |
11926 esac | |
11927 dynamic_linker='Win32 ld.exe' | |
11928 # FIXME: first we should search . and the directory the executable is in | |
11929 shlibpath_var=PATH | |
11930 ;; | |
11931 | |
11932 darwin* | rhapsody*) | |
11933 dynamic_linker="$host_os dyld" | |
11934 version_type=darwin | |
11935 need_lib_prefix=no | |
11936 need_version=no | |
11937 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${re
lease}${major}$shared_ext ${libname}$shared_ext' | |
11938 soname_spec='${libname}${release}${major}$shared_ext' | |
11939 shlibpath_overrides_runpath=yes | |
11940 shlibpath_var=DYLD_LIBRARY_PATH | |
11941 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11942 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
11943 if test "$GCC" = yes; then | |
11944 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 /us
r/lib /usr/local/lib,g"` | |
11945 else | |
11946 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
11947 fi | |
11948 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11949 ;; | |
11950 | |
11951 dgux*) | |
11952 version_type=linux | |
11953 need_lib_prefix=no | |
11954 need_version=no | |
11955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname$shared_ext' | |
11956 soname_spec='${libname}${release}${shared_ext}$major' | |
11957 shlibpath_var=LD_LIBRARY_PATH | |
11958 ;; | |
11959 | |
11960 freebsd1*) | |
11961 dynamic_linker=no | |
11962 ;; | |
11963 | |
11964 kfreebsd*-gnu) | |
11965 version_type=linux | |
11966 need_lib_prefix=no | |
11967 need_version=no | |
11968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${shared_ext}' | |
11969 soname_spec='${libname}${release}${shared_ext}$major' | |
11970 shlibpath_var=LD_LIBRARY_PATH | |
11971 shlibpath_overrides_runpath=no | |
11972 hardcode_into_libs=yes | |
11973 dynamic_linker='GNU ld.so' | |
11974 ;; | |
11975 | |
11976 freebsd* | dragonfly*) | |
11977 # DragonFly does not have aout. When/if they implement a new | |
11978 # versioning mechanism, adjust this. | |
11979 if test -x /usr/bin/objformat; then | |
11980 objformat=`/usr/bin/objformat` | |
11981 else | |
11982 case $host_os in | |
11983 freebsd[123]*) objformat=aout ;; | |
11984 *) objformat=elf ;; | |
11985 esac | |
11986 fi | |
11987 version_type=freebsd-$objformat | |
11988 case $version_type in | |
11989 freebsd-elf*) | |
11990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}
${release}${shared_ext} $libname${shared_ext}' | |
11991 need_version=no | |
11992 need_lib_prefix=no | |
11993 ;; | |
11994 freebsd-*) | |
11995 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${
shared_ext}$versuffix' | |
11996 need_version=yes | |
11997 ;; | |
11998 esac | |
11999 shlibpath_var=LD_LIBRARY_PATH | |
12000 case $host_os in | |
12001 freebsd2*) | |
12002 shlibpath_overrides_runpath=yes | |
12003 ;; | |
12004 freebsd3.[01]* | freebsdelf3.[01]*) | |
12005 shlibpath_overrides_runpath=yes | |
12006 hardcode_into_libs=yes | |
12007 ;; | |
12008 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
12009 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
12010 shlibpath_overrides_runpath=no | |
12011 hardcode_into_libs=yes | |
12012 ;; | |
12013 freebsd*) # from 4.6 on | |
12014 shlibpath_overrides_runpath=yes | |
12015 hardcode_into_libs=yes | |
12016 ;; | |
12017 esac | |
12018 ;; | |
12019 | |
12020 gnu*) | |
12021 version_type=linux | |
12022 need_lib_prefix=no | |
12023 need_version=no | |
12024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}${major} ${libname}${shared_ext}' | |
12025 soname_spec='${libname}${release}${shared_ext}$major' | |
12026 shlibpath_var=LD_LIBRARY_PATH | |
12027 hardcode_into_libs=yes | |
12028 ;; | |
12029 | |
12030 hpux9* | hpux10* | hpux11*) | |
12031 # Give a soname corresponding to the major version so that dld.sl refuses to | |
12032 # link against other versions. | |
12033 version_type=sunos | |
12034 need_lib_prefix=no | |
12035 need_version=no | |
12036 case $host_cpu in | |
12037 ia64*) | |
12038 shrext_cmds='.so' | |
12039 hardcode_into_libs=yes | |
12040 dynamic_linker="$host_os dld.so" | |
12041 shlibpath_var=LD_LIBRARY_PATH | |
12042 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
12043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major $libname${shared_ext}' | |
12044 soname_spec='${libname}${release}${shared_ext}$major' | |
12045 if test "X$HPUX_IA64_MODE" = X32; then | |
12046 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local
/lib" | |
12047 else | |
12048 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
12049 fi | |
12050 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12051 ;; | |
12052 hppa*64*) | |
12053 shrext_cmds='.sl' | |
12054 hardcode_into_libs=yes | |
12055 dynamic_linker="$host_os dld.sl" | |
12056 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
12057 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
12058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}$
{release}${shared_ext}$major $libname${shared_ext}' | |
12059 soname_spec='${libname}${release}${shared_ext}$major' | |
12060 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
12061 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12062 ;; | |
12063 *) | |
12064 shrext_cmds='.sl' | |
12065 dynamic_linker="$host_os dld.sl" | |
12066 shlibpath_var=SHLIB_PATH | |
12067 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
12068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major $libname${shared_ext}' | |
12069 soname_spec='${libname}${release}${shared_ext}$major' | |
12070 ;; | |
12071 esac | |
12072 # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
12073 postinstall_cmds='chmod 555 $lib' | |
12074 ;; | |
12075 | |
12076 interix3*) | |
12077 version_type=linux | |
12078 need_lib_prefix=no | |
12079 need_version=no | |
12080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${shared_ext}' | |
12081 soname_spec='${libname}${release}${shared_ext}$major' | |
12082 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
12083 shlibpath_var=LD_LIBRARY_PATH | |
12084 shlibpath_overrides_runpath=no | |
12085 hardcode_into_libs=yes | |
12086 ;; | |
12087 | |
12088 irix5* | irix6* | nonstopux*) | |
12089 case $host_os in | |
12090 nonstopux*) version_type=nonstopux ;; | |
12091 *) | |
12092 if test "$lt_cv_prog_gnu_ld" = yes; then | |
12093 version_type=linux | |
12094 else | |
12095 version_type=irix | |
12096 fi ;; | |
12097 esac | |
12098 need_lib_prefix=no | |
12099 need_version=no | |
12100 soname_spec='${libname}${release}${shared_ext}$major' | |
12101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext
}' | |
12102 case $host_os in | |
12103 irix5* | nonstopux*) | |
12104 libsuff= shlibsuff= | |
12105 ;; | |
12106 *) | |
12107 case $LD in # libtool.m4 will add one of these switches to LD | |
12108 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
12109 libsuff= shlibsuff= libmagic=32-bit;; | |
12110 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
12111 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
12112 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
12113 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
12114 *) libsuff= shlibsuff= libmagic=never-match;; | |
12115 esac | |
12116 ;; | |
12117 esac | |
12118 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
12119 shlibpath_overrides_runpath=no | |
12120 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${li
bsuff}" | |
12121 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
12122 hardcode_into_libs=yes | |
12123 ;; | |
12124 | |
12125 # No shared lib support for Linux oldld, aout, or coff. | |
12126 linux*oldld* | linux*aout* | linux*coff*) | |
12127 dynamic_linker=no | |
12128 ;; | |
12129 | |
12130 # This must be Linux ELF. | |
12131 linux*) | |
12132 version_type=linux | |
12133 need_lib_prefix=no | |
12134 need_version=no | |
12135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
12136 soname_spec='${libname}${release}${shared_ext}$major' | |
12137 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
12138 shlibpath_var=LD_LIBRARY_PATH | |
12139 shlibpath_overrides_runpath=no | |
12140 # This implies no fast_install, which is unacceptable. | |
12141 # Some rework will be needed to allow for fast_install | |
12142 # before this can be enabled. | |
12143 hardcode_into_libs=yes | |
12144 | |
12145 # Append ld.so.conf contents to the search path | |
12146 if test -f /etc/ld.so.conf; then | |
12147 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); ski
p = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*
//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
12148 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
12149 fi | |
12150 | |
12151 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
12152 # powerpc, because MkLinux only supported shared libraries with the | |
12153 # GNU dynamic linker. Since this was broken with cross compilers, | |
12154 # most powerpc-linux boxes support dynamic linking these days and | |
12155 # people can always --disable-shared, the test was removed, and we | |
12156 # assume the GNU/Linux dynamic linker is in use. | |
12157 dynamic_linker='GNU/Linux ld.so' | |
12158 ;; | |
12159 | |
12160 netbsdelf*-gnu) | |
12161 version_type=linux | |
12162 need_lib_prefix=no | |
12163 need_version=no | |
12164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${shared_ext}' | |
12165 soname_spec='${libname}${release}${shared_ext}$major' | |
12166 shlibpath_var=LD_LIBRARY_PATH | |
12167 shlibpath_overrides_runpath=no | |
12168 hardcode_into_libs=yes | |
12169 dynamic_linker='NetBSD ld.elf_so' | |
12170 ;; | |
12171 | |
12172 knetbsd*-gnu) | |
12173 version_type=linux | |
12174 need_lib_prefix=no | |
12175 need_version=no | |
12176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${shared_ext}' | |
12177 soname_spec='${libname}${release}${shared_ext}$major' | |
12178 shlibpath_var=LD_LIBRARY_PATH | |
12179 shlibpath_overrides_runpath=no | |
12180 hardcode_into_libs=yes | |
12181 dynamic_linker='GNU ld.so' | |
12182 ;; | |
12183 | |
12184 netbsd*) | |
12185 version_type=sunos | |
12186 need_lib_prefix=no | |
12187 need_version=no | |
12188 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
12189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
shared_ext}$versuffix' | |
12190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12191 dynamic_linker='NetBSD (a.out) ld.so' | |
12192 else | |
12193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major ${libname}${shared_ext}' | |
12194 soname_spec='${libname}${release}${shared_ext}$major' | |
12195 dynamic_linker='NetBSD ld.elf_so' | |
12196 fi | |
12197 shlibpath_var=LD_LIBRARY_PATH | |
12198 shlibpath_overrides_runpath=yes | |
12199 hardcode_into_libs=yes | |
12200 ;; | |
12201 | |
12202 newsos6) | |
12203 version_type=linux | |
12204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
12205 shlibpath_var=LD_LIBRARY_PATH | |
12206 shlibpath_overrides_runpath=yes | |
12207 ;; | |
12208 | |
12209 nto-qnx*) | |
12210 version_type=linux | |
12211 need_lib_prefix=no | |
12212 need_version=no | |
12213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
12214 soname_spec='${libname}${release}${shared_ext}$major' | |
12215 shlibpath_var=LD_LIBRARY_PATH | |
12216 shlibpath_overrides_runpath=yes | |
12217 ;; | |
12218 | |
12219 openbsd*) | |
12220 version_type=sunos | |
12221 sys_lib_dlsearch_path_spec="/usr/lib" | |
12222 need_lib_prefix=no | |
12223 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
12224 case $host_os in | |
12225 openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
12226 *) need_version=no ;; | |
12227 esac | |
12228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh
ared_ext}$versuffix' | |
12229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12230 shlibpath_var=LD_LIBRARY_PATH | |
12231 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_
cpu" = "openbsd2.8-powerpc"; then | |
12232 case $host_os in | |
12233 openbsd2.[89] | openbsd2.[89].*) | |
12234 shlibpath_overrides_runpath=no | |
12235 ;; | |
12236 *) | |
12237 shlibpath_overrides_runpath=yes | |
12238 ;; | |
12239 esac | |
12240 else | |
12241 shlibpath_overrides_runpath=yes | |
12242 fi | |
12243 ;; | |
12244 | |
12245 os2*) | |
12246 libname_spec='$name' | |
12247 shrext_cmds=".dll" | |
12248 need_lib_prefix=no | |
12249 library_names_spec='$libname${shared_ext} $libname.a' | |
12250 dynamic_linker='OS/2 ld.exe' | |
12251 shlibpath_var=LIBPATH | |
12252 ;; | |
12253 | |
12254 osf3* | osf4* | osf5*) | |
12255 version_type=osf | |
12256 need_lib_prefix=no | |
12257 need_version=no | |
12258 soname_spec='${libname}${release}${shared_ext}$major' | |
12259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
12260 shlibpath_var=LD_LIBRARY_PATH | |
12261 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib
/usr/local/lib /var/shlib" | |
12262 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
12263 ;; | |
12264 | |
12265 solaris*) | |
12266 version_type=linux | |
12267 need_lib_prefix=no | |
12268 need_version=no | |
12269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
12270 soname_spec='${libname}${release}${shared_ext}$major' | |
12271 shlibpath_var=LD_LIBRARY_PATH | |
12272 shlibpath_overrides_runpath=yes | |
12273 hardcode_into_libs=yes | |
12274 # ldd complains unless libraries are executable | |
12275 postinstall_cmds='chmod +x $lib' | |
12276 ;; | |
12277 | |
12278 sunos4*) | |
12279 version_type=sunos | |
12280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh
ared_ext}$versuffix' | |
12281 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
12282 shlibpath_var=LD_LIBRARY_PATH | |
12283 shlibpath_overrides_runpath=yes | |
12284 if test "$with_gnu_ld" = yes; then | |
12285 need_lib_prefix=no | |
12286 fi | |
12287 need_version=yes | |
12288 ;; | |
12289 | |
12290 sysv4 | sysv4.3*) | |
12291 version_type=linux | |
12292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
12293 soname_spec='${libname}${release}${shared_ext}$major' | |
12294 shlibpath_var=LD_LIBRARY_PATH | |
12295 case $host_vendor in | |
12296 sni) | |
12297 shlibpath_overrides_runpath=no | |
12298 need_lib_prefix=no | |
12299 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
12300 runpath_var=LD_RUN_PATH | |
12301 ;; | |
12302 siemens) | |
12303 need_lib_prefix=no | |
12304 ;; | |
12305 motorola) | |
12306 need_lib_prefix=no | |
12307 need_version=no | |
12308 shlibpath_overrides_runpath=no | |
12309 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
12310 ;; | |
12311 esac | |
12312 ;; | |
12313 | |
12314 sysv4*MP*) | |
12315 if test -d /usr/nec ;then | |
12316 version_type=linux | |
12317 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$
major $libname${shared_ext}' | |
12318 soname_spec='$libname${shared_ext}.$major' | |
12319 shlibpath_var=LD_LIBRARY_PATH | |
12320 fi | |
12321 ;; | |
12322 | |
12323 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
12324 version_type=freebsd-elf | |
12325 need_lib_prefix=no | |
12326 need_version=no | |
12327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext} $libname${shared_ext}' | |
12328 soname_spec='${libname}${release}${shared_ext}$major' | |
12329 shlibpath_var=LD_LIBRARY_PATH | |
12330 hardcode_into_libs=yes | |
12331 if test "$with_gnu_ld" = yes; then | |
12332 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib
/lib' | |
12333 shlibpath_overrides_runpath=no | |
12334 else | |
12335 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
12336 shlibpath_overrides_runpath=yes | |
12337 case $host_os in | |
12338 sco3.2v5*) | |
12339 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
12340 ;; | |
12341 esac | |
12342 fi | |
12343 sys_lib_dlsearch_path_spec='/usr/lib' | |
12344 ;; | |
12345 | |
12346 uts4*) | |
12347 version_type=linux | |
12348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
12349 soname_spec='${libname}${release}${shared_ext}$major' | |
12350 shlibpath_var=LD_LIBRARY_PATH | |
12351 ;; | |
12352 | |
12353 *) | |
12354 dynamic_linker=no | |
12355 ;; | |
12356 esac | |
12357 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
12358 echo "${ECHO_T}$dynamic_linker" >&6 | |
12359 test "$dynamic_linker" = no && can_build_shared=no | |
12360 | |
12361 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
12362 if test "$GCC" = yes; then | |
12363 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPIL
ER_PATH LIBRARY_PATH" | |
12364 fi | |
12365 | |
12366 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
12367 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >
&6 | |
12368 hardcode_action_CXX= | |
12369 if test -n "$hardcode_libdir_flag_spec_CXX" || \ | |
12370 test -n "$runpath_var_CXX" || \ | |
12371 test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
12372 | |
12373 # We can hardcode non-existant directories. | |
12374 if test "$hardcode_direct_CXX" != no && | |
12375 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12376 # have to relink, otherwise we might link with an installed library | |
12377 # when we should be linking with a yet-to-be-installed one | |
12378 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
12379 test "$hardcode_minus_L_CXX" != no; then | |
12380 # Linking always hardcodes the temporary library directory. | |
12381 hardcode_action_CXX=relink | |
12382 else | |
12383 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12384 hardcode_action_CXX=immediate | |
12385 fi | |
12386 else | |
12387 # We cannot hardcode anything, or else we can only hardcode existing | |
12388 # directories. | |
12389 hardcode_action_CXX=unsupported | |
12390 fi | |
12391 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | |
12392 echo "${ECHO_T}$hardcode_action_CXX" >&6 | |
12393 | |
12394 if test "$hardcode_action_CXX" = relink; then | |
12395 # Fast installation is not supported | |
12396 enable_fast_install=no | |
12397 elif test "$shlibpath_overrides_runpath" = yes || | |
12398 test "$enable_shared" = no; then | |
12399 # Fast installation is not necessary | |
12400 enable_fast_install=needless | |
12401 fi | |
12402 | |
12403 | |
12404 # The else clause should only fire when bootstrapping the | |
12405 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
12406 # with your package, and you will get complaints that there are | |
12407 # no rules to generate ltmain.sh. | |
12408 if test -f "$ltmain"; then | |
12409 # See if we are running on zsh, and set the options which allow our commands t
hrough | |
12410 # without removal of \ escapes. | |
12411 if test -n "${ZSH_VERSION+set}" ; then | |
12412 setopt NO_GLOB_SUBST | |
12413 fi | |
12414 # Now quote all the things that may contain metacharacters while being | |
12415 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
12416 # variables and quote the copies for generation of the libtool script. | |
12417 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS
NM \ | |
12418 SED SHELL STRIP \ | |
12419 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
12420 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
12421 deplibs_check_method reload_flag reload_cmds need_locks \ | |
12422 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
12423 lt_cv_sys_global_symbol_to_c_name_address \ | |
12424 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
12425 old_postinstall_cmds old_postuninstall_cmds \ | |
12426 compiler_CXX \ | |
12427 CC_CXX \ | |
12428 LD_CXX \ | |
12429 lt_prog_compiler_wl_CXX \ | |
12430 lt_prog_compiler_pic_CXX \ | |
12431 lt_prog_compiler_static_CXX \ | |
12432 lt_prog_compiler_no_builtin_flag_CXX \ | |
12433 export_dynamic_flag_spec_CXX \ | |
12434 thread_safe_flag_spec_CXX \ | |
12435 whole_archive_flag_spec_CXX \ | |
12436 enable_shared_with_static_runtimes_CXX \ | |
12437 old_archive_cmds_CXX \ | |
12438 old_archive_from_new_cmds_CXX \ | |
12439 predep_objects_CXX \ | |
12440 postdep_objects_CXX \ | |
12441 predeps_CXX \ | |
12442 postdeps_CXX \ | |
12443 compiler_lib_search_path_CXX \ | |
12444 archive_cmds_CXX \ | |
12445 archive_expsym_cmds_CXX \ | |
12446 postinstall_cmds_CXX \ | |
12447 postuninstall_cmds_CXX \ | |
12448 old_archive_from_expsyms_cmds_CXX \ | |
12449 allow_undefined_flag_CXX \ | |
12450 no_undefined_flag_CXX \ | |
12451 export_symbols_cmds_CXX \ | |
12452 hardcode_libdir_flag_spec_CXX \ | |
12453 hardcode_libdir_flag_spec_ld_CXX \ | |
12454 hardcode_libdir_separator_CXX \ | |
12455 hardcode_automatic_CXX \ | |
12456 module_cmds_CXX \ | |
12457 module_expsym_cmds_CXX \ | |
12458 lt_cv_prog_compiler_c_o_CXX \ | |
12459 exclude_expsyms_CXX \ | |
12460 include_expsyms_CXX; do | |
12461 | |
12462 case $var in | |
12463 old_archive_cmds_CXX | \ | |
12464 old_archive_from_new_cmds_CXX | \ | |
12465 archive_cmds_CXX | \ | |
12466 archive_expsym_cmds_CXX | \ | |
12467 module_cmds_CXX | \ | |
12468 module_expsym_cmds_CXX | \ | |
12469 old_archive_from_expsyms_cmds_CXX | \ | |
12470 export_symbols_cmds_CXX | \ | |
12471 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
12472 postinstall_cmds | postuninstall_cmds | \ | |
12473 old_postinstall_cmds | old_postuninstall_cmds | \ | |
12474 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
12475 # Double-quote double-evaled strings. | |
12476 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\
" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
12477 ;; | |
12478 *) | |
12479 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`
\\\"" | |
12480 ;; | |
12481 esac | |
12482 done | |
12483 | |
12484 case $lt_echo in | |
12485 *'\$0 --fallback-echo"') | |
12486 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fa
llback-echo"/'` | |
12487 ;; | |
12488 esac | |
12489 | |
12490 cfgfile="$ofile" | |
12491 | |
12492 cat <<__EOF__ >> "$cfgfile" | |
12493 # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
12494 | |
12495 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
12496 | |
12497 # Shell to use when invoking shell scripts. | |
12498 SHELL=$lt_SHELL | |
12499 | |
12500 # Whether or not to build shared libraries. | |
12501 build_libtool_libs=$enable_shared | |
12502 | |
12503 # Whether or not to build static libraries. | |
12504 build_old_libs=$enable_static | |
12505 | |
12506 # Whether or not to add -lc for building shared libraries. | |
12507 build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
12508 | |
12509 # Whether or not to disallow shared libs when runtime libs are static | |
12510 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
12511 | |
12512 # Whether or not to optimize for fast installation. | |
12513 fast_install=$enable_fast_install | |
12514 | |
12515 # The host system. | |
12516 host_alias=$host_alias | |
12517 host=$host | |
12518 host_os=$host_os | |
12519 | |
12520 # The build system. | |
12521 build_alias=$build_alias | |
12522 build=$build | |
12523 build_os=$build_os | |
12524 | |
12525 # An echo program that does not interpret backslashes. | |
12526 echo=$lt_echo | |
12527 | |
12528 # The archiver. | |
12529 AR=$lt_AR | |
12530 AR_FLAGS=$lt_AR_FLAGS | |
12531 | |
12532 # A C compiler. | |
12533 LTCC=$lt_LTCC | |
12534 | |
12535 # LTCC compiler flags. | |
12536 LTCFLAGS=$lt_LTCFLAGS | |
12537 | |
12538 # A language-specific compiler. | |
12539 CC=$lt_compiler_CXX | |
12540 | |
12541 # Is the compiler the GNU C compiler? | |
12542 with_gcc=$GCC_CXX | |
12543 | |
12544 # An ERE matcher. | |
12545 EGREP=$lt_EGREP | |
12546 | |
12547 # The linker used to build libraries. | |
12548 LD=$lt_LD_CXX | |
12549 | |
12550 # Whether we need hard or soft links. | |
12551 LN_S=$lt_LN_S | |
12552 | |
12553 # A BSD-compatible nm program. | |
12554 NM=$lt_NM | |
12555 | |
12556 # A symbol stripping program | |
12557 STRIP=$lt_STRIP | |
12558 | |
12559 # Used to examine libraries when file_magic_cmd begins "file" | |
12560 MAGIC_CMD=$MAGIC_CMD | |
12561 | |
12562 # Used on cygwin: DLL creation program. | |
12563 DLLTOOL="$DLLTOOL" | |
12564 | |
12565 # Used on cygwin: object dumper. | |
12566 OBJDUMP="$OBJDUMP" | |
12567 | |
12568 # Used on cygwin: assembler. | |
12569 AS="$AS" | |
12570 | |
12571 # The name of the directory that contains temporary libtool files. | |
12572 objdir=$objdir | |
12573 | |
12574 # How to create reloadable object files. | |
12575 reload_flag=$lt_reload_flag | |
12576 reload_cmds=$lt_reload_cmds | |
12577 | |
12578 # How to pass a linker flag through the compiler. | |
12579 wl=$lt_lt_prog_compiler_wl_CXX | |
12580 | |
12581 # Object file suffix (normally "o"). | |
12582 objext="$ac_objext" | |
12583 | |
12584 # Old archive suffix (normally "a"). | |
12585 libext="$libext" | |
12586 | |
12587 # Shared library suffix (normally ".so"). | |
12588 shrext_cmds='$shrext_cmds' | |
12589 | |
12590 # Executable file suffix (normally ""). | |
12591 exeext="$exeext" | |
12592 | |
12593 # Additional compiler flags for building library objects. | |
12594 pic_flag=$lt_lt_prog_compiler_pic_CXX | |
12595 pic_mode=$pic_mode | |
12596 | |
12597 # What is the maximum length of a command? | |
12598 max_cmd_len=$lt_cv_sys_max_cmd_len | |
12599 | |
12600 # Does compiler simultaneously support -c and -o options? | |
12601 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
12602 | |
12603 # Must we lock files when doing compilation? | |
12604 need_locks=$lt_need_locks | |
12605 | |
12606 # Do we need the lib prefix for modules? | |
12607 need_lib_prefix=$need_lib_prefix | |
12608 | |
12609 # Do we need a version for libraries? | |
12610 need_version=$need_version | |
12611 | |
12612 # Whether dlopen is supported. | |
12613 dlopen_support=$enable_dlopen | |
12614 | |
12615 # Whether dlopen of programs is supported. | |
12616 dlopen_self=$enable_dlopen_self | |
12617 | |
12618 # Whether dlopen of statically linked programs is supported. | |
12619 dlopen_self_static=$enable_dlopen_self_static | |
12620 | |
12621 # Compiler flag to prevent dynamic linking. | |
12622 link_static_flag=$lt_lt_prog_compiler_static_CXX | |
12623 | |
12624 # Compiler flag to turn off builtin functions. | |
12625 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
12626 | |
12627 # Compiler flag to allow reflexive dlopens. | |
12628 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
12629 | |
12630 # Compiler flag to generate shared objects directly from archives. | |
12631 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
12632 | |
12633 # Compiler flag to generate thread-safe objects. | |
12634 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | |
12635 | |
12636 # Library versioning type. | |
12637 version_type=$version_type | |
12638 | |
12639 # Format of library name prefix. | |
12640 libname_spec=$lt_libname_spec | |
12641 | |
12642 # List of archive names. First name is the real one, the rest are links. | |
12643 # The last name is the one that the linker finds with -lNAME. | |
12644 library_names_spec=$lt_library_names_spec | |
12645 | |
12646 # The coded name of the library, if different from the real name. | |
12647 soname_spec=$lt_soname_spec | |
12648 | |
12649 # Commands used to build and install an old-style archive. | |
12650 RANLIB=$lt_RANLIB | |
12651 old_archive_cmds=$lt_old_archive_cmds_CXX | |
12652 old_postinstall_cmds=$lt_old_postinstall_cmds | |
12653 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
12654 | |
12655 # Create an old-style archive from a shared archive. | |
12656 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
12657 | |
12658 # Create a temporary old-style archive to link instead of a shared archive. | |
12659 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
12660 | |
12661 # Commands used to build and install a shared archive. | |
12662 archive_cmds=$lt_archive_cmds_CXX | |
12663 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
12664 postinstall_cmds=$lt_postinstall_cmds | |
12665 postuninstall_cmds=$lt_postuninstall_cmds | |
12666 | |
12667 # Commands used to build a loadable module (assumed same as above if empty) | |
12668 module_cmds=$lt_module_cmds_CXX | |
12669 module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
12670 | |
12671 # Commands to strip libraries. | |
12672 old_striplib=$lt_old_striplib | |
12673 striplib=$lt_striplib | |
12674 | |
12675 # Dependencies to place before the objects being linked to create a | |
12676 # shared library. | |
12677 predep_objects=$lt_predep_objects_CXX | |
12678 | |
12679 # Dependencies to place after the objects being linked to create a | |
12680 # shared library. | |
12681 postdep_objects=$lt_postdep_objects_CXX | |
12682 | |
12683 # Dependencies to place before the objects being linked to create a | |
12684 # shared library. | |
12685 predeps=$lt_predeps_CXX | |
12686 | |
12687 # Dependencies to place after the objects being linked to create a | |
12688 # shared library. | |
12689 postdeps=$lt_postdeps_CXX | |
12690 | |
12691 # The library search path used internally by the compiler when linking | |
12692 # a shared library. | |
12693 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
12694 | |
12695 # Method to check whether dependent libraries are shared objects. | |
12696 deplibs_check_method=$lt_deplibs_check_method | |
12697 | |
12698 # Command to use when deplibs_check_method == file_magic. | |
12699 file_magic_cmd=$lt_file_magic_cmd | |
12700 | |
12701 # Flag that allows shared libraries with undefined symbols to be built. | |
12702 allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
12703 | |
12704 # Flag that forces no undefined symbols. | |
12705 no_undefined_flag=$lt_no_undefined_flag_CXX | |
12706 | |
12707 # Commands used to finish a libtool library installation in a directory. | |
12708 finish_cmds=$lt_finish_cmds | |
12709 | |
12710 # Same as above, but a single script fragment to be evaled but not shown. | |
12711 finish_eval=$lt_finish_eval | |
12712 | |
12713 # Take the output of nm and produce a listing of raw symbols and C names. | |
12714 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
12715 | |
12716 # Transform the output of nm in a proper C declaration | |
12717 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
12718 | |
12719 # Transform the output of nm in a C name address pair | |
12720 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
12721 | |
12722 # This is the shared library runtime path variable. | |
12723 runpath_var=$runpath_var | |
12724 | |
12725 # This is the shared library path variable. | |
12726 shlibpath_var=$shlibpath_var | |
12727 | |
12728 # Is shlibpath searched before the hard-coded library search path? | |
12729 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
12730 | |
12731 # How to hardcode a shared library path into an executable. | |
12732 hardcode_action=$hardcode_action_CXX | |
12733 | |
12734 # Whether we should hardcode library paths into libraries. | |
12735 hardcode_into_libs=$hardcode_into_libs | |
12736 | |
12737 # Flag to hardcode \$libdir into a binary during linking. | |
12738 # This must work even if \$libdir does not exist. | |
12739 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
12740 | |
12741 # If ld is used when linking, flag to hardcode \$libdir into | |
12742 # a binary during linking. This must work even if \$libdir does | |
12743 # not exist. | |
12744 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
12745 | |
12746 # Whether we need a single -rpath flag with a separated argument. | |
12747 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
12748 | |
12749 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into
the | |
12750 # resulting binary. | |
12751 hardcode_direct=$hardcode_direct_CXX | |
12752 | |
12753 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
12754 # resulting binary. | |
12755 hardcode_minus_L=$hardcode_minus_L_CXX | |
12756 | |
12757 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
12758 # the resulting binary. | |
12759 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
12760 | |
12761 # Set to yes if building a shared library automatically hardcodes DIR into the l
ibrary | |
12762 # and all subsequent libraries and executables linked against it. | |
12763 hardcode_automatic=$hardcode_automatic_CXX | |
12764 | |
12765 # Variables whose values should be saved in libtool wrapper scripts and | |
12766 # restored at relink time. | |
12767 variables_saved_for_relink="$variables_saved_for_relink" | |
12768 | |
12769 # Whether libtool must link a program against all its dependency libraries. | |
12770 link_all_deplibs=$link_all_deplibs_CXX | |
12771 | |
12772 # Compile-time system search path for libraries | |
12773 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
12774 | |
12775 # Run-time system search path for libraries | |
12776 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
12777 | |
12778 # Fix the shell variable \$srcfile for the compiler. | |
12779 fix_srcfile_path="$fix_srcfile_path_CXX" | |
12780 | |
12781 # Set to yes if exported symbols are required. | |
12782 always_export_symbols=$always_export_symbols_CXX | |
12783 | |
12784 # The commands to list exported symbols. | |
12785 export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
12786 | |
12787 # The commands to extract the exported symbol list from a shared archive. | |
12788 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
12789 | |
12790 # Symbols that should not be listed in the preloaded symbols. | |
12791 exclude_expsyms=$lt_exclude_expsyms_CXX | |
12792 | |
12793 # Symbols that must always be exported. | |
12794 include_expsyms=$lt_include_expsyms_CXX | |
12795 | |
12796 # ### END LIBTOOL TAG CONFIG: $tagname | |
12797 | |
12798 __EOF__ | |
12799 | |
12800 | |
12801 else | |
12802 # If there is no Makefile yet, we rely on a make rule to execute | |
12803 # `config.status --recheck' to rerun these tests and create the | |
12804 # libtool script then. | |
12805 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
12806 if test -f "$ltmain_in"; then | |
12807 test -f Makefile && make "$ltmain" | |
12808 fi | |
12809 fi | |
12810 | |
12811 | |
12812 ac_ext=c | |
12813 ac_cpp='$CPP $CPPFLAGS' | |
12814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' | |
12816 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12817 | |
12818 CC=$lt_save_CC | |
12819 LDCXX=$LD | |
12820 LD=$lt_save_LD | |
12821 GCC=$lt_save_GCC | |
12822 with_gnu_ldcxx=$with_gnu_ld | |
12823 with_gnu_ld=$lt_save_with_gnu_ld | |
12824 lt_cv_path_LDCXX=$lt_cv_path_LD | |
12825 lt_cv_path_LD=$lt_save_path_LD | |
12826 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
12827 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
12828 | |
12829 else | |
12830 tagname="" | |
12831 fi | |
12832 ;; | |
12833 | |
12834 F77) | |
12835 if test -n "$F77" && test "X$F77" != "Xno"; then | |
12836 | |
12837 ac_ext=f | |
12838 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
12839 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12840 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
12841 | |
12842 | |
12843 archive_cmds_need_lc_F77=no | |
12844 allow_undefined_flag_F77= | |
12845 always_export_symbols_F77=no | |
12846 archive_expsym_cmds_F77= | |
12847 export_dynamic_flag_spec_F77= | |
12848 hardcode_direct_F77=no | |
12849 hardcode_libdir_flag_spec_F77= | |
12850 hardcode_libdir_flag_spec_ld_F77= | |
12851 hardcode_libdir_separator_F77= | |
12852 hardcode_minus_L_F77=no | |
12853 hardcode_automatic_F77=no | |
12854 module_cmds_F77= | |
12855 module_expsym_cmds_F77= | |
12856 link_all_deplibs_F77=unknown | |
12857 old_archive_cmds_F77=$old_archive_cmds | |
12858 no_undefined_flag_F77= | |
12859 whole_archive_flag_spec_F77= | |
12860 enable_shared_with_static_runtimes_F77=no | |
12861 | |
12862 # Source file extension for f77 test sources. | |
12863 ac_ext=f | |
12864 | |
12865 # Object file extension for compiled f77 test sources. | |
12866 objext=o | |
12867 objext_F77=$objext | |
12868 | |
12869 # Code to be used in simple compile tests | |
12870 lt_simple_compile_test_code=" subroutine t\n return\n end\n" | |
12871 | |
12872 # Code to be used in simple link tests | |
12873 lt_simple_link_test_code=" program t\n end\n" | |
12874 | |
12875 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
12876 | |
12877 # If no C compiler was specified, use CC. | |
12878 LTCC=${LTCC-"$CC"} | |
12879 | |
12880 # If no C compiler flags were specified, use CFLAGS. | |
12881 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
12882 | |
12883 # Allow CC to be a program name with arguments. | |
12884 compiler=$CC | |
12885 | |
12886 | |
12887 # save warnings/boilerplate of simple test code | |
12888 ac_outfile=conftest.$ac_objext | |
12889 printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
12890 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12891 _lt_compiler_boilerplate=`cat conftest.err` | |
12892 $rm conftest* | |
12893 | |
12894 ac_outfile=conftest.$ac_objext | |
12895 printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
12896 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12897 _lt_linker_boilerplate=`cat conftest.err` | |
12898 $rm conftest* | |
12899 | |
12900 | |
12901 # Allow CC to be a program name with arguments. | |
12902 lt_save_CC="$CC" | |
12903 CC=${F77-"f77"} | |
12904 compiler=$CC | |
12905 compiler_F77=$CC | |
12906 for cc_temp in $compiler""; do | |
12907 case $cc_temp in | |
12908 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
12909 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
12910 \-*) ;; | |
12911 *) break;; | |
12912 esac | |
12913 done | |
12914 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
12915 | |
12916 | |
12917 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
12918 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
12919 echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
12920 echo "${ECHO_T}$can_build_shared" >&6 | |
12921 | |
12922 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
12923 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
12924 test "$can_build_shared" = "no" && enable_shared=no | |
12925 | |
12926 # On AIX, shared libraries and static libraries use the same namespace, and | |
12927 # are all built from PIC. | |
12928 case $host_os in | |
12929 aix3*) | |
12930 test "$enable_shared" = yes && enable_static=no | |
12931 if test -n "$RANLIB"; then | |
12932 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12933 postinstall_cmds='$RANLIB $lib' | |
12934 fi | |
12935 ;; | |
12936 aix4* | aix5*) | |
12937 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12938 test "$enable_shared" = yes && enable_static=no | |
12939 fi | |
12940 ;; | |
12941 esac | |
12942 echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
12943 echo "${ECHO_T}$enable_shared" >&6 | |
12944 | |
12945 echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
12946 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
12947 # Make sure either enable_shared or enable_static is yes. | |
12948 test "$enable_shared" = yes || enable_static=yes | |
12949 echo "$as_me:$LINENO: result: $enable_static" >&5 | |
12950 echo "${ECHO_T}$enable_static" >&6 | |
12951 | |
12952 GCC_F77="$G77" | |
12953 LD_F77="$LD" | |
12954 | |
12955 lt_prog_compiler_wl_F77= | |
12956 lt_prog_compiler_pic_F77= | |
12957 lt_prog_compiler_static_F77= | |
12958 | |
12959 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
12960 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
12961 | |
12962 if test "$GCC" = yes; then | |
12963 lt_prog_compiler_wl_F77='-Wl,' | |
12964 lt_prog_compiler_static_F77='-static' | |
12965 | |
12966 case $host_os in | |
12967 aix*) | |
12968 # All AIX code is PIC. | |
12969 if test "$host_cpu" = ia64; then | |
12970 # AIX 5 now supports IA64 processor | |
12971 lt_prog_compiler_static_F77='-Bstatic' | |
12972 fi | |
12973 ;; | |
12974 | |
12975 amigaos*) | |
12976 # FIXME: we need at least 68020 code to build shared libraries, but | |
12977 # adding the `-m68020' flag to GCC prevents building anything better, | |
12978 # like `-m68040'. | |
12979 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' | |
12980 ;; | |
12981 | |
12982 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
12983 # PIC is the default for these OSes. | |
12984 ;; | |
12985 | |
12986 mingw* | pw32* | os2*) | |
12987 # This hack is so that the source file can tell whether it is being | |
12988 # built for inclusion in a dll (and should export symbols for example). | |
12989 lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
12990 ;; | |
12991 | |
12992 darwin* | rhapsody*) | |
12993 # PIC is the default on this platform | |
12994 # Common symbols not allowed in MH_DYLIB files | |
12995 lt_prog_compiler_pic_F77='-fno-common' | |
12996 ;; | |
12997 | |
12998 interix3*) | |
12999 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
13000 # Instead, we relocate shared libraries at runtime. | |
13001 ;; | |
13002 | |
13003 msdosdjgpp*) | |
13004 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
13005 # on systems that don't support them. | |
13006 lt_prog_compiler_can_build_shared_F77=no | |
13007 enable_shared=no | |
13008 ;; | |
13009 | |
13010 sysv4*MP*) | |
13011 if test -d /usr/nec; then | |
13012 lt_prog_compiler_pic_F77=-Kconform_pic | |
13013 fi | |
13014 ;; | |
13015 | |
13016 hpux*) | |
13017 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13018 # not for PA HP-UX. | |
13019 case $host_cpu in | |
13020 hppa*64*|ia64*) | |
13021 # +Z the default | |
13022 ;; | |
13023 *) | |
13024 lt_prog_compiler_pic_F77='-fPIC' | |
13025 ;; | |
13026 esac | |
13027 ;; | |
13028 | |
13029 *) | |
13030 lt_prog_compiler_pic_F77='-fPIC' | |
13031 ;; | |
13032 esac | |
13033 else | |
13034 # PORTME Check for flag to pass linker flags through the system compiler. | |
13035 case $host_os in | |
13036 aix*) | |
13037 lt_prog_compiler_wl_F77='-Wl,' | |
13038 if test "$host_cpu" = ia64; then | |
13039 # AIX 5 now supports IA64 processor | |
13040 lt_prog_compiler_static_F77='-Bstatic' | |
13041 else | |
13042 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' | |
13043 fi | |
13044 ;; | |
13045 darwin*) | |
13046 # PIC is the default on this platform | |
13047 # Common symbols not allowed in MH_DYLIB files | |
13048 case $cc_basename in | |
13049 xlc*) | |
13050 lt_prog_compiler_pic_F77='-qnocommon' | |
13051 lt_prog_compiler_wl_F77='-Wl,' | |
13052 ;; | |
13053 esac | |
13054 ;; | |
13055 | |
13056 mingw* | pw32* | os2*) | |
13057 # This hack is so that the source file can tell whether it is being | |
13058 # built for inclusion in a dll (and should export symbols for example). | |
13059 lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
13060 ;; | |
13061 | |
13062 hpux9* | hpux10* | hpux11*) | |
13063 lt_prog_compiler_wl_F77='-Wl,' | |
13064 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13065 # not for PA HP-UX. | |
13066 case $host_cpu in | |
13067 hppa*64*|ia64*) | |
13068 # +Z the default | |
13069 ;; | |
13070 *) | |
13071 lt_prog_compiler_pic_F77='+Z' | |
13072 ;; | |
13073 esac | |
13074 # Is there a better lt_prog_compiler_static that works with the bundled CC
? | |
13075 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' | |
13076 ;; | |
13077 | |
13078 irix5* | irix6* | nonstopux*) | |
13079 lt_prog_compiler_wl_F77='-Wl,' | |
13080 # PIC (with -KPIC) is the default. | |
13081 lt_prog_compiler_static_F77='-non_shared' | |
13082 ;; | |
13083 | |
13084 newsos6) | |
13085 lt_prog_compiler_pic_F77='-KPIC' | |
13086 lt_prog_compiler_static_F77='-Bstatic' | |
13087 ;; | |
13088 | |
13089 linux*) | |
13090 case $cc_basename in | |
13091 icc* | ecc*) | |
13092 lt_prog_compiler_wl_F77='-Wl,' | |
13093 lt_prog_compiler_pic_F77='-KPIC' | |
13094 lt_prog_compiler_static_F77='-static' | |
13095 ;; | |
13096 pgcc* | pgf77* | pgf90* | pgf95*) | |
13097 # Portland Group compilers (*not* the Pentium gcc compiler, | |
13098 # which looks to be a dead project) | |
13099 lt_prog_compiler_wl_F77='-Wl,' | |
13100 lt_prog_compiler_pic_F77='-fpic' | |
13101 lt_prog_compiler_static_F77='-Bstatic' | |
13102 ;; | |
13103 ccc*) | |
13104 lt_prog_compiler_wl_F77='-Wl,' | |
13105 # All Alpha code is PIC. | |
13106 lt_prog_compiler_static_F77='-non_shared' | |
13107 ;; | |
13108 esac | |
13109 ;; | |
13110 | |
13111 osf3* | osf4* | osf5*) | |
13112 lt_prog_compiler_wl_F77='-Wl,' | |
13113 # All OSF/1 code is PIC. | |
13114 lt_prog_compiler_static_F77='-non_shared' | |
13115 ;; | |
13116 | |
13117 solaris*) | |
13118 lt_prog_compiler_pic_F77='-KPIC' | |
13119 lt_prog_compiler_static_F77='-Bstatic' | |
13120 case $cc_basename in | |
13121 f77* | f90* | f95*) | |
13122 lt_prog_compiler_wl_F77='-Qoption ld ';; | |
13123 *) | |
13124 lt_prog_compiler_wl_F77='-Wl,';; | |
13125 esac | |
13126 ;; | |
13127 | |
13128 sunos4*) | |
13129 lt_prog_compiler_wl_F77='-Qoption ld ' | |
13130 lt_prog_compiler_pic_F77='-PIC' | |
13131 lt_prog_compiler_static_F77='-Bstatic' | |
13132 ;; | |
13133 | |
13134 sysv4 | sysv4.2uw2* | sysv4.3*) | |
13135 lt_prog_compiler_wl_F77='-Wl,' | |
13136 lt_prog_compiler_pic_F77='-KPIC' | |
13137 lt_prog_compiler_static_F77='-Bstatic' | |
13138 ;; | |
13139 | |
13140 sysv4*MP*) | |
13141 if test -d /usr/nec ;then | |
13142 lt_prog_compiler_pic_F77='-Kconform_pic' | |
13143 lt_prog_compiler_static_F77='-Bstatic' | |
13144 fi | |
13145 ;; | |
13146 | |
13147 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
13148 lt_prog_compiler_wl_F77='-Wl,' | |
13149 lt_prog_compiler_pic_F77='-KPIC' | |
13150 lt_prog_compiler_static_F77='-Bstatic' | |
13151 ;; | |
13152 | |
13153 unicos*) | |
13154 lt_prog_compiler_wl_F77='-Wl,' | |
13155 lt_prog_compiler_can_build_shared_F77=no | |
13156 ;; | |
13157 | |
13158 uts4*) | |
13159 lt_prog_compiler_pic_F77='-pic' | |
13160 lt_prog_compiler_static_F77='-Bstatic' | |
13161 ;; | |
13162 | |
13163 *) | |
13164 lt_prog_compiler_can_build_shared_F77=no | |
13165 ;; | |
13166 esac | |
13167 fi | |
13168 | |
13169 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 | |
13170 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 | |
13171 | |
13172 # | |
13173 # Check to make sure the PIC flag actually works. | |
13174 # | |
13175 if test -n "$lt_prog_compiler_pic_F77"; then | |
13176 | |
13177 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 w
orks" >&5 | |
13178 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works...
$ECHO_C" >&6 | |
13179 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then | |
13180 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13181 else | |
13182 lt_prog_compiler_pic_works_F77=no | |
13183 ac_outfile=conftest.$ac_objext | |
13184 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13185 lt_compiler_flag="$lt_prog_compiler_pic_F77" | |
13186 # Insert the option either (1) after the last *FLAGS variable, or | |
13187 # (2) before a word containing "conftest.", or (3) at the end. | |
13188 # Note that $ac_compile itself does not contain backslashes and begins | |
13189 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13190 # The option is referenced via a variable to avoid confusing sed. | |
13191 lt_compile=`echo "$ac_compile" | $SED \ | |
13192 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13193 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13194 -e 's:$: $lt_compiler_flag:'` | |
13195 (eval echo "\"\$as_me:13195: $lt_compile\"" >&5) | |
13196 (eval "$lt_compile" 2>conftest.err) | |
13197 ac_status=$? | |
13198 cat conftest.err >&5 | |
13199 echo "$as_me:13199: \$? = $ac_status" >&5 | |
13200 if (exit $ac_status) && test -s "$ac_outfile"; then | |
13201 # The compiler can only warn and ignore the option if not recognized | |
13202 # So say no if there are warnings other than the usual output. | |
13203 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
13204 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13205 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the
n | |
13206 lt_prog_compiler_pic_works_F77=yes | |
13207 fi | |
13208 fi | |
13209 $rm conftest* | |
13210 | |
13211 fi | |
13212 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 | |
13213 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 | |
13214 | |
13215 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then | |
13216 case $lt_prog_compiler_pic_F77 in | |
13217 "" | " "*) ;; | |
13218 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; | |
13219 esac | |
13220 else | |
13221 lt_prog_compiler_pic_F77= | |
13222 lt_prog_compiler_can_build_shared_F77=no | |
13223 fi | |
13224 | |
13225 fi | |
13226 case $host_os in | |
13227 # For platforms which do not support PIC, -DPIC is meaningless: | |
13228 *djgpp*) | |
13229 lt_prog_compiler_pic_F77= | |
13230 ;; | |
13231 *) | |
13232 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" | |
13233 ;; | |
13234 esac | |
13235 | |
13236 # | |
13237 # Check to make sure the static flag actually works. | |
13238 # | |
13239 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F
77\" | |
13240 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag work
s" >&5 | |
13241 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $EC
HO_C" >&6 | |
13242 if test "${lt_prog_compiler_static_works_F77+set}" = set; then | |
13243 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13244 else | |
13245 lt_prog_compiler_static_works_F77=no | |
13246 save_LDFLAGS="$LDFLAGS" | |
13247 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
13248 printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
13249 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
13250 # The linker can only warn and ignore the option if not recognized | |
13251 # So say no if there are warnings | |
13252 if test -s conftest.err; then | |
13253 # Append any errors to the config.log. | |
13254 cat conftest.err 1>&5 | |
13255 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
13256 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13257 if diff conftest.exp conftest.er2 >/dev/null; then | |
13258 lt_prog_compiler_static_works_F77=yes | |
13259 fi | |
13260 else | |
13261 lt_prog_compiler_static_works_F77=yes | |
13262 fi | |
13263 fi | |
13264 $rm conftest* | |
13265 LDFLAGS="$save_LDFLAGS" | |
13266 | |
13267 fi | |
13268 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 | |
13269 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 | |
13270 | |
13271 if test x"$lt_prog_compiler_static_works_F77" = xyes; then | |
13272 : | |
13273 else | |
13274 lt_prog_compiler_static_F77= | |
13275 fi | |
13276 | |
13277 | |
13278 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
13279 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >
&6 | |
13280 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then | |
13281 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13282 else | |
13283 lt_cv_prog_compiler_c_o_F77=no | |
13284 $rm -r conftest 2>/dev/null | |
13285 mkdir conftest | |
13286 cd conftest | |
13287 mkdir out | |
13288 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13289 | |
13290 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13291 # Insert the option either (1) after the last *FLAGS variable, or | |
13292 # (2) before a word containing "conftest.", or (3) at the end. | |
13293 # Note that $ac_compile itself does not contain backslashes and begins | |
13294 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13295 lt_compile=`echo "$ac_compile" | $SED \ | |
13296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13298 -e 's:$: $lt_compiler_flag:'` | |
13299 (eval echo "\"\$as_me:13299: $lt_compile\"" >&5) | |
13300 (eval "$lt_compile" 2>out/conftest.err) | |
13301 ac_status=$? | |
13302 cat out/conftest.err >&5 | |
13303 echo "$as_me:13303: \$? = $ac_status" >&5 | |
13304 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
13305 then | |
13306 # The compiler can only warn and ignore the option if not recognized | |
13307 # So say no if there are warnings | |
13308 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
13309 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
13310 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/d
ev/null; then | |
13311 lt_cv_prog_compiler_c_o_F77=yes | |
13312 fi | |
13313 fi | |
13314 chmod u+w . 2>&5 | |
13315 $rm conftest* | |
13316 # SGI C++ compiler will create directory out/ii_files/ for | |
13317 # template instantiation | |
13318 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
13319 $rm out/* && rmdir out | |
13320 cd .. | |
13321 rmdir conftest | |
13322 $rm conftest* | |
13323 | |
13324 fi | |
13325 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 | |
13326 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 | |
13327 | |
13328 | |
13329 hard_links="nottested" | |
13330 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then | |
13331 # do not overwrite the value of need_locks provided by the user | |
13332 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
13333 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
13334 hard_links=yes | |
13335 $rm conftest* | |
13336 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13337 touch conftest.a | |
13338 ln conftest.a conftest.b 2>&5 || hard_links=no | |
13339 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13340 echo "$as_me:$LINENO: result: $hard_links" >&5 | |
13341 echo "${ECHO_T}$hard_links" >&6 | |
13342 if test "$hard_links" = no; then | |
13343 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make
-j' may be unsafe" >&5 | |
13344 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be un
safe" >&2;} | |
13345 need_locks=warn | |
13346 fi | |
13347 else | |
13348 need_locks=no | |
13349 fi | |
13350 | |
13351 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports share
d libraries" >&5 | |
13352 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
ies... $ECHO_C" >&6 | |
13353 | |
13354 runpath_var= | |
13355 allow_undefined_flag_F77= | |
13356 enable_shared_with_static_runtimes_F77=no | |
13357 archive_cmds_F77= | |
13358 archive_expsym_cmds_F77= | |
13359 old_archive_From_new_cmds_F77= | |
13360 old_archive_from_expsyms_cmds_F77= | |
13361 export_dynamic_flag_spec_F77= | |
13362 whole_archive_flag_spec_F77= | |
13363 thread_safe_flag_spec_F77= | |
13364 hardcode_libdir_flag_spec_F77= | |
13365 hardcode_libdir_flag_spec_ld_F77= | |
13366 hardcode_libdir_separator_F77= | |
13367 hardcode_direct_F77=no | |
13368 hardcode_minus_L_F77=no | |
13369 hardcode_shlibpath_var_F77=unsupported | |
13370 link_all_deplibs_F77=unknown | |
13371 hardcode_automatic_F77=no | |
13372 module_cmds_F77= | |
13373 module_expsym_cmds_F77= | |
13374 always_export_symbols_F77=no | |
13375 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SE
D '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
13376 # include_expsyms should be a list of space-separated symbols to be *always* | |
13377 # included in the symbol list | |
13378 include_expsyms_F77= | |
13379 # exclude_expsyms can be an extended regexp of symbols to exclude | |
13380 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
13381 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
13382 # as well as any symbol that contains `d'. | |
13383 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" | |
13384 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
13385 # platforms (ab)use it in PIC code, but their linkers get confused if | |
13386 # the symbol is explicitly referenced. Since portable code cannot | |
13387 # rely on this symbol name, it's probably fine to never include it in | |
13388 # preloaded symbol tables. | |
13389 extract_expsyms_cmds= | |
13390 # Just being paranoid about ensuring that cc_basename is set. | |
13391 for cc_temp in $compiler""; do | |
13392 case $cc_temp in | |
13393 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
13394 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
13395 \-*) ;; | |
13396 *) break;; | |
13397 esac | |
13398 done | |
13399 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
13400 | |
13401 case $host_os in | |
13402 cygwin* | mingw* | pw32*) | |
13403 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
13404 # When not using gcc, we currently assume that we are using | |
13405 # Microsoft Visual C++. | |
13406 if test "$GCC" != yes; then | |
13407 with_gnu_ld=no | |
13408 fi | |
13409 ;; | |
13410 interix*) | |
13411 # we just hope/assume this is gcc and not c89 (= MSVC++) | |
13412 with_gnu_ld=yes | |
13413 ;; | |
13414 openbsd*) | |
13415 with_gnu_ld=no | |
13416 ;; | |
13417 esac | |
13418 | |
13419 ld_shlibs_F77=yes | |
13420 if test "$with_gnu_ld" = yes; then | |
13421 # If archive_cmds runs LD, not CC, wlarc should be empty | |
13422 wlarc='${wl}' | |
13423 | |
13424 # Set some defaults for GNU ld with shared library support. These | |
13425 # are reset later if shared libraries are not supported. Putting them | |
13426 # here allows them to be overridden if necessary. | |
13427 runpath_var=LD_RUN_PATH | |
13428 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' | |
13429 export_dynamic_flag_spec_F77='${wl}--export-dynamic' | |
13430 # ancient GNU ld didn't support --whole-archive et. al. | |
13431 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
13432 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlar
c"'--no-whole-archive' | |
13433 else | |
13434 whole_archive_flag_spec_F77= | |
13435 fi | |
13436 supports_anon_versioning=no | |
13437 case `$LD -v 2>/dev/null` in | |
13438 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
13439 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
13440 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
13441 *\ 2.11.*) ;; # other 2.11 versions | |
13442 *) supports_anon_versioning=yes ;; | |
13443 esac | |
13444 | |
13445 # See if GNU ld supports shared libraries. | |
13446 case $host_os in | |
13447 aix3* | aix4* | aix5*) | |
13448 # On AIX/PPC, the GNU linker is very broken | |
13449 if test "$host_cpu" != ia64; then | |
13450 ld_shlibs_F77=no | |
13451 cat <<EOF 1>&2 | |
13452 | |
13453 *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
13454 *** to be unable to reliably create shared libraries on AIX. | |
13455 *** Therefore, libtool is disabling shared libraries support. If you | |
13456 *** really care for shared libraries, you may want to modify your PATH | |
13457 *** so that a non-GNU linker is found, and then restart. | |
13458 | |
13459 EOF | |
13460 fi | |
13461 ;; | |
13462 | |
13463 amigaos*) | |
13464 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME
$libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $out
put_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2i
xlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.d
ata~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -
32)' | |
13465 hardcode_libdir_flag_spec_F77='-L$libdir' | |
13466 hardcode_minus_L_F77=yes | |
13467 | |
13468 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
13469 # that the semantics of dynamic libraries on AmigaOS, at least up | |
13470 # to version 4, is to share data among multiple programs linked | |
13471 # with the same dynamic library. Since this doesn't match the | |
13472 # behavior of shared libraries on other platforms, we can't use | |
13473 # them. | |
13474 ld_shlibs_F77=no | |
13475 ;; | |
13476 | |
13477 beos*) | |
13478 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
13479 allow_undefined_flag_F77=unsupported | |
13480 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
13481 # support --undefined. This deserves some investigation. FIXME | |
13482 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-s
oname $wl$soname -o $lib' | |
13483 else | |
13484 ld_shlibs_F77=no | |
13485 fi | |
13486 ;; | |
13487 | |
13488 cygwin* | mingw* | pw32*) | |
13489 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, | |
13490 # as there is no search path for DLLs. | |
13491 hardcode_libdir_flag_spec_F77='-L$libdir' | |
13492 allow_undefined_flag_F77=unsupported | |
13493 always_export_symbols_F77=no | |
13494 enable_shared_with_static_runtimes_F77=yes | |
13495 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe |
$SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.
* //'\'' | sort | uniq > $export_symbols' | |
13496 | |
13497 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
13498 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $outp
ut_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $
lib' | |
13499 # If the export-symbols file already is a .def file (1st line | |
13500 # is EXPORTS), use it as is; otherwise, prepend... | |
13501 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS
; then | |
13502 cp $export_symbols $output_objdir/$soname.def; | |
13503 else | |
13504 echo EXPORTS > $output_objdir/$soname.def; | |
13505 cat $export_symbols >> $output_objdir/$soname.def; | |
13506 fi~ | |
13507 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags
-o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -
Xlinker $lib' | |
13508 else | |
13509 ld_shlibs_F77=no | |
13510 fi | |
13511 ;; | |
13512 | |
13513 interix3*) | |
13514 hardcode_direct_F77=no | |
13515 hardcode_shlibpath_var_F77=no | |
13516 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
13517 export_dynamic_flag_spec_F77='${wl}-E' | |
13518 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
13519 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
13520 # default) and relocated if they conflict, which is a slow very memory | |
13521 # consuming and fragmenting process. To avoid this, we pick a random, | |
13522 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
13523 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
13524 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags
${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342
177280` -o $lib' | |
13525 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$son
ame.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$sona
me ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`e
xpr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
13526 ;; | |
13527 | |
13528 linux*) | |
13529 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
13530 tmp_addflag= | |
13531 case $cc_basename,$host_cpu in | |
13532 pgcc*) # Portland Group C compiler | |
13533 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $conveni
ence\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; d
one; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
13534 tmp_addflag=' $pic_flag' | |
13535 ;; | |
13536 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
13537 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $conveni
ence\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; d
one; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
13538 tmp_addflag=' $pic_flag -Mnomain' ;; | |
13539 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
13540 tmp_addflag=' -i_dynamic' ;; | |
13541 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
13542 tmp_addflag=' -i_dynamic -nofor_main' ;; | |
13543 ifc* | ifort*) # Intel Fortran compiler | |
13544 tmp_addflag=' -nofor_main' ;; | |
13545 esac | |
13546 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compile
r_flags ${wl}-soname $wl$soname -o $lib' | |
13547 | |
13548 if test $supports_anon_versioning = yes; then | |
13549 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.v
er~ | |
13550 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13551 $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13552 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-so
name $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
13553 fi | |
13554 link_all_deplibs_F77=no | |
13555 else | |
13556 ld_shlibs_F77=no | |
13557 fi | |
13558 ;; | |
13559 | |
13560 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | |
13561 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
13562 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $li
b' | |
13563 wlarc= | |
13564 else | |
13565 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so
name $wl$soname -o $lib' | |
13566 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $
{wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13567 fi | |
13568 ;; | |
13569 | |
13570 solaris*) | |
13571 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
13572 ld_shlibs_F77=no | |
13573 cat <<EOF 1>&2 | |
13574 | |
13575 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
13576 *** create shared libraries on Solaris systems. Therefore, libtool | |
13577 *** is disabling shared libraries support. We urge you to upgrade GNU | |
13578 *** binutils to release 2.9.1 or newer. Another option is to modify | |
13579 *** your PATH or compiler configuration so that the native linker is | |
13580 *** used, and then restart. | |
13581 | |
13582 EOF | |
13583 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
13584 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so
name $wl$soname -o $lib' | |
13585 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $
{wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13586 else | |
13587 ld_shlibs_F77=no | |
13588 fi | |
13589 ;; | |
13590 | |
13591 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
13592 case `$LD -v 2>&1` in | |
13593 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
13594 ld_shlibs_F77=no | |
13595 cat <<_LT_EOF 1>&2 | |
13596 | |
13597 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
13598 *** reliably create shared libraries on SCO systems. Therefore, libtool | |
13599 *** is disabling shared libraries support. We urge you to upgrade GNU | |
13600 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
13601 *** your PATH or compiler configuration so that the native linker is | |
13602 *** used, and then restart. | |
13603 | |
13604 _LT_EOF | |
13605 ;; | |
13606 *) | |
13607 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; th
en | |
13608 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-
rpath,$libdir`' | |
13609 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl
}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
13610 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_fla
gs ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$
export_symbols -o $lib' | |
13611 else | |
13612 ld_shlibs_F77=no | |
13613 fi | |
13614 ;; | |
13615 esac | |
13616 ;; | |
13617 | |
13618 sunos4*) | |
13619 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $depl
ibs $linker_flags' | |
13620 wlarc= | |
13621 hardcode_direct_F77=yes | |
13622 hardcode_shlibpath_var_F77=no | |
13623 ;; | |
13624 | |
13625 *) | |
13626 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
13627 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so
name $wl$soname -o $lib' | |
13628 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $
{wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13629 else | |
13630 ld_shlibs_F77=no | |
13631 fi | |
13632 ;; | |
13633 esac | |
13634 | |
13635 if test "$ld_shlibs_F77" = no; then | |
13636 runpath_var= | |
13637 hardcode_libdir_flag_spec_F77= | |
13638 export_dynamic_flag_spec_F77= | |
13639 whole_archive_flag_spec_F77= | |
13640 fi | |
13641 else | |
13642 # PORTME fill in a description of your system's linker (not GNU ld) | |
13643 case $host_os in | |
13644 aix3*) | |
13645 allow_undefined_flag_F77=unsupported | |
13646 always_export_symbols_F77=yes | |
13647 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' | |
13648 # Note: this linker hardcodes the directories in LIBPATH if there | |
13649 # are no directories specified by -L. | |
13650 hardcode_minus_L_F77=yes | |
13651 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
13652 # Neither direct hardcoding nor static linking is supported with a | |
13653 # broken collect2. | |
13654 hardcode_direct_F77=unsupported | |
13655 fi | |
13656 ;; | |
13657 | |
13658 aix4* | aix5*) | |
13659 if test "$host_cpu" = ia64; then | |
13660 # On IA64, the linker does run time linking by default, so we don't | |
13661 # have to do anything special. | |
13662 aix_use_runtimelinking=no | |
13663 exp_sym_flag='-Bexport' | |
13664 no_entry_flag="" | |
13665 else | |
13666 # If we're using GNU nm, then we don't want the "-C" option. | |
13667 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
13668 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
13669 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' | |
13670 else | |
13671 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ i
f (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) {
print \$3 } }'\'' | sort -u > $export_symbols' | |
13672 fi | |
13673 aix_use_runtimelinking=no | |
13674 | |
13675 # Test if we are trying to use run time linking or normal | |
13676 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
13677 # need to do runtime linking. | |
13678 case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
13679 for ld_flag in $LDFLAGS; do | |
13680 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
13681 aix_use_runtimelinking=yes | |
13682 break | |
13683 fi | |
13684 done | |
13685 ;; | |
13686 esac | |
13687 | |
13688 exp_sym_flag='-bexport' | |
13689 no_entry_flag='-bnoentry' | |
13690 fi | |
13691 | |
13692 # When large executables or shared objects are built, AIX ld can | |
13693 # have problems creating the table of contents. If linking a library | |
13694 # or program results in "error TOC overflow" add -mminimal-toc to | |
13695 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
13696 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
13697 | |
13698 archive_cmds_F77='' | |
13699 hardcode_direct_F77=yes | |
13700 hardcode_libdir_separator_F77=':' | |
13701 link_all_deplibs_F77=yes | |
13702 | |
13703 if test "$GCC" = yes; then | |
13704 case $host_os in aix4.[012]|aix4.[012].*) | |
13705 # We only want to do this on AIX 4.2 and lower, the check | |
13706 # below for broken collect2 doesn't work under 4.3+ | |
13707 collect2name=`${CC} -print-prog-name=collect2` | |
13708 if test -f "$collect2name" && \ | |
13709 strings "$collect2name" | grep resolve_lib_name >/dev/null | |
13710 then | |
13711 # We have reworked collect2 | |
13712 hardcode_direct_F77=yes | |
13713 else | |
13714 # We have old collect2 | |
13715 hardcode_direct_F77=unsupported | |
13716 # It fails to find uninstalled libraries when the uninstalled | |
13717 # path is not listed in the libpath. Setting hardcode_minus_L | |
13718 # to unsupported forces relinking | |
13719 hardcode_minus_L_F77=yes | |
13720 hardcode_libdir_flag_spec_F77='-L$libdir' | |
13721 hardcode_libdir_separator_F77= | |
13722 fi | |
13723 ;; | |
13724 esac | |
13725 shared_flag='-shared' | |
13726 if test "$aix_use_runtimelinking" = yes; then | |
13727 shared_flag="$shared_flag "'${wl}-G' | |
13728 fi | |
13729 else | |
13730 # not using gcc | |
13731 if test "$host_cpu" = ia64; then | |
13732 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
13733 # chokes on -Wl,-G. The following line is correct: | |
13734 shared_flag='-G' | |
13735 else | |
13736 if test "$aix_use_runtimelinking" = yes; then | |
13737 shared_flag='${wl}-G' | |
13738 else | |
13739 shared_flag='${wl}-bM:SRE' | |
13740 fi | |
13741 fi | |
13742 fi | |
13743 | |
13744 # It seems that -bexpall does not export symbols beginning with | |
13745 # underscore (_), so it is better to generate a list of symbols to export. | |
13746 always_export_symbols_F77=yes | |
13747 if test "$aix_use_runtimelinking" = yes; then | |
13748 # Warning - without using the other runtime loading flags (-brtl), | |
13749 # -berok will link without error, but may produce a broken library. | |
13750 allow_undefined_flag_F77='-berok' | |
13751 # Determine the default libpath from the value encoded in an empty execut
able. | |
13752 cat >conftest.$ac_ext <<_ACEOF | |
13753 program main | |
13754 | |
13755 end | |
13756 _ACEOF | |
13757 rm -f conftest.$ac_objext conftest$ac_exeext | |
13758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13759 (eval $ac_link) 2>conftest.er1 | |
13760 ac_status=$? | |
13761 grep -v '^ *+' conftest.er1 >conftest.err | |
13762 rm -f conftest.er1 | |
13763 cat conftest.err >&5 | |
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13765 (exit $ac_status); } && | |
13766 { ac_try='test -z "$ac_f77_werror_flag" || test
! -s conftest.err' | |
13767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13768 (eval $ac_try) 2>&5 | |
13769 ac_status=$? | |
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13771 (exit $ac_status); }; } && | |
13772 { ac_try='test -s conftest$ac_exeext' | |
13773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13774 (eval $ac_try) 2>&5 | |
13775 ac_status=$? | |
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13777 (exit $ac_status); }; }; then | |
13778 | |
13779 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File S
trings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
13780 }'` | |
13781 # Check for a 64-bit object if we didn't find anything. | |
13782 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/de
v/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p;
} | |
13783 }'`; fi | |
13784 else | |
13785 echo "$as_me: failed program was:" >&5 | |
13786 sed 's/^/| /' conftest.$ac_ext >&5 | |
13787 | |
13788 fi | |
13789 rm -f conftest.err conftest.$ac_objext \ | |
13790 conftest$ac_exeext conftest.$ac_ext | |
13791 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
13792 | |
13793 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13794 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $depl
ibs '"\${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" | |
13795 else | |
13796 if test "$host_cpu" = ia64; then | |
13797 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' | |
13798 allow_undefined_flag_F77="-z nodefs" | |
13799 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname
$libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefin
ed_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
13800 else | |
13801 # Determine the default libpath from the value encoded in an empty exec
utable. | |
13802 cat >conftest.$ac_ext <<_ACEOF | |
13803 program main | |
13804 | |
13805 end | |
13806 _ACEOF | |
13807 rm -f conftest.$ac_objext conftest$ac_exeext | |
13808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13809 (eval $ac_link) 2>conftest.er1 | |
13810 ac_status=$? | |
13811 grep -v '^ *+' conftest.er1 >conftest.err | |
13812 rm -f conftest.er1 | |
13813 cat conftest.err >&5 | |
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13815 (exit $ac_status); } && | |
13816 { ac_try='test -z "$ac_f77_werror_flag" || test
! -s conftest.err' | |
13817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13818 (eval $ac_try) 2>&5 | |
13819 ac_status=$? | |
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13821 (exit $ac_status); }; } && | |
13822 { ac_try='test -s conftest$ac_exeext' | |
13823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13824 (eval $ac_try) 2>&5 | |
13825 ac_status=$? | |
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13827 (exit $ac_status); }; }; then | |
13828 | |
13829 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File S
trings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
13830 }'` | |
13831 # Check for a 64-bit object if we didn't find anything. | |
13832 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/de
v/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p;
} | |
13833 }'`; fi | |
13834 else | |
13835 echo "$as_me: failed program was:" >&5 | |
13836 sed 's/^/| /' conftest.$ac_ext >&5 | |
13837 | |
13838 fi | |
13839 rm -f conftest.err conftest.$ac_objext \ | |
13840 conftest$ac_exeext conftest.$ac_ext | |
13841 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
13842 | |
13843 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13844 # Warning - without using the other run time loading flags, | |
13845 # -berok will link without error, but may produce a broken library. | |
13846 no_undefined_flag_F77=' ${wl}-bernotok' | |
13847 allow_undefined_flag_F77=' ${wl}-berok' | |
13848 # Exported symbols can be pulled into shared objects from archives | |
13849 whole_archive_flag_spec_F77='$convenience' | |
13850 archive_cmds_need_lc_F77=yes | |
13851 # This is similar to how AIX traditionally builds its shared libraries
. | |
13852 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname
$libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allo
w_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir
/$soname' | |
13853 fi | |
13854 fi | |
13855 ;; | |
13856 | |
13857 amigaos*) | |
13858 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME
$libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $out
put_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2i
xlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.d
ata~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -
32)' | |
13859 hardcode_libdir_flag_spec_F77='-L$libdir' | |
13860 hardcode_minus_L_F77=yes | |
13861 # see comment about different semantics on the GNU ld section | |
13862 ld_shlibs_F77=no | |
13863 ;; | |
13864 | |
13865 bsdi[45]*) | |
13866 export_dynamic_flag_spec_F77=-rdynamic | |
13867 ;; | |
13868 | |
13869 cygwin* | mingw* | pw32*) | |
13870 # When not using gcc, we currently assume that we are using | |
13871 # Microsoft Visual C++. | |
13872 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
13873 # no search path for DLLs. | |
13874 hardcode_libdir_flag_spec_F77=' ' | |
13875 allow_undefined_flag_F77=unsupported | |
13876 # Tell ltmain to make .lib files, not .a files. | |
13877 libext=lib | |
13878 # Tell ltmain to make .dll files, not .so files. | |
13879 shrext_cmds=".dll" | |
13880 # FIXME: Setting linknames here is a bad hack. | |
13881 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" |
$SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
13882 # The linker will automatically build a .lib file if we build a DLL. | |
13883 old_archive_From_new_cmds_F77='true' | |
13884 # FIXME: Should let the user specify the lib program. | |
13885 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
13886 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' | |
13887 enable_shared_with_static_runtimes_F77=yes | |
13888 ;; | |
13889 | |
13890 darwin* | rhapsody*) | |
13891 case $host_os in | |
13892 rhapsody* | darwin1.[012]) | |
13893 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' | |
13894 ;; | |
13895 *) # Darwin 1.3 on | |
13896 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
13897 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}s
uppress' | |
13898 else | |
13899 case ${MACOSX_DEPLOYMENT_TARGET} in | |
13900 10.[012]) | |
13901 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${
wl}suppress' | |
13902 ;; | |
13903 10.*) | |
13904 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' | |
13905 ;; | |
13906 esac | |
13907 fi | |
13908 ;; | |
13909 esac | |
13910 archive_cmds_need_lc_F77=no | |
13911 hardcode_direct_F77=no | |
13912 hardcode_automatic_F77=yes | |
13913 hardcode_shlibpath_var_F77=unsupported | |
13914 whole_archive_flag_spec_F77='' | |
13915 link_all_deplibs_F77=yes | |
13916 if test "$GCC" = yes ; then | |
13917 output_verbose_link_cmd='echo' | |
13918 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs
$deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
13919 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $depli
bs$compiler_flags' | |
13920 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't e
xist in older darwin lds | |
13921 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\)
,_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamicl
ib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name
$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${
lib}' | |
13922 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),
_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_und
efined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_
objdir/${libname}-symbols.expsym ${lib}' | |
13923 else | |
13924 case $cc_basename in | |
13925 xlc*) | |
13926 output_verbose_link_cmd='echo' | |
13927 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs
$deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstri
ng' | |
13928 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $de
plibs$compiler_flags' | |
13929 # Don't fix this by using the ld -exported_symbols_list flag, it doesn
't exist in older darwin lds | |
13930 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..
*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmksh
robj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-insta
ll_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbo
ls.expsym ${lib}' | |
13931 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 $out
put_objdir/${libname}-symbols.expsym ${lib}' | |
13932 ;; | |
13933 *) | |
13934 ld_shlibs_F77=no | |
13935 ;; | |
13936 esac | |
13937 fi | |
13938 ;; | |
13939 | |
13940 dgux*) | |
13941 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag
s' | |
13942 hardcode_libdir_flag_spec_F77='-L$libdir' | |
13943 hardcode_shlibpath_var_F77=no | |
13944 ;; | |
13945 | |
13946 freebsd1*) | |
13947 ld_shlibs_F77=no | |
13948 ;; | |
13949 | |
13950 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
13951 # support. Future versions do this automatically, but an explicit c++rt0.o | |
13952 # does not break anything, and helps significantly (at the cost of a little | |
13953 # extra space). | |
13954 freebsd2.2*) | |
13955 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags
/usr/lib/c++rt0.o' | |
13956 hardcode_libdir_flag_spec_F77='-R$libdir' | |
13957 hardcode_direct_F77=yes | |
13958 hardcode_shlibpath_var_F77=no | |
13959 ;; | |
13960 | |
13961 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
13962 freebsd2*) | |
13963 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
13964 hardcode_direct_F77=yes | |
13965 hardcode_minus_L_F77=yes | |
13966 hardcode_shlibpath_var_F77=no | |
13967 ;; | |
13968 | |
13969 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
13970 freebsd* | dragonfly*) | |
13971 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
13972 hardcode_libdir_flag_spec_F77='-R$libdir' | |
13973 hardcode_direct_F77=yes | |
13974 hardcode_shlibpath_var_F77=no | |
13975 ;; | |
13976 | |
13977 # GNU/kFreeBSD uses gcc -shared to do shared libraries. | |
13978 kfreebsd*-gnu) | |
13979 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
13980 hardcode_libdir_flag_spec_F77='-R$libdir' | |
13981 hardcode_direct_F77=yes | |
13982 hardcode_shlibpath_var_F77=no | |
13983 link_all_deplibs_F77=no | |
13984 ;; | |
13985 | |
13986 hpux9*) | |
13987 if test "$GCC" = yes; then | |
13988 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' | |
13989 else | |
13990 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -
o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$so
name = $lib || mv $output_objdir/$soname $lib' | |
13991 fi | |
13992 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
13993 hardcode_libdir_separator_F77=: | |
13994 hardcode_direct_F77=yes | |
13995 | |
13996 # hardcode_minus_L: Not really in the search PATH, | |
13997 # but as the default location of the library. | |
13998 hardcode_minus_L_F77=yes | |
13999 export_dynamic_flag_spec_F77='${wl}-E' | |
14000 ;; | |
14001 | |
14002 hpux10*) | |
14003 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
14004 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$i
nstall_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
14005 else | |
14006 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs
$deplibs $linker_flags' | |
14007 fi | |
14008 if test "$with_gnu_ld" = no; then | |
14009 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
14010 hardcode_libdir_separator_F77=: | |
14011 | |
14012 hardcode_direct_F77=yes | |
14013 export_dynamic_flag_spec_F77='${wl}-E' | |
14014 | |
14015 # hardcode_minus_L: Not really in the search PATH, | |
14016 # but as the default location of the library. | |
14017 hardcode_minus_L_F77=yes | |
14018 fi | |
14019 ;; | |
14020 | |
14021 hpux11*) | |
14022 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
14023 case $host_cpu in | |
14024 hppa*64*) | |
14025 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $d
eplibs $compiler_flags' | |
14026 ;; | |
14027 ia64*) | |
14028 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpat
h -o $lib $libobjs $deplibs $compiler_flags' | |
14029 ;; | |
14030 *) | |
14031 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}
$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
14032 ;; | |
14033 esac | |
14034 else | |
14035 case $host_cpu in | |
14036 hppa*64*) | |
14037 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplib
s $compiler_flags' | |
14038 ;; | |
14039 ia64*) | |
14040 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o
$lib $libobjs $deplibs $compiler_flags' | |
14041 ;; | |
14042 *) | |
14043 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_li
bdir -o $lib $libobjs $deplibs $compiler_flags' | |
14044 ;; | |
14045 esac | |
14046 fi | |
14047 if test "$with_gnu_ld" = no; then | |
14048 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
14049 hardcode_libdir_separator_F77=: | |
14050 | |
14051 case $host_cpu in | |
14052 hppa*64*|ia64*) | |
14053 hardcode_libdir_flag_spec_ld_F77='+b $libdir' | |
14054 hardcode_direct_F77=no | |
14055 hardcode_shlibpath_var_F77=no | |
14056 ;; | |
14057 *) | |
14058 hardcode_direct_F77=yes | |
14059 export_dynamic_flag_spec_F77='${wl}-E' | |
14060 | |
14061 # hardcode_minus_L: Not really in the search PATH, | |
14062 # but as the default location of the library. | |
14063 hardcode_minus_L_F77=yes | |
14064 ;; | |
14065 esac | |
14066 fi | |
14067 ;; | |
14068 | |
14069 irix5* | irix6* | nonstopux*) | |
14070 if test "$GCC" = yes; then | |
14071 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so
name ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstrin
g` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
14072 else | |
14073 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $s
oname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${
output_objdir}/so_locations -o $lib' | |
14074 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' | |
14075 fi | |
14076 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14077 hardcode_libdir_separator_F77=: | |
14078 link_all_deplibs_F77=yes | |
14079 ;; | |
14080 | |
14081 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | |
14082 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
14083 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flag
s' # a.out | |
14084 else | |
14085 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'
# ELF | |
14086 fi | |
14087 hardcode_libdir_flag_spec_F77='-R$libdir' | |
14088 hardcode_direct_F77=yes | |
14089 hardcode_shlibpath_var_F77=no | |
14090 ;; | |
14091 | |
14092 newsos6) | |
14093 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag
s' | |
14094 hardcode_direct_F77=yes | |
14095 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14096 hardcode_libdir_separator_F77=: | |
14097 hardcode_shlibpath_var_F77=no | |
14098 ;; | |
14099 | |
14100 openbsd*) | |
14101 hardcode_direct_F77=yes | |
14102 hardcode_shlibpath_var_F77=no | |
14103 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$h
ost_cpu" = "openbsd2.8-powerpc"; then | |
14104 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compi
ler_flags' | |
14105 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs
$compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
14106 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
14107 export_dynamic_flag_spec_F77='${wl}-E' | |
14108 else | |
14109 case $host_os in | |
14110 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
14111 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_f
lags' | |
14112 hardcode_libdir_flag_spec_F77='-R$libdir' | |
14113 ;; | |
14114 *) | |
14115 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $co
mpiler_flags' | |
14116 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
14117 ;; | |
14118 esac | |
14119 fi | |
14120 ;; | |
14121 | |
14122 os2*) | |
14123 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14124 hardcode_minus_L_F77=yes | |
14125 allow_undefined_flag_F77=unsupported | |
14126 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$
libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ech
o DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdi
r/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $
output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compile
r_flags $output_objdir/$libname.def' | |
14127 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output
_objdir/$libname.def' | |
14128 ;; | |
14129 | |
14130 osf3*) | |
14131 if test "$GCC" = yes; then | |
14132 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
14133 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_locatio
ns -o $lib' | |
14134 else | |
14135 allow_undefined_flag_F77=' -expect_unresolved \*' | |
14136 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $
linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstri
ng` -update_registry ${output_objdir}/so_locations -o $lib' | |
14137 fi | |
14138 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14139 hardcode_libdir_separator_F77=: | |
14140 ;; | |
14141 | |
14142 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
14143 if test "$GCC" = yes; then | |
14144 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
14145 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $
compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && ech
o ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}
/so_locations -o $lib' | |
14146 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14147 else | |
14148 allow_undefined_flag_F77=' -expect_unresolved \*' | |
14149 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $
linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $v
erstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
14150 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~ | |
14151 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobj
s $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring
` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | |
14152 | |
14153 # Both c and cxx compiler support -rpath directly | |
14154 hardcode_libdir_flag_spec_F77='-rpath $libdir' | |
14155 fi | |
14156 hardcode_libdir_separator_F77=: | |
14157 ;; | |
14158 | |
14159 solaris*) | |
14160 no_undefined_flag_F77=' -z text' | |
14161 if test "$GCC" = yes; then | |
14162 wlarc='${wl}' | |
14163 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $dep
libs $compiler_flags' | |
14164 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbol
s | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
14165 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobj
s $deplibs $compiler_flags~$rm $lib.exp' | |
14166 else | |
14167 wlarc='' | |
14168 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libo
bjs $deplibs $linker_flags' | |
14169 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbol
s | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
14170 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $d
eplibs $linker_flags~$rm $lib.exp' | |
14171 fi | |
14172 hardcode_libdir_flag_spec_F77='-R$libdir' | |
14173 hardcode_shlibpath_var_F77=no | |
14174 case $host_os in | |
14175 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
14176 *) | |
14177 # The compiler driver will combine linker options so we | |
14178 # cannot just pass the convience library names through | |
14179 # without $wl, iff we do not link with $LD. | |
14180 # Luckily, gcc supports the same syntax we need for Sun Studio. | |
14181 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
14182 case $wlarc in | |
14183 '') | |
14184 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextra
ct' ;; | |
14185 *) | |
14186 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $conv
enience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\";
done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | |
14187 esac ;; | |
14188 esac | |
14189 link_all_deplibs_F77=yes | |
14190 ;; | |
14191 | |
14192 sunos4*) | |
14193 if test "x$host_vendor" = xsequent; then | |
14194 # Use $CC to link under sequent, because it throws in some extra .o | |
14195 # files that make .init and .fini sections work. | |
14196 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $comp
iler_flags' | |
14197 else | |
14198 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $depli
bs $linker_flags' | |
14199 fi | |
14200 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14201 hardcode_direct_F77=yes | |
14202 hardcode_minus_L_F77=yes | |
14203 hardcode_shlibpath_var_F77=no | |
14204 ;; | |
14205 | |
14206 sysv4) | |
14207 case $host_vendor in | |
14208 sni) | |
14209 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_
flags' | |
14210 hardcode_direct_F77=yes # is this really true??? | |
14211 ;; | |
14212 siemens) | |
14213 ## LD is ld it makes a PLAMLIB | |
14214 ## CC just makes a GrossModule. | |
14215 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
14216 reload_cmds_F77='$CC -r -o $output$reload_objs' | |
14217 hardcode_direct_F77=no | |
14218 ;; | |
14219 motorola) | |
14220 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_
flags' | |
14221 hardcode_direct_F77=no #Motorola manual says yes, but my tests say the
y lie | |
14222 ;; | |
14223 esac | |
14224 runpath_var='LD_RUN_PATH' | |
14225 hardcode_shlibpath_var_F77=no | |
14226 ;; | |
14227 | |
14228 sysv4.3*) | |
14229 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag
s' | |
14230 hardcode_shlibpath_var_F77=no | |
14231 export_dynamic_flag_spec_F77='-Bexport' | |
14232 ;; | |
14233 | |
14234 sysv4*MP*) | |
14235 if test -d /usr/nec; then | |
14236 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_fl
ags' | |
14237 hardcode_shlibpath_var_F77=no | |
14238 runpath_var=LD_RUN_PATH | |
14239 hardcode_runpath_var=yes | |
14240 ld_shlibs_F77=yes | |
14241 fi | |
14242 ;; | |
14243 | |
14244 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | |
14245 no_undefined_flag_F77='${wl}-z,text' | |
14246 archive_cmds_need_lc_F77=no | |
14247 hardcode_shlibpath_var_F77=no | |
14248 runpath_var='LD_RUN_PATH' | |
14249 | |
14250 if test "$GCC" = yes; then | |
14251 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs
$compiler_flags' | |
14252 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}
-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14253 else | |
14254 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $comp
iler_flags' | |
14255 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$s
oname -o $lib $libobjs $deplibs $compiler_flags' | |
14256 fi | |
14257 ;; | |
14258 | |
14259 sysv5* | sco3.2v5* | sco5v6*) | |
14260 # Note: We can NOT use -z defs as we might desire, because we do not | |
14261 # link with -lc, and that would cause any symbols used from libc to | |
14262 # always be unresolved, which means just about no library would | |
14263 # ever link correctly. If we're not using GNU ld we use -z text | |
14264 # though, which does catch some bad symbols but isn't as heavy-handed | |
14265 # as -z defs. | |
14266 no_undefined_flag_F77='${wl}-z,text' | |
14267 allow_undefined_flag_F77='${wl}-z,nodefs' | |
14268 archive_cmds_need_lc_F77=no | |
14269 hardcode_shlibpath_var_F77=no | |
14270 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$lib
dir`' | |
14271 hardcode_libdir_separator_F77=':' | |
14272 link_all_deplibs_F77=yes | |
14273 export_dynamic_flag_spec_F77='${wl}-Bexport' | |
14274 runpath_var='LD_RUN_PATH' | |
14275 | |
14276 if test "$GCC" = yes; then | |
14277 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}
$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14278 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}
-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler
_flags' | |
14279 else | |
14280 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$sona
me -o $lib $libobjs $deplibs $compiler_flags' | |
14281 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\$
{SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flag
s' | |
14282 fi | |
14283 ;; | |
14284 | |
14285 uts4*) | |
14286 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag
s' | |
14287 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14288 hardcode_shlibpath_var_F77=no | |
14289 ;; | |
14290 | |
14291 *) | |
14292 ld_shlibs_F77=no | |
14293 ;; | |
14294 esac | |
14295 fi | |
14296 | |
14297 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 | |
14298 echo "${ECHO_T}$ld_shlibs_F77" >&6 | |
14299 test "$ld_shlibs_F77" = no && can_build_shared=no | |
14300 | |
14301 # | |
14302 # Do we need to explicitly link libc? | |
14303 # | |
14304 case "x$archive_cmds_need_lc_F77" in | |
14305 x|xyes) | |
14306 # Assume -lc should be added | |
14307 archive_cmds_need_lc_F77=yes | |
14308 | |
14309 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
14310 case $archive_cmds_F77 in | |
14311 *'~'*) | |
14312 # FIXME: we may have to deal with multi-command sequences. | |
14313 ;; | |
14314 '$CC '*) | |
14315 # Test whether the compiler implicitly links with -lc since on some | |
14316 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
14317 # to ld, don't add -lc before -lgcc. | |
14318 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in"
>&5 | |
14319 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
6 | |
14320 $rm conftest* | |
14321 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14322 | |
14323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14324 (eval $ac_compile) 2>&5 | |
14325 ac_status=$? | |
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14327 (exit $ac_status); } 2>conftest.err; then | |
14328 soname=conftest | |
14329 lib=conftest | |
14330 libobjs=conftest.$ac_objext | |
14331 deplibs= | |
14332 wl=$lt_prog_compiler_wl_F77 | |
14333 pic_flag=$lt_prog_compiler_pic_F77 | |
14334 compiler_flags=-v | |
14335 linker_flags=-v | |
14336 verstring= | |
14337 output_objdir=. | |
14338 libname=conftest | |
14339 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 | |
14340 allow_undefined_flag_F77= | |
14341 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -
lc \" \>/dev/null 2\>\&1\"") >&5 | |
14342 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
14343 ac_status=$? | |
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14345 (exit $ac_status); } | |
14346 then | |
14347 archive_cmds_need_lc_F77=no | |
14348 else | |
14349 archive_cmds_need_lc_F77=yes | |
14350 fi | |
14351 allow_undefined_flag_F77=$lt_save_allow_undefined_flag | |
14352 else | |
14353 cat conftest.err 1>&5 | |
14354 fi | |
14355 $rm conftest* | |
14356 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 | |
14357 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 | |
14358 ;; | |
14359 esac | |
14360 fi | |
14361 ;; | |
14362 esac | |
14363 | |
14364 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
14365 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
14366 library_names_spec= | |
14367 libname_spec='lib$name' | |
14368 soname_spec= | |
14369 shrext_cmds=".so" | |
14370 postinstall_cmds= | |
14371 postuninstall_cmds= | |
14372 finish_cmds= | |
14373 finish_eval= | |
14374 shlibpath_var= | |
14375 shlibpath_overrides_runpath=unknown | |
14376 version_type=none | |
14377 dynamic_linker="$host_os ld.so" | |
14378 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
14379 if test "$GCC" = yes; then | |
14380 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -
e "s/^libraries://" -e "s,=/,/,g"` | |
14381 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
14382 # if the path contains ";" then we assume it to be the separator | |
14383 # otherwise default to the standard path separator (i.e. ":") - it is | |
14384 # assumed that no part of a normal pathname contains ";" but that should | |
14385 # okay in the real world where ";" in dirpaths is itself problematic. | |
14386 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /
g'` | |
14387 else | |
14388 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PA
TH_SEPARATOR/ /g"` | |
14389 fi | |
14390 else | |
14391 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
14392 fi | |
14393 need_lib_prefix=unknown | |
14394 hardcode_into_libs=no | |
14395 | |
14396 # when you set need_version to no, make sure it does not cause -set_version | |
14397 # flags to be left without arguments | |
14398 need_version=unknown | |
14399 | |
14400 case $host_os in | |
14401 aix3*) | |
14402 version_type=linux | |
14403 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
14404 shlibpath_var=LIBPATH | |
14405 | |
14406 # AIX 3 has no versioning support, so we append a major version to the name. | |
14407 soname_spec='${libname}${release}${shared_ext}$major' | |
14408 ;; | |
14409 | |
14410 aix4* | aix5*) | |
14411 version_type=linux | |
14412 need_lib_prefix=no | |
14413 need_version=no | |
14414 hardcode_into_libs=yes | |
14415 if test "$host_cpu" = ia64; then | |
14416 # AIX 5 supports IA64 | |
14417 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${rele
ase}${shared_ext}$versuffix $libname${shared_ext}' | |
14418 shlibpath_var=LD_LIBRARY_PATH | |
14419 else | |
14420 # With GCC up to 2.95.x, collect2 would create an import file | |
14421 # for dependence libraries. The import file would start with | |
14422 # the line `#! .'. This would cause the generated library to | |
14423 # depend on `.', always an invalid library. This was fixed in | |
14424 # development snapshots of GCC prior to 3.0. | |
14425 case $host_os in | |
14426 aix4 | aix4.[01] | aix4.[01].*) | |
14427 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
14428 echo ' yes ' | |
14429 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
14430 : | |
14431 else | |
14432 can_build_shared=no | |
14433 fi | |
14434 ;; | |
14435 esac | |
14436 # AIX (on Power*) has no versioning support, so currently we can not hardcod
e correct | |
14437 # soname into executable. Probably we can add versioning support to | |
14438 # collect2, so additional links can be useful in future. | |
14439 if test "$aix_use_runtimelinking" = yes; then | |
14440 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
14441 # instead of lib<name>.a to let people know that these are not | |
14442 # typical AIX shared libraries. | |
14443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}
${release}${shared_ext}$major $libname${shared_ext}' | |
14444 else | |
14445 # We preserve .a as extension for shared libraries through AIX4.2 | |
14446 # and later when we are not doing run time linking. | |
14447 library_names_spec='${libname}${release}.a $libname.a' | |
14448 soname_spec='${libname}${release}${shared_ext}$major' | |
14449 fi | |
14450 shlibpath_var=LIBPATH | |
14451 fi | |
14452 ;; | |
14453 | |
14454 amigaos*) | |
14455 library_names_spec='$libname.ixlibrary $libname.a' | |
14456 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
14457 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ech
o "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/lib
s/${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' | |
14458 ;; | |
14459 | |
14460 beos*) | |
14461 library_names_spec='${libname}${shared_ext}' | |
14462 dynamic_linker="$host_os ld.so" | |
14463 shlibpath_var=LIBRARY_PATH | |
14464 ;; | |
14465 | |
14466 bsdi[45]*) | |
14467 version_type=linux | |
14468 need_version=no | |
14469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
14470 soname_spec='${libname}${release}${shared_ext}$major' | |
14471 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
14472 shlibpath_var=LD_LIBRARY_PATH | |
14473 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /
usr/local/lib" | |
14474 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
14475 # the default ld.so.conf also contains /usr/contrib/lib and | |
14476 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
14477 # libtool to hard-code these into programs | |
14478 ;; | |
14479 | |
14480 cygwin* | mingw* | pw32*) | |
14481 version_type=windows | |
14482 shrext_cmds=".dll" | |
14483 need_version=no | |
14484 need_lib_prefix=no | |
14485 | |
14486 case $GCC,$host_os in | |
14487 yes,cygwin* | yes,mingw* | yes,pw32*) | |
14488 library_names_spec='$libname.dll.a' | |
14489 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
14490 postinstall_cmds='base_file=`basename \${file}`~ | |
14491 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''
`~ | |
14492 dldir=$destdir/`dirname \$dlpath`~ | |
14493 test -d \$dldir || mkdir -p \$dldir~ | |
14494 $install_prog $dir/$dlname \$dldir/$dlname~ | |
14495 chmod a+x \$dldir/$dlname' | |
14496 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
14497 dlpath=$dir/\$dldll~ | |
14498 $rm \$dlpath' | |
14499 shlibpath_overrides_runpath=yes | |
14500 | |
14501 case $host_os in | |
14502 cygwin*) | |
14503 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
14504 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $S
ED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14505 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
14506 ;; | |
14507 mingw*) | |
14508 # MinGW DLLs use traditional 'lib' prefix | |
14509 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}
${shared_ext}' | |
14510 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $S
ED -e "s/^libraries://" -e "s,=/,/,g"` | |
14511 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
14512 # It is most probably a Windows format PATH printed by | |
14513 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
14514 # path with ; separators, and with drive letters. We can handle the | |
14515 # drive letters (cygwin fileutils understands them), so leave them, | |
14516 # especially as we might pass files found there to a mingw objdump, | |
14517 # which wouldn't understand a cygwinified path. Ahh. | |
14518 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/
;/ /g'` | |
14519 else | |
14520 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g"` | |
14521 fi | |
14522 ;; | |
14523 pw32*) | |
14524 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
14525 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release
} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14526 ;; | |
14527 esac | |
14528 ;; | |
14529 | |
14530 *) | |
14531 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versu
ffix}${shared_ext} $libname.lib' | |
14532 ;; | |
14533 esac | |
14534 dynamic_linker='Win32 ld.exe' | |
14535 # FIXME: first we should search . and the directory the executable is in | |
14536 shlibpath_var=PATH | |
14537 ;; | |
14538 | |
14539 darwin* | rhapsody*) | |
14540 dynamic_linker="$host_os dyld" | |
14541 version_type=darwin | |
14542 need_lib_prefix=no | |
14543 need_version=no | |
14544 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${re
lease}${major}$shared_ext ${libname}$shared_ext' | |
14545 soname_spec='${libname}${release}${major}$shared_ext' | |
14546 shlibpath_overrides_runpath=yes | |
14547 shlibpath_var=DYLD_LIBRARY_PATH | |
14548 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
14549 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
14550 if test "$GCC" = yes; then | |
14551 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 /us
r/lib /usr/local/lib,g"` | |
14552 else | |
14553 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
14554 fi | |
14555 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
14556 ;; | |
14557 | |
14558 dgux*) | |
14559 version_type=linux | |
14560 need_lib_prefix=no | |
14561 need_version=no | |
14562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname$shared_ext' | |
14563 soname_spec='${libname}${release}${shared_ext}$major' | |
14564 shlibpath_var=LD_LIBRARY_PATH | |
14565 ;; | |
14566 | |
14567 freebsd1*) | |
14568 dynamic_linker=no | |
14569 ;; | |
14570 | |
14571 kfreebsd*-gnu) | |
14572 version_type=linux | |
14573 need_lib_prefix=no | |
14574 need_version=no | |
14575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${shared_ext}' | |
14576 soname_spec='${libname}${release}${shared_ext}$major' | |
14577 shlibpath_var=LD_LIBRARY_PATH | |
14578 shlibpath_overrides_runpath=no | |
14579 hardcode_into_libs=yes | |
14580 dynamic_linker='GNU ld.so' | |
14581 ;; | |
14582 | |
14583 freebsd* | dragonfly*) | |
14584 # DragonFly does not have aout. When/if they implement a new | |
14585 # versioning mechanism, adjust this. | |
14586 if test -x /usr/bin/objformat; then | |
14587 objformat=`/usr/bin/objformat` | |
14588 else | |
14589 case $host_os in | |
14590 freebsd[123]*) objformat=aout ;; | |
14591 *) objformat=elf ;; | |
14592 esac | |
14593 fi | |
14594 version_type=freebsd-$objformat | |
14595 case $version_type in | |
14596 freebsd-elf*) | |
14597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}
${release}${shared_ext} $libname${shared_ext}' | |
14598 need_version=no | |
14599 need_lib_prefix=no | |
14600 ;; | |
14601 freebsd-*) | |
14602 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${
shared_ext}$versuffix' | |
14603 need_version=yes | |
14604 ;; | |
14605 esac | |
14606 shlibpath_var=LD_LIBRARY_PATH | |
14607 case $host_os in | |
14608 freebsd2*) | |
14609 shlibpath_overrides_runpath=yes | |
14610 ;; | |
14611 freebsd3.[01]* | freebsdelf3.[01]*) | |
14612 shlibpath_overrides_runpath=yes | |
14613 hardcode_into_libs=yes | |
14614 ;; | |
14615 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
14616 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
14617 shlibpath_overrides_runpath=no | |
14618 hardcode_into_libs=yes | |
14619 ;; | |
14620 freebsd*) # from 4.6 on | |
14621 shlibpath_overrides_runpath=yes | |
14622 hardcode_into_libs=yes | |
14623 ;; | |
14624 esac | |
14625 ;; | |
14626 | |
14627 gnu*) | |
14628 version_type=linux | |
14629 need_lib_prefix=no | |
14630 need_version=no | |
14631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}${major} ${libname}${shared_ext}' | |
14632 soname_spec='${libname}${release}${shared_ext}$major' | |
14633 shlibpath_var=LD_LIBRARY_PATH | |
14634 hardcode_into_libs=yes | |
14635 ;; | |
14636 | |
14637 hpux9* | hpux10* | hpux11*) | |
14638 # Give a soname corresponding to the major version so that dld.sl refuses to | |
14639 # link against other versions. | |
14640 version_type=sunos | |
14641 need_lib_prefix=no | |
14642 need_version=no | |
14643 case $host_cpu in | |
14644 ia64*) | |
14645 shrext_cmds='.so' | |
14646 hardcode_into_libs=yes | |
14647 dynamic_linker="$host_os dld.so" | |
14648 shlibpath_var=LD_LIBRARY_PATH | |
14649 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major $libname${shared_ext}' | |
14651 soname_spec='${libname}${release}${shared_ext}$major' | |
14652 if test "X$HPUX_IA64_MODE" = X32; then | |
14653 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local
/lib" | |
14654 else | |
14655 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
14656 fi | |
14657 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14658 ;; | |
14659 hppa*64*) | |
14660 shrext_cmds='.sl' | |
14661 hardcode_into_libs=yes | |
14662 dynamic_linker="$host_os dld.sl" | |
14663 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
14664 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}$
{release}${shared_ext}$major $libname${shared_ext}' | |
14666 soname_spec='${libname}${release}${shared_ext}$major' | |
14667 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
14668 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14669 ;; | |
14670 *) | |
14671 shrext_cmds='.sl' | |
14672 dynamic_linker="$host_os dld.sl" | |
14673 shlibpath_var=SHLIB_PATH | |
14674 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
14675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major $libname${shared_ext}' | |
14676 soname_spec='${libname}${release}${shared_ext}$major' | |
14677 ;; | |
14678 esac | |
14679 # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
14680 postinstall_cmds='chmod 555 $lib' | |
14681 ;; | |
14682 | |
14683 interix3*) | |
14684 version_type=linux | |
14685 need_lib_prefix=no | |
14686 need_version=no | |
14687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${shared_ext}' | |
14688 soname_spec='${libname}${release}${shared_ext}$major' | |
14689 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
14690 shlibpath_var=LD_LIBRARY_PATH | |
14691 shlibpath_overrides_runpath=no | |
14692 hardcode_into_libs=yes | |
14693 ;; | |
14694 | |
14695 irix5* | irix6* | nonstopux*) | |
14696 case $host_os in | |
14697 nonstopux*) version_type=nonstopux ;; | |
14698 *) | |
14699 if test "$lt_cv_prog_gnu_ld" = yes; then | |
14700 version_type=linux | |
14701 else | |
14702 version_type=irix | |
14703 fi ;; | |
14704 esac | |
14705 need_lib_prefix=no | |
14706 need_version=no | |
14707 soname_spec='${libname}${release}${shared_ext}$major' | |
14708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext
}' | |
14709 case $host_os in | |
14710 irix5* | nonstopux*) | |
14711 libsuff= shlibsuff= | |
14712 ;; | |
14713 *) | |
14714 case $LD in # libtool.m4 will add one of these switches to LD | |
14715 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
14716 libsuff= shlibsuff= libmagic=32-bit;; | |
14717 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
14718 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
14719 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
14720 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
14721 *) libsuff= shlibsuff= libmagic=never-match;; | |
14722 esac | |
14723 ;; | |
14724 esac | |
14725 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
14726 shlibpath_overrides_runpath=no | |
14727 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${li
bsuff}" | |
14728 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
14729 hardcode_into_libs=yes | |
14730 ;; | |
14731 | |
14732 # No shared lib support for Linux oldld, aout, or coff. | |
14733 linux*oldld* | linux*aout* | linux*coff*) | |
14734 dynamic_linker=no | |
14735 ;; | |
14736 | |
14737 # This must be Linux ELF. | |
14738 linux*) | |
14739 version_type=linux | |
14740 need_lib_prefix=no | |
14741 need_version=no | |
14742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
14743 soname_spec='${libname}${release}${shared_ext}$major' | |
14744 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
14745 shlibpath_var=LD_LIBRARY_PATH | |
14746 shlibpath_overrides_runpath=no | |
14747 # This implies no fast_install, which is unacceptable. | |
14748 # Some rework will be needed to allow for fast_install | |
14749 # before this can be enabled. | |
14750 hardcode_into_libs=yes | |
14751 | |
14752 # Append ld.so.conf contents to the search path | |
14753 if test -f /etc/ld.so.conf; then | |
14754 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); ski
p = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*
//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
14755 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
14756 fi | |
14757 | |
14758 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
14759 # powerpc, because MkLinux only supported shared libraries with the | |
14760 # GNU dynamic linker. Since this was broken with cross compilers, | |
14761 # most powerpc-linux boxes support dynamic linking these days and | |
14762 # people can always --disable-shared, the test was removed, and we | |
14763 # assume the GNU/Linux dynamic linker is in use. | |
14764 dynamic_linker='GNU/Linux ld.so' | |
14765 ;; | |
14766 | |
14767 netbsdelf*-gnu) | |
14768 version_type=linux | |
14769 need_lib_prefix=no | |
14770 need_version=no | |
14771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${shared_ext}' | |
14772 soname_spec='${libname}${release}${shared_ext}$major' | |
14773 shlibpath_var=LD_LIBRARY_PATH | |
14774 shlibpath_overrides_runpath=no | |
14775 hardcode_into_libs=yes | |
14776 dynamic_linker='NetBSD ld.elf_so' | |
14777 ;; | |
14778 | |
14779 knetbsd*-gnu) | |
14780 version_type=linux | |
14781 need_lib_prefix=no | |
14782 need_version=no | |
14783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${shared_ext}' | |
14784 soname_spec='${libname}${release}${shared_ext}$major' | |
14785 shlibpath_var=LD_LIBRARY_PATH | |
14786 shlibpath_overrides_runpath=no | |
14787 hardcode_into_libs=yes | |
14788 dynamic_linker='GNU ld.so' | |
14789 ;; | |
14790 | |
14791 netbsd*) | |
14792 version_type=sunos | |
14793 need_lib_prefix=no | |
14794 need_version=no | |
14795 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
14796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
shared_ext}$versuffix' | |
14797 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14798 dynamic_linker='NetBSD (a.out) ld.so' | |
14799 else | |
14800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major ${libname}${shared_ext}' | |
14801 soname_spec='${libname}${release}${shared_ext}$major' | |
14802 dynamic_linker='NetBSD ld.elf_so' | |
14803 fi | |
14804 shlibpath_var=LD_LIBRARY_PATH | |
14805 shlibpath_overrides_runpath=yes | |
14806 hardcode_into_libs=yes | |
14807 ;; | |
14808 | |
14809 newsos6) | |
14810 version_type=linux | |
14811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
14812 shlibpath_var=LD_LIBRARY_PATH | |
14813 shlibpath_overrides_runpath=yes | |
14814 ;; | |
14815 | |
14816 nto-qnx*) | |
14817 version_type=linux | |
14818 need_lib_prefix=no | |
14819 need_version=no | |
14820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
14821 soname_spec='${libname}${release}${shared_ext}$major' | |
14822 shlibpath_var=LD_LIBRARY_PATH | |
14823 shlibpath_overrides_runpath=yes | |
14824 ;; | |
14825 | |
14826 openbsd*) | |
14827 version_type=sunos | |
14828 sys_lib_dlsearch_path_spec="/usr/lib" | |
14829 need_lib_prefix=no | |
14830 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
14831 case $host_os in | |
14832 openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
14833 *) need_version=no ;; | |
14834 esac | |
14835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh
ared_ext}$versuffix' | |
14836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14837 shlibpath_var=LD_LIBRARY_PATH | |
14838 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_
cpu" = "openbsd2.8-powerpc"; then | |
14839 case $host_os in | |
14840 openbsd2.[89] | openbsd2.[89].*) | |
14841 shlibpath_overrides_runpath=no | |
14842 ;; | |
14843 *) | |
14844 shlibpath_overrides_runpath=yes | |
14845 ;; | |
14846 esac | |
14847 else | |
14848 shlibpath_overrides_runpath=yes | |
14849 fi | |
14850 ;; | |
14851 | |
14852 os2*) | |
14853 libname_spec='$name' | |
14854 shrext_cmds=".dll" | |
14855 need_lib_prefix=no | |
14856 library_names_spec='$libname${shared_ext} $libname.a' | |
14857 dynamic_linker='OS/2 ld.exe' | |
14858 shlibpath_var=LIBPATH | |
14859 ;; | |
14860 | |
14861 osf3* | osf4* | osf5*) | |
14862 version_type=osf | |
14863 need_lib_prefix=no | |
14864 need_version=no | |
14865 soname_spec='${libname}${release}${shared_ext}$major' | |
14866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
14867 shlibpath_var=LD_LIBRARY_PATH | |
14868 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib
/usr/local/lib /var/shlib" | |
14869 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
14870 ;; | |
14871 | |
14872 solaris*) | |
14873 version_type=linux | |
14874 need_lib_prefix=no | |
14875 need_version=no | |
14876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
14877 soname_spec='${libname}${release}${shared_ext}$major' | |
14878 shlibpath_var=LD_LIBRARY_PATH | |
14879 shlibpath_overrides_runpath=yes | |
14880 hardcode_into_libs=yes | |
14881 # ldd complains unless libraries are executable | |
14882 postinstall_cmds='chmod +x $lib' | |
14883 ;; | |
14884 | |
14885 sunos4*) | |
14886 version_type=sunos | |
14887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh
ared_ext}$versuffix' | |
14888 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
14889 shlibpath_var=LD_LIBRARY_PATH | |
14890 shlibpath_overrides_runpath=yes | |
14891 if test "$with_gnu_ld" = yes; then | |
14892 need_lib_prefix=no | |
14893 fi | |
14894 need_version=yes | |
14895 ;; | |
14896 | |
14897 sysv4 | sysv4.3*) | |
14898 version_type=linux | |
14899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
14900 soname_spec='${libname}${release}${shared_ext}$major' | |
14901 shlibpath_var=LD_LIBRARY_PATH | |
14902 case $host_vendor in | |
14903 sni) | |
14904 shlibpath_overrides_runpath=no | |
14905 need_lib_prefix=no | |
14906 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
14907 runpath_var=LD_RUN_PATH | |
14908 ;; | |
14909 siemens) | |
14910 need_lib_prefix=no | |
14911 ;; | |
14912 motorola) | |
14913 need_lib_prefix=no | |
14914 need_version=no | |
14915 shlibpath_overrides_runpath=no | |
14916 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
14917 ;; | |
14918 esac | |
14919 ;; | |
14920 | |
14921 sysv4*MP*) | |
14922 if test -d /usr/nec ;then | |
14923 version_type=linux | |
14924 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$
major $libname${shared_ext}' | |
14925 soname_spec='$libname${shared_ext}.$major' | |
14926 shlibpath_var=LD_LIBRARY_PATH | |
14927 fi | |
14928 ;; | |
14929 | |
14930 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
14931 version_type=freebsd-elf | |
14932 need_lib_prefix=no | |
14933 need_version=no | |
14934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext} $libname${shared_ext}' | |
14935 soname_spec='${libname}${release}${shared_ext}$major' | |
14936 shlibpath_var=LD_LIBRARY_PATH | |
14937 hardcode_into_libs=yes | |
14938 if test "$with_gnu_ld" = yes; then | |
14939 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib
/lib' | |
14940 shlibpath_overrides_runpath=no | |
14941 else | |
14942 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
14943 shlibpath_overrides_runpath=yes | |
14944 case $host_os in | |
14945 sco3.2v5*) | |
14946 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
14947 ;; | |
14948 esac | |
14949 fi | |
14950 sys_lib_dlsearch_path_spec='/usr/lib' | |
14951 ;; | |
14952 | |
14953 uts4*) | |
14954 version_type=linux | |
14955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
14956 soname_spec='${libname}${release}${shared_ext}$major' | |
14957 shlibpath_var=LD_LIBRARY_PATH | |
14958 ;; | |
14959 | |
14960 *) | |
14961 dynamic_linker=no | |
14962 ;; | |
14963 esac | |
14964 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
14965 echo "${ECHO_T}$dynamic_linker" >&6 | |
14966 test "$dynamic_linker" = no && can_build_shared=no | |
14967 | |
14968 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
14969 if test "$GCC" = yes; then | |
14970 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPIL
ER_PATH LIBRARY_PATH" | |
14971 fi | |
14972 | |
14973 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
14974 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >
&6 | |
14975 hardcode_action_F77= | |
14976 if test -n "$hardcode_libdir_flag_spec_F77" || \ | |
14977 test -n "$runpath_var_F77" || \ | |
14978 test "X$hardcode_automatic_F77" = "Xyes" ; then | |
14979 | |
14980 # We can hardcode non-existant directories. | |
14981 if test "$hardcode_direct_F77" != no && | |
14982 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
14983 # have to relink, otherwise we might link with an installed library | |
14984 # when we should be linking with a yet-to-be-installed one | |
14985 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && | |
14986 test "$hardcode_minus_L_F77" != no; then | |
14987 # Linking always hardcodes the temporary library directory. | |
14988 hardcode_action_F77=relink | |
14989 else | |
14990 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
14991 hardcode_action_F77=immediate | |
14992 fi | |
14993 else | |
14994 # We cannot hardcode anything, or else we can only hardcode existing | |
14995 # directories. | |
14996 hardcode_action_F77=unsupported | |
14997 fi | |
14998 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 | |
14999 echo "${ECHO_T}$hardcode_action_F77" >&6 | |
15000 | |
15001 if test "$hardcode_action_F77" = relink; then | |
15002 # Fast installation is not supported | |
15003 enable_fast_install=no | |
15004 elif test "$shlibpath_overrides_runpath" = yes || | |
15005 test "$enable_shared" = no; then | |
15006 # Fast installation is not necessary | |
15007 enable_fast_install=needless | |
15008 fi | |
15009 | |
15010 | |
15011 # The else clause should only fire when bootstrapping the | |
15012 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
15013 # with your package, and you will get complaints that there are | |
15014 # no rules to generate ltmain.sh. | |
15015 if test -f "$ltmain"; then | |
15016 # See if we are running on zsh, and set the options which allow our commands t
hrough | |
15017 # without removal of \ escapes. | |
15018 if test -n "${ZSH_VERSION+set}" ; then | |
15019 setopt NO_GLOB_SUBST | |
15020 fi | |
15021 # Now quote all the things that may contain metacharacters while being | |
15022 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
15023 # variables and quote the copies for generation of the libtool script. | |
15024 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS
NM \ | |
15025 SED SHELL STRIP \ | |
15026 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
15027 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
15028 deplibs_check_method reload_flag reload_cmds need_locks \ | |
15029 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
15030 lt_cv_sys_global_symbol_to_c_name_address \ | |
15031 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
15032 old_postinstall_cmds old_postuninstall_cmds \ | |
15033 compiler_F77 \ | |
15034 CC_F77 \ | |
15035 LD_F77 \ | |
15036 lt_prog_compiler_wl_F77 \ | |
15037 lt_prog_compiler_pic_F77 \ | |
15038 lt_prog_compiler_static_F77 \ | |
15039 lt_prog_compiler_no_builtin_flag_F77 \ | |
15040 export_dynamic_flag_spec_F77 \ | |
15041 thread_safe_flag_spec_F77 \ | |
15042 whole_archive_flag_spec_F77 \ | |
15043 enable_shared_with_static_runtimes_F77 \ | |
15044 old_archive_cmds_F77 \ | |
15045 old_archive_from_new_cmds_F77 \ | |
15046 predep_objects_F77 \ | |
15047 postdep_objects_F77 \ | |
15048 predeps_F77 \ | |
15049 postdeps_F77 \ | |
15050 compiler_lib_search_path_F77 \ | |
15051 archive_cmds_F77 \ | |
15052 archive_expsym_cmds_F77 \ | |
15053 postinstall_cmds_F77 \ | |
15054 postuninstall_cmds_F77 \ | |
15055 old_archive_from_expsyms_cmds_F77 \ | |
15056 allow_undefined_flag_F77 \ | |
15057 no_undefined_flag_F77 \ | |
15058 export_symbols_cmds_F77 \ | |
15059 hardcode_libdir_flag_spec_F77 \ | |
15060 hardcode_libdir_flag_spec_ld_F77 \ | |
15061 hardcode_libdir_separator_F77 \ | |
15062 hardcode_automatic_F77 \ | |
15063 module_cmds_F77 \ | |
15064 module_expsym_cmds_F77 \ | |
15065 lt_cv_prog_compiler_c_o_F77 \ | |
15066 exclude_expsyms_F77 \ | |
15067 include_expsyms_F77; do | |
15068 | |
15069 case $var in | |
15070 old_archive_cmds_F77 | \ | |
15071 old_archive_from_new_cmds_F77 | \ | |
15072 archive_cmds_F77 | \ | |
15073 archive_expsym_cmds_F77 | \ | |
15074 module_cmds_F77 | \ | |
15075 module_expsym_cmds_F77 | \ | |
15076 old_archive_from_expsyms_cmds_F77 | \ | |
15077 export_symbols_cmds_F77 | \ | |
15078 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
15079 postinstall_cmds | postuninstall_cmds | \ | |
15080 old_postinstall_cmds | old_postuninstall_cmds | \ | |
15081 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
15082 # Double-quote double-evaled strings. | |
15083 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\
" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
15084 ;; | |
15085 *) | |
15086 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`
\\\"" | |
15087 ;; | |
15088 esac | |
15089 done | |
15090 | |
15091 case $lt_echo in | |
15092 *'\$0 --fallback-echo"') | |
15093 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fa
llback-echo"/'` | |
15094 ;; | |
15095 esac | |
15096 | |
15097 cfgfile="$ofile" | |
15098 | |
15099 cat <<__EOF__ >> "$cfgfile" | |
15100 # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
15101 | |
15102 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
15103 | |
15104 # Shell to use when invoking shell scripts. | |
15105 SHELL=$lt_SHELL | |
15106 | |
15107 # Whether or not to build shared libraries. | |
15108 build_libtool_libs=$enable_shared | |
15109 | |
15110 # Whether or not to build static libraries. | |
15111 build_old_libs=$enable_static | |
15112 | |
15113 # Whether or not to add -lc for building shared libraries. | |
15114 build_libtool_need_lc=$archive_cmds_need_lc_F77 | |
15115 | |
15116 # Whether or not to disallow shared libs when runtime libs are static | |
15117 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 | |
15118 | |
15119 # Whether or not to optimize for fast installation. | |
15120 fast_install=$enable_fast_install | |
15121 | |
15122 # The host system. | |
15123 host_alias=$host_alias | |
15124 host=$host | |
15125 host_os=$host_os | |
15126 | |
15127 # The build system. | |
15128 build_alias=$build_alias | |
15129 build=$build | |
15130 build_os=$build_os | |
15131 | |
15132 # An echo program that does not interpret backslashes. | |
15133 echo=$lt_echo | |
15134 | |
15135 # The archiver. | |
15136 AR=$lt_AR | |
15137 AR_FLAGS=$lt_AR_FLAGS | |
15138 | |
15139 # A C compiler. | |
15140 LTCC=$lt_LTCC | |
15141 | |
15142 # LTCC compiler flags. | |
15143 LTCFLAGS=$lt_LTCFLAGS | |
15144 | |
15145 # A language-specific compiler. | |
15146 CC=$lt_compiler_F77 | |
15147 | |
15148 # Is the compiler the GNU C compiler? | |
15149 with_gcc=$GCC_F77 | |
15150 | |
15151 # An ERE matcher. | |
15152 EGREP=$lt_EGREP | |
15153 | |
15154 # The linker used to build libraries. | |
15155 LD=$lt_LD_F77 | |
15156 | |
15157 # Whether we need hard or soft links. | |
15158 LN_S=$lt_LN_S | |
15159 | |
15160 # A BSD-compatible nm program. | |
15161 NM=$lt_NM | |
15162 | |
15163 # A symbol stripping program | |
15164 STRIP=$lt_STRIP | |
15165 | |
15166 # Used to examine libraries when file_magic_cmd begins "file" | |
15167 MAGIC_CMD=$MAGIC_CMD | |
15168 | |
15169 # Used on cygwin: DLL creation program. | |
15170 DLLTOOL="$DLLTOOL" | |
15171 | |
15172 # Used on cygwin: object dumper. | |
15173 OBJDUMP="$OBJDUMP" | |
15174 | |
15175 # Used on cygwin: assembler. | |
15176 AS="$AS" | |
15177 | |
15178 # The name of the directory that contains temporary libtool files. | |
15179 objdir=$objdir | |
15180 | |
15181 # How to create reloadable object files. | |
15182 reload_flag=$lt_reload_flag | |
15183 reload_cmds=$lt_reload_cmds | |
15184 | |
15185 # How to pass a linker flag through the compiler. | |
15186 wl=$lt_lt_prog_compiler_wl_F77 | |
15187 | |
15188 # Object file suffix (normally "o"). | |
15189 objext="$ac_objext" | |
15190 | |
15191 # Old archive suffix (normally "a"). | |
15192 libext="$libext" | |
15193 | |
15194 # Shared library suffix (normally ".so"). | |
15195 shrext_cmds='$shrext_cmds' | |
15196 | |
15197 # Executable file suffix (normally ""). | |
15198 exeext="$exeext" | |
15199 | |
15200 # Additional compiler flags for building library objects. | |
15201 pic_flag=$lt_lt_prog_compiler_pic_F77 | |
15202 pic_mode=$pic_mode | |
15203 | |
15204 # What is the maximum length of a command? | |
15205 max_cmd_len=$lt_cv_sys_max_cmd_len | |
15206 | |
15207 # Does compiler simultaneously support -c and -o options? | |
15208 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 | |
15209 | |
15210 # Must we lock files when doing compilation? | |
15211 need_locks=$lt_need_locks | |
15212 | |
15213 # Do we need the lib prefix for modules? | |
15214 need_lib_prefix=$need_lib_prefix | |
15215 | |
15216 # Do we need a version for libraries? | |
15217 need_version=$need_version | |
15218 | |
15219 # Whether dlopen is supported. | |
15220 dlopen_support=$enable_dlopen | |
15221 | |
15222 # Whether dlopen of programs is supported. | |
15223 dlopen_self=$enable_dlopen_self | |
15224 | |
15225 # Whether dlopen of statically linked programs is supported. | |
15226 dlopen_self_static=$enable_dlopen_self_static | |
15227 | |
15228 # Compiler flag to prevent dynamic linking. | |
15229 link_static_flag=$lt_lt_prog_compiler_static_F77 | |
15230 | |
15231 # Compiler flag to turn off builtin functions. | |
15232 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 | |
15233 | |
15234 # Compiler flag to allow reflexive dlopens. | |
15235 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 | |
15236 | |
15237 # Compiler flag to generate shared objects directly from archives. | |
15238 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 | |
15239 | |
15240 # Compiler flag to generate thread-safe objects. | |
15241 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 | |
15242 | |
15243 # Library versioning type. | |
15244 version_type=$version_type | |
15245 | |
15246 # Format of library name prefix. | |
15247 libname_spec=$lt_libname_spec | |
15248 | |
15249 # List of archive names. First name is the real one, the rest are links. | |
15250 # The last name is the one that the linker finds with -lNAME. | |
15251 library_names_spec=$lt_library_names_spec | |
15252 | |
15253 # The coded name of the library, if different from the real name. | |
15254 soname_spec=$lt_soname_spec | |
15255 | |
15256 # Commands used to build and install an old-style archive. | |
15257 RANLIB=$lt_RANLIB | |
15258 old_archive_cmds=$lt_old_archive_cmds_F77 | |
15259 old_postinstall_cmds=$lt_old_postinstall_cmds | |
15260 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
15261 | |
15262 # Create an old-style archive from a shared archive. | |
15263 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 | |
15264 | |
15265 # Create a temporary old-style archive to link instead of a shared archive. | |
15266 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 | |
15267 | |
15268 # Commands used to build and install a shared archive. | |
15269 archive_cmds=$lt_archive_cmds_F77 | |
15270 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 | |
15271 postinstall_cmds=$lt_postinstall_cmds | |
15272 postuninstall_cmds=$lt_postuninstall_cmds | |
15273 | |
15274 # Commands used to build a loadable module (assumed same as above if empty) | |
15275 module_cmds=$lt_module_cmds_F77 | |
15276 module_expsym_cmds=$lt_module_expsym_cmds_F77 | |
15277 | |
15278 # Commands to strip libraries. | |
15279 old_striplib=$lt_old_striplib | |
15280 striplib=$lt_striplib | |
15281 | |
15282 # Dependencies to place before the objects being linked to create a | |
15283 # shared library. | |
15284 predep_objects=$lt_predep_objects_F77 | |
15285 | |
15286 # Dependencies to place after the objects being linked to create a | |
15287 # shared library. | |
15288 postdep_objects=$lt_postdep_objects_F77 | |
15289 | |
15290 # Dependencies to place before the objects being linked to create a | |
15291 # shared library. | |
15292 predeps=$lt_predeps_F77 | |
15293 | |
15294 # Dependencies to place after the objects being linked to create a | |
15295 # shared library. | |
15296 postdeps=$lt_postdeps_F77 | |
15297 | |
15298 # The library search path used internally by the compiler when linking | |
15299 # a shared library. | |
15300 compiler_lib_search_path=$lt_compiler_lib_search_path_F77 | |
15301 | |
15302 # Method to check whether dependent libraries are shared objects. | |
15303 deplibs_check_method=$lt_deplibs_check_method | |
15304 | |
15305 # Command to use when deplibs_check_method == file_magic. | |
15306 file_magic_cmd=$lt_file_magic_cmd | |
15307 | |
15308 # Flag that allows shared libraries with undefined symbols to be built. | |
15309 allow_undefined_flag=$lt_allow_undefined_flag_F77 | |
15310 | |
15311 # Flag that forces no undefined symbols. | |
15312 no_undefined_flag=$lt_no_undefined_flag_F77 | |
15313 | |
15314 # Commands used to finish a libtool library installation in a directory. | |
15315 finish_cmds=$lt_finish_cmds | |
15316 | |
15317 # Same as above, but a single script fragment to be evaled but not shown. | |
15318 finish_eval=$lt_finish_eval | |
15319 | |
15320 # Take the output of nm and produce a listing of raw symbols and C names. | |
15321 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
15322 | |
15323 # Transform the output of nm in a proper C declaration | |
15324 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
15325 | |
15326 # Transform the output of nm in a C name address pair | |
15327 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
15328 | |
15329 # This is the shared library runtime path variable. | |
15330 runpath_var=$runpath_var | |
15331 | |
15332 # This is the shared library path variable. | |
15333 shlibpath_var=$shlibpath_var | |
15334 | |
15335 # Is shlibpath searched before the hard-coded library search path? | |
15336 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
15337 | |
15338 # How to hardcode a shared library path into an executable. | |
15339 hardcode_action=$hardcode_action_F77 | |
15340 | |
15341 # Whether we should hardcode library paths into libraries. | |
15342 hardcode_into_libs=$hardcode_into_libs | |
15343 | |
15344 # Flag to hardcode \$libdir into a binary during linking. | |
15345 # This must work even if \$libdir does not exist. | |
15346 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 | |
15347 | |
15348 # If ld is used when linking, flag to hardcode \$libdir into | |
15349 # a binary during linking. This must work even if \$libdir does | |
15350 # not exist. | |
15351 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 | |
15352 | |
15353 # Whether we need a single -rpath flag with a separated argument. | |
15354 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 | |
15355 | |
15356 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into
the | |
15357 # resulting binary. | |
15358 hardcode_direct=$hardcode_direct_F77 | |
15359 | |
15360 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
15361 # resulting binary. | |
15362 hardcode_minus_L=$hardcode_minus_L_F77 | |
15363 | |
15364 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
15365 # the resulting binary. | |
15366 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 | |
15367 | |
15368 # Set to yes if building a shared library automatically hardcodes DIR into the l
ibrary | |
15369 # and all subsequent libraries and executables linked against it. | |
15370 hardcode_automatic=$hardcode_automatic_F77 | |
15371 | |
15372 # Variables whose values should be saved in libtool wrapper scripts and | |
15373 # restored at relink time. | |
15374 variables_saved_for_relink="$variables_saved_for_relink" | |
15375 | |
15376 # Whether libtool must link a program against all its dependency libraries. | |
15377 link_all_deplibs=$link_all_deplibs_F77 | |
15378 | |
15379 # Compile-time system search path for libraries | |
15380 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
15381 | |
15382 # Run-time system search path for libraries | |
15383 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
15384 | |
15385 # Fix the shell variable \$srcfile for the compiler. | |
15386 fix_srcfile_path="$fix_srcfile_path_F77" | |
15387 | |
15388 # Set to yes if exported symbols are required. | |
15389 always_export_symbols=$always_export_symbols_F77 | |
15390 | |
15391 # The commands to list exported symbols. | |
15392 export_symbols_cmds=$lt_export_symbols_cmds_F77 | |
15393 | |
15394 # The commands to extract the exported symbol list from a shared archive. | |
15395 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
15396 | |
15397 # Symbols that should not be listed in the preloaded symbols. | |
15398 exclude_expsyms=$lt_exclude_expsyms_F77 | |
15399 | |
15400 # Symbols that must always be exported. | |
15401 include_expsyms=$lt_include_expsyms_F77 | |
15402 | |
15403 # ### END LIBTOOL TAG CONFIG: $tagname | |
15404 | |
15405 __EOF__ | |
15406 | |
15407 | |
15408 else | |
15409 # If there is no Makefile yet, we rely on a make rule to execute | |
15410 # `config.status --recheck' to rerun these tests and create the | |
15411 # libtool script then. | |
15412 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
15413 if test -f "$ltmain_in"; then | |
15414 test -f Makefile && make "$ltmain" | |
15415 fi | |
15416 fi | |
15417 | |
15418 | |
15419 ac_ext=c | |
15420 ac_cpp='$CPP $CPPFLAGS' | |
15421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' | |
15423 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15424 | |
15425 CC="$lt_save_CC" | |
15426 | |
15427 else | |
15428 tagname="" | |
15429 fi | |
15430 ;; | |
15431 | |
15432 GCJ) | |
15433 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | |
15434 | |
15435 | |
15436 | |
15437 # Source file extension for Java test sources. | |
15438 ac_ext=java | |
15439 | |
15440 # Object file extension for compiled Java test sources. | |
15441 objext=o | |
15442 objext_GCJ=$objext | |
15443 | |
15444 # Code to be used in simple compile tests | |
15445 lt_simple_compile_test_code="class foo {}\n" | |
15446 | |
15447 # Code to be used in simple link tests | |
15448 lt_simple_link_test_code='public class conftest { public static void main(String
[] argv) {}; }\n' | |
15449 | |
15450 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
15451 | |
15452 # If no C compiler was specified, use CC. | |
15453 LTCC=${LTCC-"$CC"} | |
15454 | |
15455 # If no C compiler flags were specified, use CFLAGS. | |
15456 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
15457 | |
15458 # Allow CC to be a program name with arguments. | |
15459 compiler=$CC | |
15460 | |
15461 | |
15462 # save warnings/boilerplate of simple test code | |
15463 ac_outfile=conftest.$ac_objext | |
15464 printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
15465 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
15466 _lt_compiler_boilerplate=`cat conftest.err` | |
15467 $rm conftest* | |
15468 | |
15469 ac_outfile=conftest.$ac_objext | |
15470 printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
15471 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
15472 _lt_linker_boilerplate=`cat conftest.err` | |
15473 $rm conftest* | |
15474 | |
15475 | |
15476 # Allow CC to be a program name with arguments. | |
15477 lt_save_CC="$CC" | |
15478 CC=${GCJ-"gcj"} | |
15479 compiler=$CC | |
15480 compiler_GCJ=$CC | |
15481 for cc_temp in $compiler""; do | |
15482 case $cc_temp in | |
15483 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
15484 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
15485 \-*) ;; | |
15486 *) break;; | |
15487 esac | |
15488 done | |
15489 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
15490 | |
15491 | |
15492 # GCJ did not exist at the time GCC didn't implicitly link libc in. | |
15493 archive_cmds_need_lc_GCJ=no | |
15494 | |
15495 old_archive_cmds_GCJ=$old_archive_cmds | |
15496 | |
15497 | |
15498 lt_prog_compiler_no_builtin_flag_GCJ= | |
15499 | |
15500 if test "$GCC" = yes; then | |
15501 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | |
15502 | |
15503 | |
15504 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions"
>&5 | |
15505 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_
C" >&6 | |
15506 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
15507 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15508 else | |
15509 lt_cv_prog_compiler_rtti_exceptions=no | |
15510 ac_outfile=conftest.$ac_objext | |
15511 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15512 lt_compiler_flag="-fno-rtti -fno-exceptions" | |
15513 # Insert the option either (1) after the last *FLAGS variable, or | |
15514 # (2) before a word containing "conftest.", or (3) at the end. | |
15515 # Note that $ac_compile itself does not contain backslashes and begins | |
15516 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15517 # The option is referenced via a variable to avoid confusing sed. | |
15518 lt_compile=`echo "$ac_compile" | $SED \ | |
15519 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
15520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15521 -e 's:$: $lt_compiler_flag:'` | |
15522 (eval echo "\"\$as_me:15522: $lt_compile\"" >&5) | |
15523 (eval "$lt_compile" 2>conftest.err) | |
15524 ac_status=$? | |
15525 cat conftest.err >&5 | |
15526 echo "$as_me:15526: \$? = $ac_status" >&5 | |
15527 if (exit $ac_status) && test -s "$ac_outfile"; then | |
15528 # The compiler can only warn and ignore the option if not recognized | |
15529 # So say no if there are warnings other than the usual output. | |
15530 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
15531 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
15532 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the
n | |
15533 lt_cv_prog_compiler_rtti_exceptions=yes | |
15534 fi | |
15535 fi | |
15536 $rm conftest* | |
15537 | |
15538 fi | |
15539 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
15540 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
15541 | |
15542 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
15543 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ
-fno-rtti -fno-exceptions" | |
15544 else | |
15545 : | |
15546 fi | |
15547 | |
15548 fi | |
15549 | |
15550 lt_prog_compiler_wl_GCJ= | |
15551 lt_prog_compiler_pic_GCJ= | |
15552 lt_prog_compiler_static_GCJ= | |
15553 | |
15554 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
15555 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
15556 | |
15557 if test "$GCC" = yes; then | |
15558 lt_prog_compiler_wl_GCJ='-Wl,' | |
15559 lt_prog_compiler_static_GCJ='-static' | |
15560 | |
15561 case $host_os in | |
15562 aix*) | |
15563 # All AIX code is PIC. | |
15564 if test "$host_cpu" = ia64; then | |
15565 # AIX 5 now supports IA64 processor | |
15566 lt_prog_compiler_static_GCJ='-Bstatic' | |
15567 fi | |
15568 ;; | |
15569 | |
15570 amigaos*) | |
15571 # FIXME: we need at least 68020 code to build shared libraries, but | |
15572 # adding the `-m68020' flag to GCC prevents building anything better, | |
15573 # like `-m68040'. | |
15574 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | |
15575 ;; | |
15576 | |
15577 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
15578 # PIC is the default for these OSes. | |
15579 ;; | |
15580 | |
15581 mingw* | pw32* | os2*) | |
15582 # This hack is so that the source file can tell whether it is being | |
15583 # built for inclusion in a dll (and should export symbols for example). | |
15584 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
15585 ;; | |
15586 | |
15587 darwin* | rhapsody*) | |
15588 # PIC is the default on this platform | |
15589 # Common symbols not allowed in MH_DYLIB files | |
15590 lt_prog_compiler_pic_GCJ='-fno-common' | |
15591 ;; | |
15592 | |
15593 interix3*) | |
15594 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
15595 # Instead, we relocate shared libraries at runtime. | |
15596 ;; | |
15597 | |
15598 msdosdjgpp*) | |
15599 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
15600 # on systems that don't support them. | |
15601 lt_prog_compiler_can_build_shared_GCJ=no | |
15602 enable_shared=no | |
15603 ;; | |
15604 | |
15605 sysv4*MP*) | |
15606 if test -d /usr/nec; then | |
15607 lt_prog_compiler_pic_GCJ=-Kconform_pic | |
15608 fi | |
15609 ;; | |
15610 | |
15611 hpux*) | |
15612 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
15613 # not for PA HP-UX. | |
15614 case $host_cpu in | |
15615 hppa*64*|ia64*) | |
15616 # +Z the default | |
15617 ;; | |
15618 *) | |
15619 lt_prog_compiler_pic_GCJ='-fPIC' | |
15620 ;; | |
15621 esac | |
15622 ;; | |
15623 | |
15624 *) | |
15625 lt_prog_compiler_pic_GCJ='-fPIC' | |
15626 ;; | |
15627 esac | |
15628 else | |
15629 # PORTME Check for flag to pass linker flags through the system compiler. | |
15630 case $host_os in | |
15631 aix*) | |
15632 lt_prog_compiler_wl_GCJ='-Wl,' | |
15633 if test "$host_cpu" = ia64; then | |
15634 # AIX 5 now supports IA64 processor | |
15635 lt_prog_compiler_static_GCJ='-Bstatic' | |
15636 else | |
15637 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | |
15638 fi | |
15639 ;; | |
15640 darwin*) | |
15641 # PIC is the default on this platform | |
15642 # Common symbols not allowed in MH_DYLIB files | |
15643 case $cc_basename in | |
15644 xlc*) | |
15645 lt_prog_compiler_pic_GCJ='-qnocommon' | |
15646 lt_prog_compiler_wl_GCJ='-Wl,' | |
15647 ;; | |
15648 esac | |
15649 ;; | |
15650 | |
15651 mingw* | pw32* | os2*) | |
15652 # This hack is so that the source file can tell whether it is being | |
15653 # built for inclusion in a dll (and should export symbols for example). | |
15654 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
15655 ;; | |
15656 | |
15657 hpux9* | hpux10* | hpux11*) | |
15658 lt_prog_compiler_wl_GCJ='-Wl,' | |
15659 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
15660 # not for PA HP-UX. | |
15661 case $host_cpu in | |
15662 hppa*64*|ia64*) | |
15663 # +Z the default | |
15664 ;; | |
15665 *) | |
15666 lt_prog_compiler_pic_GCJ='+Z' | |
15667 ;; | |
15668 esac | |
15669 # Is there a better lt_prog_compiler_static that works with the bundled CC
? | |
15670 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | |
15671 ;; | |
15672 | |
15673 irix5* | irix6* | nonstopux*) | |
15674 lt_prog_compiler_wl_GCJ='-Wl,' | |
15675 # PIC (with -KPIC) is the default. | |
15676 lt_prog_compiler_static_GCJ='-non_shared' | |
15677 ;; | |
15678 | |
15679 newsos6) | |
15680 lt_prog_compiler_pic_GCJ='-KPIC' | |
15681 lt_prog_compiler_static_GCJ='-Bstatic' | |
15682 ;; | |
15683 | |
15684 linux*) | |
15685 case $cc_basename in | |
15686 icc* | ecc*) | |
15687 lt_prog_compiler_wl_GCJ='-Wl,' | |
15688 lt_prog_compiler_pic_GCJ='-KPIC' | |
15689 lt_prog_compiler_static_GCJ='-static' | |
15690 ;; | |
15691 pgcc* | pgf77* | pgf90* | pgf95*) | |
15692 # Portland Group compilers (*not* the Pentium gcc compiler, | |
15693 # which looks to be a dead project) | |
15694 lt_prog_compiler_wl_GCJ='-Wl,' | |
15695 lt_prog_compiler_pic_GCJ='-fpic' | |
15696 lt_prog_compiler_static_GCJ='-Bstatic' | |
15697 ;; | |
15698 ccc*) | |
15699 lt_prog_compiler_wl_GCJ='-Wl,' | |
15700 # All Alpha code is PIC. | |
15701 lt_prog_compiler_static_GCJ='-non_shared' | |
15702 ;; | |
15703 esac | |
15704 ;; | |
15705 | |
15706 osf3* | osf4* | osf5*) | |
15707 lt_prog_compiler_wl_GCJ='-Wl,' | |
15708 # All OSF/1 code is PIC. | |
15709 lt_prog_compiler_static_GCJ='-non_shared' | |
15710 ;; | |
15711 | |
15712 solaris*) | |
15713 lt_prog_compiler_pic_GCJ='-KPIC' | |
15714 lt_prog_compiler_static_GCJ='-Bstatic' | |
15715 case $cc_basename in | |
15716 f77* | f90* | f95*) | |
15717 lt_prog_compiler_wl_GCJ='-Qoption ld ';; | |
15718 *) | |
15719 lt_prog_compiler_wl_GCJ='-Wl,';; | |
15720 esac | |
15721 ;; | |
15722 | |
15723 sunos4*) | |
15724 lt_prog_compiler_wl_GCJ='-Qoption ld ' | |
15725 lt_prog_compiler_pic_GCJ='-PIC' | |
15726 lt_prog_compiler_static_GCJ='-Bstatic' | |
15727 ;; | |
15728 | |
15729 sysv4 | sysv4.2uw2* | sysv4.3*) | |
15730 lt_prog_compiler_wl_GCJ='-Wl,' | |
15731 lt_prog_compiler_pic_GCJ='-KPIC' | |
15732 lt_prog_compiler_static_GCJ='-Bstatic' | |
15733 ;; | |
15734 | |
15735 sysv4*MP*) | |
15736 if test -d /usr/nec ;then | |
15737 lt_prog_compiler_pic_GCJ='-Kconform_pic' | |
15738 lt_prog_compiler_static_GCJ='-Bstatic' | |
15739 fi | |
15740 ;; | |
15741 | |
15742 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
15743 lt_prog_compiler_wl_GCJ='-Wl,' | |
15744 lt_prog_compiler_pic_GCJ='-KPIC' | |
15745 lt_prog_compiler_static_GCJ='-Bstatic' | |
15746 ;; | |
15747 | |
15748 unicos*) | |
15749 lt_prog_compiler_wl_GCJ='-Wl,' | |
15750 lt_prog_compiler_can_build_shared_GCJ=no | |
15751 ;; | |
15752 | |
15753 uts4*) | |
15754 lt_prog_compiler_pic_GCJ='-pic' | |
15755 lt_prog_compiler_static_GCJ='-Bstatic' | |
15756 ;; | |
15757 | |
15758 *) | |
15759 lt_prog_compiler_can_build_shared_GCJ=no | |
15760 ;; | |
15761 esac | |
15762 fi | |
15763 | |
15764 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | |
15765 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 | |
15766 | |
15767 # | |
15768 # Check to make sure the PIC flag actually works. | |
15769 # | |
15770 if test -n "$lt_prog_compiler_pic_GCJ"; then | |
15771 | |
15772 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ w
orks" >&5 | |
15773 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works...
$ECHO_C" >&6 | |
15774 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | |
15775 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15776 else | |
15777 lt_prog_compiler_pic_works_GCJ=no | |
15778 ac_outfile=conftest.$ac_objext | |
15779 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15780 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" | |
15781 # Insert the option either (1) after the last *FLAGS variable, or | |
15782 # (2) before a word containing "conftest.", or (3) at the end. | |
15783 # Note that $ac_compile itself does not contain backslashes and begins | |
15784 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15785 # The option is referenced via a variable to avoid confusing sed. | |
15786 lt_compile=`echo "$ac_compile" | $SED \ | |
15787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
15788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15789 -e 's:$: $lt_compiler_flag:'` | |
15790 (eval echo "\"\$as_me:15790: $lt_compile\"" >&5) | |
15791 (eval "$lt_compile" 2>conftest.err) | |
15792 ac_status=$? | |
15793 cat conftest.err >&5 | |
15794 echo "$as_me:15794: \$? = $ac_status" >&5 | |
15795 if (exit $ac_status) && test -s "$ac_outfile"; then | |
15796 # The compiler can only warn and ignore the option if not recognized | |
15797 # So say no if there are warnings other than the usual output. | |
15798 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
15799 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
15800 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the
n | |
15801 lt_prog_compiler_pic_works_GCJ=yes | |
15802 fi | |
15803 fi | |
15804 $rm conftest* | |
15805 | |
15806 fi | |
15807 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 | |
15808 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 | |
15809 | |
15810 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | |
15811 case $lt_prog_compiler_pic_GCJ in | |
15812 "" | " "*) ;; | |
15813 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | |
15814 esac | |
15815 else | |
15816 lt_prog_compiler_pic_GCJ= | |
15817 lt_prog_compiler_can_build_shared_GCJ=no | |
15818 fi | |
15819 | |
15820 fi | |
15821 case $host_os in | |
15822 # For platforms which do not support PIC, -DPIC is meaningless: | |
15823 *djgpp*) | |
15824 lt_prog_compiler_pic_GCJ= | |
15825 ;; | |
15826 *) | |
15827 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" | |
15828 ;; | |
15829 esac | |
15830 | |
15831 # | |
15832 # Check to make sure the static flag actually works. | |
15833 # | |
15834 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_G
CJ\" | |
15835 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag work
s" >&5 | |
15836 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $EC
HO_C" >&6 | |
15837 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then | |
15838 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15839 else | |
15840 lt_prog_compiler_static_works_GCJ=no | |
15841 save_LDFLAGS="$LDFLAGS" | |
15842 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
15843 printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
15844 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
15845 # The linker can only warn and ignore the option if not recognized | |
15846 # So say no if there are warnings | |
15847 if test -s conftest.err; then | |
15848 # Append any errors to the config.log. | |
15849 cat conftest.err 1>&5 | |
15850 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
15851 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
15852 if diff conftest.exp conftest.er2 >/dev/null; then | |
15853 lt_prog_compiler_static_works_GCJ=yes | |
15854 fi | |
15855 else | |
15856 lt_prog_compiler_static_works_GCJ=yes | |
15857 fi | |
15858 fi | |
15859 $rm conftest* | |
15860 LDFLAGS="$save_LDFLAGS" | |
15861 | |
15862 fi | |
15863 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 | |
15864 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 | |
15865 | |
15866 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then | |
15867 : | |
15868 else | |
15869 lt_prog_compiler_static_GCJ= | |
15870 fi | |
15871 | |
15872 | |
15873 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
15874 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >
&6 | |
15875 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | |
15876 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15877 else | |
15878 lt_cv_prog_compiler_c_o_GCJ=no | |
15879 $rm -r conftest 2>/dev/null | |
15880 mkdir conftest | |
15881 cd conftest | |
15882 mkdir out | |
15883 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15884 | |
15885 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
15886 # Insert the option either (1) after the last *FLAGS variable, or | |
15887 # (2) before a word containing "conftest.", or (3) at the end. | |
15888 # Note that $ac_compile itself does not contain backslashes and begins | |
15889 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15890 lt_compile=`echo "$ac_compile" | $SED \ | |
15891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
15892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15893 -e 's:$: $lt_compiler_flag:'` | |
15894 (eval echo "\"\$as_me:15894: $lt_compile\"" >&5) | |
15895 (eval "$lt_compile" 2>out/conftest.err) | |
15896 ac_status=$? | |
15897 cat out/conftest.err >&5 | |
15898 echo "$as_me:15898: \$? = $ac_status" >&5 | |
15899 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
15900 then | |
15901 # The compiler can only warn and ignore the option if not recognized | |
15902 # So say no if there are warnings | |
15903 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
15904 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
15905 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/d
ev/null; then | |
15906 lt_cv_prog_compiler_c_o_GCJ=yes | |
15907 fi | |
15908 fi | |
15909 chmod u+w . 2>&5 | |
15910 $rm conftest* | |
15911 # SGI C++ compiler will create directory out/ii_files/ for | |
15912 # template instantiation | |
15913 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
15914 $rm out/* && rmdir out | |
15915 cd .. | |
15916 rmdir conftest | |
15917 $rm conftest* | |
15918 | |
15919 fi | |
15920 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 | |
15921 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 | |
15922 | |
15923 | |
15924 hard_links="nottested" | |
15925 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | |
15926 # do not overwrite the value of need_locks provided by the user | |
15927 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
15928 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
15929 hard_links=yes | |
15930 $rm conftest* | |
15931 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
15932 touch conftest.a | |
15933 ln conftest.a conftest.b 2>&5 || hard_links=no | |
15934 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
15935 echo "$as_me:$LINENO: result: $hard_links" >&5 | |
15936 echo "${ECHO_T}$hard_links" >&6 | |
15937 if test "$hard_links" = no; then | |
15938 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make
-j' may be unsafe" >&5 | |
15939 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be un
safe" >&2;} | |
15940 need_locks=warn | |
15941 fi | |
15942 else | |
15943 need_locks=no | |
15944 fi | |
15945 | |
15946 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports share
d libraries" >&5 | |
15947 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
ies... $ECHO_C" >&6 | |
15948 | |
15949 runpath_var= | |
15950 allow_undefined_flag_GCJ= | |
15951 enable_shared_with_static_runtimes_GCJ=no | |
15952 archive_cmds_GCJ= | |
15953 archive_expsym_cmds_GCJ= | |
15954 old_archive_From_new_cmds_GCJ= | |
15955 old_archive_from_expsyms_cmds_GCJ= | |
15956 export_dynamic_flag_spec_GCJ= | |
15957 whole_archive_flag_spec_GCJ= | |
15958 thread_safe_flag_spec_GCJ= | |
15959 hardcode_libdir_flag_spec_GCJ= | |
15960 hardcode_libdir_flag_spec_ld_GCJ= | |
15961 hardcode_libdir_separator_GCJ= | |
15962 hardcode_direct_GCJ=no | |
15963 hardcode_minus_L_GCJ=no | |
15964 hardcode_shlibpath_var_GCJ=unsupported | |
15965 link_all_deplibs_GCJ=unknown | |
15966 hardcode_automatic_GCJ=no | |
15967 module_cmds_GCJ= | |
15968 module_expsym_cmds_GCJ= | |
15969 always_export_symbols_GCJ=no | |
15970 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SE
D '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
15971 # include_expsyms should be a list of space-separated symbols to be *always* | |
15972 # included in the symbol list | |
15973 include_expsyms_GCJ= | |
15974 # exclude_expsyms can be an extended regexp of symbols to exclude | |
15975 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
15976 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
15977 # as well as any symbol that contains `d'. | |
15978 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | |
15979 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
15980 # platforms (ab)use it in PIC code, but their linkers get confused if | |
15981 # the symbol is explicitly referenced. Since portable code cannot | |
15982 # rely on this symbol name, it's probably fine to never include it in | |
15983 # preloaded symbol tables. | |
15984 extract_expsyms_cmds= | |
15985 # Just being paranoid about ensuring that cc_basename is set. | |
15986 for cc_temp in $compiler""; do | |
15987 case $cc_temp in | |
15988 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
15989 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
15990 \-*) ;; | |
15991 *) break;; | |
15992 esac | |
15993 done | |
15994 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
15995 | |
15996 case $host_os in | |
15997 cygwin* | mingw* | pw32*) | |
15998 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
15999 # When not using gcc, we currently assume that we are using | |
16000 # Microsoft Visual C++. | |
16001 if test "$GCC" != yes; then | |
16002 with_gnu_ld=no | |
16003 fi | |
16004 ;; | |
16005 interix*) | |
16006 # we just hope/assume this is gcc and not c89 (= MSVC++) | |
16007 with_gnu_ld=yes | |
16008 ;; | |
16009 openbsd*) | |
16010 with_gnu_ld=no | |
16011 ;; | |
16012 esac | |
16013 | |
16014 ld_shlibs_GCJ=yes | |
16015 if test "$with_gnu_ld" = yes; then | |
16016 # If archive_cmds runs LD, not CC, wlarc should be empty | |
16017 wlarc='${wl}' | |
16018 | |
16019 # Set some defaults for GNU ld with shared library support. These | |
16020 # are reset later if shared libraries are not supported. Putting them | |
16021 # here allows them to be overridden if necessary. | |
16022 runpath_var=LD_RUN_PATH | |
16023 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | |
16024 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | |
16025 # ancient GNU ld didn't support --whole-archive et. al. | |
16026 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
16027 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlar
c"'--no-whole-archive' | |
16028 else | |
16029 whole_archive_flag_spec_GCJ= | |
16030 fi | |
16031 supports_anon_versioning=no | |
16032 case `$LD -v 2>/dev/null` in | |
16033 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
16034 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
16035 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
16036 *\ 2.11.*) ;; # other 2.11 versions | |
16037 *) supports_anon_versioning=yes ;; | |
16038 esac | |
16039 | |
16040 # See if GNU ld supports shared libraries. | |
16041 case $host_os in | |
16042 aix3* | aix4* | aix5*) | |
16043 # On AIX/PPC, the GNU linker is very broken | |
16044 if test "$host_cpu" != ia64; then | |
16045 ld_shlibs_GCJ=no | |
16046 cat <<EOF 1>&2 | |
16047 | |
16048 *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
16049 *** to be unable to reliably create shared libraries on AIX. | |
16050 *** Therefore, libtool is disabling shared libraries support. If you | |
16051 *** really care for shared libraries, you may want to modify your PATH | |
16052 *** so that a non-GNU linker is found, and then restart. | |
16053 | |
16054 EOF | |
16055 fi | |
16056 ;; | |
16057 | |
16058 amigaos*) | |
16059 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME
$libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $out
put_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2i
xlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.d
ata~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -
32)' | |
16060 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16061 hardcode_minus_L_GCJ=yes | |
16062 | |
16063 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
16064 # that the semantics of dynamic libraries on AmigaOS, at least up | |
16065 # to version 4, is to share data among multiple programs linked | |
16066 # with the same dynamic library. Since this doesn't match the | |
16067 # behavior of shared libraries on other platforms, we can't use | |
16068 # them. | |
16069 ld_shlibs_GCJ=no | |
16070 ;; | |
16071 | |
16072 beos*) | |
16073 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16074 allow_undefined_flag_GCJ=unsupported | |
16075 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
16076 # support --undefined. This deserves some investigation. FIXME | |
16077 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-s
oname $wl$soname -o $lib' | |
16078 else | |
16079 ld_shlibs_GCJ=no | |
16080 fi | |
16081 ;; | |
16082 | |
16083 cygwin* | mingw* | pw32*) | |
16084 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, | |
16085 # as there is no search path for DLLs. | |
16086 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16087 allow_undefined_flag_GCJ=unsupported | |
16088 always_export_symbols_GCJ=no | |
16089 enable_shared_with_static_runtimes_GCJ=yes | |
16090 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe |
$SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.
* //'\'' | sort | uniq > $export_symbols' | |
16091 | |
16092 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
16093 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $outp
ut_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $
lib' | |
16094 # If the export-symbols file already is a .def file (1st line | |
16095 # is EXPORTS), use it as is; otherwise, prepend... | |
16096 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS
; then | |
16097 cp $export_symbols $output_objdir/$soname.def; | |
16098 else | |
16099 echo EXPORTS > $output_objdir/$soname.def; | |
16100 cat $export_symbols >> $output_objdir/$soname.def; | |
16101 fi~ | |
16102 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags
-o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -
Xlinker $lib' | |
16103 else | |
16104 ld_shlibs_GCJ=no | |
16105 fi | |
16106 ;; | |
16107 | |
16108 interix3*) | |
16109 hardcode_direct_GCJ=no | |
16110 hardcode_shlibpath_var_GCJ=no | |
16111 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
16112 export_dynamic_flag_spec_GCJ='${wl}-E' | |
16113 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
16114 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
16115 # default) and relocated if they conflict, which is a slow very memory | |
16116 # consuming and fragmenting process. To avoid this, we pick a random, | |
16117 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
16118 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
16119 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags
${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342
177280` -o $lib' | |
16120 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$son
ame.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$sona
me ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`e
xpr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
16121 ;; | |
16122 | |
16123 linux*) | |
16124 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16125 tmp_addflag= | |
16126 case $cc_basename,$host_cpu in | |
16127 pgcc*) # Portland Group C compiler | |
16128 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $conveni
ence\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; d
one; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
16129 tmp_addflag=' $pic_flag' | |
16130 ;; | |
16131 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
16132 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $conveni
ence\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; d
one; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
16133 tmp_addflag=' $pic_flag -Mnomain' ;; | |
16134 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
16135 tmp_addflag=' -i_dynamic' ;; | |
16136 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
16137 tmp_addflag=' -i_dynamic -nofor_main' ;; | |
16138 ifc* | ifort*) # Intel Fortran compiler | |
16139 tmp_addflag=' -nofor_main' ;; | |
16140 esac | |
16141 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compile
r_flags ${wl}-soname $wl$soname -o $lib' | |
16142 | |
16143 if test $supports_anon_versioning = yes; then | |
16144 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.v
er~ | |
16145 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
16146 $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
16147 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-so
name $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
16148 fi | |
16149 link_all_deplibs_GCJ=no | |
16150 else | |
16151 ld_shlibs_GCJ=no | |
16152 fi | |
16153 ;; | |
16154 | |
16155 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | |
16156 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
16157 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $li
b' | |
16158 wlarc= | |
16159 else | |
16160 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so
name $wl$soname -o $lib' | |
16161 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags $
{wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16162 fi | |
16163 ;; | |
16164 | |
16165 solaris*) | |
16166 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
16167 ld_shlibs_GCJ=no | |
16168 cat <<EOF 1>&2 | |
16169 | |
16170 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
16171 *** create shared libraries on Solaris systems. Therefore, libtool | |
16172 *** is disabling shared libraries support. We urge you to upgrade GNU | |
16173 *** binutils to release 2.9.1 or newer. Another option is to modify | |
16174 *** your PATH or compiler configuration so that the native linker is | |
16175 *** used, and then restart. | |
16176 | |
16177 EOF | |
16178 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16179 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so
name $wl$soname -o $lib' | |
16180 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags $
{wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16181 else | |
16182 ld_shlibs_GCJ=no | |
16183 fi | |
16184 ;; | |
16185 | |
16186 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
16187 case `$LD -v 2>&1` in | |
16188 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
16189 ld_shlibs_GCJ=no | |
16190 cat <<_LT_EOF 1>&2 | |
16191 | |
16192 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
16193 *** reliably create shared libraries on SCO systems. Therefore, libtool | |
16194 *** is disabling shared libraries support. We urge you to upgrade GNU | |
16195 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
16196 *** your PATH or compiler configuration so that the native linker is | |
16197 *** used, and then restart. | |
16198 | |
16199 _LT_EOF | |
16200 ;; | |
16201 *) | |
16202 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; th
en | |
16203 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-
rpath,$libdir`' | |
16204 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl
}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
16205 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_fla
gs ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$
export_symbols -o $lib' | |
16206 else | |
16207 ld_shlibs_GCJ=no | |
16208 fi | |
16209 ;; | |
16210 esac | |
16211 ;; | |
16212 | |
16213 sunos4*) | |
16214 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $depl
ibs $linker_flags' | |
16215 wlarc= | |
16216 hardcode_direct_GCJ=yes | |
16217 hardcode_shlibpath_var_GCJ=no | |
16218 ;; | |
16219 | |
16220 *) | |
16221 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16222 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so
name $wl$soname -o $lib' | |
16223 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags $
{wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16224 else | |
16225 ld_shlibs_GCJ=no | |
16226 fi | |
16227 ;; | |
16228 esac | |
16229 | |
16230 if test "$ld_shlibs_GCJ" = no; then | |
16231 runpath_var= | |
16232 hardcode_libdir_flag_spec_GCJ= | |
16233 export_dynamic_flag_spec_GCJ= | |
16234 whole_archive_flag_spec_GCJ= | |
16235 fi | |
16236 else | |
16237 # PORTME fill in a description of your system's linker (not GNU ld) | |
16238 case $host_os in | |
16239 aix3*) | |
16240 allow_undefined_flag_GCJ=unsupported | |
16241 always_export_symbols_GCJ=yes | |
16242 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' | |
16243 # Note: this linker hardcodes the directories in LIBPATH if there | |
16244 # are no directories specified by -L. | |
16245 hardcode_minus_L_GCJ=yes | |
16246 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
16247 # Neither direct hardcoding nor static linking is supported with a | |
16248 # broken collect2. | |
16249 hardcode_direct_GCJ=unsupported | |
16250 fi | |
16251 ;; | |
16252 | |
16253 aix4* | aix5*) | |
16254 if test "$host_cpu" = ia64; then | |
16255 # On IA64, the linker does run time linking by default, so we don't | |
16256 # have to do anything special. | |
16257 aix_use_runtimelinking=no | |
16258 exp_sym_flag='-Bexport' | |
16259 no_entry_flag="" | |
16260 else | |
16261 # If we're using GNU nm, then we don't want the "-C" option. | |
16262 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
16263 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
16264 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' | |
16265 else | |
16266 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ i
f (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) {
print \$3 } }'\'' | sort -u > $export_symbols' | |
16267 fi | |
16268 aix_use_runtimelinking=no | |
16269 | |
16270 # Test if we are trying to use run time linking or normal | |
16271 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
16272 # need to do runtime linking. | |
16273 case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
16274 for ld_flag in $LDFLAGS; do | |
16275 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
16276 aix_use_runtimelinking=yes | |
16277 break | |
16278 fi | |
16279 done | |
16280 ;; | |
16281 esac | |
16282 | |
16283 exp_sym_flag='-bexport' | |
16284 no_entry_flag='-bnoentry' | |
16285 fi | |
16286 | |
16287 # When large executables or shared objects are built, AIX ld can | |
16288 # have problems creating the table of contents. If linking a library | |
16289 # or program results in "error TOC overflow" add -mminimal-toc to | |
16290 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
16291 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
16292 | |
16293 archive_cmds_GCJ='' | |
16294 hardcode_direct_GCJ=yes | |
16295 hardcode_libdir_separator_GCJ=':' | |
16296 link_all_deplibs_GCJ=yes | |
16297 | |
16298 if test "$GCC" = yes; then | |
16299 case $host_os in aix4.[012]|aix4.[012].*) | |
16300 # We only want to do this on AIX 4.2 and lower, the check | |
16301 # below for broken collect2 doesn't work under 4.3+ | |
16302 collect2name=`${CC} -print-prog-name=collect2` | |
16303 if test -f "$collect2name" && \ | |
16304 strings "$collect2name" | grep resolve_lib_name >/dev/null | |
16305 then | |
16306 # We have reworked collect2 | |
16307 hardcode_direct_GCJ=yes | |
16308 else | |
16309 # We have old collect2 | |
16310 hardcode_direct_GCJ=unsupported | |
16311 # It fails to find uninstalled libraries when the uninstalled | |
16312 # path is not listed in the libpath. Setting hardcode_minus_L | |
16313 # to unsupported forces relinking | |
16314 hardcode_minus_L_GCJ=yes | |
16315 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16316 hardcode_libdir_separator_GCJ= | |
16317 fi | |
16318 ;; | |
16319 esac | |
16320 shared_flag='-shared' | |
16321 if test "$aix_use_runtimelinking" = yes; then | |
16322 shared_flag="$shared_flag "'${wl}-G' | |
16323 fi | |
16324 else | |
16325 # not using gcc | |
16326 if test "$host_cpu" = ia64; then | |
16327 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
16328 # chokes on -Wl,-G. The following line is correct: | |
16329 shared_flag='-G' | |
16330 else | |
16331 if test "$aix_use_runtimelinking" = yes; then | |
16332 shared_flag='${wl}-G' | |
16333 else | |
16334 shared_flag='${wl}-bM:SRE' | |
16335 fi | |
16336 fi | |
16337 fi | |
16338 | |
16339 # It seems that -bexpall does not export symbols beginning with | |
16340 # underscore (_), so it is better to generate a list of symbols to export. | |
16341 always_export_symbols_GCJ=yes | |
16342 if test "$aix_use_runtimelinking" = yes; then | |
16343 # Warning - without using the other runtime loading flags (-brtl), | |
16344 # -berok will link without error, but may produce a broken library. | |
16345 allow_undefined_flag_GCJ='-berok' | |
16346 # Determine the default libpath from the value encoded in an empty execut
able. | |
16347 cat >conftest.$ac_ext <<_ACEOF | |
16348 /* confdefs.h. */ | |
16349 _ACEOF | |
16350 cat confdefs.h >>conftest.$ac_ext | |
16351 cat >>conftest.$ac_ext <<_ACEOF | |
16352 /* end confdefs.h. */ | |
16353 | |
16354 int | |
16355 main () | |
16356 { | |
16357 | |
16358 ; | |
16359 return 0; | |
16360 } | |
16361 _ACEOF | |
16362 rm -f conftest.$ac_objext conftest$ac_exeext | |
16363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16364 (eval $ac_link) 2>conftest.er1 | |
16365 ac_status=$? | |
16366 grep -v '^ *+' conftest.er1 >conftest.err | |
16367 rm -f conftest.er1 | |
16368 cat conftest.err >&5 | |
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16370 (exit $ac_status); } && | |
16371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
16372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16373 (eval $ac_try) 2>&5 | |
16374 ac_status=$? | |
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16376 (exit $ac_status); }; } && | |
16377 { ac_try='test -s conftest$ac_exeext' | |
16378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16379 (eval $ac_try) 2>&5 | |
16380 ac_status=$? | |
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16382 (exit $ac_status); }; }; then | |
16383 | |
16384 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File S
trings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
16385 }'` | |
16386 # Check for a 64-bit object if we didn't find anything. | |
16387 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/de
v/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p;
} | |
16388 }'`; fi | |
16389 else | |
16390 echo "$as_me: failed program was:" >&5 | |
16391 sed 's/^/| /' conftest.$ac_ext >&5 | |
16392 | |
16393 fi | |
16394 rm -f conftest.err conftest.$ac_objext \ | |
16395 conftest$ac_exeext conftest.$ac_ext | |
16396 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
16397 | |
16398 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
16399 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $depl
ibs '"\${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" | |
16400 else | |
16401 if test "$host_cpu" = ia64; then | |
16402 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | |
16403 allow_undefined_flag_GCJ="-z nodefs" | |
16404 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname
$libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefin
ed_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
16405 else | |
16406 # Determine the default libpath from the value encoded in an empty exec
utable. | |
16407 cat >conftest.$ac_ext <<_ACEOF | |
16408 /* confdefs.h. */ | |
16409 _ACEOF | |
16410 cat confdefs.h >>conftest.$ac_ext | |
16411 cat >>conftest.$ac_ext <<_ACEOF | |
16412 /* end confdefs.h. */ | |
16413 | |
16414 int | |
16415 main () | |
16416 { | |
16417 | |
16418 ; | |
16419 return 0; | |
16420 } | |
16421 _ACEOF | |
16422 rm -f conftest.$ac_objext conftest$ac_exeext | |
16423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16424 (eval $ac_link) 2>conftest.er1 | |
16425 ac_status=$? | |
16426 grep -v '^ *+' conftest.er1 >conftest.err | |
16427 rm -f conftest.er1 | |
16428 cat conftest.err >&5 | |
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16430 (exit $ac_status); } && | |
16431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
16432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16433 (eval $ac_try) 2>&5 | |
16434 ac_status=$? | |
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16436 (exit $ac_status); }; } && | |
16437 { ac_try='test -s conftest$ac_exeext' | |
16438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16439 (eval $ac_try) 2>&5 | |
16440 ac_status=$? | |
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16442 (exit $ac_status); }; }; then | |
16443 | |
16444 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File S
trings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
16445 }'` | |
16446 # Check for a 64-bit object if we didn't find anything. | |
16447 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/de
v/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p;
} | |
16448 }'`; fi | |
16449 else | |
16450 echo "$as_me: failed program was:" >&5 | |
16451 sed 's/^/| /' conftest.$ac_ext >&5 | |
16452 | |
16453 fi | |
16454 rm -f conftest.err conftest.$ac_objext \ | |
16455 conftest$ac_exeext conftest.$ac_ext | |
16456 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
16457 | |
16458 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
16459 # Warning - without using the other run time loading flags, | |
16460 # -berok will link without error, but may produce a broken library. | |
16461 no_undefined_flag_GCJ=' ${wl}-bernotok' | |
16462 allow_undefined_flag_GCJ=' ${wl}-berok' | |
16463 # Exported symbols can be pulled into shared objects from archives | |
16464 whole_archive_flag_spec_GCJ='$convenience' | |
16465 archive_cmds_need_lc_GCJ=yes | |
16466 # This is similar to how AIX traditionally builds its shared libraries
. | |
16467 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname
$libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allo
w_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir
/$soname' | |
16468 fi | |
16469 fi | |
16470 ;; | |
16471 | |
16472 amigaos*) | |
16473 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME
$libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $out
put_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2i
xlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.d
ata~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -
32)' | |
16474 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16475 hardcode_minus_L_GCJ=yes | |
16476 # see comment about different semantics on the GNU ld section | |
16477 ld_shlibs_GCJ=no | |
16478 ;; | |
16479 | |
16480 bsdi[45]*) | |
16481 export_dynamic_flag_spec_GCJ=-rdynamic | |
16482 ;; | |
16483 | |
16484 cygwin* | mingw* | pw32*) | |
16485 # When not using gcc, we currently assume that we are using | |
16486 # Microsoft Visual C++. | |
16487 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
16488 # no search path for DLLs. | |
16489 hardcode_libdir_flag_spec_GCJ=' ' | |
16490 allow_undefined_flag_GCJ=unsupported | |
16491 # Tell ltmain to make .lib files, not .a files. | |
16492 libext=lib | |
16493 # Tell ltmain to make .dll files, not .so files. | |
16494 shrext_cmds=".dll" | |
16495 # FIXME: Setting linknames here is a bad hack. | |
16496 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" |
$SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
16497 # The linker will automatically build a .lib file if we build a DLL. | |
16498 old_archive_From_new_cmds_GCJ='true' | |
16499 # FIXME: Should let the user specify the lib program. | |
16500 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
16501 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' | |
16502 enable_shared_with_static_runtimes_GCJ=yes | |
16503 ;; | |
16504 | |
16505 darwin* | rhapsody*) | |
16506 case $host_os in | |
16507 rhapsody* | darwin1.[012]) | |
16508 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' | |
16509 ;; | |
16510 *) # Darwin 1.3 on | |
16511 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
16512 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}s
uppress' | |
16513 else | |
16514 case ${MACOSX_DEPLOYMENT_TARGET} in | |
16515 10.[012]) | |
16516 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${
wl}suppress' | |
16517 ;; | |
16518 10.*) | |
16519 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' | |
16520 ;; | |
16521 esac | |
16522 fi | |
16523 ;; | |
16524 esac | |
16525 archive_cmds_need_lc_GCJ=no | |
16526 hardcode_direct_GCJ=no | |
16527 hardcode_automatic_GCJ=yes | |
16528 hardcode_shlibpath_var_GCJ=unsupported | |
16529 whole_archive_flag_spec_GCJ='' | |
16530 link_all_deplibs_GCJ=yes | |
16531 if test "$GCC" = yes ; then | |
16532 output_verbose_link_cmd='echo' | |
16533 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs
$deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
16534 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $depli
bs$compiler_flags' | |
16535 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't e
xist in older darwin lds | |
16536 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\)
,_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamicl
ib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name
$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${
lib}' | |
16537 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),
_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_und
efined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_
objdir/${libname}-symbols.expsym ${lib}' | |
16538 else | |
16539 case $cc_basename in | |
16540 xlc*) | |
16541 output_verbose_link_cmd='echo' | |
16542 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs
$deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstri
ng' | |
16543 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $de
plibs$compiler_flags' | |
16544 # Don't fix this by using the ld -exported_symbols_list flag, it doesn
't exist in older darwin lds | |
16545 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..
*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmksh
robj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-insta
ll_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbo
ls.expsym ${lib}' | |
16546 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 $out
put_objdir/${libname}-symbols.expsym ${lib}' | |
16547 ;; | |
16548 *) | |
16549 ld_shlibs_GCJ=no | |
16550 ;; | |
16551 esac | |
16552 fi | |
16553 ;; | |
16554 | |
16555 dgux*) | |
16556 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag
s' | |
16557 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16558 hardcode_shlibpath_var_GCJ=no | |
16559 ;; | |
16560 | |
16561 freebsd1*) | |
16562 ld_shlibs_GCJ=no | |
16563 ;; | |
16564 | |
16565 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
16566 # support. Future versions do this automatically, but an explicit c++rt0.o | |
16567 # does not break anything, and helps significantly (at the cost of a little | |
16568 # extra space). | |
16569 freebsd2.2*) | |
16570 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags
/usr/lib/c++rt0.o' | |
16571 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
16572 hardcode_direct_GCJ=yes | |
16573 hardcode_shlibpath_var_GCJ=no | |
16574 ;; | |
16575 | |
16576 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
16577 freebsd2*) | |
16578 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16579 hardcode_direct_GCJ=yes | |
16580 hardcode_minus_L_GCJ=yes | |
16581 hardcode_shlibpath_var_GCJ=no | |
16582 ;; | |
16583 | |
16584 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
16585 freebsd* | dragonfly*) | |
16586 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
16587 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
16588 hardcode_direct_GCJ=yes | |
16589 hardcode_shlibpath_var_GCJ=no | |
16590 ;; | |
16591 | |
16592 # GNU/kFreeBSD uses gcc -shared to do shared libraries. | |
16593 kfreebsd*-gnu) | |
16594 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
16595 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
16596 hardcode_direct_GCJ=yes | |
16597 hardcode_shlibpath_var_GCJ=no | |
16598 link_all_deplibs_GCJ=no | |
16599 ;; | |
16600 | |
16601 hpux9*) | |
16602 if test "$GCC" = yes; then | |
16603 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' | |
16604 else | |
16605 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -
o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$so
name = $lib || mv $output_objdir/$soname $lib' | |
16606 fi | |
16607 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
16608 hardcode_libdir_separator_GCJ=: | |
16609 hardcode_direct_GCJ=yes | |
16610 | |
16611 # hardcode_minus_L: Not really in the search PATH, | |
16612 # but as the default location of the library. | |
16613 hardcode_minus_L_GCJ=yes | |
16614 export_dynamic_flag_spec_GCJ='${wl}-E' | |
16615 ;; | |
16616 | |
16617 hpux10*) | |
16618 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
16619 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$i
nstall_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
16620 else | |
16621 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs
$deplibs $linker_flags' | |
16622 fi | |
16623 if test "$with_gnu_ld" = no; then | |
16624 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
16625 hardcode_libdir_separator_GCJ=: | |
16626 | |
16627 hardcode_direct_GCJ=yes | |
16628 export_dynamic_flag_spec_GCJ='${wl}-E' | |
16629 | |
16630 # hardcode_minus_L: Not really in the search PATH, | |
16631 # but as the default location of the library. | |
16632 hardcode_minus_L_GCJ=yes | |
16633 fi | |
16634 ;; | |
16635 | |
16636 hpux11*) | |
16637 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
16638 case $host_cpu in | |
16639 hppa*64*) | |
16640 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $d
eplibs $compiler_flags' | |
16641 ;; | |
16642 ia64*) | |
16643 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpat
h -o $lib $libobjs $deplibs $compiler_flags' | |
16644 ;; | |
16645 *) | |
16646 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}
$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
16647 ;; | |
16648 esac | |
16649 else | |
16650 case $host_cpu in | |
16651 hppa*64*) | |
16652 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplib
s $compiler_flags' | |
16653 ;; | |
16654 ia64*) | |
16655 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o
$lib $libobjs $deplibs $compiler_flags' | |
16656 ;; | |
16657 *) | |
16658 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_li
bdir -o $lib $libobjs $deplibs $compiler_flags' | |
16659 ;; | |
16660 esac | |
16661 fi | |
16662 if test "$with_gnu_ld" = no; then | |
16663 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
16664 hardcode_libdir_separator_GCJ=: | |
16665 | |
16666 case $host_cpu in | |
16667 hppa*64*|ia64*) | |
16668 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' | |
16669 hardcode_direct_GCJ=no | |
16670 hardcode_shlibpath_var_GCJ=no | |
16671 ;; | |
16672 *) | |
16673 hardcode_direct_GCJ=yes | |
16674 export_dynamic_flag_spec_GCJ='${wl}-E' | |
16675 | |
16676 # hardcode_minus_L: Not really in the search PATH, | |
16677 # but as the default location of the library. | |
16678 hardcode_minus_L_GCJ=yes | |
16679 ;; | |
16680 esac | |
16681 fi | |
16682 ;; | |
16683 | |
16684 irix5* | irix6* | nonstopux*) | |
16685 if test "$GCC" = yes; then | |
16686 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so
name ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstrin
g` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
16687 else | |
16688 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $s
oname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${
output_objdir}/so_locations -o $lib' | |
16689 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' | |
16690 fi | |
16691 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
16692 hardcode_libdir_separator_GCJ=: | |
16693 link_all_deplibs_GCJ=yes | |
16694 ;; | |
16695 | |
16696 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | |
16697 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
16698 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flag
s' # a.out | |
16699 else | |
16700 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'
# ELF | |
16701 fi | |
16702 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
16703 hardcode_direct_GCJ=yes | |
16704 hardcode_shlibpath_var_GCJ=no | |
16705 ;; | |
16706 | |
16707 newsos6) | |
16708 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag
s' | |
16709 hardcode_direct_GCJ=yes | |
16710 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
16711 hardcode_libdir_separator_GCJ=: | |
16712 hardcode_shlibpath_var_GCJ=no | |
16713 ;; | |
16714 | |
16715 openbsd*) | |
16716 hardcode_direct_GCJ=yes | |
16717 hardcode_shlibpath_var_GCJ=no | |
16718 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$h
ost_cpu" = "openbsd2.8-powerpc"; then | |
16719 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compi
ler_flags' | |
16720 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs
$compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
16721 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
16722 export_dynamic_flag_spec_GCJ='${wl}-E' | |
16723 else | |
16724 case $host_os in | |
16725 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
16726 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_f
lags' | |
16727 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
16728 ;; | |
16729 *) | |
16730 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $co
mpiler_flags' | |
16731 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
16732 ;; | |
16733 esac | |
16734 fi | |
16735 ;; | |
16736 | |
16737 os2*) | |
16738 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16739 hardcode_minus_L_GCJ=yes | |
16740 allow_undefined_flag_GCJ=unsupported | |
16741 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$
libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ech
o DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdi
r/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $
output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compile
r_flags $output_objdir/$libname.def' | |
16742 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output
_objdir/$libname.def' | |
16743 ;; | |
16744 | |
16745 osf3*) | |
16746 if test "$GCC" = yes; then | |
16747 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
16748 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_locatio
ns -o $lib' | |
16749 else | |
16750 allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
16751 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $
linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstri
ng` -update_registry ${output_objdir}/so_locations -o $lib' | |
16752 fi | |
16753 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
16754 hardcode_libdir_separator_GCJ=: | |
16755 ;; | |
16756 | |
16757 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
16758 if test "$GCC" = yes; then | |
16759 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
16760 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $
compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && ech
o ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}
/so_locations -o $lib' | |
16761 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
16762 else | |
16763 allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
16764 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $
linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $v
erstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
16765 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~ | |
16766 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobj
s $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring
` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | |
16767 | |
16768 # Both c and cxx compiler support -rpath directly | |
16769 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | |
16770 fi | |
16771 hardcode_libdir_separator_GCJ=: | |
16772 ;; | |
16773 | |
16774 solaris*) | |
16775 no_undefined_flag_GCJ=' -z text' | |
16776 if test "$GCC" = yes; then | |
16777 wlarc='${wl}' | |
16778 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $dep
libs $compiler_flags' | |
16779 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbol
s | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
16780 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobj
s $deplibs $compiler_flags~$rm $lib.exp' | |
16781 else | |
16782 wlarc='' | |
16783 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libo
bjs $deplibs $linker_flags' | |
16784 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbol
s | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
16785 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $d
eplibs $linker_flags~$rm $lib.exp' | |
16786 fi | |
16787 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
16788 hardcode_shlibpath_var_GCJ=no | |
16789 case $host_os in | |
16790 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
16791 *) | |
16792 # The compiler driver will combine linker options so we | |
16793 # cannot just pass the convience library names through | |
16794 # without $wl, iff we do not link with $LD. | |
16795 # Luckily, gcc supports the same syntax we need for Sun Studio. | |
16796 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
16797 case $wlarc in | |
16798 '') | |
16799 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextra
ct' ;; | |
16800 *) | |
16801 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $conv
enience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\";
done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | |
16802 esac ;; | |
16803 esac | |
16804 link_all_deplibs_GCJ=yes | |
16805 ;; | |
16806 | |
16807 sunos4*) | |
16808 if test "x$host_vendor" = xsequent; then | |
16809 # Use $CC to link under sequent, because it throws in some extra .o | |
16810 # files that make .init and .fini sections work. | |
16811 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $comp
iler_flags' | |
16812 else | |
16813 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $depli
bs $linker_flags' | |
16814 fi | |
16815 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16816 hardcode_direct_GCJ=yes | |
16817 hardcode_minus_L_GCJ=yes | |
16818 hardcode_shlibpath_var_GCJ=no | |
16819 ;; | |
16820 | |
16821 sysv4) | |
16822 case $host_vendor in | |
16823 sni) | |
16824 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_
flags' | |
16825 hardcode_direct_GCJ=yes # is this really true??? | |
16826 ;; | |
16827 siemens) | |
16828 ## LD is ld it makes a PLAMLIB | |
16829 ## CC just makes a GrossModule. | |
16830 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
16831 reload_cmds_GCJ='$CC -r -o $output$reload_objs' | |
16832 hardcode_direct_GCJ=no | |
16833 ;; | |
16834 motorola) | |
16835 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_
flags' | |
16836 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say the
y lie | |
16837 ;; | |
16838 esac | |
16839 runpath_var='LD_RUN_PATH' | |
16840 hardcode_shlibpath_var_GCJ=no | |
16841 ;; | |
16842 | |
16843 sysv4.3*) | |
16844 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag
s' | |
16845 hardcode_shlibpath_var_GCJ=no | |
16846 export_dynamic_flag_spec_GCJ='-Bexport' | |
16847 ;; | |
16848 | |
16849 sysv4*MP*) | |
16850 if test -d /usr/nec; then | |
16851 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_fl
ags' | |
16852 hardcode_shlibpath_var_GCJ=no | |
16853 runpath_var=LD_RUN_PATH | |
16854 hardcode_runpath_var=yes | |
16855 ld_shlibs_GCJ=yes | |
16856 fi | |
16857 ;; | |
16858 | |
16859 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | |
16860 no_undefined_flag_GCJ='${wl}-z,text' | |
16861 archive_cmds_need_lc_GCJ=no | |
16862 hardcode_shlibpath_var_GCJ=no | |
16863 runpath_var='LD_RUN_PATH' | |
16864 | |
16865 if test "$GCC" = yes; then | |
16866 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs
$compiler_flags' | |
16867 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}
-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16868 else | |
16869 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $comp
iler_flags' | |
16870 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$s
oname -o $lib $libobjs $deplibs $compiler_flags' | |
16871 fi | |
16872 ;; | |
16873 | |
16874 sysv5* | sco3.2v5* | sco5v6*) | |
16875 # Note: We can NOT use -z defs as we might desire, because we do not | |
16876 # link with -lc, and that would cause any symbols used from libc to | |
16877 # always be unresolved, which means just about no library would | |
16878 # ever link correctly. If we're not using GNU ld we use -z text | |
16879 # though, which does catch some bad symbols but isn't as heavy-handed | |
16880 # as -z defs. | |
16881 no_undefined_flag_GCJ='${wl}-z,text' | |
16882 allow_undefined_flag_GCJ='${wl}-z,nodefs' | |
16883 archive_cmds_need_lc_GCJ=no | |
16884 hardcode_shlibpath_var_GCJ=no | |
16885 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$lib
dir`' | |
16886 hardcode_libdir_separator_GCJ=':' | |
16887 link_all_deplibs_GCJ=yes | |
16888 export_dynamic_flag_spec_GCJ='${wl}-Bexport' | |
16889 runpath_var='LD_RUN_PATH' | |
16890 | |
16891 if test "$GCC" = yes; then | |
16892 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}
$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16893 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}
-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler
_flags' | |
16894 else | |
16895 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$sona
me -o $lib $libobjs $deplibs $compiler_flags' | |
16896 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\$
{SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flag
s' | |
16897 fi | |
16898 ;; | |
16899 | |
16900 uts4*) | |
16901 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag
s' | |
16902 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16903 hardcode_shlibpath_var_GCJ=no | |
16904 ;; | |
16905 | |
16906 *) | |
16907 ld_shlibs_GCJ=no | |
16908 ;; | |
16909 esac | |
16910 fi | |
16911 | |
16912 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | |
16913 echo "${ECHO_T}$ld_shlibs_GCJ" >&6 | |
16914 test "$ld_shlibs_GCJ" = no && can_build_shared=no | |
16915 | |
16916 # | |
16917 # Do we need to explicitly link libc? | |
16918 # | |
16919 case "x$archive_cmds_need_lc_GCJ" in | |
16920 x|xyes) | |
16921 # Assume -lc should be added | |
16922 archive_cmds_need_lc_GCJ=yes | |
16923 | |
16924 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
16925 case $archive_cmds_GCJ in | |
16926 *'~'*) | |
16927 # FIXME: we may have to deal with multi-command sequences. | |
16928 ;; | |
16929 '$CC '*) | |
16930 # Test whether the compiler implicitly links with -lc since on some | |
16931 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
16932 # to ld, don't add -lc before -lgcc. | |
16933 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in"
>&5 | |
16934 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
6 | |
16935 $rm conftest* | |
16936 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16937 | |
16938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16939 (eval $ac_compile) 2>&5 | |
16940 ac_status=$? | |
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16942 (exit $ac_status); } 2>conftest.err; then | |
16943 soname=conftest | |
16944 lib=conftest | |
16945 libobjs=conftest.$ac_objext | |
16946 deplibs= | |
16947 wl=$lt_prog_compiler_wl_GCJ | |
16948 pic_flag=$lt_prog_compiler_pic_GCJ | |
16949 compiler_flags=-v | |
16950 linker_flags=-v | |
16951 verstring= | |
16952 output_objdir=. | |
16953 libname=conftest | |
16954 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | |
16955 allow_undefined_flag_GCJ= | |
16956 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -
lc \" \>/dev/null 2\>\&1\"") >&5 | |
16957 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
16958 ac_status=$? | |
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16960 (exit $ac_status); } | |
16961 then | |
16962 archive_cmds_need_lc_GCJ=no | |
16963 else | |
16964 archive_cmds_need_lc_GCJ=yes | |
16965 fi | |
16966 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | |
16967 else | |
16968 cat conftest.err 1>&5 | |
16969 fi | |
16970 $rm conftest* | |
16971 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 | |
16972 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 | |
16973 ;; | |
16974 esac | |
16975 fi | |
16976 ;; | |
16977 esac | |
16978 | |
16979 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
16980 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
16981 library_names_spec= | |
16982 libname_spec='lib$name' | |
16983 soname_spec= | |
16984 shrext_cmds=".so" | |
16985 postinstall_cmds= | |
16986 postuninstall_cmds= | |
16987 finish_cmds= | |
16988 finish_eval= | |
16989 shlibpath_var= | |
16990 shlibpath_overrides_runpath=unknown | |
16991 version_type=none | |
16992 dynamic_linker="$host_os ld.so" | |
16993 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
16994 if test "$GCC" = yes; then | |
16995 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -
e "s/^libraries://" -e "s,=/,/,g"` | |
16996 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
16997 # if the path contains ";" then we assume it to be the separator | |
16998 # otherwise default to the standard path separator (i.e. ":") - it is | |
16999 # assumed that no part of a normal pathname contains ";" but that should | |
17000 # okay in the real world where ";" in dirpaths is itself problematic. | |
17001 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /
g'` | |
17002 else | |
17003 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PA
TH_SEPARATOR/ /g"` | |
17004 fi | |
17005 else | |
17006 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
17007 fi | |
17008 need_lib_prefix=unknown | |
17009 hardcode_into_libs=no | |
17010 | |
17011 # when you set need_version to no, make sure it does not cause -set_version | |
17012 # flags to be left without arguments | |
17013 need_version=unknown | |
17014 | |
17015 case $host_os in | |
17016 aix3*) | |
17017 version_type=linux | |
17018 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
17019 shlibpath_var=LIBPATH | |
17020 | |
17021 # AIX 3 has no versioning support, so we append a major version to the name. | |
17022 soname_spec='${libname}${release}${shared_ext}$major' | |
17023 ;; | |
17024 | |
17025 aix4* | aix5*) | |
17026 version_type=linux | |
17027 need_lib_prefix=no | |
17028 need_version=no | |
17029 hardcode_into_libs=yes | |
17030 if test "$host_cpu" = ia64; then | |
17031 # AIX 5 supports IA64 | |
17032 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${rele
ase}${shared_ext}$versuffix $libname${shared_ext}' | |
17033 shlibpath_var=LD_LIBRARY_PATH | |
17034 else | |
17035 # With GCC up to 2.95.x, collect2 would create an import file | |
17036 # for dependence libraries. The import file would start with | |
17037 # the line `#! .'. This would cause the generated library to | |
17038 # depend on `.', always an invalid library. This was fixed in | |
17039 # development snapshots of GCC prior to 3.0. | |
17040 case $host_os in | |
17041 aix4 | aix4.[01] | aix4.[01].*) | |
17042 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
17043 echo ' yes ' | |
17044 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
17045 : | |
17046 else | |
17047 can_build_shared=no | |
17048 fi | |
17049 ;; | |
17050 esac | |
17051 # AIX (on Power*) has no versioning support, so currently we can not hardcod
e correct | |
17052 # soname into executable. Probably we can add versioning support to | |
17053 # collect2, so additional links can be useful in future. | |
17054 if test "$aix_use_runtimelinking" = yes; then | |
17055 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
17056 # instead of lib<name>.a to let people know that these are not | |
17057 # typical AIX shared libraries. | |
17058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}
${release}${shared_ext}$major $libname${shared_ext}' | |
17059 else | |
17060 # We preserve .a as extension for shared libraries through AIX4.2 | |
17061 # and later when we are not doing run time linking. | |
17062 library_names_spec='${libname}${release}.a $libname.a' | |
17063 soname_spec='${libname}${release}${shared_ext}$major' | |
17064 fi | |
17065 shlibpath_var=LIBPATH | |
17066 fi | |
17067 ;; | |
17068 | |
17069 amigaos*) | |
17070 library_names_spec='$libname.ixlibrary $libname.a' | |
17071 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
17072 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ech
o "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/lib
s/${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' | |
17073 ;; | |
17074 | |
17075 beos*) | |
17076 library_names_spec='${libname}${shared_ext}' | |
17077 dynamic_linker="$host_os ld.so" | |
17078 shlibpath_var=LIBRARY_PATH | |
17079 ;; | |
17080 | |
17081 bsdi[45]*) | |
17082 version_type=linux | |
17083 need_version=no | |
17084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
17085 soname_spec='${libname}${release}${shared_ext}$major' | |
17086 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
17087 shlibpath_var=LD_LIBRARY_PATH | |
17088 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /
usr/local/lib" | |
17089 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
17090 # the default ld.so.conf also contains /usr/contrib/lib and | |
17091 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
17092 # libtool to hard-code these into programs | |
17093 ;; | |
17094 | |
17095 cygwin* | mingw* | pw32*) | |
17096 version_type=windows | |
17097 shrext_cmds=".dll" | |
17098 need_version=no | |
17099 need_lib_prefix=no | |
17100 | |
17101 case $GCC,$host_os in | |
17102 yes,cygwin* | yes,mingw* | yes,pw32*) | |
17103 library_names_spec='$libname.dll.a' | |
17104 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
17105 postinstall_cmds='base_file=`basename \${file}`~ | |
17106 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''
`~ | |
17107 dldir=$destdir/`dirname \$dlpath`~ | |
17108 test -d \$dldir || mkdir -p \$dldir~ | |
17109 $install_prog $dir/$dlname \$dldir/$dlname~ | |
17110 chmod a+x \$dldir/$dlname' | |
17111 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
17112 dlpath=$dir/\$dldll~ | |
17113 $rm \$dlpath' | |
17114 shlibpath_overrides_runpath=yes | |
17115 | |
17116 case $host_os in | |
17117 cygwin*) | |
17118 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
17119 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $S
ED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
17120 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
17121 ;; | |
17122 mingw*) | |
17123 # MinGW DLLs use traditional 'lib' prefix | |
17124 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}
${shared_ext}' | |
17125 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $S
ED -e "s/^libraries://" -e "s,=/,/,g"` | |
17126 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
17127 # It is most probably a Windows format PATH printed by | |
17128 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
17129 # path with ; separators, and with drive letters. We can handle the | |
17130 # drive letters (cygwin fileutils understands them), so leave them, | |
17131 # especially as we might pass files found there to a mingw objdump, | |
17132 # which wouldn't understand a cygwinified path. Ahh. | |
17133 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/
;/ /g'` | |
17134 else | |
17135 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g"` | |
17136 fi | |
17137 ;; | |
17138 pw32*) | |
17139 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
17140 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release
} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
17141 ;; | |
17142 esac | |
17143 ;; | |
17144 | |
17145 *) | |
17146 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versu
ffix}${shared_ext} $libname.lib' | |
17147 ;; | |
17148 esac | |
17149 dynamic_linker='Win32 ld.exe' | |
17150 # FIXME: first we should search . and the directory the executable is in | |
17151 shlibpath_var=PATH | |
17152 ;; | |
17153 | |
17154 darwin* | rhapsody*) | |
17155 dynamic_linker="$host_os dyld" | |
17156 version_type=darwin | |
17157 need_lib_prefix=no | |
17158 need_version=no | |
17159 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${re
lease}${major}$shared_ext ${libname}$shared_ext' | |
17160 soname_spec='${libname}${release}${major}$shared_ext' | |
17161 shlibpath_overrides_runpath=yes | |
17162 shlibpath_var=DYLD_LIBRARY_PATH | |
17163 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
17164 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
17165 if test "$GCC" = yes; then | |
17166 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 /us
r/lib /usr/local/lib,g"` | |
17167 else | |
17168 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
17169 fi | |
17170 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
17171 ;; | |
17172 | |
17173 dgux*) | |
17174 version_type=linux | |
17175 need_lib_prefix=no | |
17176 need_version=no | |
17177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname$shared_ext' | |
17178 soname_spec='${libname}${release}${shared_ext}$major' | |
17179 shlibpath_var=LD_LIBRARY_PATH | |
17180 ;; | |
17181 | |
17182 freebsd1*) | |
17183 dynamic_linker=no | |
17184 ;; | |
17185 | |
17186 kfreebsd*-gnu) | |
17187 version_type=linux | |
17188 need_lib_prefix=no | |
17189 need_version=no | |
17190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${shared_ext}' | |
17191 soname_spec='${libname}${release}${shared_ext}$major' | |
17192 shlibpath_var=LD_LIBRARY_PATH | |
17193 shlibpath_overrides_runpath=no | |
17194 hardcode_into_libs=yes | |
17195 dynamic_linker='GNU ld.so' | |
17196 ;; | |
17197 | |
17198 freebsd* | dragonfly*) | |
17199 # DragonFly does not have aout. When/if they implement a new | |
17200 # versioning mechanism, adjust this. | |
17201 if test -x /usr/bin/objformat; then | |
17202 objformat=`/usr/bin/objformat` | |
17203 else | |
17204 case $host_os in | |
17205 freebsd[123]*) objformat=aout ;; | |
17206 *) objformat=elf ;; | |
17207 esac | |
17208 fi | |
17209 version_type=freebsd-$objformat | |
17210 case $version_type in | |
17211 freebsd-elf*) | |
17212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}
${release}${shared_ext} $libname${shared_ext}' | |
17213 need_version=no | |
17214 need_lib_prefix=no | |
17215 ;; | |
17216 freebsd-*) | |
17217 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${
shared_ext}$versuffix' | |
17218 need_version=yes | |
17219 ;; | |
17220 esac | |
17221 shlibpath_var=LD_LIBRARY_PATH | |
17222 case $host_os in | |
17223 freebsd2*) | |
17224 shlibpath_overrides_runpath=yes | |
17225 ;; | |
17226 freebsd3.[01]* | freebsdelf3.[01]*) | |
17227 shlibpath_overrides_runpath=yes | |
17228 hardcode_into_libs=yes | |
17229 ;; | |
17230 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
17231 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
17232 shlibpath_overrides_runpath=no | |
17233 hardcode_into_libs=yes | |
17234 ;; | |
17235 freebsd*) # from 4.6 on | |
17236 shlibpath_overrides_runpath=yes | |
17237 hardcode_into_libs=yes | |
17238 ;; | |
17239 esac | |
17240 ;; | |
17241 | |
17242 gnu*) | |
17243 version_type=linux | |
17244 need_lib_prefix=no | |
17245 need_version=no | |
17246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}${major} ${libname}${shared_ext}' | |
17247 soname_spec='${libname}${release}${shared_ext}$major' | |
17248 shlibpath_var=LD_LIBRARY_PATH | |
17249 hardcode_into_libs=yes | |
17250 ;; | |
17251 | |
17252 hpux9* | hpux10* | hpux11*) | |
17253 # Give a soname corresponding to the major version so that dld.sl refuses to | |
17254 # link against other versions. | |
17255 version_type=sunos | |
17256 need_lib_prefix=no | |
17257 need_version=no | |
17258 case $host_cpu in | |
17259 ia64*) | |
17260 shrext_cmds='.so' | |
17261 hardcode_into_libs=yes | |
17262 dynamic_linker="$host_os dld.so" | |
17263 shlibpath_var=LD_LIBRARY_PATH | |
17264 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
17265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major $libname${shared_ext}' | |
17266 soname_spec='${libname}${release}${shared_ext}$major' | |
17267 if test "X$HPUX_IA64_MODE" = X32; then | |
17268 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local
/lib" | |
17269 else | |
17270 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
17271 fi | |
17272 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
17273 ;; | |
17274 hppa*64*) | |
17275 shrext_cmds='.sl' | |
17276 hardcode_into_libs=yes | |
17277 dynamic_linker="$host_os dld.sl" | |
17278 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
17279 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
17280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}$
{release}${shared_ext}$major $libname${shared_ext}' | |
17281 soname_spec='${libname}${release}${shared_ext}$major' | |
17282 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
17283 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
17284 ;; | |
17285 *) | |
17286 shrext_cmds='.sl' | |
17287 dynamic_linker="$host_os dld.sl" | |
17288 shlibpath_var=SHLIB_PATH | |
17289 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
17290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major $libname${shared_ext}' | |
17291 soname_spec='${libname}${release}${shared_ext}$major' | |
17292 ;; | |
17293 esac | |
17294 # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
17295 postinstall_cmds='chmod 555 $lib' | |
17296 ;; | |
17297 | |
17298 interix3*) | |
17299 version_type=linux | |
17300 need_lib_prefix=no | |
17301 need_version=no | |
17302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${shared_ext}' | |
17303 soname_spec='${libname}${release}${shared_ext}$major' | |
17304 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
17305 shlibpath_var=LD_LIBRARY_PATH | |
17306 shlibpath_overrides_runpath=no | |
17307 hardcode_into_libs=yes | |
17308 ;; | |
17309 | |
17310 irix5* | irix6* | nonstopux*) | |
17311 case $host_os in | |
17312 nonstopux*) version_type=nonstopux ;; | |
17313 *) | |
17314 if test "$lt_cv_prog_gnu_ld" = yes; then | |
17315 version_type=linux | |
17316 else | |
17317 version_type=irix | |
17318 fi ;; | |
17319 esac | |
17320 need_lib_prefix=no | |
17321 need_version=no | |
17322 soname_spec='${libname}${release}${shared_ext}$major' | |
17323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext
}' | |
17324 case $host_os in | |
17325 irix5* | nonstopux*) | |
17326 libsuff= shlibsuff= | |
17327 ;; | |
17328 *) | |
17329 case $LD in # libtool.m4 will add one of these switches to LD | |
17330 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
17331 libsuff= shlibsuff= libmagic=32-bit;; | |
17332 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
17333 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
17334 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
17335 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
17336 *) libsuff= shlibsuff= libmagic=never-match;; | |
17337 esac | |
17338 ;; | |
17339 esac | |
17340 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
17341 shlibpath_overrides_runpath=no | |
17342 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${li
bsuff}" | |
17343 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
17344 hardcode_into_libs=yes | |
17345 ;; | |
17346 | |
17347 # No shared lib support for Linux oldld, aout, or coff. | |
17348 linux*oldld* | linux*aout* | linux*coff*) | |
17349 dynamic_linker=no | |
17350 ;; | |
17351 | |
17352 # This must be Linux ELF. | |
17353 linux*) | |
17354 version_type=linux | |
17355 need_lib_prefix=no | |
17356 need_version=no | |
17357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
17358 soname_spec='${libname}${release}${shared_ext}$major' | |
17359 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
17360 shlibpath_var=LD_LIBRARY_PATH | |
17361 shlibpath_overrides_runpath=no | |
17362 # This implies no fast_install, which is unacceptable. | |
17363 # Some rework will be needed to allow for fast_install | |
17364 # before this can be enabled. | |
17365 hardcode_into_libs=yes | |
17366 | |
17367 # Append ld.so.conf contents to the search path | |
17368 if test -f /etc/ld.so.conf; then | |
17369 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); ski
p = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*
//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
17370 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
17371 fi | |
17372 | |
17373 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
17374 # powerpc, because MkLinux only supported shared libraries with the | |
17375 # GNU dynamic linker. Since this was broken with cross compilers, | |
17376 # most powerpc-linux boxes support dynamic linking these days and | |
17377 # people can always --disable-shared, the test was removed, and we | |
17378 # assume the GNU/Linux dynamic linker is in use. | |
17379 dynamic_linker='GNU/Linux ld.so' | |
17380 ;; | |
17381 | |
17382 netbsdelf*-gnu) | |
17383 version_type=linux | |
17384 need_lib_prefix=no | |
17385 need_version=no | |
17386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${shared_ext}' | |
17387 soname_spec='${libname}${release}${shared_ext}$major' | |
17388 shlibpath_var=LD_LIBRARY_PATH | |
17389 shlibpath_overrides_runpath=no | |
17390 hardcode_into_libs=yes | |
17391 dynamic_linker='NetBSD ld.elf_so' | |
17392 ;; | |
17393 | |
17394 knetbsd*-gnu) | |
17395 version_type=linux | |
17396 need_lib_prefix=no | |
17397 need_version=no | |
17398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${shared_ext}' | |
17399 soname_spec='${libname}${release}${shared_ext}$major' | |
17400 shlibpath_var=LD_LIBRARY_PATH | |
17401 shlibpath_overrides_runpath=no | |
17402 hardcode_into_libs=yes | |
17403 dynamic_linker='GNU ld.so' | |
17404 ;; | |
17405 | |
17406 netbsd*) | |
17407 version_type=sunos | |
17408 need_lib_prefix=no | |
17409 need_version=no | |
17410 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
17411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
shared_ext}$versuffix' | |
17412 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
17413 dynamic_linker='NetBSD (a.out) ld.so' | |
17414 else | |
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 dynamic_linker='NetBSD ld.elf_so' | |
17418 fi | |
17419 shlibpath_var=LD_LIBRARY_PATH | |
17420 shlibpath_overrides_runpath=yes | |
17421 hardcode_into_libs=yes | |
17422 ;; | |
17423 | |
17424 newsos6) | |
17425 version_type=linux | |
17426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
17427 shlibpath_var=LD_LIBRARY_PATH | |
17428 shlibpath_overrides_runpath=yes | |
17429 ;; | |
17430 | |
17431 nto-qnx*) | |
17432 version_type=linux | |
17433 need_lib_prefix=no | |
17434 need_version=no | |
17435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
17436 soname_spec='${libname}${release}${shared_ext}$major' | |
17437 shlibpath_var=LD_LIBRARY_PATH | |
17438 shlibpath_overrides_runpath=yes | |
17439 ;; | |
17440 | |
17441 openbsd*) | |
17442 version_type=sunos | |
17443 sys_lib_dlsearch_path_spec="/usr/lib" | |
17444 need_lib_prefix=no | |
17445 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
17446 case $host_os in | |
17447 openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
17448 *) need_version=no ;; | |
17449 esac | |
17450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh
ared_ext}$versuffix' | |
17451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
17452 shlibpath_var=LD_LIBRARY_PATH | |
17453 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_
cpu" = "openbsd2.8-powerpc"; then | |
17454 case $host_os in | |
17455 openbsd2.[89] | openbsd2.[89].*) | |
17456 shlibpath_overrides_runpath=no | |
17457 ;; | |
17458 *) | |
17459 shlibpath_overrides_runpath=yes | |
17460 ;; | |
17461 esac | |
17462 else | |
17463 shlibpath_overrides_runpath=yes | |
17464 fi | |
17465 ;; | |
17466 | |
17467 os2*) | |
17468 libname_spec='$name' | |
17469 shrext_cmds=".dll" | |
17470 need_lib_prefix=no | |
17471 library_names_spec='$libname${shared_ext} $libname.a' | |
17472 dynamic_linker='OS/2 ld.exe' | |
17473 shlibpath_var=LIBPATH | |
17474 ;; | |
17475 | |
17476 osf3* | osf4* | osf5*) | |
17477 version_type=osf | |
17478 need_lib_prefix=no | |
17479 need_version=no | |
17480 soname_spec='${libname}${release}${shared_ext}$major' | |
17481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
17482 shlibpath_var=LD_LIBRARY_PATH | |
17483 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib
/usr/local/lib /var/shlib" | |
17484 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
17485 ;; | |
17486 | |
17487 solaris*) | |
17488 version_type=linux | |
17489 need_lib_prefix=no | |
17490 need_version=no | |
17491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
17492 soname_spec='${libname}${release}${shared_ext}$major' | |
17493 shlibpath_var=LD_LIBRARY_PATH | |
17494 shlibpath_overrides_runpath=yes | |
17495 hardcode_into_libs=yes | |
17496 # ldd complains unless libraries are executable | |
17497 postinstall_cmds='chmod +x $lib' | |
17498 ;; | |
17499 | |
17500 sunos4*) | |
17501 version_type=sunos | |
17502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh
ared_ext}$versuffix' | |
17503 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
17504 shlibpath_var=LD_LIBRARY_PATH | |
17505 shlibpath_overrides_runpath=yes | |
17506 if test "$with_gnu_ld" = yes; then | |
17507 need_lib_prefix=no | |
17508 fi | |
17509 need_version=yes | |
17510 ;; | |
17511 | |
17512 sysv4 | sysv4.3*) | |
17513 version_type=linux | |
17514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
17515 soname_spec='${libname}${release}${shared_ext}$major' | |
17516 shlibpath_var=LD_LIBRARY_PATH | |
17517 case $host_vendor in | |
17518 sni) | |
17519 shlibpath_overrides_runpath=no | |
17520 need_lib_prefix=no | |
17521 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
17522 runpath_var=LD_RUN_PATH | |
17523 ;; | |
17524 siemens) | |
17525 need_lib_prefix=no | |
17526 ;; | |
17527 motorola) | |
17528 need_lib_prefix=no | |
17529 need_version=no | |
17530 shlibpath_overrides_runpath=no | |
17531 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
17532 ;; | |
17533 esac | |
17534 ;; | |
17535 | |
17536 sysv4*MP*) | |
17537 if test -d /usr/nec ;then | |
17538 version_type=linux | |
17539 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$
major $libname${shared_ext}' | |
17540 soname_spec='$libname${shared_ext}.$major' | |
17541 shlibpath_var=LD_LIBRARY_PATH | |
17542 fi | |
17543 ;; | |
17544 | |
17545 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
17546 version_type=freebsd-elf | |
17547 need_lib_prefix=no | |
17548 need_version=no | |
17549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext} $libname${shared_ext}' | |
17550 soname_spec='${libname}${release}${shared_ext}$major' | |
17551 shlibpath_var=LD_LIBRARY_PATH | |
17552 hardcode_into_libs=yes | |
17553 if test "$with_gnu_ld" = yes; then | |
17554 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib
/lib' | |
17555 shlibpath_overrides_runpath=no | |
17556 else | |
17557 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
17558 shlibpath_overrides_runpath=yes | |
17559 case $host_os in | |
17560 sco3.2v5*) | |
17561 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
17562 ;; | |
17563 esac | |
17564 fi | |
17565 sys_lib_dlsearch_path_spec='/usr/lib' | |
17566 ;; | |
17567 | |
17568 uts4*) | |
17569 version_type=linux | |
17570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | |
17571 soname_spec='${libname}${release}${shared_ext}$major' | |
17572 shlibpath_var=LD_LIBRARY_PATH | |
17573 ;; | |
17574 | |
17575 *) | |
17576 dynamic_linker=no | |
17577 ;; | |
17578 esac | |
17579 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
17580 echo "${ECHO_T}$dynamic_linker" >&6 | |
17581 test "$dynamic_linker" = no && can_build_shared=no | |
17582 | |
17583 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
17584 if test "$GCC" = yes; then | |
17585 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPIL
ER_PATH LIBRARY_PATH" | |
17586 fi | |
17587 | |
17588 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
17589 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >
&6 | |
17590 hardcode_action_GCJ= | |
17591 if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | |
17592 test -n "$runpath_var_GCJ" || \ | |
17593 test "X$hardcode_automatic_GCJ" = "Xyes" ; then | |
17594 | |
17595 # We can hardcode non-existant directories. | |
17596 if test "$hardcode_direct_GCJ" != no && | |
17597 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
17598 # have to relink, otherwise we might link with an installed library | |
17599 # when we should be linking with a yet-to-be-installed one | |
17600 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | |
17601 test "$hardcode_minus_L_GCJ" != no; then | |
17602 # Linking always hardcodes the temporary library directory. | |
17603 hardcode_action_GCJ=relink | |
17604 else | |
17605 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
17606 hardcode_action_GCJ=immediate | |
17607 fi | |
17608 else | |
17609 # We cannot hardcode anything, or else we can only hardcode existing | |
17610 # directories. | |
17611 hardcode_action_GCJ=unsupported | |
17612 fi | |
17613 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | |
17614 echo "${ECHO_T}$hardcode_action_GCJ" >&6 | |
17615 | |
17616 if test "$hardcode_action_GCJ" = relink; then | |
17617 # Fast installation is not supported | |
17618 enable_fast_install=no | |
17619 elif test "$shlibpath_overrides_runpath" = yes || | |
17620 test "$enable_shared" = no; then | |
17621 # Fast installation is not necessary | |
17622 enable_fast_install=needless | |
17623 fi | |
17624 | |
17625 | |
17626 # The else clause should only fire when bootstrapping the | |
17627 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
17628 # with your package, and you will get complaints that there are | |
17629 # no rules to generate ltmain.sh. | |
17630 if test -f "$ltmain"; then | |
17631 # See if we are running on zsh, and set the options which allow our commands t
hrough | |
17632 # without removal of \ escapes. | |
17633 if test -n "${ZSH_VERSION+set}" ; then | |
17634 setopt NO_GLOB_SUBST | |
17635 fi | |
17636 # Now quote all the things that may contain metacharacters while being | |
17637 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
17638 # variables and quote the copies for generation of the libtool script. | |
17639 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS
NM \ | |
17640 SED SHELL STRIP \ | |
17641 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
17642 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
17643 deplibs_check_method reload_flag reload_cmds need_locks \ | |
17644 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
17645 lt_cv_sys_global_symbol_to_c_name_address \ | |
17646 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
17647 old_postinstall_cmds old_postuninstall_cmds \ | |
17648 compiler_GCJ \ | |
17649 CC_GCJ \ | |
17650 LD_GCJ \ | |
17651 lt_prog_compiler_wl_GCJ \ | |
17652 lt_prog_compiler_pic_GCJ \ | |
17653 lt_prog_compiler_static_GCJ \ | |
17654 lt_prog_compiler_no_builtin_flag_GCJ \ | |
17655 export_dynamic_flag_spec_GCJ \ | |
17656 thread_safe_flag_spec_GCJ \ | |
17657 whole_archive_flag_spec_GCJ \ | |
17658 enable_shared_with_static_runtimes_GCJ \ | |
17659 old_archive_cmds_GCJ \ | |
17660 old_archive_from_new_cmds_GCJ \ | |
17661 predep_objects_GCJ \ | |
17662 postdep_objects_GCJ \ | |
17663 predeps_GCJ \ | |
17664 postdeps_GCJ \ | |
17665 compiler_lib_search_path_GCJ \ | |
17666 archive_cmds_GCJ \ | |
17667 archive_expsym_cmds_GCJ \ | |
17668 postinstall_cmds_GCJ \ | |
17669 postuninstall_cmds_GCJ \ | |
17670 old_archive_from_expsyms_cmds_GCJ \ | |
17671 allow_undefined_flag_GCJ \ | |
17672 no_undefined_flag_GCJ \ | |
17673 export_symbols_cmds_GCJ \ | |
17674 hardcode_libdir_flag_spec_GCJ \ | |
17675 hardcode_libdir_flag_spec_ld_GCJ \ | |
17676 hardcode_libdir_separator_GCJ \ | |
17677 hardcode_automatic_GCJ \ | |
17678 module_cmds_GCJ \ | |
17679 module_expsym_cmds_GCJ \ | |
17680 lt_cv_prog_compiler_c_o_GCJ \ | |
17681 exclude_expsyms_GCJ \ | |
17682 include_expsyms_GCJ; do | |
17683 | |
17684 case $var in | |
17685 old_archive_cmds_GCJ | \ | |
17686 old_archive_from_new_cmds_GCJ | \ | |
17687 archive_cmds_GCJ | \ | |
17688 archive_expsym_cmds_GCJ | \ | |
17689 module_cmds_GCJ | \ | |
17690 module_expsym_cmds_GCJ | \ | |
17691 old_archive_from_expsyms_cmds_GCJ | \ | |
17692 export_symbols_cmds_GCJ | \ | |
17693 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
17694 postinstall_cmds | postuninstall_cmds | \ | |
17695 old_postinstall_cmds | old_postuninstall_cmds | \ | |
17696 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
17697 # Double-quote double-evaled strings. | |
17698 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\
" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
17699 ;; | |
17700 *) | |
17701 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`
\\\"" | |
17702 ;; | |
17703 esac | |
17704 done | |
17705 | |
17706 case $lt_echo in | |
17707 *'\$0 --fallback-echo"') | |
17708 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fa
llback-echo"/'` | |
17709 ;; | |
17710 esac | |
17711 | |
17712 cfgfile="$ofile" | |
17713 | |
17714 cat <<__EOF__ >> "$cfgfile" | |
17715 # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
17716 | |
17717 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
17718 | |
17719 # Shell to use when invoking shell scripts. | |
17720 SHELL=$lt_SHELL | |
17721 | |
17722 # Whether or not to build shared libraries. | |
17723 build_libtool_libs=$enable_shared | |
17724 | |
17725 # Whether or not to build static libraries. | |
17726 build_old_libs=$enable_static | |
17727 | |
17728 # Whether or not to add -lc for building shared libraries. | |
17729 build_libtool_need_lc=$archive_cmds_need_lc_GCJ | |
17730 | |
17731 # Whether or not to disallow shared libs when runtime libs are static | |
17732 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ | |
17733 | |
17734 # Whether or not to optimize for fast installation. | |
17735 fast_install=$enable_fast_install | |
17736 | |
17737 # The host system. | |
17738 host_alias=$host_alias | |
17739 host=$host | |
17740 host_os=$host_os | |
17741 | |
17742 # The build system. | |
17743 build_alias=$build_alias | |
17744 build=$build | |
17745 build_os=$build_os | |
17746 | |
17747 # An echo program that does not interpret backslashes. | |
17748 echo=$lt_echo | |
17749 | |
17750 # The archiver. | |
17751 AR=$lt_AR | |
17752 AR_FLAGS=$lt_AR_FLAGS | |
17753 | |
17754 # A C compiler. | |
17755 LTCC=$lt_LTCC | |
17756 | |
17757 # LTCC compiler flags. | |
17758 LTCFLAGS=$lt_LTCFLAGS | |
17759 | |
17760 # A language-specific compiler. | |
17761 CC=$lt_compiler_GCJ | |
17762 | |
17763 # Is the compiler the GNU C compiler? | |
17764 with_gcc=$GCC_GCJ | |
17765 | |
17766 # An ERE matcher. | |
17767 EGREP=$lt_EGREP | |
17768 | |
17769 # The linker used to build libraries. | |
17770 LD=$lt_LD_GCJ | |
17771 | |
17772 # Whether we need hard or soft links. | |
17773 LN_S=$lt_LN_S | |
17774 | |
17775 # A BSD-compatible nm program. | |
17776 NM=$lt_NM | |
17777 | |
17778 # A symbol stripping program | |
17779 STRIP=$lt_STRIP | |
17780 | |
17781 # Used to examine libraries when file_magic_cmd begins "file" | |
17782 MAGIC_CMD=$MAGIC_CMD | |
17783 | |
17784 # Used on cygwin: DLL creation program. | |
17785 DLLTOOL="$DLLTOOL" | |
17786 | |
17787 # Used on cygwin: object dumper. | |
17788 OBJDUMP="$OBJDUMP" | |
17789 | |
17790 # Used on cygwin: assembler. | |
17791 AS="$AS" | |
17792 | |
17793 # The name of the directory that contains temporary libtool files. | |
17794 objdir=$objdir | |
17795 | |
17796 # How to create reloadable object files. | |
17797 reload_flag=$lt_reload_flag | |
17798 reload_cmds=$lt_reload_cmds | |
17799 | |
17800 # How to pass a linker flag through the compiler. | |
17801 wl=$lt_lt_prog_compiler_wl_GCJ | |
17802 | |
17803 # Object file suffix (normally "o"). | |
17804 objext="$ac_objext" | |
17805 | |
17806 # Old archive suffix (normally "a"). | |
17807 libext="$libext" | |
17808 | |
17809 # Shared library suffix (normally ".so"). | |
17810 shrext_cmds='$shrext_cmds' | |
17811 | |
17812 # Executable file suffix (normally ""). | |
17813 exeext="$exeext" | |
17814 | |
17815 # Additional compiler flags for building library objects. | |
17816 pic_flag=$lt_lt_prog_compiler_pic_GCJ | |
17817 pic_mode=$pic_mode | |
17818 | |
17819 # What is the maximum length of a command? | |
17820 max_cmd_len=$lt_cv_sys_max_cmd_len | |
17821 | |
17822 # Does compiler simultaneously support -c and -o options? | |
17823 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | |
17824 | |
17825 # Must we lock files when doing compilation? | |
17826 need_locks=$lt_need_locks | |
17827 | |
17828 # Do we need the lib prefix for modules? | |
17829 need_lib_prefix=$need_lib_prefix | |
17830 | |
17831 # Do we need a version for libraries? | |
17832 need_version=$need_version | |
17833 | |
17834 # Whether dlopen is supported. | |
17835 dlopen_support=$enable_dlopen | |
17836 | |
17837 # Whether dlopen of programs is supported. | |
17838 dlopen_self=$enable_dlopen_self | |
17839 | |
17840 # Whether dlopen of statically linked programs is supported. | |
17841 dlopen_self_static=$enable_dlopen_self_static | |
17842 | |
17843 # Compiler flag to prevent dynamic linking. | |
17844 link_static_flag=$lt_lt_prog_compiler_static_GCJ | |
17845 | |
17846 # Compiler flag to turn off builtin functions. | |
17847 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | |
17848 | |
17849 # Compiler flag to allow reflexive dlopens. | |
17850 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | |
17851 | |
17852 # Compiler flag to generate shared objects directly from archives. | |
17853 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | |
17854 | |
17855 # Compiler flag to generate thread-safe objects. | |
17856 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | |
17857 | |
17858 # Library versioning type. | |
17859 version_type=$version_type | |
17860 | |
17861 # Format of library name prefix. | |
17862 libname_spec=$lt_libname_spec | |
17863 | |
17864 # List of archive names. First name is the real one, the rest are links. | |
17865 # The last name is the one that the linker finds with -lNAME. | |
17866 library_names_spec=$lt_library_names_spec | |
17867 | |
17868 # The coded name of the library, if different from the real name. | |
17869 soname_spec=$lt_soname_spec | |
17870 | |
17871 # Commands used to build and install an old-style archive. | |
17872 RANLIB=$lt_RANLIB | |
17873 old_archive_cmds=$lt_old_archive_cmds_GCJ | |
17874 old_postinstall_cmds=$lt_old_postinstall_cmds | |
17875 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
17876 | |
17877 # Create an old-style archive from a shared archive. | |
17878 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | |
17879 | |
17880 # Create a temporary old-style archive to link instead of a shared archive. | |
17881 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | |
17882 | |
17883 # Commands used to build and install a shared archive. | |
17884 archive_cmds=$lt_archive_cmds_GCJ | |
17885 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | |
17886 postinstall_cmds=$lt_postinstall_cmds | |
17887 postuninstall_cmds=$lt_postuninstall_cmds | |
17888 | |
17889 # Commands used to build a loadable module (assumed same as above if empty) | |
17890 module_cmds=$lt_module_cmds_GCJ | |
17891 module_expsym_cmds=$lt_module_expsym_cmds_GCJ | |
17892 | |
17893 # Commands to strip libraries. | |
17894 old_striplib=$lt_old_striplib | |
17895 striplib=$lt_striplib | |
17896 | |
17897 # Dependencies to place before the objects being linked to create a | |
17898 # shared library. | |
17899 predep_objects=$lt_predep_objects_GCJ | |
17900 | |
17901 # Dependencies to place after the objects being linked to create a | |
17902 # shared library. | |
17903 postdep_objects=$lt_postdep_objects_GCJ | |
17904 | |
17905 # Dependencies to place before the objects being linked to create a | |
17906 # shared library. | |
17907 predeps=$lt_predeps_GCJ | |
17908 | |
17909 # Dependencies to place after the objects being linked to create a | |
17910 # shared library. | |
17911 postdeps=$lt_postdeps_GCJ | |
17912 | |
17913 # The library search path used internally by the compiler when linking | |
17914 # a shared library. | |
17915 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | |
17916 | |
17917 # Method to check whether dependent libraries are shared objects. | |
17918 deplibs_check_method=$lt_deplibs_check_method | |
17919 | |
17920 # Command to use when deplibs_check_method == file_magic. | |
17921 file_magic_cmd=$lt_file_magic_cmd | |
17922 | |
17923 # Flag that allows shared libraries with undefined symbols to be built. | |
17924 allow_undefined_flag=$lt_allow_undefined_flag_GCJ | |
17925 | |
17926 # Flag that forces no undefined symbols. | |
17927 no_undefined_flag=$lt_no_undefined_flag_GCJ | |
17928 | |
17929 # Commands used to finish a libtool library installation in a directory. | |
17930 finish_cmds=$lt_finish_cmds | |
17931 | |
17932 # Same as above, but a single script fragment to be evaled but not shown. | |
17933 finish_eval=$lt_finish_eval | |
17934 | |
17935 # Take the output of nm and produce a listing of raw symbols and C names. | |
17936 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
17937 | |
17938 # Transform the output of nm in a proper C declaration | |
17939 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
17940 | |
17941 # Transform the output of nm in a C name address pair | |
17942 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
17943 | |
17944 # This is the shared library runtime path variable. | |
17945 runpath_var=$runpath_var | |
17946 | |
17947 # This is the shared library path variable. | |
17948 shlibpath_var=$shlibpath_var | |
17949 | |
17950 # Is shlibpath searched before the hard-coded library search path? | |
17951 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
17952 | |
17953 # How to hardcode a shared library path into an executable. | |
17954 hardcode_action=$hardcode_action_GCJ | |
17955 | |
17956 # Whether we should hardcode library paths into libraries. | |
17957 hardcode_into_libs=$hardcode_into_libs | |
17958 | |
17959 # Flag to hardcode \$libdir into a binary during linking. | |
17960 # This must work even if \$libdir does not exist. | |
17961 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | |
17962 | |
17963 # If ld is used when linking, flag to hardcode \$libdir into | |
17964 # a binary during linking. This must work even if \$libdir does | |
17965 # not exist. | |
17966 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ | |
17967 | |
17968 # Whether we need a single -rpath flag with a separated argument. | |
17969 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | |
17970 | |
17971 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into
the | |
17972 # resulting binary. | |
17973 hardcode_direct=$hardcode_direct_GCJ | |
17974 | |
17975 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
17976 # resulting binary. | |
17977 hardcode_minus_L=$hardcode_minus_L_GCJ | |
17978 | |
17979 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
17980 # the resulting binary. | |
17981 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | |
17982 | |
17983 # Set to yes if building a shared library automatically hardcodes DIR into the l
ibrary | |
17984 # and all subsequent libraries and executables linked against it. | |
17985 hardcode_automatic=$hardcode_automatic_GCJ | |
17986 | |
17987 # Variables whose values should be saved in libtool wrapper scripts and | |
17988 # restored at relink time. | |
17989 variables_saved_for_relink="$variables_saved_for_relink" | |
17990 | |
17991 # Whether libtool must link a program against all its dependency libraries. | |
17992 link_all_deplibs=$link_all_deplibs_GCJ | |
17993 | |
17994 # Compile-time system search path for libraries | |
17995 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
17996 | |
17997 # Run-time system search path for libraries | |
17998 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
17999 | |
18000 # Fix the shell variable \$srcfile for the compiler. | |
18001 fix_srcfile_path="$fix_srcfile_path_GCJ" | |
18002 | |
18003 # Set to yes if exported symbols are required. | |
18004 always_export_symbols=$always_export_symbols_GCJ | |
18005 | |
18006 # The commands to list exported symbols. | |
18007 export_symbols_cmds=$lt_export_symbols_cmds_GCJ | |
18008 | |
18009 # The commands to extract the exported symbol list from a shared archive. | |
18010 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
18011 | |
18012 # Symbols that should not be listed in the preloaded symbols. | |
18013 exclude_expsyms=$lt_exclude_expsyms_GCJ | |
18014 | |
18015 # Symbols that must always be exported. | |
18016 include_expsyms=$lt_include_expsyms_GCJ | |
18017 | |
18018 # ### END LIBTOOL TAG CONFIG: $tagname | |
18019 | |
18020 __EOF__ | |
18021 | |
18022 | |
18023 else | |
18024 # If there is no Makefile yet, we rely on a make rule to execute | |
18025 # `config.status --recheck' to rerun these tests and create the | |
18026 # libtool script then. | |
18027 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
18028 if test -f "$ltmain_in"; then | |
18029 test -f Makefile && make "$ltmain" | |
18030 fi | |
18031 fi | |
18032 | |
18033 | |
18034 ac_ext=c | |
18035 ac_cpp='$CPP $CPPFLAGS' | |
18036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' | |
18038 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18039 | |
18040 CC="$lt_save_CC" | |
18041 | |
18042 else | |
18043 tagname="" | |
18044 fi | |
18045 ;; | |
18046 | |
18047 RC) | |
18048 | |
18049 | |
18050 | |
18051 # Source file extension for RC test sources. | |
18052 ac_ext=rc | |
18053 | |
18054 # Object file extension for compiled RC test sources. | |
18055 objext=o | |
18056 objext_RC=$objext | |
18057 | |
18058 # Code to be used in simple compile tests | |
18059 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | |
18060 | |
18061 # Code to be used in simple link tests | |
18062 lt_simple_link_test_code="$lt_simple_compile_test_code" | |
18063 | |
18064 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
18065 | |
18066 # If no C compiler was specified, use CC. | |
18067 LTCC=${LTCC-"$CC"} | |
18068 | |
18069 # If no C compiler flags were specified, use CFLAGS. | |
18070 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
18071 | |
18072 # Allow CC to be a program name with arguments. | |
18073 compiler=$CC | |
18074 | |
18075 | |
18076 # save warnings/boilerplate of simple test code | |
18077 ac_outfile=conftest.$ac_objext | |
18078 printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
18079 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
18080 _lt_compiler_boilerplate=`cat conftest.err` | |
18081 $rm conftest* | |
18082 | |
18083 ac_outfile=conftest.$ac_objext | |
18084 printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
18085 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
18086 _lt_linker_boilerplate=`cat conftest.err` | |
18087 $rm conftest* | |
18088 | |
18089 | |
18090 # Allow CC to be a program name with arguments. | |
18091 lt_save_CC="$CC" | |
18092 CC=${RC-"windres"} | |
18093 compiler=$CC | |
18094 compiler_RC=$CC | |
18095 for cc_temp in $compiler""; do | |
18096 case $cc_temp in | |
18097 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
18098 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
18099 \-*) ;; | |
18100 *) break;; | |
18101 esac | |
18102 done | |
18103 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
18104 | |
18105 lt_cv_prog_compiler_c_o_RC=yes | |
18106 | |
18107 # The else clause should only fire when bootstrapping the | |
18108 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
18109 # with your package, and you will get complaints that there are | |
18110 # no rules to generate ltmain.sh. | |
18111 if test -f "$ltmain"; then | |
18112 # See if we are running on zsh, and set the options which allow our commands t
hrough | |
18113 # without removal of \ escapes. | |
18114 if test -n "${ZSH_VERSION+set}" ; then | |
18115 setopt NO_GLOB_SUBST | |
18116 fi | |
18117 # Now quote all the things that may contain metacharacters while being | |
18118 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
18119 # variables and quote the copies for generation of the libtool script. | |
18120 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS
NM \ | |
18121 SED SHELL STRIP \ | |
18122 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
18123 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
18124 deplibs_check_method reload_flag reload_cmds need_locks \ | |
18125 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
18126 lt_cv_sys_global_symbol_to_c_name_address \ | |
18127 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
18128 old_postinstall_cmds old_postuninstall_cmds \ | |
18129 compiler_RC \ | |
18130 CC_RC \ | |
18131 LD_RC \ | |
18132 lt_prog_compiler_wl_RC \ | |
18133 lt_prog_compiler_pic_RC \ | |
18134 lt_prog_compiler_static_RC \ | |
18135 lt_prog_compiler_no_builtin_flag_RC \ | |
18136 export_dynamic_flag_spec_RC \ | |
18137 thread_safe_flag_spec_RC \ | |
18138 whole_archive_flag_spec_RC \ | |
18139 enable_shared_with_static_runtimes_RC \ | |
18140 old_archive_cmds_RC \ | |
18141 old_archive_from_new_cmds_RC \ | |
18142 predep_objects_RC \ | |
18143 postdep_objects_RC \ | |
18144 predeps_RC \ | |
18145 postdeps_RC \ | |
18146 compiler_lib_search_path_RC \ | |
18147 archive_cmds_RC \ | |
18148 archive_expsym_cmds_RC \ | |
18149 postinstall_cmds_RC \ | |
18150 postuninstall_cmds_RC \ | |
18151 old_archive_from_expsyms_cmds_RC \ | |
18152 allow_undefined_flag_RC \ | |
18153 no_undefined_flag_RC \ | |
18154 export_symbols_cmds_RC \ | |
18155 hardcode_libdir_flag_spec_RC \ | |
18156 hardcode_libdir_flag_spec_ld_RC \ | |
18157 hardcode_libdir_separator_RC \ | |
18158 hardcode_automatic_RC \ | |
18159 module_cmds_RC \ | |
18160 module_expsym_cmds_RC \ | |
18161 lt_cv_prog_compiler_c_o_RC \ | |
18162 exclude_expsyms_RC \ | |
18163 include_expsyms_RC; do | |
18164 | |
18165 case $var in | |
18166 old_archive_cmds_RC | \ | |
18167 old_archive_from_new_cmds_RC | \ | |
18168 archive_cmds_RC | \ | |
18169 archive_expsym_cmds_RC | \ | |
18170 module_cmds_RC | \ | |
18171 module_expsym_cmds_RC | \ | |
18172 old_archive_from_expsyms_cmds_RC | \ | |
18173 export_symbols_cmds_RC | \ | |
18174 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
18175 postinstall_cmds | postuninstall_cmds | \ | |
18176 old_postinstall_cmds | old_postuninstall_cmds | \ | |
18177 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
18178 # Double-quote double-evaled strings. | |
18179 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\
" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
18180 ;; | |
18181 *) | |
18182 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`
\\\"" | |
18183 ;; | |
18184 esac | |
18185 done | |
18186 | |
18187 case $lt_echo in | |
18188 *'\$0 --fallback-echo"') | |
18189 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fa
llback-echo"/'` | |
18190 ;; | |
18191 esac | |
18192 | |
18193 cfgfile="$ofile" | |
18194 | |
18195 cat <<__EOF__ >> "$cfgfile" | |
18196 # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
18197 | |
18198 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18199 | |
18200 # Shell to use when invoking shell scripts. | |
18201 SHELL=$lt_SHELL | |
18202 | |
18203 # Whether or not to build shared libraries. | |
18204 build_libtool_libs=$enable_shared | |
18205 | |
18206 # Whether or not to build static libraries. | |
18207 build_old_libs=$enable_static | |
18208 | |
18209 # Whether or not to add -lc for building shared libraries. | |
18210 build_libtool_need_lc=$archive_cmds_need_lc_RC | |
18211 | |
18212 # Whether or not to disallow shared libs when runtime libs are static | |
18213 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC | |
18214 | |
18215 # Whether or not to optimize for fast installation. | |
18216 fast_install=$enable_fast_install | |
18217 | |
18218 # The host system. | |
18219 host_alias=$host_alias | |
18220 host=$host | |
18221 host_os=$host_os | |
18222 | |
18223 # The build system. | |
18224 build_alias=$build_alias | |
18225 build=$build | |
18226 build_os=$build_os | |
18227 | |
18228 # An echo program that does not interpret backslashes. | |
18229 echo=$lt_echo | |
18230 | |
18231 # The archiver. | |
18232 AR=$lt_AR | |
18233 AR_FLAGS=$lt_AR_FLAGS | |
18234 | |
18235 # A C compiler. | |
18236 LTCC=$lt_LTCC | |
18237 | |
18238 # LTCC compiler flags. | |
18239 LTCFLAGS=$lt_LTCFLAGS | |
18240 | |
18241 # A language-specific compiler. | |
18242 CC=$lt_compiler_RC | |
18243 | |
18244 # Is the compiler the GNU C compiler? | |
18245 with_gcc=$GCC_RC | |
18246 | |
18247 # An ERE matcher. | |
18248 EGREP=$lt_EGREP | |
18249 | |
18250 # The linker used to build libraries. | |
18251 LD=$lt_LD_RC | |
18252 | |
18253 # Whether we need hard or soft links. | |
18254 LN_S=$lt_LN_S | |
18255 | |
18256 # A BSD-compatible nm program. | |
18257 NM=$lt_NM | |
18258 | |
18259 # A symbol stripping program | |
18260 STRIP=$lt_STRIP | |
18261 | |
18262 # Used to examine libraries when file_magic_cmd begins "file" | |
18263 MAGIC_CMD=$MAGIC_CMD | |
18264 | |
18265 # Used on cygwin: DLL creation program. | |
18266 DLLTOOL="$DLLTOOL" | |
18267 | |
18268 # Used on cygwin: object dumper. | |
18269 OBJDUMP="$OBJDUMP" | |
18270 | |
18271 # Used on cygwin: assembler. | |
18272 AS="$AS" | |
18273 | |
18274 # The name of the directory that contains temporary libtool files. | |
18275 objdir=$objdir | |
18276 | |
18277 # How to create reloadable object files. | |
18278 reload_flag=$lt_reload_flag | |
18279 reload_cmds=$lt_reload_cmds | |
18280 | |
18281 # How to pass a linker flag through the compiler. | |
18282 wl=$lt_lt_prog_compiler_wl_RC | |
18283 | |
18284 # Object file suffix (normally "o"). | |
18285 objext="$ac_objext" | |
18286 | |
18287 # Old archive suffix (normally "a"). | |
18288 libext="$libext" | |
18289 | |
18290 # Shared library suffix (normally ".so"). | |
18291 shrext_cmds='$shrext_cmds' | |
18292 | |
18293 # Executable file suffix (normally ""). | |
18294 exeext="$exeext" | |
18295 | |
18296 # Additional compiler flags for building library objects. | |
18297 pic_flag=$lt_lt_prog_compiler_pic_RC | |
18298 pic_mode=$pic_mode | |
18299 | |
18300 # What is the maximum length of a command? | |
18301 max_cmd_len=$lt_cv_sys_max_cmd_len | |
18302 | |
18303 # Does compiler simultaneously support -c and -o options? | |
18304 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | |
18305 | |
18306 # Must we lock files when doing compilation? | |
18307 need_locks=$lt_need_locks | |
18308 | |
18309 # Do we need the lib prefix for modules? | |
18310 need_lib_prefix=$need_lib_prefix | |
18311 | |
18312 # Do we need a version for libraries? | |
18313 need_version=$need_version | |
18314 | |
18315 # Whether dlopen is supported. | |
18316 dlopen_support=$enable_dlopen | |
18317 | |
18318 # Whether dlopen of programs is supported. | |
18319 dlopen_self=$enable_dlopen_self | |
18320 | |
18321 # Whether dlopen of statically linked programs is supported. | |
18322 dlopen_self_static=$enable_dlopen_self_static | |
18323 | |
18324 # Compiler flag to prevent dynamic linking. | |
18325 link_static_flag=$lt_lt_prog_compiler_static_RC | |
18326 | |
18327 # Compiler flag to turn off builtin functions. | |
18328 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | |
18329 | |
18330 # Compiler flag to allow reflexive dlopens. | |
18331 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | |
18332 | |
18333 # Compiler flag to generate shared objects directly from archives. | |
18334 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | |
18335 | |
18336 # Compiler flag to generate thread-safe objects. | |
18337 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | |
18338 | |
18339 # Library versioning type. | |
18340 version_type=$version_type | |
18341 | |
18342 # Format of library name prefix. | |
18343 libname_spec=$lt_libname_spec | |
18344 | |
18345 # List of archive names. First name is the real one, the rest are links. | |
18346 # The last name is the one that the linker finds with -lNAME. | |
18347 library_names_spec=$lt_library_names_spec | |
18348 | |
18349 # The coded name of the library, if different from the real name. | |
18350 soname_spec=$lt_soname_spec | |
18351 | |
18352 # Commands used to build and install an old-style archive. | |
18353 RANLIB=$lt_RANLIB | |
18354 old_archive_cmds=$lt_old_archive_cmds_RC | |
18355 old_postinstall_cmds=$lt_old_postinstall_cmds | |
18356 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
18357 | |
18358 # Create an old-style archive from a shared archive. | |
18359 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | |
18360 | |
18361 # Create a temporary old-style archive to link instead of a shared archive. | |
18362 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | |
18363 | |
18364 # Commands used to build and install a shared archive. | |
18365 archive_cmds=$lt_archive_cmds_RC | |
18366 archive_expsym_cmds=$lt_archive_expsym_cmds_RC | |
18367 postinstall_cmds=$lt_postinstall_cmds | |
18368 postuninstall_cmds=$lt_postuninstall_cmds | |
18369 | |
18370 # Commands used to build a loadable module (assumed same as above if empty) | |
18371 module_cmds=$lt_module_cmds_RC | |
18372 module_expsym_cmds=$lt_module_expsym_cmds_RC | |
18373 | |
18374 # Commands to strip libraries. | |
18375 old_striplib=$lt_old_striplib | |
18376 striplib=$lt_striplib | |
18377 | |
18378 # Dependencies to place before the objects being linked to create a | |
18379 # shared library. | |
18380 predep_objects=$lt_predep_objects_RC | |
18381 | |
18382 # Dependencies to place after the objects being linked to create a | |
18383 # shared library. | |
18384 postdep_objects=$lt_postdep_objects_RC | |
18385 | |
18386 # Dependencies to place before the objects being linked to create a | |
18387 # shared library. | |
18388 predeps=$lt_predeps_RC | |
18389 | |
18390 # Dependencies to place after the objects being linked to create a | |
18391 # shared library. | |
18392 postdeps=$lt_postdeps_RC | |
18393 | |
18394 # The library search path used internally by the compiler when linking | |
18395 # a shared library. | |
18396 compiler_lib_search_path=$lt_compiler_lib_search_path_RC | |
18397 | |
18398 # Method to check whether dependent libraries are shared objects. | |
18399 deplibs_check_method=$lt_deplibs_check_method | |
18400 | |
18401 # Command to use when deplibs_check_method == file_magic. | |
18402 file_magic_cmd=$lt_file_magic_cmd | |
18403 | |
18404 # Flag that allows shared libraries with undefined symbols to be built. | |
18405 allow_undefined_flag=$lt_allow_undefined_flag_RC | |
18406 | |
18407 # Flag that forces no undefined symbols. | |
18408 no_undefined_flag=$lt_no_undefined_flag_RC | |
18409 | |
18410 # Commands used to finish a libtool library installation in a directory. | |
18411 finish_cmds=$lt_finish_cmds | |
18412 | |
18413 # Same as above, but a single script fragment to be evaled but not shown. | |
18414 finish_eval=$lt_finish_eval | |
18415 | |
18416 # Take the output of nm and produce a listing of raw symbols and C names. | |
18417 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
18418 | |
18419 # Transform the output of nm in a proper C declaration | |
18420 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
18421 | |
18422 # Transform the output of nm in a C name address pair | |
18423 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
18424 | |
18425 # This is the shared library runtime path variable. | |
18426 runpath_var=$runpath_var | |
18427 | |
18428 # This is the shared library path variable. | |
18429 shlibpath_var=$shlibpath_var | |
18430 | |
18431 # Is shlibpath searched before the hard-coded library search path? | |
18432 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
18433 | |
18434 # How to hardcode a shared library path into an executable. | |
18435 hardcode_action=$hardcode_action_RC | |
18436 | |
18437 # Whether we should hardcode library paths into libraries. | |
18438 hardcode_into_libs=$hardcode_into_libs | |
18439 | |
18440 # Flag to hardcode \$libdir into a binary during linking. | |
18441 # This must work even if \$libdir does not exist. | |
18442 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | |
18443 | |
18444 # If ld is used when linking, flag to hardcode \$libdir into | |
18445 # a binary during linking. This must work even if \$libdir does | |
18446 # not exist. | |
18447 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC | |
18448 | |
18449 # Whether we need a single -rpath flag with a separated argument. | |
18450 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | |
18451 | |
18452 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into
the | |
18453 # resulting binary. | |
18454 hardcode_direct=$hardcode_direct_RC | |
18455 | |
18456 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
18457 # resulting binary. | |
18458 hardcode_minus_L=$hardcode_minus_L_RC | |
18459 | |
18460 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
18461 # the resulting binary. | |
18462 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | |
18463 | |
18464 # Set to yes if building a shared library automatically hardcodes DIR into the l
ibrary | |
18465 # and all subsequent libraries and executables linked against it. | |
18466 hardcode_automatic=$hardcode_automatic_RC | |
18467 | |
18468 # Variables whose values should be saved in libtool wrapper scripts and | |
18469 # restored at relink time. | |
18470 variables_saved_for_relink="$variables_saved_for_relink" | |
18471 | |
18472 # Whether libtool must link a program against all its dependency libraries. | |
18473 link_all_deplibs=$link_all_deplibs_RC | |
18474 | |
18475 # Compile-time system search path for libraries | |
18476 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
18477 | |
18478 # Run-time system search path for libraries | |
18479 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
18480 | |
18481 # Fix the shell variable \$srcfile for the compiler. | |
18482 fix_srcfile_path="$fix_srcfile_path_RC" | |
18483 | |
18484 # Set to yes if exported symbols are required. | |
18485 always_export_symbols=$always_export_symbols_RC | |
18486 | |
18487 # The commands to list exported symbols. | |
18488 export_symbols_cmds=$lt_export_symbols_cmds_RC | |
18489 | |
18490 # The commands to extract the exported symbol list from a shared archive. | |
18491 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
18492 | |
18493 # Symbols that should not be listed in the preloaded symbols. | |
18494 exclude_expsyms=$lt_exclude_expsyms_RC | |
18495 | |
18496 # Symbols that must always be exported. | |
18497 include_expsyms=$lt_include_expsyms_RC | |
18498 | |
18499 # ### END LIBTOOL TAG CONFIG: $tagname | |
18500 | |
18501 __EOF__ | |
18502 | |
18503 | |
18504 else | |
18505 # If there is no Makefile yet, we rely on a make rule to execute | |
18506 # `config.status --recheck' to rerun these tests and create the | |
18507 # libtool script then. | |
18508 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
18509 if test -f "$ltmain_in"; then | |
18510 test -f Makefile && make "$ltmain" | |
18511 fi | |
18512 fi | |
18513 | |
18514 | |
18515 ac_ext=c | |
18516 ac_cpp='$CPP $CPPFLAGS' | |
18517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' | |
18519 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18520 | |
18521 CC="$lt_save_CC" | |
18522 | |
18523 ;; | |
18524 | |
18525 *) | |
18526 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 | |
18527 echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | |
18528 { (exit 1); exit 1; }; } | |
18529 ;; | |
18530 esac | |
18531 | |
18532 # Append the new tag name to the list of available tags. | |
18533 if test -n "$tagname" ; then | |
18534 available_tags="$available_tags $tagname" | |
18535 fi | |
18536 fi | |
18537 done | |
18538 IFS="$lt_save_ifs" | |
18539 | |
18540 # Now substitute the updated list of available tags. | |
18541 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \
"$ofile\" > \"${ofile}T\""; then | |
18542 mv "${ofile}T" "$ofile" | |
18543 chmod +x "$ofile" | |
18544 else | |
18545 rm -f "${ofile}T" | |
18546 { { echo "$as_me:$LINENO: error: unable to update list of available tagged c
onfigurations." >&5 | |
18547 echo "$as_me: error: unable to update list of available tagged configurations."
>&2;} | |
18548 { (exit 1); exit 1; }; } | |
18549 fi | |
18550 fi | |
18551 | |
18552 | |
18553 | |
18554 # This can be used to rebuild libtool when needed | |
18555 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | |
18556 | |
18557 # Always use our own libtool. | |
18558 LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
18559 | |
18560 # Prevent multiple expansion | |
18561 | |
18562 | |
18563 | |
18564 | |
18565 | |
18566 | |
18567 | |
18568 | |
18569 | |
18570 | |
18571 | |
18572 | |
18573 | |
18574 | |
18575 | |
18576 | |
18577 | |
18578 | |
18579 | |
18580 | |
18581 | |
18582 | |
18583 # Check whether some low-level functions/files are available | |
18584 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
18585 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
18586 if test "${ac_cv_header_stdc+set}" = set; then | |
18587 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18588 else | |
18589 cat >conftest.$ac_ext <<_ACEOF | |
18590 /* confdefs.h. */ | |
18591 _ACEOF | |
18592 cat confdefs.h >>conftest.$ac_ext | |
18593 cat >>conftest.$ac_ext <<_ACEOF | |
18594 /* end confdefs.h. */ | |
18595 #include <stdlib.h> | |
18596 #include <stdarg.h> | |
18597 #include <string.h> | |
18598 #include <float.h> | |
18599 | |
18600 int | |
18601 main () | |
18602 { | |
18603 | |
18604 ; | |
18605 return 0; | |
18606 } | |
18607 _ACEOF | |
18608 rm -f conftest.$ac_objext | |
18609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18610 (eval $ac_compile) 2>conftest.er1 | |
18611 ac_status=$? | |
18612 grep -v '^ *+' conftest.er1 >conftest.err | |
18613 rm -f conftest.er1 | |
18614 cat conftest.err >&5 | |
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18616 (exit $ac_status); } && | |
18617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
18618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18619 (eval $ac_try) 2>&5 | |
18620 ac_status=$? | |
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18622 (exit $ac_status); }; } && | |
18623 { ac_try='test -s conftest.$ac_objext' | |
18624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18625 (eval $ac_try) 2>&5 | |
18626 ac_status=$? | |
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18628 (exit $ac_status); }; }; then | |
18629 ac_cv_header_stdc=yes | |
18630 else | |
18631 echo "$as_me: failed program was:" >&5 | |
18632 sed 's/^/| /' conftest.$ac_ext >&5 | |
18633 | |
18634 ac_cv_header_stdc=no | |
18635 fi | |
18636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
18637 | |
18638 if test $ac_cv_header_stdc = yes; then | |
18639 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
18640 cat >conftest.$ac_ext <<_ACEOF | |
18641 /* confdefs.h. */ | |
18642 _ACEOF | |
18643 cat confdefs.h >>conftest.$ac_ext | |
18644 cat >>conftest.$ac_ext <<_ACEOF | |
18645 /* end confdefs.h. */ | |
18646 #include <string.h> | |
18647 | |
18648 _ACEOF | |
18649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
18650 $EGREP "memchr" >/dev/null 2>&1; then | |
18651 : | |
18652 else | |
18653 ac_cv_header_stdc=no | |
18654 fi | |
18655 rm -f conftest* | |
18656 | |
18657 fi | |
18658 | |
18659 if test $ac_cv_header_stdc = yes; then | |
18660 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
18661 cat >conftest.$ac_ext <<_ACEOF | |
18662 /* confdefs.h. */ | |
18663 _ACEOF | |
18664 cat confdefs.h >>conftest.$ac_ext | |
18665 cat >>conftest.$ac_ext <<_ACEOF | |
18666 /* end confdefs.h. */ | |
18667 #include <stdlib.h> | |
18668 | |
18669 _ACEOF | |
18670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
18671 $EGREP "free" >/dev/null 2>&1; then | |
18672 : | |
18673 else | |
18674 ac_cv_header_stdc=no | |
18675 fi | |
18676 rm -f conftest* | |
18677 | |
18678 fi | |
18679 | |
18680 if test $ac_cv_header_stdc = yes; then | |
18681 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
18682 if test "$cross_compiling" = yes; then | |
18683 : | |
18684 else | |
18685 cat >conftest.$ac_ext <<_ACEOF | |
18686 /* confdefs.h. */ | |
18687 _ACEOF | |
18688 cat confdefs.h >>conftest.$ac_ext | |
18689 cat >>conftest.$ac_ext <<_ACEOF | |
18690 /* end confdefs.h. */ | |
18691 #include <ctype.h> | |
18692 #if ((' ' & 0x0FF) == 0x020) | |
18693 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
18694 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
18695 #else | |
18696 # define ISLOWER(c) \ | |
18697 (('a' <= (c) && (c) <= 'i') \ | |
18698 || ('j' <= (c) && (c) <= 'r') \ | |
18699 || ('s' <= (c) && (c) <= 'z')) | |
18700 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
18701 #endif | |
18702 | |
18703 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
18704 int | |
18705 main () | |
18706 { | |
18707 int i; | |
18708 for (i = 0; i < 256; i++) | |
18709 if (XOR (islower (i), ISLOWER (i)) | |
18710 || toupper (i) != TOUPPER (i)) | |
18711 exit(2); | |
18712 exit (0); | |
18713 } | |
18714 _ACEOF | |
18715 rm -f conftest$ac_exeext | |
18716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18717 (eval $ac_link) 2>&5 | |
18718 ac_status=$? | |
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18722 (eval $ac_try) 2>&5 | |
18723 ac_status=$? | |
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18725 (exit $ac_status); }; }; then | |
18726 : | |
18727 else | |
18728 echo "$as_me: program exited with status $ac_status" >&5 | |
18729 echo "$as_me: failed program was:" >&5 | |
18730 sed 's/^/| /' conftest.$ac_ext >&5 | |
18731 | |
18732 ( exit $ac_status ) | |
18733 ac_cv_header_stdc=no | |
18734 fi | |
18735 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftes
t.$ac_ext | |
18736 fi | |
18737 fi | |
18738 fi | |
18739 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
18740 echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
18741 if test $ac_cv_header_stdc = yes; then | |
18742 | |
18743 cat >>confdefs.h <<\_ACEOF | |
18744 #define STDC_HEADERS 1 | |
18745 _ACEOF | |
18746 | |
18747 fi | |
18748 | |
18749 | |
18750 | |
18751 for ac_header in ext/rope | |
18752 do | |
18753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
18754 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18755 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18757 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18758 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18759 fi | |
18760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18762 else | |
18763 # Is the header compilable? | |
18764 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18766 cat >conftest.$ac_ext <<_ACEOF | |
18767 /* confdefs.h. */ | |
18768 _ACEOF | |
18769 cat confdefs.h >>conftest.$ac_ext | |
18770 cat >>conftest.$ac_ext <<_ACEOF | |
18771 /* end confdefs.h. */ | |
18772 $ac_includes_default | |
18773 #include <$ac_header> | |
18774 _ACEOF | |
18775 rm -f conftest.$ac_objext | |
18776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18777 (eval $ac_compile) 2>conftest.er1 | |
18778 ac_status=$? | |
18779 grep -v '^ *+' conftest.er1 >conftest.err | |
18780 rm -f conftest.er1 | |
18781 cat conftest.err >&5 | |
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18783 (exit $ac_status); } && | |
18784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
18785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18786 (eval $ac_try) 2>&5 | |
18787 ac_status=$? | |
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18789 (exit $ac_status); }; } && | |
18790 { ac_try='test -s conftest.$ac_objext' | |
18791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18792 (eval $ac_try) 2>&5 | |
18793 ac_status=$? | |
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18795 (exit $ac_status); }; }; then | |
18796 ac_header_compiler=yes | |
18797 else | |
18798 echo "$as_me: failed program was:" >&5 | |
18799 sed 's/^/| /' conftest.$ac_ext >&5 | |
18800 | |
18801 ac_header_compiler=no | |
18802 fi | |
18803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
18804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18805 echo "${ECHO_T}$ac_header_compiler" >&6 | |
18806 | |
18807 # Is the header present? | |
18808 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18810 cat >conftest.$ac_ext <<_ACEOF | |
18811 /* confdefs.h. */ | |
18812 _ACEOF | |
18813 cat confdefs.h >>conftest.$ac_ext | |
18814 cat >>conftest.$ac_ext <<_ACEOF | |
18815 /* end confdefs.h. */ | |
18816 #include <$ac_header> | |
18817 _ACEOF | |
18818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18820 ac_status=$? | |
18821 grep -v '^ *+' conftest.er1 >conftest.err | |
18822 rm -f conftest.er1 | |
18823 cat conftest.err >&5 | |
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18825 (exit $ac_status); } >/dev/null; then | |
18826 if test -s conftest.err; then | |
18827 ac_cpp_err=$ac_c_preproc_warn_flag | |
18828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
18829 else | |
18830 ac_cpp_err= | |
18831 fi | |
18832 else | |
18833 ac_cpp_err=yes | |
18834 fi | |
18835 if test -z "$ac_cpp_err"; then | |
18836 ac_header_preproc=yes | |
18837 else | |
18838 echo "$as_me: failed program was:" >&5 | |
18839 sed 's/^/| /' conftest.$ac_ext >&5 | |
18840 | |
18841 ac_header_preproc=no | |
18842 fi | |
18843 rm -f conftest.err conftest.$ac_ext | |
18844 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18845 echo "${ECHO_T}$ac_header_preproc" >&6 | |
18846 | |
18847 # So? What about this header? | |
18848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
18849 yes:no: ) | |
18850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejec
ted by the preprocessor!" >&5 | |
18851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the pre
processor!" >&2;} | |
18852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's
result" >&5 | |
18853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18854 ac_header_preproc=yes | |
18855 ;; | |
18856 no:yes:* ) | |
18857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled"
>&5 | |
18858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
18859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequis
ite headers?" >&5 | |
18860 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?"
>&2;} | |
18861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation"
>&5 | |
18862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Canno
t Be Compiled\"" >&5 | |
18864 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\
"" >&2;} | |
18865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocesso
r's result" >&5 | |
18866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
2;} | |
18867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler wil
l take precedence" >&5 | |
18868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precede
nce" >&2;} | |
18869 ( | |
18870 cat <<\_ASBOX | |
18871 ## ------------------------------------ ## | |
18872 ## Report this to opensource@google.com ## | |
18873 ## ------------------------------------ ## | |
18874 _ASBOX | |
18875 ) | | |
18876 sed "s/^/$as_me: WARNING: /" >&2 | |
18877 ;; | |
18878 esac | |
18879 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18881 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18882 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18883 else | |
18884 eval "$as_ac_Header=\$ac_header_preproc" | |
18885 fi | |
18886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18888 | |
18889 fi | |
18890 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
18891 cat >>confdefs.h <<_ACEOF | |
18892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
18893 _ACEOF | |
18894 | |
18895 fi | |
18896 | |
18897 done | |
18898 | |
18899 | |
18900 for ac_header in getopt.h | |
18901 do | |
18902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
18903 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18904 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18906 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18907 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18908 fi | |
18909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18911 else | |
18912 # Is the header compilable? | |
18913 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18914 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18915 cat >conftest.$ac_ext <<_ACEOF | |
18916 /* confdefs.h. */ | |
18917 _ACEOF | |
18918 cat confdefs.h >>conftest.$ac_ext | |
18919 cat >>conftest.$ac_ext <<_ACEOF | |
18920 /* end confdefs.h. */ | |
18921 $ac_includes_default | |
18922 #include <$ac_header> | |
18923 _ACEOF | |
18924 rm -f conftest.$ac_objext | |
18925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18926 (eval $ac_compile) 2>conftest.er1 | |
18927 ac_status=$? | |
18928 grep -v '^ *+' conftest.er1 >conftest.err | |
18929 rm -f conftest.er1 | |
18930 cat conftest.err >&5 | |
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18932 (exit $ac_status); } && | |
18933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
18934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18935 (eval $ac_try) 2>&5 | |
18936 ac_status=$? | |
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18938 (exit $ac_status); }; } && | |
18939 { ac_try='test -s conftest.$ac_objext' | |
18940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18941 (eval $ac_try) 2>&5 | |
18942 ac_status=$? | |
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18944 (exit $ac_status); }; }; then | |
18945 ac_header_compiler=yes | |
18946 else | |
18947 echo "$as_me: failed program was:" >&5 | |
18948 sed 's/^/| /' conftest.$ac_ext >&5 | |
18949 | |
18950 ac_header_compiler=no | |
18951 fi | |
18952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
18953 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18954 echo "${ECHO_T}$ac_header_compiler" >&6 | |
18955 | |
18956 # Is the header present? | |
18957 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18958 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18959 cat >conftest.$ac_ext <<_ACEOF | |
18960 /* confdefs.h. */ | |
18961 _ACEOF | |
18962 cat confdefs.h >>conftest.$ac_ext | |
18963 cat >>conftest.$ac_ext <<_ACEOF | |
18964 /* end confdefs.h. */ | |
18965 #include <$ac_header> | |
18966 _ACEOF | |
18967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18969 ac_status=$? | |
18970 grep -v '^ *+' conftest.er1 >conftest.err | |
18971 rm -f conftest.er1 | |
18972 cat conftest.err >&5 | |
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18974 (exit $ac_status); } >/dev/null; then | |
18975 if test -s conftest.err; then | |
18976 ac_cpp_err=$ac_c_preproc_warn_flag | |
18977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
18978 else | |
18979 ac_cpp_err= | |
18980 fi | |
18981 else | |
18982 ac_cpp_err=yes | |
18983 fi | |
18984 if test -z "$ac_cpp_err"; then | |
18985 ac_header_preproc=yes | |
18986 else | |
18987 echo "$as_me: failed program was:" >&5 | |
18988 sed 's/^/| /' conftest.$ac_ext >&5 | |
18989 | |
18990 ac_header_preproc=no | |
18991 fi | |
18992 rm -f conftest.err conftest.$ac_ext | |
18993 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18994 echo "${ECHO_T}$ac_header_preproc" >&6 | |
18995 | |
18996 # So? What about this header? | |
18997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
18998 yes:no: ) | |
18999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejec
ted by the preprocessor!" >&5 | |
19000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the pre
processor!" >&2;} | |
19001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's
result" >&5 | |
19002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
19003 ac_header_preproc=yes | |
19004 ;; | |
19005 no:yes:* ) | |
19006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled"
>&5 | |
19007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
19008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequis
ite headers?" >&5 | |
19009 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?"
>&2;} | |
19010 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation"
>&5 | |
19011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
19012 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Canno
t Be Compiled\"" >&5 | |
19013 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\
"" >&2;} | |
19014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocesso
r's result" >&5 | |
19015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
2;} | |
19016 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler wil
l take precedence" >&5 | |
19017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precede
nce" >&2;} | |
19018 ( | |
19019 cat <<\_ASBOX | |
19020 ## ------------------------------------ ## | |
19021 ## Report this to opensource@google.com ## | |
19022 ## ------------------------------------ ## | |
19023 _ASBOX | |
19024 ) | | |
19025 sed "s/^/$as_me: WARNING: /" >&2 | |
19026 ;; | |
19027 esac | |
19028 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19030 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19031 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19032 else | |
19033 eval "$as_ac_Header=\$ac_header_preproc" | |
19034 fi | |
19035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19037 | |
19038 fi | |
19039 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
19040 cat >>confdefs.h <<_ACEOF | |
19041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19042 _ACEOF | |
19043 | |
19044 fi | |
19045 | |
19046 done | |
19047 | |
19048 | |
19049 for ac_header in malloc.h | |
19050 do | |
19051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19052 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19053 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19055 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19056 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19057 fi | |
19058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19060 else | |
19061 # Is the header compilable? | |
19062 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
19064 cat >conftest.$ac_ext <<_ACEOF | |
19065 /* confdefs.h. */ | |
19066 _ACEOF | |
19067 cat confdefs.h >>conftest.$ac_ext | |
19068 cat >>conftest.$ac_ext <<_ACEOF | |
19069 /* end confdefs.h. */ | |
19070 $ac_includes_default | |
19071 #include <$ac_header> | |
19072 _ACEOF | |
19073 rm -f conftest.$ac_objext | |
19074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19075 (eval $ac_compile) 2>conftest.er1 | |
19076 ac_status=$? | |
19077 grep -v '^ *+' conftest.er1 >conftest.err | |
19078 rm -f conftest.er1 | |
19079 cat conftest.err >&5 | |
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19081 (exit $ac_status); } && | |
19082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
19083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19084 (eval $ac_try) 2>&5 | |
19085 ac_status=$? | |
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19087 (exit $ac_status); }; } && | |
19088 { ac_try='test -s conftest.$ac_objext' | |
19089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19090 (eval $ac_try) 2>&5 | |
19091 ac_status=$? | |
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19093 (exit $ac_status); }; }; then | |
19094 ac_header_compiler=yes | |
19095 else | |
19096 echo "$as_me: failed program was:" >&5 | |
19097 sed 's/^/| /' conftest.$ac_ext >&5 | |
19098 | |
19099 ac_header_compiler=no | |
19100 fi | |
19101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19102 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19103 echo "${ECHO_T}$ac_header_compiler" >&6 | |
19104 | |
19105 # Is the header present? | |
19106 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
19107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
19108 cat >conftest.$ac_ext <<_ACEOF | |
19109 /* confdefs.h. */ | |
19110 _ACEOF | |
19111 cat confdefs.h >>conftest.$ac_ext | |
19112 cat >>conftest.$ac_ext <<_ACEOF | |
19113 /* end confdefs.h. */ | |
19114 #include <$ac_header> | |
19115 _ACEOF | |
19116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19118 ac_status=$? | |
19119 grep -v '^ *+' conftest.er1 >conftest.err | |
19120 rm -f conftest.er1 | |
19121 cat conftest.err >&5 | |
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19123 (exit $ac_status); } >/dev/null; then | |
19124 if test -s conftest.err; then | |
19125 ac_cpp_err=$ac_c_preproc_warn_flag | |
19126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
19127 else | |
19128 ac_cpp_err= | |
19129 fi | |
19130 else | |
19131 ac_cpp_err=yes | |
19132 fi | |
19133 if test -z "$ac_cpp_err"; then | |
19134 ac_header_preproc=yes | |
19135 else | |
19136 echo "$as_me: failed program was:" >&5 | |
19137 sed 's/^/| /' conftest.$ac_ext >&5 | |
19138 | |
19139 ac_header_preproc=no | |
19140 fi | |
19141 rm -f conftest.err conftest.$ac_ext | |
19142 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19143 echo "${ECHO_T}$ac_header_preproc" >&6 | |
19144 | |
19145 # So? What about this header? | |
19146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
19147 yes:no: ) | |
19148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejec
ted by the preprocessor!" >&5 | |
19149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the pre
processor!" >&2;} | |
19150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's
result" >&5 | |
19151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
19152 ac_header_preproc=yes | |
19153 ;; | |
19154 no:yes:* ) | |
19155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled"
>&5 | |
19156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
19157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequis
ite headers?" >&5 | |
19158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?"
>&2;} | |
19159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation"
>&5 | |
19160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
19161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Canno
t Be Compiled\"" >&5 | |
19162 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\
"" >&2;} | |
19163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocesso
r's result" >&5 | |
19164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
2;} | |
19165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler wil
l take precedence" >&5 | |
19166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precede
nce" >&2;} | |
19167 ( | |
19168 cat <<\_ASBOX | |
19169 ## ------------------------------------ ## | |
19170 ## Report this to opensource@google.com ## | |
19171 ## ------------------------------------ ## | |
19172 _ASBOX | |
19173 ) | | |
19174 sed "s/^/$as_me: WARNING: /" >&2 | |
19175 ;; | |
19176 esac | |
19177 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19179 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19180 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19181 else | |
19182 eval "$as_ac_Header=\$ac_header_preproc" | |
19183 fi | |
19184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19186 | |
19187 fi | |
19188 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
19189 cat >>confdefs.h <<_ACEOF | |
19190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19191 _ACEOF | |
19192 | |
19193 fi | |
19194 | |
19195 done | |
19196 | |
19197 | |
19198 for ac_header in sys/mman.h | |
19199 do | |
19200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19201 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19202 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19204 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19205 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19206 fi | |
19207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19209 else | |
19210 # Is the header compilable? | |
19211 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
19213 cat >conftest.$ac_ext <<_ACEOF | |
19214 /* confdefs.h. */ | |
19215 _ACEOF | |
19216 cat confdefs.h >>conftest.$ac_ext | |
19217 cat >>conftest.$ac_ext <<_ACEOF | |
19218 /* end confdefs.h. */ | |
19219 $ac_includes_default | |
19220 #include <$ac_header> | |
19221 _ACEOF | |
19222 rm -f conftest.$ac_objext | |
19223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19224 (eval $ac_compile) 2>conftest.er1 | |
19225 ac_status=$? | |
19226 grep -v '^ *+' conftest.er1 >conftest.err | |
19227 rm -f conftest.er1 | |
19228 cat conftest.err >&5 | |
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19230 (exit $ac_status); } && | |
19231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
19232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19233 (eval $ac_try) 2>&5 | |
19234 ac_status=$? | |
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19236 (exit $ac_status); }; } && | |
19237 { ac_try='test -s conftest.$ac_objext' | |
19238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19239 (eval $ac_try) 2>&5 | |
19240 ac_status=$? | |
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19242 (exit $ac_status); }; }; then | |
19243 ac_header_compiler=yes | |
19244 else | |
19245 echo "$as_me: failed program was:" >&5 | |
19246 sed 's/^/| /' conftest.$ac_ext >&5 | |
19247 | |
19248 ac_header_compiler=no | |
19249 fi | |
19250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19252 echo "${ECHO_T}$ac_header_compiler" >&6 | |
19253 | |
19254 # Is the header present? | |
19255 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
19256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
19257 cat >conftest.$ac_ext <<_ACEOF | |
19258 /* confdefs.h. */ | |
19259 _ACEOF | |
19260 cat confdefs.h >>conftest.$ac_ext | |
19261 cat >>conftest.$ac_ext <<_ACEOF | |
19262 /* end confdefs.h. */ | |
19263 #include <$ac_header> | |
19264 _ACEOF | |
19265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19267 ac_status=$? | |
19268 grep -v '^ *+' conftest.er1 >conftest.err | |
19269 rm -f conftest.er1 | |
19270 cat conftest.err >&5 | |
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19272 (exit $ac_status); } >/dev/null; then | |
19273 if test -s conftest.err; then | |
19274 ac_cpp_err=$ac_c_preproc_warn_flag | |
19275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
19276 else | |
19277 ac_cpp_err= | |
19278 fi | |
19279 else | |
19280 ac_cpp_err=yes | |
19281 fi | |
19282 if test -z "$ac_cpp_err"; then | |
19283 ac_header_preproc=yes | |
19284 else | |
19285 echo "$as_me: failed program was:" >&5 | |
19286 sed 's/^/| /' conftest.$ac_ext >&5 | |
19287 | |
19288 ac_header_preproc=no | |
19289 fi | |
19290 rm -f conftest.err conftest.$ac_ext | |
19291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19292 echo "${ECHO_T}$ac_header_preproc" >&6 | |
19293 | |
19294 # So? What about this header? | |
19295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
19296 yes:no: ) | |
19297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejec
ted by the preprocessor!" >&5 | |
19298 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the pre
processor!" >&2;} | |
19299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's
result" >&5 | |
19300 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
19301 ac_header_preproc=yes | |
19302 ;; | |
19303 no:yes:* ) | |
19304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled"
>&5 | |
19305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
19306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequis
ite headers?" >&5 | |
19307 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?"
>&2;} | |
19308 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation"
>&5 | |
19309 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
19310 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Canno
t Be Compiled\"" >&5 | |
19311 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\
"" >&2;} | |
19312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocesso
r's result" >&5 | |
19313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
2;} | |
19314 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler wil
l take precedence" >&5 | |
19315 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precede
nce" >&2;} | |
19316 ( | |
19317 cat <<\_ASBOX | |
19318 ## ------------------------------------ ## | |
19319 ## Report this to opensource@google.com ## | |
19320 ## ------------------------------------ ## | |
19321 _ASBOX | |
19322 ) | | |
19323 sed "s/^/$as_me: WARNING: /" >&2 | |
19324 ;; | |
19325 esac | |
19326 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19328 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19329 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19330 else | |
19331 eval "$as_ac_Header=\$ac_header_preproc" | |
19332 fi | |
19333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19335 | |
19336 fi | |
19337 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
19338 cat >>confdefs.h <<_ACEOF | |
19339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19340 _ACEOF | |
19341 | |
19342 fi | |
19343 | |
19344 done | |
19345 | |
19346 | |
19347 for ac_header in sys/time.h | |
19348 do | |
19349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19350 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19351 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19353 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19354 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19355 fi | |
19356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19358 else | |
19359 # Is the header compilable? | |
19360 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
19362 cat >conftest.$ac_ext <<_ACEOF | |
19363 /* confdefs.h. */ | |
19364 _ACEOF | |
19365 cat confdefs.h >>conftest.$ac_ext | |
19366 cat >>conftest.$ac_ext <<_ACEOF | |
19367 /* end confdefs.h. */ | |
19368 $ac_includes_default | |
19369 #include <$ac_header> | |
19370 _ACEOF | |
19371 rm -f conftest.$ac_objext | |
19372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19373 (eval $ac_compile) 2>conftest.er1 | |
19374 ac_status=$? | |
19375 grep -v '^ *+' conftest.er1 >conftest.err | |
19376 rm -f conftest.er1 | |
19377 cat conftest.err >&5 | |
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19379 (exit $ac_status); } && | |
19380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
19381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19382 (eval $ac_try) 2>&5 | |
19383 ac_status=$? | |
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19385 (exit $ac_status); }; } && | |
19386 { ac_try='test -s conftest.$ac_objext' | |
19387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19388 (eval $ac_try) 2>&5 | |
19389 ac_status=$? | |
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19391 (exit $ac_status); }; }; then | |
19392 ac_header_compiler=yes | |
19393 else | |
19394 echo "$as_me: failed program was:" >&5 | |
19395 sed 's/^/| /' conftest.$ac_ext >&5 | |
19396 | |
19397 ac_header_compiler=no | |
19398 fi | |
19399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19401 echo "${ECHO_T}$ac_header_compiler" >&6 | |
19402 | |
19403 # Is the header present? | |
19404 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
19405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
19406 cat >conftest.$ac_ext <<_ACEOF | |
19407 /* confdefs.h. */ | |
19408 _ACEOF | |
19409 cat confdefs.h >>conftest.$ac_ext | |
19410 cat >>conftest.$ac_ext <<_ACEOF | |
19411 /* end confdefs.h. */ | |
19412 #include <$ac_header> | |
19413 _ACEOF | |
19414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19416 ac_status=$? | |
19417 grep -v '^ *+' conftest.er1 >conftest.err | |
19418 rm -f conftest.er1 | |
19419 cat conftest.err >&5 | |
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19421 (exit $ac_status); } >/dev/null; then | |
19422 if test -s conftest.err; then | |
19423 ac_cpp_err=$ac_c_preproc_warn_flag | |
19424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
19425 else | |
19426 ac_cpp_err= | |
19427 fi | |
19428 else | |
19429 ac_cpp_err=yes | |
19430 fi | |
19431 if test -z "$ac_cpp_err"; then | |
19432 ac_header_preproc=yes | |
19433 else | |
19434 echo "$as_me: failed program was:" >&5 | |
19435 sed 's/^/| /' conftest.$ac_ext >&5 | |
19436 | |
19437 ac_header_preproc=no | |
19438 fi | |
19439 rm -f conftest.err conftest.$ac_ext | |
19440 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19441 echo "${ECHO_T}$ac_header_preproc" >&6 | |
19442 | |
19443 # So? What about this header? | |
19444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
19445 yes:no: ) | |
19446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejec
ted by the preprocessor!" >&5 | |
19447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the pre
processor!" >&2;} | |
19448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's
result" >&5 | |
19449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
19450 ac_header_preproc=yes | |
19451 ;; | |
19452 no:yes:* ) | |
19453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled"
>&5 | |
19454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
19455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequis
ite headers?" >&5 | |
19456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?"
>&2;} | |
19457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation"
>&5 | |
19458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
19459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Canno
t Be Compiled\"" >&5 | |
19460 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\
"" >&2;} | |
19461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocesso
r's result" >&5 | |
19462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
2;} | |
19463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler wil
l take precedence" >&5 | |
19464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precede
nce" >&2;} | |
19465 ( | |
19466 cat <<\_ASBOX | |
19467 ## ------------------------------------ ## | |
19468 ## Report this to opensource@google.com ## | |
19469 ## ------------------------------------ ## | |
19470 _ASBOX | |
19471 ) | | |
19472 sed "s/^/$as_me: WARNING: /" >&2 | |
19473 ;; | |
19474 esac | |
19475 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19477 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19478 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19479 else | |
19480 eval "$as_ac_Header=\$ac_header_preproc" | |
19481 fi | |
19482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19484 | |
19485 fi | |
19486 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
19487 cat >>confdefs.h <<_ACEOF | |
19488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19489 _ACEOF | |
19490 | |
19491 fi | |
19492 | |
19493 done | |
19494 | |
19495 | |
19496 for ac_header in unistd.h | |
19497 do | |
19498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19499 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19500 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19502 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19503 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19504 fi | |
19505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19507 else | |
19508 # Is the header compilable? | |
19509 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
19511 cat >conftest.$ac_ext <<_ACEOF | |
19512 /* confdefs.h. */ | |
19513 _ACEOF | |
19514 cat confdefs.h >>conftest.$ac_ext | |
19515 cat >>conftest.$ac_ext <<_ACEOF | |
19516 /* end confdefs.h. */ | |
19517 $ac_includes_default | |
19518 #include <$ac_header> | |
19519 _ACEOF | |
19520 rm -f conftest.$ac_objext | |
19521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19522 (eval $ac_compile) 2>conftest.er1 | |
19523 ac_status=$? | |
19524 grep -v '^ *+' conftest.er1 >conftest.err | |
19525 rm -f conftest.er1 | |
19526 cat conftest.err >&5 | |
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19528 (exit $ac_status); } && | |
19529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
19530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19531 (eval $ac_try) 2>&5 | |
19532 ac_status=$? | |
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19534 (exit $ac_status); }; } && | |
19535 { ac_try='test -s conftest.$ac_objext' | |
19536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19537 (eval $ac_try) 2>&5 | |
19538 ac_status=$? | |
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19540 (exit $ac_status); }; }; then | |
19541 ac_header_compiler=yes | |
19542 else | |
19543 echo "$as_me: failed program was:" >&5 | |
19544 sed 's/^/| /' conftest.$ac_ext >&5 | |
19545 | |
19546 ac_header_compiler=no | |
19547 fi | |
19548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19549 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19550 echo "${ECHO_T}$ac_header_compiler" >&6 | |
19551 | |
19552 # Is the header present? | |
19553 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
19554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
19555 cat >conftest.$ac_ext <<_ACEOF | |
19556 /* confdefs.h. */ | |
19557 _ACEOF | |
19558 cat confdefs.h >>conftest.$ac_ext | |
19559 cat >>conftest.$ac_ext <<_ACEOF | |
19560 /* end confdefs.h. */ | |
19561 #include <$ac_header> | |
19562 _ACEOF | |
19563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19565 ac_status=$? | |
19566 grep -v '^ *+' conftest.er1 >conftest.err | |
19567 rm -f conftest.er1 | |
19568 cat conftest.err >&5 | |
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19570 (exit $ac_status); } >/dev/null; then | |
19571 if test -s conftest.err; then | |
19572 ac_cpp_err=$ac_c_preproc_warn_flag | |
19573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
19574 else | |
19575 ac_cpp_err= | |
19576 fi | |
19577 else | |
19578 ac_cpp_err=yes | |
19579 fi | |
19580 if test -z "$ac_cpp_err"; then | |
19581 ac_header_preproc=yes | |
19582 else | |
19583 echo "$as_me: failed program was:" >&5 | |
19584 sed 's/^/| /' conftest.$ac_ext >&5 | |
19585 | |
19586 ac_header_preproc=no | |
19587 fi | |
19588 rm -f conftest.err conftest.$ac_ext | |
19589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19590 echo "${ECHO_T}$ac_header_preproc" >&6 | |
19591 | |
19592 # So? What about this header? | |
19593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
19594 yes:no: ) | |
19595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejec
ted by the preprocessor!" >&5 | |
19596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the pre
processor!" >&2;} | |
19597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's
result" >&5 | |
19598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
19599 ac_header_preproc=yes | |
19600 ;; | |
19601 no:yes:* ) | |
19602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled"
>&5 | |
19603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
19604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequis
ite headers?" >&5 | |
19605 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?"
>&2;} | |
19606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation"
>&5 | |
19607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
19608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Canno
t Be Compiled\"" >&5 | |
19609 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\
"" >&2;} | |
19610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocesso
r's result" >&5 | |
19611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
2;} | |
19612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler wil
l take precedence" >&5 | |
19613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precede
nce" >&2;} | |
19614 ( | |
19615 cat <<\_ASBOX | |
19616 ## ------------------------------------ ## | |
19617 ## Report this to opensource@google.com ## | |
19618 ## ------------------------------------ ## | |
19619 _ASBOX | |
19620 ) | | |
19621 sed "s/^/$as_me: WARNING: /" >&2 | |
19622 ;; | |
19623 esac | |
19624 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19626 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19627 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19628 else | |
19629 eval "$as_ac_Header=\$ac_header_preproc" | |
19630 fi | |
19631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19633 | |
19634 fi | |
19635 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
19636 cat >>confdefs.h <<_ACEOF | |
19637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19638 _ACEOF | |
19639 | |
19640 fi | |
19641 | |
19642 done | |
19643 | |
19644 | |
19645 for ac_header in windows.h | |
19646 do | |
19647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19648 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19649 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19651 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19652 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19653 fi | |
19654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19656 else | |
19657 # Is the header compilable? | |
19658 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
19660 cat >conftest.$ac_ext <<_ACEOF | |
19661 /* confdefs.h. */ | |
19662 _ACEOF | |
19663 cat confdefs.h >>conftest.$ac_ext | |
19664 cat >>conftest.$ac_ext <<_ACEOF | |
19665 /* end confdefs.h. */ | |
19666 $ac_includes_default | |
19667 #include <$ac_header> | |
19668 _ACEOF | |
19669 rm -f conftest.$ac_objext | |
19670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19671 (eval $ac_compile) 2>conftest.er1 | |
19672 ac_status=$? | |
19673 grep -v '^ *+' conftest.er1 >conftest.err | |
19674 rm -f conftest.er1 | |
19675 cat conftest.err >&5 | |
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19677 (exit $ac_status); } && | |
19678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
19679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19680 (eval $ac_try) 2>&5 | |
19681 ac_status=$? | |
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19683 (exit $ac_status); }; } && | |
19684 { ac_try='test -s conftest.$ac_objext' | |
19685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19686 (eval $ac_try) 2>&5 | |
19687 ac_status=$? | |
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19689 (exit $ac_status); }; }; then | |
19690 ac_header_compiler=yes | |
19691 else | |
19692 echo "$as_me: failed program was:" >&5 | |
19693 sed 's/^/| /' conftest.$ac_ext >&5 | |
19694 | |
19695 ac_header_compiler=no | |
19696 fi | |
19697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19698 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19699 echo "${ECHO_T}$ac_header_compiler" >&6 | |
19700 | |
19701 # Is the header present? | |
19702 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
19703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
19704 cat >conftest.$ac_ext <<_ACEOF | |
19705 /* confdefs.h. */ | |
19706 _ACEOF | |
19707 cat confdefs.h >>conftest.$ac_ext | |
19708 cat >>conftest.$ac_ext <<_ACEOF | |
19709 /* end confdefs.h. */ | |
19710 #include <$ac_header> | |
19711 _ACEOF | |
19712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19714 ac_status=$? | |
19715 grep -v '^ *+' conftest.er1 >conftest.err | |
19716 rm -f conftest.er1 | |
19717 cat conftest.err >&5 | |
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19719 (exit $ac_status); } >/dev/null; then | |
19720 if test -s conftest.err; then | |
19721 ac_cpp_err=$ac_c_preproc_warn_flag | |
19722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
19723 else | |
19724 ac_cpp_err= | |
19725 fi | |
19726 else | |
19727 ac_cpp_err=yes | |
19728 fi | |
19729 if test -z "$ac_cpp_err"; then | |
19730 ac_header_preproc=yes | |
19731 else | |
19732 echo "$as_me: failed program was:" >&5 | |
19733 sed 's/^/| /' conftest.$ac_ext >&5 | |
19734 | |
19735 ac_header_preproc=no | |
19736 fi | |
19737 rm -f conftest.err conftest.$ac_ext | |
19738 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19739 echo "${ECHO_T}$ac_header_preproc" >&6 | |
19740 | |
19741 # So? What about this header? | |
19742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
19743 yes:no: ) | |
19744 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejec
ted by the preprocessor!" >&5 | |
19745 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the pre
processor!" >&2;} | |
19746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's
result" >&5 | |
19747 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
19748 ac_header_preproc=yes | |
19749 ;; | |
19750 no:yes:* ) | |
19751 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled"
>&5 | |
19752 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
19753 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequis
ite headers?" >&5 | |
19754 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?"
>&2;} | |
19755 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation"
>&5 | |
19756 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
19757 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Canno
t Be Compiled\"" >&5 | |
19758 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\
"" >&2;} | |
19759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocesso
r's result" >&5 | |
19760 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
2;} | |
19761 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler wil
l take precedence" >&5 | |
19762 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precede
nce" >&2;} | |
19763 ( | |
19764 cat <<\_ASBOX | |
19765 ## ------------------------------------ ## | |
19766 ## Report this to opensource@google.com ## | |
19767 ## ------------------------------------ ## | |
19768 _ASBOX | |
19769 ) | | |
19770 sed "s/^/$as_me: WARNING: /" >&2 | |
19771 ;; | |
19772 esac | |
19773 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19775 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19776 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19777 else | |
19778 eval "$as_ac_Header=\$ac_header_preproc" | |
19779 fi | |
19780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19782 | |
19783 fi | |
19784 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
19785 cat >>confdefs.h <<_ACEOF | |
19786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19787 _ACEOF | |
19788 | |
19789 fi | |
19790 | |
19791 done | |
19792 | |
19793 | |
19794 | |
19795 for ac_func in gettimeofday QueryPerformanceCounter | |
19796 do | |
19797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
19798 echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
19799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
19800 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
19801 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19802 else | |
19803 cat >conftest.$ac_ext <<_ACEOF | |
19804 /* confdefs.h. */ | |
19805 _ACEOF | |
19806 cat confdefs.h >>conftest.$ac_ext | |
19807 cat >>conftest.$ac_ext <<_ACEOF | |
19808 /* end confdefs.h. */ | |
19809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func
. | |
19810 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19811 #define $ac_func innocuous_$ac_func | |
19812 | |
19813 /* System header to define __stub macros and hopefully few prototypes, | |
19814 which can conflict with char $ac_func (); below. | |
19815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19816 <limits.h> exists even on freestanding compilers. */ | |
19817 | |
19818 #ifdef __STDC__ | |
19819 # include <limits.h> | |
19820 #else | |
19821 # include <assert.h> | |
19822 #endif | |
19823 | |
19824 #undef $ac_func | |
19825 | |
19826 /* Override any gcc2 internal prototype to avoid an error. */ | |
19827 #ifdef __cplusplus | |
19828 extern "C" | |
19829 { | |
19830 #endif | |
19831 /* We use char because int might match the return type of a gcc2 | |
19832 builtin and then its argument prototype would still apply. */ | |
19833 char $ac_func (); | |
19834 /* The GNU C library defines this for functions which it implements | |
19835 to always fail with ENOSYS. Some functions are actually named | |
19836 something starting with __ and the normal name is an alias. */ | |
19837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19838 choke me | |
19839 #else | |
19840 char (*f) () = $ac_func; | |
19841 #endif | |
19842 #ifdef __cplusplus | |
19843 } | |
19844 #endif | |
19845 | |
19846 int | |
19847 main () | |
19848 { | |
19849 return f != $ac_func; | |
19850 ; | |
19851 return 0; | |
19852 } | |
19853 _ACEOF | |
19854 rm -f conftest.$ac_objext conftest$ac_exeext | |
19855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19856 (eval $ac_link) 2>conftest.er1 | |
19857 ac_status=$? | |
19858 grep -v '^ *+' conftest.er1 >conftest.err | |
19859 rm -f conftest.er1 | |
19860 cat conftest.err >&5 | |
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19862 (exit $ac_status); } && | |
19863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
19864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19865 (eval $ac_try) 2>&5 | |
19866 ac_status=$? | |
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19868 (exit $ac_status); }; } && | |
19869 { ac_try='test -s conftest$ac_exeext' | |
19870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19871 (eval $ac_try) 2>&5 | |
19872 ac_status=$? | |
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19874 (exit $ac_status); }; }; then | |
19875 eval "$as_ac_var=yes" | |
19876 else | |
19877 echo "$as_me: failed program was:" >&5 | |
19878 sed 's/^/| /' conftest.$ac_ext >&5 | |
19879 | |
19880 eval "$as_ac_var=no" | |
19881 fi | |
19882 rm -f conftest.err conftest.$ac_objext \ | |
19883 conftest$ac_exeext conftest.$ac_ext | |
19884 fi | |
19885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
19886 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
19887 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
19888 cat >>confdefs.h <<_ACEOF | |
19889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
19890 _ACEOF | |
19891 | |
19892 fi | |
19893 done | |
19894 | |
19895 | |
19896 | |
19897 for ac_func in memalign posix_memalign | |
19898 do | |
19899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
19900 echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
19901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
19902 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
19903 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19904 else | |
19905 cat >conftest.$ac_ext <<_ACEOF | |
19906 /* confdefs.h. */ | |
19907 _ACEOF | |
19908 cat confdefs.h >>conftest.$ac_ext | |
19909 cat >>conftest.$ac_ext <<_ACEOF | |
19910 /* end confdefs.h. */ | |
19911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func
. | |
19912 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19913 #define $ac_func innocuous_$ac_func | |
19914 | |
19915 /* System header to define __stub macros and hopefully few prototypes, | |
19916 which can conflict with char $ac_func (); below. | |
19917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19918 <limits.h> exists even on freestanding compilers. */ | |
19919 | |
19920 #ifdef __STDC__ | |
19921 # include <limits.h> | |
19922 #else | |
19923 # include <assert.h> | |
19924 #endif | |
19925 | |
19926 #undef $ac_func | |
19927 | |
19928 /* Override any gcc2 internal prototype to avoid an error. */ | |
19929 #ifdef __cplusplus | |
19930 extern "C" | |
19931 { | |
19932 #endif | |
19933 /* We use char because int might match the return type of a gcc2 | |
19934 builtin and then its argument prototype would still apply. */ | |
19935 char $ac_func (); | |
19936 /* The GNU C library defines this for functions which it implements | |
19937 to always fail with ENOSYS. Some functions are actually named | |
19938 something starting with __ and the normal name is an alias. */ | |
19939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19940 choke me | |
19941 #else | |
19942 char (*f) () = $ac_func; | |
19943 #endif | |
19944 #ifdef __cplusplus | |
19945 } | |
19946 #endif | |
19947 | |
19948 int | |
19949 main () | |
19950 { | |
19951 return f != $ac_func; | |
19952 ; | |
19953 return 0; | |
19954 } | |
19955 _ACEOF | |
19956 rm -f conftest.$ac_objext conftest$ac_exeext | |
19957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19958 (eval $ac_link) 2>conftest.er1 | |
19959 ac_status=$? | |
19960 grep -v '^ *+' conftest.er1 >conftest.err | |
19961 rm -f conftest.er1 | |
19962 cat conftest.err >&5 | |
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19964 (exit $ac_status); } && | |
19965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
19966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19967 (eval $ac_try) 2>&5 | |
19968 ac_status=$? | |
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19970 (exit $ac_status); }; } && | |
19971 { ac_try='test -s conftest$ac_exeext' | |
19972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19973 (eval $ac_try) 2>&5 | |
19974 ac_status=$? | |
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19976 (exit $ac_status); }; }; then | |
19977 eval "$as_ac_var=yes" | |
19978 else | |
19979 echo "$as_me: failed program was:" >&5 | |
19980 sed 's/^/| /' conftest.$ac_ext >&5 | |
19981 | |
19982 eval "$as_ac_var=no" | |
19983 fi | |
19984 rm -f conftest.err conftest.$ac_objext \ | |
19985 conftest$ac_exeext conftest.$ac_ext | |
19986 fi | |
19987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
19988 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
19989 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
19990 cat >>confdefs.h <<_ACEOF | |
19991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
19992 _ACEOF | |
19993 | |
19994 fi | |
19995 done | |
19996 | |
19997 | |
19998 for ac_func in mprotect | |
19999 do | |
20000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
20001 echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20003 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20004 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20005 else | |
20006 cat >conftest.$ac_ext <<_ACEOF | |
20007 /* confdefs.h. */ | |
20008 _ACEOF | |
20009 cat confdefs.h >>conftest.$ac_ext | |
20010 cat >>conftest.$ac_ext <<_ACEOF | |
20011 /* end confdefs.h. */ | |
20012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func
. | |
20013 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20014 #define $ac_func innocuous_$ac_func | |
20015 | |
20016 /* System header to define __stub macros and hopefully few prototypes, | |
20017 which can conflict with char $ac_func (); below. | |
20018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20019 <limits.h> exists even on freestanding compilers. */ | |
20020 | |
20021 #ifdef __STDC__ | |
20022 # include <limits.h> | |
20023 #else | |
20024 # include <assert.h> | |
20025 #endif | |
20026 | |
20027 #undef $ac_func | |
20028 | |
20029 /* Override any gcc2 internal prototype to avoid an error. */ | |
20030 #ifdef __cplusplus | |
20031 extern "C" | |
20032 { | |
20033 #endif | |
20034 /* We use char because int might match the return type of a gcc2 | |
20035 builtin and then its argument prototype would still apply. */ | |
20036 char $ac_func (); | |
20037 /* The GNU C library defines this for functions which it implements | |
20038 to always fail with ENOSYS. Some functions are actually named | |
20039 something starting with __ and the normal name is an alias. */ | |
20040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20041 choke me | |
20042 #else | |
20043 char (*f) () = $ac_func; | |
20044 #endif | |
20045 #ifdef __cplusplus | |
20046 } | |
20047 #endif | |
20048 | |
20049 int | |
20050 main () | |
20051 { | |
20052 return f != $ac_func; | |
20053 ; | |
20054 return 0; | |
20055 } | |
20056 _ACEOF | |
20057 rm -f conftest.$ac_objext conftest$ac_exeext | |
20058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20059 (eval $ac_link) 2>conftest.er1 | |
20060 ac_status=$? | |
20061 grep -v '^ *+' conftest.er1 >conftest.err | |
20062 rm -f conftest.er1 | |
20063 cat conftest.err >&5 | |
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20065 (exit $ac_status); } && | |
20066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
20067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20068 (eval $ac_try) 2>&5 | |
20069 ac_status=$? | |
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20071 (exit $ac_status); }; } && | |
20072 { ac_try='test -s conftest$ac_exeext' | |
20073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20074 (eval $ac_try) 2>&5 | |
20075 ac_status=$? | |
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20077 (exit $ac_status); }; }; then | |
20078 eval "$as_ac_var=yes" | |
20079 else | |
20080 echo "$as_me: failed program was:" >&5 | |
20081 sed 's/^/| /' conftest.$ac_ext >&5 | |
20082 | |
20083 eval "$as_ac_var=no" | |
20084 fi | |
20085 rm -f conftest.err conftest.$ac_objext \ | |
20086 conftest$ac_exeext conftest.$ac_ext | |
20087 fi | |
20088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
20089 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20090 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20091 cat >>confdefs.h <<_ACEOF | |
20092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20093 _ACEOF | |
20094 | |
20095 fi | |
20096 done | |
20097 | |
20098 | |
20099 # Start of definitions needed by gflags package | |
20100 | |
20101 | |
20102 | |
20103 | |
20104 for ac_header in stdint.h sys/types.h inttypes.h | |
20105 do | |
20106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
20107 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20108 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20110 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20111 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20112 fi | |
20113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20115 else | |
20116 # Is the header compilable? | |
20117 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
20118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
20119 cat >conftest.$ac_ext <<_ACEOF | |
20120 /* confdefs.h. */ | |
20121 _ACEOF | |
20122 cat confdefs.h >>conftest.$ac_ext | |
20123 cat >>conftest.$ac_ext <<_ACEOF | |
20124 /* end confdefs.h. */ | |
20125 $ac_includes_default | |
20126 #include <$ac_header> | |
20127 _ACEOF | |
20128 rm -f conftest.$ac_objext | |
20129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20130 (eval $ac_compile) 2>conftest.er1 | |
20131 ac_status=$? | |
20132 grep -v '^ *+' conftest.er1 >conftest.err | |
20133 rm -f conftest.er1 | |
20134 cat conftest.err >&5 | |
20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20136 (exit $ac_status); } && | |
20137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
20138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20139 (eval $ac_try) 2>&5 | |
20140 ac_status=$? | |
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20142 (exit $ac_status); }; } && | |
20143 { ac_try='test -s conftest.$ac_objext' | |
20144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20145 (eval $ac_try) 2>&5 | |
20146 ac_status=$? | |
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20148 (exit $ac_status); }; }; then | |
20149 ac_header_compiler=yes | |
20150 else | |
20151 echo "$as_me: failed program was:" >&5 | |
20152 sed 's/^/| /' conftest.$ac_ext >&5 | |
20153 | |
20154 ac_header_compiler=no | |
20155 fi | |
20156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20157 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20158 echo "${ECHO_T}$ac_header_compiler" >&6 | |
20159 | |
20160 # Is the header present? | |
20161 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
20162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
20163 cat >conftest.$ac_ext <<_ACEOF | |
20164 /* confdefs.h. */ | |
20165 _ACEOF | |
20166 cat confdefs.h >>conftest.$ac_ext | |
20167 cat >>conftest.$ac_ext <<_ACEOF | |
20168 /* end confdefs.h. */ | |
20169 #include <$ac_header> | |
20170 _ACEOF | |
20171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20173 ac_status=$? | |
20174 grep -v '^ *+' conftest.er1 >conftest.err | |
20175 rm -f conftest.er1 | |
20176 cat conftest.err >&5 | |
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20178 (exit $ac_status); } >/dev/null; then | |
20179 if test -s conftest.err; then | |
20180 ac_cpp_err=$ac_c_preproc_warn_flag | |
20181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
20182 else | |
20183 ac_cpp_err= | |
20184 fi | |
20185 else | |
20186 ac_cpp_err=yes | |
20187 fi | |
20188 if test -z "$ac_cpp_err"; then | |
20189 ac_header_preproc=yes | |
20190 else | |
20191 echo "$as_me: failed program was:" >&5 | |
20192 sed 's/^/| /' conftest.$ac_ext >&5 | |
20193 | |
20194 ac_header_preproc=no | |
20195 fi | |
20196 rm -f conftest.err conftest.$ac_ext | |
20197 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20198 echo "${ECHO_T}$ac_header_preproc" >&6 | |
20199 | |
20200 # So? What about this header? | |
20201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
20202 yes:no: ) | |
20203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejec
ted by the preprocessor!" >&5 | |
20204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the pre
processor!" >&2;} | |
20205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's
result" >&5 | |
20206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20207 ac_header_preproc=yes | |
20208 ;; | |
20209 no:yes:* ) | |
20210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled"
>&5 | |
20211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
20212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequis
ite headers?" >&5 | |
20213 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?"
>&2;} | |
20214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation"
>&5 | |
20215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Canno
t Be Compiled\"" >&5 | |
20217 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\
"" >&2;} | |
20218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocesso
r's result" >&5 | |
20219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
2;} | |
20220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler wil
l take precedence" >&5 | |
20221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precede
nce" >&2;} | |
20222 ( | |
20223 cat <<\_ASBOX | |
20224 ## ------------------------------------ ## | |
20225 ## Report this to opensource@google.com ## | |
20226 ## ------------------------------------ ## | |
20227 _ASBOX | |
20228 ) | | |
20229 sed "s/^/$as_me: WARNING: /" >&2 | |
20230 ;; | |
20231 esac | |
20232 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20234 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20235 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20236 else | |
20237 eval "$as_ac_Header=\$ac_header_preproc" | |
20238 fi | |
20239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20241 | |
20242 fi | |
20243 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
20244 cat >>confdefs.h <<_ACEOF | |
20245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20246 _ACEOF | |
20247 | |
20248 fi | |
20249 | |
20250 done | |
20251 | |
20252 | |
20253 for ac_header in fnmatch.h | |
20254 do | |
20255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
20256 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20257 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20259 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20260 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20261 fi | |
20262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20264 else | |
20265 # Is the header compilable? | |
20266 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
20267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
20268 cat >conftest.$ac_ext <<_ACEOF | |
20269 /* confdefs.h. */ | |
20270 _ACEOF | |
20271 cat confdefs.h >>conftest.$ac_ext | |
20272 cat >>conftest.$ac_ext <<_ACEOF | |
20273 /* end confdefs.h. */ | |
20274 $ac_includes_default | |
20275 #include <$ac_header> | |
20276 _ACEOF | |
20277 rm -f conftest.$ac_objext | |
20278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20279 (eval $ac_compile) 2>conftest.er1 | |
20280 ac_status=$? | |
20281 grep -v '^ *+' conftest.er1 >conftest.err | |
20282 rm -f conftest.er1 | |
20283 cat conftest.err >&5 | |
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20285 (exit $ac_status); } && | |
20286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
20287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20288 (eval $ac_try) 2>&5 | |
20289 ac_status=$? | |
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20291 (exit $ac_status); }; } && | |
20292 { ac_try='test -s conftest.$ac_objext' | |
20293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20294 (eval $ac_try) 2>&5 | |
20295 ac_status=$? | |
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20297 (exit $ac_status); }; }; then | |
20298 ac_header_compiler=yes | |
20299 else | |
20300 echo "$as_me: failed program was:" >&5 | |
20301 sed 's/^/| /' conftest.$ac_ext >&5 | |
20302 | |
20303 ac_header_compiler=no | |
20304 fi | |
20305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20306 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20307 echo "${ECHO_T}$ac_header_compiler" >&6 | |
20308 | |
20309 # Is the header present? | |
20310 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
20311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
20312 cat >conftest.$ac_ext <<_ACEOF | |
20313 /* confdefs.h. */ | |
20314 _ACEOF | |
20315 cat confdefs.h >>conftest.$ac_ext | |
20316 cat >>conftest.$ac_ext <<_ACEOF | |
20317 /* end confdefs.h. */ | |
20318 #include <$ac_header> | |
20319 _ACEOF | |
20320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20322 ac_status=$? | |
20323 grep -v '^ *+' conftest.er1 >conftest.err | |
20324 rm -f conftest.er1 | |
20325 cat conftest.err >&5 | |
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20327 (exit $ac_status); } >/dev/null; then | |
20328 if test -s conftest.err; then | |
20329 ac_cpp_err=$ac_c_preproc_warn_flag | |
20330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
20331 else | |
20332 ac_cpp_err= | |
20333 fi | |
20334 else | |
20335 ac_cpp_err=yes | |
20336 fi | |
20337 if test -z "$ac_cpp_err"; then | |
20338 ac_header_preproc=yes | |
20339 else | |
20340 echo "$as_me: failed program was:" >&5 | |
20341 sed 's/^/| /' conftest.$ac_ext >&5 | |
20342 | |
20343 ac_header_preproc=no | |
20344 fi | |
20345 rm -f conftest.err conftest.$ac_ext | |
20346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20347 echo "${ECHO_T}$ac_header_preproc" >&6 | |
20348 | |
20349 # So? What about this header? | |
20350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
20351 yes:no: ) | |
20352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejec
ted by the preprocessor!" >&5 | |
20353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the pre
processor!" >&2;} | |
20354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's
result" >&5 | |
20355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20356 ac_header_preproc=yes | |
20357 ;; | |
20358 no:yes:* ) | |
20359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled"
>&5 | |
20360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
20361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequis
ite headers?" >&5 | |
20362 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?"
>&2;} | |
20363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation"
>&5 | |
20364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Canno
t Be Compiled\"" >&5 | |
20366 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\
"" >&2;} | |
20367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocesso
r's result" >&5 | |
20368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
2;} | |
20369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler wil
l take precedence" >&5 | |
20370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precede
nce" >&2;} | |
20371 ( | |
20372 cat <<\_ASBOX | |
20373 ## ------------------------------------ ## | |
20374 ## Report this to opensource@google.com ## | |
20375 ## ------------------------------------ ## | |
20376 _ASBOX | |
20377 ) | | |
20378 sed "s/^/$as_me: WARNING: /" >&2 | |
20379 ;; | |
20380 esac | |
20381 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20383 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20384 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20385 else | |
20386 eval "$as_ac_Header=\$ac_header_preproc" | |
20387 fi | |
20388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20390 | |
20391 fi | |
20392 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
20393 cat >>confdefs.h <<_ACEOF | |
20394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20395 _ACEOF | |
20396 | |
20397 fi | |
20398 | |
20399 done | |
20400 | |
20401 | |
20402 for ac_func in InitializeCriticalSection | |
20403 do | |
20404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
20405 echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20407 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20408 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20409 else | |
20410 cat >conftest.$ac_ext <<_ACEOF | |
20411 /* confdefs.h. */ | |
20412 _ACEOF | |
20413 cat confdefs.h >>conftest.$ac_ext | |
20414 cat >>conftest.$ac_ext <<_ACEOF | |
20415 /* end confdefs.h. */ | |
20416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func
. | |
20417 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20418 #define $ac_func innocuous_$ac_func | |
20419 | |
20420 /* System header to define __stub macros and hopefully few prototypes, | |
20421 which can conflict with char $ac_func (); below. | |
20422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20423 <limits.h> exists even on freestanding compilers. */ | |
20424 | |
20425 #ifdef __STDC__ | |
20426 # include <limits.h> | |
20427 #else | |
20428 # include <assert.h> | |
20429 #endif | |
20430 | |
20431 #undef $ac_func | |
20432 | |
20433 /* Override any gcc2 internal prototype to avoid an error. */ | |
20434 #ifdef __cplusplus | |
20435 extern "C" | |
20436 { | |
20437 #endif | |
20438 /* We use char because int might match the return type of a gcc2 | |
20439 builtin and then its argument prototype would still apply. */ | |
20440 char $ac_func (); | |
20441 /* The GNU C library defines this for functions which it implements | |
20442 to always fail with ENOSYS. Some functions are actually named | |
20443 something starting with __ and the normal name is an alias. */ | |
20444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20445 choke me | |
20446 #else | |
20447 char (*f) () = $ac_func; | |
20448 #endif | |
20449 #ifdef __cplusplus | |
20450 } | |
20451 #endif | |
20452 | |
20453 int | |
20454 main () | |
20455 { | |
20456 return f != $ac_func; | |
20457 ; | |
20458 return 0; | |
20459 } | |
20460 _ACEOF | |
20461 rm -f conftest.$ac_objext conftest$ac_exeext | |
20462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20463 (eval $ac_link) 2>conftest.er1 | |
20464 ac_status=$? | |
20465 grep -v '^ *+' conftest.er1 >conftest.err | |
20466 rm -f conftest.er1 | |
20467 cat conftest.err >&5 | |
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20469 (exit $ac_status); } && | |
20470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
20471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20472 (eval $ac_try) 2>&5 | |
20473 ac_status=$? | |
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20475 (exit $ac_status); }; } && | |
20476 { ac_try='test -s conftest$ac_exeext' | |
20477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20478 (eval $ac_try) 2>&5 | |
20479 ac_status=$? | |
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20481 (exit $ac_status); }; }; then | |
20482 eval "$as_ac_var=yes" | |
20483 else | |
20484 echo "$as_me: failed program was:" >&5 | |
20485 sed 's/^/| /' conftest.$ac_ext >&5 | |
20486 | |
20487 eval "$as_ac_var=no" | |
20488 fi | |
20489 rm -f conftest.err conftest.$ac_objext \ | |
20490 conftest$ac_exeext conftest.$ac_ext | |
20491 fi | |
20492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
20493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20494 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20495 cat >>confdefs.h <<_ACEOF | |
20496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20497 _ACEOF | |
20498 | |
20499 fi | |
20500 done | |
20501 | |
20502 | |
20503 for ac_func in InterlockedCompareExchange | |
20504 do | |
20505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
20506 echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20508 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20509 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20510 else | |
20511 cat >conftest.$ac_ext <<_ACEOF | |
20512 /* confdefs.h. */ | |
20513 _ACEOF | |
20514 cat confdefs.h >>conftest.$ac_ext | |
20515 cat >>conftest.$ac_ext <<_ACEOF | |
20516 /* end confdefs.h. */ | |
20517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func
. | |
20518 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20519 #define $ac_func innocuous_$ac_func | |
20520 | |
20521 /* System header to define __stub macros and hopefully few prototypes, | |
20522 which can conflict with char $ac_func (); below. | |
20523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20524 <limits.h> exists even on freestanding compilers. */ | |
20525 | |
20526 #ifdef __STDC__ | |
20527 # include <limits.h> | |
20528 #else | |
20529 # include <assert.h> | |
20530 #endif | |
20531 | |
20532 #undef $ac_func | |
20533 | |
20534 /* Override any gcc2 internal prototype to avoid an error. */ | |
20535 #ifdef __cplusplus | |
20536 extern "C" | |
20537 { | |
20538 #endif | |
20539 /* We use char because int might match the return type of a gcc2 | |
20540 builtin and then its argument prototype would still apply. */ | |
20541 char $ac_func (); | |
20542 /* The GNU C library defines this for functions which it implements | |
20543 to always fail with ENOSYS. Some functions are actually named | |
20544 something starting with __ and the normal name is an alias. */ | |
20545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20546 choke me | |
20547 #else | |
20548 char (*f) () = $ac_func; | |
20549 #endif | |
20550 #ifdef __cplusplus | |
20551 } | |
20552 #endif | |
20553 | |
20554 int | |
20555 main () | |
20556 { | |
20557 return f != $ac_func; | |
20558 ; | |
20559 return 0; | |
20560 } | |
20561 _ACEOF | |
20562 rm -f conftest.$ac_objext conftest$ac_exeext | |
20563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20564 (eval $ac_link) 2>conftest.er1 | |
20565 ac_status=$? | |
20566 grep -v '^ *+' conftest.er1 >conftest.err | |
20567 rm -f conftest.er1 | |
20568 cat conftest.err >&5 | |
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20570 (exit $ac_status); } && | |
20571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
20572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20573 (eval $ac_try) 2>&5 | |
20574 ac_status=$? | |
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20576 (exit $ac_status); }; } && | |
20577 { ac_try='test -s conftest$ac_exeext' | |
20578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20579 (eval $ac_try) 2>&5 | |
20580 ac_status=$? | |
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20582 (exit $ac_status); }; }; then | |
20583 eval "$as_ac_var=yes" | |
20584 else | |
20585 echo "$as_me: failed program was:" >&5 | |
20586 sed 's/^/| /' conftest.$ac_ext >&5 | |
20587 | |
20588 eval "$as_ac_var=no" | |
20589 fi | |
20590 rm -f conftest.err conftest.$ac_objext \ | |
20591 conftest$ac_exeext conftest.$ac_ext | |
20592 fi | |
20593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
20594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20595 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20596 cat >>confdefs.h <<_ACEOF | |
20597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20598 _ACEOF | |
20599 | |
20600 fi | |
20601 done | |
20602 | |
20603 | |
20604 | |
20605 for ac_func in strtoll strtoq | |
20606 do | |
20607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
20608 echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20610 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20611 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20612 else | |
20613 cat >conftest.$ac_ext <<_ACEOF | |
20614 /* confdefs.h. */ | |
20615 _ACEOF | |
20616 cat confdefs.h >>conftest.$ac_ext | |
20617 cat >>conftest.$ac_ext <<_ACEOF | |
20618 /* end confdefs.h. */ | |
20619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func
. | |
20620 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20621 #define $ac_func innocuous_$ac_func | |
20622 | |
20623 /* System header to define __stub macros and hopefully few prototypes, | |
20624 which can conflict with char $ac_func (); below. | |
20625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20626 <limits.h> exists even on freestanding compilers. */ | |
20627 | |
20628 #ifdef __STDC__ | |
20629 # include <limits.h> | |
20630 #else | |
20631 # include <assert.h> | |
20632 #endif | |
20633 | |
20634 #undef $ac_func | |
20635 | |
20636 /* Override any gcc2 internal prototype to avoid an error. */ | |
20637 #ifdef __cplusplus | |
20638 extern "C" | |
20639 { | |
20640 #endif | |
20641 /* We use char because int might match the return type of a gcc2 | |
20642 builtin and then its argument prototype would still apply. */ | |
20643 char $ac_func (); | |
20644 /* The GNU C library defines this for functions which it implements | |
20645 to always fail with ENOSYS. Some functions are actually named | |
20646 something starting with __ and the normal name is an alias. */ | |
20647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20648 choke me | |
20649 #else | |
20650 char (*f) () = $ac_func; | |
20651 #endif | |
20652 #ifdef __cplusplus | |
20653 } | |
20654 #endif | |
20655 | |
20656 int | |
20657 main () | |
20658 { | |
20659 return f != $ac_func; | |
20660 ; | |
20661 return 0; | |
20662 } | |
20663 _ACEOF | |
20664 rm -f conftest.$ac_objext conftest$ac_exeext | |
20665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20666 (eval $ac_link) 2>conftest.er1 | |
20667 ac_status=$? | |
20668 grep -v '^ *+' conftest.er1 >conftest.err | |
20669 rm -f conftest.er1 | |
20670 cat conftest.err >&5 | |
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20672 (exit $ac_status); } && | |
20673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
20674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20675 (eval $ac_try) 2>&5 | |
20676 ac_status=$? | |
20677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20678 (exit $ac_status); }; } && | |
20679 { ac_try='test -s conftest$ac_exeext' | |
20680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20681 (eval $ac_try) 2>&5 | |
20682 ac_status=$? | |
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20684 (exit $ac_status); }; }; then | |
20685 eval "$as_ac_var=yes" | |
20686 else | |
20687 echo "$as_me: failed program was:" >&5 | |
20688 sed 's/^/| /' conftest.$ac_ext >&5 | |
20689 | |
20690 eval "$as_ac_var=no" | |
20691 fi | |
20692 rm -f conftest.err conftest.$ac_objext \ | |
20693 conftest$ac_exeext conftest.$ac_ext | |
20694 fi | |
20695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
20696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20697 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20698 cat >>confdefs.h <<_ACEOF | |
20699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20700 _ACEOF | |
20701 | |
20702 fi | |
20703 done | |
20704 | |
20705 echo "$as_me:$LINENO: checking for uint16_t" >&5 | |
20706 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 | |
20707 if test "${ac_cv_type_uint16_t+set}" = set; then | |
20708 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20709 else | |
20710 cat >conftest.$ac_ext <<_ACEOF | |
20711 /* confdefs.h. */ | |
20712 _ACEOF | |
20713 cat confdefs.h >>conftest.$ac_ext | |
20714 cat >>conftest.$ac_ext <<_ACEOF | |
20715 /* end confdefs.h. */ | |
20716 $ac_includes_default | |
20717 int | |
20718 main () | |
20719 { | |
20720 if ((uint16_t *) 0) | |
20721 return 0; | |
20722 if (sizeof (uint16_t)) | |
20723 return 0; | |
20724 ; | |
20725 return 0; | |
20726 } | |
20727 _ACEOF | |
20728 rm -f conftest.$ac_objext | |
20729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20730 (eval $ac_compile) 2>conftest.er1 | |
20731 ac_status=$? | |
20732 grep -v '^ *+' conftest.er1 >conftest.err | |
20733 rm -f conftest.er1 | |
20734 cat conftest.err >&5 | |
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20736 (exit $ac_status); } && | |
20737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
20738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20739 (eval $ac_try) 2>&5 | |
20740 ac_status=$? | |
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20742 (exit $ac_status); }; } && | |
20743 { ac_try='test -s conftest.$ac_objext' | |
20744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20745 (eval $ac_try) 2>&5 | |
20746 ac_status=$? | |
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20748 (exit $ac_status); }; }; then | |
20749 ac_cv_type_uint16_t=yes | |
20750 else | |
20751 echo "$as_me: failed program was:" >&5 | |
20752 sed 's/^/| /' conftest.$ac_ext >&5 | |
20753 | |
20754 ac_cv_type_uint16_t=no | |
20755 fi | |
20756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20757 fi | |
20758 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 | |
20759 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 | |
20760 if test $ac_cv_type_uint16_t = yes; then | |
20761 | |
20762 cat >>confdefs.h <<_ACEOF | |
20763 #define HAVE_UINT16_T 1 | |
20764 _ACEOF | |
20765 | |
20766 | |
20767 fi | |
20768 echo "$as_me:$LINENO: checking for u_int16_t" >&5 | |
20769 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6 | |
20770 if test "${ac_cv_type_u_int16_t+set}" = set; then | |
20771 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20772 else | |
20773 cat >conftest.$ac_ext <<_ACEOF | |
20774 /* confdefs.h. */ | |
20775 _ACEOF | |
20776 cat confdefs.h >>conftest.$ac_ext | |
20777 cat >>conftest.$ac_ext <<_ACEOF | |
20778 /* end confdefs.h. */ | |
20779 $ac_includes_default | |
20780 int | |
20781 main () | |
20782 { | |
20783 if ((u_int16_t *) 0) | |
20784 return 0; | |
20785 if (sizeof (u_int16_t)) | |
20786 return 0; | |
20787 ; | |
20788 return 0; | |
20789 } | |
20790 _ACEOF | |
20791 rm -f conftest.$ac_objext | |
20792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20793 (eval $ac_compile) 2>conftest.er1 | |
20794 ac_status=$? | |
20795 grep -v '^ *+' conftest.er1 >conftest.err | |
20796 rm -f conftest.er1 | |
20797 cat conftest.err >&5 | |
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20799 (exit $ac_status); } && | |
20800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
20801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20802 (eval $ac_try) 2>&5 | |
20803 ac_status=$? | |
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20805 (exit $ac_status); }; } && | |
20806 { ac_try='test -s conftest.$ac_objext' | |
20807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20808 (eval $ac_try) 2>&5 | |
20809 ac_status=$? | |
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20811 (exit $ac_status); }; }; then | |
20812 ac_cv_type_u_int16_t=yes | |
20813 else | |
20814 echo "$as_me: failed program was:" >&5 | |
20815 sed 's/^/| /' conftest.$ac_ext >&5 | |
20816 | |
20817 ac_cv_type_u_int16_t=no | |
20818 fi | |
20819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20820 fi | |
20821 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 | |
20822 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6 | |
20823 if test $ac_cv_type_u_int16_t = yes; then | |
20824 | |
20825 cat >>confdefs.h <<_ACEOF | |
20826 #define HAVE_U_INT16_T 1 | |
20827 _ACEOF | |
20828 | |
20829 | |
20830 fi | |
20831 echo "$as_me:$LINENO: checking for __int16" >&5 | |
20832 echo $ECHO_N "checking for __int16... $ECHO_C" >&6 | |
20833 if test "${ac_cv_type___int16+set}" = set; then | |
20834 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20835 else | |
20836 cat >conftest.$ac_ext <<_ACEOF | |
20837 /* confdefs.h. */ | |
20838 _ACEOF | |
20839 cat confdefs.h >>conftest.$ac_ext | |
20840 cat >>conftest.$ac_ext <<_ACEOF | |
20841 /* end confdefs.h. */ | |
20842 $ac_includes_default | |
20843 int | |
20844 main () | |
20845 { | |
20846 if ((__int16 *) 0) | |
20847 return 0; | |
20848 if (sizeof (__int16)) | |
20849 return 0; | |
20850 ; | |
20851 return 0; | |
20852 } | |
20853 _ACEOF | |
20854 rm -f conftest.$ac_objext | |
20855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20856 (eval $ac_compile) 2>conftest.er1 | |
20857 ac_status=$? | |
20858 grep -v '^ *+' conftest.er1 >conftest.err | |
20859 rm -f conftest.er1 | |
20860 cat conftest.err >&5 | |
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20862 (exit $ac_status); } && | |
20863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
20864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20865 (eval $ac_try) 2>&5 | |
20866 ac_status=$? | |
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20868 (exit $ac_status); }; } && | |
20869 { ac_try='test -s conftest.$ac_objext' | |
20870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20871 (eval $ac_try) 2>&5 | |
20872 ac_status=$? | |
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20874 (exit $ac_status); }; }; then | |
20875 ac_cv_type___int16=yes | |
20876 else | |
20877 echo "$as_me: failed program was:" >&5 | |
20878 sed 's/^/| /' conftest.$ac_ext >&5 | |
20879 | |
20880 ac_cv_type___int16=no | |
20881 fi | |
20882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20883 fi | |
20884 echo "$as_me:$LINENO: result: $ac_cv_type___int16" >&5 | |
20885 echo "${ECHO_T}$ac_cv_type___int16" >&6 | |
20886 if test $ac_cv_type___int16 = yes; then | |
20887 | |
20888 cat >>confdefs.h <<_ACEOF | |
20889 #define HAVE___INT16 1 | |
20890 _ACEOF | |
20891 | |
20892 | |
20893 fi | |
20894 | |
20895 | |
20896 | |
20897 echo "$as_me:$LINENO: checking for __attribute__" >&5 | |
20898 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6 | |
20899 if test "${ac_cv___attribute__+set}" = set; then | |
20900 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20901 else | |
20902 | |
20903 cat >conftest.$ac_ext <<_ACEOF | |
20904 /* confdefs.h. */ | |
20905 _ACEOF | |
20906 cat confdefs.h >>conftest.$ac_ext | |
20907 cat >>conftest.$ac_ext <<_ACEOF | |
20908 /* end confdefs.h. */ | |
20909 #include <stdlib.h> | |
20910 static void foo(void) __attribute__ ((unused)); | |
20911 void foo(void) { exit(1); } | |
20912 int | |
20913 main () | |
20914 { | |
20915 | |
20916 ; | |
20917 return 0; | |
20918 } | |
20919 _ACEOF | |
20920 rm -f conftest.$ac_objext | |
20921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20922 (eval $ac_compile) 2>conftest.er1 | |
20923 ac_status=$? | |
20924 grep -v '^ *+' conftest.er1 >conftest.err | |
20925 rm -f conftest.er1 | |
20926 cat conftest.err >&5 | |
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20928 (exit $ac_status); } && | |
20929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
20930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20931 (eval $ac_try) 2>&5 | |
20932 ac_status=$? | |
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20934 (exit $ac_status); }; } && | |
20935 { ac_try='test -s conftest.$ac_objext' | |
20936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20937 (eval $ac_try) 2>&5 | |
20938 ac_status=$? | |
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20940 (exit $ac_status); }; }; then | |
20941 ac_cv___attribute__=yes | |
20942 else | |
20943 echo "$as_me: failed program was:" >&5 | |
20944 sed 's/^/| /' conftest.$ac_ext >&5 | |
20945 | |
20946 ac_cv___attribute__=no | |
20947 | |
20948 fi | |
20949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20950 fi | |
20951 | |
20952 if test "$ac_cv___attribute__" = "yes"; then | |
20953 | |
20954 cat >>confdefs.h <<\_ACEOF | |
20955 #define HAVE___ATTRIBUTE__ 1 | |
20956 _ACEOF | |
20957 | |
20958 fi | |
20959 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5 | |
20960 echo "${ECHO_T}$ac_cv___attribute__" >&6 | |
20961 | |
20962 | |
20963 | |
20964 | |
20965 | |
20966 | |
20967 ac_ext=c | |
20968 ac_cpp='$CPP $CPPFLAGS' | |
20969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' | |
20971 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20972 | |
20973 acx_pthread_ok=no | |
20974 | |
20975 # We used to check for pthread.h first, but this fails if pthread.h | |
20976 # requires special compiler flags (e.g. on True64 or Sequent). | |
20977 # It gets checked for in the link test anyway. | |
20978 | |
20979 # First of all, check if the user has set any of the PTHREAD_LIBS, | |
20980 # etcetera environment variables, and if threads linking works using | |
20981 # them: | |
20982 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then | |
20983 save_CFLAGS="$CFLAGS" | |
20984 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
20985 save_LIBS="$LIBS" | |
20986 LIBS="$PTHREAD_LIBS $LIBS" | |
20987 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS wi
th CFLAGS=$PTHREAD_CFLAGS" >&5 | |
20988 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHRE
AD_CFLAGS... $ECHO_C" >&6 | |
20989 cat >conftest.$ac_ext <<_ACEOF | |
20990 /* confdefs.h. */ | |
20991 _ACEOF | |
20992 cat confdefs.h >>conftest.$ac_ext | |
20993 cat >>conftest.$ac_ext <<_ACEOF | |
20994 /* end confdefs.h. */ | |
20995 | |
20996 /* Override any gcc2 internal prototype to avoid an error. */ | |
20997 #ifdef __cplusplus | |
20998 extern "C" | |
20999 #endif | |
21000 /* We use char because int might match the return type of a gcc2 | |
21001 builtin and then its argument prototype would still apply. */ | |
21002 char pthread_join (); | |
21003 int | |
21004 main () | |
21005 { | |
21006 pthread_join (); | |
21007 ; | |
21008 return 0; | |
21009 } | |
21010 _ACEOF | |
21011 rm -f conftest.$ac_objext conftest$ac_exeext | |
21012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21013 (eval $ac_link) 2>conftest.er1 | |
21014 ac_status=$? | |
21015 grep -v '^ *+' conftest.er1 >conftest.err | |
21016 rm -f conftest.er1 | |
21017 cat conftest.err >&5 | |
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21019 (exit $ac_status); } && | |
21020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
21021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21022 (eval $ac_try) 2>&5 | |
21023 ac_status=$? | |
21024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21025 (exit $ac_status); }; } && | |
21026 { ac_try='test -s conftest$ac_exeext' | |
21027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21028 (eval $ac_try) 2>&5 | |
21029 ac_status=$? | |
21030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21031 (exit $ac_status); }; }; then | |
21032 acx_pthread_ok=yes | |
21033 else | |
21034 echo "$as_me: failed program was:" >&5 | |
21035 sed 's/^/| /' conftest.$ac_ext >&5 | |
21036 | |
21037 fi | |
21038 rm -f conftest.err conftest.$ac_objext \ | |
21039 conftest$ac_exeext conftest.$ac_ext | |
21040 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 | |
21041 echo "${ECHO_T}$acx_pthread_ok" >&6 | |
21042 if test x"$acx_pthread_ok" = xno; then | |
21043 PTHREAD_LIBS="" | |
21044 PTHREAD_CFLAGS="" | |
21045 fi | |
21046 LIBS="$save_LIBS" | |
21047 CFLAGS="$save_CFLAGS" | |
21048 fi | |
21049 | |
21050 # We must check for the threads library under a number of different | |
21051 # names; the ordering is very important because some systems | |
21052 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the | |
21053 # libraries is broken (non-POSIX). | |
21054 | |
21055 # Create a list of thread flags to try. Items starting with a "-" are | |
21056 # C compiler flags, and other items are library names, except for "none" | |
21057 # which indicates that we try without any flags at all, and "pthread-config" | |
21058 # which is a program returning the flags for the Pth emulation library. | |
21059 | |
21060 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -m
threads pthread --thread-safe -mt pthread-config" | |
21061 | |
21062 # The ordering *is* (sometimes) important. Some notes on the | |
21063 # individual items follow: | |
21064 | |
21065 # pthreads: AIX (must check this before -lpthread) | |
21066 # none: in case threads are in libc; should be tried before -Kthread and | |
21067 # other compiler flags to prevent continual compiler warnings | |
21068 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) | |
21069 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) | |
21070 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) | |
21071 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) | |
21072 # -pthreads: Solaris/gcc | |
21073 # -mthreads: Mingw32/gcc, Lynx/gcc | |
21074 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it | |
21075 # doesn't hurt to check since this sometimes defines pthreads too; | |
21076 # also defines -D_REENTRANT) | |
21077 # ... -mt is also the pthreads flag for HP/aCC | |
21078 # pthread: Linux, etcetera | |
21079 # --thread-safe: KAI C++ | |
21080 # pthread-config: use pthread-config program (for GNU Pth library) | |
21081 | |
21082 case "${host_cpu}-${host_os}" in | |
21083 *solaris*) | |
21084 | |
21085 # On Solaris (at least, for some versions), libc contains stubbed | |
21086 # (non-functional) versions of the pthreads routines, so link-based | |
21087 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ | |
21088 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather | |
21089 # a function called by this macro, so we could check for that, but | |
21090 # who knows whether they'll stub that too in a future libc.) So, | |
21091 # we'll just look for -pthreads and -lpthread first: | |
21092 | |
21093 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" | |
21094 ;; | |
21095 esac | |
21096 | |
21097 if test x"$acx_pthread_ok" = xno; then | |
21098 for flag in $acx_pthread_flags; do | |
21099 | |
21100 case $flag in | |
21101 none) | |
21102 echo "$as_me:$LINENO: checking whether pthreads work without any
flags" >&5 | |
21103 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
21104 ;; | |
21105 | |
21106 -*) | |
21107 echo "$as_me:$LINENO: checking whether pthreads work with $flag"
>&5 | |
21108 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
21109 PTHREAD_CFLAGS="$flag" | |
21110 ;; | |
21111 | |
21112 pthread-config) | |
21113 # Extract the first word of "pthread-config", so it can be a pro
gram name with args. | |
21114 set dummy pthread-config; ac_word=$2 | |
21115 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
21116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
21117 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then | |
21118 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21119 else | |
21120 if test -n "$acx_pthread_config"; then | |
21121 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override th
e test. | |
21122 else | |
21123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21124 for as_dir in $PATH | |
21125 do | |
21126 IFS=$as_save_IFS | |
21127 test -z "$as_dir" && as_dir=. | |
21128 for ac_exec_ext in '' $ac_executable_extensions; do | |
21129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21130 ac_cv_prog_acx_pthread_config="yes" | |
21131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21132 break 2 | |
21133 fi | |
21134 done | |
21135 done | |
21136 | |
21137 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" | |
21138 fi | |
21139 fi | |
21140 acx_pthread_config=$ac_cv_prog_acx_pthread_config | |
21141 if test -n "$acx_pthread_config"; then | |
21142 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5 | |
21143 echo "${ECHO_T}$acx_pthread_config" >&6 | |
21144 else | |
21145 echo "$as_me:$LINENO: result: no" >&5 | |
21146 echo "${ECHO_T}no" >&6 | |
21147 fi | |
21148 | |
21149 if test x"$acx_pthread_config" = xno; then continue; fi | |
21150 PTHREAD_CFLAGS="`pthread-config --cflags`" | |
21151 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`
" | |
21152 ;; | |
21153 | |
21154 *) | |
21155 echo "$as_me:$LINENO: checking for the pthreads library -l$flag"
>&5 | |
21156 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
21157 PTHREAD_LIBS="-l$flag" | |
21158 ;; | |
21159 esac | |
21160 | |
21161 save_LIBS="$LIBS" | |
21162 save_CFLAGS="$CFLAGS" | |
21163 LIBS="$PTHREAD_LIBS $LIBS" | |
21164 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
21165 | |
21166 # Check for various functions. We must include pthread.h, | |
21167 # since some functions may be macros. (On the Sequent, we | |
21168 # need a special flag -Kthread to make this header compile.) | |
21169 # We check for pthread_join because it is in -lpthread on IRIX | |
21170 # while pthread_create is in libc. We check for pthread_attr_init | |
21171 # due to DEC craziness with -lpthreads. We check for | |
21172 # pthread_cleanup_push because it is one of the few pthread | |
21173 # functions on Solaris that doesn't have a non-functional libc stub. | |
21174 # We try pthread_create on general principles. | |
21175 cat >conftest.$ac_ext <<_ACEOF | |
21176 /* confdefs.h. */ | |
21177 _ACEOF | |
21178 cat confdefs.h >>conftest.$ac_ext | |
21179 cat >>conftest.$ac_ext <<_ACEOF | |
21180 /* end confdefs.h. */ | |
21181 #include <pthread.h> | |
21182 int | |
21183 main () | |
21184 { | |
21185 pthread_t th; pthread_join(th, 0); | |
21186 pthread_attr_init(0); pthread_cleanup_push(0, 0); | |
21187 pthread_create(0,0,0,0); pthread_cleanup_pop(0); | |
21188 ; | |
21189 return 0; | |
21190 } | |
21191 _ACEOF | |
21192 rm -f conftest.$ac_objext conftest$ac_exeext | |
21193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21194 (eval $ac_link) 2>conftest.er1 | |
21195 ac_status=$? | |
21196 grep -v '^ *+' conftest.er1 >conftest.err | |
21197 rm -f conftest.er1 | |
21198 cat conftest.err >&5 | |
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21200 (exit $ac_status); } && | |
21201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
21202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21203 (eval $ac_try) 2>&5 | |
21204 ac_status=$? | |
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21206 (exit $ac_status); }; } && | |
21207 { ac_try='test -s conftest$ac_exeext' | |
21208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21209 (eval $ac_try) 2>&5 | |
21210 ac_status=$? | |
21211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21212 (exit $ac_status); }; }; then | |
21213 acx_pthread_ok=yes | |
21214 else | |
21215 echo "$as_me: failed program was:" >&5 | |
21216 sed 's/^/| /' conftest.$ac_ext >&5 | |
21217 | |
21218 fi | |
21219 rm -f conftest.err conftest.$ac_objext \ | |
21220 conftest$ac_exeext conftest.$ac_ext | |
21221 | |
21222 LIBS="$save_LIBS" | |
21223 CFLAGS="$save_CFLAGS" | |
21224 | |
21225 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 | |
21226 echo "${ECHO_T}$acx_pthread_ok" >&6 | |
21227 if test "x$acx_pthread_ok" = xyes; then | |
21228 break; | |
21229 fi | |
21230 | |
21231 PTHREAD_LIBS="" | |
21232 PTHREAD_CFLAGS="" | |
21233 done | |
21234 fi | |
21235 | |
21236 # Various other checks: | |
21237 if test "x$acx_pthread_ok" = xyes; then | |
21238 save_LIBS="$LIBS" | |
21239 LIBS="$PTHREAD_LIBS $LIBS" | |
21240 save_CFLAGS="$CFLAGS" | |
21241 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
21242 | |
21243 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. | |
21244 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5 | |
21245 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6 | |
21246 attr_name=unknown | |
21247 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do | |
21248 cat >conftest.$ac_ext <<_ACEOF | |
21249 /* confdefs.h. */ | |
21250 _ACEOF | |
21251 cat confdefs.h >>conftest.$ac_ext | |
21252 cat >>conftest.$ac_ext <<_ACEOF | |
21253 /* end confdefs.h. */ | |
21254 #include <pthread.h> | |
21255 int | |
21256 main () | |
21257 { | |
21258 int attr=$attr; return attr; | |
21259 ; | |
21260 return 0; | |
21261 } | |
21262 _ACEOF | |
21263 rm -f conftest.$ac_objext conftest$ac_exeext | |
21264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21265 (eval $ac_link) 2>conftest.er1 | |
21266 ac_status=$? | |
21267 grep -v '^ *+' conftest.er1 >conftest.err | |
21268 rm -f conftest.er1 | |
21269 cat conftest.err >&5 | |
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21271 (exit $ac_status); } && | |
21272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
21273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21274 (eval $ac_try) 2>&5 | |
21275 ac_status=$? | |
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21277 (exit $ac_status); }; } && | |
21278 { ac_try='test -s conftest$ac_exeext' | |
21279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21280 (eval $ac_try) 2>&5 | |
21281 ac_status=$? | |
21282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21283 (exit $ac_status); }; }; then | |
21284 attr_name=$attr; break | |
21285 else | |
21286 echo "$as_me: failed program was:" >&5 | |
21287 sed 's/^/| /' conftest.$ac_ext >&5 | |
21288 | |
21289 fi | |
21290 rm -f conftest.err conftest.$ac_objext \ | |
21291 conftest$ac_exeext conftest.$ac_ext | |
21292 done | |
21293 echo "$as_me:$LINENO: result: $attr_name" >&5 | |
21294 echo "${ECHO_T}$attr_name" >&6 | |
21295 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then | |
21296 | |
21297 cat >>confdefs.h <<_ACEOF | |
21298 #define PTHREAD_CREATE_JOINABLE $attr_name | |
21299 _ACEOF | |
21300 | |
21301 fi | |
21302 | |
21303 echo "$as_me:$LINENO: checking if more special flags are required for pt
hreads" >&5 | |
21304 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_
C" >&6 | |
21305 flag=no | |
21306 case "${host_cpu}-${host_os}" in | |
21307 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; | |
21308 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; | |
21309 esac | |
21310 echo "$as_me:$LINENO: result: ${flag}" >&5 | |
21311 echo "${ECHO_T}${flag}" >&6 | |
21312 if test "x$flag" != xno; then | |
21313 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" | |
21314 fi | |
21315 | |
21316 LIBS="$save_LIBS" | |
21317 CFLAGS="$save_CFLAGS" | |
21318 # More AIX lossage: must compile with xlc_r or cc_r | |
21319 if test x"$GCC" != xyes; then | |
21320 for ac_prog in xlc_r cc_r | |
21321 do | |
21322 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
21323 set dummy $ac_prog; ac_word=$2 | |
21324 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
21325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
21326 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then | |
21327 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21328 else | |
21329 if test -n "$PTHREAD_CC"; then | |
21330 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. | |
21331 else | |
21332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21333 for as_dir in $PATH | |
21334 do | |
21335 IFS=$as_save_IFS | |
21336 test -z "$as_dir" && as_dir=. | |
21337 for ac_exec_ext in '' $ac_executable_extensions; do | |
21338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21339 ac_cv_prog_PTHREAD_CC="$ac_prog" | |
21340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21341 break 2 | |
21342 fi | |
21343 done | |
21344 done | |
21345 | |
21346 fi | |
21347 fi | |
21348 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC | |
21349 if test -n "$PTHREAD_CC"; then | |
21350 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5 | |
21351 echo "${ECHO_T}$PTHREAD_CC" >&6 | |
21352 else | |
21353 echo "$as_me:$LINENO: result: no" >&5 | |
21354 echo "${ECHO_T}no" >&6 | |
21355 fi | |
21356 | |
21357 test -n "$PTHREAD_CC" && break | |
21358 done | |
21359 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" | |
21360 | |
21361 else | |
21362 PTHREAD_CC=$CC | |
21363 fi | |
21364 | |
21365 # The next part tries to detect GCC inconsistency with -shared on some | |
21366 # architectures and systems. The problem is that in certain | |
21367 # configurations, when -shared is specified, GCC "forgets" to | |
21368 # internally use various flags which are still necessary. | |
21369 | |
21370 # | |
21371 # Prepare the flags | |
21372 # | |
21373 save_CFLAGS="$CFLAGS" | |
21374 save_LIBS="$LIBS" | |
21375 save_CC="$CC" | |
21376 | |
21377 # Try with the flags determined by the earlier checks. | |
21378 # | |
21379 # -Wl,-z,defs forces link-time symbol resolution, so that the | |
21380 # linking checks with -shared actually have any value | |
21381 # | |
21382 # FIXME: -fPIC is required for -shared on many architectures, | |
21383 # so we specify it here, but the right way would probably be to | |
21384 # properly detect whether it is actually required. | |
21385 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS" | |
21386 LIBS="$PTHREAD_LIBS $LIBS" | |
21387 CC="$PTHREAD_CC" | |
21388 | |
21389 # In order not to create several levels of indentation, we test | |
21390 # the value of "$done" until we find the cure or run out of ideas. | |
21391 done="no" | |
21392 | |
21393 # First, make sure the CFLAGS we added are actually accepted by our | |
21394 # compiler. If not (and OS X's ld, for instance, does not accept -z), | |
21395 # then we can't do this test. | |
21396 if test x"$done" = xno; then | |
21397 echo "$as_me:$LINENO: checking whether to check for GCC pthread/share
d inconsistencies" >&5 | |
21398 echo $ECHO_N "checking whether to check for GCC pthread/shared inconsistencies..
. $ECHO_C" >&6 | |
21399 cat >conftest.$ac_ext <<_ACEOF | |
21400 /* confdefs.h. */ | |
21401 _ACEOF | |
21402 cat confdefs.h >>conftest.$ac_ext | |
21403 cat >>conftest.$ac_ext <<_ACEOF | |
21404 /* end confdefs.h. */ | |
21405 | |
21406 int | |
21407 main () | |
21408 { | |
21409 | |
21410 ; | |
21411 return 0; | |
21412 } | |
21413 _ACEOF | |
21414 rm -f conftest.$ac_objext conftest$ac_exeext | |
21415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21416 (eval $ac_link) 2>conftest.er1 | |
21417 ac_status=$? | |
21418 grep -v '^ *+' conftest.er1 >conftest.err | |
21419 rm -f conftest.er1 | |
21420 cat conftest.err >&5 | |
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21422 (exit $ac_status); } && | |
21423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
21424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21425 (eval $ac_try) 2>&5 | |
21426 ac_status=$? | |
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21428 (exit $ac_status); }; } && | |
21429 { ac_try='test -s conftest$ac_exeext' | |
21430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21431 (eval $ac_try) 2>&5 | |
21432 ac_status=$? | |
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21434 (exit $ac_status); }; }; then | |
21435 : | |
21436 else | |
21437 echo "$as_me: failed program was:" >&5 | |
21438 sed 's/^/| /' conftest.$ac_ext >&5 | |
21439 | |
21440 done=yes | |
21441 fi | |
21442 rm -f conftest.err conftest.$ac_objext \ | |
21443 conftest$ac_exeext conftest.$ac_ext | |
21444 | |
21445 if test "x$done" = xyes ; then | |
21446 echo "$as_me:$LINENO: result: no" >&5 | |
21447 echo "${ECHO_T}no" >&6 | |
21448 else | |
21449 echo "$as_me:$LINENO: result: yes" >&5 | |
21450 echo "${ECHO_T}yes" >&6 | |
21451 fi | |
21452 fi | |
21453 | |
21454 if test x"$done" = xno; then | |
21455 echo "$as_me:$LINENO: checking whether -pthread is sufficient with -s
hared" >&5 | |
21456 echo $ECHO_N "checking whether -pthread is sufficient with -shared... $ECHO_C" >
&6 | |
21457 cat >conftest.$ac_ext <<_ACEOF | |
21458 /* confdefs.h. */ | |
21459 _ACEOF | |
21460 cat confdefs.h >>conftest.$ac_ext | |
21461 cat >>conftest.$ac_ext <<_ACEOF | |
21462 /* end confdefs.h. */ | |
21463 #include <pthread.h> | |
21464 int | |
21465 main () | |
21466 { | |
21467 pthread_t th; pthread_join(th, 0); | |
21468 pthread_attr_init(0); pthread_cleanup_push(0, 0); | |
21469 pthread_create(0,0,0,0); pthread_cleanup_pop(0); | |
21470 ; | |
21471 return 0; | |
21472 } | |
21473 _ACEOF | |
21474 rm -f conftest.$ac_objext conftest$ac_exeext | |
21475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21476 (eval $ac_link) 2>conftest.er1 | |
21477 ac_status=$? | |
21478 grep -v '^ *+' conftest.er1 >conftest.err | |
21479 rm -f conftest.er1 | |
21480 cat conftest.err >&5 | |
21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21482 (exit $ac_status); } && | |
21483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
21484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21485 (eval $ac_try) 2>&5 | |
21486 ac_status=$? | |
21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21488 (exit $ac_status); }; } && | |
21489 { ac_try='test -s conftest$ac_exeext' | |
21490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21491 (eval $ac_try) 2>&5 | |
21492 ac_status=$? | |
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21494 (exit $ac_status); }; }; then | |
21495 done=yes | |
21496 else | |
21497 echo "$as_me: failed program was:" >&5 | |
21498 sed 's/^/| /' conftest.$ac_ext >&5 | |
21499 | |
21500 fi | |
21501 rm -f conftest.err conftest.$ac_objext \ | |
21502 conftest$ac_exeext conftest.$ac_ext | |
21503 | |
21504 if test "x$done" = xyes; then | |
21505 echo "$as_me:$LINENO: result: yes" >&5 | |
21506 echo "${ECHO_T}yes" >&6 | |
21507 else | |
21508 echo "$as_me:$LINENO: result: no" >&5 | |
21509 echo "${ECHO_T}no" >&6 | |
21510 fi | |
21511 fi | |
21512 | |
21513 # | |
21514 # Linux gcc on some architectures such as mips/mipsel forgets | |
21515 # about -lpthread | |
21516 # | |
21517 if test x"$done" = xno; then | |
21518 echo "$as_me:$LINENO: checking whether -lpthread fixes that" >&5 | |
21519 echo $ECHO_N "checking whether -lpthread fixes that... $ECHO_C" >&6 | |
21520 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS" | |
21521 cat >conftest.$ac_ext <<_ACEOF | |
21522 /* confdefs.h. */ | |
21523 _ACEOF | |
21524 cat confdefs.h >>conftest.$ac_ext | |
21525 cat >>conftest.$ac_ext <<_ACEOF | |
21526 /* end confdefs.h. */ | |
21527 #include <pthread.h> | |
21528 int | |
21529 main () | |
21530 { | |
21531 pthread_t th; pthread_join(th, 0); | |
21532 pthread_attr_init(0); pthread_cleanup_push(0, 0); | |
21533 pthread_create(0,0,0,0); pthread_cleanup_pop(0); | |
21534 ; | |
21535 return 0; | |
21536 } | |
21537 _ACEOF | |
21538 rm -f conftest.$ac_objext conftest$ac_exeext | |
21539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21540 (eval $ac_link) 2>conftest.er1 | |
21541 ac_status=$? | |
21542 grep -v '^ *+' conftest.er1 >conftest.err | |
21543 rm -f conftest.er1 | |
21544 cat conftest.err >&5 | |
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21546 (exit $ac_status); } && | |
21547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
21548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21549 (eval $ac_try) 2>&5 | |
21550 ac_status=$? | |
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21552 (exit $ac_status); }; } && | |
21553 { ac_try='test -s conftest$ac_exeext' | |
21554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21555 (eval $ac_try) 2>&5 | |
21556 ac_status=$? | |
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21558 (exit $ac_status); }; }; then | |
21559 done=yes | |
21560 else | |
21561 echo "$as_me: failed program was:" >&5 | |
21562 sed 's/^/| /' conftest.$ac_ext >&5 | |
21563 | |
21564 fi | |
21565 rm -f conftest.err conftest.$ac_objext \ | |
21566 conftest$ac_exeext conftest.$ac_ext | |
21567 | |
21568 if test "x$done" = xyes; then | |
21569 echo "$as_me:$LINENO: result: yes" >&5 | |
21570 echo "${ECHO_T}yes" >&6 | |
21571 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS" | |
21572 else | |
21573 echo "$as_me:$LINENO: result: no" >&5 | |
21574 echo "${ECHO_T}no" >&6 | |
21575 fi | |
21576 fi | |
21577 # | |
21578 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc | |
21579 # | |
21580 if test x"$done" = xno; then | |
21581 echo "$as_me:$LINENO: checking whether -lc_r fixes that" >&5 | |
21582 echo $ECHO_N "checking whether -lc_r fixes that... $ECHO_C" >&6 | |
21583 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS" | |
21584 cat >conftest.$ac_ext <<_ACEOF | |
21585 /* confdefs.h. */ | |
21586 _ACEOF | |
21587 cat confdefs.h >>conftest.$ac_ext | |
21588 cat >>conftest.$ac_ext <<_ACEOF | |
21589 /* end confdefs.h. */ | |
21590 #include <pthread.h> | |
21591 int | |
21592 main () | |
21593 { | |
21594 pthread_t th; pthread_join(th, 0); | |
21595 pthread_attr_init(0); pthread_cleanup_push(0, 0); | |
21596 pthread_create(0,0,0,0); pthread_cleanup_pop(0); | |
21597 ; | |
21598 return 0; | |
21599 } | |
21600 _ACEOF | |
21601 rm -f conftest.$ac_objext conftest$ac_exeext | |
21602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21603 (eval $ac_link) 2>conftest.er1 | |
21604 ac_status=$? | |
21605 grep -v '^ *+' conftest.er1 >conftest.err | |
21606 rm -f conftest.er1 | |
21607 cat conftest.err >&5 | |
21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21609 (exit $ac_status); } && | |
21610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s co
nftest.err' | |
21611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21612 (eval $ac_try) 2>&5 | |
21613 ac_status=$? | |
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21615 (exit $ac_status); }; } && | |
21616 { ac_try='test -s conftest$ac_exeext' | |
21617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21618 (eval $ac_try) 2>&5 | |
21619 ac_status=$? | |
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21621 (exit $ac_status); }; }; then | |
21622 done=yes | |
21623 else | |
21624 echo "$as_me: failed program was:" >&5 | |
21625 sed 's/^/| /' conftest.$ac_ext >&5 | |
21626 | |
21627 fi | |
21628 rm -f conftest.err conftest.$ac_objext \ | |
21629 conftest$ac_exeext conftest.$ac_ext | |
21630 | |
21631 if test "x$done" = xyes; then | |
21632 echo "$as_me:$LINENO: result: yes" >&5 | |
21633 echo "${ECHO_T}yes" >&6 | |
21634 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS" | |
21635 else | |
21636 echo "$as_me:$LINENO: result: no" >&5 | |
21637 echo "${ECHO_T}no" >&6 | |
21638 fi | |
21639 fi | |
21640 if test x"$done" = xno; then | |
21641 # OK, we have run out of ideas | |
21642 { echo "$as_me:$LINENO: WARNING: Impossible to determine how to use p
threads with shared libraries" >&5 | |
21643 echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared l
ibraries" >&2;} | |
21644 | |
21645 # so it's not safe to assume that we may use pthreads | |
21646 acx_pthread_ok=no | |
21647 fi | |
21648 | |
21649 CFLAGS="$save_CFLAGS" | |
21650 LIBS="$save_LIBS" | |
21651 CC="$save_CC" | |
21652 else | |
21653 PTHREAD_CC="$CC" | |
21654 fi | |
21655 | |
21656 | |
21657 | |
21658 | |
21659 | |
21660 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: | |
21661 if test x"$acx_pthread_ok" = xyes; then | |
21662 | |
21663 cat >>confdefs.h <<\_ACEOF | |
21664 #define HAVE_PTHREAD 1 | |
21665 _ACEOF | |
21666 | |
21667 : | |
21668 else | |
21669 acx_pthread_ok=no | |
21670 | |
21671 fi | |
21672 ac_ext=c | |
21673 ac_cpp='$CPP $CPPFLAGS' | |
21674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' | |
21676 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21677 | |
21678 | |
21679 | |
21680 # End of definitions needed by gflags package | |
21681 | |
21682 ac_config_files="$ac_config_files Makefile" | |
21683 | |
21684 cat >confcache <<\_ACEOF | |
21685 # This file is a shell script that caches the results of configure | |
21686 # tests run on this system so they can be shared between configure | |
21687 # scripts and configure runs, see configure's option --config-cache. | |
21688 # It is not useful on other systems. If it contains results you don't | |
21689 # want to keep, you may remove or edit it. | |
21690 # | |
21691 # config.status only pays attention to the cache file if you give it | |
21692 # the --recheck option to rerun configure. | |
21693 # | |
21694 # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
21695 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
21696 # following values. | |
21697 | |
21698 _ACEOF | |
21699 | |
21700 # The following way of writing the cache mishandles newlines in values, | |
21701 # but we know of no workaround that is simple, portable, and efficient. | |
21702 # So, don't put newlines in cache variables' values. | |
21703 # Ultrix sh set writes to stderr and can't be redirected directly, | |
21704 # and sets the high bit in the cache file unless we assign to the vars. | |
21705 { | |
21706 (set) 2>&1 | | |
21707 case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
21708 *ac_space=\ *) | |
21709 # `set' does not quote correctly, so add quotes (double-quote | |
21710 # substitution turns \\\\ into \\, and sed turns \\ into \). | |
21711 sed -n \ | |
21712 "s/'/'\\\\''/g; | |
21713 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
21714 ;; | |
21715 *) | |
21716 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
21717 sed -n \ | |
21718 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
21719 ;; | |
21720 esac; | |
21721 } | | |
21722 sed ' | |
21723 t clear | |
21724 : clear | |
21725 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
21726 t end | |
21727 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
21728 : end' >>confcache | |
21729 if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
21730 if test -w $cache_file; then | |
21731 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
21732 cat confcache >$cache_file | |
21733 else | |
21734 echo "not updating unwritable cache $cache_file" | |
21735 fi | |
21736 fi | |
21737 rm -f confcache | |
21738 | |
21739 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
21740 # Let make expand exec_prefix. | |
21741 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
21742 | |
21743 # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
21744 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
21745 # trailing colons and then remove the whole line if VPATH becomes empty | |
21746 # (actually we leave an empty line to preserve line numbers). | |
21747 if test "x$srcdir" = x.; then | |
21748 ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
21749 s/:*\$(srcdir):*/:/; | |
21750 s/:*\${srcdir}:*/:/; | |
21751 s/:*@srcdir@:*/:/; | |
21752 s/^\([^=]*=[ ]*\):*/\1/; | |
21753 s/:*$//; | |
21754 s/^[^=]*=[ ]*$//; | |
21755 }' | |
21756 fi | |
21757 | |
21758 DEFS=-DHAVE_CONFIG_H | |
21759 | |
21760 ac_libobjs= | |
21761 ac_ltlibobjs= | |
21762 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
21763 # 1. Remove the extension, and $U if already installed. | |
21764 ac_i=`echo "$ac_i" | | |
21765 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
21766 # 2. Add them. | |
21767 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
21768 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
21769 done | |
21770 LIBOBJS=$ac_libobjs | |
21771 | |
21772 LTLIBOBJS=$ac_ltlibobjs | |
21773 | |
21774 | |
21775 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
21776 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
21777 Usually this means the macro was only invoked conditionally." >&5 | |
21778 echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
21779 Usually this means the macro was only invoked conditionally." >&2;} | |
21780 { (exit 1); exit 1; }; } | |
21781 fi | |
21782 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
21783 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defin
ed. | |
21784 Usually this means the macro was only invoked conditionally." >&5 | |
21785 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
21786 Usually this means the macro was only invoked conditionally." >&2;} | |
21787 { (exit 1); exit 1; }; } | |
21788 fi | |
21789 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
21790 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defi
ned. | |
21791 Usually this means the macro was only invoked conditionally." >&5 | |
21792 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. | |
21793 Usually this means the macro was only invoked conditionally." >&2;} | |
21794 { (exit 1); exit 1; }; } | |
21795 fi | |
21796 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then | |
21797 { { echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined. | |
21798 Usually this means the macro was only invoked conditionally." >&5 | |
21799 echo "$as_me: error: conditional \"GCC\" was never defined. | |
21800 Usually this means the macro was only invoked conditionally." >&2;} | |
21801 { (exit 1); exit 1; }; } | |
21802 fi | |
21803 | |
21804 : ${CONFIG_STATUS=./config.status} | |
21805 ac_clean_files_save=$ac_clean_files | |
21806 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
21807 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
21808 echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
21809 cat >$CONFIG_STATUS <<_ACEOF | |
21810 #! $SHELL | |
21811 # Generated by $as_me. | |
21812 # Run this file to recreate the current configuration. | |
21813 # Compiler output produced by configure, useful for debugging | |
21814 # configure, is in config.log if it exists. | |
21815 | |
21816 debug=false | |
21817 ac_cs_recheck=false | |
21818 ac_cs_silent=false | |
21819 SHELL=\${CONFIG_SHELL-$SHELL} | |
21820 _ACEOF | |
21821 | |
21822 cat >>$CONFIG_STATUS <<\_ACEOF | |
21823 ## --------------------- ## | |
21824 ## M4sh Initialization. ## | |
21825 ## --------------------- ## | |
21826 | |
21827 # Be Bourne compatible | |
21828 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
21829 emulate sh | |
21830 NULLCMD=: | |
21831 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
21832 # is contrary to our usage. Disable this feature. | |
21833 alias -g '${1+"$@"}'='"$@"' | |
21834 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
21835 set -o posix | |
21836 fi | |
21837 DUALCASE=1; export DUALCASE # for MKS sh | |
21838 | |
21839 # Support unset when possible. | |
21840 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
21841 as_unset=unset | |
21842 else | |
21843 as_unset=false | |
21844 fi | |
21845 | |
21846 | |
21847 # Work around bugs in pre-3.0 UWIN ksh. | |
21848 $as_unset ENV MAIL MAILPATH | |
21849 PS1='$ ' | |
21850 PS2='> ' | |
21851 PS4='+ ' | |
21852 | |
21853 # NLS nuisances. | |
21854 for as_var in \ | |
21855 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
21856 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
21857 LC_TELEPHONE LC_TIME | |
21858 do | |
21859 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
21860 eval $as_var=C; export $as_var | |
21861 else | |
21862 $as_unset $as_var | |
21863 fi | |
21864 done | |
21865 | |
21866 # Required to use basename. | |
21867 if expr a : '\(a\)' >/dev/null 2>&1; then | |
21868 as_expr=expr | |
21869 else | |
21870 as_expr=false | |
21871 fi | |
21872 | |
21873 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
21874 as_basename=basename | |
21875 else | |
21876 as_basename=false | |
21877 fi | |
21878 | |
21879 | |
21880 # Name of the executable. | |
21881 as_me=`$as_basename "$0" || | |
21882 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
21883 X"$0" : 'X\(//\)$' \| \ | |
21884 X"$0" : 'X\(/\)$' \| \ | |
21885 . : '\(.\)' 2>/dev/null || | |
21886 echo X/"$0" | | |
21887 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
21888 /^X\/\(\/\/\)$/{ s//\1/; q; } | |
21889 /^X\/\(\/\).*/{ s//\1/; q; } | |
21890 s/.*/./; q'` | |
21891 | |
21892 | |
21893 # PATH needs CR, and LINENO needs CR and PATH. | |
21894 # Avoid depending upon Character Ranges. | |
21895 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
21896 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
21897 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
21898 as_cr_digits='0123456789' | |
21899 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
21900 | |
21901 # The user is always right. | |
21902 if test "${PATH_SEPARATOR+set}" != set; then | |
21903 echo "#! /bin/sh" >conf$$.sh | |
21904 echo "exit 0" >>conf$$.sh | |
21905 chmod +x conf$$.sh | |
21906 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
21907 PATH_SEPARATOR=';' | |
21908 else | |
21909 PATH_SEPARATOR=: | |
21910 fi | |
21911 rm -f conf$$.sh | |
21912 fi | |
21913 | |
21914 | |
21915 as_lineno_1=$LINENO | |
21916 as_lineno_2=$LINENO | |
21917 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
21918 test "x$as_lineno_1" != "x$as_lineno_2" && | |
21919 test "x$as_lineno_3" = "x$as_lineno_2" || { | |
21920 # Find who we are. Look in the path if we contain no path at all | |
21921 # relative or not. | |
21922 case $0 in | |
21923 *[\\/]* ) as_myself=$0 ;; | |
21924 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21925 for as_dir in $PATH | |
21926 do | |
21927 IFS=$as_save_IFS | |
21928 test -z "$as_dir" && as_dir=. | |
21929 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
21930 done | |
21931 | |
21932 ;; | |
21933 esac | |
21934 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
21935 # in which case we are not to be found in the path. | |
21936 if test "x$as_myself" = x; then | |
21937 as_myself=$0 | |
21938 fi | |
21939 if test ! -f "$as_myself"; then | |
21940 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute
path" >&5 | |
21941 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
21942 { (exit 1); exit 1; }; } | |
21943 fi | |
21944 case $CONFIG_SHELL in | |
21945 '') | |
21946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21947 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
21948 do | |
21949 IFS=$as_save_IFS | |
21950 test -z "$as_dir" && as_dir=. | |
21951 for as_base in sh bash ksh sh5; do | |
21952 case $as_dir in | |
21953 /*) | |
21954 if ("$as_dir/$as_base" -c ' | |
21955 as_lineno_1=$LINENO | |
21956 as_lineno_2=$LINENO | |
21957 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
21958 test "x$as_lineno_1" != "x$as_lineno_2" && | |
21959 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
21960 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=;
export BASH_ENV; } | |
21961 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
21962 CONFIG_SHELL=$as_dir/$as_base | |
21963 export CONFIG_SHELL | |
21964 exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
21965 fi;; | |
21966 esac | |
21967 done | |
21968 done | |
21969 ;; | |
21970 esac | |
21971 | |
21972 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
21973 # uniformly replaced by the line number. The first 'sed' inserts a | |
21974 # line-number line before each line; the second 'sed' does the real | |
21975 # work. The second script uses 'N' to pair each line-number line | |
21976 # with the numbered line, and appends trailing '-' during | |
21977 # substitution so that $LINENO is not a special case at line end. | |
21978 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
21979 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
21980 sed '=' <$as_myself | | |
21981 sed ' | |
21982 N | |
21983 s,$,-, | |
21984 : loop | |
21985 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
21986 t loop | |
21987 s,-$,, | |
21988 s,^['$as_cr_digits']*\n,, | |
21989 ' >$as_me.lineno && | |
21990 chmod +x $as_me.lineno || | |
21991 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a P
OSIX shell" >&5 | |
21992 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;
} | |
21993 { (exit 1); exit 1; }; } | |
21994 | |
21995 # Don't try to exec as it changes $[0], causing all sort of problems | |
21996 # (the dirname of $[0] is not the place where we might find the | |
21997 # original and so on. Autoconf is especially sensible to this). | |
21998 . ./$as_me.lineno | |
21999 # Exit status is that of the last command. | |
22000 exit | |
22001 } | |
22002 | |
22003 | |
22004 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
22005 *c*,-n*) ECHO_N= ECHO_C=' | |
22006 ' ECHO_T=' ' ;; | |
22007 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
22008 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
22009 esac | |
22010 | |
22011 if expr a : '\(a\)' >/dev/null 2>&1; then | |
22012 as_expr=expr | |
22013 else | |
22014 as_expr=false | |
22015 fi | |
22016 | |
22017 rm -f conf$$ conf$$.exe conf$$.file | |
22018 echo >conf$$.file | |
22019 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
22020 # We could just check for DJGPP; but this test a) works b) is more generic | |
22021 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
22022 if test -f conf$$.exe; then | |
22023 # Don't use ln at all; we don't have any links | |
22024 as_ln_s='cp -p' | |
22025 else | |
22026 as_ln_s='ln -s' | |
22027 fi | |
22028 elif ln conf$$.file conf$$ 2>/dev/null; then | |
22029 as_ln_s=ln | |
22030 else | |
22031 as_ln_s='cp -p' | |
22032 fi | |
22033 rm -f conf$$ conf$$.exe conf$$.file | |
22034 | |
22035 if mkdir -p . 2>/dev/null; then | |
22036 as_mkdir_p=: | |
22037 else | |
22038 test -d ./-p && rmdir ./-p | |
22039 as_mkdir_p=false | |
22040 fi | |
22041 | |
22042 as_executable_p="test -f" | |
22043 | |
22044 # Sed expression to map a string onto a valid CPP name. | |
22045 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
22046 | |
22047 # Sed expression to map a string onto a valid variable name. | |
22048 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
22049 | |
22050 | |
22051 # IFS | |
22052 # We need space, tab and new line, in precisely that order. | |
22053 as_nl=' | |
22054 ' | |
22055 IFS=" $as_nl" | |
22056 | |
22057 # CDPATH. | |
22058 $as_unset CDPATH | |
22059 | |
22060 exec 6>&1 | |
22061 | |
22062 # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
22063 # report actual input values of CONFIG_FILES etc. instead of their | |
22064 # values after options handling. Logging --version etc. is OK. | |
22065 exec 5>>config.log | |
22066 { | |
22067 echo | |
22068 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
22069 ## Running $as_me. ## | |
22070 _ASBOX | |
22071 } >&5 | |
22072 cat >&5 <<_CSEOF | |
22073 | |
22074 This file was extended by open-vcdiff $as_me 0.1, which was | |
22075 generated by GNU Autoconf 2.59. Invocation command line was | |
22076 | |
22077 CONFIG_FILES = $CONFIG_FILES | |
22078 CONFIG_HEADERS = $CONFIG_HEADERS | |
22079 CONFIG_LINKS = $CONFIG_LINKS | |
22080 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
22081 $ $0 $@ | |
22082 | |
22083 _CSEOF | |
22084 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
22085 echo >&5 | |
22086 _ACEOF | |
22087 | |
22088 # Files that config.status was made for. | |
22089 if test -n "$ac_config_files"; then | |
22090 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
22091 fi | |
22092 | |
22093 if test -n "$ac_config_headers"; then | |
22094 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
22095 fi | |
22096 | |
22097 if test -n "$ac_config_links"; then | |
22098 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
22099 fi | |
22100 | |
22101 if test -n "$ac_config_commands"; then | |
22102 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
22103 fi | |
22104 | |
22105 cat >>$CONFIG_STATUS <<\_ACEOF | |
22106 | |
22107 ac_cs_usage="\ | |
22108 \`$as_me' instantiates files from templates according to the | |
22109 current configuration. | |
22110 | |
22111 Usage: $0 [OPTIONS] [FILE]... | |
22112 | |
22113 -h, --help print this help, then exit | |
22114 -V, --version print version number, then exit | |
22115 -q, --quiet do not print progress messages | |
22116 -d, --debug don't remove temporary files | |
22117 --recheck update $as_me by reconfiguring in the same conditions | |
22118 --file=FILE[:TEMPLATE] | |
22119 instantiate the configuration file FILE | |
22120 --header=FILE[:TEMPLATE] | |
22121 instantiate the configuration header FILE | |
22122 | |
22123 Configuration files: | |
22124 $config_files | |
22125 | |
22126 Configuration headers: | |
22127 $config_headers | |
22128 | |
22129 Configuration commands: | |
22130 $config_commands | |
22131 | |
22132 Report bugs to <bug-autoconf@gnu.org>." | |
22133 _ACEOF | |
22134 | |
22135 cat >>$CONFIG_STATUS <<_ACEOF | |
22136 ac_cs_version="\\ | |
22137 open-vcdiff config.status 0.1 | |
22138 configured by $0, generated by GNU Autoconf 2.59, | |
22139 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
22140 | |
22141 Copyright (C) 2003 Free Software Foundation, Inc. | |
22142 This config.status script is free software; the Free Software Foundation | |
22143 gives unlimited permission to copy, distribute and modify it." | |
22144 srcdir=$srcdir | |
22145 INSTALL="$INSTALL" | |
22146 _ACEOF | |
22147 | |
22148 cat >>$CONFIG_STATUS <<\_ACEOF | |
22149 # If no file are specified by the user, then we need to provide default | |
22150 # value. By we need to know if files were specified by the user. | |
22151 ac_need_defaults=: | |
22152 while test $# != 0 | |
22153 do | |
22154 case $1 in | |
22155 --*=*) | |
22156 ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
22157 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
22158 ac_shift=: | |
22159 ;; | |
22160 -*) | |
22161 ac_option=$1 | |
22162 ac_optarg=$2 | |
22163 ac_shift=shift | |
22164 ;; | |
22165 *) # This is not an option, so the user has probably given explicit | |
22166 # arguments. | |
22167 ac_option=$1 | |
22168 ac_need_defaults=false;; | |
22169 esac | |
22170 | |
22171 case $ac_option in | |
22172 # Handling of the options. | |
22173 _ACEOF | |
22174 cat >>$CONFIG_STATUS <<\_ACEOF | |
22175 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
22176 ac_cs_recheck=: ;; | |
22177 --version | --vers* | -V ) | |
22178 echo "$ac_cs_version"; exit 0 ;; | |
22179 --he | --h) | |
22180 # Conflict between --help and --header | |
22181 { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
22182 Try \`$0 --help' for more information." >&5 | |
22183 echo "$as_me: error: ambiguous option: $1 | |
22184 Try \`$0 --help' for more information." >&2;} | |
22185 { (exit 1); exit 1; }; };; | |
22186 --help | --hel | -h ) | |
22187 echo "$ac_cs_usage"; exit 0 ;; | |
22188 --debug | --d* | -d ) | |
22189 debug=: ;; | |
22190 --file | --fil | --fi | --f ) | |
22191 $ac_shift | |
22192 CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
22193 ac_need_defaults=false;; | |
22194 --header | --heade | --head | --hea ) | |
22195 $ac_shift | |
22196 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
22197 ac_need_defaults=false;; | |
22198 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
22199 | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
22200 ac_cs_silent=: ;; | |
22201 | |
22202 # This is an error. | |
22203 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
22204 Try \`$0 --help' for more information." >&5 | |
22205 echo "$as_me: error: unrecognized option: $1 | |
22206 Try \`$0 --help' for more information." >&2;} | |
22207 { (exit 1); exit 1; }; } ;; | |
22208 | |
22209 *) ac_config_targets="$ac_config_targets $1" ;; | |
22210 | |
22211 esac | |
22212 shift | |
22213 done | |
22214 | |
22215 ac_configure_extra_args= | |
22216 | |
22217 if $ac_cs_silent; then | |
22218 exec 6>/dev/null | |
22219 ac_configure_extra_args="$ac_configure_extra_args --silent" | |
22220 fi | |
22221 | |
22222 _ACEOF | |
22223 cat >>$CONFIG_STATUS <<_ACEOF | |
22224 if \$ac_cs_recheck; then | |
22225 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-
create --no-recursion" >&6 | |
22226 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-r
ecursion | |
22227 fi | |
22228 | |
22229 _ACEOF | |
22230 | |
22231 cat >>$CONFIG_STATUS <<_ACEOF | |
22232 # | |
22233 # INIT-COMMANDS section. | |
22234 # | |
22235 | |
22236 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
22237 | |
22238 _ACEOF | |
22239 | |
22240 | |
22241 | |
22242 cat >>$CONFIG_STATUS <<\_ACEOF | |
22243 for ac_config_target in $ac_config_targets | |
22244 do | |
22245 case "$ac_config_target" in | |
22246 # Handling of arguments. | |
22247 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
22248 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
22249 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; | |
22250 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
22251 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
22252 { (exit 1); exit 1; }; };; | |
22253 esac | |
22254 done | |
22255 | |
22256 # If the user did not use the arguments to specify the items to instantiate, | |
22257 # then the envvar interface is used. Set only those that are not. | |
22258 # We use the long form for the default assignment because of an extremely | |
22259 # bizarre bug on SunOS 4.1.3. | |
22260 if $ac_need_defaults; then | |
22261 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
22262 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
22263 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
22264 fi | |
22265 | |
22266 # Have a temporary directory for convenience. Make it in the build tree | |
22267 # simply because there is no reason to put it here, and in addition, | |
22268 # creating and moving files from /tmp can sometimes cause problems. | |
22269 # Create a temporary directory, and hook for its removal unless debugging. | |
22270 $debug || | |
22271 { | |
22272 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
22273 trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
22274 } | |
22275 | |
22276 # Create a (secure) tmp directory for tmp files. | |
22277 | |
22278 { | |
22279 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
22280 test -n "$tmp" && test -d "$tmp" | |
22281 } || | |
22282 { | |
22283 tmp=./confstat$$-$RANDOM | |
22284 (umask 077 && mkdir $tmp) | |
22285 } || | |
22286 { | |
22287 echo "$me: cannot create a temporary directory in ." >&2 | |
22288 { (exit 1); exit 1; } | |
22289 } | |
22290 | |
22291 _ACEOF | |
22292 | |
22293 cat >>$CONFIG_STATUS <<_ACEOF | |
22294 | |
22295 # | |
22296 # CONFIG_FILES section. | |
22297 # | |
22298 | |
22299 # No need to generate the scripts if there are no CONFIG_FILES. | |
22300 # This happens for instance when ./config.status config.h | |
22301 if test -n "\$CONFIG_FILES"; then | |
22302 # Protect against being on the right side of a sed subst in config.status. | |
22303 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
22304 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
22305 s,@SHELL@,$SHELL,;t t | |
22306 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
22307 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
22308 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
22309 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
22310 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
22311 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
22312 s,@exec_prefix@,$exec_prefix,;t t | |
22313 s,@prefix@,$prefix,;t t | |
22314 s,@program_transform_name@,$program_transform_name,;t t | |
22315 s,@bindir@,$bindir,;t t | |
22316 s,@sbindir@,$sbindir,;t t | |
22317 s,@libexecdir@,$libexecdir,;t t | |
22318 s,@datadir@,$datadir,;t t | |
22319 s,@sysconfdir@,$sysconfdir,;t t | |
22320 s,@sharedstatedir@,$sharedstatedir,;t t | |
22321 s,@localstatedir@,$localstatedir,;t t | |
22322 s,@libdir@,$libdir,;t t | |
22323 s,@includedir@,$includedir,;t t | |
22324 s,@oldincludedir@,$oldincludedir,;t t | |
22325 s,@infodir@,$infodir,;t t | |
22326 s,@mandir@,$mandir,;t t | |
22327 s,@build_alias@,$build_alias,;t t | |
22328 s,@host_alias@,$host_alias,;t t | |
22329 s,@target_alias@,$target_alias,;t t | |
22330 s,@DEFS@,$DEFS,;t t | |
22331 s,@ECHO_C@,$ECHO_C,;t t | |
22332 s,@ECHO_N@,$ECHO_N,;t t | |
22333 s,@ECHO_T@,$ECHO_T,;t t | |
22334 s,@LIBS@,$LIBS,;t t | |
22335 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
22336 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
22337 s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
22338 s,@CYGPATH_W@,$CYGPATH_W,;t t | |
22339 s,@PACKAGE@,$PACKAGE,;t t | |
22340 s,@VERSION@,$VERSION,;t t | |
22341 s,@ACLOCAL@,$ACLOCAL,;t t | |
22342 s,@AUTOCONF@,$AUTOCONF,;t t | |
22343 s,@AUTOMAKE@,$AUTOMAKE,;t t | |
22344 s,@AUTOHEADER@,$AUTOHEADER,;t t | |
22345 s,@MAKEINFO@,$MAKEINFO,;t t | |
22346 s,@install_sh@,$install_sh,;t t | |
22347 s,@STRIP@,$STRIP,;t t | |
22348 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
22349 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
22350 s,@mkdir_p@,$mkdir_p,;t t | |
22351 s,@AWK@,$AWK,;t t | |
22352 s,@SET_MAKE@,$SET_MAKE,;t t | |
22353 s,@am__leading_dot@,$am__leading_dot,;t t | |
22354 s,@AMTAR@,$AMTAR,;t t | |
22355 s,@am__tar@,$am__tar,;t t | |
22356 s,@am__untar@,$am__untar,;t t | |
22357 s,@CC@,$CC,;t t | |
22358 s,@CFLAGS@,$CFLAGS,;t t | |
22359 s,@LDFLAGS@,$LDFLAGS,;t t | |
22360 s,@CPPFLAGS@,$CPPFLAGS,;t t | |
22361 s,@ac_ct_CC@,$ac_ct_CC,;t t | |
22362 s,@EXEEXT@,$EXEEXT,;t t | |
22363 s,@OBJEXT@,$OBJEXT,;t t | |
22364 s,@DEPDIR@,$DEPDIR,;t t | |
22365 s,@am__include@,$am__include,;t t | |
22366 s,@am__quote@,$am__quote,;t t | |
22367 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
22368 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
22369 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
22370 s,@CCDEPMODE@,$CCDEPMODE,;t t | |
22371 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
22372 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
22373 s,@CPP@,$CPP,;t t | |
22374 s,@CXX@,$CXX,;t t | |
22375 s,@CXXFLAGS@,$CXXFLAGS,;t t | |
22376 s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
22377 s,@CXXDEPMODE@,$CXXDEPMODE,;t t | |
22378 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t | |
22379 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t | |
22380 s,@GCC_TRUE@,$GCC_TRUE,;t t | |
22381 s,@GCC_FALSE@,$GCC_FALSE,;t t | |
22382 s,@build@,$build,;t t | |
22383 s,@build_cpu@,$build_cpu,;t t | |
22384 s,@build_vendor@,$build_vendor,;t t | |
22385 s,@build_os@,$build_os,;t t | |
22386 s,@host@,$host,;t t | |
22387 s,@host_cpu@,$host_cpu,;t t | |
22388 s,@host_vendor@,$host_vendor,;t t | |
22389 s,@host_os@,$host_os,;t t | |
22390 s,@EGREP@,$EGREP,;t t | |
22391 s,@LN_S@,$LN_S,;t t | |
22392 s,@ECHO@,$ECHO,;t t | |
22393 s,@AR@,$AR,;t t | |
22394 s,@ac_ct_AR@,$ac_ct_AR,;t t | |
22395 s,@RANLIB@,$RANLIB,;t t | |
22396 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
22397 s,@CXXCPP@,$CXXCPP,;t t | |
22398 s,@F77@,$F77,;t t | |
22399 s,@FFLAGS@,$FFLAGS,;t t | |
22400 s,@ac_ct_F77@,$ac_ct_F77,;t t | |
22401 s,@LIBTOOL@,$LIBTOOL,;t t | |
22402 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t | |
22403 s,@acx_pthread_config@,$acx_pthread_config,;t t | |
22404 s,@PTHREAD_CC@,$PTHREAD_CC,;t t | |
22405 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t | |
22406 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t | |
22407 s,@LIBOBJS@,$LIBOBJS,;t t | |
22408 s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
22409 CEOF | |
22410 | |
22411 _ACEOF | |
22412 | |
22413 cat >>$CONFIG_STATUS <<\_ACEOF | |
22414 # Split the substitutions into bite-sized pieces for seds with | |
22415 # small command number limits, like on Digital OSF/1 and HP-UX. | |
22416 ac_max_sed_lines=48 | |
22417 ac_sed_frag=1 # Number of current file. | |
22418 ac_beg=1 # First line for current file. | |
22419 ac_end=$ac_max_sed_lines # Line after last line for current file. | |
22420 ac_more_lines=: | |
22421 ac_sed_cmds= | |
22422 while $ac_more_lines; do | |
22423 if test $ac_beg -gt 1; then | |
22424 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
22425 else | |
22426 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
22427 fi | |
22428 if test ! -s $tmp/subs.frag; then | |
22429 ac_more_lines=false | |
22430 else | |
22431 # The purpose of the label and of the branching condition is to | |
22432 # speed up the sed processing (if there are no `@' at all, there | |
22433 # is no need to browse any of the substitutions). | |
22434 # These are the two extra sed commands mentioned above. | |
22435 (echo ':t | |
22436 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.s
ed | |
22437 if test -z "$ac_sed_cmds"; then | |
22438 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
22439 else | |
22440 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
22441 fi | |
22442 ac_sed_frag=`expr $ac_sed_frag + 1` | |
22443 ac_beg=$ac_end | |
22444 ac_end=`expr $ac_end + $ac_max_sed_lines` | |
22445 fi | |
22446 done | |
22447 if test -z "$ac_sed_cmds"; then | |
22448 ac_sed_cmds=cat | |
22449 fi | |
22450 fi # test -n "$CONFIG_FILES" | |
22451 | |
22452 _ACEOF | |
22453 cat >>$CONFIG_STATUS <<\_ACEOF | |
22454 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
22455 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
22456 case $ac_file in | |
22457 - | *:- | *:-:* ) # input from stdin | |
22458 cat >$tmp/stdin | |
22459 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22460 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
22461 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22462 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
22463 * ) ac_file_in=$ac_file.in ;; | |
22464 esac | |
22465 | |
22466 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
22467 ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
22468 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22469 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
22470 X"$ac_file" : 'X\(//\)$' \| \ | |
22471 X"$ac_file" : 'X\(/\)' \| \ | |
22472 . : '\(.\)' 2>/dev/null || | |
22473 echo X"$ac_file" | | |
22474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22475 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22476 /^X\(\/\/\)$/{ s//\1/; q; } | |
22477 /^X\(\/\).*/{ s//\1/; q; } | |
22478 s/.*/./; q'` | |
22479 { if $as_mkdir_p; then | |
22480 mkdir -p "$ac_dir" | |
22481 else | |
22482 as_dir="$ac_dir" | |
22483 as_dirs= | |
22484 while test ! -d "$as_dir"; do | |
22485 as_dirs="$as_dir $as_dirs" | |
22486 as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22487 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22488 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22489 X"$as_dir" : 'X\(//\)$' \| \ | |
22490 X"$as_dir" : 'X\(/\)' \| \ | |
22491 . : '\(.\)' 2>/dev/null || | |
22492 echo X"$as_dir" | | |
22493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22494 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22495 /^X\(\/\/\)$/{ s//\1/; q; } | |
22496 /^X\(\/\).*/{ s//\1/; q; } | |
22497 s/.*/./; q'` | |
22498 done | |
22499 test ! -n "$as_dirs" || mkdir $as_dirs | |
22500 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&
5 | |
22501 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22502 { (exit 1); exit 1; }; }; } | |
22503 | |
22504 ac_builddir=. | |
22505 | |
22506 if test "$ac_dir" != .; then | |
22507 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
22508 # A "../" for each directory in $ac_dir_suffix. | |
22509 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
22510 else | |
22511 ac_dir_suffix= ac_top_builddir= | |
22512 fi | |
22513 | |
22514 case $srcdir in | |
22515 .) # No --srcdir option. We are building in place. | |
22516 ac_srcdir=. | |
22517 if test -z "$ac_top_builddir"; then | |
22518 ac_top_srcdir=. | |
22519 else | |
22520 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
22521 fi ;; | |
22522 [\\/]* | ?:[\\/]* ) # Absolute path. | |
22523 ac_srcdir=$srcdir$ac_dir_suffix; | |
22524 ac_top_srcdir=$srcdir ;; | |
22525 *) # Relative path. | |
22526 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
22527 ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
22528 esac | |
22529 | |
22530 # Do not use `cd foo && pwd` to compute absolute paths, because | |
22531 # the directories may not exist. | |
22532 case `pwd` in | |
22533 .) ac_abs_builddir="$ac_dir";; | |
22534 *) | |
22535 case "$ac_dir" in | |
22536 .) ac_abs_builddir=`pwd`;; | |
22537 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
22538 *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
22539 esac;; | |
22540 esac | |
22541 case $ac_abs_builddir in | |
22542 .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22543 *) | |
22544 case ${ac_top_builddir}. in | |
22545 .) ac_abs_top_builddir=$ac_abs_builddir;; | |
22546 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22547 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
22548 esac;; | |
22549 esac | |
22550 case $ac_abs_builddir in | |
22551 .) ac_abs_srcdir=$ac_srcdir;; | |
22552 *) | |
22553 case $ac_srcdir in | |
22554 .) ac_abs_srcdir=$ac_abs_builddir;; | |
22555 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
22556 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
22557 esac;; | |
22558 esac | |
22559 case $ac_abs_builddir in | |
22560 .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22561 *) | |
22562 case $ac_top_srcdir in | |
22563 .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
22564 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22565 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
22566 esac;; | |
22567 esac | |
22568 | |
22569 | |
22570 case $INSTALL in | |
22571 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
22572 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
22573 esac | |
22574 | |
22575 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
22576 # use $as_me), people would be surprised to read: | |
22577 # /* config.h. Generated by config.status. */ | |
22578 if test x"$ac_file" = x-; then | |
22579 configure_input= | |
22580 else | |
22581 configure_input="$ac_file. " | |
22582 fi | |
22583 configure_input=$configure_input"Generated from `echo $ac_file_in | | |
22584 sed 's,.*/,,'` by configure." | |
22585 | |
22586 # First look for the input files in the build tree, otherwise in the | |
22587 # src tree. | |
22588 ac_file_inputs=`IFS=: | |
22589 for f in $ac_file_in; do | |
22590 case $f in | |
22591 -) echo $tmp/stdin ;; | |
22592 [\\/$]*) | |
22593 # Absolute (can't be DOS-style, as IFS=:) | |
22594 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file
: $f" >&5 | |
22595 echo "$as_me: error: cannot find input file: $f" >&2;} | |
22596 { (exit 1); exit 1; }; } | |
22597 echo "$f";; | |
22598 *) # Relative | |
22599 if test -f "$f"; then | |
22600 # Build tree | |
22601 echo "$f" | |
22602 elif test -f "$srcdir/$f"; then | |
22603 # Source tree | |
22604 echo "$srcdir/$f" | |
22605 else | |
22606 # /dev/null tree | |
22607 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
22608 echo "$as_me: error: cannot find input file: $f" >&2;} | |
22609 { (exit 1); exit 1; }; } | |
22610 fi;; | |
22611 esac | |
22612 done` || { (exit 1); exit 1; } | |
22613 | |
22614 if test x"$ac_file" != x-; then | |
22615 { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
22616 echo "$as_me: creating $ac_file" >&6;} | |
22617 rm -f "$ac_file" | |
22618 fi | |
22619 _ACEOF | |
22620 cat >>$CONFIG_STATUS <<_ACEOF | |
22621 sed "$ac_vpsub | |
22622 $extrasub | |
22623 _ACEOF | |
22624 cat >>$CONFIG_STATUS <<\_ACEOF | |
22625 :t | |
22626 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
22627 s,@configure_input@,$configure_input,;t t | |
22628 s,@srcdir@,$ac_srcdir,;t t | |
22629 s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
22630 s,@top_srcdir@,$ac_top_srcdir,;t t | |
22631 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
22632 s,@builddir@,$ac_builddir,;t t | |
22633 s,@abs_builddir@,$ac_abs_builddir,;t t | |
22634 s,@top_builddir@,$ac_top_builddir,;t t | |
22635 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
22636 s,@INSTALL@,$ac_INSTALL,;t t | |
22637 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
22638 rm -f $tmp/stdin | |
22639 if test x"$ac_file" != x-; then | |
22640 mv $tmp/out $ac_file | |
22641 else | |
22642 cat $tmp/out | |
22643 rm -f $tmp/out | |
22644 fi | |
22645 | |
22646 done | |
22647 _ACEOF | |
22648 cat >>$CONFIG_STATUS <<\_ACEOF | |
22649 | |
22650 # | |
22651 # CONFIG_HEADER section. | |
22652 # | |
22653 | |
22654 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
22655 # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
22656 # | |
22657 # ac_d sets the value in "#define NAME VALUE" lines. | |
22658 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
22659 ac_dB='[ ].*$,\1#\2' | |
22660 ac_dC=' ' | |
22661 ac_dD=',;t' | |
22662 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
22663 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
22664 ac_uB='$,\1#\2define\3' | |
22665 ac_uC=' ' | |
22666 ac_uD=',;t' | |
22667 | |
22668 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
22669 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
22670 case $ac_file in | |
22671 - | *:- | *:-:* ) # input from stdin | |
22672 cat >$tmp/stdin | |
22673 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22674 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
22675 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22676 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
22677 * ) ac_file_in=$ac_file.in ;; | |
22678 esac | |
22679 | |
22680 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
22681 echo "$as_me: creating $ac_file" >&6;} | |
22682 | |
22683 # First look for the input files in the build tree, otherwise in the | |
22684 # src tree. | |
22685 ac_file_inputs=`IFS=: | |
22686 for f in $ac_file_in; do | |
22687 case $f in | |
22688 -) echo $tmp/stdin ;; | |
22689 [\\/$]*) | |
22690 # Absolute (can't be DOS-style, as IFS=:) | |
22691 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file
: $f" >&5 | |
22692 echo "$as_me: error: cannot find input file: $f" >&2;} | |
22693 { (exit 1); exit 1; }; } | |
22694 # Do quote $f, to prevent DOS paths from being IFS'd. | |
22695 echo "$f";; | |
22696 *) # Relative | |
22697 if test -f "$f"; then | |
22698 # Build tree | |
22699 echo "$f" | |
22700 elif test -f "$srcdir/$f"; then | |
22701 # Source tree | |
22702 echo "$srcdir/$f" | |
22703 else | |
22704 # /dev/null tree | |
22705 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
22706 echo "$as_me: error: cannot find input file: $f" >&2;} | |
22707 { (exit 1); exit 1; }; } | |
22708 fi;; | |
22709 esac | |
22710 done` || { (exit 1); exit 1; } | |
22711 # Remove the trailing spaces. | |
22712 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
22713 | |
22714 _ACEOF | |
22715 | |
22716 # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
22717 # `conftest.undefs', that substitutes the proper values into | |
22718 # config.h.in to produce config.h. The first handles `#define' | |
22719 # templates, and the second `#undef' templates. | |
22720 # And first: Protect against being on the right side of a sed subst in | |
22721 # config.status. Protect against being in an unquoted here document | |
22722 # in config.status. | |
22723 rm -f conftest.defines conftest.undefs | |
22724 # Using a here document instead of a string reduces the quoting nightmare. | |
22725 # Putting comments in sed scripts is not portable. | |
22726 # | |
22727 # `end' is used to avoid that the second main sed command (meant for | |
22728 # 0-ary CPP macros) applies to n-ary macro definitions. | |
22729 # See the Autoconf documentation for `clear'. | |
22730 cat >confdef2sed.sed <<\_ACEOF | |
22731 s/[\\&,]/\\&/g | |
22732 s,[\\$`],\\&,g | |
22733 t clear | |
22734 : clear | |
22735 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[
]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
22736 t end | |
22737 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_
dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
22738 : end | |
22739 _ACEOF | |
22740 # If some macros were called several times there might be several times | |
22741 # the same #defines, which is useless. Nevertheless, we may not want to | |
22742 # sort them, since we want the *last* AC-DEFINE to be honored. | |
22743 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
22744 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
22745 rm -f confdef2sed.sed | |
22746 | |
22747 # This sed command replaces #undef with comments. This is necessary, for | |
22748 # example, in the case of _POSIX_SOURCE, which is predefined and required | |
22749 # on some systems where configure will not decide to define it. | |
22750 cat >>conftest.undefs <<\_ACEOF | |
22751 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
22752 _ACEOF | |
22753 | |
22754 # Break up conftest.defines because some shells have a limit on the size | |
22755 # of here documents, and old seds have small limits too (100 cmds). | |
22756 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
22757 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_S
TATUS | |
22758 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
22759 echo ' :' >>$CONFIG_STATUS | |
22760 rm -f conftest.tail | |
22761 while grep . conftest.defines >/dev/null | |
22762 do | |
22763 # Write a limited-size here document to $tmp/defines.sed. | |
22764 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
22765 # Speed up: don't consider the non `#define' lines. | |
22766 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
22767 # Work around the forget-to-reset-the-flag bug. | |
22768 echo 't clr' >>$CONFIG_STATUS | |
22769 echo ': clr' >>$CONFIG_STATUS | |
22770 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
22771 echo 'CEOF | |
22772 sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
22773 rm -f $tmp/in | |
22774 mv $tmp/out $tmp/in | |
22775 ' >>$CONFIG_STATUS | |
22776 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
22777 rm -f conftest.defines | |
22778 mv conftest.tail conftest.defines | |
22779 done | |
22780 rm -f conftest.defines | |
22781 echo ' fi # grep' >>$CONFIG_STATUS | |
22782 echo >>$CONFIG_STATUS | |
22783 | |
22784 # Break up conftest.undefs because some shells have a limit on the size | |
22785 # of here documents, and old seds have small limits too (100 cmds). | |
22786 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
22787 rm -f conftest.tail | |
22788 while grep . conftest.undefs >/dev/null | |
22789 do | |
22790 # Write a limited-size here document to $tmp/undefs.sed. | |
22791 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
22792 # Speed up: don't consider the non `#undef' | |
22793 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
22794 # Work around the forget-to-reset-the-flag bug. | |
22795 echo 't clr' >>$CONFIG_STATUS | |
22796 echo ': clr' >>$CONFIG_STATUS | |
22797 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
22798 echo 'CEOF | |
22799 sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
22800 rm -f $tmp/in | |
22801 mv $tmp/out $tmp/in | |
22802 ' >>$CONFIG_STATUS | |
22803 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
22804 rm -f conftest.undefs | |
22805 mv conftest.tail conftest.undefs | |
22806 done | |
22807 rm -f conftest.undefs | |
22808 | |
22809 cat >>$CONFIG_STATUS <<\_ACEOF | |
22810 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
22811 # use $as_me), people would be surprised to read: | |
22812 # /* config.h. Generated by config.status. */ | |
22813 if test x"$ac_file" = x-; then | |
22814 echo "/* Generated by configure. */" >$tmp/config.h | |
22815 else | |
22816 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
22817 fi | |
22818 cat $tmp/in >>$tmp/config.h | |
22819 rm -f $tmp/in | |
22820 if test x"$ac_file" != x-; then | |
22821 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
22822 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
22823 echo "$as_me: $ac_file is unchanged" >&6;} | |
22824 else | |
22825 ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
22826 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22827 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
22828 X"$ac_file" : 'X\(//\)$' \| \ | |
22829 X"$ac_file" : 'X\(/\)' \| \ | |
22830 . : '\(.\)' 2>/dev/null || | |
22831 echo X"$ac_file" | | |
22832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22833 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22834 /^X\(\/\/\)$/{ s//\1/; q; } | |
22835 /^X\(\/\).*/{ s//\1/; q; } | |
22836 s/.*/./; q'` | |
22837 { if $as_mkdir_p; then | |
22838 mkdir -p "$ac_dir" | |
22839 else | |
22840 as_dir="$ac_dir" | |
22841 as_dirs= | |
22842 while test ! -d "$as_dir"; do | |
22843 as_dirs="$as_dir $as_dirs" | |
22844 as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22845 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22846 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22847 X"$as_dir" : 'X\(//\)$' \| \ | |
22848 X"$as_dir" : 'X\(/\)' \| \ | |
22849 . : '\(.\)' 2>/dev/null || | |
22850 echo X"$as_dir" | | |
22851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22852 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22853 /^X\(\/\/\)$/{ s//\1/; q; } | |
22854 /^X\(\/\).*/{ s//\1/; q; } | |
22855 s/.*/./; q'` | |
22856 done | |
22857 test ! -n "$as_dirs" || mkdir $as_dirs | |
22858 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&
5 | |
22859 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22860 { (exit 1); exit 1; }; }; } | |
22861 | |
22862 rm -f $ac_file | |
22863 mv $tmp/config.h $ac_file | |
22864 fi | |
22865 else | |
22866 cat $tmp/config.h | |
22867 rm -f $tmp/config.h | |
22868 fi | |
22869 # Compute $ac_file's index in $config_headers. | |
22870 _am_stamp_count=1 | |
22871 for _am_header in $config_headers :; do | |
22872 case $_am_header in | |
22873 $ac_file | $ac_file:* ) | |
22874 break ;; | |
22875 * ) | |
22876 _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
22877 esac | |
22878 done | |
22879 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
22880 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22881 X$ac_file : 'X\(//\)[^/]' \| \ | |
22882 X$ac_file : 'X\(//\)$' \| \ | |
22883 X$ac_file : 'X\(/\)' \| \ | |
22884 . : '\(.\)' 2>/dev/null || | |
22885 echo X$ac_file | | |
22886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22887 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22888 /^X\(\/\/\)$/{ s//\1/; q; } | |
22889 /^X\(\/\).*/{ s//\1/; q; } | |
22890 s/.*/./; q'`/stamp-h$_am_stamp_count | |
22891 done | |
22892 _ACEOF | |
22893 cat >>$CONFIG_STATUS <<\_ACEOF | |
22894 | |
22895 # | |
22896 # CONFIG_COMMANDS section. | |
22897 # | |
22898 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
22899 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
22900 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22901 ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
22902 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22903 X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
22904 X"$ac_dest" : 'X\(//\)$' \| \ | |
22905 X"$ac_dest" : 'X\(/\)' \| \ | |
22906 . : '\(.\)' 2>/dev/null || | |
22907 echo X"$ac_dest" | | |
22908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22909 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22910 /^X\(\/\/\)$/{ s//\1/; q; } | |
22911 /^X\(\/\).*/{ s//\1/; q; } | |
22912 s/.*/./; q'` | |
22913 { if $as_mkdir_p; then | |
22914 mkdir -p "$ac_dir" | |
22915 else | |
22916 as_dir="$ac_dir" | |
22917 as_dirs= | |
22918 while test ! -d "$as_dir"; do | |
22919 as_dirs="$as_dir $as_dirs" | |
22920 as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22921 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22922 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22923 X"$as_dir" : 'X\(//\)$' \| \ | |
22924 X"$as_dir" : 'X\(/\)' \| \ | |
22925 . : '\(.\)' 2>/dev/null || | |
22926 echo X"$as_dir" | | |
22927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22928 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22929 /^X\(\/\/\)$/{ s//\1/; q; } | |
22930 /^X\(\/\).*/{ s//\1/; q; } | |
22931 s/.*/./; q'` | |
22932 done | |
22933 test ! -n "$as_dirs" || mkdir $as_dirs | |
22934 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&
5 | |
22935 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22936 { (exit 1); exit 1; }; }; } | |
22937 | |
22938 ac_builddir=. | |
22939 | |
22940 if test "$ac_dir" != .; then | |
22941 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
22942 # A "../" for each directory in $ac_dir_suffix. | |
22943 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
22944 else | |
22945 ac_dir_suffix= ac_top_builddir= | |
22946 fi | |
22947 | |
22948 case $srcdir in | |
22949 .) # No --srcdir option. We are building in place. | |
22950 ac_srcdir=. | |
22951 if test -z "$ac_top_builddir"; then | |
22952 ac_top_srcdir=. | |
22953 else | |
22954 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
22955 fi ;; | |
22956 [\\/]* | ?:[\\/]* ) # Absolute path. | |
22957 ac_srcdir=$srcdir$ac_dir_suffix; | |
22958 ac_top_srcdir=$srcdir ;; | |
22959 *) # Relative path. | |
22960 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
22961 ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
22962 esac | |
22963 | |
22964 # Do not use `cd foo && pwd` to compute absolute paths, because | |
22965 # the directories may not exist. | |
22966 case `pwd` in | |
22967 .) ac_abs_builddir="$ac_dir";; | |
22968 *) | |
22969 case "$ac_dir" in | |
22970 .) ac_abs_builddir=`pwd`;; | |
22971 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
22972 *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
22973 esac;; | |
22974 esac | |
22975 case $ac_abs_builddir in | |
22976 .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22977 *) | |
22978 case ${ac_top_builddir}. in | |
22979 .) ac_abs_top_builddir=$ac_abs_builddir;; | |
22980 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22981 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
22982 esac;; | |
22983 esac | |
22984 case $ac_abs_builddir in | |
22985 .) ac_abs_srcdir=$ac_srcdir;; | |
22986 *) | |
22987 case $ac_srcdir in | |
22988 .) ac_abs_srcdir=$ac_abs_builddir;; | |
22989 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
22990 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
22991 esac;; | |
22992 esac | |
22993 case $ac_abs_builddir in | |
22994 .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22995 *) | |
22996 case $ac_top_srcdir in | |
22997 .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
22998 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22999 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
23000 esac;; | |
23001 esac | |
23002 | |
23003 | |
23004 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
23005 echo "$as_me: executing $ac_dest commands" >&6;} | |
23006 case $ac_dest in | |
23007 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
23008 # Strip MF so we end up with the name of the file. | |
23009 mf=`echo "$mf" | sed -e 's/:.*$//'` | |
23010 # Check whether this is an Automake generated Makefile or not. | |
23011 # We used to match only the files named `Makefile.in', but | |
23012 # some people rename them; so instead we look at the file content. | |
23013 # Grep'ing the first line is not enough: some people post-process | |
23014 # each Makefile.in and add a new line on top of each file to say so. | |
23015 # So let's grep whole file. | |
23016 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
23017 dirpart=`(dirname "$mf") 2>/dev/null || | |
23018 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23019 X"$mf" : 'X\(//\)[^/]' \| \ | |
23020 X"$mf" : 'X\(//\)$' \| \ | |
23021 X"$mf" : 'X\(/\)' \| \ | |
23022 . : '\(.\)' 2>/dev/null || | |
23023 echo X"$mf" | | |
23024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23025 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23026 /^X\(\/\/\)$/{ s//\1/; q; } | |
23027 /^X\(\/\).*/{ s//\1/; q; } | |
23028 s/.*/./; q'` | |
23029 else | |
23030 continue | |
23031 fi | |
23032 # Extract the definition of DEPDIR, am__include, and am__quote | |
23033 # from the Makefile without running `make'. | |
23034 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
23035 test -z "$DEPDIR" && continue | |
23036 am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
23037 test -z "am__include" && continue | |
23038 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
23039 # When using ansi2knr, U may be empty or an underscore; expand it | |
23040 U=`sed -n 's/^U = //p' < "$mf"` | |
23041 # Find all dependency output files, they are included files with | |
23042 # $(DEPDIR) in their names. We invoke sed twice because it is the | |
23043 # simplest approach to changing $(DEPDIR) to its actual value in the | |
23044 # expansion. | |
23045 for file in `sed -n " | |
23046 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
23047 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
23048 # Make sure the directory exists. | |
23049 test -f "$dirpart/$file" && continue | |
23050 fdir=`(dirname "$file") 2>/dev/null || | |
23051 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23052 X"$file" : 'X\(//\)[^/]' \| \ | |
23053 X"$file" : 'X\(//\)$' \| \ | |
23054 X"$file" : 'X\(/\)' \| \ | |
23055 . : '\(.\)' 2>/dev/null || | |
23056 echo X"$file" | | |
23057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23058 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23059 /^X\(\/\/\)$/{ s//\1/; q; } | |
23060 /^X\(\/\).*/{ s//\1/; q; } | |
23061 s/.*/./; q'` | |
23062 { if $as_mkdir_p; then | |
23063 mkdir -p $dirpart/$fdir | |
23064 else | |
23065 as_dir=$dirpart/$fdir | |
23066 as_dirs= | |
23067 while test ! -d "$as_dir"; do | |
23068 as_dirs="$as_dir $as_dirs" | |
23069 as_dir=`(dirname "$as_dir") 2>/dev/null || | |
23070 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23071 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
23072 X"$as_dir" : 'X\(//\)$' \| \ | |
23073 X"$as_dir" : 'X\(/\)' \| \ | |
23074 . : '\(.\)' 2>/dev/null || | |
23075 echo X"$as_dir" | | |
23076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23077 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23078 /^X\(\/\/\)$/{ s//\1/; q; } | |
23079 /^X\(\/\).*/{ s//\1/; q; } | |
23080 s/.*/./; q'` | |
23081 done | |
23082 test ! -n "$as_dirs" || mkdir $as_dirs | |
23083 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir"
>&5 | |
23084 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
23085 { (exit 1); exit 1; }; }; } | |
23086 | |
23087 # echo "creating $dirpart/$file" | |
23088 echo '# dummy' > "$dirpart/$file" | |
23089 done | |
23090 done | |
23091 ;; | |
23092 esac | |
23093 done | |
23094 _ACEOF | |
23095 | |
23096 cat >>$CONFIG_STATUS <<\_ACEOF | |
23097 | |
23098 { (exit 0); exit 0; } | |
23099 _ACEOF | |
23100 chmod +x $CONFIG_STATUS | |
23101 ac_clean_files=$ac_clean_files_save | |
23102 | |
23103 | |
23104 # configure is writing to config.log, and then calls config.status. | |
23105 # config.status does its own redirection, appending to config.log. | |
23106 # Unfortunately, on DOS this fails, as config.log is still kept open | |
23107 # by configure, so config.status won't be able to write to it; its | |
23108 # output is simply discarded. So we exec the FD to /dev/null, | |
23109 # effectively closing config.log, so it can be properly (re)opened and | |
23110 # appended to by config.status. When coming back to configure, we | |
23111 # need to make the FD available again. | |
23112 if test "$no_create" != yes; then | |
23113 ac_cs_success=: | |
23114 ac_config_status_args= | |
23115 test "$silent" = yes && | |
23116 ac_config_status_args="$ac_config_status_args --quiet" | |
23117 exec 5>/dev/null | |
23118 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
23119 exec 5>>config.log | |
23120 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
23121 # would make configure fail if this is the last instruction. | |
23122 $ac_cs_success || { (exit 1); exit 1; } | |
23123 fi | |
23124 | |
OLD | NEW |