1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.59 for ThirdPartyGlpk 0.0. |
---|
4 | # |
---|
5 | # Report bugs to <http://projects.coin-or.org/BuildTools/newticket>. |
---|
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 | # |
---|
12 | # Copyright 2007 Stefan Vigerske and others. |
---|
13 | # All Rights Reserved. |
---|
14 | # This file is part of the open source package Coin which is distributed |
---|
15 | # under the Common Public License. |
---|
16 | ## --------------------- ## |
---|
17 | ## M4sh Initialization. ## |
---|
18 | ## --------------------- ## |
---|
19 | |
---|
20 | # Be Bourne compatible |
---|
21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
22 | emulate sh |
---|
23 | NULLCMD=: |
---|
24 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
25 | # is contrary to our usage. Disable this feature. |
---|
26 | alias -g '${1+"$@"}'='"$@"' |
---|
27 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
28 | set -o posix |
---|
29 | fi |
---|
30 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
31 | |
---|
32 | # Support unset when possible. |
---|
33 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
34 | as_unset=unset |
---|
35 | else |
---|
36 | as_unset=false |
---|
37 | fi |
---|
38 | |
---|
39 | |
---|
40 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
41 | $as_unset ENV MAIL MAILPATH |
---|
42 | PS1='$ ' |
---|
43 | PS2='> ' |
---|
44 | PS4='+ ' |
---|
45 | |
---|
46 | # NLS nuisances. |
---|
47 | for as_var in \ |
---|
48 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
49 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
50 | LC_TELEPHONE LC_TIME |
---|
51 | do |
---|
52 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
53 | eval $as_var=C; export $as_var |
---|
54 | else |
---|
55 | $as_unset $as_var |
---|
56 | fi |
---|
57 | done |
---|
58 | |
---|
59 | # Required to use basename. |
---|
60 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
61 | as_expr=expr |
---|
62 | else |
---|
63 | as_expr=false |
---|
64 | fi |
---|
65 | |
---|
66 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
67 | as_basename=basename |
---|
68 | else |
---|
69 | as_basename=false |
---|
70 | fi |
---|
71 | |
---|
72 | |
---|
73 | # Name of the executable. |
---|
74 | as_me=`$as_basename "$0" || |
---|
75 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
76 | X"$0" : 'X\(//\)$' \| \ |
---|
77 | X"$0" : 'X\(/\)$' \| \ |
---|
78 | . : '\(.\)' 2>/dev/null || |
---|
79 | echo X/"$0" | |
---|
80 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
81 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
82 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
83 | s/.*/./; q'` |
---|
84 | |
---|
85 | |
---|
86 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
87 | # Avoid depending upon Character Ranges. |
---|
88 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
89 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
90 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
91 | as_cr_digits='0123456789' |
---|
92 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
93 | |
---|
94 | # The user is always right. |
---|
95 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
96 | echo "#! /bin/sh" >conf$$.sh |
---|
97 | echo "exit 0" >>conf$$.sh |
---|
98 | chmod +x conf$$.sh |
---|
99 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
100 | PATH_SEPARATOR=';' |
---|
101 | else |
---|
102 | PATH_SEPARATOR=: |
---|
103 | fi |
---|
104 | rm -f conf$$.sh |
---|
105 | fi |
---|
106 | |
---|
107 | |
---|
108 | as_lineno_1=$LINENO |
---|
109 | as_lineno_2=$LINENO |
---|
110 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
111 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
112 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
113 | # Find who we are. Look in the path if we contain no path at all |
---|
114 | # relative or not. |
---|
115 | case $0 in |
---|
116 | *[\\/]* ) as_myself=$0 ;; |
---|
117 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
118 | for as_dir in $PATH |
---|
119 | do |
---|
120 | IFS=$as_save_IFS |
---|
121 | test -z "$as_dir" && as_dir=. |
---|
122 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
123 | done |
---|
124 | |
---|
125 | ;; |
---|
126 | esac |
---|
127 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
128 | # in which case we are not to be found in the path. |
---|
129 | if test "x$as_myself" = x; then |
---|
130 | as_myself=$0 |
---|
131 | fi |
---|
132 | if test ! -f "$as_myself"; then |
---|
133 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
---|
134 | { (exit 1); exit 1; }; } |
---|
135 | fi |
---|
136 | case $CONFIG_SHELL in |
---|
137 | '') |
---|
138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
139 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
140 | do |
---|
141 | IFS=$as_save_IFS |
---|
142 | test -z "$as_dir" && as_dir=. |
---|
143 | for as_base in sh bash ksh sh5; do |
---|
144 | case $as_dir in |
---|
145 | /*) |
---|
146 | if ("$as_dir/$as_base" -c ' |
---|
147 | as_lineno_1=$LINENO |
---|
148 | as_lineno_2=$LINENO |
---|
149 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
150 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
151 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
152 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
153 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
154 | CONFIG_SHELL=$as_dir/$as_base |
---|
155 | export CONFIG_SHELL |
---|
156 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
157 | fi;; |
---|
158 | esac |
---|
159 | done |
---|
160 | done |
---|
161 | ;; |
---|
162 | esac |
---|
163 | |
---|
164 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
165 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
166 | # line-number line before each line; the second 'sed' does the real |
---|
167 | # work. The second script uses 'N' to pair each line-number line |
---|
168 | # with the numbered line, and appends trailing '-' during |
---|
169 | # substitution so that $LINENO is not a special case at line end. |
---|
170 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
171 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
172 | sed '=' <$as_myself | |
---|
173 | sed ' |
---|
174 | N |
---|
175 | s,$,-, |
---|
176 | : loop |
---|
177 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
178 | t loop |
---|
179 | s,-$,, |
---|
180 | s,^['$as_cr_digits']*\n,, |
---|
181 | ' >$as_me.lineno && |
---|
182 | chmod +x $as_me.lineno || |
---|
183 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
184 | { (exit 1); exit 1; }; } |
---|
185 | |
---|
186 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
187 | # (the dirname of $[0] is not the place where we might find the |
---|
188 | # original and so on. Autoconf is especially sensible to this). |
---|
189 | . ./$as_me.lineno |
---|
190 | # Exit status is that of the last command. |
---|
191 | exit |
---|
192 | } |
---|
193 | |
---|
194 | |
---|
195 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
196 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
197 | ' ECHO_T=' ' ;; |
---|
198 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
199 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
200 | esac |
---|
201 | |
---|
202 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
203 | as_expr=expr |
---|
204 | else |
---|
205 | as_expr=false |
---|
206 | fi |
---|
207 | |
---|
208 | rm -f conf$$ conf$$.exe conf$$.file |
---|
209 | echo >conf$$.file |
---|
210 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
211 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
212 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
213 | if test -f conf$$.exe; then |
---|
214 | # Don't use ln at all; we don't have any links |
---|
215 | as_ln_s='cp -p' |
---|
216 | else |
---|
217 | as_ln_s='ln -s' |
---|
218 | fi |
---|
219 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
220 | as_ln_s=ln |
---|
221 | else |
---|
222 | as_ln_s='cp -p' |
---|
223 | fi |
---|
224 | rm -f conf$$ conf$$.exe conf$$.file |
---|
225 | |
---|
226 | if mkdir -p . 2>/dev/null; then |
---|
227 | as_mkdir_p=: |
---|
228 | else |
---|
229 | test -d ./-p && rmdir ./-p |
---|
230 | as_mkdir_p=false |
---|
231 | fi |
---|
232 | |
---|
233 | as_executable_p="test -f" |
---|
234 | |
---|
235 | # Sed expression to map a string onto a valid CPP name. |
---|
236 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
237 | |
---|
238 | # Sed expression to map a string onto a valid variable name. |
---|
239 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
240 | |
---|
241 | |
---|
242 | # IFS |
---|
243 | # We need space, tab and new line, in precisely that order. |
---|
244 | as_nl=' |
---|
245 | ' |
---|
246 | IFS=" $as_nl" |
---|
247 | |
---|
248 | # CDPATH. |
---|
249 | $as_unset CDPATH |
---|
250 | |
---|
251 | |
---|
252 | |
---|
253 | # Check that we are running under the correct shell. |
---|
254 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
255 | |
---|
256 | case X$ECHO in |
---|
257 | X*--fallback-echo) |
---|
258 | # Remove one level of quotation (which was required for Make). |
---|
259 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
---|
260 | ;; |
---|
261 | esac |
---|
262 | |
---|
263 | echo=${ECHO-echo} |
---|
264 | if test "X$1" = X--no-reexec; then |
---|
265 | # Discard the --no-reexec flag, and continue. |
---|
266 | shift |
---|
267 | elif test "X$1" = X--fallback-echo; then |
---|
268 | # Avoid inline document here, it may be left over |
---|
269 | : |
---|
270 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
---|
271 | # Yippee, $echo works! |
---|
272 | : |
---|
273 | else |
---|
274 | # Restart under the correct shell. |
---|
275 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
---|
276 | fi |
---|
277 | |
---|
278 | if test "X$1" = X--fallback-echo; then |
---|
279 | # used as fallback echo |
---|
280 | shift |
---|
281 | cat <<EOF |
---|
282 | $* |
---|
283 | EOF |
---|
284 | exit 0 |
---|
285 | fi |
---|
286 | |
---|
287 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
---|
288 | # if CDPATH is set. |
---|
289 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
290 | |
---|
291 | if test -z "$ECHO"; then |
---|
292 | if test "X${echo_test_string+set}" != Xset; then |
---|
293 | # find a string as large as possible, as long as the shell can cope with it |
---|
294 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
---|
295 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
---|
296 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
---|
297 | echo_test_string=`eval $cmd` && |
---|
298 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
---|
299 | then |
---|
300 | break |
---|
301 | fi |
---|
302 | done |
---|
303 | fi |
---|
304 | |
---|
305 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
---|
306 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
---|
307 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
308 | : |
---|
309 | else |
---|
310 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
---|
311 | # backslashes. This makes it impossible to quote backslashes using |
---|
312 | # echo "$something" | sed 's/\\/\\\\/g' |
---|
313 | # |
---|
314 | # So, first we look for a working echo in the user's PATH. |
---|
315 | |
---|
316 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
317 | for dir in $PATH /usr/ucb; do |
---|
318 | IFS="$lt_save_ifs" |
---|
319 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
---|
320 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
---|
321 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
---|
322 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
323 | echo="$dir/echo" |
---|
324 | break |
---|
325 | fi |
---|
326 | done |
---|
327 | IFS="$lt_save_ifs" |
---|
328 | |
---|
329 | if test "X$echo" = Xecho; then |
---|
330 | # We didn't find a better echo, so look for alternatives. |
---|
331 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
---|
332 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
---|
333 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
334 | # This shell has a builtin print -r that does the trick. |
---|
335 | echo='print -r' |
---|
336 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
---|
337 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
---|
338 | # If we have ksh, try running configure again with it. |
---|
339 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
---|
340 | export ORIGINAL_CONFIG_SHELL |
---|
341 | CONFIG_SHELL=/bin/ksh |
---|
342 | export CONFIG_SHELL |
---|
343 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
---|
344 | else |
---|
345 | # Try using printf. |
---|
346 | echo='printf %s\n' |
---|
347 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
---|
348 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
---|
349 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
350 | # Cool, printf works |
---|
351 | : |
---|
352 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
---|
353 | test "X$echo_testing_string" = 'X\t' && |
---|
354 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
---|
355 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
356 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
---|
357 | export CONFIG_SHELL |
---|
358 | SHELL="$CONFIG_SHELL" |
---|
359 | export SHELL |
---|
360 | echo="$CONFIG_SHELL $0 --fallback-echo" |
---|
361 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
---|
362 | test "X$echo_testing_string" = 'X\t' && |
---|
363 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
---|
364 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
365 | echo="$CONFIG_SHELL $0 --fallback-echo" |
---|
366 | else |
---|
367 | # maybe with a smaller string... |
---|
368 | prev=: |
---|
369 | |
---|
370 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
---|
371 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
---|
372 | then |
---|
373 | break |
---|
374 | fi |
---|
375 | prev="$cmd" |
---|
376 | done |
---|
377 | |
---|
378 | if test "$prev" != 'sed 50q "$0"'; then |
---|
379 | echo_test_string=`eval $prev` |
---|
380 | export echo_test_string |
---|
381 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
---|
382 | else |
---|
383 | # Oops. We lost completely, so just stick with echo. |
---|
384 | echo=echo |
---|
385 | fi |
---|
386 | fi |
---|
387 | fi |
---|
388 | fi |
---|
389 | fi |
---|
390 | fi |
---|
391 | |
---|
392 | # Copy echo and quote the copy suitably for passing to libtool from |
---|
393 | # the Makefile, instead of quoting the original, which is used later. |
---|
394 | ECHO=$echo |
---|
395 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
---|
396 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
---|
397 | fi |
---|
398 | |
---|
399 | |
---|
400 | |
---|
401 | |
---|
402 | tagnames=${tagnames+${tagnames},}CXX |
---|
403 | |
---|
404 | tagnames=${tagnames+${tagnames},}F77 |
---|
405 | |
---|
406 | # Name of the host. |
---|
407 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
408 | # so uname gets run too. |
---|
409 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
410 | |
---|
411 | exec 6>&1 |
---|
412 | |
---|
413 | # |
---|
414 | # Initializations. |
---|
415 | # |
---|
416 | ac_default_prefix=/usr/local |
---|
417 | ac_config_libobj_dir=. |
---|
418 | cross_compiling=no |
---|
419 | subdirs= |
---|
420 | MFLAGS= |
---|
421 | MAKEFLAGS= |
---|
422 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
423 | |
---|
424 | # Maximum number of lines to put in a shell here document. |
---|
425 | # This variable seems obsolete. It should probably be removed, and |
---|
426 | # only ac_max_sed_lines should be used. |
---|
427 | : ${ac_max_here_lines=38} |
---|
428 | |
---|
429 | # Identity of this package. |
---|
430 | PACKAGE_NAME='ThirdPartyGlpk' |
---|
431 | PACKAGE_TARNAME='thirdpartyglpk' |
---|
432 | PACKAGE_VERSION='0.0' |
---|
433 | PACKAGE_STRING='ThirdPartyGlpk 0.0' |
---|
434 | PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket' |
---|
435 | |
---|
436 | ac_unique_file="Makefile.am" |
---|
437 | ac_default_prefix=`pwd` |
---|
438 | # Factoring default headers for most tests. |
---|
439 | ac_includes_default="\ |
---|
440 | #include <stdio.h> |
---|
441 | #if HAVE_SYS_TYPES_H |
---|
442 | # include <sys/types.h> |
---|
443 | #endif |
---|
444 | #if HAVE_SYS_STAT_H |
---|
445 | # include <sys/stat.h> |
---|
446 | #endif |
---|
447 | #if STDC_HEADERS |
---|
448 | # include <stdlib.h> |
---|
449 | # include <stddef.h> |
---|
450 | #else |
---|
451 | # if HAVE_STDLIB_H |
---|
452 | # include <stdlib.h> |
---|
453 | # endif |
---|
454 | #endif |
---|
455 | #if HAVE_STRING_H |
---|
456 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
457 | # include <memory.h> |
---|
458 | # endif |
---|
459 | # include <string.h> |
---|
460 | #endif |
---|
461 | #if HAVE_STRINGS_H |
---|
462 | # include <strings.h> |
---|
463 | #endif |
---|
464 | #if HAVE_INTTYPES_H |
---|
465 | # include <inttypes.h> |
---|
466 | #else |
---|
467 | # if HAVE_STDINT_H |
---|
468 | # include <stdint.h> |
---|
469 | # endif |
---|
470 | #endif |
---|
471 | #if HAVE_UNISTD_H |
---|
472 | # include <unistd.h> |
---|
473 | #endif" |
---|
474 | |
---|
475 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS GLPKINCDIR GLPKLIB COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE COIN_BUILD_GLPK_TRUE COIN_BUILD_GLPK_FALSE MAKEOKFILE GLPKDIR LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS' |
---|
476 | ac_subst_files='' |
---|
477 | |
---|
478 | # Initialize some variables set by options. |
---|
479 | ac_init_help= |
---|
480 | ac_init_version=false |
---|
481 | # The variables have the same names as the options, with |
---|
482 | # dashes changed to underlines. |
---|
483 | cache_file=/dev/null |
---|
484 | exec_prefix=NONE |
---|
485 | no_create= |
---|
486 | no_recursion= |
---|
487 | prefix=NONE |
---|
488 | program_prefix=NONE |
---|
489 | program_suffix=NONE |
---|
490 | program_transform_name=s,x,x, |
---|
491 | silent= |
---|
492 | site= |
---|
493 | srcdir= |
---|
494 | verbose= |
---|
495 | x_includes=NONE |
---|
496 | x_libraries=NONE |
---|
497 | |
---|
498 | # Installation directory options. |
---|
499 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
500 | # and all the variables that are supposed to be based on exec_prefix |
---|
501 | # by default will actually change. |
---|
502 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
503 | bindir='${exec_prefix}/bin' |
---|
504 | sbindir='${exec_prefix}/sbin' |
---|
505 | libexecdir='${exec_prefix}/libexec' |
---|
506 | datadir='${prefix}/share' |
---|
507 | sysconfdir='${prefix}/etc' |
---|
508 | sharedstatedir='${prefix}/com' |
---|
509 | localstatedir='${prefix}/var' |
---|
510 | libdir='${exec_prefix}/lib' |
---|
511 | includedir='${prefix}/include' |
---|
512 | oldincludedir='/usr/include' |
---|
513 | infodir='${prefix}/info' |
---|
514 | mandir='${prefix}/man' |
---|
515 | |
---|
516 | ac_prev= |
---|
517 | for ac_option |
---|
518 | do |
---|
519 | # If the previous option needs an argument, assign it. |
---|
520 | if test -n "$ac_prev"; then |
---|
521 | eval "$ac_prev=\$ac_option" |
---|
522 | ac_prev= |
---|
523 | continue |
---|
524 | fi |
---|
525 | |
---|
526 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
527 | |
---|
528 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
529 | |
---|
530 | case $ac_option in |
---|
531 | |
---|
532 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
533 | ac_prev=bindir ;; |
---|
534 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
535 | bindir=$ac_optarg ;; |
---|
536 | |
---|
537 | -build | --build | --buil | --bui | --bu) |
---|
538 | ac_prev=build_alias ;; |
---|
539 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
540 | build_alias=$ac_optarg ;; |
---|
541 | |
---|
542 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
543 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
544 | ac_prev=cache_file ;; |
---|
545 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
546 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
547 | cache_file=$ac_optarg ;; |
---|
548 | |
---|
549 | --config-cache | -C) |
---|
550 | cache_file=config.cache ;; |
---|
551 | |
---|
552 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
553 | ac_prev=datadir ;; |
---|
554 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
555 | | --da=*) |
---|
556 | datadir=$ac_optarg ;; |
---|
557 | |
---|
558 | -disable-* | --disable-*) |
---|
559 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
560 | # Reject names that are not valid shell variable names. |
---|
561 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
562 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
563 | { (exit 1); exit 1; }; } |
---|
564 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
565 | eval "enable_$ac_feature=no" ;; |
---|
566 | |
---|
567 | -enable-* | --enable-*) |
---|
568 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
569 | # Reject names that are not valid shell variable names. |
---|
570 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
571 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
572 | { (exit 1); exit 1; }; } |
---|
573 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
574 | case $ac_option in |
---|
575 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
576 | *) ac_optarg=yes ;; |
---|
577 | esac |
---|
578 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
579 | |
---|
580 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
581 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
582 | | --exec | --exe | --ex) |
---|
583 | ac_prev=exec_prefix ;; |
---|
584 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
585 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
586 | | --exec=* | --exe=* | --ex=*) |
---|
587 | exec_prefix=$ac_optarg ;; |
---|
588 | |
---|
589 | -gas | --gas | --ga | --g) |
---|
590 | # Obsolete; use --with-gas. |
---|
591 | with_gas=yes ;; |
---|
592 | |
---|
593 | -help | --help | --hel | --he | -h) |
---|
594 | ac_init_help=long ;; |
---|
595 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
596 | ac_init_help=recursive ;; |
---|
597 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
598 | ac_init_help=short ;; |
---|
599 | |
---|
600 | -host | --host | --hos | --ho) |
---|
601 | ac_prev=host_alias ;; |
---|
602 | -host=* | --host=* | --hos=* | --ho=*) |
---|
603 | host_alias=$ac_optarg ;; |
---|
604 | |
---|
605 | -includedir | --includedir | --includedi | --included | --include \ |
---|
606 | | --includ | --inclu | --incl | --inc) |
---|
607 | ac_prev=includedir ;; |
---|
608 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
609 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
610 | includedir=$ac_optarg ;; |
---|
611 | |
---|
612 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
613 | ac_prev=infodir ;; |
---|
614 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
615 | infodir=$ac_optarg ;; |
---|
616 | |
---|
617 | -libdir | --libdir | --libdi | --libd) |
---|
618 | ac_prev=libdir ;; |
---|
619 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
620 | libdir=$ac_optarg ;; |
---|
621 | |
---|
622 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
623 | | --libexe | --libex | --libe) |
---|
624 | ac_prev=libexecdir ;; |
---|
625 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
626 | | --libexe=* | --libex=* | --libe=*) |
---|
627 | libexecdir=$ac_optarg ;; |
---|
628 | |
---|
629 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
630 | | --localstate | --localstat | --localsta | --localst \ |
---|
631 | | --locals | --local | --loca | --loc | --lo) |
---|
632 | ac_prev=localstatedir ;; |
---|
633 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
634 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
635 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
636 | localstatedir=$ac_optarg ;; |
---|
637 | |
---|
638 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
639 | ac_prev=mandir ;; |
---|
640 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
641 | mandir=$ac_optarg ;; |
---|
642 | |
---|
643 | -nfp | --nfp | --nf) |
---|
644 | # Obsolete; use --without-fp. |
---|
645 | with_fp=no ;; |
---|
646 | |
---|
647 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
648 | | --no-cr | --no-c | -n) |
---|
649 | no_create=yes ;; |
---|
650 | |
---|
651 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
652 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
653 | no_recursion=yes ;; |
---|
654 | |
---|
655 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
656 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
657 | | --oldin | --oldi | --old | --ol | --o) |
---|
658 | ac_prev=oldincludedir ;; |
---|
659 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
660 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
661 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
662 | oldincludedir=$ac_optarg ;; |
---|
663 | |
---|
664 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
665 | ac_prev=prefix ;; |
---|
666 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
667 | prefix=$ac_optarg ;; |
---|
668 | |
---|
669 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
670 | | --program-pre | --program-pr | --program-p) |
---|
671 | ac_prev=program_prefix ;; |
---|
672 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
673 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
674 | program_prefix=$ac_optarg ;; |
---|
675 | |
---|
676 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
677 | | --program-suf | --program-su | --program-s) |
---|
678 | ac_prev=program_suffix ;; |
---|
679 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
680 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
681 | program_suffix=$ac_optarg ;; |
---|
682 | |
---|
683 | -program-transform-name | --program-transform-name \ |
---|
684 | | --program-transform-nam | --program-transform-na \ |
---|
685 | | --program-transform-n | --program-transform- \ |
---|
686 | | --program-transform | --program-transfor \ |
---|
687 | | --program-transfo | --program-transf \ |
---|
688 | | --program-trans | --program-tran \ |
---|
689 | | --progr-tra | --program-tr | --program-t) |
---|
690 | ac_prev=program_transform_name ;; |
---|
691 | -program-transform-name=* | --program-transform-name=* \ |
---|
692 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
693 | | --program-transform-n=* | --program-transform-=* \ |
---|
694 | | --program-transform=* | --program-transfor=* \ |
---|
695 | | --program-transfo=* | --program-transf=* \ |
---|
696 | | --program-trans=* | --program-tran=* \ |
---|
697 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
698 | program_transform_name=$ac_optarg ;; |
---|
699 | |
---|
700 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
701 | | -silent | --silent | --silen | --sile | --sil) |
---|
702 | silent=yes ;; |
---|
703 | |
---|
704 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
705 | ac_prev=sbindir ;; |
---|
706 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
707 | | --sbi=* | --sb=*) |
---|
708 | sbindir=$ac_optarg ;; |
---|
709 | |
---|
710 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
711 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
712 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
713 | | --sha | --sh) |
---|
714 | ac_prev=sharedstatedir ;; |
---|
715 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
716 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
717 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
718 | | --sha=* | --sh=*) |
---|
719 | sharedstatedir=$ac_optarg ;; |
---|
720 | |
---|
721 | -site | --site | --sit) |
---|
722 | ac_prev=site ;; |
---|
723 | -site=* | --site=* | --sit=*) |
---|
724 | site=$ac_optarg ;; |
---|
725 | |
---|
726 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
727 | ac_prev=srcdir ;; |
---|
728 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
729 | srcdir=$ac_optarg ;; |
---|
730 | |
---|
731 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
732 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
733 | ac_prev=sysconfdir ;; |
---|
734 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
735 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
736 | sysconfdir=$ac_optarg ;; |
---|
737 | |
---|
738 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
739 | ac_prev=target_alias ;; |
---|
740 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
741 | target_alias=$ac_optarg ;; |
---|
742 | |
---|
743 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
744 | verbose=yes ;; |
---|
745 | |
---|
746 | -version | --version | --versio | --versi | --vers | -V) |
---|
747 | ac_init_version=: ;; |
---|
748 | |
---|
749 | -with-* | --with-*) |
---|
750 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
751 | # Reject names that are not valid shell variable names. |
---|
752 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
753 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
754 | { (exit 1); exit 1; }; } |
---|
755 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
756 | case $ac_option in |
---|
757 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
758 | *) ac_optarg=yes ;; |
---|
759 | esac |
---|
760 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
761 | |
---|
762 | -without-* | --without-*) |
---|
763 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
764 | # Reject names that are not valid shell variable names. |
---|
765 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
766 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
767 | { (exit 1); exit 1; }; } |
---|
768 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
769 | eval "with_$ac_package=no" ;; |
---|
770 | |
---|
771 | --x) |
---|
772 | # Obsolete; use --with-x. |
---|
773 | with_x=yes ;; |
---|
774 | |
---|
775 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
776 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
777 | ac_prev=x_includes ;; |
---|
778 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
779 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
780 | x_includes=$ac_optarg ;; |
---|
781 | |
---|
782 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
783 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
784 | ac_prev=x_libraries ;; |
---|
785 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
786 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
787 | x_libraries=$ac_optarg ;; |
---|
788 | |
---|
789 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
790 | Try \`$0 --help' for more information." >&2 |
---|
791 | { (exit 1); exit 1; }; } |
---|
792 | ;; |
---|
793 | |
---|
794 | *=*) |
---|
795 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
796 | # Reject names that are not valid shell variable names. |
---|
797 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
798 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
799 | { (exit 1); exit 1; }; } |
---|
800 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
801 | eval "$ac_envvar='$ac_optarg'" |
---|
802 | export $ac_envvar ;; |
---|
803 | |
---|
804 | *) |
---|
805 | # FIXME: should be removed in autoconf 3.0. |
---|
806 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
807 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
808 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
809 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
810 | ;; |
---|
811 | |
---|
812 | esac |
---|
813 | done |
---|
814 | |
---|
815 | if test -n "$ac_prev"; then |
---|
816 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
817 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
818 | { (exit 1); exit 1; }; } |
---|
819 | fi |
---|
820 | |
---|
821 | # Be sure to have absolute paths. |
---|
822 | for ac_var in exec_prefix prefix |
---|
823 | do |
---|
824 | eval ac_val=$`echo $ac_var` |
---|
825 | case $ac_val in |
---|
826 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
827 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
828 | { (exit 1); exit 1; }; };; |
---|
829 | esac |
---|
830 | done |
---|
831 | |
---|
832 | # Be sure to have absolute paths. |
---|
833 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
834 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
835 | do |
---|
836 | eval ac_val=$`echo $ac_var` |
---|
837 | case $ac_val in |
---|
838 | [\\/$]* | ?:[\\/]* ) ;; |
---|
839 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
840 | { (exit 1); exit 1; }; };; |
---|
841 | esac |
---|
842 | done |
---|
843 | |
---|
844 | # There might be people who depend on the old broken behavior: `$host' |
---|
845 | # used to hold the argument of --host etc. |
---|
846 | # FIXME: To remove some day. |
---|
847 | build=$build_alias |
---|
848 | host=$host_alias |
---|
849 | target=$target_alias |
---|
850 | |
---|
851 | # FIXME: To remove some day. |
---|
852 | if test "x$host_alias" != x; then |
---|
853 | if test "x$build_alias" = x; then |
---|
854 | cross_compiling=maybe |
---|
855 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
856 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
857 | elif test "x$build_alias" != "x$host_alias"; then |
---|
858 | cross_compiling=yes |
---|
859 | fi |
---|
860 | fi |
---|
861 | |
---|
862 | ac_tool_prefix= |
---|
863 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
864 | |
---|
865 | test "$silent" = yes && exec 6>/dev/null |
---|
866 | |
---|
867 | |
---|
868 | # Find the source files, if location was not specified. |
---|
869 | if test -z "$srcdir"; then |
---|
870 | ac_srcdir_defaulted=yes |
---|
871 | # Try the directory containing this script, then its parent. |
---|
872 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
873 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
874 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
875 | X"$0" : 'X\(//\)$' \| \ |
---|
876 | X"$0" : 'X\(/\)' \| \ |
---|
877 | . : '\(.\)' 2>/dev/null || |
---|
878 | echo X"$0" | |
---|
879 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
880 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
881 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
882 | /^X\(\/\).*/{ s//\1/; q; } |
---|
883 | s/.*/./; q'` |
---|
884 | srcdir=$ac_confdir |
---|
885 | if test ! -r $srcdir/$ac_unique_file; then |
---|
886 | srcdir=.. |
---|
887 | fi |
---|
888 | else |
---|
889 | ac_srcdir_defaulted=no |
---|
890 | fi |
---|
891 | if test ! -r $srcdir/$ac_unique_file; then |
---|
892 | if test "$ac_srcdir_defaulted" = yes; then |
---|
893 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
894 | { (exit 1); exit 1; }; } |
---|
895 | else |
---|
896 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
897 | { (exit 1); exit 1; }; } |
---|
898 | fi |
---|
899 | fi |
---|
900 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
901 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
902 | { (exit 1); exit 1; }; } |
---|
903 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
904 | ac_env_build_alias_set=${build_alias+set} |
---|
905 | ac_env_build_alias_value=$build_alias |
---|
906 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
907 | ac_cv_env_build_alias_value=$build_alias |
---|
908 | ac_env_host_alias_set=${host_alias+set} |
---|
909 | ac_env_host_alias_value=$host_alias |
---|
910 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
911 | ac_cv_env_host_alias_value=$host_alias |
---|
912 | ac_env_target_alias_set=${target_alias+set} |
---|
913 | ac_env_target_alias_value=$target_alias |
---|
914 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
915 | ac_cv_env_target_alias_value=$target_alias |
---|
916 | ac_env_CDEFS_set=${CDEFS+set} |
---|
917 | ac_env_CDEFS_value=$CDEFS |
---|
918 | ac_cv_env_CDEFS_set=${CDEFS+set} |
---|
919 | ac_cv_env_CDEFS_value=$CDEFS |
---|
920 | ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} |
---|
921 | ac_env_ADD_CFLAGS_value=$ADD_CFLAGS |
---|
922 | ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} |
---|
923 | ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS |
---|
924 | ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} |
---|
925 | ac_env_DBG_CFLAGS_value=$DBG_CFLAGS |
---|
926 | ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} |
---|
927 | ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS |
---|
928 | ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} |
---|
929 | ac_env_OPT_CFLAGS_value=$OPT_CFLAGS |
---|
930 | ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} |
---|
931 | ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS |
---|
932 | ac_env_CC_set=${CC+set} |
---|
933 | ac_env_CC_value=$CC |
---|
934 | ac_cv_env_CC_set=${CC+set} |
---|
935 | ac_cv_env_CC_value=$CC |
---|
936 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
937 | ac_env_CFLAGS_value=$CFLAGS |
---|
938 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
939 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
940 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
941 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
942 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
943 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
944 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
945 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
946 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
947 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
948 | ac_env_MPICC_set=${MPICC+set} |
---|
949 | ac_env_MPICC_value=$MPICC |
---|
950 | ac_cv_env_MPICC_set=${MPICC+set} |
---|
951 | ac_cv_env_MPICC_value=$MPICC |
---|
952 | ac_env_CPP_set=${CPP+set} |
---|
953 | ac_env_CPP_value=$CPP |
---|
954 | ac_cv_env_CPP_set=${CPP+set} |
---|
955 | ac_cv_env_CPP_value=$CPP |
---|
956 | ac_env_CXX_set=${CXX+set} |
---|
957 | ac_env_CXX_value=$CXX |
---|
958 | ac_cv_env_CXX_set=${CXX+set} |
---|
959 | ac_cv_env_CXX_value=$CXX |
---|
960 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
961 | ac_env_CXXFLAGS_value=$CXXFLAGS |
---|
962 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
963 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
---|
964 | ac_env_CXXCPP_set=${CXXCPP+set} |
---|
965 | ac_env_CXXCPP_value=$CXXCPP |
---|
966 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
---|
967 | ac_cv_env_CXXCPP_value=$CXXCPP |
---|
968 | ac_env_F77_set=${F77+set} |
---|
969 | ac_env_F77_value=$F77 |
---|
970 | ac_cv_env_F77_set=${F77+set} |
---|
971 | ac_cv_env_F77_value=$F77 |
---|
972 | ac_env_FFLAGS_set=${FFLAGS+set} |
---|
973 | ac_env_FFLAGS_value=$FFLAGS |
---|
974 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
---|
975 | ac_cv_env_FFLAGS_value=$FFLAGS |
---|
976 | |
---|
977 | # |
---|
978 | # Report the --help message. |
---|
979 | # |
---|
980 | if test "$ac_init_help" = "long"; then |
---|
981 | # Omit some internal or obsolete options to make the list less imposing. |
---|
982 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
983 | cat <<_ACEOF |
---|
984 | \`configure' configures ThirdPartyGlpk 0.0 to adapt to many kinds of systems. |
---|
985 | |
---|
986 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
987 | |
---|
988 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
989 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
990 | |
---|
991 | Defaults for the options are specified in brackets. |
---|
992 | |
---|
993 | Configuration: |
---|
994 | -h, --help display this help and exit |
---|
995 | --help=short display options specific to this package |
---|
996 | --help=recursive display the short help of all the included packages |
---|
997 | -V, --version display version information and exit |
---|
998 | -q, --quiet, --silent do not print \`checking...' messages |
---|
999 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1000 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1001 | -n, --no-create do not create output files |
---|
1002 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1003 | |
---|
1004 | _ACEOF |
---|
1005 | |
---|
1006 | cat <<_ACEOF |
---|
1007 | Installation directories: |
---|
1008 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1009 | [$ac_default_prefix] |
---|
1010 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1011 | [PREFIX] |
---|
1012 | |
---|
1013 | By default, \`make install' will install all the files in |
---|
1014 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1015 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1016 | for instance \`--prefix=\$HOME'. |
---|
1017 | |
---|
1018 | For better control, use the options below. |
---|
1019 | |
---|
1020 | Fine tuning of the installation directories: |
---|
1021 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1022 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1023 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1024 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
1025 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1026 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1027 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1028 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1029 | --includedir=DIR C header files [PREFIX/include] |
---|
1030 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1031 | --infodir=DIR info documentation [PREFIX/info] |
---|
1032 | --mandir=DIR man documentation [PREFIX/man] |
---|
1033 | _ACEOF |
---|
1034 | |
---|
1035 | cat <<\_ACEOF |
---|
1036 | |
---|
1037 | Program names: |
---|
1038 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
1039 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
1040 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
1041 | |
---|
1042 | System types: |
---|
1043 | --build=BUILD configure for building on BUILD [guessed] |
---|
1044 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
1045 | _ACEOF |
---|
1046 | fi |
---|
1047 | |
---|
1048 | if test -n "$ac_init_help"; then |
---|
1049 | case $ac_init_help in |
---|
1050 | short | recursive ) echo "Configuration of ThirdPartyGlpk 0.0:";; |
---|
1051 | esac |
---|
1052 | cat <<\_ACEOF |
---|
1053 | |
---|
1054 | Optional Features: |
---|
1055 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1056 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1057 | --enable-debug compile all projects with debug options tests |
---|
1058 | --enable-debug-glpk compile this project (GLPK) with debug options |
---|
1059 | --enable-doscompile Under Cygwin, compile so that executables run under |
---|
1060 | DOS. Set to mingw to use gcc/g++/ld with |
---|
1061 | -mno-cygwin. Set to msvc to use cl/link. Default |
---|
1062 | when mentioned: mingw. Default when not mentioned: |
---|
1063 | disabled. |
---|
1064 | --enable-static[=PKGS] |
---|
1065 | build static libraries [default=no] |
---|
1066 | --disable-dependency-tracking speeds up one-time build |
---|
1067 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
1068 | --enable-maintainer-mode enable make rules and dependencies not useful |
---|
1069 | (and sometimes confusing) to the casual installer |
---|
1070 | --enable-shared[=PKGS] |
---|
1071 | build shared libraries [default=yes] |
---|
1072 | --enable-fast-install[=PKGS] |
---|
1073 | optimize for fast installation [default=yes] |
---|
1074 | --disable-libtool-lock avoid locking (might break parallel builds) |
---|
1075 | --enable-glpk-libcheck use disable-glpk-libcheck to skip the |
---|
1076 | link check at configuration time |
---|
1077 | |
---|
1078 | Optional Packages: |
---|
1079 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1080 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1081 | --with-glpk-verbosity specify the debug verbosity level for project GLPK |
---|
1082 | --with-glpk-checklevel specify the sanity check level for project GLPK |
---|
1083 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
---|
1084 | --with-pic try to use only PIC/non-PIC objects [default=use |
---|
1085 | both] |
---|
1086 | --with-tags[=TAGS] |
---|
1087 | include additional configurations [automatic] |
---|
1088 | --with-glpk-incdir specify the header file directory for library Glpk |
---|
1089 | --with-glpk-lib specify the flags used to link with the library Glpk |
---|
1090 | |
---|
1091 | Some influential environment variables: |
---|
1092 | CDEFS Additional -D flags to be used when compiling C code. |
---|
1093 | ADD_CFLAGS Additional C compiler options |
---|
1094 | DBG_CFLAGS Debug C compiler options |
---|
1095 | OPT_CFLAGS Optimize C compiler options |
---|
1096 | CC C compiler command |
---|
1097 | CFLAGS C compiler flags |
---|
1098 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1099 | nonstandard directory <lib dir> |
---|
1100 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
1101 | headers in a nonstandard directory <include dir> |
---|
1102 | MPICC C MPI Compiler |
---|
1103 | CPP C preprocessor |
---|
1104 | CXX C++ compiler command |
---|
1105 | CXXFLAGS C++ compiler flags |
---|
1106 | CXXCPP C++ preprocessor |
---|
1107 | F77 Fortran 77 compiler command |
---|
1108 | FFLAGS Fortran 77 compiler flags |
---|
1109 | |
---|
1110 | Use these variables to override the choices made by `configure' or to help |
---|
1111 | it to find libraries and programs with nonstandard names/locations. |
---|
1112 | |
---|
1113 | Report bugs to <http://projects.coin-or.org/BuildTools/newticket>. |
---|
1114 | _ACEOF |
---|
1115 | fi |
---|
1116 | |
---|
1117 | if test "$ac_init_help" = "recursive"; then |
---|
1118 | # If there are subdirs, report their specific --help. |
---|
1119 | ac_popdir=`pwd` |
---|
1120 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1121 | test -d $ac_dir || continue |
---|
1122 | ac_builddir=. |
---|
1123 | |
---|
1124 | if test "$ac_dir" != .; then |
---|
1125 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
1126 | # A "../" for each directory in $ac_dir_suffix. |
---|
1127 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
1128 | else |
---|
1129 | ac_dir_suffix= ac_top_builddir= |
---|
1130 | fi |
---|
1131 | |
---|
1132 | case $srcdir in |
---|
1133 | .) # No --srcdir option. We are building in place. |
---|
1134 | ac_srcdir=. |
---|
1135 | if test -z "$ac_top_builddir"; then |
---|
1136 | ac_top_srcdir=. |
---|
1137 | else |
---|
1138 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
1139 | fi ;; |
---|
1140 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
1141 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1142 | ac_top_srcdir=$srcdir ;; |
---|
1143 | *) # Relative path. |
---|
1144 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
1145 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
1146 | esac |
---|
1147 | |
---|
1148 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
1149 | # the directories may not exist. |
---|
1150 | case `pwd` in |
---|
1151 | .) ac_abs_builddir="$ac_dir";; |
---|
1152 | *) |
---|
1153 | case "$ac_dir" in |
---|
1154 | .) ac_abs_builddir=`pwd`;; |
---|
1155 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
1156 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
1157 | esac;; |
---|
1158 | esac |
---|
1159 | case $ac_abs_builddir in |
---|
1160 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
1161 | *) |
---|
1162 | case ${ac_top_builddir}. in |
---|
1163 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
1164 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
1165 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
1166 | esac;; |
---|
1167 | esac |
---|
1168 | case $ac_abs_builddir in |
---|
1169 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
1170 | *) |
---|
1171 | case $ac_srcdir in |
---|
1172 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
1173 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
1174 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
1175 | esac;; |
---|
1176 | esac |
---|
1177 | case $ac_abs_builddir in |
---|
1178 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
1179 | *) |
---|
1180 | case $ac_top_srcdir in |
---|
1181 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
1182 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
1183 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
1184 | esac;; |
---|
1185 | esac |
---|
1186 | |
---|
1187 | cd $ac_dir |
---|
1188 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
1189 | if test -f $ac_srcdir/configure.gnu; then |
---|
1190 | echo |
---|
1191 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
1192 | elif test -f $ac_srcdir/configure; then |
---|
1193 | echo |
---|
1194 | $SHELL $ac_srcdir/configure --help=recursive |
---|
1195 | elif test -f $ac_srcdir/configure.ac || |
---|
1196 | test -f $ac_srcdir/configure.in; then |
---|
1197 | echo |
---|
1198 | $ac_configure --help |
---|
1199 | else |
---|
1200 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1201 | fi |
---|
1202 | cd $ac_popdir |
---|
1203 | done |
---|
1204 | fi |
---|
1205 | |
---|
1206 | test -n "$ac_init_help" && exit 0 |
---|
1207 | if $ac_init_version; then |
---|
1208 | cat <<\_ACEOF |
---|
1209 | ThirdPartyGlpk configure 0.0 |
---|
1210 | generated by GNU Autoconf 2.59 |
---|
1211 | |
---|
1212 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
1213 | This configure script is free software; the Free Software Foundation |
---|
1214 | gives unlimited permission to copy, distribute and modify it. |
---|
1215 | |
---|
1216 | |
---|
1217 | Copyright 2007 Stefan Vigerske and others. |
---|
1218 | All Rights Reserved. |
---|
1219 | This file is part of the open source package Coin which is distributed |
---|
1220 | under the Common Public License. |
---|
1221 | _ACEOF |
---|
1222 | exit 0 |
---|
1223 | fi |
---|
1224 | exec 5>config.log |
---|
1225 | cat >&5 <<_ACEOF |
---|
1226 | This file contains any messages produced by compilers while |
---|
1227 | running configure, to aid debugging if configure makes a mistake. |
---|
1228 | |
---|
1229 | It was created by ThirdPartyGlpk $as_me 0.0, which was |
---|
1230 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
1231 | |
---|
1232 | $ $0 $@ |
---|
1233 | |
---|
1234 | _ACEOF |
---|
1235 | { |
---|
1236 | cat <<_ASUNAME |
---|
1237 | ## --------- ## |
---|
1238 | ## Platform. ## |
---|
1239 | ## --------- ## |
---|
1240 | |
---|
1241 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1242 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1243 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1244 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1245 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1246 | |
---|
1247 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1248 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1249 | |
---|
1250 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1251 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1252 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1253 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
1254 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1255 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1256 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1257 | |
---|
1258 | _ASUNAME |
---|
1259 | |
---|
1260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1261 | for as_dir in $PATH |
---|
1262 | do |
---|
1263 | IFS=$as_save_IFS |
---|
1264 | test -z "$as_dir" && as_dir=. |
---|
1265 | echo "PATH: $as_dir" |
---|
1266 | done |
---|
1267 | |
---|
1268 | } >&5 |
---|
1269 | |
---|
1270 | cat >&5 <<_ACEOF |
---|
1271 | |
---|
1272 | |
---|
1273 | ## ----------- ## |
---|
1274 | ## Core tests. ## |
---|
1275 | ## ----------- ## |
---|
1276 | |
---|
1277 | _ACEOF |
---|
1278 | |
---|
1279 | |
---|
1280 | # Keep a trace of the command line. |
---|
1281 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1282 | # Strip out --silent because we don't want to record it for future runs. |
---|
1283 | # Also quote any args containing shell meta-characters. |
---|
1284 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1285 | ac_configure_args= |
---|
1286 | ac_configure_args0= |
---|
1287 | ac_configure_args1= |
---|
1288 | ac_sep= |
---|
1289 | ac_must_keep_next=false |
---|
1290 | for ac_pass in 1 2 |
---|
1291 | do |
---|
1292 | for ac_arg |
---|
1293 | do |
---|
1294 | case $ac_arg in |
---|
1295 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1296 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1297 | | -silent | --silent | --silen | --sile | --sil) |
---|
1298 | continue ;; |
---|
1299 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1300 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1301 | esac |
---|
1302 | case $ac_pass in |
---|
1303 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1304 | 2) |
---|
1305 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1306 | if test $ac_must_keep_next = true; then |
---|
1307 | ac_must_keep_next=false # Got value, back to normal. |
---|
1308 | else |
---|
1309 | case $ac_arg in |
---|
1310 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1311 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1312 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1313 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1314 | case "$ac_configure_args0 " in |
---|
1315 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1316 | esac |
---|
1317 | ;; |
---|
1318 | -* ) ac_must_keep_next=true ;; |
---|
1319 | esac |
---|
1320 | fi |
---|
1321 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1322 | # Get rid of the leading space. |
---|
1323 | ac_sep=" " |
---|
1324 | ;; |
---|
1325 | esac |
---|
1326 | done |
---|
1327 | done |
---|
1328 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1329 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1330 | |
---|
1331 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1332 | # config.log. We remove comments because anyway the quotes in there |
---|
1333 | # would cause problems or look ugly. |
---|
1334 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1335 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1336 | trap 'exit_status=$? |
---|
1337 | # Save into config.log some information that might help in debugging. |
---|
1338 | { |
---|
1339 | echo |
---|
1340 | |
---|
1341 | cat <<\_ASBOX |
---|
1342 | ## ---------------- ## |
---|
1343 | ## Cache variables. ## |
---|
1344 | ## ---------------- ## |
---|
1345 | _ASBOX |
---|
1346 | echo |
---|
1347 | # The following way of writing the cache mishandles newlines in values, |
---|
1348 | { |
---|
1349 | (set) 2>&1 | |
---|
1350 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1351 | *ac_space=\ *) |
---|
1352 | sed -n \ |
---|
1353 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1354 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1355 | ;; |
---|
1356 | *) |
---|
1357 | sed -n \ |
---|
1358 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1359 | ;; |
---|
1360 | esac; |
---|
1361 | } |
---|
1362 | echo |
---|
1363 | |
---|
1364 | cat <<\_ASBOX |
---|
1365 | ## ----------------- ## |
---|
1366 | ## Output variables. ## |
---|
1367 | ## ----------------- ## |
---|
1368 | _ASBOX |
---|
1369 | echo |
---|
1370 | for ac_var in $ac_subst_vars |
---|
1371 | do |
---|
1372 | eval ac_val=$`echo $ac_var` |
---|
1373 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1374 | done | sort |
---|
1375 | echo |
---|
1376 | |
---|
1377 | if test -n "$ac_subst_files"; then |
---|
1378 | cat <<\_ASBOX |
---|
1379 | ## ------------- ## |
---|
1380 | ## Output files. ## |
---|
1381 | ## ------------- ## |
---|
1382 | _ASBOX |
---|
1383 | echo |
---|
1384 | for ac_var in $ac_subst_files |
---|
1385 | do |
---|
1386 | eval ac_val=$`echo $ac_var` |
---|
1387 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1388 | done | sort |
---|
1389 | echo |
---|
1390 | fi |
---|
1391 | |
---|
1392 | if test -s confdefs.h; then |
---|
1393 | cat <<\_ASBOX |
---|
1394 | ## ----------- ## |
---|
1395 | ## confdefs.h. ## |
---|
1396 | ## ----------- ## |
---|
1397 | _ASBOX |
---|
1398 | echo |
---|
1399 | sed "/^$/d" confdefs.h | sort |
---|
1400 | echo |
---|
1401 | fi |
---|
1402 | test "$ac_signal" != 0 && |
---|
1403 | echo "$as_me: caught signal $ac_signal" |
---|
1404 | echo "$as_me: exit $exit_status" |
---|
1405 | } >&5 |
---|
1406 | rm -f core *.core && |
---|
1407 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1408 | exit $exit_status |
---|
1409 | ' 0 |
---|
1410 | for ac_signal in 1 2 13 15; do |
---|
1411 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1412 | done |
---|
1413 | ac_signal=0 |
---|
1414 | |
---|
1415 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1416 | rm -rf conftest* confdefs.h |
---|
1417 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1418 | echo >confdefs.h |
---|
1419 | |
---|
1420 | # Predefined preprocessor variables. |
---|
1421 | |
---|
1422 | cat >>confdefs.h <<_ACEOF |
---|
1423 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1424 | _ACEOF |
---|
1425 | |
---|
1426 | |
---|
1427 | cat >>confdefs.h <<_ACEOF |
---|
1428 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1429 | _ACEOF |
---|
1430 | |
---|
1431 | |
---|
1432 | cat >>confdefs.h <<_ACEOF |
---|
1433 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1434 | _ACEOF |
---|
1435 | |
---|
1436 | |
---|
1437 | cat >>confdefs.h <<_ACEOF |
---|
1438 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1439 | _ACEOF |
---|
1440 | |
---|
1441 | |
---|
1442 | cat >>confdefs.h <<_ACEOF |
---|
1443 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1444 | _ACEOF |
---|
1445 | |
---|
1446 | |
---|
1447 | # Let the site file select an alternate cache file if it wants to. |
---|
1448 | # Prefer explicitly selected file to automatically selected ones. |
---|
1449 | if test -z "$CONFIG_SITE"; then |
---|
1450 | if test "x$prefix" != xNONE; then |
---|
1451 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1452 | else |
---|
1453 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1454 | fi |
---|
1455 | fi |
---|
1456 | for ac_site_file in $CONFIG_SITE; do |
---|
1457 | if test -r "$ac_site_file"; then |
---|
1458 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1459 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1460 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1461 | . "$ac_site_file" |
---|
1462 | fi |
---|
1463 | done |
---|
1464 | |
---|
1465 | if test -r "$cache_file"; then |
---|
1466 | # Some versions of bash will fail to source /dev/null (special |
---|
1467 | # files actually), so we avoid doing that. |
---|
1468 | if test -f "$cache_file"; then |
---|
1469 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1470 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1471 | case $cache_file in |
---|
1472 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1473 | *) . ./$cache_file;; |
---|
1474 | esac |
---|
1475 | fi |
---|
1476 | else |
---|
1477 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1478 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1479 | >$cache_file |
---|
1480 | fi |
---|
1481 | |
---|
1482 | # Check that the precious variables saved in the cache have kept the same |
---|
1483 | # value. |
---|
1484 | ac_cache_corrupted=false |
---|
1485 | for ac_var in `(set) 2>&1 | |
---|
1486 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1487 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1488 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1489 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1490 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1491 | case $ac_old_set,$ac_new_set in |
---|
1492 | set,) |
---|
1493 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1494 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1495 | ac_cache_corrupted=: ;; |
---|
1496 | ,set) |
---|
1497 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1498 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1499 | ac_cache_corrupted=: ;; |
---|
1500 | ,);; |
---|
1501 | *) |
---|
1502 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1503 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1504 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1505 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1506 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1507 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1508 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1509 | ac_cache_corrupted=: |
---|
1510 | fi;; |
---|
1511 | esac |
---|
1512 | # Pass precious variables to config.status. |
---|
1513 | if test "$ac_new_set" = set; then |
---|
1514 | case $ac_new_val in |
---|
1515 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1516 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1517 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1518 | esac |
---|
1519 | case " $ac_configure_args " in |
---|
1520 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1521 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1522 | esac |
---|
1523 | fi |
---|
1524 | done |
---|
1525 | if $ac_cache_corrupted; then |
---|
1526 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1527 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1528 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1529 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1530 | { (exit 1); exit 1; }; } |
---|
1531 | fi |
---|
1532 | |
---|
1533 | ac_ext=c |
---|
1534 | ac_cpp='$CPP $CPPFLAGS' |
---|
1535 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1536 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1537 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1538 | |
---|
1539 | |
---|
1540 | |
---|
1541 | |
---|
1542 | |
---|
1543 | |
---|
1544 | |
---|
1545 | |
---|
1546 | |
---|
1547 | |
---|
1548 | |
---|
1549 | |
---|
1550 | |
---|
1551 | |
---|
1552 | |
---|
1553 | |
---|
1554 | |
---|
1555 | |
---|
1556 | |
---|
1557 | |
---|
1558 | |
---|
1559 | |
---|
1560 | |
---|
1561 | |
---|
1562 | |
---|
1563 | |
---|
1564 | |
---|
1565 | |
---|
1566 | |
---|
1567 | |
---|
1568 | # List one file in the package so that the configure script can test |
---|
1569 | # whether the package is actually there |
---|
1570 | |
---|
1571 | |
---|
1572 | # Where should everything be installed by default? Here, we want it |
---|
1573 | # to be installed directly in 'bin', 'lib', 'include' subdirectories |
---|
1574 | # of the directory where configure is run. The default would be |
---|
1575 | # /usr/local. |
---|
1576 | |
---|
1577 | |
---|
1578 | # Initialize the ADDLIBS variable |
---|
1579 | ADDLIBS="-lm $LIBS" |
---|
1580 | |
---|
1581 | |
---|
1582 | # Initialize the FADDLIBS variable (which is to be used with a fortran |
---|
1583 | # compiler and will not include FLIBS) |
---|
1584 | FADDLIBS="$LIBS" |
---|
1585 | |
---|
1586 | |
---|
1587 | # A useful makefile conditional that is always false |
---|
1588 | |
---|
1589 | |
---|
1590 | if false; then |
---|
1591 | ALWAYS_FALSE_TRUE= |
---|
1592 | ALWAYS_FALSE_FALSE='#' |
---|
1593 | else |
---|
1594 | ALWAYS_FALSE_TRUE='#' |
---|
1595 | ALWAYS_FALSE_FALSE= |
---|
1596 | fi |
---|
1597 | |
---|
1598 | |
---|
1599 | # We set the following variable so that we know later in AC_COIN_FINALIZE |
---|
1600 | # that we are in a project main directory |
---|
1601 | coin_projectdir=yes |
---|
1602 | |
---|
1603 | |
---|
1604 | |
---|
1605 | ############################################################################# |
---|
1606 | # Standard build tool stuff # |
---|
1607 | ############################################################################# |
---|
1608 | |
---|
1609 | # Get the system type |
---|
1610 | ac_aux_dir= |
---|
1611 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1612 | if test -f $ac_dir/install-sh; then |
---|
1613 | ac_aux_dir=$ac_dir |
---|
1614 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1615 | break |
---|
1616 | elif test -f $ac_dir/install.sh; then |
---|
1617 | ac_aux_dir=$ac_dir |
---|
1618 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1619 | break |
---|
1620 | elif test -f $ac_dir/shtool; then |
---|
1621 | ac_aux_dir=$ac_dir |
---|
1622 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1623 | break |
---|
1624 | fi |
---|
1625 | done |
---|
1626 | if test -z "$ac_aux_dir"; then |
---|
1627 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1628 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1629 | { (exit 1); exit 1; }; } |
---|
1630 | fi |
---|
1631 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1632 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1633 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1634 | |
---|
1635 | # Make sure we can run config.sub. |
---|
1636 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
1637 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
1638 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
1639 | { (exit 1); exit 1; }; } |
---|
1640 | |
---|
1641 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
1642 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
1643 | if test "${ac_cv_build+set}" = set; then |
---|
1644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1645 | else |
---|
1646 | ac_cv_build_alias=$build_alias |
---|
1647 | test -z "$ac_cv_build_alias" && |
---|
1648 | ac_cv_build_alias=`$ac_config_guess` |
---|
1649 | test -z "$ac_cv_build_alias" && |
---|
1650 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
1651 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
1652 | { (exit 1); exit 1; }; } |
---|
1653 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
1654 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
1655 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
1656 | { (exit 1); exit 1; }; } |
---|
1657 | |
---|
1658 | fi |
---|
1659 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
1660 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
1661 | build=$ac_cv_build |
---|
1662 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1663 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1664 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1665 | |
---|
1666 | |
---|
1667 | |
---|
1668 | # Check if user wants to produce debugging code |
---|
1669 | |
---|
1670 | echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5 |
---|
1671 | echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6 |
---|
1672 | |
---|
1673 | # Check whether --enable-debug or --disable-debug was given. |
---|
1674 | if test "${enable_debug+set}" = set; then |
---|
1675 | enableval="$enable_debug" |
---|
1676 | case "${enableval}" in |
---|
1677 | yes) coin_debug_compile=true |
---|
1678 | if test "${enable_shared+set}" = set; then :; else |
---|
1679 | enable_shared=no |
---|
1680 | fi |
---|
1681 | ;; |
---|
1682 | no) coin_debug_compile=false |
---|
1683 | ;; |
---|
1684 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5 |
---|
1685 | echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;} |
---|
1686 | { (exit 1); exit 1; }; } |
---|
1687 | ;; |
---|
1688 | esac |
---|
1689 | else |
---|
1690 | coin_debug_compile=false |
---|
1691 | fi; |
---|
1692 | |
---|
1693 | # Check whether --enable-debug-glpk or --disable-debug-glpk was given. |
---|
1694 | if test "${enable_debug_glpk+set}" = set; then |
---|
1695 | enableval="$enable_debug_glpk" |
---|
1696 | case "${enableval}" in |
---|
1697 | yes) coin_debug_compile=true |
---|
1698 | enable_shared=no |
---|
1699 | ;; |
---|
1700 | no) coin_debug_compile=false |
---|
1701 | ;; |
---|
1702 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-glpk" >&5 |
---|
1703 | echo "$as_me: error: bad value ${enableval} for --enable-debug-glpk" >&2;} |
---|
1704 | { (exit 1); exit 1; }; } |
---|
1705 | ;; |
---|
1706 | esac |
---|
1707 | else |
---|
1708 | : |
---|
1709 | fi; |
---|
1710 | |
---|
1711 | # m4_ifvaln([GLPK], |
---|
1712 | |
---|
1713 | if test $coin_debug_compile = true; then |
---|
1714 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1715 | echo "${ECHO_T}yes" >&6 |
---|
1716 | else |
---|
1717 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1718 | echo "${ECHO_T}no" >&6 |
---|
1719 | fi |
---|
1720 | |
---|
1721 | |
---|
1722 | # Check whether --with-glpk-verbosity or --without-glpk-verbosity was given. |
---|
1723 | if test "${with_glpk_verbosity+set}" = set; then |
---|
1724 | withval="$with_glpk_verbosity" |
---|
1725 | if test "$withval" = yes; then |
---|
1726 | withval=1 |
---|
1727 | fi |
---|
1728 | coin_glpk_verbosity=$withval |
---|
1729 | else |
---|
1730 | coin_glpk_verbosity=0 |
---|
1731 | fi; |
---|
1732 | |
---|
1733 | cat >>confdefs.h <<_ACEOF |
---|
1734 | #define COIN_GLPK_VERBOSITY $coin_glpk_verbosity |
---|
1735 | _ACEOF |
---|
1736 | |
---|
1737 | |
---|
1738 | |
---|
1739 | # Check whether --with-glpk-checklevel or --without-glpk-checklevel was given. |
---|
1740 | if test "${with_glpk_checklevel+set}" = set; then |
---|
1741 | withval="$with_glpk_checklevel" |
---|
1742 | if test "$withval" = yes; then |
---|
1743 | withval=1 |
---|
1744 | fi |
---|
1745 | coin_glpk_checklevel=$withval |
---|
1746 | else |
---|
1747 | coin_glpk_checklevel=0 |
---|
1748 | fi; |
---|
1749 | |
---|
1750 | cat >>confdefs.h <<_ACEOF |
---|
1751 | #define COIN_GLPK_CHECKLEVEL $coin_glpk_checklevel |
---|
1752 | _ACEOF |
---|
1753 | |
---|
1754 | |
---|
1755 | # We use the following variable to have a string with the upper case |
---|
1756 | # version of the project name |
---|
1757 | COIN_PRJCT=GLPK |
---|
1758 | |
---|
1759 | |
---|
1760 | # m4_ifvaln([GLPK], |
---|
1761 | |
---|
1762 | |
---|
1763 | |
---|
1764 | # Get the name of the C compiler |
---|
1765 | case $build in |
---|
1766 | *-mingw*) |
---|
1767 | if test "${LD+set}" = set; then :; else |
---|
1768 | LD=link |
---|
1769 | fi |
---|
1770 | ;; |
---|
1771 | esac |
---|
1772 | case $enable_doscompile in |
---|
1773 | msvc) |
---|
1774 | if test "x${LD+set}" = xset; then :; else |
---|
1775 | LD=link |
---|
1776 | fi |
---|
1777 | ;; |
---|
1778 | esac |
---|
1779 | |
---|
1780 | |
---|
1781 | # Check whether --enable-doscompile or --disable-doscompile was given. |
---|
1782 | if test "${enable_doscompile+set}" = set; then |
---|
1783 | enableval="$enable_doscompile" |
---|
1784 | if test "$enable_doscompile" != no; then |
---|
1785 | case $build in |
---|
1786 | *-cygwin*) ;; |
---|
1787 | *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin" >&5 |
---|
1788 | echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin" >&2;} |
---|
1789 | { (exit 1); exit 1; }; } ;; |
---|
1790 | esac |
---|
1791 | fi |
---|
1792 | else |
---|
1793 | enable_doscompile=no |
---|
1794 | fi; |
---|
1795 | case "$enable_doscompile" in |
---|
1796 | msvc|mingw|no) ;; |
---|
1797 | yes) enable_doscompile=mingw ;; |
---|
1798 | *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile. |
---|
1799 | Try configure --help=recursive." >&5 |
---|
1800 | echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile. |
---|
1801 | Try configure --help=recursive." >&2;} |
---|
1802 | { (exit 1); exit 1; }; } |
---|
1803 | ;; |
---|
1804 | esac |
---|
1805 | if test "$enable_doscompile" != no ; then |
---|
1806 | { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5 |
---|
1807 | echo "$as_me: DOS compile style is: $enable_doscompile" >&6;} |
---|
1808 | fi |
---|
1809 | |
---|
1810 | |
---|
1811 | |
---|
1812 | |
---|
1813 | ac_ext=c |
---|
1814 | ac_cpp='$CPP $CPPFLAGS' |
---|
1815 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1816 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1817 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1818 | |
---|
1819 | |
---|
1820 | # For consistency, we set the C compiler to the same value of the C++ |
---|
1821 | # compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl) |
---|
1822 | if test x"$CXX" != x; then |
---|
1823 | case "$CXX" in |
---|
1824 | cl* | */cl* | CL* | */CL*) |
---|
1825 | if test x"$CC" = x; then |
---|
1826 | CC="$CXX" |
---|
1827 | { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5 |
---|
1828 | echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;} |
---|
1829 | fi |
---|
1830 | ;; |
---|
1831 | esac |
---|
1832 | fi |
---|
1833 | |
---|
1834 | |
---|
1835 | |
---|
1836 | |
---|
1837 | |
---|
1838 | |
---|
1839 | coin_has_cc=yes |
---|
1840 | |
---|
1841 | save_cflags="$CFLAGS" |
---|
1842 | # For sparc-sun-solaris, promote Studio/Workshop compiler to front of list. |
---|
1843 | # ToDo: If Studio/Workshop cc is not present, we may find /usr/ucb/cc, which |
---|
1844 | # is likely to be a non-functional shell. But many installations will have |
---|
1845 | # both cc and gcc, so promoting gcc isn't good either. How to test reliably? |
---|
1846 | case $build in |
---|
1847 | *-cygwin* | *-mingw*) |
---|
1848 | if test "$enable_doscompile" = msvc ; then |
---|
1849 | comps="cl" |
---|
1850 | else |
---|
1851 | comps="gcc cl" |
---|
1852 | fi ;; |
---|
1853 | sparc-sun-solaris*) |
---|
1854 | comps="cc xlc gcc pgcc icc" ;; |
---|
1855 | *-linux-*) comps="xlc gcc cc pgcc icc" ;; |
---|
1856 | *) comps="xlc_r xlc cc gcc pgcc icc" ;; |
---|
1857 | esac |
---|
1858 | |
---|
1859 | # We delete the cached value, since the test might not have been |
---|
1860 | # performed with our choice of compilers earlier |
---|
1861 | $as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; } |
---|
1862 | # AC_MSG_NOTICE([C compiler candidates: $comps]) |
---|
1863 | ac_ext=c |
---|
1864 | ac_cpp='$CPP $CPPFLAGS' |
---|
1865 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1866 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1867 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1868 | if test -n "$ac_tool_prefix"; then |
---|
1869 | for ac_prog in $comps |
---|
1870 | do |
---|
1871 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1872 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1873 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1874 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1875 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1877 | else |
---|
1878 | if test -n "$CC"; then |
---|
1879 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1880 | else |
---|
1881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1882 | for as_dir in $PATH |
---|
1883 | do |
---|
1884 | IFS=$as_save_IFS |
---|
1885 | test -z "$as_dir" && as_dir=. |
---|
1886 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1887 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1888 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
1889 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1890 | break 2 |
---|
1891 | fi |
---|
1892 | done |
---|
1893 | done |
---|
1894 | |
---|
1895 | fi |
---|
1896 | fi |
---|
1897 | CC=$ac_cv_prog_CC |
---|
1898 | if test -n "$CC"; then |
---|
1899 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1900 | echo "${ECHO_T}$CC" >&6 |
---|
1901 | else |
---|
1902 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1903 | echo "${ECHO_T}no" >&6 |
---|
1904 | fi |
---|
1905 | |
---|
1906 | test -n "$CC" && break |
---|
1907 | done |
---|
1908 | fi |
---|
1909 | if test -z "$CC"; then |
---|
1910 | ac_ct_CC=$CC |
---|
1911 | for ac_prog in $comps |
---|
1912 | do |
---|
1913 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1914 | set dummy $ac_prog; ac_word=$2 |
---|
1915 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1916 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1917 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1919 | else |
---|
1920 | if test -n "$ac_ct_CC"; then |
---|
1921 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1922 | else |
---|
1923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1924 | for as_dir in $PATH |
---|
1925 | do |
---|
1926 | IFS=$as_save_IFS |
---|
1927 | test -z "$as_dir" && as_dir=. |
---|
1928 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1929 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1930 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
1931 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1932 | break 2 |
---|
1933 | fi |
---|
1934 | done |
---|
1935 | done |
---|
1936 | |
---|
1937 | fi |
---|
1938 | fi |
---|
1939 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1940 | if test -n "$ac_ct_CC"; then |
---|
1941 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
1942 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1943 | else |
---|
1944 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1945 | echo "${ECHO_T}no" >&6 |
---|
1946 | fi |
---|
1947 | |
---|
1948 | test -n "$ac_ct_CC" && break |
---|
1949 | done |
---|
1950 | |
---|
1951 | CC=$ac_ct_CC |
---|
1952 | fi |
---|
1953 | |
---|
1954 | |
---|
1955 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
1956 | See \`config.log' for more details." >&5 |
---|
1957 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
1958 | See \`config.log' for more details." >&2;} |
---|
1959 | { (exit 1); exit 1; }; } |
---|
1960 | |
---|
1961 | # Provide some information about the compiler. |
---|
1962 | echo "$as_me:$LINENO:" \ |
---|
1963 | "checking for C compiler version" >&5 |
---|
1964 | ac_compiler=`set X $ac_compile; echo $2` |
---|
1965 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
1966 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
1967 | ac_status=$? |
---|
1968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1969 | (exit $ac_status); } |
---|
1970 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
1971 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
1972 | ac_status=$? |
---|
1973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1974 | (exit $ac_status); } |
---|
1975 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
1976 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
1977 | ac_status=$? |
---|
1978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1979 | (exit $ac_status); } |
---|
1980 | |
---|
1981 | cat >conftest.$ac_ext <<_ACEOF |
---|
1982 | /* confdefs.h. */ |
---|
1983 | _ACEOF |
---|
1984 | cat confdefs.h >>conftest.$ac_ext |
---|
1985 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1986 | /* end confdefs.h. */ |
---|
1987 | |
---|
1988 | int |
---|
1989 | main () |
---|
1990 | { |
---|
1991 | |
---|
1992 | ; |
---|
1993 | return 0; |
---|
1994 | } |
---|
1995 | _ACEOF |
---|
1996 | ac_clean_files_save=$ac_clean_files |
---|
1997 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
1998 | # Try to create an executable without -o first, disregard a.out. |
---|
1999 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
2000 | # of exeext. |
---|
2001 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
---|
2002 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
---|
2003 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2004 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
2005 | (eval $ac_link_default) 2>&5 |
---|
2006 | ac_status=$? |
---|
2007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2008 | (exit $ac_status); }; then |
---|
2009 | # Find the output, starting from the most likely. This scheme is |
---|
2010 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
2011 | # resort. |
---|
2012 | |
---|
2013 | # Be careful to initialize this variable, since it used to be cached. |
---|
2014 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
2015 | ac_cv_exeext= |
---|
2016 | # b.out is created by i960 compilers. |
---|
2017 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
2018 | do |
---|
2019 | test -f "$ac_file" || continue |
---|
2020 | case $ac_file in |
---|
2021 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
2022 | ;; |
---|
2023 | conftest.$ac_ext ) |
---|
2024 | # This is the source file. |
---|
2025 | ;; |
---|
2026 | [ab].out ) |
---|
2027 | # We found the default executable, but exeext='' is most |
---|
2028 | # certainly right. |
---|
2029 | break;; |
---|
2030 | *.* ) |
---|
2031 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2032 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
2033 | # but it would be cool to find out if it's true. Does anybody |
---|
2034 | # maintain Libtool? --akim. |
---|
2035 | export ac_cv_exeext |
---|
2036 | break;; |
---|
2037 | * ) |
---|
2038 | break;; |
---|
2039 | esac |
---|
2040 | done |
---|
2041 | else |
---|
2042 | echo "$as_me: failed program was:" >&5 |
---|
2043 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2044 | |
---|
2045 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
2046 | See \`config.log' for more details." >&5 |
---|
2047 | echo "$as_me: error: C compiler cannot create executables |
---|
2048 | See \`config.log' for more details." >&2;} |
---|
2049 | { (exit 77); exit 77; }; } |
---|
2050 | fi |
---|
2051 | |
---|
2052 | ac_exeext=$ac_cv_exeext |
---|
2053 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2054 | echo "${ECHO_T}$ac_file" >&6 |
---|
2055 | |
---|
2056 | # Check the compiler produces executables we can run. If not, either |
---|
2057 | # the compiler is broken, or we cross compile. |
---|
2058 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
2059 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
---|
2060 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2061 | # If not cross compiling, check that we can run a simple program. |
---|
2062 | if test "$cross_compiling" != yes; then |
---|
2063 | if { ac_try='./$ac_file' |
---|
2064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2065 | (eval $ac_try) 2>&5 |
---|
2066 | ac_status=$? |
---|
2067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2068 | (exit $ac_status); }; }; then |
---|
2069 | cross_compiling=no |
---|
2070 | else |
---|
2071 | if test "$cross_compiling" = maybe; then |
---|
2072 | cross_compiling=yes |
---|
2073 | else |
---|
2074 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
2075 | If you meant to cross compile, use \`--host'. |
---|
2076 | See \`config.log' for more details." >&5 |
---|
2077 | echo "$as_me: error: cannot run C compiled programs. |
---|
2078 | If you meant to cross compile, use \`--host'. |
---|
2079 | See \`config.log' for more details." >&2;} |
---|
2080 | { (exit 1); exit 1; }; } |
---|
2081 | fi |
---|
2082 | fi |
---|
2083 | fi |
---|
2084 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
2085 | echo "${ECHO_T}yes" >&6 |
---|
2086 | |
---|
2087 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
2088 | ac_clean_files=$ac_clean_files_save |
---|
2089 | # Check the compiler produces executables we can run. If not, either |
---|
2090 | # the compiler is broken, or we cross compile. |
---|
2091 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2092 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
2093 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2094 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
2095 | |
---|
2096 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2097 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
2098 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2099 | (eval $ac_link) 2>&5 |
---|
2100 | ac_status=$? |
---|
2101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2102 | (exit $ac_status); }; then |
---|
2103 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2104 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2105 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2106 | # `rm'. |
---|
2107 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2108 | test -f "$ac_file" || continue |
---|
2109 | case $ac_file in |
---|
2110 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
2111 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2112 | export ac_cv_exeext |
---|
2113 | break;; |
---|
2114 | * ) break;; |
---|
2115 | esac |
---|
2116 | done |
---|
2117 | else |
---|
2118 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2119 | See \`config.log' for more details." >&5 |
---|
2120 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2121 | See \`config.log' for more details." >&2;} |
---|
2122 | { (exit 1); exit 1; }; } |
---|
2123 | fi |
---|
2124 | |
---|
2125 | rm -f conftest$ac_cv_exeext |
---|
2126 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2127 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2128 | |
---|
2129 | rm -f conftest.$ac_ext |
---|
2130 | EXEEXT=$ac_cv_exeext |
---|
2131 | ac_exeext=$EXEEXT |
---|
2132 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2133 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2134 | if test "${ac_cv_objext+set}" = set; then |
---|
2135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2136 | else |
---|
2137 | cat >conftest.$ac_ext <<_ACEOF |
---|
2138 | /* confdefs.h. */ |
---|
2139 | _ACEOF |
---|
2140 | cat confdefs.h >>conftest.$ac_ext |
---|
2141 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2142 | /* end confdefs.h. */ |
---|
2143 | |
---|
2144 | int |
---|
2145 | main () |
---|
2146 | { |
---|
2147 | |
---|
2148 | ; |
---|
2149 | return 0; |
---|
2150 | } |
---|
2151 | _ACEOF |
---|
2152 | rm -f conftest.o conftest.obj |
---|
2153 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2154 | (eval $ac_compile) 2>&5 |
---|
2155 | ac_status=$? |
---|
2156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2157 | (exit $ac_status); }; then |
---|
2158 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2159 | case $ac_file in |
---|
2160 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2161 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2162 | break;; |
---|
2163 | esac |
---|
2164 | done |
---|
2165 | else |
---|
2166 | echo "$as_me: failed program was:" >&5 |
---|
2167 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2168 | |
---|
2169 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2170 | See \`config.log' for more details." >&5 |
---|
2171 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2172 | See \`config.log' for more details." >&2;} |
---|
2173 | { (exit 1); exit 1; }; } |
---|
2174 | fi |
---|
2175 | |
---|
2176 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2177 | fi |
---|
2178 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2179 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2180 | OBJEXT=$ac_cv_objext |
---|
2181 | ac_objext=$OBJEXT |
---|
2182 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2183 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2184 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2186 | else |
---|
2187 | cat >conftest.$ac_ext <<_ACEOF |
---|
2188 | /* confdefs.h. */ |
---|
2189 | _ACEOF |
---|
2190 | cat confdefs.h >>conftest.$ac_ext |
---|
2191 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2192 | /* end confdefs.h. */ |
---|
2193 | |
---|
2194 | int |
---|
2195 | main () |
---|
2196 | { |
---|
2197 | #ifndef __GNUC__ |
---|
2198 | choke me |
---|
2199 | #endif |
---|
2200 | |
---|
2201 | ; |
---|
2202 | return 0; |
---|
2203 | } |
---|
2204 | _ACEOF |
---|
2205 | rm -f conftest.$ac_objext |
---|
2206 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2207 | (eval $ac_compile) 2>conftest.er1 |
---|
2208 | ac_status=$? |
---|
2209 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2210 | rm -f conftest.er1 |
---|
2211 | cat conftest.err >&5 |
---|
2212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2213 | (exit $ac_status); } && |
---|
2214 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2215 | || test ! -s conftest.err' |
---|
2216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2217 | (eval $ac_try) 2>&5 |
---|
2218 | ac_status=$? |
---|
2219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2220 | (exit $ac_status); }; } && |
---|
2221 | { ac_try='test -s conftest.$ac_objext' |
---|
2222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2223 | (eval $ac_try) 2>&5 |
---|
2224 | ac_status=$? |
---|
2225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2226 | (exit $ac_status); }; }; then |
---|
2227 | ac_compiler_gnu=yes |
---|
2228 | else |
---|
2229 | echo "$as_me: failed program was:" >&5 |
---|
2230 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2231 | |
---|
2232 | ac_compiler_gnu=no |
---|
2233 | fi |
---|
2234 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2235 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2236 | |
---|
2237 | fi |
---|
2238 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2239 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2240 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2241 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2242 | ac_save_CFLAGS=$CFLAGS |
---|
2243 | CFLAGS="-g" |
---|
2244 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2245 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2246 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2248 | else |
---|
2249 | cat >conftest.$ac_ext <<_ACEOF |
---|
2250 | /* confdefs.h. */ |
---|
2251 | _ACEOF |
---|
2252 | cat confdefs.h >>conftest.$ac_ext |
---|
2253 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2254 | /* end confdefs.h. */ |
---|
2255 | |
---|
2256 | int |
---|
2257 | main () |
---|
2258 | { |
---|
2259 | |
---|
2260 | ; |
---|
2261 | return 0; |
---|
2262 | } |
---|
2263 | _ACEOF |
---|
2264 | rm -f conftest.$ac_objext |
---|
2265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2266 | (eval $ac_compile) 2>conftest.er1 |
---|
2267 | ac_status=$? |
---|
2268 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2269 | rm -f conftest.er1 |
---|
2270 | cat conftest.err >&5 |
---|
2271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2272 | (exit $ac_status); } && |
---|
2273 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2274 | || test ! -s conftest.err' |
---|
2275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2276 | (eval $ac_try) 2>&5 |
---|
2277 | ac_status=$? |
---|
2278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2279 | (exit $ac_status); }; } && |
---|
2280 | { ac_try='test -s conftest.$ac_objext' |
---|
2281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2282 | (eval $ac_try) 2>&5 |
---|
2283 | ac_status=$? |
---|
2284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2285 | (exit $ac_status); }; }; then |
---|
2286 | ac_cv_prog_cc_g=yes |
---|
2287 | else |
---|
2288 | echo "$as_me: failed program was:" >&5 |
---|
2289 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2290 | |
---|
2291 | ac_cv_prog_cc_g=no |
---|
2292 | fi |
---|
2293 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2294 | fi |
---|
2295 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2296 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
2297 | if test "$ac_test_CFLAGS" = set; then |
---|
2298 | CFLAGS=$ac_save_CFLAGS |
---|
2299 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2300 | if test "$GCC" = yes; then |
---|
2301 | CFLAGS="-g -O2" |
---|
2302 | else |
---|
2303 | CFLAGS="-g" |
---|
2304 | fi |
---|
2305 | else |
---|
2306 | if test "$GCC" = yes; then |
---|
2307 | CFLAGS="-O2" |
---|
2308 | else |
---|
2309 | CFLAGS= |
---|
2310 | fi |
---|
2311 | fi |
---|
2312 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
2313 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
2314 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
2315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2316 | else |
---|
2317 | ac_cv_prog_cc_stdc=no |
---|
2318 | ac_save_CC=$CC |
---|
2319 | cat >conftest.$ac_ext <<_ACEOF |
---|
2320 | /* confdefs.h. */ |
---|
2321 | _ACEOF |
---|
2322 | cat confdefs.h >>conftest.$ac_ext |
---|
2323 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2324 | /* end confdefs.h. */ |
---|
2325 | #include <stdarg.h> |
---|
2326 | #include <stdio.h> |
---|
2327 | #include <sys/types.h> |
---|
2328 | #include <sys/stat.h> |
---|
2329 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2330 | struct buf { int x; }; |
---|
2331 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2332 | static char *e (p, i) |
---|
2333 | char **p; |
---|
2334 | int i; |
---|
2335 | { |
---|
2336 | return p[i]; |
---|
2337 | } |
---|
2338 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2339 | { |
---|
2340 | char *s; |
---|
2341 | va_list v; |
---|
2342 | va_start (v,p); |
---|
2343 | s = g (p, va_arg (v,int)); |
---|
2344 | va_end (v); |
---|
2345 | return s; |
---|
2346 | } |
---|
2347 | |
---|
2348 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
2349 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
2350 | These don't provoke an error unfortunately, instead are silently treated |
---|
2351 | as 'x'. The following induces an error, until -std1 is added to get |
---|
2352 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
2353 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
2354 | that's true only with -std1. */ |
---|
2355 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
2356 | |
---|
2357 | int test (int i, double x); |
---|
2358 | struct s1 {int (*f) (int a);}; |
---|
2359 | struct s2 {int (*f) (double a);}; |
---|
2360 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2361 | int argc; |
---|
2362 | char **argv; |
---|
2363 | int |
---|
2364 | main () |
---|
2365 | { |
---|
2366 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2367 | ; |
---|
2368 | return 0; |
---|
2369 | } |
---|
2370 | _ACEOF |
---|
2371 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
2372 | # breaks some systems' header files. |
---|
2373 | # AIX -qlanglvl=ansi |
---|
2374 | # Ultrix and OSF/1 -std1 |
---|
2375 | # HP-UX 10.20 and later -Ae |
---|
2376 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
2377 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
2378 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
2379 | do |
---|
2380 | CC="$ac_save_CC $ac_arg" |
---|
2381 | rm -f conftest.$ac_objext |
---|
2382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2383 | (eval $ac_compile) 2>conftest.er1 |
---|
2384 | ac_status=$? |
---|
2385 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2386 | rm -f conftest.er1 |
---|
2387 | cat conftest.err >&5 |
---|
2388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2389 | (exit $ac_status); } && |
---|
2390 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2391 | || test ! -s conftest.err' |
---|
2392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2393 | (eval $ac_try) 2>&5 |
---|
2394 | ac_status=$? |
---|
2395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2396 | (exit $ac_status); }; } && |
---|
2397 | { ac_try='test -s conftest.$ac_objext' |
---|
2398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2399 | (eval $ac_try) 2>&5 |
---|
2400 | ac_status=$? |
---|
2401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2402 | (exit $ac_status); }; }; then |
---|
2403 | ac_cv_prog_cc_stdc=$ac_arg |
---|
2404 | break |
---|
2405 | else |
---|
2406 | echo "$as_me: failed program was:" >&5 |
---|
2407 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2408 | |
---|
2409 | fi |
---|
2410 | rm -f conftest.err conftest.$ac_objext |
---|
2411 | done |
---|
2412 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
2413 | CC=$ac_save_CC |
---|
2414 | |
---|
2415 | fi |
---|
2416 | |
---|
2417 | case "x$ac_cv_prog_cc_stdc" in |
---|
2418 | x|xno) |
---|
2419 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
2420 | echo "${ECHO_T}none needed" >&6 ;; |
---|
2421 | *) |
---|
2422 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
2423 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
2424 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
2425 | esac |
---|
2426 | |
---|
2427 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
2428 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
2429 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
2430 | # the declaration of exit, since it's the most demanding environment. |
---|
2431 | cat >conftest.$ac_ext <<_ACEOF |
---|
2432 | #ifndef __cplusplus |
---|
2433 | choke me |
---|
2434 | #endif |
---|
2435 | _ACEOF |
---|
2436 | rm -f conftest.$ac_objext |
---|
2437 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2438 | (eval $ac_compile) 2>conftest.er1 |
---|
2439 | ac_status=$? |
---|
2440 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2441 | rm -f conftest.er1 |
---|
2442 | cat conftest.err >&5 |
---|
2443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2444 | (exit $ac_status); } && |
---|
2445 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2446 | || test ! -s conftest.err' |
---|
2447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2448 | (eval $ac_try) 2>&5 |
---|
2449 | ac_status=$? |
---|
2450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2451 | (exit $ac_status); }; } && |
---|
2452 | { ac_try='test -s conftest.$ac_objext' |
---|
2453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2454 | (eval $ac_try) 2>&5 |
---|
2455 | ac_status=$? |
---|
2456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2457 | (exit $ac_status); }; }; then |
---|
2458 | for ac_declaration in \ |
---|
2459 | '' \ |
---|
2460 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2461 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2462 | 'extern "C" void exit (int) throw ();' \ |
---|
2463 | 'extern "C" void exit (int);' \ |
---|
2464 | 'void exit (int);' |
---|
2465 | do |
---|
2466 | cat >conftest.$ac_ext <<_ACEOF |
---|
2467 | /* confdefs.h. */ |
---|
2468 | _ACEOF |
---|
2469 | cat confdefs.h >>conftest.$ac_ext |
---|
2470 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2471 | /* end confdefs.h. */ |
---|
2472 | $ac_declaration |
---|
2473 | #include <stdlib.h> |
---|
2474 | int |
---|
2475 | main () |
---|
2476 | { |
---|
2477 | exit (42); |
---|
2478 | ; |
---|
2479 | return 0; |
---|
2480 | } |
---|
2481 | _ACEOF |
---|
2482 | rm -f conftest.$ac_objext |
---|
2483 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2484 | (eval $ac_compile) 2>conftest.er1 |
---|
2485 | ac_status=$? |
---|
2486 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2487 | rm -f conftest.er1 |
---|
2488 | cat conftest.err >&5 |
---|
2489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2490 | (exit $ac_status); } && |
---|
2491 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2492 | || test ! -s conftest.err' |
---|
2493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2494 | (eval $ac_try) 2>&5 |
---|
2495 | ac_status=$? |
---|
2496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2497 | (exit $ac_status); }; } && |
---|
2498 | { ac_try='test -s conftest.$ac_objext' |
---|
2499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2500 | (eval $ac_try) 2>&5 |
---|
2501 | ac_status=$? |
---|
2502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2503 | (exit $ac_status); }; }; then |
---|
2504 | : |
---|
2505 | else |
---|
2506 | echo "$as_me: failed program was:" >&5 |
---|
2507 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2508 | |
---|
2509 | continue |
---|
2510 | fi |
---|
2511 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2512 | cat >conftest.$ac_ext <<_ACEOF |
---|
2513 | /* confdefs.h. */ |
---|
2514 | _ACEOF |
---|
2515 | cat confdefs.h >>conftest.$ac_ext |
---|
2516 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2517 | /* end confdefs.h. */ |
---|
2518 | $ac_declaration |
---|
2519 | int |
---|
2520 | main () |
---|
2521 | { |
---|
2522 | exit (42); |
---|
2523 | ; |
---|
2524 | return 0; |
---|
2525 | } |
---|
2526 | _ACEOF |
---|
2527 | rm -f conftest.$ac_objext |
---|
2528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2529 | (eval $ac_compile) 2>conftest.er1 |
---|
2530 | ac_status=$? |
---|
2531 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2532 | rm -f conftest.er1 |
---|
2533 | cat conftest.err >&5 |
---|
2534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2535 | (exit $ac_status); } && |
---|
2536 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2537 | || test ! -s conftest.err' |
---|
2538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2539 | (eval $ac_try) 2>&5 |
---|
2540 | ac_status=$? |
---|
2541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2542 | (exit $ac_status); }; } && |
---|
2543 | { ac_try='test -s conftest.$ac_objext' |
---|
2544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2545 | (eval $ac_try) 2>&5 |
---|
2546 | ac_status=$? |
---|
2547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2548 | (exit $ac_status); }; }; then |
---|
2549 | break |
---|
2550 | else |
---|
2551 | echo "$as_me: failed program was:" >&5 |
---|
2552 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2553 | |
---|
2554 | fi |
---|
2555 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2556 | done |
---|
2557 | rm -f conftest* |
---|
2558 | if test -n "$ac_declaration"; then |
---|
2559 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2560 | echo $ac_declaration >>confdefs.h |
---|
2561 | echo '#endif' >>confdefs.h |
---|
2562 | fi |
---|
2563 | |
---|
2564 | else |
---|
2565 | echo "$as_me: failed program was:" >&5 |
---|
2566 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2567 | |
---|
2568 | fi |
---|
2569 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2570 | ac_ext=c |
---|
2571 | ac_cpp='$CPP $CPPFLAGS' |
---|
2572 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2573 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2574 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2575 | |
---|
2576 | if test -z "$CC" ; then |
---|
2577 | { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5 |
---|
2578 | echo "$as_me: error: Failed to find a C compiler!" >&2;} |
---|
2579 | { (exit 1); exit 1; }; } |
---|
2580 | fi |
---|
2581 | # Autoconf incorrectly concludes that cl recognises -g. It doesn't. |
---|
2582 | case "$CC" in |
---|
2583 | cl* | */cl* | CL* | */CL* ) |
---|
2584 | if test "$ac_cv_prog_cc_g" = yes ; then |
---|
2585 | ac_cv_prog_cc_g=no |
---|
2586 | { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 |
---|
2587 | echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} |
---|
2588 | fi ;; |
---|
2589 | esac |
---|
2590 | CFLAGS="$save_cflags" |
---|
2591 | |
---|
2592 | # Check if a project specific CFLAGS variable has been set |
---|
2593 | if test x$COIN_PRJCT != x; then |
---|
2594 | eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set} |
---|
2595 | if test x$coin_tmp = xset; then |
---|
2596 | eval CFLAGS=\${${COIN_PRJCT}_CFLAGS} |
---|
2597 | fi |
---|
2598 | fi |
---|
2599 | |
---|
2600 | if test x"$CFLAGS" = x; then |
---|
2601 | |
---|
2602 | coin_add_cflags= |
---|
2603 | coin_opt_cflags= |
---|
2604 | coin_dbg_cflags= |
---|
2605 | coin_warn_cflags= |
---|
2606 | |
---|
2607 | if test "$GCC" = "yes"; then |
---|
2608 | case "$CC" in |
---|
2609 | icc* | */icc*) |
---|
2610 | ;; |
---|
2611 | *) |
---|
2612 | coin_opt_cflags="-O3 -fomit-frame-pointer" |
---|
2613 | coin_add_cflags="-pipe" |
---|
2614 | coin_dbg_cflags="-g" |
---|
2615 | coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall" |
---|
2616 | case $enable_doscompile in |
---|
2617 | mingw) |
---|
2618 | CFLAGS="-mno-cygwin" |
---|
2619 | cat >conftest.$ac_ext <<_ACEOF |
---|
2620 | /* confdefs.h. */ |
---|
2621 | _ACEOF |
---|
2622 | cat confdefs.h >>conftest.$ac_ext |
---|
2623 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2624 | /* end confdefs.h. */ |
---|
2625 | |
---|
2626 | int |
---|
2627 | main () |
---|
2628 | { |
---|
2629 | int i=0; i++; |
---|
2630 | ; |
---|
2631 | return 0; |
---|
2632 | } |
---|
2633 | _ACEOF |
---|
2634 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2635 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2636 | (eval $ac_link) 2>conftest.er1 |
---|
2637 | ac_status=$? |
---|
2638 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2639 | rm -f conftest.er1 |
---|
2640 | cat conftest.err >&5 |
---|
2641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2642 | (exit $ac_status); } && |
---|
2643 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2644 | || test ! -s conftest.err' |
---|
2645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2646 | (eval $ac_try) 2>&5 |
---|
2647 | ac_status=$? |
---|
2648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2649 | (exit $ac_status); }; } && |
---|
2650 | { ac_try='test -s conftest$ac_exeext' |
---|
2651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2652 | (eval $ac_try) 2>&5 |
---|
2653 | ac_status=$? |
---|
2654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2655 | (exit $ac_status); }; }; then |
---|
2656 | coin_add_cflags="-mno-cygwin $coin_add_cflags" |
---|
2657 | else |
---|
2658 | echo "$as_me: failed program was:" >&5 |
---|
2659 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2660 | |
---|
2661 | fi |
---|
2662 | rm -f conftest.err conftest.$ac_objext \ |
---|
2663 | conftest$ac_exeext conftest.$ac_ext |
---|
2664 | CFLAGS= |
---|
2665 | ;; |
---|
2666 | esac |
---|
2667 | esac |
---|
2668 | fi |
---|
2669 | if test -z "$coin_opt_cflags"; then |
---|
2670 | case $build in |
---|
2671 | *-cygwin* | *-mingw*) |
---|
2672 | case "$CC" in |
---|
2673 | cl* | */cl* | CL* | */CL*) |
---|
2674 | coin_opt_cflags='-MT -O2' |
---|
2675 | coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE' |
---|
2676 | coin_dbg_cflags='-MTd' |
---|
2677 | ;; |
---|
2678 | esac |
---|
2679 | ;; |
---|
2680 | *-linux-*) |
---|
2681 | case "$CC" in |
---|
2682 | icc* | */icc*) |
---|
2683 | coin_opt_cflags="-O3 -ip" |
---|
2684 | coin_add_cflags="" |
---|
2685 | coin_dbg_cflags="-g" |
---|
2686 | # Check if -i_dynamic is necessary (for new glibc library) |
---|
2687 | CFLAGS= |
---|
2688 | cat >conftest.$ac_ext <<_ACEOF |
---|
2689 | /* confdefs.h. */ |
---|
2690 | _ACEOF |
---|
2691 | cat confdefs.h >>conftest.$ac_ext |
---|
2692 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2693 | /* end confdefs.h. */ |
---|
2694 | |
---|
2695 | int |
---|
2696 | main () |
---|
2697 | { |
---|
2698 | int i=0; i++; |
---|
2699 | ; |
---|
2700 | return 0; |
---|
2701 | } |
---|
2702 | _ACEOF |
---|
2703 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2704 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2705 | (eval $ac_link) 2>conftest.er1 |
---|
2706 | ac_status=$? |
---|
2707 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2708 | rm -f conftest.er1 |
---|
2709 | cat conftest.err >&5 |
---|
2710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2711 | (exit $ac_status); } && |
---|
2712 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2713 | || test ! -s conftest.err' |
---|
2714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2715 | (eval $ac_try) 2>&5 |
---|
2716 | ac_status=$? |
---|
2717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2718 | (exit $ac_status); }; } && |
---|
2719 | { ac_try='test -s conftest$ac_exeext' |
---|
2720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2721 | (eval $ac_try) 2>&5 |
---|
2722 | ac_status=$? |
---|
2723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2724 | (exit $ac_status); }; }; then |
---|
2725 | : |
---|
2726 | else |
---|
2727 | echo "$as_me: failed program was:" >&5 |
---|
2728 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2729 | |
---|
2730 | coin_add_cflags="-i_dynamic $coin_add_cflags" |
---|
2731 | fi |
---|
2732 | rm -f conftest.err conftest.$ac_objext \ |
---|
2733 | conftest$ac_exeext conftest.$ac_ext |
---|
2734 | ;; |
---|
2735 | pgcc* | */pgcc*) |
---|
2736 | coin_opt_cflags="-fast" |
---|
2737 | coin_add_cflags="-Kieee -pc 64" |
---|
2738 | coin_dbg_cflags="-g" |
---|
2739 | ;; |
---|
2740 | esac |
---|
2741 | ;; |
---|
2742 | *-ibm-*) |
---|
2743 | case "$CC" in |
---|
2744 | xlc* | */xlc* | mpxlc* | */mpxlc*) |
---|
2745 | coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" |
---|
2746 | coin_add_cflags="-bmaxdata:0x80000000" |
---|
2747 | coin_dbg_cflags="-g" |
---|
2748 | ;; |
---|
2749 | esac |
---|
2750 | ;; |
---|
2751 | *-hp-*) |
---|
2752 | coin_opt_cflags="-O" |
---|
2753 | coin_add_cflags="-Ae" |
---|
2754 | coin_dbg_cflags="-g" |
---|
2755 | ;; |
---|
2756 | *-sun-*) |
---|
2757 | coin_opt_cflags="-xO4" |
---|
2758 | coin_dbg_cflags="-g" |
---|
2759 | ;; |
---|
2760 | *-sgi-*) |
---|
2761 | coin_opt_cflags="-O -OPT:Olimit=0" |
---|
2762 | coin_dbg_cflags="-g" |
---|
2763 | ;; |
---|
2764 | esac |
---|
2765 | fi |
---|
2766 | |
---|
2767 | if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then |
---|
2768 | coin_dbg_cflags="-g" |
---|
2769 | fi |
---|
2770 | |
---|
2771 | if test -z "$coin_opt_cflags"; then |
---|
2772 | # Try if -O option works if nothing else is set |
---|
2773 | CFLAGS="-O" |
---|
2774 | cat >conftest.$ac_ext <<_ACEOF |
---|
2775 | /* confdefs.h. */ |
---|
2776 | _ACEOF |
---|
2777 | cat confdefs.h >>conftest.$ac_ext |
---|
2778 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2779 | /* end confdefs.h. */ |
---|
2780 | |
---|
2781 | int |
---|
2782 | main () |
---|
2783 | { |
---|
2784 | int i=0; i++; |
---|
2785 | ; |
---|
2786 | return 0; |
---|
2787 | } |
---|
2788 | _ACEOF |
---|
2789 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2790 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2791 | (eval $ac_link) 2>conftest.er1 |
---|
2792 | ac_status=$? |
---|
2793 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2794 | rm -f conftest.er1 |
---|
2795 | cat conftest.err >&5 |
---|
2796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2797 | (exit $ac_status); } && |
---|
2798 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2799 | || test ! -s conftest.err' |
---|
2800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2801 | (eval $ac_try) 2>&5 |
---|
2802 | ac_status=$? |
---|
2803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2804 | (exit $ac_status); }; } && |
---|
2805 | { ac_try='test -s conftest$ac_exeext' |
---|
2806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2807 | (eval $ac_try) 2>&5 |
---|
2808 | ac_status=$? |
---|
2809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2810 | (exit $ac_status); }; }; then |
---|
2811 | coin_opt_cflags="-O" |
---|
2812 | else |
---|
2813 | echo "$as_me: failed program was:" >&5 |
---|
2814 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2815 | |
---|
2816 | fi |
---|
2817 | rm -f conftest.err conftest.$ac_objext \ |
---|
2818 | conftest$ac_exeext conftest.$ac_ext |
---|
2819 | fi |
---|
2820 | |
---|
2821 | # if PM doesn't want the warning messages, take them out |
---|
2822 | if test x"$coin_skip_warn_cflags" = xyes; then |
---|
2823 | coin_warn_cflags= |
---|
2824 | fi |
---|
2825 | |
---|
2826 | if test x${DBG_CFLAGS+set} != xset; then |
---|
2827 | DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags" |
---|
2828 | fi |
---|
2829 | if test x${OPT_CFLAGS+set} != xset; then |
---|
2830 | OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags" |
---|
2831 | fi |
---|
2832 | |
---|
2833 | DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS" |
---|
2834 | OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS" |
---|
2835 | |
---|
2836 | if test "$coin_debug_compile" = "true"; then |
---|
2837 | CFLAGS="$DBG_CFLAGS" |
---|
2838 | else |
---|
2839 | CFLAGS="$OPT_CFLAGS" |
---|
2840 | fi |
---|
2841 | else |
---|
2842 | CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS" |
---|
2843 | if test x${DBG_CFLAGS+set} != xset; then |
---|
2844 | DBG_CFLAGS="$CFLAGS" |
---|
2845 | fi |
---|
2846 | if test x${OPT_CFLAGS+set} != xset; then |
---|
2847 | OPT_CFLAGS="$CFLAGS" |
---|
2848 | fi |
---|
2849 | fi |
---|
2850 | |
---|
2851 | # If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it. |
---|
2852 | |
---|
2853 | case "$CFLAGS" in |
---|
2854 | *-mno-cygwin*) |
---|
2855 | if test x${CPPFLAGS+set} != xset ; then |
---|
2856 | CPPFLAGS="-mno-cygwin" |
---|
2857 | else |
---|
2858 | case "$CPPFLAGS" in |
---|
2859 | *-mno-cygwin*) |
---|
2860 | ;; |
---|
2861 | *) |
---|
2862 | CPPFLAGS="$CPPFLAGS -mno-cygwin" |
---|
2863 | ;; |
---|
2864 | esac |
---|
2865 | fi ;; |
---|
2866 | esac |
---|
2867 | |
---|
2868 | # Try if CFLAGS works |
---|
2869 | save_CFLAGS="$CFLAGS" |
---|
2870 | cat >conftest.$ac_ext <<_ACEOF |
---|
2871 | /* confdefs.h. */ |
---|
2872 | _ACEOF |
---|
2873 | cat confdefs.h >>conftest.$ac_ext |
---|
2874 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2875 | /* end confdefs.h. */ |
---|
2876 | |
---|
2877 | int |
---|
2878 | main () |
---|
2879 | { |
---|
2880 | int i=0; i++; |
---|
2881 | ; |
---|
2882 | return 0; |
---|
2883 | } |
---|
2884 | _ACEOF |
---|
2885 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2886 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2887 | (eval $ac_link) 2>conftest.er1 |
---|
2888 | ac_status=$? |
---|
2889 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2890 | rm -f conftest.er1 |
---|
2891 | cat conftest.err >&5 |
---|
2892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2893 | (exit $ac_status); } && |
---|
2894 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2895 | || test ! -s conftest.err' |
---|
2896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2897 | (eval $ac_try) 2>&5 |
---|
2898 | ac_status=$? |
---|
2899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2900 | (exit $ac_status); }; } && |
---|
2901 | { ac_try='test -s conftest$ac_exeext' |
---|
2902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2903 | (eval $ac_try) 2>&5 |
---|
2904 | ac_status=$? |
---|
2905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2906 | (exit $ac_status); }; }; then |
---|
2907 | : |
---|
2908 | else |
---|
2909 | echo "$as_me: failed program was:" >&5 |
---|
2910 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2911 | |
---|
2912 | CFLAGS= |
---|
2913 | fi |
---|
2914 | rm -f conftest.err conftest.$ac_objext \ |
---|
2915 | conftest$ac_exeext conftest.$ac_ext |
---|
2916 | if test -z "$CFLAGS"; then |
---|
2917 | { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work. I will now just try '-O', but you might want to set CFLAGS manually." >&5 |
---|
2918 | echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work. I will now just try '-O', but you might want to set CFLAGS manually." >&2;} |
---|
2919 | CFLAGS='-O' |
---|
2920 | cat >conftest.$ac_ext <<_ACEOF |
---|
2921 | /* confdefs.h. */ |
---|
2922 | _ACEOF |
---|
2923 | cat confdefs.h >>conftest.$ac_ext |
---|
2924 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2925 | /* end confdefs.h. */ |
---|
2926 | |
---|
2927 | int |
---|
2928 | main () |
---|
2929 | { |
---|
2930 | int i=0; i++; |
---|
2931 | ; |
---|
2932 | return 0; |
---|
2933 | } |
---|
2934 | _ACEOF |
---|
2935 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2936 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2937 | (eval $ac_link) 2>conftest.er1 |
---|
2938 | ac_status=$? |
---|
2939 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2940 | rm -f conftest.er1 |
---|
2941 | cat conftest.err >&5 |
---|
2942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2943 | (exit $ac_status); } && |
---|
2944 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2945 | || test ! -s conftest.err' |
---|
2946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2947 | (eval $ac_try) 2>&5 |
---|
2948 | ac_status=$? |
---|
2949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2950 | (exit $ac_status); }; } && |
---|
2951 | { ac_try='test -s conftest$ac_exeext' |
---|
2952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2953 | (eval $ac_try) 2>&5 |
---|
2954 | ac_status=$? |
---|
2955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2956 | (exit $ac_status); }; }; then |
---|
2957 | : |
---|
2958 | else |
---|
2959 | echo "$as_me: failed program was:" >&5 |
---|
2960 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2961 | |
---|
2962 | CFLAGS= |
---|
2963 | fi |
---|
2964 | rm -f conftest.err conftest.$ac_objext \ |
---|
2965 | conftest$ac_exeext conftest.$ac_ext |
---|
2966 | if test -z "$CFLAGS"; then |
---|
2967 | { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work. I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5 |
---|
2968 | echo "$as_me: WARNING: This value for CFLAGS does not work. I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;} |
---|
2969 | fi |
---|
2970 | fi |
---|
2971 | |
---|
2972 | { echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5 |
---|
2973 | echo "$as_me: C compiler options are: $CFLAGS" >&6;} |
---|
2974 | |
---|
2975 | |
---|
2976 | if test x"$MPICC" = x; then :; else |
---|
2977 | { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5 |
---|
2978 | echo "$as_me: Will use MPI C compiler $MPICC" >&6;} |
---|
2979 | CC="$MPICC" |
---|
2980 | fi |
---|
2981 | |
---|
2982 | # Correct ADDLIBS initialization if we are using the MS compiler |
---|
2983 | case "$CC" in |
---|
2984 | cl* | */cl* | CL* | */CL*) |
---|
2985 | ADDLIBS= |
---|
2986 | case $build in |
---|
2987 | *-mingw*) |
---|
2988 | if test "${LD+set}" = set; then :; else |
---|
2989 | LD=link |
---|
2990 | fi |
---|
2991 | ;; |
---|
2992 | esac |
---|
2993 | case $enable_doscompile in |
---|
2994 | msvc) |
---|
2995 | if test "x${LD+set}" = xset; then :; else |
---|
2996 | LD=link |
---|
2997 | fi |
---|
2998 | ;; |
---|
2999 | esac |
---|
3000 | |
---|
3001 | ;; |
---|
3002 | esac |
---|
3003 | |
---|
3004 | ac_ext=c |
---|
3005 | ac_cpp='$CPP $CPPFLAGS' |
---|
3006 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3007 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3008 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3009 | |
---|
3010 | |
---|
3011 | |
---|
3012 | # Initialize automake |
---|
3013 | { |
---|
3014 | |
---|
3015 | |
---|
3016 | |
---|
3017 | # START |
---|
3018 | |
---|
3019 | # On Cygwin, building DLLs doesn't work |
---|
3020 | case $build in |
---|
3021 | *-cygwin*) |
---|
3022 | coin_disable_shared=yes |
---|
3023 | platform=Cygwin |
---|
3024 | ;; |
---|
3025 | *-mingw*) |
---|
3026 | coin_disable_shared=yes |
---|
3027 | platform="Msys" |
---|
3028 | # case "$CXX" in |
---|
3029 | # cl*) |
---|
3030 | # coin_disable_shared=yes |
---|
3031 | # platform="Msys with cl" |
---|
3032 | # ;; |
---|
3033 | # esac |
---|
3034 | ;; |
---|
3035 | esac |
---|
3036 | if test x"$coin_disable_shared" = xyes; then |
---|
3037 | if test x"$enable_shared" = xyes; then |
---|
3038 | { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5 |
---|
3039 | echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;} |
---|
3040 | fi |
---|
3041 | enable_shared=no |
---|
3042 | fi |
---|
3043 | # By default, we only want the shared objects to be compiled |
---|
3044 | # Check whether --enable-static or --disable-static was given. |
---|
3045 | if test "${enable_static+set}" = set; then |
---|
3046 | enableval="$enable_static" |
---|
3047 | p=${PACKAGE-default} |
---|
3048 | case $enableval in |
---|
3049 | yes) enable_static=yes ;; |
---|
3050 | no) enable_static=no ;; |
---|
3051 | *) |
---|
3052 | enable_static=no |
---|
3053 | # Look at the argument we got. We use all the common list separators. |
---|
3054 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
3055 | for pkg in $enableval; do |
---|
3056 | IFS="$lt_save_ifs" |
---|
3057 | if test "X$pkg" = "X$p"; then |
---|
3058 | enable_static=yes |
---|
3059 | fi |
---|
3060 | done |
---|
3061 | IFS="$lt_save_ifs" |
---|
3062 | ;; |
---|
3063 | esac |
---|
3064 | else |
---|
3065 | enable_static=no |
---|
3066 | fi; |
---|
3067 | |
---|
3068 | |
---|
3069 | |
---|
3070 | |
---|
3071 | # Initialize automake |
---|
3072 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
3073 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
3074 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
3075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3076 | else |
---|
3077 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
3078 | then ac_cv_prog_egrep='grep -E' |
---|
3079 | else ac_cv_prog_egrep='egrep' |
---|
3080 | fi |
---|
3081 | fi |
---|
3082 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
3083 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
3084 | EGREP=$ac_cv_prog_egrep |
---|
3085 | |
---|
3086 | |
---|
3087 | am__api_version="1.9" |
---|
3088 | # Find a good install program. We prefer a C program (faster), |
---|
3089 | # so one script is as good as another. But avoid the broken or |
---|
3090 | # incompatible versions: |
---|
3091 | # SysV /etc/install, /usr/sbin/install |
---|
3092 | # SunOS /usr/etc/install |
---|
3093 | # IRIX /sbin/install |
---|
3094 | # AIX /bin/install |
---|
3095 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
3096 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
3097 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
3098 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
3099 | # OS/2's system install, which has a completely different semantic |
---|
3100 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
3101 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
3102 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
3103 | if test -z "$INSTALL"; then |
---|
3104 | if test "${ac_cv_path_install+set}" = set; then |
---|
3105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3106 | else |
---|
3107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3108 | for as_dir in $PATH |
---|
3109 | do |
---|
3110 | IFS=$as_save_IFS |
---|
3111 | test -z "$as_dir" && as_dir=. |
---|
3112 | # Account for people who put trailing slashes in PATH elements. |
---|
3113 | case $as_dir/ in |
---|
3114 | ./ | .// | /cC/* | \ |
---|
3115 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
3116 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
3117 | /usr/ucb/* ) ;; |
---|
3118 | *) |
---|
3119 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
3120 | # Don't use installbsd from OSF since it installs stuff as root |
---|
3121 | # by default. |
---|
3122 | for ac_prog in ginstall scoinst install; do |
---|
3123 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3124 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
3125 | if test $ac_prog = install && |
---|
3126 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
3127 | # AIX install. It has an incompatible calling convention. |
---|
3128 | : |
---|
3129 | elif test $ac_prog = install && |
---|
3130 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
3131 | # program-specific install script used by HP pwplus--don't use. |
---|
3132 | : |
---|
3133 | else |
---|
3134 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
3135 | break 3 |
---|
3136 | fi |
---|
3137 | fi |
---|
3138 | done |
---|
3139 | done |
---|
3140 | ;; |
---|
3141 | esac |
---|
3142 | done |
---|
3143 | |
---|
3144 | |
---|
3145 | fi |
---|
3146 | if test "${ac_cv_path_install+set}" = set; then |
---|
3147 | INSTALL=$ac_cv_path_install |
---|
3148 | else |
---|
3149 | # As a last resort, use the slow shell script. We don't cache a |
---|
3150 | # path for INSTALL within a source directory, because that will |
---|
3151 | # break other packages using the cache if that directory is |
---|
3152 | # removed, or if the path is relative. |
---|
3153 | INSTALL=$ac_install_sh |
---|
3154 | fi |
---|
3155 | fi |
---|
3156 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
3157 | echo "${ECHO_T}$INSTALL" >&6 |
---|
3158 | |
---|
3159 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
3160 | # It thinks the first close brace ends the variable substitution. |
---|
3161 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
3162 | |
---|
3163 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
3164 | |
---|
3165 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
3166 | |
---|
3167 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
3168 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
3169 | # Just in case |
---|
3170 | sleep 1 |
---|
3171 | echo timestamp > conftest.file |
---|
3172 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
3173 | # arguments. Must try -L first in case configure is actually a |
---|
3174 | # symlink; some systems play weird games with the mod time of symlinks |
---|
3175 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
3176 | # directory). |
---|
3177 | if ( |
---|
3178 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
3179 | if test "$*" = "X"; then |
---|
3180 | # -L didn't work. |
---|
3181 | set X `ls -t $srcdir/configure conftest.file` |
---|
3182 | fi |
---|
3183 | rm -f conftest.file |
---|
3184 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
3185 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
3186 | |
---|
3187 | # If neither matched, then we have a broken ls. This can happen |
---|
3188 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
3189 | # broken ls alias from the environment. This has actually |
---|
3190 | # happened. Such a system could not be considered "sane". |
---|
3191 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
3192 | alias in your environment" >&5 |
---|
3193 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
3194 | alias in your environment" >&2;} |
---|
3195 | { (exit 1); exit 1; }; } |
---|
3196 | fi |
---|
3197 | |
---|
3198 | test "$2" = conftest.file |
---|
3199 | ) |
---|
3200 | then |
---|
3201 | # Ok. |
---|
3202 | : |
---|
3203 | else |
---|
3204 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
3205 | Check your system clock" >&5 |
---|
3206 | echo "$as_me: error: newly created file is older than distributed files! |
---|
3207 | Check your system clock" >&2;} |
---|
3208 | { (exit 1); exit 1; }; } |
---|
3209 | fi |
---|
3210 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
3211 | echo "${ECHO_T}yes" >&6 |
---|
3212 | test "$program_prefix" != NONE && |
---|
3213 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
3214 | # Use a double $ so make ignores it. |
---|
3215 | test "$program_suffix" != NONE && |
---|
3216 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
3217 | # Double any \ or $. echo might interpret backslashes. |
---|
3218 | # By default was `s,x,x', remove it if useless. |
---|
3219 | cat <<\_ACEOF >conftest.sed |
---|
3220 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
3221 | _ACEOF |
---|
3222 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
3223 | rm conftest.sed |
---|
3224 | |
---|
3225 | # expand $ac_aux_dir to an absolute path |
---|
3226 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
3227 | |
---|
3228 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
3229 | # Use eval to expand $SHELL |
---|
3230 | if eval "$MISSING --run true"; then |
---|
3231 | am_missing_run="$MISSING --run " |
---|
3232 | else |
---|
3233 | am_missing_run= |
---|
3234 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
3235 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
3236 | fi |
---|
3237 | |
---|
3238 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
3239 | # We used to keeping the `.' as first argument, in order to |
---|
3240 | # allow $(mkdir_p) to be used without argument. As in |
---|
3241 | # $(mkdir_p) $(somedir) |
---|
3242 | # where $(somedir) is conditionally defined. However this is wrong |
---|
3243 | # for two reasons: |
---|
3244 | # 1. if the package is installed by a user who cannot write `.' |
---|
3245 | # make install will fail, |
---|
3246 | # 2. the above comment should most certainly read |
---|
3247 | # $(mkdir_p) $(DESTDIR)$(somedir) |
---|
3248 | # so it does not work when $(somedir) is undefined and |
---|
3249 | # $(DESTDIR) is not. |
---|
3250 | # To support the latter case, we have to write |
---|
3251 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
---|
3252 | # so the `.' trick is pointless. |
---|
3253 | mkdir_p='mkdir -p --' |
---|
3254 | else |
---|
3255 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
3256 | # recognize any option. It will interpret all options as |
---|
3257 | # directories to create, and then abort because `.' already |
---|
3258 | # exists. |
---|
3259 | for d in ./-p ./--version; |
---|
3260 | do |
---|
3261 | test -d $d && rmdir $d |
---|
3262 | done |
---|
3263 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
3264 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
3265 | mkdir_p='$(mkinstalldirs)' |
---|
3266 | else |
---|
3267 | mkdir_p='$(install_sh) -d' |
---|
3268 | fi |
---|
3269 | fi |
---|
3270 | |
---|
3271 | for ac_prog in gawk mawk nawk awk |
---|
3272 | do |
---|
3273 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3274 | set dummy $ac_prog; ac_word=$2 |
---|
3275 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3276 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3277 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
3278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3279 | else |
---|
3280 | if test -n "$AWK"; then |
---|
3281 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
3282 | else |
---|
3283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3284 | for as_dir in $PATH |
---|
3285 | do |
---|
3286 | IFS=$as_save_IFS |
---|
3287 | test -z "$as_dir" && as_dir=. |
---|
3288 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3289 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3290 | ac_cv_prog_AWK="$ac_prog" |
---|
3291 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3292 | break 2 |
---|
3293 | fi |
---|
3294 | done |
---|
3295 | done |
---|
3296 | |
---|
3297 | fi |
---|
3298 | fi |
---|
3299 | AWK=$ac_cv_prog_AWK |
---|
3300 | if test -n "$AWK"; then |
---|
3301 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
3302 | echo "${ECHO_T}$AWK" >&6 |
---|
3303 | else |
---|
3304 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3305 | echo "${ECHO_T}no" >&6 |
---|
3306 | fi |
---|
3307 | |
---|
3308 | test -n "$AWK" && break |
---|
3309 | done |
---|
3310 | |
---|
3311 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
3312 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
3313 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
3314 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
3315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3316 | else |
---|
3317 | cat >conftest.make <<\_ACEOF |
---|
3318 | all: |
---|
3319 | @echo 'ac_maketemp="$(MAKE)"' |
---|
3320 | _ACEOF |
---|
3321 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
3322 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
3323 | if test -n "$ac_maketemp"; then |
---|
3324 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
3325 | else |
---|
3326 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
3327 | fi |
---|
3328 | rm -f conftest.make |
---|
3329 | fi |
---|
3330 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
3331 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
3332 | echo "${ECHO_T}yes" >&6 |
---|
3333 | SET_MAKE= |
---|
3334 | else |
---|
3335 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3336 | echo "${ECHO_T}no" >&6 |
---|
3337 | SET_MAKE="MAKE=${MAKE-make}" |
---|
3338 | fi |
---|
3339 | |
---|
3340 | rm -rf .tst 2>/dev/null |
---|
3341 | mkdir .tst 2>/dev/null |
---|
3342 | if test -d .tst; then |
---|
3343 | am__leading_dot=. |
---|
3344 | else |
---|
3345 | am__leading_dot=_ |
---|
3346 | fi |
---|
3347 | rmdir .tst 2>/dev/null |
---|
3348 | |
---|
3349 | DEPDIR="${am__leading_dot}deps" |
---|
3350 | |
---|
3351 | ac_config_commands="$ac_config_commands depfiles" |
---|
3352 | |
---|
3353 | |
---|
3354 | am_make=${MAKE-make} |
---|
3355 | cat > confinc << 'END' |
---|
3356 | am__doit: |
---|
3357 | @echo done |
---|
3358 | .PHONY: am__doit |
---|
3359 | END |
---|
3360 | # If we don't find an include directive, just comment out the code. |
---|
3361 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
3362 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
3363 | am__include="#" |
---|
3364 | am__quote= |
---|
3365 | _am_result=none |
---|
3366 | # First try GNU make style include. |
---|
3367 | echo "include confinc" > confmf |
---|
3368 | # We grep out `Entering directory' and `Leaving directory' |
---|
3369 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
3370 | # In particular we don't look at `^make:' because GNU make might |
---|
3371 | # be invoked under some other name (usually "gmake"), in which |
---|
3372 | # case it prints its new name instead of `make'. |
---|
3373 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
3374 | am__include=include |
---|
3375 | am__quote= |
---|
3376 | _am_result=GNU |
---|
3377 | fi |
---|
3378 | # Now try BSD make style include. |
---|
3379 | if test "$am__include" = "#"; then |
---|
3380 | echo '.include "confinc"' > confmf |
---|
3381 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
3382 | am__include=.include |
---|
3383 | am__quote="\"" |
---|
3384 | _am_result=BSD |
---|
3385 | fi |
---|
3386 | fi |
---|
3387 | |
---|
3388 | |
---|
3389 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
3390 | echo "${ECHO_T}$_am_result" >&6 |
---|
3391 | rm -f confinc confmf |
---|
3392 | |
---|
3393 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
3394 | if test "${enable_dependency_tracking+set}" = set; then |
---|
3395 | enableval="$enable_dependency_tracking" |
---|
3396 | |
---|
3397 | fi; |
---|
3398 | if test "x$enable_dependency_tracking" != xno; then |
---|
3399 | am_depcomp="$ac_aux_dir/depcomp" |
---|
3400 | AMDEPBACKSLASH='\' |
---|
3401 | fi |
---|
3402 | |
---|
3403 | |
---|
3404 | if test "x$enable_dependency_tracking" != xno; then |
---|
3405 | AMDEP_TRUE= |
---|
3406 | AMDEP_FALSE='#' |
---|
3407 | else |
---|
3408 | AMDEP_TRUE='#' |
---|
3409 | AMDEP_FALSE= |
---|
3410 | fi |
---|
3411 | |
---|
3412 | |
---|
3413 | |
---|
3414 | |
---|
3415 | |
---|
3416 | # AC_MSG_NOTICE([Beginning automake initialisation.]) |
---|
3417 | # Stuff for automake |
---|
3418 | # test to see if srcdir already configured |
---|
3419 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
3420 | test -f $srcdir/config.status; then |
---|
3421 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
3422 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
3423 | { (exit 1); exit 1; }; } |
---|
3424 | fi |
---|
3425 | |
---|
3426 | # test whether we have cygpath |
---|
3427 | if test -z "$CYGPATH_W"; then |
---|
3428 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
3429 | CYGPATH_W='cygpath -w' |
---|
3430 | else |
---|
3431 | CYGPATH_W=echo |
---|
3432 | fi |
---|
3433 | fi |
---|
3434 | |
---|
3435 | |
---|
3436 | # Define the identity of the package. |
---|
3437 | PACKAGE='thirdpartyglpk' |
---|
3438 | VERSION='0.0' |
---|
3439 | |
---|
3440 | |
---|
3441 | cat >>confdefs.h <<_ACEOF |
---|
3442 | #define PACKAGE "$PACKAGE" |
---|
3443 | _ACEOF |
---|
3444 | |
---|
3445 | |
---|
3446 | cat >>confdefs.h <<_ACEOF |
---|
3447 | #define VERSION "$VERSION" |
---|
3448 | _ACEOF |
---|
3449 | |
---|
3450 | # Some tools Automake needs. |
---|
3451 | |
---|
3452 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
3453 | |
---|
3454 | |
---|
3455 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
3456 | |
---|
3457 | |
---|
3458 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
3459 | |
---|
3460 | |
---|
3461 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
3462 | |
---|
3463 | |
---|
3464 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
3465 | |
---|
3466 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
3467 | |
---|
3468 | # Installed binaries are usually stripped using `strip' when the user |
---|
3469 | # run `make install-strip'. However `strip' might not be the right |
---|
3470 | # tool to use in cross-compilation environments, therefore Automake |
---|
3471 | # will honor the `STRIP' environment variable to overrule this program. |
---|
3472 | if test "$cross_compiling" != no; then |
---|
3473 | if test -n "$ac_tool_prefix"; then |
---|
3474 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
3475 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
3476 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3477 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3478 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
3479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3480 | else |
---|
3481 | if test -n "$STRIP"; then |
---|
3482 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
3483 | else |
---|
3484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3485 | for as_dir in $PATH |
---|
3486 | do |
---|
3487 | IFS=$as_save_IFS |
---|
3488 | test -z "$as_dir" && as_dir=. |
---|
3489 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3490 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3491 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
3492 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3493 | break 2 |
---|
3494 | fi |
---|
3495 | done |
---|
3496 | done |
---|
3497 | |
---|
3498 | fi |
---|
3499 | fi |
---|
3500 | STRIP=$ac_cv_prog_STRIP |
---|
3501 | if test -n "$STRIP"; then |
---|
3502 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
3503 | echo "${ECHO_T}$STRIP" >&6 |
---|
3504 | else |
---|
3505 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3506 | echo "${ECHO_T}no" >&6 |
---|
3507 | fi |
---|
3508 | |
---|
3509 | fi |
---|
3510 | if test -z "$ac_cv_prog_STRIP"; then |
---|
3511 | ac_ct_STRIP=$STRIP |
---|
3512 | # Extract the first word of "strip", so it can be a program name with args. |
---|
3513 | set dummy strip; ac_word=$2 |
---|
3514 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3515 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3516 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
3517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3518 | else |
---|
3519 | if test -n "$ac_ct_STRIP"; then |
---|
3520 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
3521 | else |
---|
3522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3523 | for as_dir in $PATH |
---|
3524 | do |
---|
3525 | IFS=$as_save_IFS |
---|
3526 | test -z "$as_dir" && as_dir=. |
---|
3527 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3528 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3529 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
3530 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3531 | break 2 |
---|
3532 | fi |
---|
3533 | done |
---|
3534 | done |
---|
3535 | |
---|
3536 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
3537 | fi |
---|
3538 | fi |
---|
3539 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
3540 | if test -n "$ac_ct_STRIP"; then |
---|
3541 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
3542 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
3543 | else |
---|
3544 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3545 | echo "${ECHO_T}no" >&6 |
---|
3546 | fi |
---|
3547 | |
---|
3548 | STRIP=$ac_ct_STRIP |
---|
3549 | else |
---|
3550 | STRIP="$ac_cv_prog_STRIP" |
---|
3551 | fi |
---|
3552 | |
---|
3553 | fi |
---|
3554 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
3555 | |
---|
3556 | # We need awk for the "check" target. The system "awk" is bad on |
---|
3557 | # some platforms. |
---|
3558 | # Always define AMTAR for backward compatibility. |
---|
3559 | |
---|
3560 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
3561 | |
---|
3562 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
---|
3563 | |
---|
3564 | |
---|
3565 | |
---|
3566 | |
---|
3567 | depcc="$CC" am_compiler_list= |
---|
3568 | |
---|
3569 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
3570 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
3571 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
3572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3573 | else |
---|
3574 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3575 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3576 | # making bogus files that we don't know about and never remove. For |
---|
3577 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3578 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3579 | # in D'. |
---|
3580 | mkdir conftest.dir |
---|
3581 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3582 | # using a relative directory. |
---|
3583 | cp "$am_depcomp" conftest.dir |
---|
3584 | cd conftest.dir |
---|
3585 | # We will build objects and dependencies in a subdirectory because |
---|
3586 | # it helps to detect inapplicable dependency modes. For instance |
---|
3587 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3588 | # side effect of compilation, but ICC will put the dependencies in |
---|
3589 | # the current directory while Tru64 will put them in the object |
---|
3590 | # directory. |
---|
3591 | mkdir sub |
---|
3592 | |
---|
3593 | am_cv_CC_dependencies_compiler_type=none |
---|
3594 | if test "$am_compiler_list" = ""; then |
---|
3595 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3596 | fi |
---|
3597 | for depmode in $am_compiler_list; do |
---|
3598 | # Setup a source with many dependencies, because some compilers |
---|
3599 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3600 | # we should not choose a depcomp mode which is confused by this. |
---|
3601 | # |
---|
3602 | # We need to recreate these files for each test, as the compiler may |
---|
3603 | # overwrite some of them when testing with obscure command lines. |
---|
3604 | # This happens at least with the AIX C compiler. |
---|
3605 | : > sub/conftest.c |
---|
3606 | for i in 1 2 3 4 5 6; do |
---|
3607 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3608 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
3609 | # Solaris 8's {/usr,}/bin/sh. |
---|
3610 | touch sub/conftst$i.h |
---|
3611 | done |
---|
3612 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3613 | |
---|
3614 | case $depmode in |
---|
3615 | nosideeffect) |
---|
3616 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3617 | # only be used when explicitly requested |
---|
3618 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3619 | continue |
---|
3620 | else |
---|
3621 | break |
---|
3622 | fi |
---|
3623 | ;; |
---|
3624 | none) break ;; |
---|
3625 | esac |
---|
3626 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3627 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3628 | # handle `-M -o', and we need to detect this. |
---|
3629 | if depmode=$depmode \ |
---|
3630 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
3631 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3632 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
3633 | >/dev/null 2>conftest.err && |
---|
3634 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3635 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
3636 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3637 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3638 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
3639 | # that says an option was ignored or not supported. |
---|
3640 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
3641 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
3642 | # The diagnosis changed in icc 8.0: |
---|
3643 | # icc: Command line remark: option '-MP' not supported |
---|
3644 | if (grep 'ignoring option' conftest.err || |
---|
3645 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
3646 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
3647 | break |
---|
3648 | fi |
---|
3649 | fi |
---|
3650 | done |
---|
3651 | |
---|
3652 | cd .. |
---|
3653 | rm -rf conftest.dir |
---|
3654 | else |
---|
3655 | am_cv_CC_dependencies_compiler_type=none |
---|
3656 | fi |
---|
3657 | |
---|
3658 | fi |
---|
3659 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
3660 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
3661 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
3662 | |
---|
3663 | |
---|
3664 | |
---|
3665 | if |
---|
3666 | test "x$enable_dependency_tracking" != xno \ |
---|
3667 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
3668 | am__fastdepCC_TRUE= |
---|
3669 | am__fastdepCC_FALSE='#' |
---|
3670 | else |
---|
3671 | am__fastdepCC_TRUE='#' |
---|
3672 | am__fastdepCC_FALSE= |
---|
3673 | fi |
---|
3674 | |
---|
3675 | |
---|
3676 | |
---|
3677 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
3678 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
---|
3679 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
---|
3680 | if test "${enable_maintainer_mode+set}" = set; then |
---|
3681 | enableval="$enable_maintainer_mode" |
---|
3682 | USE_MAINTAINER_MODE=$enableval |
---|
3683 | else |
---|
3684 | USE_MAINTAINER_MODE=no |
---|
3685 | fi; |
---|
3686 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
---|
3687 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
---|
3688 | |
---|
3689 | |
---|
3690 | if test $USE_MAINTAINER_MODE = yes; then |
---|
3691 | MAINTAINER_MODE_TRUE= |
---|
3692 | MAINTAINER_MODE_FALSE='#' |
---|
3693 | else |
---|
3694 | MAINTAINER_MODE_TRUE='#' |
---|
3695 | MAINTAINER_MODE_FALSE= |
---|
3696 | fi |
---|
3697 | |
---|
3698 | MAINT=$MAINTAINER_MODE_TRUE |
---|
3699 | |
---|
3700 | |
---|
3701 | |
---|
3702 | coin_have_externals=no |
---|
3703 | if test "$enable_maintainer_mode" = yes; then |
---|
3704 | |
---|
3705 | # If maintainer mode is chosen, we make sure that the correct versions |
---|
3706 | # of the tools are used, and that we know where libtool.m4 is (to |
---|
3707 | # recreate acinclude.m4) |
---|
3708 | |
---|
3709 | |
---|
3710 | LIBTOOLM4= |
---|
3711 | # Normally, $HOME |
---|
3712 | AUTOTOOLS_DFLT=$HOME |
---|
3713 | |
---|
3714 | echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5 |
---|
3715 | echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6 |
---|
3716 | if test "${ac_cv_use_correct_autotools+set}" = set; then |
---|
3717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3718 | else |
---|
3719 | ac_cv_use_correct_autotools=check |
---|
3720 | fi |
---|
3721 | echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5 |
---|
3722 | echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6 |
---|
3723 | |
---|
3724 | if test $ac_cv_use_correct_autotools = check; then |
---|
3725 | ac_cv_use_correct_autotools=yes |
---|
3726 | # Check if we have autoconf |
---|
3727 | # Extract the first word of "autoconf", so it can be a program name with args. |
---|
3728 | set dummy autoconf; ac_word=$2 |
---|
3729 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3730 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3731 | if test "${ac_cv_prog_have_autoconf+set}" = set; then |
---|
3732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3733 | else |
---|
3734 | if test -n "$have_autoconf"; then |
---|
3735 | ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test. |
---|
3736 | else |
---|
3737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3738 | for as_dir in $PATH |
---|
3739 | do |
---|
3740 | IFS=$as_save_IFS |
---|
3741 | test -z "$as_dir" && as_dir=. |
---|
3742 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3743 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3744 | ac_cv_prog_have_autoconf="yes" |
---|
3745 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3746 | break 2 |
---|
3747 | fi |
---|
3748 | done |
---|
3749 | done |
---|
3750 | |
---|
3751 | test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no" |
---|
3752 | fi |
---|
3753 | fi |
---|
3754 | have_autoconf=$ac_cv_prog_have_autoconf |
---|
3755 | if test -n "$have_autoconf"; then |
---|
3756 | echo "$as_me:$LINENO: result: $have_autoconf" >&5 |
---|
3757 | echo "${ECHO_T}$have_autoconf" >&6 |
---|
3758 | else |
---|
3759 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3760 | echo "${ECHO_T}no" >&6 |
---|
3761 | fi |
---|
3762 | |
---|
3763 | if test $have_autoconf = no; then |
---|
3764 | { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5 |
---|
3765 | echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;} |
---|
3766 | { (exit 1); exit 1; }; } |
---|
3767 | fi |
---|
3768 | |
---|
3769 | # Check whether autoconf is the correct version |
---|
3770 | correct_version='2.59' |
---|
3771 | grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
---|
3772 | echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5 |
---|
3773 | echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6 |
---|
3774 | autoconf --version > confauto.out 2>&1 |
---|
3775 | if $EGREP $grep_version confauto.out >/dev/null 2>&1; then |
---|
3776 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
3777 | echo "${ECHO_T}yes" >&6 |
---|
3778 | else |
---|
3779 | rm -f confauto.out |
---|
3780 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3781 | echo "${ECHO_T}no" >&6 |
---|
3782 | { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5 |
---|
3783 | echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;} |
---|
3784 | { (exit 1); exit 1; }; } |
---|
3785 | fi |
---|
3786 | rm -f confauto.out |
---|
3787 | |
---|
3788 | # Check if the executable autoconf is picked up from the correct location |
---|
3789 | echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5 |
---|
3790 | echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6 |
---|
3791 | autoconf_dir=`which autoconf | sed -e 's=/autoconf=='` |
---|
3792 | autoconf_dir=`cd $autoconf_dir; pwd` |
---|
3793 | if test x$AUTOTOOLS_DIR = x; then |
---|
3794 | want_dir=$AUTOTOOLS_DFLT/bin |
---|
3795 | else |
---|
3796 | want_dir=$AUTOTOOLS_DIR/bin |
---|
3797 | fi |
---|
3798 | if test $autoconf_dir = `cd $want_dir; pwd`; then |
---|
3799 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
3800 | echo "${ECHO_T}yes" >&6 |
---|
3801 | else |
---|
3802 | rm -f confauto.out |
---|
3803 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3804 | echo "${ECHO_T}no" >&6 |
---|
3805 | { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 |
---|
3806 | echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} |
---|
3807 | { (exit 1); exit 1; }; } |
---|
3808 | fi |
---|
3809 | |
---|
3810 | # Check if we have automake |
---|
3811 | # Extract the first word of "automake", so it can be a program name with args. |
---|
3812 | set dummy automake; ac_word=$2 |
---|
3813 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3814 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3815 | if test "${ac_cv_prog_have_automake+set}" = set; then |
---|
3816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3817 | else |
---|
3818 | if test -n "$have_automake"; then |
---|
3819 | ac_cv_prog_have_automake="$have_automake" # Let the user override the test. |
---|
3820 | else |
---|
3821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3822 | for as_dir in $PATH |
---|
3823 | do |
---|
3824 | IFS=$as_save_IFS |
---|
3825 | test -z "$as_dir" && as_dir=. |
---|
3826 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3827 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3828 | ac_cv_prog_have_automake="yes" |
---|
3829 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3830 | break 2 |
---|
3831 | fi |
---|
3832 | done |
---|
3833 | done |
---|
3834 | |
---|
3835 | test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no" |
---|
3836 | fi |
---|
3837 | fi |
---|
3838 | have_automake=$ac_cv_prog_have_automake |
---|
3839 | if test -n "$have_automake"; then |
---|
3840 | echo "$as_me:$LINENO: result: $have_automake" >&5 |
---|
3841 | echo "${ECHO_T}$have_automake" >&6 |
---|
3842 | else |
---|
3843 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3844 | echo "${ECHO_T}no" >&6 |
---|
3845 | fi |
---|
3846 | |
---|
3847 | if test $have_automake = no; then |
---|
3848 | { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5 |
---|
3849 | echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;} |
---|
3850 | { (exit 1); exit 1; }; } |
---|
3851 | fi |
---|
3852 | |
---|
3853 | # Check whether automake is the correct version |
---|
3854 | correct_version='1.9.6' |
---|
3855 | grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
---|
3856 | echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5 |
---|
3857 | echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6 |
---|
3858 | automake --version > confauto.out 2>&1 |
---|
3859 | if $EGREP $grep_version confauto.out >/dev/null 2>&1; then |
---|
3860 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
3861 | echo "${ECHO_T}yes" >&6 |
---|
3862 | else |
---|
3863 | rm -f confauto.out |
---|
3864 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3865 | echo "${ECHO_T}no" >&6 |
---|
3866 | { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5 |
---|
3867 | echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;} |
---|
3868 | { (exit 1); exit 1; }; } |
---|
3869 | fi |
---|
3870 | rm -f confauto.out |
---|
3871 | |
---|
3872 | # Check if the executable automake is picked up from the correct location |
---|
3873 | echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5 |
---|
3874 | echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6 |
---|
3875 | automake_dir=`which automake | sed -e 's=/automake=='` |
---|
3876 | automake_dir=`cd $automake_dir; pwd` |
---|
3877 | if test x$AUTOTOOLS_DIR = x; then |
---|
3878 | want_dir=$AUTOTOOLS_DFLT/bin |
---|
3879 | else |
---|
3880 | want_dir=$AUTOTOOLS_DIR/bin |
---|
3881 | fi |
---|
3882 | if test $automake_dir = `cd $want_dir; pwd`; then |
---|
3883 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
3884 | echo "${ECHO_T}yes" >&6 |
---|
3885 | else |
---|
3886 | rm -f confauto.out |
---|
3887 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3888 | echo "${ECHO_T}no" >&6 |
---|
3889 | { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 |
---|
3890 | echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} |
---|
3891 | { (exit 1); exit 1; }; } |
---|
3892 | fi |
---|
3893 | |
---|
3894 | # Check if this is the correct version of libtool (with escaped dots) |
---|
3895 | if test x$AUTOTOOLS_DIR = x; then |
---|
3896 | want_dir=$AUTOTOOLS_DFLT/share |
---|
3897 | else |
---|
3898 | want_dir=$AUTOTOOLS_DIR/share |
---|
3899 | fi |
---|
3900 | correct_version='1.5.22' |
---|
3901 | grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
---|
3902 | if test -r $want_dir/libtool/ltmain.sh; then |
---|
3903 | have_ltmain=yes |
---|
3904 | : |
---|
3905 | else |
---|
3906 | have_ltmain=no |
---|
3907 | : |
---|
3908 | fi |
---|
3909 | |
---|
3910 | echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5 |
---|
3911 | echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6 |
---|
3912 | if test $have_ltmain = yes; then |
---|
3913 | if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then |
---|
3914 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
3915 | echo "${ECHO_T}yes" >&6 |
---|
3916 | else |
---|
3917 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3918 | echo "${ECHO_T}no" >&6 |
---|
3919 | { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5 |
---|
3920 | echo "$as_me: error: You don't have the correct version of libtool." >&2;} |
---|
3921 | { (exit 1); exit 1; }; } |
---|
3922 | fi |
---|
3923 | else |
---|
3924 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3925 | echo "${ECHO_T}no" >&6 |
---|
3926 | { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5 |
---|
3927 | echo "$as_me: error: I cannot find the ltmain.sh file." >&2;} |
---|
3928 | { (exit 1); exit 1; }; } |
---|
3929 | fi |
---|
3930 | fi |
---|
3931 | |
---|
3932 | # Check if we can find the libtool file |
---|
3933 | if test x$AUTOTOOLS_DIR = x; then |
---|
3934 | want_dir=$AUTOTOOLS_DFLT/share |
---|
3935 | else |
---|
3936 | want_dir=$AUTOTOOLS_DIR/share |
---|
3937 | fi |
---|
3938 | if test -r $want_dir/aclocal/libtool.m4; then |
---|
3939 | LIBTOOLM4="$want_dir/aclocal/libtool.m4" |
---|
3940 | : |
---|
3941 | else |
---|
3942 | { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5 |
---|
3943 | echo "$as_me: error: I cannot find the libtool.m4 file." >&2;} |
---|
3944 | { (exit 1); exit 1; }; } |
---|
3945 | : |
---|
3946 | fi |
---|
3947 | |
---|
3948 | |
---|
3949 | # Check if we have an Externals file |
---|
3950 | if test -r $srcdir/Externals; then |
---|
3951 | coin_have_externals=yes |
---|
3952 | fi |
---|
3953 | # Check if subversion is installed and understands https |
---|
3954 | # Extract the first word of "svn", so it can be a program name with args. |
---|
3955 | set dummy svn; ac_word=$2 |
---|
3956 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3957 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3958 | if test "${ac_cv_prog_have_svn+set}" = set; then |
---|
3959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3960 | else |
---|
3961 | if test -n "$have_svn"; then |
---|
3962 | ac_cv_prog_have_svn="$have_svn" # Let the user override the test. |
---|
3963 | else |
---|
3964 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3965 | for as_dir in $PATH |
---|
3966 | do |
---|
3967 | IFS=$as_save_IFS |
---|
3968 | test -z "$as_dir" && as_dir=. |
---|
3969 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3970 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3971 | ac_cv_prog_have_svn="yes" |
---|
3972 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3973 | break 2 |
---|
3974 | fi |
---|
3975 | done |
---|
3976 | done |
---|
3977 | |
---|
3978 | test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no" |
---|
3979 | fi |
---|
3980 | fi |
---|
3981 | have_svn=$ac_cv_prog_have_svn |
---|
3982 | if test -n "$have_svn"; then |
---|
3983 | echo "$as_me:$LINENO: result: $have_svn" >&5 |
---|
3984 | echo "${ECHO_T}$have_svn" >&6 |
---|
3985 | else |
---|
3986 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3987 | echo "${ECHO_T}no" >&6 |
---|
3988 | fi |
---|
3989 | |
---|
3990 | if test x$have_svn = xyes; then |
---|
3991 | echo "$as_me:$LINENO: checking whether svn understands https" >&5 |
---|
3992 | echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6 |
---|
3993 | if test "${ac_cv_svn_understands_https+set}" = set; then |
---|
3994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3995 | else |
---|
3996 | svn --version > confauto.out 2>&1 |
---|
3997 | if $EGREP https confauto.out >/dev/null 2>&1; then |
---|
3998 | ac_cv_svn_understands_https=yes |
---|
3999 | else |
---|
4000 | ac_cv_svn_understands_https=no |
---|
4001 | have_svn=no |
---|
4002 | ac_cv_prog_have_svn=no |
---|
4003 | fi |
---|
4004 | rm -f confauto.out |
---|
4005 | fi |
---|
4006 | echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5 |
---|
4007 | echo "${ECHO_T}$ac_cv_svn_understands_https" >&6 |
---|
4008 | fi |
---|
4009 | |
---|
4010 | # Find the location of the BuildTools directory |
---|
4011 | BUILDTOOLSDIR= |
---|
4012 | if test -r $srcdir/BuildTools/coin.m4; then |
---|
4013 | BUILDTOOLSDIR=$srcdir/BuildTools |
---|
4014 | else |
---|
4015 | if test -r $srcdir/../BuildTools/coin.m4; then |
---|
4016 | BUILDTOOLSDIR=$srcdir/../BuildTools |
---|
4017 | else |
---|
4018 | if test -r $srcdir/../../BuildTools/coin.m4; then |
---|
4019 | BUILDTOOLSDIR=$srcdir/../../BuildTools |
---|
4020 | else |
---|
4021 | { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5 |
---|
4022 | echo "$as_me: error: Cannot find the BuildTools directory" >&2;} |
---|
4023 | { (exit 1); exit 1; }; } |
---|
4024 | fi |
---|
4025 | fi |
---|
4026 | fi |
---|
4027 | |
---|
4028 | |
---|
4029 | # The following variable is set to the name of the directory where |
---|
4030 | # the autotool scripts are located |
---|
4031 | |
---|
4032 | AUX_DIR=$ac_aux_dir |
---|
4033 | fi |
---|
4034 | |
---|
4035 | # helpful variable for the base directory of this package |
---|
4036 | abs_source_dir=`cd $srcdir; pwd` |
---|
4037 | |
---|
4038 | |
---|
4039 | # Stuff for example Makefiles |
---|
4040 | if test x$prefix = xNONE; then |
---|
4041 | full_prefix=$ac_default_prefix |
---|
4042 | else |
---|
4043 | full_prefix=$prefix |
---|
4044 | fi |
---|
4045 | full_prefix=`cd $full_prefix ; pwd` |
---|
4046 | |
---|
4047 | abs_lib_dir=$full_prefix/lib |
---|
4048 | |
---|
4049 | abs_include_dir=$full_prefix/include |
---|
4050 | |
---|
4051 | abs_bin_dir=$full_prefix/bin |
---|
4052 | |
---|
4053 | |
---|
4054 | |
---|
4055 | if test $coin_have_externals = yes && test x$have_svn = xyes; then |
---|
4056 | HAVE_EXTERNALS_TRUE= |
---|
4057 | HAVE_EXTERNALS_FALSE='#' |
---|
4058 | else |
---|
4059 | HAVE_EXTERNALS_TRUE='#' |
---|
4060 | HAVE_EXTERNALS_FALSE= |
---|
4061 | fi |
---|
4062 | |
---|
4063 | |
---|
4064 | # AC_MSG_NOTICE([End automake initialisation.]) |
---|
4065 | |
---|
4066 | |
---|
4067 | |
---|
4068 | LIBTOOL= |
---|
4069 | if test -r ../libtool; then |
---|
4070 | coin_config_dir=.. |
---|
4071 | LIBTOOL='$(SHELL) $(top_builddir)/../libtool' |
---|
4072 | fi |
---|
4073 | if test "x$LIBTOOL" = x; then |
---|
4074 | if test -r ../../libtool; then |
---|
4075 | coin_config_dir=../.. |
---|
4076 | LIBTOOL='$(SHELL) $(top_builddir)/../../libtool' |
---|
4077 | fi |
---|
4078 | fi |
---|
4079 | |
---|
4080 | if test "x$LIBTOOL" = x; then |
---|
4081 | # AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).]) |
---|
4082 | # Stuff for libtool |
---|
4083 | # Check whether --enable-shared or --disable-shared was given. |
---|
4084 | if test "${enable_shared+set}" = set; then |
---|
4085 | enableval="$enable_shared" |
---|
4086 | p=${PACKAGE-default} |
---|
4087 | case $enableval in |
---|
4088 | yes) enable_shared=yes ;; |
---|
4089 | no) enable_shared=no ;; |
---|
4090 | *) |
---|
4091 | enable_shared=no |
---|
4092 | # Look at the argument we got. We use all the common list separators. |
---|
4093 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
4094 | for pkg in $enableval; do |
---|
4095 | IFS="$lt_save_ifs" |
---|
4096 | if test "X$pkg" = "X$p"; then |
---|
4097 | enable_shared=yes |
---|
4098 | fi |
---|
4099 | done |
---|
4100 | IFS="$lt_save_ifs" |
---|
4101 | ;; |
---|
4102 | esac |
---|
4103 | else |
---|
4104 | enable_shared=yes |
---|
4105 | fi; |
---|
4106 | |
---|
4107 | # Check whether --enable-fast-install or --disable-fast-install was given. |
---|
4108 | if test "${enable_fast_install+set}" = set; then |
---|
4109 | enableval="$enable_fast_install" |
---|
4110 | p=${PACKAGE-default} |
---|
4111 | case $enableval in |
---|
4112 | yes) enable_fast_install=yes ;; |
---|
4113 | no) enable_fast_install=no ;; |
---|
4114 | *) |
---|
4115 | enable_fast_install=no |
---|
4116 | # Look at the argument we got. We use all the common list separators. |
---|
4117 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
4118 | for pkg in $enableval; do |
---|
4119 | IFS="$lt_save_ifs" |
---|
4120 | if test "X$pkg" = "X$p"; then |
---|
4121 | enable_fast_install=yes |
---|
4122 | fi |
---|
4123 | done |
---|
4124 | IFS="$lt_save_ifs" |
---|
4125 | ;; |
---|
4126 | esac |
---|
4127 | else |
---|
4128 | enable_fast_install=yes |
---|
4129 | fi; |
---|
4130 | |
---|
4131 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
4132 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
4133 | if test "${ac_cv_host+set}" = set; then |
---|
4134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4135 | else |
---|
4136 | ac_cv_host_alias=$host_alias |
---|
4137 | test -z "$ac_cv_host_alias" && |
---|
4138 | ac_cv_host_alias=$ac_cv_build_alias |
---|
4139 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
4140 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
4141 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
4142 | { (exit 1); exit 1; }; } |
---|
4143 | |
---|
4144 | fi |
---|
4145 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
4146 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
4147 | host=$ac_cv_host |
---|
4148 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
4149 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
4150 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
4151 | |
---|
4152 | |
---|
4153 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
---|
4154 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
---|
4155 | if test "${lt_cv_path_SED+set}" = set; then |
---|
4156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4157 | else |
---|
4158 | # Loop through the user's path and test for sed and gsed. |
---|
4159 | # Then use that list of sed's as ones to test for truncation. |
---|
4160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4161 | for as_dir in $PATH |
---|
4162 | do |
---|
4163 | IFS=$as_save_IFS |
---|
4164 | test -z "$as_dir" && as_dir=. |
---|
4165 | for lt_ac_prog in sed gsed; do |
---|
4166 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4167 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
---|
4168 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
---|
4169 | fi |
---|
4170 | done |
---|
4171 | done |
---|
4172 | done |
---|
4173 | lt_ac_max=0 |
---|
4174 | lt_ac_count=0 |
---|
4175 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
---|
4176 | # along with /bin/sed that truncates output. |
---|
4177 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
---|
4178 | test ! -f $lt_ac_sed && continue |
---|
4179 | cat /dev/null > conftest.in |
---|
4180 | lt_ac_count=0 |
---|
4181 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
---|
4182 | # Check for GNU sed and select it if it is found. |
---|
4183 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
---|
4184 | lt_cv_path_SED=$lt_ac_sed |
---|
4185 | break |
---|
4186 | fi |
---|
4187 | while true; do |
---|
4188 | cat conftest.in conftest.in >conftest.tmp |
---|
4189 | mv conftest.tmp conftest.in |
---|
4190 | cp conftest.in conftest.nl |
---|
4191 | echo >>conftest.nl |
---|
4192 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
---|
4193 | cmp -s conftest.out conftest.nl || break |
---|
4194 | # 10000 chars as input seems more than enough |
---|
4195 | test $lt_ac_count -gt 10 && break |
---|
4196 | lt_ac_count=`expr $lt_ac_count + 1` |
---|
4197 | if test $lt_ac_count -gt $lt_ac_max; then |
---|
4198 | lt_ac_max=$lt_ac_count |
---|
4199 | lt_cv_path_SED=$lt_ac_sed |
---|
4200 | fi |
---|
4201 | done |
---|
4202 | done |
---|
4203 | |
---|
4204 | fi |
---|
4205 | |
---|
4206 | SED=$lt_cv_path_SED |
---|
4207 | echo "$as_me:$LINENO: result: $SED" >&5 |
---|
4208 | echo "${ECHO_T}$SED" >&6 |
---|
4209 | |
---|
4210 | |
---|
4211 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
---|
4212 | if test "${with_gnu_ld+set}" = set; then |
---|
4213 | withval="$with_gnu_ld" |
---|
4214 | test "$withval" = no || with_gnu_ld=yes |
---|
4215 | else |
---|
4216 | with_gnu_ld=no |
---|
4217 | fi; |
---|
4218 | ac_prog=ld |
---|
4219 | if test "$GCC" = yes; then |
---|
4220 | # Check if gcc -print-prog-name=ld gives a path. |
---|
4221 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
---|
4222 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
---|
4223 | case $host in |
---|
4224 | *-*-mingw*) |
---|
4225 | # gcc leaves a trailing carriage return which upsets mingw |
---|
4226 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
---|
4227 | *) |
---|
4228 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
---|
4229 | esac |
---|
4230 | case $ac_prog in |
---|
4231 | # Accept absolute paths. |
---|
4232 | [\\/]* | ?:[\\/]*) |
---|
4233 | re_direlt='/[^/][^/]*/\.\./' |
---|
4234 | # Canonicalize the pathname of ld |
---|
4235 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
---|
4236 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
---|
4237 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
---|
4238 | done |
---|
4239 | test -z "$LD" && LD="$ac_prog" |
---|
4240 | ;; |
---|
4241 | "") |
---|
4242 | # If it fails, then pretend we aren't using GCC. |
---|
4243 | ac_prog=ld |
---|
4244 | ;; |
---|
4245 | *) |
---|
4246 | # If it is relative, then search for the first ld in PATH. |
---|
4247 | with_gnu_ld=unknown |
---|
4248 | ;; |
---|
4249 | esac |
---|
4250 | elif test "$with_gnu_ld" = yes; then |
---|
4251 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
---|
4252 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
---|
4253 | else |
---|
4254 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
---|
4255 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
---|
4256 | fi |
---|
4257 | if test "${lt_cv_path_LD+set}" = set; then |
---|
4258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4259 | else |
---|
4260 | if test -z "$LD"; then |
---|
4261 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
4262 | for ac_dir in $PATH; do |
---|
4263 | IFS="$lt_save_ifs" |
---|
4264 | test -z "$ac_dir" && ac_dir=. |
---|
4265 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
4266 | lt_cv_path_LD="$ac_dir/$ac_prog" |
---|
4267 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
4268 | # but apparently some variants of GNU ld only accept -v. |
---|
4269 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
4270 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
---|
4271 | *GNU* | *'with BFD'*) |
---|
4272 | test "$with_gnu_ld" != no && break |
---|
4273 | ;; |
---|
4274 | *) |
---|
4275 | test "$with_gnu_ld" != yes && break |
---|
4276 | ;; |
---|
4277 | esac |
---|
4278 | fi |
---|
4279 | done |
---|
4280 | IFS="$lt_save_ifs" |
---|
4281 | else |
---|
4282 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
4283 | fi |
---|
4284 | fi |
---|
4285 | |
---|
4286 | LD="$lt_cv_path_LD" |
---|
4287 | if test -n "$LD"; then |
---|
4288 | echo "$as_me:$LINENO: result: $LD" >&5 |
---|
4289 | echo "${ECHO_T}$LD" >&6 |
---|
4290 | else |
---|
4291 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4292 | echo "${ECHO_T}no" >&6 |
---|
4293 | fi |
---|
4294 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
---|
4295 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
---|
4296 | { (exit 1); exit 1; }; } |
---|
4297 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
---|
4298 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
---|
4299 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
---|
4300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4301 | else |
---|
4302 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
---|
4303 | case `$LD -v 2>&1 </dev/null` in |
---|
4304 | *GNU* | *'with BFD'*) |
---|
4305 | lt_cv_prog_gnu_ld=yes |
---|
4306 | ;; |
---|
4307 | *) |
---|
4308 | lt_cv_prog_gnu_ld=no |
---|
4309 | ;; |
---|
4310 | esac |
---|
4311 | fi |
---|
4312 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
---|
4313 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
---|
4314 | with_gnu_ld=$lt_cv_prog_gnu_ld |
---|
4315 | |
---|
4316 | |
---|
4317 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
---|
4318 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
---|
4319 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
---|
4320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4321 | else |
---|
4322 | lt_cv_ld_reload_flag='-r' |
---|
4323 | fi |
---|
4324 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
---|
4325 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
---|
4326 | reload_flag=$lt_cv_ld_reload_flag |
---|
4327 | case $reload_flag in |
---|
4328 | "" | " "*) ;; |
---|
4329 | *) reload_flag=" $reload_flag" ;; |
---|
4330 | esac |
---|
4331 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
4332 | case $host_os in |
---|
4333 | darwin*) |
---|
4334 | if test "$GCC" = yes; then |
---|
4335 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
---|
4336 | else |
---|
4337 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
4338 | fi |
---|
4339 | ;; |
---|
4340 | esac |
---|
4341 | |
---|
4342 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
---|
4343 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
---|
4344 | if test "${lt_cv_path_NM+set}" = set; then |
---|
4345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4346 | else |
---|
4347 | if test -n "$NM"; then |
---|
4348 | # Let the user override the test. |
---|
4349 | lt_cv_path_NM="$NM" |
---|
4350 | else |
---|
4351 | lt_nm_to_check="${ac_tool_prefix}nm" |
---|
4352 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
---|
4353 | lt_nm_to_check="$lt_nm_to_check nm" |
---|
4354 | fi |
---|
4355 | for lt_tmp_nm in $lt_nm_to_check; do |
---|
4356 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
4357 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
---|
4358 | IFS="$lt_save_ifs" |
---|
4359 | test -z "$ac_dir" && ac_dir=. |
---|
4360 | tmp_nm="$ac_dir/$lt_tmp_nm" |
---|
4361 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
---|
4362 | # Check to see if the nm accepts a BSD-compat flag. |
---|
4363 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
---|
4364 | # nm: unknown option "B" ignored |
---|
4365 | # Tru64's nm complains that /dev/null is an invalid object file |
---|
4366 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
---|
4367 | */dev/null* | *'Invalid file or object type'*) |
---|
4368 | lt_cv_path_NM="$tmp_nm -B" |
---|
4369 | break |
---|
4370 | ;; |
---|
4371 | *) |
---|
4372 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
---|
4373 | */dev/null*) |
---|
4374 | lt_cv_path_NM="$tmp_nm -p" |
---|
4375 | break |
---|
4376 | ;; |
---|
4377 | *) |
---|
4378 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
---|
4379 | continue # so that we can try to find one that supports BSD flags |
---|
4380 | ;; |
---|
4381 | esac |
---|
4382 | ;; |
---|
4383 | esac |
---|
4384 | fi |
---|
4385 | done |
---|
4386 | IFS="$lt_save_ifs" |
---|
4387 | done |
---|
4388 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
---|
4389 | fi |
---|
4390 | fi |
---|
4391 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
---|
4392 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
---|
4393 | NM="$lt_cv_path_NM" |
---|
4394 | |
---|
4395 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
---|
4396 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
---|
4397 | LN_S=$as_ln_s |
---|
4398 | if test "$LN_S" = "ln -s"; then |
---|
4399 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4400 | echo "${ECHO_T}yes" >&6 |
---|
4401 | else |
---|
4402 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
---|
4403 | echo "${ECHO_T}no, using $LN_S" >&6 |
---|
4404 | fi |
---|
4405 | |
---|
4406 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
---|
4407 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
---|
4408 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
---|
4409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4410 | else |
---|
4411 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
---|
4412 | lt_cv_file_magic_test_file= |
---|
4413 | lt_cv_deplibs_check_method='unknown' |
---|
4414 | # Need to set the preceding variable on all platforms that support |
---|
4415 | # interlibrary dependencies. |
---|
4416 | # 'none' -- dependencies not supported. |
---|
4417 | # `unknown' -- same as none, but documents that we really don't know. |
---|
4418 | # 'pass_all' -- all dependencies passed with no checks. |
---|
4419 | # 'test_compile' -- check by making test program. |
---|
4420 | # 'file_magic [[regex]]' -- check by looking for files in library path |
---|
4421 | # which responds to the $file_magic_cmd with a given extended regex. |
---|
4422 | # If you have `file' or equivalent on your system and you're not sure |
---|
4423 | # whether `pass_all' will *always* work, you probably want this one. |
---|
4424 | |
---|
4425 | case $host_os in |
---|
4426 | aix4* | aix5*) |
---|
4427 | lt_cv_deplibs_check_method=pass_all |
---|
4428 | ;; |
---|
4429 | |
---|
4430 | beos*) |
---|
4431 | lt_cv_deplibs_check_method=pass_all |
---|
4432 | ;; |
---|
4433 | |
---|
4434 | bsdi[45]*) |
---|
4435 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
---|
4436 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
---|
4437 | lt_cv_file_magic_test_file=/shlib/libc.so |
---|
4438 | ;; |
---|
4439 | |
---|
4440 | cygwin*) |
---|
4441 | # func_win32_libid is a shell function defined in ltmain.sh |
---|
4442 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
---|
4443 | lt_cv_file_magic_cmd='func_win32_libid' |
---|
4444 | ;; |
---|
4445 | |
---|
4446 | mingw* | pw32*) |
---|
4447 | # Base MSYS/MinGW do not provide the 'file' command needed by |
---|
4448 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
---|
4449 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
---|
4450 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
---|
4451 | ;; |
---|
4452 | |
---|
4453 | darwin* | rhapsody*) |
---|
4454 | lt_cv_deplibs_check_method=pass_all |
---|
4455 | ;; |
---|
4456 | |
---|
4457 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
4458 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
4459 | case $host_cpu in |
---|
4460 | i*86 ) |
---|
4461 | # Not sure whether the presence of OpenBSD here was a mistake. |
---|
4462 | # Let's accept both of them until this is cleared up. |
---|
4463 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
---|
4464 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
4465 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
---|
4466 | ;; |
---|
4467 | esac |
---|
4468 | else |
---|
4469 | lt_cv_deplibs_check_method=pass_all |
---|
4470 | fi |
---|
4471 | ;; |
---|
4472 | |
---|
4473 | gnu*) |
---|
4474 | lt_cv_deplibs_check_method=pass_all |
---|
4475 | ;; |
---|
4476 | |
---|
4477 | hpux10.20* | hpux11*) |
---|
4478 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
4479 | case $host_cpu in |
---|
4480 | ia64*) |
---|
4481 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
---|
4482 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
---|
4483 | ;; |
---|
4484 | hppa*64*) |
---|
4485 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' |
---|
4486 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
---|
4487 | ;; |
---|
4488 | *) |
---|
4489 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
---|
4490 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
---|
4491 | ;; |
---|
4492 | esac |
---|
4493 | ;; |
---|
4494 | |
---|
4495 | interix3*) |
---|
4496 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
---|
4497 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
---|
4498 | ;; |
---|
4499 | |
---|
4500 | irix5* | irix6* | nonstopux*) |
---|
4501 | case $LD in |
---|
4502 | *-32|*"-32 ") libmagic=32-bit;; |
---|
4503 | *-n32|*"-n32 ") libmagic=N32;; |
---|
4504 | *-64|*"-64 ") libmagic=64-bit;; |
---|
4505 | *) libmagic=never-match;; |
---|
4506 | esac |
---|
4507 | lt_cv_deplibs_check_method=pass_all |
---|
4508 | ;; |
---|
4509 | |
---|
4510 | # This must be Linux ELF. |
---|
4511 | linux*) |
---|
4512 | lt_cv_deplibs_check_method=pass_all |
---|
4513 | ;; |
---|
4514 | |
---|
4515 | netbsd*) |
---|
4516 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
4517 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
4518 | else |
---|
4519 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
---|
4520 | fi |
---|
4521 | ;; |
---|
4522 | |
---|
4523 | newos6*) |
---|
4524 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
---|
4525 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
4526 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
---|
4527 | ;; |
---|
4528 | |
---|
4529 | nto-qnx*) |
---|
4530 | lt_cv_deplibs_check_method=unknown |
---|
4531 | ;; |
---|
4532 | |
---|
4533 | openbsd*) |
---|
4534 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
4535 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
---|
4536 | else |
---|
4537 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
4538 | fi |
---|
4539 | ;; |
---|
4540 | |
---|
4541 | osf3* | osf4* | osf5*) |
---|
4542 | lt_cv_deplibs_check_method=pass_all |
---|
4543 | ;; |
---|
4544 | |
---|
4545 | solaris*) |
---|
4546 | lt_cv_deplibs_check_method=pass_all |
---|
4547 | ;; |
---|
4548 | |
---|
4549 | sysv4 | sysv4.3*) |
---|
4550 | case $host_vendor in |
---|
4551 | motorola) |
---|
4552 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' |
---|
4553 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
---|
4554 | ;; |
---|
4555 | ncr) |
---|
4556 | lt_cv_deplibs_check_method=pass_all |
---|
4557 | ;; |
---|
4558 | sequent) |
---|
4559 | lt_cv_file_magic_cmd='/bin/file' |
---|
4560 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
---|
4561 | ;; |
---|
4562 | sni) |
---|
4563 | lt_cv_file_magic_cmd='/bin/file' |
---|
4564 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
---|
4565 | lt_cv_file_magic_test_file=/lib/libc.so |
---|
4566 | ;; |
---|
4567 | siemens) |
---|
4568 | lt_cv_deplibs_check_method=pass_all |
---|
4569 | ;; |
---|
4570 | pc) |
---|
4571 | lt_cv_deplibs_check_method=pass_all |
---|
4572 | ;; |
---|
4573 | esac |
---|
4574 | ;; |
---|
4575 | |
---|
4576 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
---|
4577 | lt_cv_deplibs_check_method=pass_all |
---|
4578 | ;; |
---|
4579 | esac |
---|
4580 | |
---|
4581 | fi |
---|
4582 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
---|
4583 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
---|
4584 | file_magic_cmd=$lt_cv_file_magic_cmd |
---|
4585 | deplibs_check_method=$lt_cv_deplibs_check_method |
---|
4586 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
---|
4587 | |
---|
4588 | |
---|
4589 | |
---|
4590 | |
---|
4591 | # If no C compiler was specified, use CC. |
---|
4592 | LTCC=${LTCC-"$CC"} |
---|
4593 | |
---|
4594 | # If no C compiler flags were specified, use CFLAGS. |
---|
4595 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
4596 | |
---|
4597 | # Allow CC to be a program name with arguments. |
---|
4598 | compiler=$CC |
---|
4599 | |
---|
4600 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
---|
4601 | if test "${enable_libtool_lock+set}" = set; then |
---|
4602 | enableval="$enable_libtool_lock" |
---|
4603 | |
---|
4604 | fi; |
---|
4605 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
4606 | |
---|
4607 | # Some flags need to be propagated to the compiler or linker for good |
---|
4608 | # libtool support. |
---|
4609 | case $host in |
---|
4610 | ia64-*-hpux*) |
---|
4611 | # Find out which ABI we are using. |
---|
4612 | echo 'int i;' > conftest.$ac_ext |
---|
4613 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4614 | (eval $ac_compile) 2>&5 |
---|
4615 | ac_status=$? |
---|
4616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4617 | (exit $ac_status); }; then |
---|
4618 | case `/usr/bin/file conftest.$ac_objext` in |
---|
4619 | *ELF-32*) |
---|
4620 | HPUX_IA64_MODE="32" |
---|
4621 | ;; |
---|
4622 | *ELF-64*) |
---|
4623 | HPUX_IA64_MODE="64" |
---|
4624 | ;; |
---|
4625 | esac |
---|
4626 | fi |
---|
4627 | rm -rf conftest* |
---|
4628 | ;; |
---|
4629 | *-*-irix6*) |
---|
4630 | # Find out which ABI we are using. |
---|
4631 | echo '#line 4631 "configure"' > conftest.$ac_ext |
---|
4632 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4633 | (eval $ac_compile) 2>&5 |
---|
4634 | ac_status=$? |
---|
4635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4636 | (exit $ac_status); }; then |
---|
4637 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
4638 | case `/usr/bin/file conftest.$ac_objext` in |
---|
4639 | *32-bit*) |
---|
4640 | LD="${LD-ld} -melf32bsmip" |
---|
4641 | ;; |
---|
4642 | *N32*) |
---|
4643 | LD="${LD-ld} -melf32bmipn32" |
---|
4644 | ;; |
---|
4645 | *64-bit*) |
---|
4646 | LD="${LD-ld} -melf64bmip" |
---|
4647 | ;; |
---|
4648 | esac |
---|
4649 | else |
---|
4650 | case `/usr/bin/file conftest.$ac_objext` in |
---|
4651 | *32-bit*) |
---|
4652 | LD="${LD-ld} -32" |
---|
4653 | ;; |
---|
4654 | *N32*) |
---|
4655 | LD="${LD-ld} -n32" |
---|
4656 | ;; |
---|
4657 | *64-bit*) |
---|
4658 | LD="${LD-ld} -64" |
---|
4659 | ;; |
---|
4660 | esac |
---|
4661 | fi |
---|
4662 | fi |
---|
4663 | rm -rf conftest* |
---|
4664 | ;; |
---|
4665 | |
---|
4666 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
---|
4667 | # Find out which ABI we are using. |
---|
4668 | echo 'int i;' > conftest.$ac_ext |
---|
4669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4670 | (eval $ac_compile) 2>&5 |
---|
4671 | ac_status=$? |
---|
4672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4673 | (exit $ac_status); }; then |
---|
4674 | case `/usr/bin/file conftest.o` in |
---|
4675 | *32-bit*) |
---|
4676 | case $host in |
---|
4677 | x86_64-*linux*) |
---|
4678 | LD="${LD-ld} -m elf_i386" |
---|
4679 | ;; |
---|
4680 | ppc64-*linux*|powerpc64-*linux*) |
---|
4681 | LD="${LD-ld} -m elf32ppclinux" |
---|
4682 | ;; |
---|
4683 | s390x-*linux*) |
---|
4684 | LD="${LD-ld} -m elf_s390" |
---|
4685 | ;; |
---|
4686 | sparc64-*linux*) |
---|
4687 | LD="${LD-ld} -m elf32_sparc" |
---|
4688 | ;; |
---|
4689 | esac |
---|
4690 | ;; |
---|
4691 | *64-bit*) |
---|
4692 | case $host in |
---|
4693 | x86_64-*linux*) |
---|
4694 | LD="${LD-ld} -m elf_x86_64" |
---|
4695 | ;; |
---|
4696 | ppc*-*linux*|powerpc*-*linux*) |
---|
4697 | LD="${LD-ld} -m elf64ppc" |
---|
4698 | ;; |
---|
4699 | s390*-*linux*) |
---|
4700 | LD="${LD-ld} -m elf64_s390" |
---|
4701 | ;; |
---|
4702 | sparc*-*linux*) |
---|
4703 | LD="${LD-ld} -m elf64_sparc" |
---|
4704 | ;; |
---|
4705 | esac |
---|
4706 | ;; |
---|
4707 | esac |
---|
4708 | fi |
---|
4709 | rm -rf conftest* |
---|
4710 | ;; |
---|
4711 | |
---|
4712 | *-*-sco3.2v5*) |
---|
4713 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
---|
4714 | SAVE_CFLAGS="$CFLAGS" |
---|
4715 | CFLAGS="$CFLAGS -belf" |
---|
4716 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
---|
4717 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
---|
4718 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
---|
4719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4720 | else |
---|
4721 | ac_ext=c |
---|
4722 | ac_cpp='$CPP $CPPFLAGS' |
---|
4723 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4724 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4725 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4726 | |
---|
4727 | cat >conftest.$ac_ext <<_ACEOF |
---|
4728 | /* confdefs.h. */ |
---|
4729 | _ACEOF |
---|
4730 | cat confdefs.h >>conftest.$ac_ext |
---|
4731 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4732 | /* end confdefs.h. */ |
---|
4733 | |
---|
4734 | int |
---|
4735 | main () |
---|
4736 | { |
---|
4737 | |
---|
4738 | ; |
---|
4739 | return 0; |
---|
4740 | } |
---|
4741 | _ACEOF |
---|
4742 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4744 | (eval $ac_link) 2>conftest.er1 |
---|
4745 | ac_status=$? |
---|
4746 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4747 | rm -f conftest.er1 |
---|
4748 | cat conftest.err >&5 |
---|
4749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4750 | (exit $ac_status); } && |
---|
4751 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4752 | || test ! -s conftest.err' |
---|
4753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4754 | (eval $ac_try) 2>&5 |
---|
4755 | ac_status=$? |
---|
4756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4757 | (exit $ac_status); }; } && |
---|
4758 | { ac_try='test -s conftest$ac_exeext' |
---|
4759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4760 | (eval $ac_try) 2>&5 |
---|
4761 | ac_status=$? |
---|
4762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4763 | (exit $ac_status); }; }; then |
---|
4764 | lt_cv_cc_needs_belf=yes |
---|
4765 | else |
---|
4766 | echo "$as_me: failed program was:" >&5 |
---|
4767 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4768 | |
---|
4769 | lt_cv_cc_needs_belf=no |
---|
4770 | fi |
---|
4771 | rm -f conftest.err conftest.$ac_objext \ |
---|
4772 | conftest$ac_exeext conftest.$ac_ext |
---|
4773 | ac_ext=c |
---|
4774 | ac_cpp='$CPP $CPPFLAGS' |
---|
4775 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4776 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4777 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4778 | |
---|
4779 | fi |
---|
4780 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
---|
4781 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
---|
4782 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
---|
4783 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
---|
4784 | CFLAGS="$SAVE_CFLAGS" |
---|
4785 | fi |
---|
4786 | ;; |
---|
4787 | sparc*-*solaris*) |
---|
4788 | # Find out which ABI we are using. |
---|
4789 | echo 'int i;' > conftest.$ac_ext |
---|
4790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4791 | (eval $ac_compile) 2>&5 |
---|
4792 | ac_status=$? |
---|
4793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4794 | (exit $ac_status); }; then |
---|
4795 | case `/usr/bin/file conftest.o` in |
---|
4796 | *64-bit*) |
---|
4797 | case $lt_cv_prog_gnu_ld in |
---|
4798 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
---|
4799 | *) LD="${LD-ld} -64" ;; |
---|
4800 | esac |
---|
4801 | ;; |
---|
4802 | esac |
---|
4803 | fi |
---|
4804 | rm -rf conftest* |
---|
4805 | ;; |
---|
4806 | |
---|
4807 | |
---|
4808 | esac |
---|
4809 | |
---|
4810 | need_locks="$enable_libtool_lock" |
---|
4811 | |
---|
4812 | |
---|
4813 | ac_ext=c |
---|
4814 | ac_cpp='$CPP $CPPFLAGS' |
---|
4815 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4816 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4817 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4818 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
4819 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
4820 | # On Suns, sometimes $CPP names a directory. |
---|
4821 | if test -n "$CPP" && test -d "$CPP"; then |
---|
4822 | CPP= |
---|
4823 | fi |
---|
4824 | if test -z "$CPP"; then |
---|
4825 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
4826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4827 | else |
---|
4828 | # Double quotes because CPP needs to be expanded |
---|
4829 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
4830 | do |
---|
4831 | ac_preproc_ok=false |
---|
4832 | for ac_c_preproc_warn_flag in '' yes |
---|
4833 | do |
---|
4834 | # Use a header file that comes with gcc, so configuring glibc |
---|
4835 | # with a fresh cross-compiler works. |
---|
4836 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4837 | # <limits.h> exists even on freestanding compilers. |
---|
4838 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4839 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4840 | cat >conftest.$ac_ext <<_ACEOF |
---|
4841 | /* confdefs.h. */ |
---|
4842 | _ACEOF |
---|
4843 | cat confdefs.h >>conftest.$ac_ext |
---|
4844 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4845 | /* end confdefs.h. */ |
---|
4846 | #ifdef __STDC__ |
---|
4847 | # include <limits.h> |
---|
4848 | #else |
---|
4849 | # include <assert.h> |
---|
4850 | #endif |
---|
4851 | Syntax error |
---|
4852 | _ACEOF |
---|
4853 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4854 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4855 | ac_status=$? |
---|
4856 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4857 | rm -f conftest.er1 |
---|
4858 | cat conftest.err >&5 |
---|
4859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4860 | (exit $ac_status); } >/dev/null; then |
---|
4861 | if test -s conftest.err; then |
---|
4862 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4863 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4864 | else |
---|
4865 | ac_cpp_err= |
---|
4866 | fi |
---|
4867 | else |
---|
4868 | ac_cpp_err=yes |
---|
4869 | fi |
---|
4870 | if test -z "$ac_cpp_err"; then |
---|
4871 | : |
---|
4872 | else |
---|
4873 | echo "$as_me: failed program was:" >&5 |
---|
4874 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4875 | |
---|
4876 | # Broken: fails on valid input. |
---|
4877 | continue |
---|
4878 | fi |
---|
4879 | rm -f conftest.err conftest.$ac_ext |
---|
4880 | |
---|
4881 | # OK, works on sane cases. Now check whether non-existent headers |
---|
4882 | # can be detected and how. |
---|
4883 | cat >conftest.$ac_ext <<_ACEOF |
---|
4884 | /* confdefs.h. */ |
---|
4885 | _ACEOF |
---|
4886 | cat confdefs.h >>conftest.$ac_ext |
---|
4887 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4888 | /* end confdefs.h. */ |
---|
4889 | #include <ac_nonexistent.h> |
---|
4890 | _ACEOF |
---|
4891 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4892 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4893 | ac_status=$? |
---|
4894 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4895 | rm -f conftest.er1 |
---|
4896 | cat conftest.err >&5 |
---|
4897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4898 | (exit $ac_status); } >/dev/null; then |
---|
4899 | if test -s conftest.err; then |
---|
4900 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4901 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4902 | else |
---|
4903 | ac_cpp_err= |
---|
4904 | fi |
---|
4905 | else |
---|
4906 | ac_cpp_err=yes |
---|
4907 | fi |
---|
4908 | if test -z "$ac_cpp_err"; then |
---|
4909 | # Broken: success on invalid input. |
---|
4910 | continue |
---|
4911 | else |
---|
4912 | echo "$as_me: failed program was:" >&5 |
---|
4913 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4914 | |
---|
4915 | # Passes both tests. |
---|
4916 | ac_preproc_ok=: |
---|
4917 | break |
---|
4918 | fi |
---|
4919 | rm -f conftest.err conftest.$ac_ext |
---|
4920 | |
---|
4921 | done |
---|
4922 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4923 | rm -f conftest.err conftest.$ac_ext |
---|
4924 | if $ac_preproc_ok; then |
---|
4925 | break |
---|
4926 | fi |
---|
4927 | |
---|
4928 | done |
---|
4929 | ac_cv_prog_CPP=$CPP |
---|
4930 | |
---|
4931 | fi |
---|
4932 | CPP=$ac_cv_prog_CPP |
---|
4933 | else |
---|
4934 | ac_cv_prog_CPP=$CPP |
---|
4935 | fi |
---|
4936 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
4937 | echo "${ECHO_T}$CPP" >&6 |
---|
4938 | ac_preproc_ok=false |
---|
4939 | for ac_c_preproc_warn_flag in '' yes |
---|
4940 | do |
---|
4941 | # Use a header file that comes with gcc, so configuring glibc |
---|
4942 | # with a fresh cross-compiler works. |
---|
4943 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4944 | # <limits.h> exists even on freestanding compilers. |
---|
4945 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4946 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4947 | cat >conftest.$ac_ext <<_ACEOF |
---|
4948 | /* confdefs.h. */ |
---|
4949 | _ACEOF |
---|
4950 | cat confdefs.h >>conftest.$ac_ext |
---|
4951 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4952 | /* end confdefs.h. */ |
---|
4953 | #ifdef __STDC__ |
---|
4954 | # include <limits.h> |
---|
4955 | #else |
---|
4956 | # include <assert.h> |
---|
4957 | #endif |
---|
4958 | Syntax error |
---|
4959 | _ACEOF |
---|
4960 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4961 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4962 | ac_status=$? |
---|
4963 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4964 | rm -f conftest.er1 |
---|
4965 | cat conftest.err >&5 |
---|
4966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4967 | (exit $ac_status); } >/dev/null; then |
---|
4968 | if test -s conftest.err; then |
---|
4969 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4970 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4971 | else |
---|
4972 | ac_cpp_err= |
---|
4973 | fi |
---|
4974 | else |
---|
4975 | ac_cpp_err=yes |
---|
4976 | fi |
---|
4977 | if test -z "$ac_cpp_err"; then |
---|
4978 | : |
---|
4979 | else |
---|
4980 | echo "$as_me: failed program was:" >&5 |
---|
4981 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4982 | |
---|
4983 | # Broken: fails on valid input. |
---|
4984 | continue |
---|
4985 | fi |
---|
4986 | rm -f conftest.err conftest.$ac_ext |
---|
4987 | |
---|
4988 | # OK, works on sane cases. Now check whether non-existent headers |
---|
4989 | # can be detected and how. |
---|
4990 | cat >conftest.$ac_ext <<_ACEOF |
---|
4991 | /* confdefs.h. */ |
---|
4992 | _ACEOF |
---|
4993 | cat confdefs.h >>conftest.$ac_ext |
---|
4994 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4995 | /* end confdefs.h. */ |
---|
4996 | #include <ac_nonexistent.h> |
---|
4997 | _ACEOF |
---|
4998 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4999 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5000 | ac_status=$? |
---|
5001 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5002 | rm -f conftest.er1 |
---|
5003 | cat conftest.err >&5 |
---|
5004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5005 | (exit $ac_status); } >/dev/null; then |
---|
5006 | if test -s conftest.err; then |
---|
5007 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5008 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5009 | else |
---|
5010 | ac_cpp_err= |
---|
5011 | fi |
---|
5012 | else |
---|
5013 | ac_cpp_err=yes |
---|
5014 | fi |
---|
5015 | if test -z "$ac_cpp_err"; then |
---|
5016 | # Broken: success on invalid input. |
---|
5017 | continue |
---|
5018 | else |
---|
5019 | echo "$as_me: failed program was:" >&5 |
---|
5020 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5021 | |
---|
5022 | # Passes both tests. |
---|
5023 | ac_preproc_ok=: |
---|
5024 | break |
---|
5025 | fi |
---|
5026 | rm -f conftest.err conftest.$ac_ext |
---|
5027 | |
---|
5028 | done |
---|
5029 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
5030 | rm -f conftest.err conftest.$ac_ext |
---|
5031 | if $ac_preproc_ok; then |
---|
5032 | : |
---|
5033 | else |
---|
5034 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
5035 | See \`config.log' for more details." >&5 |
---|
5036 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
5037 | See \`config.log' for more details." >&2;} |
---|
5038 | { (exit 1); exit 1; }; } |
---|
5039 | fi |
---|
5040 | |
---|
5041 | ac_ext=c |
---|
5042 | ac_cpp='$CPP $CPPFLAGS' |
---|
5043 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5044 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5045 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5046 | |
---|
5047 | |
---|
5048 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
5049 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
5050 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
5051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5052 | else |
---|
5053 | cat >conftest.$ac_ext <<_ACEOF |
---|
5054 | /* confdefs.h. */ |
---|
5055 | _ACEOF |
---|
5056 | cat confdefs.h >>conftest.$ac_ext |
---|
5057 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5058 | /* end confdefs.h. */ |
---|
5059 | #include <stdlib.h> |
---|
5060 | #include <stdarg.h> |
---|
5061 | #include <string.h> |
---|
5062 | #include <float.h> |
---|
5063 | |
---|
5064 | int |
---|
5065 | main () |
---|
5066 | { |
---|
5067 | |
---|
5068 | ; |
---|
5069 | return 0; |
---|
5070 | } |
---|
5071 | _ACEOF |
---|
5072 | rm -f conftest.$ac_objext |
---|
5073 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5074 | (eval $ac_compile) 2>conftest.er1 |
---|
5075 | ac_status=$? |
---|
5076 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5077 | rm -f conftest.er1 |
---|
5078 | cat conftest.err >&5 |
---|
5079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5080 | (exit $ac_status); } && |
---|
5081 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5082 | || test ! -s conftest.err' |
---|
5083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5084 | (eval $ac_try) 2>&5 |
---|
5085 | ac_status=$? |
---|
5086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5087 | (exit $ac_status); }; } && |
---|
5088 | { ac_try='test -s conftest.$ac_objext' |
---|
5089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5090 | (eval $ac_try) 2>&5 |
---|
5091 | ac_status=$? |
---|
5092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5093 | (exit $ac_status); }; }; then |
---|
5094 | ac_cv_header_stdc=yes |
---|
5095 | else |
---|
5096 | echo "$as_me: failed program was:" >&5 |
---|
5097 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5098 | |
---|
5099 | ac_cv_header_stdc=no |
---|
5100 | fi |
---|
5101 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5102 | |
---|
5103 | if test $ac_cv_header_stdc = yes; then |
---|
5104 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
5105 | cat >conftest.$ac_ext <<_ACEOF |
---|
5106 | /* confdefs.h. */ |
---|
5107 | _ACEOF |
---|
5108 | cat confdefs.h >>conftest.$ac_ext |
---|
5109 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5110 | /* end confdefs.h. */ |
---|
5111 | #include <string.h> |
---|
5112 | |
---|
5113 | _ACEOF |
---|
5114 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5115 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
5116 | : |
---|
5117 | else |
---|
5118 | ac_cv_header_stdc=no |
---|
5119 | fi |
---|
5120 | rm -f conftest* |
---|
5121 | |
---|
5122 | fi |
---|
5123 | |
---|
5124 | if test $ac_cv_header_stdc = yes; then |
---|
5125 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
5126 | cat >conftest.$ac_ext <<_ACEOF |
---|
5127 | /* confdefs.h. */ |
---|
5128 | _ACEOF |
---|
5129 | cat confdefs.h >>conftest.$ac_ext |
---|
5130 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5131 | /* end confdefs.h. */ |
---|
5132 | #include <stdlib.h> |
---|
5133 | |
---|
5134 | _ACEOF |
---|
5135 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5136 | $EGREP "free" >/dev/null 2>&1; then |
---|
5137 | : |
---|
5138 | else |
---|
5139 | ac_cv_header_stdc=no |
---|
5140 | fi |
---|
5141 | rm -f conftest* |
---|
5142 | |
---|
5143 | fi |
---|
5144 | |
---|
5145 | if test $ac_cv_header_stdc = yes; then |
---|
5146 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
5147 | if test "$cross_compiling" = yes; then |
---|
5148 | : |
---|
5149 | else |
---|
5150 | cat >conftest.$ac_ext <<_ACEOF |
---|
5151 | /* confdefs.h. */ |
---|
5152 | _ACEOF |
---|
5153 | cat confdefs.h >>conftest.$ac_ext |
---|
5154 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5155 | /* end confdefs.h. */ |
---|
5156 | #include <ctype.h> |
---|
5157 | #if ((' ' & 0x0FF) == 0x020) |
---|
5158 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
5159 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
5160 | #else |
---|
5161 | # define ISLOWER(c) \ |
---|
5162 | (('a' <= (c) && (c) <= 'i') \ |
---|
5163 | || ('j' <= (c) && (c) <= 'r') \ |
---|
5164 | || ('s' <= (c) && (c) <= 'z')) |
---|
5165 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
5166 | #endif |
---|
5167 | |
---|
5168 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
5169 | int |
---|
5170 | main () |
---|
5171 | { |
---|
5172 | int i; |
---|
5173 | for (i = 0; i < 256; i++) |
---|
5174 | if (XOR (islower (i), ISLOWER (i)) |
---|
5175 | || toupper (i) != TOUPPER (i)) |
---|
5176 | exit(2); |
---|
5177 | exit (0); |
---|
5178 | } |
---|
5179 | _ACEOF |
---|
5180 | rm -f conftest$ac_exeext |
---|
5181 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5182 | (eval $ac_link) 2>&5 |
---|
5183 | ac_status=$? |
---|
5184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5185 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
5186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5187 | (eval $ac_try) 2>&5 |
---|
5188 | ac_status=$? |
---|
5189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5190 | (exit $ac_status); }; }; then |
---|
5191 | : |
---|
5192 | else |
---|
5193 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
5194 | echo "$as_me: failed program was:" >&5 |
---|
5195 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5196 | |
---|
5197 | ( exit $ac_status ) |
---|
5198 | ac_cv_header_stdc=no |
---|
5199 | fi |
---|
5200 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
5201 | fi |
---|
5202 | fi |
---|
5203 | fi |
---|
5204 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
5205 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
5206 | if test $ac_cv_header_stdc = yes; then |
---|
5207 | |
---|
5208 | cat >>confdefs.h <<\_ACEOF |
---|
5209 | #define STDC_HEADERS 1 |
---|
5210 | _ACEOF |
---|
5211 | |
---|
5212 | fi |
---|
5213 | |
---|
5214 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
5215 | |
---|
5216 | |
---|
5217 | |
---|
5218 | |
---|
5219 | |
---|
5220 | |
---|
5221 | |
---|
5222 | |
---|
5223 | |
---|
5224 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
5225 | inttypes.h stdint.h unistd.h |
---|
5226 | do |
---|
5227 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5228 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5229 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5230 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5232 | else |
---|
5233 | cat >conftest.$ac_ext <<_ACEOF |
---|
5234 | /* confdefs.h. */ |
---|
5235 | _ACEOF |
---|
5236 | cat confdefs.h >>conftest.$ac_ext |
---|
5237 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5238 | /* end confdefs.h. */ |
---|
5239 | $ac_includes_default |
---|
5240 | |
---|
5241 | #include <$ac_header> |
---|
5242 | _ACEOF |
---|
5243 | rm -f conftest.$ac_objext |
---|
5244 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5245 | (eval $ac_compile) 2>conftest.er1 |
---|
5246 | ac_status=$? |
---|
5247 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5248 | rm -f conftest.er1 |
---|
5249 | cat conftest.err >&5 |
---|
5250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5251 | (exit $ac_status); } && |
---|
5252 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5253 | || test ! -s conftest.err' |
---|
5254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5255 | (eval $ac_try) 2>&5 |
---|
5256 | ac_status=$? |
---|
5257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5258 | (exit $ac_status); }; } && |
---|
5259 | { ac_try='test -s conftest.$ac_objext' |
---|
5260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5261 | (eval $ac_try) 2>&5 |
---|
5262 | ac_status=$? |
---|
5263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5264 | (exit $ac_status); }; }; then |
---|
5265 | eval "$as_ac_Header=yes" |
---|
5266 | else |
---|
5267 | echo "$as_me: failed program was:" >&5 |
---|
5268 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5269 | |
---|
5270 | eval "$as_ac_Header=no" |
---|
5271 | fi |
---|
5272 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5273 | fi |
---|
5274 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5275 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5276 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5277 | cat >>confdefs.h <<_ACEOF |
---|
5278 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5279 | _ACEOF |
---|
5280 | |
---|
5281 | fi |
---|
5282 | |
---|
5283 | done |
---|
5284 | |
---|
5285 | |
---|
5286 | |
---|
5287 | for ac_header in dlfcn.h |
---|
5288 | do |
---|
5289 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5290 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5291 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5292 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5293 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5295 | fi |
---|
5296 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5297 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5298 | else |
---|
5299 | # Is the header compilable? |
---|
5300 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5301 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5302 | cat >conftest.$ac_ext <<_ACEOF |
---|
5303 | /* confdefs.h. */ |
---|
5304 | _ACEOF |
---|
5305 | cat confdefs.h >>conftest.$ac_ext |
---|
5306 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5307 | /* end confdefs.h. */ |
---|
5308 | $ac_includes_default |
---|
5309 | #include <$ac_header> |
---|
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_c_werror_flag" |
---|
5321 | || test ! -s conftest.err' |
---|
5322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5323 | (eval $ac_try) 2>&5 |
---|
5324 | ac_status=$? |
---|
5325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5326 | (exit $ac_status); }; } && |
---|
5327 | { ac_try='test -s conftest.$ac_objext' |
---|
5328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5329 | (eval $ac_try) 2>&5 |
---|
5330 | ac_status=$? |
---|
5331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5332 | (exit $ac_status); }; }; then |
---|
5333 | ac_header_compiler=yes |
---|
5334 | else |
---|
5335 | echo "$as_me: failed program was:" >&5 |
---|
5336 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5337 | |
---|
5338 | ac_header_compiler=no |
---|
5339 | fi |
---|
5340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5341 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5342 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5343 | |
---|
5344 | # Is the header present? |
---|
5345 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5346 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5347 | cat >conftest.$ac_ext <<_ACEOF |
---|
5348 | /* confdefs.h. */ |
---|
5349 | _ACEOF |
---|
5350 | cat confdefs.h >>conftest.$ac_ext |
---|
5351 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5352 | /* end confdefs.h. */ |
---|
5353 | #include <$ac_header> |
---|
5354 | _ACEOF |
---|
5355 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5356 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5357 | ac_status=$? |
---|
5358 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5359 | rm -f conftest.er1 |
---|
5360 | cat conftest.err >&5 |
---|
5361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5362 | (exit $ac_status); } >/dev/null; then |
---|
5363 | if test -s conftest.err; then |
---|
5364 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5365 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5366 | else |
---|
5367 | ac_cpp_err= |
---|
5368 | fi |
---|
5369 | else |
---|
5370 | ac_cpp_err=yes |
---|
5371 | fi |
---|
5372 | if test -z "$ac_cpp_err"; then |
---|
5373 | ac_header_preproc=yes |
---|
5374 | else |
---|
5375 | echo "$as_me: failed program was:" >&5 |
---|
5376 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5377 | |
---|
5378 | ac_header_preproc=no |
---|
5379 | fi |
---|
5380 | rm -f conftest.err conftest.$ac_ext |
---|
5381 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5382 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5383 | |
---|
5384 | # So? What about this header? |
---|
5385 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5386 | yes:no: ) |
---|
5387 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5388 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5389 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5390 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5391 | ac_header_preproc=yes |
---|
5392 | ;; |
---|
5393 | no:yes:* ) |
---|
5394 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5395 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5396 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5397 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5398 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5399 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5400 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5401 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5402 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5403 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5404 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5405 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5406 | ( |
---|
5407 | cat <<\_ASBOX |
---|
5408 | ## --------------------------------------------------------------- ## |
---|
5409 | ## Report this to http://projects.coin-or.org/BuildTools/newticket ## |
---|
5410 | ## --------------------------------------------------------------- ## |
---|
5411 | _ASBOX |
---|
5412 | ) | |
---|
5413 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5414 | ;; |
---|
5415 | esac |
---|
5416 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5417 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5418 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5420 | else |
---|
5421 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5422 | fi |
---|
5423 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5424 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5425 | |
---|
5426 | fi |
---|
5427 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5428 | cat >>confdefs.h <<_ACEOF |
---|
5429 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5430 | _ACEOF |
---|
5431 | |
---|
5432 | fi |
---|
5433 | |
---|
5434 | done |
---|
5435 | |
---|
5436 | ac_ext=cc |
---|
5437 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
5438 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5439 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5440 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
5441 | if test -n "$ac_tool_prefix"; then |
---|
5442 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
5443 | do |
---|
5444 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
5445 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
5446 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5447 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5448 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
5449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5450 | else |
---|
5451 | if test -n "$CXX"; then |
---|
5452 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
5453 | else |
---|
5454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5455 | for as_dir in $PATH |
---|
5456 | do |
---|
5457 | IFS=$as_save_IFS |
---|
5458 | test -z "$as_dir" && as_dir=. |
---|
5459 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5460 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5461 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
5462 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5463 | break 2 |
---|
5464 | fi |
---|
5465 | done |
---|
5466 | done |
---|
5467 | |
---|
5468 | fi |
---|
5469 | fi |
---|
5470 | CXX=$ac_cv_prog_CXX |
---|
5471 | if test -n "$CXX"; then |
---|
5472 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
5473 | echo "${ECHO_T}$CXX" >&6 |
---|
5474 | else |
---|
5475 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5476 | echo "${ECHO_T}no" >&6 |
---|
5477 | fi |
---|
5478 | |
---|
5479 | test -n "$CXX" && break |
---|
5480 | done |
---|
5481 | fi |
---|
5482 | if test -z "$CXX"; then |
---|
5483 | ac_ct_CXX=$CXX |
---|
5484 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
5485 | do |
---|
5486 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
5487 | set dummy $ac_prog; ac_word=$2 |
---|
5488 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5489 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5490 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
5491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5492 | else |
---|
5493 | if test -n "$ac_ct_CXX"; then |
---|
5494 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
5495 | else |
---|
5496 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5497 | for as_dir in $PATH |
---|
5498 | do |
---|
5499 | IFS=$as_save_IFS |
---|
5500 | test -z "$as_dir" && as_dir=. |
---|
5501 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5502 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5503 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
5504 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5505 | break 2 |
---|
5506 | fi |
---|
5507 | done |
---|
5508 | done |
---|
5509 | |
---|
5510 | fi |
---|
5511 | fi |
---|
5512 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
5513 | if test -n "$ac_ct_CXX"; then |
---|
5514 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
5515 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
5516 | else |
---|
5517 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5518 | echo "${ECHO_T}no" >&6 |
---|
5519 | fi |
---|
5520 | |
---|
5521 | test -n "$ac_ct_CXX" && break |
---|
5522 | done |
---|
5523 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
5524 | |
---|
5525 | CXX=$ac_ct_CXX |
---|
5526 | fi |
---|
5527 | |
---|
5528 | |
---|
5529 | # Provide some information about the compiler. |
---|
5530 | echo "$as_me:$LINENO:" \ |
---|
5531 | "checking for C++ compiler version" >&5 |
---|
5532 | ac_compiler=`set X $ac_compile; echo $2` |
---|
5533 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
5534 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
5535 | ac_status=$? |
---|
5536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5537 | (exit $ac_status); } |
---|
5538 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
5539 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
5540 | ac_status=$? |
---|
5541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5542 | (exit $ac_status); } |
---|
5543 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
5544 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
5545 | ac_status=$? |
---|
5546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5547 | (exit $ac_status); } |
---|
5548 | |
---|
5549 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
5550 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
5551 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
5552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5553 | else |
---|
5554 | cat >conftest.$ac_ext <<_ACEOF |
---|
5555 | /* confdefs.h. */ |
---|
5556 | _ACEOF |
---|
5557 | cat confdefs.h >>conftest.$ac_ext |
---|
5558 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5559 | /* end confdefs.h. */ |
---|
5560 | |
---|
5561 | int |
---|
5562 | main () |
---|
5563 | { |
---|
5564 | #ifndef __GNUC__ |
---|
5565 | choke me |
---|
5566 | #endif |
---|
5567 | |
---|
5568 | ; |
---|
5569 | return 0; |
---|
5570 | } |
---|
5571 | _ACEOF |
---|
5572 | rm -f conftest.$ac_objext |
---|
5573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5574 | (eval $ac_compile) 2>conftest.er1 |
---|
5575 | ac_status=$? |
---|
5576 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5577 | rm -f conftest.er1 |
---|
5578 | cat conftest.err >&5 |
---|
5579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5580 | (exit $ac_status); } && |
---|
5581 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
5582 | || test ! -s conftest.err' |
---|
5583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5584 | (eval $ac_try) 2>&5 |
---|
5585 | ac_status=$? |
---|
5586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5587 | (exit $ac_status); }; } && |
---|
5588 | { ac_try='test -s conftest.$ac_objext' |
---|
5589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5590 | (eval $ac_try) 2>&5 |
---|
5591 | ac_status=$? |
---|
5592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5593 | (exit $ac_status); }; }; then |
---|
5594 | ac_compiler_gnu=yes |
---|
5595 | else |
---|
5596 | echo "$as_me: failed program was:" >&5 |
---|
5597 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5598 | |
---|
5599 | ac_compiler_gnu=no |
---|
5600 | fi |
---|
5601 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5602 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
5603 | |
---|
5604 | fi |
---|
5605 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
5606 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
5607 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
5608 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
5609 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
5610 | CXXFLAGS="-g" |
---|
5611 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
5612 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
5613 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
5614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5615 | else |
---|
5616 | cat >conftest.$ac_ext <<_ACEOF |
---|
5617 | /* confdefs.h. */ |
---|
5618 | _ACEOF |
---|
5619 | cat confdefs.h >>conftest.$ac_ext |
---|
5620 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5621 | /* end confdefs.h. */ |
---|
5622 | |
---|
5623 | int |
---|
5624 | main () |
---|
5625 | { |
---|
5626 | |
---|
5627 | ; |
---|
5628 | return 0; |
---|
5629 | } |
---|
5630 | _ACEOF |
---|
5631 | rm -f conftest.$ac_objext |
---|
5632 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5633 | (eval $ac_compile) 2>conftest.er1 |
---|
5634 | ac_status=$? |
---|
5635 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5636 | rm -f conftest.er1 |
---|
5637 | cat conftest.err >&5 |
---|
5638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5639 | (exit $ac_status); } && |
---|
5640 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
5641 | || test ! -s conftest.err' |
---|
5642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5643 | (eval $ac_try) 2>&5 |
---|
5644 | ac_status=$? |
---|
5645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5646 | (exit $ac_status); }; } && |
---|
5647 | { ac_try='test -s conftest.$ac_objext' |
---|
5648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5649 | (eval $ac_try) 2>&5 |
---|
5650 | ac_status=$? |
---|
5651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5652 | (exit $ac_status); }; }; then |
---|
5653 | ac_cv_prog_cxx_g=yes |
---|
5654 | else |
---|
5655 | echo "$as_me: failed program was:" >&5 |
---|
5656 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5657 | |
---|
5658 | ac_cv_prog_cxx_g=no |
---|
5659 | fi |
---|
5660 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5661 | fi |
---|
5662 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
5663 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
5664 | if test "$ac_test_CXXFLAGS" = set; then |
---|
5665 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
5666 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
5667 | if test "$GXX" = yes; then |
---|
5668 | CXXFLAGS="-g -O2" |
---|
5669 | else |
---|
5670 | CXXFLAGS="-g" |
---|
5671 | fi |
---|
5672 | else |
---|
5673 | if test "$GXX" = yes; then |
---|
5674 | CXXFLAGS="-O2" |
---|
5675 | else |
---|
5676 | CXXFLAGS= |
---|
5677 | fi |
---|
5678 | fi |
---|
5679 | for ac_declaration in \ |
---|
5680 | '' \ |
---|
5681 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
5682 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
5683 | 'extern "C" void exit (int) throw ();' \ |
---|
5684 | 'extern "C" void exit (int);' \ |
---|
5685 | 'void exit (int);' |
---|
5686 | do |
---|
5687 | cat >conftest.$ac_ext <<_ACEOF |
---|
5688 | /* confdefs.h. */ |
---|
5689 | _ACEOF |
---|
5690 | cat confdefs.h >>conftest.$ac_ext |
---|
5691 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5692 | /* end confdefs.h. */ |
---|
5693 | $ac_declaration |
---|
5694 | #include <stdlib.h> |
---|
5695 | int |
---|
5696 | main () |
---|
5697 | { |
---|
5698 | exit (42); |
---|
5699 | ; |
---|
5700 | return 0; |
---|
5701 | } |
---|
5702 | _ACEOF |
---|
5703 | rm -f conftest.$ac_objext |
---|
5704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5705 | (eval $ac_compile) 2>conftest.er1 |
---|
5706 | ac_status=$? |
---|
5707 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5708 | rm -f conftest.er1 |
---|
5709 | cat conftest.err >&5 |
---|
5710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5711 | (exit $ac_status); } && |
---|
5712 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
5713 | || test ! -s conftest.err' |
---|
5714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5715 | (eval $ac_try) 2>&5 |
---|
5716 | ac_status=$? |
---|
5717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5718 | (exit $ac_status); }; } && |
---|
5719 | { ac_try='test -s conftest.$ac_objext' |
---|
5720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5721 | (eval $ac_try) 2>&5 |
---|
5722 | ac_status=$? |
---|
5723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5724 | (exit $ac_status); }; }; then |
---|
5725 | : |
---|
5726 | else |
---|
5727 | echo "$as_me: failed program was:" >&5 |
---|
5728 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5729 | |
---|
5730 | continue |
---|
5731 | fi |
---|
5732 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5733 | cat >conftest.$ac_ext <<_ACEOF |
---|
5734 | /* confdefs.h. */ |
---|
5735 | _ACEOF |
---|
5736 | cat confdefs.h >>conftest.$ac_ext |
---|
5737 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5738 | /* end confdefs.h. */ |
---|
5739 | $ac_declaration |
---|
5740 | int |
---|
5741 | main () |
---|
5742 | { |
---|
5743 | exit (42); |
---|
5744 | ; |
---|
5745 | return 0; |
---|
5746 | } |
---|
5747 | _ACEOF |
---|
5748 | rm -f conftest.$ac_objext |
---|
5749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5750 | (eval $ac_compile) 2>conftest.er1 |
---|
5751 | ac_status=$? |
---|
5752 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5753 | rm -f conftest.er1 |
---|
5754 | cat conftest.err >&5 |
---|
5755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5756 | (exit $ac_status); } && |
---|
5757 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
5758 | || test ! -s conftest.err' |
---|
5759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5760 | (eval $ac_try) 2>&5 |
---|
5761 | ac_status=$? |
---|
5762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5763 | (exit $ac_status); }; } && |
---|
5764 | { ac_try='test -s conftest.$ac_objext' |
---|
5765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5766 | (eval $ac_try) 2>&5 |
---|
5767 | ac_status=$? |
---|
5768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5769 | (exit $ac_status); }; }; then |
---|
5770 | break |
---|
5771 | else |
---|
5772 | echo "$as_me: failed program was:" >&5 |
---|
5773 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5774 | |
---|
5775 | fi |
---|
5776 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5777 | done |
---|
5778 | rm -f conftest* |
---|
5779 | if test -n "$ac_declaration"; then |
---|
5780 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
5781 | echo $ac_declaration >>confdefs.h |
---|
5782 | echo '#endif' >>confdefs.h |
---|
5783 | fi |
---|
5784 | |
---|
5785 | ac_ext=cc |
---|
5786 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
5787 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5788 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5789 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
5790 | |
---|
5791 | depcc="$CXX" am_compiler_list= |
---|
5792 | |
---|
5793 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
5794 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
5795 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
5796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5797 | else |
---|
5798 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
5799 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
5800 | # making bogus files that we don't know about and never remove. For |
---|
5801 | # instance it was reported that on HP-UX the gcc test will end up |
---|
5802 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
5803 | # in D'. |
---|
5804 | mkdir conftest.dir |
---|
5805 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
5806 | # using a relative directory. |
---|
5807 | cp "$am_depcomp" conftest.dir |
---|
5808 | cd conftest.dir |
---|
5809 | # We will build objects and dependencies in a subdirectory because |
---|
5810 | # it helps to detect inapplicable dependency modes. For instance |
---|
5811 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
5812 | # side effect of compilation, but ICC will put the dependencies in |
---|
5813 | # the current directory while Tru64 will put them in the object |
---|
5814 | # directory. |
---|
5815 | mkdir sub |
---|
5816 | |
---|
5817 | am_cv_CXX_dependencies_compiler_type=none |
---|
5818 | if test "$am_compiler_list" = ""; then |
---|
5819 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
5820 | fi |
---|
5821 | for depmode in $am_compiler_list; do |
---|
5822 | # Setup a source with many dependencies, because some compilers |
---|
5823 | # like to wrap large dependency lists on column 80 (with \), and |
---|
5824 | # we should not choose a depcomp mode which is confused by this. |
---|
5825 | # |
---|
5826 | # We need to recreate these files for each test, as the compiler may |
---|
5827 | # overwrite some of them when testing with obscure command lines. |
---|
5828 | # This happens at least with the AIX C compiler. |
---|
5829 | : > sub/conftest.c |
---|
5830 | for i in 1 2 3 4 5 6; do |
---|
5831 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
5832 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
5833 | # Solaris 8's {/usr,}/bin/sh. |
---|
5834 | touch sub/conftst$i.h |
---|
5835 | done |
---|
5836 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
5837 | |
---|
5838 | case $depmode in |
---|
5839 | nosideeffect) |
---|
5840 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
5841 | # only be used when explicitly requested |
---|
5842 | if test "x$enable_dependency_tracking" = xyes; then |
---|
5843 | continue |
---|
5844 | else |
---|
5845 | break |
---|
5846 | fi |
---|
5847 | ;; |
---|
5848 | none) break ;; |
---|
5849 | esac |
---|
5850 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
5851 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
5852 | # handle `-M -o', and we need to detect this. |
---|
5853 | if depmode=$depmode \ |
---|
5854 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
5855 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
5856 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
5857 | >/dev/null 2>conftest.err && |
---|
5858 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
5859 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
5860 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
5861 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
5862 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
5863 | # that says an option was ignored or not supported. |
---|
5864 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
5865 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
5866 | # The diagnosis changed in icc 8.0: |
---|
5867 | # icc: Command line remark: option '-MP' not supported |
---|
5868 | if (grep 'ignoring option' conftest.err || |
---|
5869 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
5870 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
5871 | break |
---|
5872 | fi |
---|
5873 | fi |
---|
5874 | done |
---|
5875 | |
---|
5876 | cd .. |
---|
5877 | rm -rf conftest.dir |
---|
5878 | else |
---|
5879 | am_cv_CXX_dependencies_compiler_type=none |
---|
5880 | fi |
---|
5881 | |
---|
5882 | fi |
---|
5883 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
5884 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
5885 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
5886 | |
---|
5887 | |
---|
5888 | |
---|
5889 | if |
---|
5890 | test "x$enable_dependency_tracking" != xno \ |
---|
5891 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
5892 | am__fastdepCXX_TRUE= |
---|
5893 | am__fastdepCXX_FALSE='#' |
---|
5894 | else |
---|
5895 | am__fastdepCXX_TRUE='#' |
---|
5896 | am__fastdepCXX_FALSE= |
---|
5897 | fi |
---|
5898 | |
---|
5899 | |
---|
5900 | |
---|
5901 | |
---|
5902 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
---|
5903 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
---|
5904 | (test "X$CXX" != "Xg++"))) ; then |
---|
5905 | ac_ext=cc |
---|
5906 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
5907 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5908 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5909 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
5910 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
---|
5911 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
---|
5912 | if test -z "$CXXCPP"; then |
---|
5913 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
---|
5914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5915 | else |
---|
5916 | # Double quotes because CXXCPP needs to be expanded |
---|
5917 | for CXXCPP in "$CXX -E" "/lib/cpp" |
---|
5918 | do |
---|
5919 | ac_preproc_ok=false |
---|
5920 | for ac_cxx_preproc_warn_flag in '' yes |
---|
5921 | do |
---|
5922 | # Use a header file that comes with gcc, so configuring glibc |
---|
5923 | # with a fresh cross-compiler works. |
---|
5924 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5925 | # <limits.h> exists even on freestanding compilers. |
---|
5926 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
5927 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
5928 | cat >conftest.$ac_ext <<_ACEOF |
---|
5929 | /* confdefs.h. */ |
---|
5930 | _ACEOF |
---|
5931 | cat confdefs.h >>conftest.$ac_ext |
---|
5932 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5933 | /* end confdefs.h. */ |
---|
5934 | #ifdef __STDC__ |
---|
5935 | # include <limits.h> |
---|
5936 | #else |
---|
5937 | # include <assert.h> |
---|
5938 | #endif |
---|
5939 | Syntax error |
---|
5940 | _ACEOF |
---|
5941 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5942 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5943 | ac_status=$? |
---|
5944 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5945 | rm -f conftest.er1 |
---|
5946 | cat conftest.err >&5 |
---|
5947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5948 | (exit $ac_status); } >/dev/null; then |
---|
5949 | if test -s conftest.err; then |
---|
5950 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
5951 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
5952 | else |
---|
5953 | ac_cpp_err= |
---|
5954 | fi |
---|
5955 | else |
---|
5956 | ac_cpp_err=yes |
---|
5957 | fi |
---|
5958 | if test -z "$ac_cpp_err"; then |
---|
5959 | : |
---|
5960 | else |
---|
5961 | echo "$as_me: failed program was:" >&5 |
---|
5962 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5963 | |
---|
5964 | # Broken: fails on valid input. |
---|
5965 | continue |
---|
5966 | fi |
---|
5967 | rm -f conftest.err conftest.$ac_ext |
---|
5968 | |
---|
5969 | # OK, works on sane cases. Now check whether non-existent headers |
---|
5970 | # can be detected and how. |
---|
5971 | cat >conftest.$ac_ext <<_ACEOF |
---|
5972 | /* confdefs.h. */ |
---|
5973 | _ACEOF |
---|
5974 | cat confdefs.h >>conftest.$ac_ext |
---|
5975 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5976 | /* end confdefs.h. */ |
---|
5977 | #include <ac_nonexistent.h> |
---|
5978 | _ACEOF |
---|
5979 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5980 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5981 | ac_status=$? |
---|
5982 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5983 | rm -f conftest.er1 |
---|
5984 | cat conftest.err >&5 |
---|
5985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5986 | (exit $ac_status); } >/dev/null; then |
---|
5987 | if test -s conftest.err; then |
---|
5988 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
5989 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
5990 | else |
---|
5991 | ac_cpp_err= |
---|
5992 | fi |
---|
5993 | else |
---|
5994 | ac_cpp_err=yes |
---|
5995 | fi |
---|
5996 | if test -z "$ac_cpp_err"; then |
---|
5997 | # Broken: success on invalid input. |
---|
5998 | continue |
---|
5999 | else |
---|
6000 | echo "$as_me: failed program was:" >&5 |
---|
6001 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6002 | |
---|
6003 | # Passes both tests. |
---|
6004 | ac_preproc_ok=: |
---|
6005 | break |
---|
6006 | fi |
---|
6007 | rm -f conftest.err conftest.$ac_ext |
---|
6008 | |
---|
6009 | done |
---|
6010 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
6011 | rm -f conftest.err conftest.$ac_ext |
---|
6012 | if $ac_preproc_ok; then |
---|
6013 | break |
---|
6014 | fi |
---|
6015 | |
---|
6016 | done |
---|
6017 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
6018 | |
---|
6019 | fi |
---|
6020 | CXXCPP=$ac_cv_prog_CXXCPP |
---|
6021 | else |
---|
6022 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
6023 | fi |
---|
6024 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
---|
6025 | echo "${ECHO_T}$CXXCPP" >&6 |
---|
6026 | ac_preproc_ok=false |
---|
6027 | for ac_cxx_preproc_warn_flag in '' yes |
---|
6028 | do |
---|
6029 | # Use a header file that comes with gcc, so configuring glibc |
---|
6030 | # with a fresh cross-compiler works. |
---|
6031 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6032 | # <limits.h> exists even on freestanding compilers. |
---|
6033 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
6034 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
6035 | cat >conftest.$ac_ext <<_ACEOF |
---|
6036 | /* confdefs.h. */ |
---|
6037 | _ACEOF |
---|
6038 | cat confdefs.h >>conftest.$ac_ext |
---|
6039 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6040 | /* end confdefs.h. */ |
---|
6041 | #ifdef __STDC__ |
---|
6042 | # include <limits.h> |
---|
6043 | #else |
---|
6044 | # include <assert.h> |
---|
6045 | #endif |
---|
6046 | Syntax error |
---|
6047 | _ACEOF |
---|
6048 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6049 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6050 | ac_status=$? |
---|
6051 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6052 | rm -f conftest.er1 |
---|
6053 | cat conftest.err >&5 |
---|
6054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6055 | (exit $ac_status); } >/dev/null; then |
---|
6056 | if test -s conftest.err; then |
---|
6057 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
6058 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
6059 | else |
---|
6060 | ac_cpp_err= |
---|
6061 | fi |
---|
6062 | else |
---|
6063 | ac_cpp_err=yes |
---|
6064 | fi |
---|
6065 | if test -z "$ac_cpp_err"; then |
---|
6066 | : |
---|
6067 | else |
---|
6068 | echo "$as_me: failed program was:" >&5 |
---|
6069 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6070 | |
---|
6071 | # Broken: fails on valid input. |
---|
6072 | continue |
---|
6073 | fi |
---|
6074 | rm -f conftest.err conftest.$ac_ext |
---|
6075 | |
---|
6076 | # OK, works on sane cases. Now check whether non-existent headers |
---|
6077 | # can be detected and how. |
---|
6078 | cat >conftest.$ac_ext <<_ACEOF |
---|
6079 | /* confdefs.h. */ |
---|
6080 | _ACEOF |
---|
6081 | cat confdefs.h >>conftest.$ac_ext |
---|
6082 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6083 | /* end confdefs.h. */ |
---|
6084 | #include <ac_nonexistent.h> |
---|
6085 | _ACEOF |
---|
6086 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6087 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6088 | ac_status=$? |
---|
6089 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6090 | rm -f conftest.er1 |
---|
6091 | cat conftest.err >&5 |
---|
6092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6093 | (exit $ac_status); } >/dev/null; then |
---|
6094 | if test -s conftest.err; then |
---|
6095 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
6096 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
6097 | else |
---|
6098 | ac_cpp_err= |
---|
6099 | fi |
---|
6100 | else |
---|
6101 | ac_cpp_err=yes |
---|
6102 | fi |
---|
6103 | if test -z "$ac_cpp_err"; then |
---|
6104 | # Broken: success on invalid input. |
---|
6105 | continue |
---|
6106 | else |
---|
6107 | echo "$as_me: failed program was:" >&5 |
---|
6108 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6109 | |
---|
6110 | # Passes both tests. |
---|
6111 | ac_preproc_ok=: |
---|
6112 | break |
---|
6113 | fi |
---|
6114 | rm -f conftest.err conftest.$ac_ext |
---|
6115 | |
---|
6116 | done |
---|
6117 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
6118 | rm -f conftest.err conftest.$ac_ext |
---|
6119 | if $ac_preproc_ok; then |
---|
6120 | : |
---|
6121 | else |
---|
6122 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
6123 | See \`config.log' for more details." >&5 |
---|
6124 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
6125 | See \`config.log' for more details." >&2;} |
---|
6126 | { (exit 1); exit 1; }; } |
---|
6127 | fi |
---|
6128 | |
---|
6129 | ac_ext=cc |
---|
6130 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
6131 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6132 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6133 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
6134 | |
---|
6135 | fi |
---|
6136 | |
---|
6137 | |
---|
6138 | ac_ext=f |
---|
6139 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
6140 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6141 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
6142 | if test -n "$ac_tool_prefix"; then |
---|
6143 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
---|
6144 | do |
---|
6145 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
6146 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
6147 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6148 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
6149 | if test "${ac_cv_prog_F77+set}" = set; then |
---|
6150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6151 | else |
---|
6152 | if test -n "$F77"; then |
---|
6153 | ac_cv_prog_F77="$F77" # Let the user override the test. |
---|
6154 | else |
---|
6155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6156 | for as_dir in $PATH |
---|
6157 | do |
---|
6158 | IFS=$as_save_IFS |
---|
6159 | test -z "$as_dir" && as_dir=. |
---|
6160 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6161 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6162 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
---|
6163 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6164 | break 2 |
---|
6165 | fi |
---|
6166 | done |
---|
6167 | done |
---|
6168 | |
---|
6169 | fi |
---|
6170 | fi |
---|
6171 | F77=$ac_cv_prog_F77 |
---|
6172 | if test -n "$F77"; then |
---|
6173 | echo "$as_me:$LINENO: result: $F77" >&5 |
---|
6174 | echo "${ECHO_T}$F77" >&6 |
---|
6175 | else |
---|
6176 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6177 | echo "${ECHO_T}no" >&6 |
---|
6178 | fi |
---|
6179 | |
---|
6180 | test -n "$F77" && break |
---|
6181 | done |
---|
6182 | fi |
---|
6183 | if test -z "$F77"; then |
---|
6184 | ac_ct_F77=$F77 |
---|
6185 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
---|
6186 | do |
---|
6187 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
6188 | set dummy $ac_prog; ac_word=$2 |
---|
6189 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6190 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
6191 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
---|
6192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6193 | else |
---|
6194 | if test -n "$ac_ct_F77"; then |
---|
6195 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
---|
6196 | else |
---|
6197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6198 | for as_dir in $PATH |
---|
6199 | do |
---|
6200 | IFS=$as_save_IFS |
---|
6201 | test -z "$as_dir" && as_dir=. |
---|
6202 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6203 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6204 | ac_cv_prog_ac_ct_F77="$ac_prog" |
---|
6205 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6206 | break 2 |
---|
6207 | fi |
---|
6208 | done |
---|
6209 | done |
---|
6210 | |
---|
6211 | fi |
---|
6212 | fi |
---|
6213 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
---|
6214 | if test -n "$ac_ct_F77"; then |
---|
6215 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
---|
6216 | echo "${ECHO_T}$ac_ct_F77" >&6 |
---|
6217 | else |
---|
6218 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6219 | echo "${ECHO_T}no" >&6 |
---|
6220 | fi |
---|
6221 | |
---|
6222 | test -n "$ac_ct_F77" && break |
---|
6223 | done |
---|
6224 | |
---|
6225 | F77=$ac_ct_F77 |
---|
6226 | fi |
---|
6227 | |
---|
6228 | |
---|
6229 | # Provide some information about the compiler. |
---|
6230 | echo "$as_me:6230:" \ |
---|
6231 | "checking for Fortran 77 compiler version" >&5 |
---|
6232 | ac_compiler=`set X $ac_compile; echo $2` |
---|
6233 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
6234 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
6235 | ac_status=$? |
---|
6236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6237 | (exit $ac_status); } |
---|
6238 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
6239 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
6240 | ac_status=$? |
---|
6241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6242 | (exit $ac_status); } |
---|
6243 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
6244 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
6245 | ac_status=$? |
---|
6246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6247 | (exit $ac_status); } |
---|
6248 | rm -f a.out |
---|
6249 | |
---|
6250 | # If we don't use `.F' as extension, the preprocessor is not run on the |
---|
6251 | # input file. (Note that this only needs to work for GNU compilers.) |
---|
6252 | ac_save_ext=$ac_ext |
---|
6253 | ac_ext=F |
---|
6254 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
---|
6255 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
---|
6256 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
---|
6257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6258 | else |
---|
6259 | cat >conftest.$ac_ext <<_ACEOF |
---|
6260 | program main |
---|
6261 | #ifndef __GNUC__ |
---|
6262 | choke me |
---|
6263 | #endif |
---|
6264 | |
---|
6265 | end |
---|
6266 | _ACEOF |
---|
6267 | rm -f conftest.$ac_objext |
---|
6268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6269 | (eval $ac_compile) 2>conftest.er1 |
---|
6270 | ac_status=$? |
---|
6271 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6272 | rm -f conftest.er1 |
---|
6273 | cat conftest.err >&5 |
---|
6274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6275 | (exit $ac_status); } && |
---|
6276 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
6277 | || test ! -s conftest.err' |
---|
6278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6279 | (eval $ac_try) 2>&5 |
---|
6280 | ac_status=$? |
---|
6281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6282 | (exit $ac_status); }; } && |
---|
6283 | { ac_try='test -s conftest.$ac_objext' |
---|
6284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6285 | (eval $ac_try) 2>&5 |
---|
6286 | ac_status=$? |
---|
6287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6288 | (exit $ac_status); }; }; then |
---|
6289 | ac_compiler_gnu=yes |
---|
6290 | else |
---|
6291 | echo "$as_me: failed program was:" >&5 |
---|
6292 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6293 | |
---|
6294 | ac_compiler_gnu=no |
---|
6295 | fi |
---|
6296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6297 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
---|
6298 | |
---|
6299 | fi |
---|
6300 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
---|
6301 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
---|
6302 | ac_ext=$ac_save_ext |
---|
6303 | ac_test_FFLAGS=${FFLAGS+set} |
---|
6304 | ac_save_FFLAGS=$FFLAGS |
---|
6305 | FFLAGS= |
---|
6306 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
---|
6307 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
---|
6308 | if test "${ac_cv_prog_f77_g+set}" = set; then |
---|
6309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6310 | else |
---|
6311 | FFLAGS=-g |
---|
6312 | cat >conftest.$ac_ext <<_ACEOF |
---|
6313 | program main |
---|
6314 | |
---|
6315 | end |
---|
6316 | _ACEOF |
---|
6317 | rm -f conftest.$ac_objext |
---|
6318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6319 | (eval $ac_compile) 2>conftest.er1 |
---|
6320 | ac_status=$? |
---|
6321 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6322 | rm -f conftest.er1 |
---|
6323 | cat conftest.err >&5 |
---|
6324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6325 | (exit $ac_status); } && |
---|
6326 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
6327 | || test ! -s conftest.err' |
---|
6328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6329 | (eval $ac_try) 2>&5 |
---|
6330 | ac_status=$? |
---|
6331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6332 | (exit $ac_status); }; } && |
---|
6333 | { ac_try='test -s conftest.$ac_objext' |
---|
6334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6335 | (eval $ac_try) 2>&5 |
---|
6336 | ac_status=$? |
---|
6337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6338 | (exit $ac_status); }; }; then |
---|
6339 | ac_cv_prog_f77_g=yes |
---|
6340 | else |
---|
6341 | echo "$as_me: failed program was:" >&5 |
---|
6342 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6343 | |
---|
6344 | ac_cv_prog_f77_g=no |
---|
6345 | fi |
---|
6346 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6347 | |
---|
6348 | fi |
---|
6349 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
---|
6350 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
---|
6351 | if test "$ac_test_FFLAGS" = set; then |
---|
6352 | FFLAGS=$ac_save_FFLAGS |
---|
6353 | elif test $ac_cv_prog_f77_g = yes; then |
---|
6354 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
6355 | FFLAGS="-g -O2" |
---|
6356 | else |
---|
6357 | FFLAGS="-g" |
---|
6358 | fi |
---|
6359 | else |
---|
6360 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
6361 | FFLAGS="-O2" |
---|
6362 | else |
---|
6363 | FFLAGS= |
---|
6364 | fi |
---|
6365 | fi |
---|
6366 | |
---|
6367 | G77=`test $ac_compiler_gnu = yes && echo yes` |
---|
6368 | ac_ext=c |
---|
6369 | ac_cpp='$CPP $CPPFLAGS' |
---|
6370 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6371 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6372 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6373 | |
---|
6374 | |
---|
6375 | |
---|
6376 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
---|
6377 | |
---|
6378 | # find the maximum length of command line arguments |
---|
6379 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
---|
6380 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
---|
6381 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
---|
6382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6383 | else |
---|
6384 | i=0 |
---|
6385 | teststring="ABCD" |
---|
6386 | |
---|
6387 | case $build_os in |
---|
6388 | msdosdjgpp*) |
---|
6389 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
---|
6390 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
---|
6391 | # during glob expansion). Even if it were fixed, the result of this |
---|
6392 | # check would be larger than it should be. |
---|
6393 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
---|
6394 | ;; |
---|
6395 | |
---|
6396 | gnu*) |
---|
6397 | # Under GNU Hurd, this test is not required because there is |
---|
6398 | # no limit to the length of command line arguments. |
---|
6399 | # Libtool will interpret -1 as no limit whatsoever |
---|
6400 | lt_cv_sys_max_cmd_len=-1; |
---|
6401 | ;; |
---|
6402 | |
---|
6403 | cygwin* | mingw*) |
---|
6404 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
---|
6405 | # about 5 minutes as the teststring grows exponentially. |
---|
6406 | # Worse, since 9x/ME are not pre-emptively multitasking, |
---|
6407 | # you end up with a "frozen" computer, even though with patience |
---|
6408 | # the test eventually succeeds (with a max line length of 256k). |
---|
6409 | # Instead, let's just punt: use the minimum linelength reported by |
---|
6410 | # all of the supported platforms: 8192 (on NT/2K/XP). |
---|
6411 | lt_cv_sys_max_cmd_len=8192; |
---|
6412 | ;; |
---|
6413 | |
---|
6414 | amigaos*) |
---|
6415 | # On AmigaOS with pdksh, this test takes hours, literally. |
---|
6416 | # So we just punt and use a minimum line length of 8192. |
---|
6417 | lt_cv_sys_max_cmd_len=8192; |
---|
6418 | ;; |
---|
6419 | |
---|
6420 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
---|
6421 | # This has been around since 386BSD, at least. Likely further. |
---|
6422 | if test -x /sbin/sysctl; then |
---|
6423 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
---|
6424 | elif test -x /usr/sbin/sysctl; then |
---|
6425 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
---|
6426 | else |
---|
6427 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
---|
6428 | fi |
---|
6429 | # And add a safety zone |
---|
6430 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
---|
6431 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
---|
6432 | ;; |
---|
6433 | |
---|
6434 | interix*) |
---|
6435 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
---|
6436 | lt_cv_sys_max_cmd_len=196608 |
---|
6437 | ;; |
---|
6438 | |
---|
6439 | osf*) |
---|
6440 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
---|
6441 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
---|
6442 | # nice to cause kernel panics so lets avoid the loop below. |
---|
6443 | # First set a reasonable default. |
---|
6444 | lt_cv_sys_max_cmd_len=16384 |
---|
6445 | # |
---|
6446 | if test -x /sbin/sysconfig; then |
---|
6447 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
---|
6448 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
---|
6449 | esac |
---|
6450 | fi |
---|
6451 | ;; |
---|
6452 | sco3.2v5*) |
---|
6453 | lt_cv_sys_max_cmd_len=102400 |
---|
6454 | ;; |
---|
6455 | sysv5* | sco5v6* | sysv4.2uw2*) |
---|
6456 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
---|
6457 | if test -n "$kargmax"; then |
---|
6458 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
---|
6459 | else |
---|
6460 | lt_cv_sys_max_cmd_len=32768 |
---|
6461 | fi |
---|
6462 | ;; |
---|
6463 | *) |
---|
6464 | # If test is not a shell built-in, we'll probably end up computing a |
---|
6465 | # maximum length that is only half of the actual maximum length, but |
---|
6466 | # we can't tell. |
---|
6467 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
---|
6468 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
---|
6469 | = "XX$teststring") >/dev/null 2>&1 && |
---|
6470 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
---|
6471 | lt_cv_sys_max_cmd_len=$new_result && |
---|
6472 | test $i != 17 # 1/2 MB should be enough |
---|
6473 | do |
---|
6474 | i=`expr $i + 1` |
---|
6475 | teststring=$teststring$teststring |
---|
6476 | done |
---|
6477 | teststring= |
---|
6478 | # Add a significant safety factor because C++ compilers can tack on massive |
---|
6479 | # amounts of additional arguments before passing them to the linker. |
---|
6480 | # It appears as though 1/2 is a usable value. |
---|
6481 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
---|
6482 | ;; |
---|
6483 | esac |
---|
6484 | |
---|
6485 | fi |
---|
6486 | |
---|
6487 | if test -n $lt_cv_sys_max_cmd_len ; then |
---|
6488 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
---|
6489 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
---|
6490 | else |
---|
6491 | echo "$as_me:$LINENO: result: none" >&5 |
---|
6492 | echo "${ECHO_T}none" >&6 |
---|
6493 | fi |
---|
6494 | |
---|
6495 | |
---|
6496 | |
---|
6497 | |
---|
6498 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
---|
6499 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
---|
6500 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
---|
6501 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
---|
6502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6503 | else |
---|
6504 | |
---|
6505 | # These are sane defaults that work on at least a few old systems. |
---|
6506 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
---|
6507 | |
---|
6508 | # Character class describing NM global symbol codes. |
---|
6509 | symcode='[BCDEGRST]' |
---|
6510 | |
---|
6511 | # Regexp to match symbols that can be accessed directly from C. |
---|
6512 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
---|
6513 | |
---|
6514 | # Transform an extracted symbol line into a proper C declaration |
---|
6515 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
---|
6516 | |
---|
6517 | # Transform an extracted symbol line into symbol name and symbol address |
---|
6518 | 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'" |
---|
6519 | |
---|
6520 | # Define system-specific variables. |
---|
6521 | case $host_os in |
---|
6522 | aix*) |
---|
6523 | symcode='[BCDT]' |
---|
6524 | ;; |
---|
6525 | cygwin* | mingw* | pw32*) |
---|
6526 | symcode='[ABCDGISTW]' |
---|
6527 | ;; |
---|
6528 | hpux*) # Its linker distinguishes data from code symbols |
---|
6529 | if test "$host_cpu" = ia64; then |
---|
6530 | symcode='[ABCDEGRST]' |
---|
6531 | fi |
---|
6532 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
---|
6533 | 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'" |
---|
6534 | ;; |
---|
6535 | linux*) |
---|
6536 | if test "$host_cpu" = ia64; then |
---|
6537 | symcode='[ABCDGIRSTW]' |
---|
6538 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
---|
6539 | 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'" |
---|
6540 | fi |
---|
6541 | ;; |
---|
6542 | irix* | nonstopux*) |
---|
6543 | symcode='[BCDEGRST]' |
---|
6544 | ;; |
---|
6545 | osf*) |
---|
6546 | symcode='[BCDEGQRST]' |
---|
6547 | ;; |
---|
6548 | solaris*) |
---|
6549 | symcode='[BDRT]' |
---|
6550 | ;; |
---|
6551 | sco3.2v5*) |
---|
6552 | symcode='[DT]' |
---|
6553 | ;; |
---|
6554 | sysv4.2uw2*) |
---|
6555 | symcode='[DT]' |
---|
6556 | ;; |
---|
6557 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
---|
6558 | symcode='[ABDT]' |
---|
6559 | ;; |
---|
6560 | sysv4) |
---|
6561 | symcode='[DFNSTU]' |
---|
6562 | ;; |
---|
6563 | esac |
---|
6564 | |
---|
6565 | # Handle CRLF in mingw tool chain |
---|
6566 | opt_cr= |
---|
6567 | case $build_os in |
---|
6568 | mingw*) |
---|
6569 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
---|
6570 | ;; |
---|
6571 | esac |
---|
6572 | |
---|
6573 | # If we're using GNU nm, then use its standard symbol codes. |
---|
6574 | case `$NM -V 2>&1` in |
---|
6575 | *GNU* | *'with BFD'*) |
---|
6576 | symcode='[ABCDGIRSTW]' ;; |
---|
6577 | esac |
---|
6578 | |
---|
6579 | # Try without a prefix undercore, then with it. |
---|
6580 | for ac_symprfx in "" "_"; do |
---|
6581 | |
---|
6582 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
---|
6583 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
---|
6584 | |
---|
6585 | # Write the raw and C identifiers. |
---|
6586 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
---|
6587 | |
---|
6588 | # Check to see that the pipe works correctly. |
---|
6589 | pipe_works=no |
---|
6590 | |
---|
6591 | rm -f conftest* |
---|
6592 | cat > conftest.$ac_ext <<EOF |
---|
6593 | #ifdef __cplusplus |
---|
6594 | extern "C" { |
---|
6595 | #endif |
---|
6596 | char nm_test_var; |
---|
6597 | void nm_test_func(){} |
---|
6598 | #ifdef __cplusplus |
---|
6599 | } |
---|
6600 | #endif |
---|
6601 | int main(){nm_test_var='a';nm_test_func();return(0);} |
---|
6602 | EOF |
---|
6603 | |
---|
6604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6605 | (eval $ac_compile) 2>&5 |
---|
6606 | ac_status=$? |
---|
6607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6608 | (exit $ac_status); }; then |
---|
6609 | # Now try to grab the symbols. |
---|
6610 | nlist=conftest.nm |
---|
6611 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
---|
6612 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
---|
6613 | ac_status=$? |
---|
6614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6615 | (exit $ac_status); } && test -s "$nlist"; then |
---|
6616 | # Try sorting and uniquifying the output. |
---|
6617 | if sort "$nlist" | uniq > "$nlist"T; then |
---|
6618 | mv -f "$nlist"T "$nlist" |
---|
6619 | else |
---|
6620 | rm -f "$nlist"T |
---|
6621 | fi |
---|
6622 | |
---|
6623 | # Make sure that we snagged all the symbols we need. |
---|
6624 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
---|
6625 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
---|
6626 | cat <<EOF > conftest.$ac_ext |
---|
6627 | #ifdef __cplusplus |
---|
6628 | extern "C" { |
---|
6629 | #endif |
---|
6630 | |
---|
6631 | EOF |
---|
6632 | # Now generate the symbol file. |
---|
6633 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
---|
6634 | |
---|
6635 | cat <<EOF >> conftest.$ac_ext |
---|
6636 | #if defined (__STDC__) && __STDC__ |
---|
6637 | # define lt_ptr_t void * |
---|
6638 | #else |
---|
6639 | # define lt_ptr_t char * |
---|
6640 | # define const |
---|
6641 | #endif |
---|
6642 | |
---|
6643 | /* The mapping between symbol names and symbols. */ |
---|
6644 | const struct { |
---|
6645 | const char *name; |
---|
6646 | lt_ptr_t address; |
---|
6647 | } |
---|
6648 | lt_preloaded_symbols[] = |
---|
6649 | { |
---|
6650 | EOF |
---|
6651 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
---|
6652 | cat <<\EOF >> conftest.$ac_ext |
---|
6653 | {0, (lt_ptr_t) 0} |
---|
6654 | }; |
---|
6655 | |
---|
6656 | #ifdef __cplusplus |
---|
6657 | } |
---|
6658 | #endif |
---|
6659 | EOF |
---|
6660 | # Now try linking the two files. |
---|
6661 | mv conftest.$ac_objext conftstm.$ac_objext |
---|
6662 | lt_save_LIBS="$LIBS" |
---|
6663 | lt_save_CFLAGS="$CFLAGS" |
---|
6664 | LIBS="conftstm.$ac_objext" |
---|
6665 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
---|
6666 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6667 | (eval $ac_link) 2>&5 |
---|
6668 | ac_status=$? |
---|
6669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6670 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
---|
6671 | pipe_works=yes |
---|
6672 | fi |
---|
6673 | LIBS="$lt_save_LIBS" |
---|
6674 | CFLAGS="$lt_save_CFLAGS" |
---|
6675 | else |
---|
6676 | echo "cannot find nm_test_func in $nlist" >&5 |
---|
6677 | fi |
---|
6678 | else |
---|
6679 | echo "cannot find nm_test_var in $nlist" >&5 |
---|
6680 | fi |
---|
6681 | else |
---|
6682 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
---|
6683 | fi |
---|
6684 | else |
---|
6685 | echo "$progname: failed program was:" >&5 |
---|
6686 | cat conftest.$ac_ext >&5 |
---|
6687 | fi |
---|
6688 | rm -f conftest* conftst* |
---|
6689 | |
---|
6690 | # Do not use the global_symbol_pipe unless it works. |
---|
6691 | if test "$pipe_works" = yes; then |
---|
6692 | break |
---|
6693 | else |
---|
6694 | lt_cv_sys_global_symbol_pipe= |
---|
6695 | fi |
---|
6696 | done |
---|
6697 | |
---|
6698 | fi |
---|
6699 | |
---|
6700 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
---|
6701 | lt_cv_sys_global_symbol_to_cdecl= |
---|
6702 | fi |
---|
6703 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
---|
6704 | echo "$as_me:$LINENO: result: failed" >&5 |
---|
6705 | echo "${ECHO_T}failed" >&6 |
---|
6706 | else |
---|
6707 | echo "$as_me:$LINENO: result: ok" >&5 |
---|
6708 | echo "${ECHO_T}ok" >&6 |
---|
6709 | fi |
---|
6710 | |
---|
6711 | echo "$as_me:$LINENO: checking for objdir" >&5 |
---|
6712 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
---|
6713 | if test "${lt_cv_objdir+set}" = set; then |
---|
6714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6715 | else |
---|
6716 | rm -f .libs 2>/dev/null |
---|
6717 | mkdir .libs 2>/dev/null |
---|
6718 | if test -d .libs; then |
---|
6719 | lt_cv_objdir=.libs |
---|
6720 | else |
---|
6721 | # MS-DOS does not allow filenames that begin with a dot. |
---|
6722 | lt_cv_objdir=_libs |
---|
6723 | fi |
---|
6724 | rmdir .libs 2>/dev/null |
---|
6725 | fi |
---|
6726 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
---|
6727 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
---|
6728 | objdir=$lt_cv_objdir |
---|
6729 | |
---|
6730 | |
---|
6731 | |
---|
6732 | |
---|
6733 | |
---|
6734 | case $host_os in |
---|
6735 | aix3*) |
---|
6736 | # AIX sometimes has problems with the GCC collect2 program. For some |
---|
6737 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
---|
6738 | # vanish in a puff of smoke. |
---|
6739 | if test "X${COLLECT_NAMES+set}" != Xset; then |
---|
6740 | COLLECT_NAMES= |
---|
6741 | export COLLECT_NAMES |
---|
6742 | fi |
---|
6743 | ;; |
---|
6744 | esac |
---|
6745 | |
---|
6746 | # Sed substitution that helps us do robust quoting. It backslashifies |
---|
6747 | # metacharacters that are still active within double-quoted strings. |
---|
6748 | Xsed='sed -e 1s/^X//' |
---|
6749 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
---|
6750 | |
---|
6751 | # Same as above, but do not quote variable references. |
---|
6752 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
---|
6753 | |
---|
6754 | # Sed substitution to delay expansion of an escaped shell variable in a |
---|
6755 | # double_quote_subst'ed string. |
---|
6756 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
---|
6757 | |
---|
6758 | # Sed substitution to avoid accidental globbing in evaled expressions |
---|
6759 | no_glob_subst='s/\*/\\\*/g' |
---|
6760 | |
---|
6761 | # Constants: |
---|
6762 | rm="rm -f" |
---|
6763 | |
---|
6764 | # Global variables: |
---|
6765 | default_ofile=libtool |
---|
6766 | can_build_shared=yes |
---|
6767 | |
---|
6768 | # All known linkers require a `.a' archive for static linking (except MSVC, |
---|
6769 | # which needs '.lib'). |
---|
6770 | libext=a |
---|
6771 | ltmain="$ac_aux_dir/ltmain.sh" |
---|
6772 | ofile="$default_ofile" |
---|
6773 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
---|
6774 | |
---|
6775 | if test -n "$ac_tool_prefix"; then |
---|
6776 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
---|
6777 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
---|
6778 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6779 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
6780 | if test "${ac_cv_prog_AR+set}" = set; then |
---|
6781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6782 | else |
---|
6783 | if test -n "$AR"; then |
---|
6784 | ac_cv_prog_AR="$AR" # Let the user override the test. |
---|
6785 | else |
---|
6786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6787 | for as_dir in $PATH |
---|
6788 | do |
---|
6789 | IFS=$as_save_IFS |
---|
6790 | test -z "$as_dir" && as_dir=. |
---|
6791 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6792 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6793 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
---|
6794 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6795 | break 2 |
---|
6796 | fi |
---|
6797 | done |
---|
6798 | done |
---|
6799 | |
---|
6800 | fi |
---|
6801 | fi |
---|
6802 | AR=$ac_cv_prog_AR |
---|
6803 | if test -n "$AR"; then |
---|
6804 | echo "$as_me:$LINENO: result: $AR" >&5 |
---|
6805 | echo "${ECHO_T}$AR" >&6 |
---|
6806 | else |
---|
6807 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6808 | echo "${ECHO_T}no" >&6 |
---|
6809 | fi |
---|
6810 | |
---|
6811 | fi |
---|
6812 | if test -z "$ac_cv_prog_AR"; then |
---|
6813 | ac_ct_AR=$AR |
---|
6814 | # Extract the first word of "ar", so it can be a program name with args. |
---|
6815 | set dummy ar; ac_word=$2 |
---|
6816 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6817 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
6818 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
---|
6819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6820 | else |
---|
6821 | if test -n "$ac_ct_AR"; then |
---|
6822 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
---|
6823 | else |
---|
6824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6825 | for as_dir in $PATH |
---|
6826 | do |
---|
6827 | IFS=$as_save_IFS |
---|
6828 | test -z "$as_dir" && as_dir=. |
---|
6829 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6830 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6831 | ac_cv_prog_ac_ct_AR="ar" |
---|
6832 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6833 | break 2 |
---|
6834 | fi |
---|
6835 | done |
---|
6836 | done |
---|
6837 | |
---|
6838 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
---|
6839 | fi |
---|
6840 | fi |
---|
6841 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
---|
6842 | if test -n "$ac_ct_AR"; then |
---|
6843 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
---|
6844 | echo "${ECHO_T}$ac_ct_AR" >&6 |
---|
6845 | else |
---|
6846 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6847 | echo "${ECHO_T}no" >&6 |
---|
6848 | fi |
---|
6849 | |
---|
6850 | AR=$ac_ct_AR |
---|
6851 | else |
---|
6852 | AR="$ac_cv_prog_AR" |
---|
6853 | fi |
---|
6854 | |
---|
6855 | if test -n "$ac_tool_prefix"; then |
---|
6856 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
6857 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
6858 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6859 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
6860 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
6861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6862 | else |
---|
6863 | if test -n "$RANLIB"; then |
---|
6864 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
6865 | else |
---|
6866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6867 | for as_dir in $PATH |
---|
6868 | do |
---|
6869 | IFS=$as_save_IFS |
---|
6870 | test -z "$as_dir" && as_dir=. |
---|
6871 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6872 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6873 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
6874 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6875 | break 2 |
---|
6876 | fi |
---|
6877 | done |
---|
6878 | done |
---|
6879 | |
---|
6880 | fi |
---|
6881 | fi |
---|
6882 | RANLIB=$ac_cv_prog_RANLIB |
---|
6883 | if test -n "$RANLIB"; then |
---|
6884 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
6885 | echo "${ECHO_T}$RANLIB" >&6 |
---|
6886 | else |
---|
6887 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6888 | echo "${ECHO_T}no" >&6 |
---|
6889 | fi |
---|
6890 | |
---|
6891 | fi |
---|
6892 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
6893 | ac_ct_RANLIB=$RANLIB |
---|
6894 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
6895 | set dummy ranlib; ac_word=$2 |
---|
6896 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6897 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
6898 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
6899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6900 | else |
---|
6901 | if test -n "$ac_ct_RANLIB"; then |
---|
6902 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
6903 | else |
---|
6904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6905 | for as_dir in $PATH |
---|
6906 | do |
---|
6907 | IFS=$as_save_IFS |
---|
6908 | test -z "$as_dir" && as_dir=. |
---|
6909 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6910 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6911 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
6912 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6913 | break 2 |
---|
6914 | fi |
---|
6915 | done |
---|
6916 | done |
---|
6917 | |
---|
6918 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
---|
6919 | fi |
---|
6920 | fi |
---|
6921 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
6922 | if test -n "$ac_ct_RANLIB"; then |
---|
6923 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
6924 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
---|
6925 | else |
---|
6926 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6927 | echo "${ECHO_T}no" >&6 |
---|
6928 | fi |
---|
6929 | |
---|
6930 | RANLIB=$ac_ct_RANLIB |
---|
6931 | else |
---|
6932 | RANLIB="$ac_cv_prog_RANLIB" |
---|
6933 | fi |
---|
6934 | |
---|
6935 | if test -n "$ac_tool_prefix"; then |
---|
6936 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
6937 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
6938 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6939 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
6940 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
6941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6942 | else |
---|
6943 | if test -n "$STRIP"; then |
---|
6944 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
6945 | else |
---|
6946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6947 | for as_dir in $PATH |
---|
6948 | do |
---|
6949 | IFS=$as_save_IFS |
---|
6950 | test -z "$as_dir" && as_dir=. |
---|
6951 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6952 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6953 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
6954 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6955 | break 2 |
---|
6956 | fi |
---|
6957 | done |
---|
6958 | done |
---|
6959 | |
---|
6960 | fi |
---|
6961 | fi |
---|
6962 | STRIP=$ac_cv_prog_STRIP |
---|
6963 | if test -n "$STRIP"; then |
---|
6964 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
6965 | echo "${ECHO_T}$STRIP" >&6 |
---|
6966 | else |
---|
6967 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6968 | echo "${ECHO_T}no" >&6 |
---|
6969 | fi |
---|
6970 | |
---|
6971 | fi |
---|
6972 | if test -z "$ac_cv_prog_STRIP"; then |
---|
6973 | ac_ct_STRIP=$STRIP |
---|
6974 | # Extract the first word of "strip", so it can be a program name with args. |
---|
6975 | set dummy strip; ac_word=$2 |
---|
6976 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6977 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
6978 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
6979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6980 | else |
---|
6981 | if test -n "$ac_ct_STRIP"; then |
---|
6982 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
6983 | else |
---|
6984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6985 | for as_dir in $PATH |
---|
6986 | do |
---|
6987 | IFS=$as_save_IFS |
---|
6988 | test -z "$as_dir" && as_dir=. |
---|
6989 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6990 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
6991 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
6992 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6993 | break 2 |
---|
6994 | fi |
---|
6995 | done |
---|
6996 | done |
---|
6997 | |
---|
6998 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
6999 | fi |
---|
7000 | fi |
---|
7001 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
7002 | if test -n "$ac_ct_STRIP"; then |
---|
7003 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
7004 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
7005 | else |
---|
7006 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7007 | echo "${ECHO_T}no" >&6 |
---|
7008 | fi |
---|
7009 | |
---|
7010 | STRIP=$ac_ct_STRIP |
---|
7011 | else |
---|
7012 | STRIP="$ac_cv_prog_STRIP" |
---|
7013 | fi |
---|
7014 | |
---|
7015 | |
---|
7016 | old_CC="$CC" |
---|
7017 | old_CFLAGS="$CFLAGS" |
---|
7018 | |
---|
7019 | # Set sane defaults for various variables |
---|
7020 | test -z "$AR" && AR=ar |
---|
7021 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
---|
7022 | test -z "$AS" && AS=as |
---|
7023 | test -z "$CC" && CC=cc |
---|
7024 | test -z "$LTCC" && LTCC=$CC |
---|
7025 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
---|
7026 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
---|
7027 | test -z "$LD" && LD=ld |
---|
7028 | test -z "$LN_S" && LN_S="ln -s" |
---|
7029 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
---|
7030 | test -z "$NM" && NM=nm |
---|
7031 | test -z "$SED" && SED=sed |
---|
7032 | test -z "$OBJDUMP" && OBJDUMP=objdump |
---|
7033 | test -z "$RANLIB" && RANLIB=: |
---|
7034 | test -z "$STRIP" && STRIP=: |
---|
7035 | test -z "$ac_objext" && ac_objext=o |
---|
7036 | |
---|
7037 | # Determine commands to create old-style static archives. |
---|
7038 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
---|
7039 | old_postinstall_cmds='chmod 644 $oldlib' |
---|
7040 | old_postuninstall_cmds= |
---|
7041 | |
---|
7042 | if test -n "$RANLIB"; then |
---|
7043 | case $host_os in |
---|
7044 | openbsd*) |
---|
7045 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
---|
7046 | ;; |
---|
7047 | *) |
---|
7048 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
---|
7049 | ;; |
---|
7050 | esac |
---|
7051 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
---|
7052 | fi |
---|
7053 | |
---|
7054 | for cc_temp in $compiler""; do |
---|
7055 | case $cc_temp in |
---|
7056 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
7057 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
7058 | \-*) ;; |
---|
7059 | *) break;; |
---|
7060 | esac |
---|
7061 | done |
---|
7062 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
7063 | |
---|
7064 | |
---|
7065 | # Only perform the check for file, if the check method requires it |
---|
7066 | case $deplibs_check_method in |
---|
7067 | file_magic*) |
---|
7068 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
---|
7069 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
---|
7070 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
---|
7071 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
---|
7072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7073 | else |
---|
7074 | case $MAGIC_CMD in |
---|
7075 | [\\/*] | ?:[\\/]*) |
---|
7076 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
7077 | ;; |
---|
7078 | *) |
---|
7079 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
---|
7080 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
7081 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
7082 | for ac_dir in $ac_dummy; do |
---|
7083 | IFS="$lt_save_ifs" |
---|
7084 | test -z "$ac_dir" && ac_dir=. |
---|
7085 | if test -f $ac_dir/${ac_tool_prefix}file; then |
---|
7086 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
---|
7087 | if test -n "$file_magic_test_file"; then |
---|
7088 | case $deplibs_check_method in |
---|
7089 | "file_magic "*) |
---|
7090 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
---|
7091 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
7092 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
7093 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
7094 | : |
---|
7095 | else |
---|
7096 | cat <<EOF 1>&2 |
---|
7097 | |
---|
7098 | *** Warning: the command libtool uses to detect shared libraries, |
---|
7099 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
7100 | *** The result is that libtool may fail to recognize shared libraries |
---|
7101 | *** as such. This will affect the creation of libtool libraries that |
---|
7102 | *** depend on shared libraries, but programs linked with such libtool |
---|
7103 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
7104 | *** may want to report the problem to your system manager and/or to |
---|
7105 | *** bug-libtool@gnu.org |
---|
7106 | |
---|
7107 | EOF |
---|
7108 | fi ;; |
---|
7109 | esac |
---|
7110 | fi |
---|
7111 | break |
---|
7112 | fi |
---|
7113 | done |
---|
7114 | IFS="$lt_save_ifs" |
---|
7115 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
---|
7116 | ;; |
---|
7117 | esac |
---|
7118 | fi |
---|
7119 | |
---|
7120 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
7121 | if test -n "$MAGIC_CMD"; then |
---|
7122 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
---|
7123 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
---|
7124 | else |
---|
7125 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7126 | echo "${ECHO_T}no" >&6 |
---|
7127 | fi |
---|
7128 | |
---|
7129 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
---|
7130 | if test -n "$ac_tool_prefix"; then |
---|
7131 | echo "$as_me:$LINENO: checking for file" >&5 |
---|
7132 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
---|
7133 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
---|
7134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7135 | else |
---|
7136 | case $MAGIC_CMD in |
---|
7137 | [\\/*] | ?:[\\/]*) |
---|
7138 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
7139 | ;; |
---|
7140 | *) |
---|
7141 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
---|
7142 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
7143 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
7144 | for ac_dir in $ac_dummy; do |
---|
7145 | IFS="$lt_save_ifs" |
---|
7146 | test -z "$ac_dir" && ac_dir=. |
---|
7147 | if test -f $ac_dir/file; then |
---|
7148 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
---|
7149 | if test -n "$file_magic_test_file"; then |
---|
7150 | case $deplibs_check_method in |
---|
7151 | "file_magic "*) |
---|
7152 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
---|
7153 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
7154 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
7155 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
7156 | : |
---|
7157 | else |
---|
7158 | cat <<EOF 1>&2 |
---|
7159 | |
---|
7160 | *** Warning: the command libtool uses to detect shared libraries, |
---|
7161 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
7162 | *** The result is that libtool may fail to recognize shared libraries |
---|
7163 | *** as such. This will affect the creation of libtool libraries that |
---|
7164 | *** depend on shared libraries, but programs linked with such libtool |
---|
7165 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
7166 | *** may want to report the problem to your system manager and/or to |
---|
7167 | *** bug-libtool@gnu.org |
---|
7168 | |
---|
7169 | EOF |
---|
7170 | fi ;; |
---|
7171 | esac |
---|
7172 | fi |
---|
7173 | break |
---|
7174 | fi |
---|
7175 | done |
---|
7176 | IFS="$lt_save_ifs" |
---|
7177 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
---|
7178 | ;; |
---|
7179 | esac |
---|
7180 | fi |
---|
7181 | |
---|
7182 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
7183 | if test -n "$MAGIC_CMD"; then |
---|
7184 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
---|
7185 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
---|
7186 | else |
---|
7187 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7188 | echo "${ECHO_T}no" >&6 |
---|
7189 | fi |
---|
7190 | |
---|
7191 | else |
---|
7192 | MAGIC_CMD=: |
---|
7193 | fi |
---|
7194 | fi |
---|
7195 | |
---|
7196 | fi |
---|
7197 | ;; |
---|
7198 | esac |
---|
7199 | |
---|
7200 | enable_dlopen=no |
---|
7201 | enable_win32_dll=no |
---|
7202 | |
---|
7203 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
---|
7204 | if test "${enable_libtool_lock+set}" = set; then |
---|
7205 | enableval="$enable_libtool_lock" |
---|
7206 | |
---|
7207 | fi; |
---|
7208 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
7209 | |
---|
7210 | |
---|
7211 | # Check whether --with-pic or --without-pic was given. |
---|
7212 | if test "${with_pic+set}" = set; then |
---|
7213 | withval="$with_pic" |
---|
7214 | pic_mode="$withval" |
---|
7215 | else |
---|
7216 | pic_mode=default |
---|
7217 | fi; |
---|
7218 | test -z "$pic_mode" && pic_mode=default |
---|
7219 | |
---|
7220 | # Use C for the default configuration in the libtool script |
---|
7221 | tagname= |
---|
7222 | lt_save_CC="$CC" |
---|
7223 | ac_ext=c |
---|
7224 | ac_cpp='$CPP $CPPFLAGS' |
---|
7225 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7226 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7227 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
7228 | |
---|
7229 | |
---|
7230 | # Source file extension for C test sources. |
---|
7231 | ac_ext=c |
---|
7232 | |
---|
7233 | # Object file extension for compiled C test sources. |
---|
7234 | objext=o |
---|
7235 | objext=$objext |
---|
7236 | |
---|
7237 | # Code to be used in simple compile tests |
---|
7238 | lt_simple_compile_test_code="int some_variable = 0;\n" |
---|
7239 | |
---|
7240 | # Code to be used in simple link tests |
---|
7241 | lt_simple_link_test_code='int main(){return(0);}\n' |
---|
7242 | |
---|
7243 | |
---|
7244 | # If no C compiler was specified, use CC. |
---|
7245 | LTCC=${LTCC-"$CC"} |
---|
7246 | |
---|
7247 | # If no C compiler flags were specified, use CFLAGS. |
---|
7248 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
7249 | |
---|
7250 | # Allow CC to be a program name with arguments. |
---|
7251 | compiler=$CC |
---|
7252 | |
---|
7253 | |
---|
7254 | # save warnings/boilerplate of simple test code |
---|
7255 | ac_outfile=conftest.$ac_objext |
---|
7256 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
---|
7257 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
7258 | _lt_compiler_boilerplate=`cat conftest.err` |
---|
7259 | $rm conftest* |
---|
7260 | |
---|
7261 | ac_outfile=conftest.$ac_objext |
---|
7262 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
---|
7263 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
7264 | _lt_linker_boilerplate=`cat conftest.err` |
---|
7265 | $rm conftest* |
---|
7266 | |
---|
7267 | |
---|
7268 | ## CAVEAT EMPTOR: |
---|
7269 | ## There is no encapsulation within the following macros, do not change |
---|
7270 | ## the running order or otherwise move them around unless you know exactly |
---|
7271 | ## what you are doing... |
---|
7272 | |
---|
7273 | lt_prog_compiler_no_builtin_flag= |
---|
7274 | |
---|
7275 | if test "$GCC" = yes; then |
---|
7276 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
---|
7277 | |
---|
7278 | |
---|
7279 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
---|
7280 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
---|
7281 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
---|
7282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7283 | else |
---|
7284 | lt_cv_prog_compiler_rtti_exceptions=no |
---|
7285 | ac_outfile=conftest.$ac_objext |
---|
7286 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
7287 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
---|
7288 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
7289 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
7290 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
7291 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
7292 | # The option is referenced via a variable to avoid confusing sed. |
---|
7293 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
7294 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
7295 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
7296 | -e 's:$: $lt_compiler_flag:'` |
---|
7297 | (eval echo "\"\$as_me:7297: $lt_compile\"" >&5) |
---|
7298 | (eval "$lt_compile" 2>conftest.err) |
---|
7299 | ac_status=$? |
---|
7300 | cat conftest.err >&5 |
---|
7301 | echo "$as_me:7301: \$? = $ac_status" >&5 |
---|
7302 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
7303 | # The compiler can only warn and ignore the option if not recognized |
---|
7304 | # So say no if there are warnings other than the usual output. |
---|
7305 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
---|
7306 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
7307 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
7308 | lt_cv_prog_compiler_rtti_exceptions=yes |
---|
7309 | fi |
---|
7310 | fi |
---|
7311 | $rm conftest* |
---|
7312 | |
---|
7313 | fi |
---|
7314 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
---|
7315 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
---|
7316 | |
---|
7317 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
---|
7318 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
---|
7319 | else |
---|
7320 | : |
---|
7321 | fi |
---|
7322 | |
---|
7323 | fi |
---|
7324 | |
---|
7325 | lt_prog_compiler_wl= |
---|
7326 | lt_prog_compiler_pic= |
---|
7327 | lt_prog_compiler_static= |
---|
7328 | |
---|
7329 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
---|
7330 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
---|
7331 | |
---|
7332 | if test "$GCC" = yes; then |
---|
7333 | lt_prog_compiler_wl='-Wl,' |
---|
7334 | lt_prog_compiler_static='-static' |
---|
7335 | |
---|
7336 | case $host_os in |
---|
7337 | aix*) |
---|
7338 | # All AIX code is PIC. |
---|
7339 | if test "$host_cpu" = ia64; then |
---|
7340 | # AIX 5 now supports IA64 processor |
---|
7341 | lt_prog_compiler_static='-Bstatic' |
---|
7342 | fi |
---|
7343 | ;; |
---|
7344 | |
---|
7345 | amigaos*) |
---|
7346 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
7347 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
7348 | # like `-m68040'. |
---|
7349 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
---|
7350 | ;; |
---|
7351 | |
---|
7352 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
7353 | # PIC is the default for these OSes. |
---|
7354 | ;; |
---|
7355 | |
---|
7356 | mingw* | pw32* | os2*) |
---|
7357 | # This hack is so that the source file can tell whether it is being |
---|
7358 | # built for inclusion in a dll (and should export symbols for example). |
---|
7359 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
7360 | ;; |
---|
7361 | |
---|
7362 | darwin* | rhapsody*) |
---|
7363 | # PIC is the default on this platform |
---|
7364 | # Common symbols not allowed in MH_DYLIB files |
---|
7365 | lt_prog_compiler_pic='-fno-common' |
---|
7366 | ;; |
---|
7367 | |
---|
7368 | interix3*) |
---|
7369 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
---|
7370 | # Instead, we relocate shared libraries at runtime. |
---|
7371 | ;; |
---|
7372 | |
---|
7373 | msdosdjgpp*) |
---|
7374 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
---|
7375 | # on systems that don't support them. |
---|
7376 | lt_prog_compiler_can_build_shared=no |
---|
7377 | enable_shared=no |
---|
7378 | ;; |
---|
7379 | |
---|
7380 | sysv4*MP*) |
---|
7381 | if test -d /usr/nec; then |
---|
7382 | lt_prog_compiler_pic=-Kconform_pic |
---|
7383 | fi |
---|
7384 | ;; |
---|
7385 | |
---|
7386 | hpux*) |
---|
7387 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
7388 | # not for PA HP-UX. |
---|
7389 | case $host_cpu in |
---|
7390 | hppa*64*|ia64*) |
---|
7391 | # +Z the default |
---|
7392 | ;; |
---|
7393 | *) |
---|
7394 | lt_prog_compiler_pic='-fPIC' |
---|
7395 | ;; |
---|
7396 | esac |
---|
7397 | ;; |
---|
7398 | |
---|
7399 | *) |
---|
7400 | lt_prog_compiler_pic='-fPIC' |
---|
7401 | ;; |
---|
7402 | esac |
---|
7403 | else |
---|
7404 | # PORTME Check for flag to pass linker flags through the system compiler. |
---|
7405 | case $host_os in |
---|
7406 | aix*) |
---|
7407 | lt_prog_compiler_wl='-Wl,' |
---|
7408 | if test "$host_cpu" = ia64; then |
---|
7409 | # AIX 5 now supports IA64 processor |
---|
7410 | lt_prog_compiler_static='-Bstatic' |
---|
7411 | else |
---|
7412 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
---|
7413 | fi |
---|
7414 | ;; |
---|
7415 | darwin*) |
---|
7416 | # PIC is the default on this platform |
---|
7417 | # Common symbols not allowed in MH_DYLIB files |
---|
7418 | case $cc_basename in |
---|
7419 | xlc*) |
---|
7420 | lt_prog_compiler_pic='-qnocommon' |
---|
7421 | lt_prog_compiler_wl='-Wl,' |
---|
7422 | ;; |
---|
7423 | esac |
---|
7424 | ;; |
---|
7425 | |
---|
7426 | mingw* | pw32* | os2*) |
---|
7427 | # This hack is so that the source file can tell whether it is being |
---|
7428 | # built for inclusion in a dll (and should export symbols for example). |
---|
7429 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
7430 | ;; |
---|
7431 | |
---|
7432 | hpux9* | hpux10* | hpux11*) |
---|
7433 | lt_prog_compiler_wl='-Wl,' |
---|
7434 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
7435 | # not for PA HP-UX. |
---|
7436 | case $host_cpu in |
---|
7437 | hppa*64*|ia64*) |
---|
7438 | # +Z the default |
---|
7439 | ;; |
---|
7440 | *) |
---|
7441 | lt_prog_compiler_pic='+Z' |
---|
7442 | ;; |
---|
7443 | esac |
---|
7444 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
---|
7445 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
---|
7446 | ;; |
---|
7447 | |
---|
7448 | irix5* | irix6* | nonstopux*) |
---|
7449 | lt_prog_compiler_wl='-Wl,' |
---|
7450 | # PIC (with -KPIC) is the default. |
---|
7451 | lt_prog_compiler_static='-non_shared' |
---|
7452 | ;; |
---|
7453 | |
---|
7454 | newsos6) |
---|
7455 | lt_prog_compiler_pic='-KPIC' |
---|
7456 | lt_prog_compiler_static='-Bstatic' |
---|
7457 | ;; |
---|
7458 | |
---|
7459 | linux*) |
---|
7460 | case $cc_basename in |
---|
7461 | icc* | ecc*) |
---|
7462 | lt_prog_compiler_wl='-Wl,' |
---|
7463 | lt_prog_compiler_pic='-KPIC' |
---|
7464 | lt_prog_compiler_static='-static' |
---|
7465 | ;; |
---|
7466 | pgcc* | pgf77* | pgf90* | pgf95*) |
---|
7467 | # Portland Group compilers (*not* the Pentium gcc compiler, |
---|
7468 | # which looks to be a dead project) |
---|
7469 | lt_prog_compiler_wl='-Wl,' |
---|
7470 | lt_prog_compiler_pic='-fpic' |
---|
7471 | lt_prog_compiler_static='-Bstatic' |
---|
7472 | ;; |
---|
7473 | ccc*) |
---|
7474 | lt_prog_compiler_wl='-Wl,' |
---|
7475 | # All Alpha code is PIC. |
---|
7476 | lt_prog_compiler_static='-non_shared' |
---|
7477 | ;; |
---|
7478 | esac |
---|
7479 | ;; |
---|
7480 | |
---|
7481 | osf3* | osf4* | osf5*) |
---|
7482 | lt_prog_compiler_wl='-Wl,' |
---|
7483 | # All OSF/1 code is PIC. |
---|
7484 | lt_prog_compiler_static='-non_shared' |
---|
7485 | ;; |
---|
7486 | |
---|
7487 | solaris*) |
---|
7488 | lt_prog_compiler_pic='-KPIC' |
---|
7489 | lt_prog_compiler_static='-Bstatic' |
---|
7490 | case $cc_basename in |
---|
7491 | f77* | f90* | f95*) |
---|
7492 | lt_prog_compiler_wl='-Qoption ld ';; |
---|
7493 | *) |
---|
7494 | lt_prog_compiler_wl='-Wl,';; |
---|
7495 | esac |
---|
7496 | ;; |
---|
7497 | |
---|
7498 | sunos4*) |
---|
7499 | lt_prog_compiler_wl='-Qoption ld ' |
---|
7500 | lt_prog_compiler_pic='-PIC' |
---|
7501 | lt_prog_compiler_static='-Bstatic' |
---|
7502 | ;; |
---|
7503 | |
---|
7504 | sysv4 | sysv4.2uw2* | sysv4.3*) |
---|
7505 | lt_prog_compiler_wl='-Wl,' |
---|
7506 | lt_prog_compiler_pic='-KPIC' |
---|
7507 | lt_prog_compiler_static='-Bstatic' |
---|
7508 | ;; |
---|
7509 | |
---|
7510 | sysv4*MP*) |
---|
7511 | if test -d /usr/nec ;then |
---|
7512 | lt_prog_compiler_pic='-Kconform_pic' |
---|
7513 | lt_prog_compiler_static='-Bstatic' |
---|
7514 | fi |
---|
7515 | ;; |
---|
7516 | |
---|
7517 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
---|
7518 | lt_prog_compiler_wl='-Wl,' |
---|
7519 | lt_prog_compiler_pic='-KPIC' |
---|
7520 | lt_prog_compiler_static='-Bstatic' |
---|
7521 | ;; |
---|
7522 | |
---|
7523 | unicos*) |
---|
7524 | lt_prog_compiler_wl='-Wl,' |
---|
7525 | lt_prog_compiler_can_build_shared=no |
---|
7526 | ;; |
---|
7527 | |
---|
7528 | uts4*) |
---|
7529 | lt_prog_compiler_pic='-pic' |
---|
7530 | lt_prog_compiler_static='-Bstatic' |
---|
7531 | ;; |
---|
7532 | |
---|
7533 | *) |
---|
7534 | lt_prog_compiler_can_build_shared=no |
---|
7535 | ;; |
---|
7536 | esac |
---|
7537 | fi |
---|
7538 | |
---|
7539 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
---|
7540 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
---|
7541 | |
---|
7542 | # |
---|
7543 | # Check to make sure the PIC flag actually works. |
---|
7544 | # |
---|
7545 | if test -n "$lt_prog_compiler_pic"; then |
---|
7546 | |
---|
7547 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
---|
7548 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
---|
7549 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
---|
7550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7551 | else |
---|
7552 | lt_prog_compiler_pic_works=no |
---|
7553 | ac_outfile=conftest.$ac_objext |
---|
7554 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
7555 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
---|
7556 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
7557 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
7558 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
7559 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
7560 | # The option is referenced via a variable to avoid confusing sed. |
---|
7561 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
7562 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
7563 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
7564 | -e 's:$: $lt_compiler_flag:'` |
---|
7565 | (eval echo "\"\$as_me:7565: $lt_compile\"" >&5) |
---|
7566 | (eval "$lt_compile" 2>conftest.err) |
---|
7567 | ac_status=$? |
---|
7568 | cat conftest.err >&5 |
---|
7569 | echo "$as_me:7569: \$? = $ac_status" >&5 |
---|
7570 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
7571 | # The compiler can only warn and ignore the option if not recognized |
---|
7572 | # So say no if there are warnings other than the usual output. |
---|
7573 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
---|
7574 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
7575 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
7576 | lt_prog_compiler_pic_works=yes |
---|
7577 | fi |
---|
7578 | fi |
---|
7579 | $rm conftest* |
---|
7580 | |
---|
7581 | fi |
---|
7582 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
---|
7583 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
---|
7584 | |
---|
7585 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
---|
7586 | case $lt_prog_compiler_pic in |
---|
7587 | "" | " "*) ;; |
---|
7588 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
---|
7589 | esac |
---|
7590 | else |
---|
7591 | lt_prog_compiler_pic= |
---|
7592 | lt_prog_compiler_can_build_shared=no |
---|
7593 | fi |
---|
7594 | |
---|
7595 | fi |
---|
7596 | case $host_os in |
---|
7597 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
7598 | *djgpp*) |
---|
7599 | lt_prog_compiler_pic= |
---|
7600 | ;; |
---|
7601 | *) |
---|
7602 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
---|
7603 | ;; |
---|
7604 | esac |
---|
7605 | |
---|
7606 | # |
---|
7607 | # Check to make sure the static flag actually works. |
---|
7608 | # |
---|
7609 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
---|
7610 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
---|
7611 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
---|
7612 | if test "${lt_prog_compiler_static_works+set}" = set; then |
---|
7613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7614 | else |
---|
7615 | lt_prog_compiler_static_works=no |
---|
7616 | save_LDFLAGS="$LDFLAGS" |
---|
7617 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
---|
7618 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
---|
7619 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
---|
7620 | # The linker can only warn and ignore the option if not recognized |
---|
7621 | # So say no if there are warnings |
---|
7622 | if test -s conftest.err; then |
---|
7623 | # Append any errors to the config.log. |
---|
7624 | cat conftest.err 1>&5 |
---|
7625 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
---|
7626 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
7627 | if diff conftest.exp conftest.er2 >/dev/null; then |
---|
7628 | lt_prog_compiler_static_works=yes |
---|
7629 | fi |
---|
7630 | else |
---|
7631 | lt_prog_compiler_static_works=yes |
---|
7632 | fi |
---|
7633 | fi |
---|
7634 | $rm conftest* |
---|
7635 | LDFLAGS="$save_LDFLAGS" |
---|
7636 | |
---|
7637 | fi |
---|
7638 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
---|
7639 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
---|
7640 | |
---|
7641 | if test x"$lt_prog_compiler_static_works" = xyes; then |
---|
7642 | : |
---|
7643 | else |
---|
7644 | lt_prog_compiler_static= |
---|
7645 | fi |
---|
7646 | |
---|
7647 | |
---|
7648 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
7649 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
---|
7650 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
---|
7651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7652 | else |
---|
7653 | lt_cv_prog_compiler_c_o=no |
---|
7654 | $rm -r conftest 2>/dev/null |
---|
7655 | mkdir conftest |
---|
7656 | cd conftest |
---|
7657 | mkdir out |
---|
7658 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
7659 | |
---|
7660 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
7661 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
7662 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
7663 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
7664 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
7665 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
7666 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
7667 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
7668 | -e 's:$: $lt_compiler_flag:'` |
---|
7669 | (eval echo "\"\$as_me:7669: $lt_compile\"" >&5) |
---|
7670 | (eval "$lt_compile" 2>out/conftest.err) |
---|
7671 | ac_status=$? |
---|
7672 | cat out/conftest.err >&5 |
---|
7673 | echo "$as_me:7673: \$? = $ac_status" >&5 |
---|
7674 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
7675 | then |
---|
7676 | # The compiler can only warn and ignore the option if not recognized |
---|
7677 | # So say no if there are warnings |
---|
7678 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
---|
7679 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
---|
7680 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
---|
7681 | lt_cv_prog_compiler_c_o=yes |
---|
7682 | fi |
---|
7683 | fi |
---|
7684 | chmod u+w . 2>&5 |
---|
7685 | $rm conftest* |
---|
7686 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
7687 | # template instantiation |
---|
7688 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
7689 | $rm out/* && rmdir out |
---|
7690 | cd .. |
---|
7691 | rmdir conftest |
---|
7692 | $rm conftest* |
---|
7693 | |
---|
7694 | fi |
---|
7695 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
---|
7696 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
---|
7697 | |
---|
7698 | |
---|
7699 | hard_links="nottested" |
---|
7700 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
---|
7701 | # do not overwrite the value of need_locks provided by the user |
---|
7702 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
---|
7703 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
---|
7704 | hard_links=yes |
---|
7705 | $rm conftest* |
---|
7706 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
7707 | touch conftest.a |
---|
7708 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
7709 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
7710 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
---|
7711 | echo "${ECHO_T}$hard_links" >&6 |
---|
7712 | if test "$hard_links" = no; then |
---|
7713 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
7714 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
7715 | need_locks=warn |
---|
7716 | fi |
---|
7717 | else |
---|
7718 | need_locks=no |
---|
7719 | fi |
---|
7720 | |
---|
7721 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
7722 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
---|
7723 | |
---|
7724 | runpath_var= |
---|
7725 | allow_undefined_flag= |
---|
7726 | enable_shared_with_static_runtimes=no |
---|
7727 | archive_cmds= |
---|
7728 | archive_expsym_cmds= |
---|
7729 | old_archive_From_new_cmds= |
---|
7730 | old_archive_from_expsyms_cmds= |
---|
7731 | export_dynamic_flag_spec= |
---|
7732 | whole_archive_flag_spec= |
---|
7733 | thread_safe_flag_spec= |
---|
7734 | hardcode_libdir_flag_spec= |
---|
7735 | hardcode_libdir_flag_spec_ld= |
---|
7736 | hardcode_libdir_separator= |
---|
7737 | hardcode_direct=no |
---|
7738 | hardcode_minus_L=no |
---|
7739 | hardcode_shlibpath_var=unsupported |
---|
7740 | link_all_deplibs=unknown |
---|
7741 | hardcode_automatic=no |
---|
7742 | module_cmds= |
---|
7743 | module_expsym_cmds= |
---|
7744 | always_export_symbols=no |
---|
7745 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
7746 | # include_expsyms should be a list of space-separated symbols to be *always* |
---|
7747 | # included in the symbol list |
---|
7748 | include_expsyms= |
---|
7749 | # exclude_expsyms can be an extended regexp of symbols to exclude |
---|
7750 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
---|
7751 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
---|
7752 | # as well as any symbol that contains `d'. |
---|
7753 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
---|
7754 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
---|
7755 | # platforms (ab)use it in PIC code, but their linkers get confused if |
---|
7756 | # the symbol is explicitly referenced. Since portable code cannot |
---|
7757 | # rely on this symbol name, it's probably fine to never include it in |
---|
7758 | # preloaded symbol tables. |
---|
7759 | extract_expsyms_cmds= |
---|
7760 | # Just being paranoid about ensuring that cc_basename is set. |
---|
7761 | for cc_temp in $compiler""; do |
---|
7762 | case $cc_temp in |
---|
7763 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
7764 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
7765 | \-*) ;; |
---|
7766 | *) break;; |
---|
7767 | esac |
---|
7768 | done |
---|
7769 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
7770 | |
---|
7771 | case $host_os in |
---|
7772 | cygwin* | mingw* | pw32*) |
---|
7773 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
---|
7774 | # When not using gcc, we currently assume that we are using |
---|
7775 | # Microsoft Visual C++. |
---|
7776 | if test "$GCC" != yes; then |
---|
7777 | with_gnu_ld=no |
---|
7778 | fi |
---|
7779 | ;; |
---|
7780 | interix*) |
---|
7781 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
---|
7782 | with_gnu_ld=yes |
---|
7783 | ;; |
---|
7784 | openbsd*) |
---|
7785 | with_gnu_ld=no |
---|
7786 | ;; |
---|
7787 | esac |
---|
7788 | |
---|
7789 | ld_shlibs=yes |
---|
7790 | if test "$with_gnu_ld" = yes; then |
---|
7791 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
7792 | wlarc='${wl}' |
---|
7793 | |
---|
7794 | # Set some defaults for GNU ld with shared library support. These |
---|
7795 | # are reset later if shared libraries are not supported. Putting them |
---|
7796 | # here allows them to be overridden if necessary. |
---|
7797 | runpath_var=LD_RUN_PATH |
---|
7798 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
---|
7799 | export_dynamic_flag_spec='${wl}--export-dynamic' |
---|
7800 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
7801 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
---|
7802 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
7803 | else |
---|
7804 | whole_archive_flag_spec= |
---|
7805 | fi |
---|
7806 | supports_anon_versioning=no |
---|
7807 | case `$LD -v 2>/dev/null` in |
---|
7808 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
---|
7809 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
---|
7810 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
---|
7811 | *\ 2.11.*) ;; # other 2.11 versions |
---|
7812 | *) supports_anon_versioning=yes ;; |
---|
7813 | esac |
---|
7814 | |
---|
7815 | # See if GNU ld supports shared libraries. |
---|
7816 | case $host_os in |
---|
7817 | aix3* | aix4* | aix5*) |
---|
7818 | # On AIX/PPC, the GNU linker is very broken |
---|
7819 | if test "$host_cpu" != ia64; then |
---|
7820 | ld_shlibs=no |
---|
7821 | cat <<EOF 1>&2 |
---|
7822 | |
---|
7823 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
---|
7824 | *** to be unable to reliably create shared libraries on AIX. |
---|
7825 | *** Therefore, libtool is disabling shared libraries support. If you |
---|
7826 | *** really care for shared libraries, you may want to modify your PATH |
---|
7827 | *** so that a non-GNU linker is found, and then restart. |
---|
7828 | |
---|
7829 | EOF |
---|
7830 | fi |
---|
7831 | ;; |
---|
7832 | |
---|
7833 | amigaos*) |
---|
7834 | archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
---|
7835 | hardcode_libdir_flag_spec='-L$libdir' |
---|
7836 | hardcode_minus_L=yes |
---|
7837 | |
---|
7838 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
---|
7839 | # that the semantics of dynamic libraries on AmigaOS, at least up |
---|
7840 | # to version 4, is to share data among multiple programs linked |
---|
7841 | # with the same dynamic library. Since this doesn't match the |
---|
7842 | # behavior of shared libraries on other platforms, we can't use |
---|
7843 | # them. |
---|
7844 | ld_shlibs=no |
---|
7845 | ;; |
---|
7846 | |
---|
7847 | beos*) |
---|
7848 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
7849 | allow_undefined_flag=unsupported |
---|
7850 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
7851 | # support --undefined. This deserves some investigation. FIXME |
---|
7852 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
7853 | else |
---|
7854 | ld_shlibs=no |
---|
7855 | fi |
---|
7856 | ;; |
---|
7857 | |
---|
7858 | cygwin* | mingw* | pw32*) |
---|
7859 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
---|
7860 | # as there is no search path for DLLs. |
---|
7861 | hardcode_libdir_flag_spec='-L$libdir' |
---|
7862 | allow_undefined_flag=unsupported |
---|
7863 | always_export_symbols=no |
---|
7864 | enable_shared_with_static_runtimes=yes |
---|
7865 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
---|
7866 | |
---|
7867 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
7868 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
7869 | # If the export-symbols file already is a .def file (1st line |
---|
7870 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
7871 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
7872 | cp $export_symbols $output_objdir/$soname.def; |
---|
7873 | else |
---|
7874 | echo EXPORTS > $output_objdir/$soname.def; |
---|
7875 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
7876 | fi~ |
---|
7877 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
7878 | else |
---|
7879 | ld_shlibs=no |
---|
7880 | fi |
---|
7881 | ;; |
---|
7882 | |
---|
7883 | interix3*) |
---|
7884 | hardcode_direct=no |
---|
7885 | hardcode_shlibpath_var=no |
---|
7886 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
7887 | export_dynamic_flag_spec='${wl}-E' |
---|
7888 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
---|
7889 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
---|
7890 | # default) and relocated if they conflict, which is a slow very memory |
---|
7891 | # consuming and fragmenting process. To avoid this, we pick a random, |
---|
7892 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
---|
7893 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
---|
7894 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
---|
7895 | 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' |
---|
7896 | ;; |
---|
7897 | |
---|
7898 | linux*) |
---|
7899 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
7900 | tmp_addflag= |
---|
7901 | case $cc_basename,$host_cpu in |
---|
7902 | pgcc*) # Portland Group C compiler |
---|
7903 | 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' |
---|
7904 | tmp_addflag=' $pic_flag' |
---|
7905 | ;; |
---|
7906 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
---|
7907 | 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' |
---|
7908 | tmp_addflag=' $pic_flag -Mnomain' ;; |
---|
7909 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
---|
7910 | tmp_addflag=' -i_dynamic' ;; |
---|
7911 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
---|
7912 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
---|
7913 | ifc* | ifort*) # Intel Fortran compiler |
---|
7914 | tmp_addflag=' -nofor_main' ;; |
---|
7915 | esac |
---|
7916 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
7917 | |
---|
7918 | if test $supports_anon_versioning = yes; then |
---|
7919 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
---|
7920 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
7921 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
7922 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
---|
7923 | fi |
---|
7924 | else |
---|
7925 | ld_shlibs=no |
---|
7926 | fi |
---|
7927 | ;; |
---|
7928 | |
---|
7929 | netbsd*) |
---|
7930 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
7931 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
---|
7932 | wlarc= |
---|
7933 | else |
---|
7934 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
7935 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
7936 | fi |
---|
7937 | ;; |
---|
7938 | |
---|
7939 | solaris*) |
---|
7940 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
---|
7941 | ld_shlibs=no |
---|
7942 | cat <<EOF 1>&2 |
---|
7943 | |
---|
7944 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
---|
7945 | *** create shared libraries on Solaris systems. Therefore, libtool |
---|
7946 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
7947 | *** binutils to release 2.9.1 or newer. Another option is to modify |
---|
7948 | *** your PATH or compiler configuration so that the native linker is |
---|
7949 | *** used, and then restart. |
---|
7950 | |
---|
7951 | EOF |
---|
7952 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
7953 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
7954 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
7955 | else |
---|
7956 | ld_shlibs=no |
---|
7957 | fi |
---|
7958 | ;; |
---|
7959 | |
---|
7960 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
---|
7961 | case `$LD -v 2>&1` in |
---|
7962 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
---|
7963 | ld_shlibs=no |
---|
7964 | cat <<_LT_EOF 1>&2 |
---|
7965 | |
---|
7966 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
---|
7967 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
---|
7968 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
7969 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
---|
7970 | *** your PATH or compiler configuration so that the native linker is |
---|
7971 | *** used, and then restart. |
---|
7972 | |
---|
7973 | _LT_EOF |
---|
7974 | ;; |
---|
7975 | *) |
---|
7976 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
7977 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
---|
7978 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
---|
7979 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
---|
7980 | else |
---|
7981 | ld_shlibs=no |
---|
7982 | fi |
---|
7983 | ;; |
---|
7984 | esac |
---|
7985 | ;; |
---|
7986 | |
---|
7987 | sunos4*) |
---|
7988 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
7989 | wlarc= |
---|
7990 | hardcode_direct=yes |
---|
7991 | hardcode_shlibpath_var=no |
---|
7992 | ;; |
---|
7993 | |
---|
7994 | *) |
---|
7995 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
7996 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
7997 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
7998 | else |
---|
7999 | ld_shlibs=no |
---|
8000 | fi |
---|
8001 | ;; |
---|
8002 | esac |
---|
8003 | |
---|
8004 | if test "$ld_shlibs" = no; then |
---|
8005 | runpath_var= |
---|
8006 | hardcode_libdir_flag_spec= |
---|
8007 | export_dynamic_flag_spec= |
---|
8008 | whole_archive_flag_spec= |
---|
8009 | fi |
---|
8010 | else |
---|
8011 | # PORTME fill in a description of your system's linker (not GNU ld) |
---|
8012 | case $host_os in |
---|
8013 | aix3*) |
---|
8014 | allow_undefined_flag=unsupported |
---|
8015 | always_export_symbols=yes |
---|
8016 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
---|
8017 | # Note: this linker hardcodes the directories in LIBPATH if there |
---|
8018 | # are no directories specified by -L. |
---|
8019 | hardcode_minus_L=yes |
---|
8020 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
---|
8021 | # Neither direct hardcoding nor static linking is supported with a |
---|
8022 | # broken collect2. |
---|
8023 | hardcode_direct=unsupported |
---|
8024 | fi |
---|
8025 | ;; |
---|
8026 | |
---|
8027 | aix4* | aix5*) |
---|
8028 | if test "$host_cpu" = ia64; then |
---|
8029 | # On IA64, the linker does run time linking by default, so we don't |
---|
8030 | # have to do anything special. |
---|
8031 | aix_use_runtimelinking=no |
---|
8032 | exp_sym_flag='-Bexport' |
---|
8033 | no_entry_flag="" |
---|
8034 | else |
---|
8035 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
8036 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
8037 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
8038 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
---|
8039 | else |
---|
8040 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
---|
8041 | fi |
---|
8042 | aix_use_runtimelinking=no |
---|
8043 | |
---|
8044 | # Test if we are trying to use run time linking or normal |
---|
8045 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
8046 | # need to do runtime linking. |
---|
8047 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
8048 | for ld_flag in $LDFLAGS; do |
---|
8049 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
---|
8050 | aix_use_runtimelinking=yes |
---|
8051 | break |
---|
8052 | fi |
---|
8053 | done |
---|
8054 | ;; |
---|
8055 | esac |
---|
8056 | |
---|
8057 | exp_sym_flag='-bexport' |
---|
8058 | no_entry_flag='-bnoentry' |
---|
8059 | fi |
---|
8060 | |
---|
8061 | # When large executables or shared objects are built, AIX ld can |
---|
8062 | # have problems creating the table of contents. If linking a library |
---|
8063 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
8064 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
8065 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
8066 | |
---|
8067 | archive_cmds='' |
---|
8068 | hardcode_direct=yes |
---|
8069 | hardcode_libdir_separator=':' |
---|
8070 | link_all_deplibs=yes |
---|
8071 | |
---|
8072 | if test "$GCC" = yes; then |
---|
8073 | case $host_os in aix4.[012]|aix4.[012].*) |
---|
8074 | # We only want to do this on AIX 4.2 and lower, the check |
---|
8075 | # below for broken collect2 doesn't work under 4.3+ |
---|
8076 | collect2name=`${CC} -print-prog-name=collect2` |
---|
8077 | if test -f "$collect2name" && \ |
---|
8078 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
8079 | then |
---|
8080 | # We have reworked collect2 |
---|
8081 | hardcode_direct=yes |
---|
8082 | else |
---|
8083 | # We have old collect2 |
---|
8084 | hardcode_direct=unsupported |
---|
8085 | # It fails to find uninstalled libraries when the uninstalled |
---|
8086 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
8087 | # to unsupported forces relinking |
---|
8088 | hardcode_minus_L=yes |
---|
8089 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8090 | hardcode_libdir_separator= |
---|
8091 | fi |
---|
8092 | ;; |
---|
8093 | esac |
---|
8094 | shared_flag='-shared' |
---|
8095 | if test "$aix_use_runtimelinking" = yes; then |
---|
8096 | shared_flag="$shared_flag "'${wl}-G' |
---|
8097 | fi |
---|
8098 | else |
---|
8099 | # not using gcc |
---|
8100 | if test "$host_cpu" = ia64; then |
---|
8101 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
8102 | # chokes on -Wl,-G. The following line is correct: |
---|
8103 | shared_flag='-G' |
---|
8104 | else |
---|
8105 | if test "$aix_use_runtimelinking" = yes; then |
---|
8106 | shared_flag='${wl}-G' |
---|
8107 | else |
---|
8108 | shared_flag='${wl}-bM:SRE' |
---|
8109 | fi |
---|
8110 | fi |
---|
8111 | fi |
---|
8112 | |
---|
8113 | # It seems that -bexpall does not export symbols beginning with |
---|
8114 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
8115 | always_export_symbols=yes |
---|
8116 | if test "$aix_use_runtimelinking" = yes; then |
---|
8117 | # Warning - without using the other runtime loading flags (-brtl), |
---|
8118 | # -berok will link without error, but may produce a broken library. |
---|
8119 | allow_undefined_flag='-berok' |
---|
8120 | # Determine the default libpath from the value encoded in an empty executable. |
---|
8121 | cat >conftest.$ac_ext <<_ACEOF |
---|
8122 | /* confdefs.h. */ |
---|
8123 | _ACEOF |
---|
8124 | cat confdefs.h >>conftest.$ac_ext |
---|
8125 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8126 | /* end confdefs.h. */ |
---|
8127 | |
---|
8128 | int |
---|
8129 | main () |
---|
8130 | { |
---|
8131 | |
---|
8132 | ; |
---|
8133 | return 0; |
---|
8134 | } |
---|
8135 | _ACEOF |
---|
8136 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8137 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8138 | (eval $ac_link) 2>conftest.er1 |
---|
8139 | ac_status=$? |
---|
8140 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8141 | rm -f conftest.er1 |
---|
8142 | cat conftest.err >&5 |
---|
8143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8144 | (exit $ac_status); } && |
---|
8145 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8146 | || test ! -s conftest.err' |
---|
8147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8148 | (eval $ac_try) 2>&5 |
---|
8149 | ac_status=$? |
---|
8150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8151 | (exit $ac_status); }; } && |
---|
8152 | { ac_try='test -s conftest$ac_exeext' |
---|
8153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8154 | (eval $ac_try) 2>&5 |
---|
8155 | ac_status=$? |
---|
8156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8157 | (exit $ac_status); }; }; then |
---|
8158 | |
---|
8159 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
8160 | }'` |
---|
8161 | # Check for a 64-bit object if we didn't find anything. |
---|
8162 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
8163 | }'`; fi |
---|
8164 | else |
---|
8165 | echo "$as_me: failed program was:" >&5 |
---|
8166 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8167 | |
---|
8168 | fi |
---|
8169 | rm -f conftest.err conftest.$ac_objext \ |
---|
8170 | conftest$ac_exeext conftest.$ac_ext |
---|
8171 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
8172 | |
---|
8173 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
8174 | 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" |
---|
8175 | else |
---|
8176 | if test "$host_cpu" = ia64; then |
---|
8177 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
---|
8178 | allow_undefined_flag="-z nodefs" |
---|
8179 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
---|
8180 | else |
---|
8181 | # Determine the default libpath from the value encoded in an empty executable. |
---|
8182 | cat >conftest.$ac_ext <<_ACEOF |
---|
8183 | /* confdefs.h. */ |
---|
8184 | _ACEOF |
---|
8185 | cat confdefs.h >>conftest.$ac_ext |
---|
8186 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8187 | /* end confdefs.h. */ |
---|
8188 | |
---|
8189 | int |
---|
8190 | main () |
---|
8191 | { |
---|
8192 | |
---|
8193 | ; |
---|
8194 | return 0; |
---|
8195 | } |
---|
8196 | _ACEOF |
---|
8197 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8198 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8199 | (eval $ac_link) 2>conftest.er1 |
---|
8200 | ac_status=$? |
---|
8201 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8202 | rm -f conftest.er1 |
---|
8203 | cat conftest.err >&5 |
---|
8204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8205 | (exit $ac_status); } && |
---|
8206 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8207 | || test ! -s conftest.err' |
---|
8208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8209 | (eval $ac_try) 2>&5 |
---|
8210 | ac_status=$? |
---|
8211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8212 | (exit $ac_status); }; } && |
---|
8213 | { ac_try='test -s conftest$ac_exeext' |
---|
8214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8215 | (eval $ac_try) 2>&5 |
---|
8216 | ac_status=$? |
---|
8217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8218 | (exit $ac_status); }; }; then |
---|
8219 | |
---|
8220 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
8221 | }'` |
---|
8222 | # Check for a 64-bit object if we didn't find anything. |
---|
8223 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
8224 | }'`; fi |
---|
8225 | else |
---|
8226 | echo "$as_me: failed program was:" >&5 |
---|
8227 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8228 | |
---|
8229 | fi |
---|
8230 | rm -f conftest.err conftest.$ac_objext \ |
---|
8231 | conftest$ac_exeext conftest.$ac_ext |
---|
8232 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
8233 | |
---|
8234 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
8235 | # Warning - without using the other run time loading flags, |
---|
8236 | # -berok will link without error, but may produce a broken library. |
---|
8237 | no_undefined_flag=' ${wl}-bernotok' |
---|
8238 | allow_undefined_flag=' ${wl}-berok' |
---|
8239 | # Exported symbols can be pulled into shared objects from archives |
---|
8240 | whole_archive_flag_spec='$convenience' |
---|
8241 | archive_cmds_need_lc=yes |
---|
8242 | # This is similar to how AIX traditionally builds its shared libraries. |
---|
8243 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
---|
8244 | fi |
---|
8245 | fi |
---|
8246 | ;; |
---|
8247 | |
---|
8248 | amigaos*) |
---|
8249 | archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
---|
8250 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8251 | hardcode_minus_L=yes |
---|
8252 | # see comment about different semantics on the GNU ld section |
---|
8253 | ld_shlibs=no |
---|
8254 | ;; |
---|
8255 | |
---|
8256 | bsdi[45]*) |
---|
8257 | export_dynamic_flag_spec=-rdynamic |
---|
8258 | ;; |
---|
8259 | |
---|
8260 | cygwin* | mingw* | pw32*) |
---|
8261 | # When not using gcc, we currently assume that we are using |
---|
8262 | # Microsoft Visual C++. |
---|
8263 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
8264 | # no search path for DLLs. |
---|
8265 | hardcode_libdir_flag_spec=' ' |
---|
8266 | allow_undefined_flag=unsupported |
---|
8267 | # Tell ltmain to make .lib files, not .a files. |
---|
8268 | libext=lib |
---|
8269 | # Tell ltmain to make .dll files, not .so files. |
---|
8270 | shrext_cmds=".dll" |
---|
8271 | # FIXME: Setting linknames here is a bad hack. |
---|
8272 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
---|
8273 | # The linker will automatically build a .lib file if we build a DLL. |
---|
8274 | old_archive_From_new_cmds='true' |
---|
8275 | # FIXME: Should let the user specify the lib program. |
---|
8276 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
---|
8277 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
---|
8278 | enable_shared_with_static_runtimes=yes |
---|
8279 | ;; |
---|
8280 | |
---|
8281 | darwin* | rhapsody*) |
---|
8282 | case $host_os in |
---|
8283 | rhapsody* | darwin1.[012]) |
---|
8284 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
---|
8285 | ;; |
---|
8286 | *) # Darwin 1.3 on |
---|
8287 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
8288 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
8289 | else |
---|
8290 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
8291 | 10.[012]) |
---|
8292 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
8293 | ;; |
---|
8294 | 10.*) |
---|
8295 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
---|
8296 | ;; |
---|
8297 | esac |
---|
8298 | fi |
---|
8299 | ;; |
---|
8300 | esac |
---|
8301 | archive_cmds_need_lc=no |
---|
8302 | hardcode_direct=no |
---|
8303 | hardcode_automatic=yes |
---|
8304 | hardcode_shlibpath_var=unsupported |
---|
8305 | whole_archive_flag_spec='' |
---|
8306 | link_all_deplibs=yes |
---|
8307 | if test "$GCC" = yes ; then |
---|
8308 | output_verbose_link_cmd='echo' |
---|
8309 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
8310 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
8311 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
8312 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
8313 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
8314 | else |
---|
8315 | case $cc_basename in |
---|
8316 | xlc*) |
---|
8317 | output_verbose_link_cmd='echo' |
---|
8318 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
---|
8319 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
8320 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
8321 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
8322 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
8323 | ;; |
---|
8324 | *) |
---|
8325 | ld_shlibs=no |
---|
8326 | ;; |
---|
8327 | esac |
---|
8328 | fi |
---|
8329 | ;; |
---|
8330 | |
---|
8331 | dgux*) |
---|
8332 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
8333 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8334 | hardcode_shlibpath_var=no |
---|
8335 | ;; |
---|
8336 | |
---|
8337 | freebsd1*) |
---|
8338 | ld_shlibs=no |
---|
8339 | ;; |
---|
8340 | |
---|
8341 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
---|
8342 | # support. Future versions do this automatically, but an explicit c++rt0.o |
---|
8343 | # does not break anything, and helps significantly (at the cost of a little |
---|
8344 | # extra space). |
---|
8345 | freebsd2.2*) |
---|
8346 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
---|
8347 | hardcode_libdir_flag_spec='-R$libdir' |
---|
8348 | hardcode_direct=yes |
---|
8349 | hardcode_shlibpath_var=no |
---|
8350 | ;; |
---|
8351 | |
---|
8352 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
---|
8353 | freebsd2*) |
---|
8354 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
8355 | hardcode_direct=yes |
---|
8356 | hardcode_minus_L=yes |
---|
8357 | hardcode_shlibpath_var=no |
---|
8358 | ;; |
---|
8359 | |
---|
8360 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
---|
8361 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
8362 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
---|
8363 | hardcode_libdir_flag_spec='-R$libdir' |
---|
8364 | hardcode_direct=yes |
---|
8365 | hardcode_shlibpath_var=no |
---|
8366 | ;; |
---|
8367 | |
---|
8368 | hpux9*) |
---|
8369 | if test "$GCC" = yes; then |
---|
8370 | 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' |
---|
8371 | else |
---|
8372 | archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
---|
8373 | fi |
---|
8374 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
8375 | hardcode_libdir_separator=: |
---|
8376 | hardcode_direct=yes |
---|
8377 | |
---|
8378 | # hardcode_minus_L: Not really in the search PATH, |
---|
8379 | # but as the default location of the library. |
---|
8380 | hardcode_minus_L=yes |
---|
8381 | export_dynamic_flag_spec='${wl}-E' |
---|
8382 | ;; |
---|
8383 | |
---|
8384 | hpux10*) |
---|
8385 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
8386 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
8387 | else |
---|
8388 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
---|
8389 | fi |
---|
8390 | if test "$with_gnu_ld" = no; then |
---|
8391 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
8392 | hardcode_libdir_separator=: |
---|
8393 | |
---|
8394 | hardcode_direct=yes |
---|
8395 | export_dynamic_flag_spec='${wl}-E' |
---|
8396 | |
---|
8397 | # hardcode_minus_L: Not really in the search PATH, |
---|
8398 | # but as the default location of the library. |
---|
8399 | hardcode_minus_L=yes |
---|
8400 | fi |
---|
8401 | ;; |
---|
8402 | |
---|
8403 | hpux11*) |
---|
8404 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
8405 | case $host_cpu in |
---|
8406 | hppa*64*) |
---|
8407 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
8408 | ;; |
---|
8409 | ia64*) |
---|
8410 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
---|
8411 | ;; |
---|
8412 | *) |
---|
8413 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
8414 | ;; |
---|
8415 | esac |
---|
8416 | else |
---|
8417 | case $host_cpu in |
---|
8418 | hppa*64*) |
---|
8419 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
8420 | ;; |
---|
8421 | ia64*) |
---|
8422 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
---|
8423 | ;; |
---|
8424 | *) |
---|
8425 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
8426 | ;; |
---|
8427 | esac |
---|
8428 | fi |
---|
8429 | if test "$with_gnu_ld" = no; then |
---|
8430 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
8431 | hardcode_libdir_separator=: |
---|
8432 | |
---|
8433 | case $host_cpu in |
---|
8434 | hppa*64*|ia64*) |
---|
8435 | hardcode_libdir_flag_spec_ld='+b $libdir' |
---|
8436 | hardcode_direct=no |
---|
8437 | hardcode_shlibpath_var=no |
---|
8438 | ;; |
---|
8439 | *) |
---|
8440 | hardcode_direct=yes |
---|
8441 | export_dynamic_flag_spec='${wl}-E' |
---|
8442 | |
---|
8443 | # hardcode_minus_L: Not really in the search PATH, |
---|
8444 | # but as the default location of the library. |
---|
8445 | hardcode_minus_L=yes |
---|
8446 | ;; |
---|
8447 | esac |
---|
8448 | fi |
---|
8449 | ;; |
---|
8450 | |
---|
8451 | irix5* | irix6* | nonstopux*) |
---|
8452 | if test "$GCC" = yes; then |
---|
8453 | 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' |
---|
8454 | else |
---|
8455 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
8456 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
---|
8457 | fi |
---|
8458 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
8459 | hardcode_libdir_separator=: |
---|
8460 | link_all_deplibs=yes |
---|
8461 | ;; |
---|
8462 | |
---|
8463 | netbsd*) |
---|
8464 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
8465 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
---|
8466 | else |
---|
8467 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
---|
8468 | fi |
---|
8469 | hardcode_libdir_flag_spec='-R$libdir' |
---|
8470 | hardcode_direct=yes |
---|
8471 | hardcode_shlibpath_var=no |
---|
8472 | ;; |
---|
8473 | |
---|
8474 | newsos6) |
---|
8475 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
8476 | hardcode_direct=yes |
---|
8477 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
8478 | hardcode_libdir_separator=: |
---|
8479 | hardcode_shlibpath_var=no |
---|
8480 | ;; |
---|
8481 | |
---|
8482 | openbsd*) |
---|
8483 | hardcode_direct=yes |
---|
8484 | hardcode_shlibpath_var=no |
---|
8485 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
8486 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
8487 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
---|
8488 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
8489 | export_dynamic_flag_spec='${wl}-E' |
---|
8490 | else |
---|
8491 | case $host_os in |
---|
8492 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
---|
8493 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
8494 | hardcode_libdir_flag_spec='-R$libdir' |
---|
8495 | ;; |
---|
8496 | *) |
---|
8497 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
8498 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
8499 | ;; |
---|
8500 | esac |
---|
8501 | fi |
---|
8502 | ;; |
---|
8503 | |
---|
8504 | os2*) |
---|
8505 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8506 | hardcode_minus_L=yes |
---|
8507 | allow_undefined_flag=unsupported |
---|
8508 | archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
---|
8509 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
---|
8510 | ;; |
---|
8511 | |
---|
8512 | osf3*) |
---|
8513 | if test "$GCC" = yes; then |
---|
8514 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
8515 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
---|
8516 | else |
---|
8517 | allow_undefined_flag=' -expect_unresolved \*' |
---|
8518 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
8519 | fi |
---|
8520 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
8521 | hardcode_libdir_separator=: |
---|
8522 | ;; |
---|
8523 | |
---|
8524 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
---|
8525 | if test "$GCC" = yes; then |
---|
8526 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
8527 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
---|
8528 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
8529 | else |
---|
8530 | allow_undefined_flag=' -expect_unresolved \*' |
---|
8531 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
8532 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
---|
8533 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
---|
8534 | |
---|
8535 | # Both c and cxx compiler support -rpath directly |
---|
8536 | hardcode_libdir_flag_spec='-rpath $libdir' |
---|
8537 | fi |
---|
8538 | hardcode_libdir_separator=: |
---|
8539 | ;; |
---|
8540 | |
---|
8541 | solaris*) |
---|
8542 | no_undefined_flag=' -z text' |
---|
8543 | if test "$GCC" = yes; then |
---|
8544 | wlarc='${wl}' |
---|
8545 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
8546 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
8547 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
---|
8548 | else |
---|
8549 | wlarc='' |
---|
8550 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
8551 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
8552 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
8553 | fi |
---|
8554 | hardcode_libdir_flag_spec='-R$libdir' |
---|
8555 | hardcode_shlibpath_var=no |
---|
8556 | case $host_os in |
---|
8557 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
8558 | *) |
---|
8559 | # The compiler driver will combine linker options so we |
---|
8560 | # cannot just pass the convience library names through |
---|
8561 | # without $wl, iff we do not link with $LD. |
---|
8562 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
---|
8563 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
8564 | case $wlarc in |
---|
8565 | '') |
---|
8566 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
---|
8567 | *) |
---|
8568 | whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
---|
8569 | esac ;; |
---|
8570 | esac |
---|
8571 | link_all_deplibs=yes |
---|
8572 | ;; |
---|
8573 | |
---|
8574 | sunos4*) |
---|
8575 | if test "x$host_vendor" = xsequent; then |
---|
8576 | # Use $CC to link under sequent, because it throws in some extra .o |
---|
8577 | # files that make .init and .fini sections work. |
---|
8578 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
8579 | else |
---|
8580 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
---|
8581 | fi |
---|
8582 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8583 | hardcode_direct=yes |
---|
8584 | hardcode_minus_L=yes |
---|
8585 | hardcode_shlibpath_var=no |
---|
8586 | ;; |
---|
8587 | |
---|
8588 | sysv4) |
---|
8589 | case $host_vendor in |
---|
8590 | sni) |
---|
8591 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
8592 | hardcode_direct=yes # is this really true??? |
---|
8593 | ;; |
---|
8594 | siemens) |
---|
8595 | ## LD is ld it makes a PLAMLIB |
---|
8596 | ## CC just makes a GrossModule. |
---|
8597 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
8598 | reload_cmds='$CC -r -o $output$reload_objs' |
---|
8599 | hardcode_direct=no |
---|
8600 | ;; |
---|
8601 | motorola) |
---|
8602 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
8603 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
---|
8604 | ;; |
---|
8605 | esac |
---|
8606 | runpath_var='LD_RUN_PATH' |
---|
8607 | hardcode_shlibpath_var=no |
---|
8608 | ;; |
---|
8609 | |
---|
8610 | sysv4.3*) |
---|
8611 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
8612 | hardcode_shlibpath_var=no |
---|
8613 | export_dynamic_flag_spec='-Bexport' |
---|
8614 | ;; |
---|
8615 | |
---|
8616 | sysv4*MP*) |
---|
8617 | if test -d /usr/nec; then |
---|
8618 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
8619 | hardcode_shlibpath_var=no |
---|
8620 | runpath_var=LD_RUN_PATH |
---|
8621 | hardcode_runpath_var=yes |
---|
8622 | ld_shlibs=yes |
---|
8623 | fi |
---|
8624 | ;; |
---|
8625 | |
---|
8626 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
---|
8627 | no_undefined_flag='${wl}-z,text' |
---|
8628 | archive_cmds_need_lc=no |
---|
8629 | hardcode_shlibpath_var=no |
---|
8630 | runpath_var='LD_RUN_PATH' |
---|
8631 | |
---|
8632 | if test "$GCC" = yes; then |
---|
8633 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
8634 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
8635 | else |
---|
8636 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
8637 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
8638 | fi |
---|
8639 | ;; |
---|
8640 | |
---|
8641 | sysv5* | sco3.2v5* | sco5v6*) |
---|
8642 | # Note: We can NOT use -z defs as we might desire, because we do not |
---|
8643 | # link with -lc, and that would cause any symbols used from libc to |
---|
8644 | # always be unresolved, which means just about no library would |
---|
8645 | # ever link correctly. If we're not using GNU ld we use -z text |
---|
8646 | # though, which does catch some bad symbols but isn't as heavy-handed |
---|
8647 | # as -z defs. |
---|
8648 | no_undefined_flag='${wl}-z,text' |
---|
8649 | allow_undefined_flag='${wl}-z,nodefs' |
---|
8650 | archive_cmds_need_lc=no |
---|
8651 | hardcode_shlibpath_var=no |
---|
8652 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
---|
8653 | hardcode_libdir_separator=':' |
---|
8654 | link_all_deplibs=yes |
---|
8655 | export_dynamic_flag_spec='${wl}-Bexport' |
---|
8656 | runpath_var='LD_RUN_PATH' |
---|
8657 | |
---|
8658 | if test "$GCC" = yes; then |
---|
8659 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
8660 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
8661 | else |
---|
8662 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
8663 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
8664 | fi |
---|
8665 | ;; |
---|
8666 | |
---|
8667 | uts4*) |
---|
8668 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
8669 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8670 | hardcode_shlibpath_var=no |
---|
8671 | ;; |
---|
8672 | |
---|
8673 | *) |
---|
8674 | ld_shlibs=no |
---|
8675 | ;; |
---|
8676 | esac |
---|
8677 | fi |
---|
8678 | |
---|
8679 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
---|
8680 | echo "${ECHO_T}$ld_shlibs" >&6 |
---|
8681 | test "$ld_shlibs" = no && can_build_shared=no |
---|
8682 | |
---|
8683 | # |
---|
8684 | # Do we need to explicitly link libc? |
---|
8685 | # |
---|
8686 | case "x$archive_cmds_need_lc" in |
---|
8687 | x|xyes) |
---|
8688 | # Assume -lc should be added |
---|
8689 | archive_cmds_need_lc=yes |
---|
8690 | |
---|
8691 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
8692 | case $archive_cmds in |
---|
8693 | *'~'*) |
---|
8694 | # FIXME: we may have to deal with multi-command sequences. |
---|
8695 | ;; |
---|
8696 | '$CC '*) |
---|
8697 | # Test whether the compiler implicitly links with -lc since on some |
---|
8698 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
8699 | # to ld, don't add -lc before -lgcc. |
---|
8700 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
---|
8701 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
---|
8702 | $rm conftest* |
---|
8703 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
8704 | |
---|
8705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8706 | (eval $ac_compile) 2>&5 |
---|
8707 | ac_status=$? |
---|
8708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8709 | (exit $ac_status); } 2>conftest.err; then |
---|
8710 | soname=conftest |
---|
8711 | lib=conftest |
---|
8712 | libobjs=conftest.$ac_objext |
---|
8713 | deplibs= |
---|
8714 | wl=$lt_prog_compiler_wl |
---|
8715 | pic_flag=$lt_prog_compiler_pic |
---|
8716 | compiler_flags=-v |
---|
8717 | linker_flags=-v |
---|
8718 | verstring= |
---|
8719 | output_objdir=. |
---|
8720 | libname=conftest |
---|
8721 | lt_save_allow_undefined_flag=$allow_undefined_flag |
---|
8722 | allow_undefined_flag= |
---|
8723 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
8724 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
8725 | ac_status=$? |
---|
8726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8727 | (exit $ac_status); } |
---|
8728 | then |
---|
8729 | archive_cmds_need_lc=no |
---|
8730 | else |
---|
8731 | archive_cmds_need_lc=yes |
---|
8732 | fi |
---|
8733 | allow_undefined_flag=$lt_save_allow_undefined_flag |
---|
8734 | else |
---|
8735 | cat conftest.err 1>&5 |
---|
8736 | fi |
---|
8737 | $rm conftest* |
---|
8738 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
---|
8739 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
---|
8740 | ;; |
---|
8741 | esac |
---|
8742 | fi |
---|
8743 | ;; |
---|
8744 | esac |
---|
8745 | |
---|
8746 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
---|
8747 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
---|
8748 | library_names_spec= |
---|
8749 | libname_spec='lib$name' |
---|
8750 | soname_spec= |
---|
8751 | shrext_cmds=".so" |
---|
8752 | postinstall_cmds= |
---|
8753 | postuninstall_cmds= |
---|
8754 | finish_cmds= |
---|
8755 | finish_eval= |
---|
8756 | shlibpath_var= |
---|
8757 | shlibpath_overrides_runpath=unknown |
---|
8758 | version_type=none |
---|
8759 | dynamic_linker="$host_os ld.so" |
---|
8760 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
8761 | if test "$GCC" = yes; then |
---|
8762 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
8763 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
---|
8764 | # if the path contains ";" then we assume it to be the separator |
---|
8765 | # otherwise default to the standard path separator (i.e. ":") - it is |
---|
8766 | # assumed that no part of a normal pathname contains ";" but that should |
---|
8767 | # okay in the real world where ";" in dirpaths is itself problematic. |
---|
8768 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
8769 | else |
---|
8770 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
8771 | fi |
---|
8772 | else |
---|
8773 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
---|
8774 | fi |
---|
8775 | need_lib_prefix=unknown |
---|
8776 | hardcode_into_libs=no |
---|
8777 | |
---|
8778 | # when you set need_version to no, make sure it does not cause -set_version |
---|
8779 | # flags to be left without arguments |
---|
8780 | need_version=unknown |
---|
8781 | |
---|
8782 | case $host_os in |
---|
8783 | aix3*) |
---|
8784 | version_type=linux |
---|
8785 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
8786 | shlibpath_var=LIBPATH |
---|
8787 | |
---|
8788 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
8789 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8790 | ;; |
---|
8791 | |
---|
8792 | aix4* | aix5*) |
---|
8793 | version_type=linux |
---|
8794 | need_lib_prefix=no |
---|
8795 | need_version=no |
---|
8796 | hardcode_into_libs=yes |
---|
8797 | if test "$host_cpu" = ia64; then |
---|
8798 | # AIX 5 supports IA64 |
---|
8799 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
8800 | shlibpath_var=LD_LIBRARY_PATH |
---|
8801 | else |
---|
8802 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
8803 | # for dependence libraries. The import file would start with |
---|
8804 | # the line `#! .'. This would cause the generated library to |
---|
8805 | # depend on `.', always an invalid library. This was fixed in |
---|
8806 | # development snapshots of GCC prior to 3.0. |
---|
8807 | case $host_os in |
---|
8808 | aix4 | aix4.[01] | aix4.[01].*) |
---|
8809 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
8810 | echo ' yes ' |
---|
8811 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
8812 | : |
---|
8813 | else |
---|
8814 | can_build_shared=no |
---|
8815 | fi |
---|
8816 | ;; |
---|
8817 | esac |
---|
8818 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
8819 | # soname into executable. Probably we can add versioning support to |
---|
8820 | # collect2, so additional links can be useful in future. |
---|
8821 | if test "$aix_use_runtimelinking" = yes; then |
---|
8822 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
8823 | # instead of lib<name>.a to let people know that these are not |
---|
8824 | # typical AIX shared libraries. |
---|
8825 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
8826 | else |
---|
8827 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
8828 | # and later when we are not doing run time linking. |
---|
8829 | library_names_spec='${libname}${release}.a $libname.a' |
---|
8830 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8831 | fi |
---|
8832 | shlibpath_var=LIBPATH |
---|
8833 | fi |
---|
8834 | ;; |
---|
8835 | |
---|
8836 | amigaos*) |
---|
8837 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
8838 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
8839 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
---|
8840 | ;; |
---|
8841 | |
---|
8842 | beos*) |
---|
8843 | library_names_spec='${libname}${shared_ext}' |
---|
8844 | dynamic_linker="$host_os ld.so" |
---|
8845 | shlibpath_var=LIBRARY_PATH |
---|
8846 | ;; |
---|
8847 | |
---|
8848 | bsdi[45]*) |
---|
8849 | version_type=linux |
---|
8850 | need_version=no |
---|
8851 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
8852 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8853 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
8854 | shlibpath_var=LD_LIBRARY_PATH |
---|
8855 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
8856 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
8857 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
8858 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
8859 | # libtool to hard-code these into programs |
---|
8860 | ;; |
---|
8861 | |
---|
8862 | cygwin* | mingw* | pw32*) |
---|
8863 | version_type=windows |
---|
8864 | shrext_cmds=".dll" |
---|
8865 | need_version=no |
---|
8866 | need_lib_prefix=no |
---|
8867 | |
---|
8868 | case $GCC,$host_os in |
---|
8869 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
8870 | library_names_spec='$libname.dll.a' |
---|
8871 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
8872 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
8873 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
---|
8874 | dldir=$destdir/`dirname \$dlpath`~ |
---|
8875 | test -d \$dldir || mkdir -p \$dldir~ |
---|
8876 | $install_prog $dir/$dlname \$dldir/$dlname~ |
---|
8877 | chmod a+x \$dldir/$dlname' |
---|
8878 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
8879 | dlpath=$dir/\$dldll~ |
---|
8880 | $rm \$dlpath' |
---|
8881 | shlibpath_overrides_runpath=yes |
---|
8882 | |
---|
8883 | case $host_os in |
---|
8884 | cygwin*) |
---|
8885 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
8886 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
8887 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
---|
8888 | ;; |
---|
8889 | mingw*) |
---|
8890 | # MinGW DLLs use traditional 'lib' prefix |
---|
8891 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
8892 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
8893 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
---|
8894 | # It is most probably a Windows format PATH printed by |
---|
8895 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
---|
8896 | # path with ; separators, and with drive letters. We can handle the |
---|
8897 | # drive letters (cygwin fileutils understands them), so leave them, |
---|
8898 | # especially as we might pass files found there to a mingw objdump, |
---|
8899 | # which wouldn't understand a cygwinified path. Ahh. |
---|
8900 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
8901 | else |
---|
8902 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
8903 | fi |
---|
8904 | ;; |
---|
8905 | pw32*) |
---|
8906 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
8907 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
8908 | ;; |
---|
8909 | esac |
---|
8910 | ;; |
---|
8911 | |
---|
8912 | *) |
---|
8913 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
8914 | ;; |
---|
8915 | esac |
---|
8916 | dynamic_linker='Win32 ld.exe' |
---|
8917 | # FIXME: first we should search . and the directory the executable is in |
---|
8918 | shlibpath_var=PATH |
---|
8919 | ;; |
---|
8920 | |
---|
8921 | darwin* | rhapsody*) |
---|
8922 | dynamic_linker="$host_os dyld" |
---|
8923 | version_type=darwin |
---|
8924 | need_lib_prefix=no |
---|
8925 | need_version=no |
---|
8926 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
8927 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
8928 | shlibpath_overrides_runpath=yes |
---|
8929 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
8930 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
---|
8931 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
---|
8932 | if test "$GCC" = yes; then |
---|
8933 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
---|
8934 | else |
---|
8935 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
---|
8936 | fi |
---|
8937 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
8938 | ;; |
---|
8939 | |
---|
8940 | dgux*) |
---|
8941 | version_type=linux |
---|
8942 | need_lib_prefix=no |
---|
8943 | need_version=no |
---|
8944 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
---|
8945 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8946 | shlibpath_var=LD_LIBRARY_PATH |
---|
8947 | ;; |
---|
8948 | |
---|
8949 | freebsd1*) |
---|
8950 | dynamic_linker=no |
---|
8951 | ;; |
---|
8952 | |
---|
8953 | kfreebsd*-gnu) |
---|
8954 | version_type=linux |
---|
8955 | need_lib_prefix=no |
---|
8956 | need_version=no |
---|
8957 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
8958 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
8959 | shlibpath_var=LD_LIBRARY_PATH |
---|
8960 | shlibpath_overrides_runpath=no |
---|
8961 | hardcode_into_libs=yes |
---|
8962 | dynamic_linker='GNU ld.so' |
---|
8963 | ;; |
---|
8964 | |
---|
8965 | freebsd* | dragonfly*) |
---|
8966 | # DragonFly does not have aout. When/if they implement a new |
---|
8967 | # versioning mechanism, adjust this. |
---|
8968 | if test -x /usr/bin/objformat; then |
---|
8969 | objformat=`/usr/bin/objformat` |
---|
8970 | else |
---|
8971 | case $host_os in |
---|
8972 | freebsd[123]*) objformat=aout ;; |
---|
8973 | *) objformat=elf ;; |
---|
8974 | esac |
---|
8975 | fi |
---|
8976 | version_type=freebsd-$objformat |
---|
8977 | case $version_type in |
---|
8978 | freebsd-elf*) |
---|
8979 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
8980 | need_version=no |
---|
8981 | need_lib_prefix=no |
---|
8982 | ;; |
---|
8983 | freebsd-*) |
---|
8984 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
8985 | need_version=yes |
---|
8986 | ;; |
---|
8987 | esac |
---|
8988 | shlibpath_var=LD_LIBRARY_PATH |
---|
8989 | case $host_os in |
---|
8990 | freebsd2*) |
---|
8991 | shlibpath_overrides_runpath=yes |
---|
8992 | ;; |
---|
8993 | freebsd3.[01]* | freebsdelf3.[01]*) |
---|
8994 | shlibpath_overrides_runpath=yes |
---|
8995 | hardcode_into_libs=yes |
---|
8996 | ;; |
---|
8997 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
---|
8998 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
---|
8999 | shlibpath_overrides_runpath=no |
---|
9000 | hardcode_into_libs=yes |
---|
9001 | ;; |
---|
9002 | freebsd*) # from 4.6 on |
---|
9003 | shlibpath_overrides_runpath=yes |
---|
9004 | hardcode_into_libs=yes |
---|
9005 | ;; |
---|
9006 | esac |
---|
9007 | ;; |
---|
9008 | |
---|
9009 | gnu*) |
---|
9010 | version_type=linux |
---|
9011 | need_lib_prefix=no |
---|
9012 | need_version=no |
---|
9013 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
9014 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9015 | shlibpath_var=LD_LIBRARY_PATH |
---|
9016 | hardcode_into_libs=yes |
---|
9017 | ;; |
---|
9018 | |
---|
9019 | hpux9* | hpux10* | hpux11*) |
---|
9020 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
9021 | # link against other versions. |
---|
9022 | version_type=sunos |
---|
9023 | need_lib_prefix=no |
---|
9024 | need_version=no |
---|
9025 | case $host_cpu in |
---|
9026 | ia64*) |
---|
9027 | shrext_cmds='.so' |
---|
9028 | hardcode_into_libs=yes |
---|
9029 | dynamic_linker="$host_os dld.so" |
---|
9030 | shlibpath_var=LD_LIBRARY_PATH |
---|
9031 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
9032 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9033 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9034 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
9035 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
9036 | else |
---|
9037 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
9038 | fi |
---|
9039 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
9040 | ;; |
---|
9041 | hppa*64*) |
---|
9042 | shrext_cmds='.sl' |
---|
9043 | hardcode_into_libs=yes |
---|
9044 | dynamic_linker="$host_os dld.sl" |
---|
9045 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
9046 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
9047 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9048 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9049 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
9050 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
9051 | ;; |
---|
9052 | *) |
---|
9053 | shrext_cmds='.sl' |
---|
9054 | dynamic_linker="$host_os dld.sl" |
---|
9055 | shlibpath_var=SHLIB_PATH |
---|
9056 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
9057 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9058 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9059 | ;; |
---|
9060 | esac |
---|
9061 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
9062 | postinstall_cmds='chmod 555 $lib' |
---|
9063 | ;; |
---|
9064 | |
---|
9065 | interix3*) |
---|
9066 | version_type=linux |
---|
9067 | need_lib_prefix=no |
---|
9068 | need_version=no |
---|
9069 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
9070 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9071 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
---|
9072 | shlibpath_var=LD_LIBRARY_PATH |
---|
9073 | shlibpath_overrides_runpath=no |
---|
9074 | hardcode_into_libs=yes |
---|
9075 | ;; |
---|
9076 | |
---|
9077 | irix5* | irix6* | nonstopux*) |
---|
9078 | case $host_os in |
---|
9079 | nonstopux*) version_type=nonstopux ;; |
---|
9080 | *) |
---|
9081 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
9082 | version_type=linux |
---|
9083 | else |
---|
9084 | version_type=irix |
---|
9085 | fi ;; |
---|
9086 | esac |
---|
9087 | need_lib_prefix=no |
---|
9088 | need_version=no |
---|
9089 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9090 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
9091 | case $host_os in |
---|
9092 | irix5* | nonstopux*) |
---|
9093 | libsuff= shlibsuff= |
---|
9094 | ;; |
---|
9095 | *) |
---|
9096 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
9097 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
9098 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
9099 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
9100 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
9101 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
9102 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
9103 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
9104 | esac |
---|
9105 | ;; |
---|
9106 | esac |
---|
9107 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
9108 | shlibpath_overrides_runpath=no |
---|
9109 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
9110 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
9111 | hardcode_into_libs=yes |
---|
9112 | ;; |
---|
9113 | |
---|
9114 | # No shared lib support for Linux oldld, aout, or coff. |
---|
9115 | linux*oldld* | linux*aout* | linux*coff*) |
---|
9116 | dynamic_linker=no |
---|
9117 | ;; |
---|
9118 | |
---|
9119 | # This must be Linux ELF. |
---|
9120 | linux*) |
---|
9121 | version_type=linux |
---|
9122 | need_lib_prefix=no |
---|
9123 | need_version=no |
---|
9124 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9125 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9126 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
9127 | shlibpath_var=LD_LIBRARY_PATH |
---|
9128 | shlibpath_overrides_runpath=no |
---|
9129 | # This implies no fast_install, which is unacceptable. |
---|
9130 | # Some rework will be needed to allow for fast_install |
---|
9131 | # before this can be enabled. |
---|
9132 | hardcode_into_libs=yes |
---|
9133 | |
---|
9134 | # Append ld.so.conf contents to the search path |
---|
9135 | if test -f /etc/ld.so.conf; then |
---|
9136 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
---|
9137 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
---|
9138 | fi |
---|
9139 | |
---|
9140 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
9141 | # powerpc, because MkLinux only supported shared libraries with the |
---|
9142 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
9143 | # most powerpc-linux boxes support dynamic linking these days and |
---|
9144 | # people can always --disable-shared, the test was removed, and we |
---|
9145 | # assume the GNU/Linux dynamic linker is in use. |
---|
9146 | dynamic_linker='GNU/Linux ld.so' |
---|
9147 | ;; |
---|
9148 | |
---|
9149 | knetbsd*-gnu) |
---|
9150 | version_type=linux |
---|
9151 | need_lib_prefix=no |
---|
9152 | need_version=no |
---|
9153 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
9154 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9155 | shlibpath_var=LD_LIBRARY_PATH |
---|
9156 | shlibpath_overrides_runpath=no |
---|
9157 | hardcode_into_libs=yes |
---|
9158 | dynamic_linker='GNU ld.so' |
---|
9159 | ;; |
---|
9160 | |
---|
9161 | netbsd*) |
---|
9162 | version_type=sunos |
---|
9163 | need_lib_prefix=no |
---|
9164 | need_version=no |
---|
9165 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
9166 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
9167 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
9168 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
9169 | else |
---|
9170 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
9171 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9172 | dynamic_linker='NetBSD ld.elf_so' |
---|
9173 | fi |
---|
9174 | shlibpath_var=LD_LIBRARY_PATH |
---|
9175 | shlibpath_overrides_runpath=yes |
---|
9176 | hardcode_into_libs=yes |
---|
9177 | ;; |
---|
9178 | |
---|
9179 | newsos6) |
---|
9180 | version_type=linux |
---|
9181 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9182 | shlibpath_var=LD_LIBRARY_PATH |
---|
9183 | shlibpath_overrides_runpath=yes |
---|
9184 | ;; |
---|
9185 | |
---|
9186 | nto-qnx*) |
---|
9187 | version_type=linux |
---|
9188 | need_lib_prefix=no |
---|
9189 | need_version=no |
---|
9190 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9191 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9192 | shlibpath_var=LD_LIBRARY_PATH |
---|
9193 | shlibpath_overrides_runpath=yes |
---|
9194 | ;; |
---|
9195 | |
---|
9196 | openbsd*) |
---|
9197 | version_type=sunos |
---|
9198 | sys_lib_dlsearch_path_spec="/usr/lib" |
---|
9199 | need_lib_prefix=no |
---|
9200 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
---|
9201 | case $host_os in |
---|
9202 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
---|
9203 | *) need_version=no ;; |
---|
9204 | esac |
---|
9205 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
9206 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
9207 | shlibpath_var=LD_LIBRARY_PATH |
---|
9208 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
9209 | case $host_os in |
---|
9210 | openbsd2.[89] | openbsd2.[89].*) |
---|
9211 | shlibpath_overrides_runpath=no |
---|
9212 | ;; |
---|
9213 | *) |
---|
9214 | shlibpath_overrides_runpath=yes |
---|
9215 | ;; |
---|
9216 | esac |
---|
9217 | else |
---|
9218 | shlibpath_overrides_runpath=yes |
---|
9219 | fi |
---|
9220 | ;; |
---|
9221 | |
---|
9222 | os2*) |
---|
9223 | libname_spec='$name' |
---|
9224 | shrext_cmds=".dll" |
---|
9225 | need_lib_prefix=no |
---|
9226 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
9227 | dynamic_linker='OS/2 ld.exe' |
---|
9228 | shlibpath_var=LIBPATH |
---|
9229 | ;; |
---|
9230 | |
---|
9231 | osf3* | osf4* | osf5*) |
---|
9232 | version_type=osf |
---|
9233 | need_lib_prefix=no |
---|
9234 | need_version=no |
---|
9235 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9236 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9237 | shlibpath_var=LD_LIBRARY_PATH |
---|
9238 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
9239 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
9240 | ;; |
---|
9241 | |
---|
9242 | solaris*) |
---|
9243 | version_type=linux |
---|
9244 | need_lib_prefix=no |
---|
9245 | need_version=no |
---|
9246 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9247 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9248 | shlibpath_var=LD_LIBRARY_PATH |
---|
9249 | shlibpath_overrides_runpath=yes |
---|
9250 | hardcode_into_libs=yes |
---|
9251 | # ldd complains unless libraries are executable |
---|
9252 | postinstall_cmds='chmod +x $lib' |
---|
9253 | ;; |
---|
9254 | |
---|
9255 | sunos4*) |
---|
9256 | version_type=sunos |
---|
9257 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
9258 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
9259 | shlibpath_var=LD_LIBRARY_PATH |
---|
9260 | shlibpath_overrides_runpath=yes |
---|
9261 | if test "$with_gnu_ld" = yes; then |
---|
9262 | need_lib_prefix=no |
---|
9263 | fi |
---|
9264 | need_version=yes |
---|
9265 | ;; |
---|
9266 | |
---|
9267 | sysv4 | sysv4.3*) |
---|
9268 | version_type=linux |
---|
9269 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9270 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9271 | shlibpath_var=LD_LIBRARY_PATH |
---|
9272 | case $host_vendor in |
---|
9273 | sni) |
---|
9274 | shlibpath_overrides_runpath=no |
---|
9275 | need_lib_prefix=no |
---|
9276 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
9277 | runpath_var=LD_RUN_PATH |
---|
9278 | ;; |
---|
9279 | siemens) |
---|
9280 | need_lib_prefix=no |
---|
9281 | ;; |
---|
9282 | motorola) |
---|
9283 | need_lib_prefix=no |
---|
9284 | need_version=no |
---|
9285 | shlibpath_overrides_runpath=no |
---|
9286 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
9287 | ;; |
---|
9288 | esac |
---|
9289 | ;; |
---|
9290 | |
---|
9291 | sysv4*MP*) |
---|
9292 | if test -d /usr/nec ;then |
---|
9293 | version_type=linux |
---|
9294 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
9295 | soname_spec='$libname${shared_ext}.$major' |
---|
9296 | shlibpath_var=LD_LIBRARY_PATH |
---|
9297 | fi |
---|
9298 | ;; |
---|
9299 | |
---|
9300 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
---|
9301 | version_type=freebsd-elf |
---|
9302 | need_lib_prefix=no |
---|
9303 | need_version=no |
---|
9304 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
9305 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9306 | shlibpath_var=LD_LIBRARY_PATH |
---|
9307 | hardcode_into_libs=yes |
---|
9308 | if test "$with_gnu_ld" = yes; then |
---|
9309 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
---|
9310 | shlibpath_overrides_runpath=no |
---|
9311 | else |
---|
9312 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
---|
9313 | shlibpath_overrides_runpath=yes |
---|
9314 | case $host_os in |
---|
9315 | sco3.2v5*) |
---|
9316 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
---|
9317 | ;; |
---|
9318 | esac |
---|
9319 | fi |
---|
9320 | sys_lib_dlsearch_path_spec='/usr/lib' |
---|
9321 | ;; |
---|
9322 | |
---|
9323 | uts4*) |
---|
9324 | version_type=linux |
---|
9325 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9326 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9327 | shlibpath_var=LD_LIBRARY_PATH |
---|
9328 | ;; |
---|
9329 | |
---|
9330 | *) |
---|
9331 | dynamic_linker=no |
---|
9332 | ;; |
---|
9333 | esac |
---|
9334 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
---|
9335 | echo "${ECHO_T}$dynamic_linker" >&6 |
---|
9336 | test "$dynamic_linker" = no && can_build_shared=no |
---|
9337 | |
---|
9338 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
9339 | if test "$GCC" = yes; then |
---|
9340 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
9341 | fi |
---|
9342 | |
---|
9343 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
---|
9344 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
---|
9345 | hardcode_action= |
---|
9346 | if test -n "$hardcode_libdir_flag_spec" || \ |
---|
9347 | test -n "$runpath_var" || \ |
---|
9348 | test "X$hardcode_automatic" = "Xyes" ; then |
---|
9349 | |
---|
9350 | # We can hardcode non-existant directories. |
---|
9351 | if test "$hardcode_direct" != no && |
---|
9352 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
9353 | # have to relink, otherwise we might link with an installed library |
---|
9354 | # when we should be linking with a yet-to-be-installed one |
---|
9355 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
---|
9356 | test "$hardcode_minus_L" != no; then |
---|
9357 | # Linking always hardcodes the temporary library directory. |
---|
9358 | hardcode_action=relink |
---|
9359 | else |
---|
9360 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
9361 | hardcode_action=immediate |
---|
9362 | fi |
---|
9363 | else |
---|
9364 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
9365 | # directories. |
---|
9366 | hardcode_action=unsupported |
---|
9367 | fi |
---|
9368 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
---|
9369 | echo "${ECHO_T}$hardcode_action" >&6 |
---|
9370 | |
---|
9371 | if test "$hardcode_action" = relink; then |
---|
9372 | # Fast installation is not supported |
---|
9373 | enable_fast_install=no |
---|
9374 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
9375 | test "$enable_shared" = no; then |
---|
9376 | # Fast installation is not necessary |
---|
9377 | enable_fast_install=needless |
---|
9378 | fi |
---|
9379 | |
---|
9380 | striplib= |
---|
9381 | old_striplib= |
---|
9382 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
---|
9383 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
---|
9384 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
---|
9385 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
---|
9386 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
---|
9387 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
9388 | echo "${ECHO_T}yes" >&6 |
---|
9389 | else |
---|
9390 | # FIXME - insert some real tests, host_os isn't really good enough |
---|
9391 | case $host_os in |
---|
9392 | darwin*) |
---|
9393 | if test -n "$STRIP" ; then |
---|
9394 | striplib="$STRIP -x" |
---|
9395 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
9396 | echo "${ECHO_T}yes" >&6 |
---|
9397 | else |
---|
9398 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9399 | echo "${ECHO_T}no" >&6 |
---|
9400 | fi |
---|
9401 | ;; |
---|
9402 | *) |
---|
9403 | echo "$as_me:$LINENO: result: no" >&5 |
---|
9404 | echo "${ECHO_T}no" >&6 |
---|
9405 | ;; |
---|
9406 | esac |
---|
9407 | fi |
---|
9408 | |
---|
9409 | if test "x$enable_dlopen" != xyes; then |
---|
9410 | enable_dlopen=unknown |
---|
9411 | enable_dlopen_self=unknown |
---|
9412 | enable_dlopen_self_static=unknown |
---|
9413 | else |
---|
9414 | lt_cv_dlopen=no |
---|
9415 | lt_cv_dlopen_libs= |
---|
9416 | |
---|
9417 | case $host_os in |
---|
9418 | beos*) |
---|
9419 | lt_cv_dlopen="load_add_on" |
---|
9420 | lt_cv_dlopen_libs= |
---|
9421 | lt_cv_dlopen_self=yes |
---|
9422 | ;; |
---|
9423 | |
---|
9424 | mingw* | pw32*) |
---|
9425 | lt_cv_dlopen="LoadLibrary" |
---|
9426 | lt_cv_dlopen_libs= |
---|
9427 | ;; |
---|
9428 | |
---|
9429 | cygwin*) |
---|
9430 | lt_cv_dlopen="dlopen" |
---|
9431 | lt_cv_dlopen_libs= |
---|
9432 | ;; |
---|
9433 | |
---|
9434 | darwin*) |
---|
9435 | # if libdl is installed we need to link against it |
---|
9436 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
9437 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
---|
9438 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
9439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9440 | else |
---|
9441 | ac_check_lib_save_LIBS=$LIBS |
---|
9442 | LIBS="-ldl $LIBS" |
---|
9443 | cat >conftest.$ac_ext <<_ACEOF |
---|
9444 | /* confdefs.h. */ |
---|
9445 | _ACEOF |
---|
9446 | cat confdefs.h >>conftest.$ac_ext |
---|
9447 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9448 | /* end confdefs.h. */ |
---|
9449 | |
---|
9450 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
9451 | #ifdef __cplusplus |
---|
9452 | extern "C" |
---|
9453 | #endif |
---|
9454 | /* We use char because int might match the return type of a gcc2 |
---|
9455 | builtin and then its argument prototype would still apply. */ |
---|
9456 | char dlopen (); |
---|
9457 | int |
---|
9458 | main () |
---|
9459 | { |
---|
9460 | dlopen (); |
---|
9461 | ; |
---|
9462 | return 0; |
---|
9463 | } |
---|
9464 | _ACEOF |
---|
9465 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9466 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9467 | (eval $ac_link) 2>conftest.er1 |
---|
9468 | ac_status=$? |
---|
9469 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9470 | rm -f conftest.er1 |
---|
9471 | cat conftest.err >&5 |
---|
9472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9473 | (exit $ac_status); } && |
---|
9474 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9475 | || test ! -s conftest.err' |
---|
9476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9477 | (eval $ac_try) 2>&5 |
---|
9478 | ac_status=$? |
---|
9479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9480 | (exit $ac_status); }; } && |
---|
9481 | { ac_try='test -s conftest$ac_exeext' |
---|
9482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9483 | (eval $ac_try) 2>&5 |
---|
9484 | ac_status=$? |
---|
9485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9486 | (exit $ac_status); }; }; then |
---|
9487 | ac_cv_lib_dl_dlopen=yes |
---|
9488 | else |
---|
9489 | echo "$as_me: failed program was:" >&5 |
---|
9490 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9491 | |
---|
9492 | ac_cv_lib_dl_dlopen=no |
---|
9493 | fi |
---|
9494 | rm -f conftest.err conftest.$ac_objext \ |
---|
9495 | conftest$ac_exeext conftest.$ac_ext |
---|
9496 | LIBS=$ac_check_lib_save_LIBS |
---|
9497 | fi |
---|
9498 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
9499 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
---|
9500 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
9501 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
9502 | else |
---|
9503 | |
---|
9504 | lt_cv_dlopen="dyld" |
---|
9505 | lt_cv_dlopen_libs= |
---|
9506 | lt_cv_dlopen_self=yes |
---|
9507 | |
---|
9508 | fi |
---|
9509 | |
---|
9510 | ;; |
---|
9511 | |
---|
9512 | *) |
---|
9513 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
---|
9514 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
---|
9515 | if test "${ac_cv_func_shl_load+set}" = set; then |
---|
9516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9517 | else |
---|
9518 | cat >conftest.$ac_ext <<_ACEOF |
---|
9519 | /* confdefs.h. */ |
---|
9520 | _ACEOF |
---|
9521 | cat confdefs.h >>conftest.$ac_ext |
---|
9522 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9523 | /* end confdefs.h. */ |
---|
9524 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
---|
9525 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
9526 | #define shl_load innocuous_shl_load |
---|
9527 | |
---|
9528 | /* System header to define __stub macros and hopefully few prototypes, |
---|
9529 | which can conflict with char shl_load (); below. |
---|
9530 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
9531 | <limits.h> exists even on freestanding compilers. */ |
---|
9532 | |
---|
9533 | #ifdef __STDC__ |
---|
9534 | # include <limits.h> |
---|
9535 | #else |
---|
9536 | # include <assert.h> |
---|
9537 | #endif |
---|
9538 | |
---|
9539 | #undef shl_load |
---|
9540 | |
---|
9541 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
9542 | #ifdef __cplusplus |
---|
9543 | extern "C" |
---|
9544 | { |
---|
9545 | #endif |
---|
9546 | /* We use char because int might match the return type of a gcc2 |
---|
9547 | builtin and then its argument prototype would still apply. */ |
---|
9548 | char shl_load (); |
---|
9549 | /* The GNU C library defines this for functions which it implements |
---|
9550 | to always fail with ENOSYS. Some functions are actually named |
---|
9551 | something starting with __ and the normal name is an alias. */ |
---|
9552 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
---|
9553 | choke me |
---|
9554 | #else |
---|
9555 | char (*f) () = shl_load; |
---|
9556 | #endif |
---|
9557 | #ifdef __cplusplus |
---|
9558 | } |
---|
9559 | #endif |
---|
9560 | |
---|
9561 | int |
---|
9562 | main () |
---|
9563 | { |
---|
9564 | return f != shl_load; |
---|
9565 | ; |
---|
9566 | return 0; |
---|
9567 | } |
---|
9568 | _ACEOF |
---|
9569 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9571 | (eval $ac_link) 2>conftest.er1 |
---|
9572 | ac_status=$? |
---|
9573 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9574 | rm -f conftest.er1 |
---|
9575 | cat conftest.err >&5 |
---|
9576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9577 | (exit $ac_status); } && |
---|
9578 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9579 | || test ! -s conftest.err' |
---|
9580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9581 | (eval $ac_try) 2>&5 |
---|
9582 | ac_status=$? |
---|
9583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9584 | (exit $ac_status); }; } && |
---|
9585 | { ac_try='test -s conftest$ac_exeext' |
---|
9586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9587 | (eval $ac_try) 2>&5 |
---|
9588 | ac_status=$? |
---|
9589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9590 | (exit $ac_status); }; }; then |
---|
9591 | ac_cv_func_shl_load=yes |
---|
9592 | else |
---|
9593 | echo "$as_me: failed program was:" >&5 |
---|
9594 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9595 | |
---|
9596 | ac_cv_func_shl_load=no |
---|
9597 | fi |
---|
9598 | rm -f conftest.err conftest.$ac_objext \ |
---|
9599 | conftest$ac_exeext conftest.$ac_ext |
---|
9600 | fi |
---|
9601 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
---|
9602 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
---|
9603 | if test $ac_cv_func_shl_load = yes; then |
---|
9604 | lt_cv_dlopen="shl_load" |
---|
9605 | else |
---|
9606 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
---|
9607 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
---|
9608 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
---|
9609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9610 | else |
---|
9611 | ac_check_lib_save_LIBS=$LIBS |
---|
9612 | LIBS="-ldld $LIBS" |
---|
9613 | cat >conftest.$ac_ext <<_ACEOF |
---|
9614 | /* confdefs.h. */ |
---|
9615 | _ACEOF |
---|
9616 | cat confdefs.h >>conftest.$ac_ext |
---|
9617 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9618 | /* end confdefs.h. */ |
---|
9619 | |
---|
9620 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
9621 | #ifdef __cplusplus |
---|
9622 | extern "C" |
---|
9623 | #endif |
---|
9624 | /* We use char because int might match the return type of a gcc2 |
---|
9625 | builtin and then its argument prototype would still apply. */ |
---|
9626 | char shl_load (); |
---|
9627 | int |
---|
9628 | main () |
---|
9629 | { |
---|
9630 | shl_load (); |
---|
9631 | ; |
---|
9632 | return 0; |
---|
9633 | } |
---|
9634 | _ACEOF |
---|
9635 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9636 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9637 | (eval $ac_link) 2>conftest.er1 |
---|
9638 | ac_status=$? |
---|
9639 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9640 | rm -f conftest.er1 |
---|
9641 | cat conftest.err >&5 |
---|
9642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9643 | (exit $ac_status); } && |
---|
9644 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9645 | || test ! -s conftest.err' |
---|
9646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9647 | (eval $ac_try) 2>&5 |
---|
9648 | ac_status=$? |
---|
9649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9650 | (exit $ac_status); }; } && |
---|
9651 | { ac_try='test -s conftest$ac_exeext' |
---|
9652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9653 | (eval $ac_try) 2>&5 |
---|
9654 | ac_status=$? |
---|
9655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9656 | (exit $ac_status); }; }; then |
---|
9657 | ac_cv_lib_dld_shl_load=yes |
---|
9658 | else |
---|
9659 | echo "$as_me: failed program was:" >&5 |
---|
9660 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9661 | |
---|
9662 | ac_cv_lib_dld_shl_load=no |
---|
9663 | fi |
---|
9664 | rm -f conftest.err conftest.$ac_objext \ |
---|
9665 | conftest$ac_exeext conftest.$ac_ext |
---|
9666 | LIBS=$ac_check_lib_save_LIBS |
---|
9667 | fi |
---|
9668 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
9669 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
---|
9670 | if test $ac_cv_lib_dld_shl_load = yes; then |
---|
9671 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
---|
9672 | else |
---|
9673 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
---|
9674 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
---|
9675 | if test "${ac_cv_func_dlopen+set}" = set; then |
---|
9676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9677 | else |
---|
9678 | cat >conftest.$ac_ext <<_ACEOF |
---|
9679 | /* confdefs.h. */ |
---|
9680 | _ACEOF |
---|
9681 | cat confdefs.h >>conftest.$ac_ext |
---|
9682 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9683 | /* end confdefs.h. */ |
---|
9684 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
---|
9685 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
9686 | #define dlopen innocuous_dlopen |
---|
9687 | |
---|
9688 | /* System header to define __stub macros and hopefully few prototypes, |
---|
9689 | which can conflict with char dlopen (); below. |
---|
9690 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
9691 | <limits.h> exists even on freestanding compilers. */ |
---|
9692 | |
---|
9693 | #ifdef __STDC__ |
---|
9694 | # include <limits.h> |
---|
9695 | #else |
---|
9696 | # include <assert.h> |
---|
9697 | #endif |
---|
9698 | |
---|
9699 | #undef dlopen |
---|
9700 | |
---|
9701 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
9702 | #ifdef __cplusplus |
---|
9703 | extern "C" |
---|
9704 | { |
---|
9705 | #endif |
---|
9706 | /* We use char because int might match the return type of a gcc2 |
---|
9707 | builtin and then its argument prototype would still apply. */ |
---|
9708 | char dlopen (); |
---|
9709 | /* The GNU C library defines this for functions which it implements |
---|
9710 | to always fail with ENOSYS. Some functions are actually named |
---|
9711 | something starting with __ and the normal name is an alias. */ |
---|
9712 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
---|
9713 | choke me |
---|
9714 | #else |
---|
9715 | char (*f) () = dlopen; |
---|
9716 | #endif |
---|
9717 | #ifdef __cplusplus |
---|
9718 | } |
---|
9719 | #endif |
---|
9720 | |
---|
9721 | int |
---|
9722 | main () |
---|
9723 | { |
---|
9724 | return f != dlopen; |
---|
9725 | ; |
---|
9726 | return 0; |
---|
9727 | } |
---|
9728 | _ACEOF |
---|
9729 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9730 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9731 | (eval $ac_link) 2>conftest.er1 |
---|
9732 | ac_status=$? |
---|
9733 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9734 | rm -f conftest.er1 |
---|
9735 | cat conftest.err >&5 |
---|
9736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9737 | (exit $ac_status); } && |
---|
9738 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9739 | || test ! -s conftest.err' |
---|
9740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9741 | (eval $ac_try) 2>&5 |
---|
9742 | ac_status=$? |
---|
9743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9744 | (exit $ac_status); }; } && |
---|
9745 | { ac_try='test -s conftest$ac_exeext' |
---|
9746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9747 | (eval $ac_try) 2>&5 |
---|
9748 | ac_status=$? |
---|
9749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9750 | (exit $ac_status); }; }; then |
---|
9751 | ac_cv_func_dlopen=yes |
---|
9752 | else |
---|
9753 | echo "$as_me: failed program was:" >&5 |
---|
9754 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9755 | |
---|
9756 | ac_cv_func_dlopen=no |
---|
9757 | fi |
---|
9758 | rm -f conftest.err conftest.$ac_objext \ |
---|
9759 | conftest$ac_exeext conftest.$ac_ext |
---|
9760 | fi |
---|
9761 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
---|
9762 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
---|
9763 | if test $ac_cv_func_dlopen = yes; then |
---|
9764 | lt_cv_dlopen="dlopen" |
---|
9765 | else |
---|
9766 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
9767 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
---|
9768 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
9769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9770 | else |
---|
9771 | ac_check_lib_save_LIBS=$LIBS |
---|
9772 | LIBS="-ldl $LIBS" |
---|
9773 | cat >conftest.$ac_ext <<_ACEOF |
---|
9774 | /* confdefs.h. */ |
---|
9775 | _ACEOF |
---|
9776 | cat confdefs.h >>conftest.$ac_ext |
---|
9777 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9778 | /* end confdefs.h. */ |
---|
9779 | |
---|
9780 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
9781 | #ifdef __cplusplus |
---|
9782 | extern "C" |
---|
9783 | #endif |
---|
9784 | /* We use char because int might match the return type of a gcc2 |
---|
9785 | builtin and then its argument prototype would still apply. */ |
---|
9786 | char dlopen (); |
---|
9787 | int |
---|
9788 | main () |
---|
9789 | { |
---|
9790 | dlopen (); |
---|
9791 | ; |
---|
9792 | return 0; |
---|
9793 | } |
---|
9794 | _ACEOF |
---|
9795 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9796 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9797 | (eval $ac_link) 2>conftest.er1 |
---|
9798 | ac_status=$? |
---|
9799 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9800 | rm -f conftest.er1 |
---|
9801 | cat conftest.err >&5 |
---|
9802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9803 | (exit $ac_status); } && |
---|
9804 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9805 | || test ! -s conftest.err' |
---|
9806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9807 | (eval $ac_try) 2>&5 |
---|
9808 | ac_status=$? |
---|
9809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9810 | (exit $ac_status); }; } && |
---|
9811 | { ac_try='test -s conftest$ac_exeext' |
---|
9812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9813 | (eval $ac_try) 2>&5 |
---|
9814 | ac_status=$? |
---|
9815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9816 | (exit $ac_status); }; }; then |
---|
9817 | ac_cv_lib_dl_dlopen=yes |
---|
9818 | else |
---|
9819 | echo "$as_me: failed program was:" >&5 |
---|
9820 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9821 | |
---|
9822 | ac_cv_lib_dl_dlopen=no |
---|
9823 | fi |
---|
9824 | rm -f conftest.err conftest.$ac_objext \ |
---|
9825 | conftest$ac_exeext conftest.$ac_ext |
---|
9826 | LIBS=$ac_check_lib_save_LIBS |
---|
9827 | fi |
---|
9828 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
9829 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
---|
9830 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
9831 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
9832 | else |
---|
9833 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
---|
9834 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
---|
9835 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
---|
9836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9837 | else |
---|
9838 | ac_check_lib_save_LIBS=$LIBS |
---|
9839 | LIBS="-lsvld $LIBS" |
---|
9840 | cat >conftest.$ac_ext <<_ACEOF |
---|
9841 | /* confdefs.h. */ |
---|
9842 | _ACEOF |
---|
9843 | cat confdefs.h >>conftest.$ac_ext |
---|
9844 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9845 | /* end confdefs.h. */ |
---|
9846 | |
---|
9847 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
9848 | #ifdef __cplusplus |
---|
9849 | extern "C" |
---|
9850 | #endif |
---|
9851 | /* We use char because int might match the return type of a gcc2 |
---|
9852 | builtin and then its argument prototype would still apply. */ |
---|
9853 | char dlopen (); |
---|
9854 | int |
---|
9855 | main () |
---|
9856 | { |
---|
9857 | dlopen (); |
---|
9858 | ; |
---|
9859 | return 0; |
---|
9860 | } |
---|
9861 | _ACEOF |
---|
9862 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9863 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9864 | (eval $ac_link) 2>conftest.er1 |
---|
9865 | ac_status=$? |
---|
9866 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9867 | rm -f conftest.er1 |
---|
9868 | cat conftest.err >&5 |
---|
9869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9870 | (exit $ac_status); } && |
---|
9871 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9872 | || test ! -s conftest.err' |
---|
9873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9874 | (eval $ac_try) 2>&5 |
---|
9875 | ac_status=$? |
---|
9876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9877 | (exit $ac_status); }; } && |
---|
9878 | { ac_try='test -s conftest$ac_exeext' |
---|
9879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9880 | (eval $ac_try) 2>&5 |
---|
9881 | ac_status=$? |
---|
9882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9883 | (exit $ac_status); }; }; then |
---|
9884 | ac_cv_lib_svld_dlopen=yes |
---|
9885 | else |
---|
9886 | echo "$as_me: failed program was:" >&5 |
---|
9887 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9888 | |
---|
9889 | ac_cv_lib_svld_dlopen=no |
---|
9890 | fi |
---|
9891 | rm -f conftest.err conftest.$ac_objext \ |
---|
9892 | conftest$ac_exeext conftest.$ac_ext |
---|
9893 | LIBS=$ac_check_lib_save_LIBS |
---|
9894 | fi |
---|
9895 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
---|
9896 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
---|
9897 | if test $ac_cv_lib_svld_dlopen = yes; then |
---|
9898 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
---|
9899 | else |
---|
9900 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
---|
9901 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
---|
9902 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
---|
9903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9904 | else |
---|
9905 | ac_check_lib_save_LIBS=$LIBS |
---|
9906 | LIBS="-ldld $LIBS" |
---|
9907 | cat >conftest.$ac_ext <<_ACEOF |
---|
9908 | /* confdefs.h. */ |
---|
9909 | _ACEOF |
---|
9910 | cat confdefs.h >>conftest.$ac_ext |
---|
9911 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9912 | /* end confdefs.h. */ |
---|
9913 | |
---|
9914 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
9915 | #ifdef __cplusplus |
---|
9916 | extern "C" |
---|
9917 | #endif |
---|
9918 | /* We use char because int might match the return type of a gcc2 |
---|
9919 | builtin and then its argument prototype would still apply. */ |
---|
9920 | char dld_link (); |
---|
9921 | int |
---|
9922 | main () |
---|
9923 | { |
---|
9924 | dld_link (); |
---|
9925 | ; |
---|
9926 | return 0; |
---|
9927 | } |
---|
9928 | _ACEOF |
---|
9929 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9930 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9931 | (eval $ac_link) 2>conftest.er1 |
---|
9932 | ac_status=$? |
---|
9933 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9934 | rm -f conftest.er1 |
---|
9935 | cat conftest.err >&5 |
---|
9936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9937 | (exit $ac_status); } && |
---|
9938 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9939 | || test ! -s conftest.err' |
---|
9940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9941 | (eval $ac_try) 2>&5 |
---|
9942 | ac_status=$? |
---|
9943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9944 | (exit $ac_status); }; } && |
---|
9945 | { ac_try='test -s conftest$ac_exeext' |
---|
9946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9947 | (eval $ac_try) 2>&5 |
---|
9948 | ac_status=$? |
---|
9949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9950 | (exit $ac_status); }; }; then |
---|
9951 | ac_cv_lib_dld_dld_link=yes |
---|
9952 | else |
---|
9953 | echo "$as_me: failed program was:" >&5 |
---|
9954 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9955 | |
---|
9956 | ac_cv_lib_dld_dld_link=no |
---|
9957 | fi |
---|
9958 | rm -f conftest.err conftest.$ac_objext \ |
---|
9959 | conftest$ac_exeext conftest.$ac_ext |
---|
9960 | LIBS=$ac_check_lib_save_LIBS |
---|
9961 | fi |
---|
9962 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
---|
9963 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
---|
9964 | if test $ac_cv_lib_dld_dld_link = yes; then |
---|
9965 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
---|
9966 | fi |
---|
9967 | |
---|
9968 | |
---|
9969 | fi |
---|
9970 | |
---|
9971 | |
---|
9972 | fi |
---|
9973 | |
---|
9974 | |
---|
9975 | fi |
---|
9976 | |
---|
9977 | |
---|
9978 | fi |
---|
9979 | |
---|
9980 | |
---|
9981 | fi |
---|
9982 | |
---|
9983 | ;; |
---|
9984 | esac |
---|
9985 | |
---|
9986 | if test "x$lt_cv_dlopen" != xno; then |
---|
9987 | enable_dlopen=yes |
---|
9988 | else |
---|
9989 | enable_dlopen=no |
---|
9990 | fi |
---|
9991 | |
---|
9992 | case $lt_cv_dlopen in |
---|
9993 | dlopen) |
---|
9994 | save_CPPFLAGS="$CPPFLAGS" |
---|
9995 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
---|
9996 | |
---|
9997 | save_LDFLAGS="$LDFLAGS" |
---|
9998 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
---|
9999 | |
---|
10000 | save_LIBS="$LIBS" |
---|
10001 | LIBS="$lt_cv_dlopen_libs $LIBS" |
---|
10002 | |
---|
10003 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
---|
10004 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
---|
10005 | if test "${lt_cv_dlopen_self+set}" = set; then |
---|
10006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10007 | else |
---|
10008 | if test "$cross_compiling" = yes; then : |
---|
10009 | lt_cv_dlopen_self=cross |
---|
10010 | else |
---|
10011 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
10012 | lt_status=$lt_dlunknown |
---|
10013 | cat > conftest.$ac_ext <<EOF |
---|
10014 | #line 10014 "configure" |
---|
10015 | #include "confdefs.h" |
---|
10016 | |
---|
10017 | #if HAVE_DLFCN_H |
---|
10018 | #include <dlfcn.h> |
---|
10019 | #endif |
---|
10020 | |
---|
10021 | #include <stdio.h> |
---|
10022 | |
---|
10023 | #ifdef RTLD_GLOBAL |
---|
10024 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
10025 | #else |
---|
10026 | # ifdef DL_GLOBAL |
---|
10027 | # define LT_DLGLOBAL DL_GLOBAL |
---|
10028 | # else |
---|
10029 | # define LT_DLGLOBAL 0 |
---|
10030 | # endif |
---|
10031 | #endif |
---|
10032 | |
---|
10033 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
10034 | find out it does not work in some platform. */ |
---|
10035 | #ifndef LT_DLLAZY_OR_NOW |
---|
10036 | # ifdef RTLD_LAZY |
---|
10037 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
10038 | # else |
---|
10039 | # ifdef DL_LAZY |
---|
10040 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
10041 | # else |
---|
10042 | # ifdef RTLD_NOW |
---|
10043 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
10044 | # else |
---|
10045 | # ifdef DL_NOW |
---|
10046 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
10047 | # else |
---|
10048 | # define LT_DLLAZY_OR_NOW 0 |
---|
10049 | # endif |
---|
10050 | # endif |
---|
10051 | # endif |
---|
10052 | # endif |
---|
10053 | #endif |
---|
10054 | |
---|
10055 | #ifdef __cplusplus |
---|
10056 | extern "C" void exit (int); |
---|
10057 | #endif |
---|
10058 | |
---|
10059 | void fnord() { int i=42;} |
---|
10060 | int main () |
---|
10061 | { |
---|
10062 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
10063 | int status = $lt_dlunknown; |
---|
10064 | |
---|
10065 | if (self) |
---|
10066 | { |
---|
10067 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
10068 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
10069 | /* dlclose (self); */ |
---|
10070 | } |
---|
10071 | else |
---|
10072 | puts (dlerror ()); |
---|
10073 | |
---|
10074 | exit (status); |
---|
10075 | } |
---|
10076 | EOF |
---|
10077 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10078 | (eval $ac_link) 2>&5 |
---|
10079 | ac_status=$? |
---|
10080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10081 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
10082 | (./conftest; exit; ) >&5 2>/dev/null |
---|
10083 | lt_status=$? |
---|
10084 | case x$lt_status in |
---|
10085 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
---|
10086 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
---|
10087 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
---|
10088 | esac |
---|
10089 | else : |
---|
10090 | # compilation failed |
---|
10091 | lt_cv_dlopen_self=no |
---|
10092 | fi |
---|
10093 | fi |
---|
10094 | rm -fr conftest* |
---|
10095 | |
---|
10096 | |
---|
10097 | fi |
---|
10098 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
---|
10099 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
---|
10100 | |
---|
10101 | if test "x$lt_cv_dlopen_self" = xyes; then |
---|
10102 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
---|
10103 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
---|
10104 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
---|
10105 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
---|
10106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10107 | else |
---|
10108 | if test "$cross_compiling" = yes; then : |
---|
10109 | lt_cv_dlopen_self_static=cross |
---|
10110 | else |
---|
10111 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
10112 | lt_status=$lt_dlunknown |
---|
10113 | cat > conftest.$ac_ext <<EOF |
---|
10114 | #line 10114 "configure" |
---|
10115 | #include "confdefs.h" |
---|
10116 | |
---|
10117 | #if HAVE_DLFCN_H |
---|
10118 | #include <dlfcn.h> |
---|
10119 | #endif |
---|
10120 | |
---|
10121 | #include <stdio.h> |
---|
10122 | |
---|
10123 | #ifdef RTLD_GLOBAL |
---|
10124 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
10125 | #else |
---|
10126 | # ifdef DL_GLOBAL |
---|
10127 | # define LT_DLGLOBAL DL_GLOBAL |
---|
10128 | # else |
---|
10129 | # define LT_DLGLOBAL 0 |
---|
10130 | # endif |
---|
10131 | #endif |
---|
10132 | |
---|
10133 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
10134 | find out it does not work in some platform. */ |
---|
10135 | #ifndef LT_DLLAZY_OR_NOW |
---|
10136 | # ifdef RTLD_LAZY |
---|
10137 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
10138 | # else |
---|
10139 | # ifdef DL_LAZY |
---|
10140 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
10141 | # else |
---|
10142 | # ifdef RTLD_NOW |
---|
10143 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
10144 | # else |
---|
10145 | # ifdef DL_NOW |
---|
10146 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
10147 | # else |
---|
10148 | # define LT_DLLAZY_OR_NOW 0 |
---|
10149 | # endif |
---|
10150 | # endif |
---|
10151 | # endif |
---|
10152 | # endif |
---|
10153 | #endif |
---|
10154 | |
---|
10155 | #ifdef __cplusplus |
---|
10156 | extern "C" void exit (int); |
---|
10157 | #endif |
---|
10158 | |
---|
10159 | void fnord() { int i=42;} |
---|
10160 | int main () |
---|
10161 | { |
---|
10162 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
10163 | int status = $lt_dlunknown; |
---|
10164 | |
---|
10165 | if (self) |
---|
10166 | { |
---|
10167 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
10168 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
10169 | /* dlclose (self); */ |
---|
10170 | } |
---|
10171 | else |
---|
10172 | puts (dlerror ()); |
---|
10173 | |
---|
10174 | exit (status); |
---|
10175 | } |
---|
10176 | EOF |
---|
10177 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10178 | (eval $ac_link) 2>&5 |
---|
10179 | ac_status=$? |
---|
10180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10181 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
10182 | (./conftest; exit; ) >&5 2>/dev/null |
---|
10183 | lt_status=$? |
---|
10184 | case x$lt_status in |
---|
10185 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
10186 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
10187 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
---|
10188 | esac |
---|
10189 | else : |
---|
10190 | # compilation failed |
---|
10191 | lt_cv_dlopen_self_static=no |
---|
10192 | fi |
---|
10193 | fi |
---|
10194 | rm -fr conftest* |
---|
10195 | |
---|
10196 | |
---|
10197 | fi |
---|
10198 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
---|
10199 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
---|
10200 | fi |
---|
10201 | |
---|
10202 | CPPFLAGS="$save_CPPFLAGS" |
---|
10203 | LDFLAGS="$save_LDFLAGS" |
---|
10204 | LIBS="$save_LIBS" |
---|
10205 | ;; |
---|
10206 | esac |
---|
10207 | |
---|
10208 | case $lt_cv_dlopen_self in |
---|
10209 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
---|
10210 | *) enable_dlopen_self=unknown ;; |
---|
10211 | esac |
---|
10212 | |
---|
10213 | case $lt_cv_dlopen_self_static in |
---|
10214 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
---|
10215 | *) enable_dlopen_self_static=unknown ;; |
---|
10216 | esac |
---|
10217 | fi |
---|
10218 | |
---|
10219 | |
---|
10220 | # Report which library types will actually be built |
---|
10221 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
---|
10222 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
---|
10223 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
---|
10224 | echo "${ECHO_T}$can_build_shared" >&6 |
---|
10225 | |
---|
10226 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
---|
10227 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
---|
10228 | test "$can_build_shared" = "no" && enable_shared=no |
---|
10229 | |
---|
10230 | # On AIX, shared libraries and static libraries use the same namespace, and |
---|
10231 | # are all built from PIC. |
---|
10232 | case $host_os in |
---|
10233 | aix3*) |
---|
10234 | test "$enable_shared" = yes && enable_static=no |
---|
10235 | if test -n "$RANLIB"; then |
---|
10236 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
---|
10237 | postinstall_cmds='$RANLIB $lib' |
---|
10238 | fi |
---|
10239 | ;; |
---|
10240 | |
---|
10241 | aix4* | aix5*) |
---|
10242 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
---|
10243 | test "$enable_shared" = yes && enable_static=no |
---|
10244 | fi |
---|
10245 | ;; |
---|
10246 | esac |
---|
10247 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
---|
10248 | echo "${ECHO_T}$enable_shared" >&6 |
---|
10249 | |
---|
10250 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
---|
10251 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
---|
10252 | # Make sure either enable_shared or enable_static is yes. |
---|
10253 | test "$enable_shared" = yes || enable_static=yes |
---|
10254 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
---|
10255 | echo "${ECHO_T}$enable_static" >&6 |
---|
10256 | |
---|
10257 | # The else clause should only fire when bootstrapping the |
---|
10258 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
10259 | # with your package, and you will get complaints that there are |
---|
10260 | # no rules to generate ltmain.sh. |
---|
10261 | if test -f "$ltmain"; then |
---|
10262 | # See if we are running on zsh, and set the options which allow our commands through |
---|
10263 | # without removal of \ escapes. |
---|
10264 | if test -n "${ZSH_VERSION+set}" ; then |
---|
10265 | setopt NO_GLOB_SUBST |
---|
10266 | fi |
---|
10267 | # Now quote all the things that may contain metacharacters while being |
---|
10268 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
10269 | # variables and quote the copies for generation of the libtool script. |
---|
10270 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
---|
10271 | SED SHELL STRIP \ |
---|
10272 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
10273 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
10274 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
10275 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
10276 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
10277 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
10278 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
10279 | compiler \ |
---|
10280 | CC \ |
---|
10281 | LD \ |
---|
10282 | lt_prog_compiler_wl \ |
---|
10283 | lt_prog_compiler_pic \ |
---|
10284 | lt_prog_compiler_static \ |
---|
10285 | lt_prog_compiler_no_builtin_flag \ |
---|
10286 | export_dynamic_flag_spec \ |
---|
10287 | thread_safe_flag_spec \ |
---|
10288 | whole_archive_flag_spec \ |
---|
10289 | enable_shared_with_static_runtimes \ |
---|
10290 | old_archive_cmds \ |
---|
10291 | old_archive_from_new_cmds \ |
---|
10292 | predep_objects \ |
---|
10293 | postdep_objects \ |
---|
10294 | predeps \ |
---|
10295 | postdeps \ |
---|
10296 | compiler_lib_search_path \ |
---|
10297 | archive_cmds \ |
---|
10298 | archive_expsym_cmds \ |
---|
10299 | postinstall_cmds \ |
---|
10300 | postuninstall_cmds \ |
---|
10301 | old_archive_from_expsyms_cmds \ |
---|
10302 | allow_undefined_flag \ |
---|
10303 | no_undefined_flag \ |
---|
10304 | export_symbols_cmds \ |
---|
10305 | hardcode_libdir_flag_spec \ |
---|
10306 | hardcode_libdir_flag_spec_ld \ |
---|
10307 | hardcode_libdir_separator \ |
---|
10308 | hardcode_automatic \ |
---|
10309 | module_cmds \ |
---|
10310 | module_expsym_cmds \ |
---|
10311 | lt_cv_prog_compiler_c_o \ |
---|
10312 | exclude_expsyms \ |
---|
10313 | include_expsyms; do |
---|
10314 | |
---|
10315 | case $var in |
---|
10316 | old_archive_cmds | \ |
---|
10317 | old_archive_from_new_cmds | \ |
---|
10318 | archive_cmds | \ |
---|
10319 | archive_expsym_cmds | \ |
---|
10320 | module_cmds | \ |
---|
10321 | module_expsym_cmds | \ |
---|
10322 | old_archive_from_expsyms_cmds | \ |
---|
10323 | export_symbols_cmds | \ |
---|
10324 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
10325 | postinstall_cmds | postuninstall_cmds | \ |
---|
10326 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
10327 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
10328 | # Double-quote double-evaled strings. |
---|
10329 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
10330 | ;; |
---|
10331 | *) |
---|
10332 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
10333 | ;; |
---|
10334 | esac |
---|
10335 | done |
---|
10336 | |
---|
10337 | case $lt_echo in |
---|
10338 | *'\$0 --fallback-echo"') |
---|
10339 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
---|
10340 | ;; |
---|
10341 | esac |
---|
10342 | |
---|
10343 | cfgfile="${ofile}T" |
---|
10344 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
---|
10345 | $rm -f "$cfgfile" |
---|
10346 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
---|
10347 | echo "$as_me: creating $ofile" >&6;} |
---|
10348 | |
---|
10349 | cat <<__EOF__ >> "$cfgfile" |
---|
10350 | #! $SHELL |
---|
10351 | |
---|
10352 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
---|
10353 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
---|
10354 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
---|
10355 | # |
---|
10356 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
---|
10357 | # Free Software Foundation, Inc. |
---|
10358 | # |
---|
10359 | # This file is part of GNU Libtool: |
---|
10360 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
---|
10361 | # |
---|
10362 | # This program is free software; you can redistribute it and/or modify |
---|
10363 | # it under the terms of the GNU General Public License as published by |
---|
10364 | # the Free Software Foundation; either version 2 of the License, or |
---|
10365 | # (at your option) any later version. |
---|
10366 | # |
---|
10367 | # This program is distributed in the hope that it will be useful, but |
---|
10368 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
10369 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
10370 | # General Public License for more details. |
---|
10371 | # |
---|
10372 | # You should have received a copy of the GNU General Public License |
---|
10373 | # along with this program; if not, write to the Free Software |
---|
10374 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
---|
10375 | # |
---|
10376 | # As a special exception to the GNU General Public License, if you |
---|
10377 | # distribute this file as part of a program that contains a |
---|
10378 | # configuration script generated by Autoconf, you may include it under |
---|
10379 | # the same distribution terms that you use for the rest of that program. |
---|
10380 | |
---|
10381 | # A sed program that does not truncate output. |
---|
10382 | SED=$lt_SED |
---|
10383 | |
---|
10384 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
---|
10385 | Xsed="$SED -e 1s/^X//" |
---|
10386 | |
---|
10387 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
---|
10388 | # if CDPATH is set. |
---|
10389 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
10390 | |
---|
10391 | # The names of the tagged configurations supported by this script. |
---|
10392 | available_tags= |
---|
10393 | |
---|
10394 | # ### BEGIN LIBTOOL CONFIG |
---|
10395 | |
---|
10396 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
10397 | |
---|
10398 | # Shell to use when invoking shell scripts. |
---|
10399 | SHELL=$lt_SHELL |
---|
10400 | |
---|
10401 | # Whether or not to build shared libraries. |
---|
10402 | build_libtool_libs=$enable_shared |
---|
10403 | |
---|
10404 | # Whether or not to build static libraries. |
---|
10405 | build_old_libs=$enable_static |
---|
10406 | |
---|
10407 | # Whether or not to add -lc for building shared libraries. |
---|
10408 | build_libtool_need_lc=$archive_cmds_need_lc |
---|
10409 | |
---|
10410 | # Whether or not to disallow shared libs when runtime libs are static |
---|
10411 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
---|
10412 | |
---|
10413 | # Whether or not to optimize for fast installation. |
---|
10414 | fast_install=$enable_fast_install |
---|
10415 | |
---|
10416 | # The host system. |
---|
10417 | host_alias=$host_alias |
---|
10418 | host=$host |
---|
10419 | host_os=$host_os |
---|
10420 | |
---|
10421 | # The build system. |
---|
10422 | build_alias=$build_alias |
---|
10423 | build=$build |
---|
10424 | build_os=$build_os |
---|
10425 | |
---|
10426 | # An echo program that does not interpret backslashes. |
---|
10427 | echo=$lt_echo |
---|
10428 | |
---|
10429 | # The archiver. |
---|
10430 | AR=$lt_AR |
---|
10431 | AR_FLAGS=$lt_AR_FLAGS |
---|
10432 | |
---|
10433 | # A C compiler. |
---|
10434 | LTCC=$lt_LTCC |
---|
10435 | |
---|
10436 | # LTCC compiler flags. |
---|
10437 | LTCFLAGS=$lt_LTCFLAGS |
---|
10438 | |
---|
10439 | # A language-specific compiler. |
---|
10440 | CC=$lt_compiler |
---|
10441 | |
---|
10442 | # Is the compiler the GNU C compiler? |
---|
10443 | with_gcc=$GCC |
---|
10444 | |
---|
10445 | # An ERE matcher. |
---|
10446 | EGREP=$lt_EGREP |
---|
10447 | |
---|
10448 | # The linker used to build libraries. |
---|
10449 | LD=$lt_LD |
---|
10450 | |
---|
10451 | # Whether we need hard or soft links. |
---|
10452 | LN_S=$lt_LN_S |
---|
10453 | |
---|
10454 | # A BSD-compatible nm program. |
---|
10455 | NM=$lt_NM |
---|
10456 | |
---|
10457 | # A symbol stripping program |
---|
10458 | STRIP=$lt_STRIP |
---|
10459 | |
---|
10460 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
10461 | MAGIC_CMD=$MAGIC_CMD |
---|
10462 | |
---|
10463 | # Used on cygwin: DLL creation program. |
---|
10464 | DLLTOOL="$DLLTOOL" |
---|
10465 | |
---|
10466 | # Used on cygwin: object dumper. |
---|
10467 | OBJDUMP="$OBJDUMP" |
---|
10468 | |
---|
10469 | # Used on cygwin: assembler. |
---|
10470 | AS="$AS" |
---|
10471 | |
---|
10472 | # The name of the directory that contains temporary libtool files. |
---|
10473 | objdir=$objdir |
---|
10474 | |
---|
10475 | # How to create reloadable object files. |
---|
10476 | reload_flag=$lt_reload_flag |
---|
10477 | reload_cmds=$lt_reload_cmds |
---|
10478 | |
---|
10479 | # How to pass a linker flag through the compiler. |
---|
10480 | wl=$lt_lt_prog_compiler_wl |
---|
10481 | |
---|
10482 | # Object file suffix (normally "o"). |
---|
10483 | objext="$ac_objext" |
---|
10484 | |
---|
10485 | # Old archive suffix (normally "a"). |
---|
10486 | libext="$libext" |
---|
10487 | |
---|
10488 | # Shared library suffix (normally ".so"). |
---|
10489 | shrext_cmds='$shrext_cmds' |
---|
10490 | |
---|
10491 | # Executable file suffix (normally ""). |
---|
10492 | exeext="$exeext" |
---|
10493 | |
---|
10494 | # Additional compiler flags for building library objects. |
---|
10495 | pic_flag=$lt_lt_prog_compiler_pic |
---|
10496 | pic_mode=$pic_mode |
---|
10497 | |
---|
10498 | # What is the maximum length of a command? |
---|
10499 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
10500 | |
---|
10501 | # Does compiler simultaneously support -c and -o options? |
---|
10502 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
---|
10503 | |
---|
10504 | # Must we lock files when doing compilation? |
---|
10505 | need_locks=$lt_need_locks |
---|
10506 | |
---|
10507 | # Do we need the lib prefix for modules? |
---|
10508 | need_lib_prefix=$need_lib_prefix |
---|
10509 | |
---|
10510 | # Do we need a version for libraries? |
---|
10511 | need_version=$need_version |
---|
10512 | |
---|
10513 | # Whether dlopen is supported. |
---|
10514 | dlopen_support=$enable_dlopen |
---|
10515 | |
---|
10516 | # Whether dlopen of programs is supported. |
---|
10517 | dlopen_self=$enable_dlopen_self |
---|
10518 | |
---|
10519 | # Whether dlopen of statically linked programs is supported. |
---|
10520 | dlopen_self_static=$enable_dlopen_self_static |
---|
10521 | |
---|
10522 | # Compiler flag to prevent dynamic linking. |
---|
10523 | link_static_flag=$lt_lt_prog_compiler_static |
---|
10524 | |
---|
10525 | # Compiler flag to turn off builtin functions. |
---|
10526 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
---|
10527 | |
---|
10528 | # Compiler flag to allow reflexive dlopens. |
---|
10529 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
---|
10530 | |
---|
10531 | # Compiler flag to generate shared objects directly from archives. |
---|
10532 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
---|
10533 | |
---|
10534 | # Compiler flag to generate thread-safe objects. |
---|
10535 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
---|
10536 | |
---|
10537 | # Library versioning type. |
---|
10538 | version_type=$version_type |
---|
10539 | |
---|
10540 | # Format of library name prefix. |
---|
10541 | libname_spec=$lt_libname_spec |
---|
10542 | |
---|
10543 | # List of archive names. First name is the real one, the rest are links. |
---|
10544 | # The last name is the one that the linker finds with -lNAME. |
---|
10545 | library_names_spec=$lt_library_names_spec |
---|
10546 | |
---|
10547 | # The coded name of the library, if different from the real name. |
---|
10548 | soname_spec=$lt_soname_spec |
---|
10549 | |
---|
10550 | # Commands used to build and install an old-style archive. |
---|
10551 | RANLIB=$lt_RANLIB |
---|
10552 | old_archive_cmds=$lt_old_archive_cmds |
---|
10553 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
10554 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
10555 | |
---|
10556 | # Create an old-style archive from a shared archive. |
---|
10557 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
---|
10558 | |
---|
10559 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
10560 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
---|
10561 | |
---|
10562 | # Commands used to build and install a shared archive. |
---|
10563 | archive_cmds=$lt_archive_cmds |
---|
10564 | archive_expsym_cmds=$lt_archive_expsym_cmds |
---|
10565 | postinstall_cmds=$lt_postinstall_cmds |
---|
10566 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
10567 | |
---|
10568 | # Commands used to build a loadable module (assumed same as above if empty) |
---|
10569 | module_cmds=$lt_module_cmds |
---|
10570 | module_expsym_cmds=$lt_module_expsym_cmds |
---|
10571 | |
---|
10572 | # Commands to strip libraries. |
---|
10573 | old_striplib=$lt_old_striplib |
---|
10574 | striplib=$lt_striplib |
---|
10575 | |
---|
10576 | # Dependencies to place before the objects being linked to create a |
---|
10577 | # shared library. |
---|
10578 | predep_objects=$lt_predep_objects |
---|
10579 | |
---|
10580 | # Dependencies to place after the objects being linked to create a |
---|
10581 | # shared library. |
---|
10582 | postdep_objects=$lt_postdep_objects |
---|
10583 | |
---|
10584 | # Dependencies to place before the objects being linked to create a |
---|
10585 | # shared library. |
---|
10586 | predeps=$lt_predeps |
---|
10587 | |
---|
10588 | # Dependencies to place after the objects being linked to create a |
---|
10589 | # shared library. |
---|
10590 | postdeps=$lt_postdeps |
---|
10591 | |
---|
10592 | # The library search path used internally by the compiler when linking |
---|
10593 | # a shared library. |
---|
10594 | compiler_lib_search_path=$lt_compiler_lib_search_path |
---|
10595 | |
---|
10596 | # Method to check whether dependent libraries are shared objects. |
---|
10597 | deplibs_check_method=$lt_deplibs_check_method |
---|
10598 | |
---|
10599 | # Command to use when deplibs_check_method == file_magic. |
---|
10600 | file_magic_cmd=$lt_file_magic_cmd |
---|
10601 | |
---|
10602 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
10603 | allow_undefined_flag=$lt_allow_undefined_flag |
---|
10604 | |
---|
10605 | # Flag that forces no undefined symbols. |
---|
10606 | no_undefined_flag=$lt_no_undefined_flag |
---|
10607 | |
---|
10608 | # Commands used to finish a libtool library installation in a directory. |
---|
10609 | finish_cmds=$lt_finish_cmds |
---|
10610 | |
---|
10611 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
10612 | finish_eval=$lt_finish_eval |
---|
10613 | |
---|
10614 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
10615 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
10616 | |
---|
10617 | # Transform the output of nm in a proper C declaration |
---|
10618 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
10619 | |
---|
10620 | # Transform the output of nm in a C name address pair |
---|
10621 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
10622 | |
---|
10623 | # This is the shared library runtime path variable. |
---|
10624 | runpath_var=$runpath_var |
---|
10625 | |
---|
10626 | # This is the shared library path variable. |
---|
10627 | shlibpath_var=$shlibpath_var |
---|
10628 | |
---|
10629 | # Is shlibpath searched before the hard-coded library search path? |
---|
10630 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
10631 | |
---|
10632 | # How to hardcode a shared library path into an executable. |
---|
10633 | hardcode_action=$hardcode_action |
---|
10634 | |
---|
10635 | # Whether we should hardcode library paths into libraries. |
---|
10636 | hardcode_into_libs=$hardcode_into_libs |
---|
10637 | |
---|
10638 | # Flag to hardcode \$libdir into a binary during linking. |
---|
10639 | # This must work even if \$libdir does not exist. |
---|
10640 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
---|
10641 | |
---|
10642 | # If ld is used when linking, flag to hardcode \$libdir into |
---|
10643 | # a binary during linking. This must work even if \$libdir does |
---|
10644 | # not exist. |
---|
10645 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
---|
10646 | |
---|
10647 | # Whether we need a single -rpath flag with a separated argument. |
---|
10648 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
---|
10649 | |
---|
10650 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
---|
10651 | # resulting binary. |
---|
10652 | hardcode_direct=$hardcode_direct |
---|
10653 | |
---|
10654 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
10655 | # resulting binary. |
---|
10656 | hardcode_minus_L=$hardcode_minus_L |
---|
10657 | |
---|
10658 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
10659 | # the resulting binary. |
---|
10660 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
---|
10661 | |
---|
10662 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
---|
10663 | # and all subsequent libraries and executables linked against it. |
---|
10664 | hardcode_automatic=$hardcode_automatic |
---|
10665 | |
---|
10666 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
10667 | # restored at relink time. |
---|
10668 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
10669 | |
---|
10670 | # Whether libtool must link a program against all its dependency libraries. |
---|
10671 | link_all_deplibs=$link_all_deplibs |
---|
10672 | |
---|
10673 | # Compile-time system search path for libraries |
---|
10674 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
10675 | |
---|
10676 | # Run-time system search path for libraries |
---|
10677 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
10678 | |
---|
10679 | # Fix the shell variable \$srcfile for the compiler. |
---|
10680 | fix_srcfile_path="$fix_srcfile_path" |
---|
10681 | |
---|
10682 | # Set to yes if exported symbols are required. |
---|
10683 | always_export_symbols=$always_export_symbols |
---|
10684 | |
---|
10685 | # The commands to list exported symbols. |
---|
10686 | export_symbols_cmds=$lt_export_symbols_cmds |
---|
10687 | |
---|
10688 | # The commands to extract the exported symbol list from a shared archive. |
---|
10689 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
10690 | |
---|
10691 | # Symbols that should not be listed in the preloaded symbols. |
---|
10692 | exclude_expsyms=$lt_exclude_expsyms |
---|
10693 | |
---|
10694 | # Symbols that must always be exported. |
---|
10695 | include_expsyms=$lt_include_expsyms |
---|
10696 | |
---|
10697 | # ### END LIBTOOL CONFIG |
---|
10698 | |
---|
10699 | __EOF__ |
---|
10700 | |
---|
10701 | |
---|
10702 | case $host_os in |
---|
10703 | aix3*) |
---|
10704 | cat <<\EOF >> "$cfgfile" |
---|
10705 | |
---|
10706 | # AIX sometimes has problems with the GCC collect2 program. For some |
---|
10707 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
---|
10708 | # vanish in a puff of smoke. |
---|
10709 | if test "X${COLLECT_NAMES+set}" != Xset; then |
---|
10710 | COLLECT_NAMES= |
---|
10711 | export COLLECT_NAMES |
---|
10712 | fi |
---|
10713 | EOF |
---|
10714 | ;; |
---|
10715 | esac |
---|
10716 | |
---|
10717 | # We use sed instead of cat because bash on DJGPP gets confused if |
---|
10718 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
---|
10719 | # text mode, it properly converts lines to CR/LF. This bash problem |
---|
10720 | # is reportedly fixed, but why not run on old versions too? |
---|
10721 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
---|
10722 | |
---|
10723 | mv -f "$cfgfile" "$ofile" || \ |
---|
10724 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
---|
10725 | chmod +x "$ofile" |
---|
10726 | |
---|
10727 | else |
---|
10728 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
10729 | # `config.status --recheck' to rerun these tests and create the |
---|
10730 | # libtool script then. |
---|
10731 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
---|
10732 | if test -f "$ltmain_in"; then |
---|
10733 | test -f Makefile && make "$ltmain" |
---|
10734 | fi |
---|
10735 | fi |
---|
10736 | |
---|
10737 | |
---|
10738 | ac_ext=c |
---|
10739 | ac_cpp='$CPP $CPPFLAGS' |
---|
10740 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
10741 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
10742 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
10743 | |
---|
10744 | CC="$lt_save_CC" |
---|
10745 | |
---|
10746 | |
---|
10747 | # Check whether --with-tags or --without-tags was given. |
---|
10748 | if test "${with_tags+set}" = set; then |
---|
10749 | withval="$with_tags" |
---|
10750 | tagnames="$withval" |
---|
10751 | fi; |
---|
10752 | |
---|
10753 | if test -f "$ltmain" && test -n "$tagnames"; then |
---|
10754 | if test ! -f "${ofile}"; then |
---|
10755 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
---|
10756 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
---|
10757 | fi |
---|
10758 | |
---|
10759 | if test -z "$LTCC"; then |
---|
10760 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
---|
10761 | if test -z "$LTCC"; then |
---|
10762 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
---|
10763 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
---|
10764 | else |
---|
10765 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
---|
10766 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
---|
10767 | fi |
---|
10768 | fi |
---|
10769 | if test -z "$LTCFLAGS"; then |
---|
10770 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
---|
10771 | fi |
---|
10772 | |
---|
10773 | # Extract list of available tagged configurations in $ofile. |
---|
10774 | # Note that this assumes the entire list is on one line. |
---|
10775 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
---|
10776 | |
---|
10777 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
10778 | for tagname in $tagnames; do |
---|
10779 | IFS="$lt_save_ifs" |
---|
10780 | # Check whether tagname contains only valid characters |
---|
10781 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
---|
10782 | "") ;; |
---|
10783 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
---|
10784 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
---|
10785 | { (exit 1); exit 1; }; } |
---|
10786 | ;; |
---|
10787 | esac |
---|
10788 | |
---|
10789 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
---|
10790 | then |
---|
10791 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
---|
10792 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
---|
10793 | { (exit 1); exit 1; }; } |
---|
10794 | fi |
---|
10795 |
---|