1 | #! /bin/sh |
---|
2 | # From configure.ac 0.9. |
---|
3 | # Guess values for system-dependent variables and create Makefiles. |
---|
4 | # Generated by GNU Autoconf 2.59 for Cbc 2.1.0. |
---|
5 | # |
---|
6 | # Report bugs to <coin-cbc@lists.coin-or.org>. |
---|
7 | # |
---|
8 | # Copyright (C) 2003 Free Software Foundation, Inc. |
---|
9 | # This configure script is free software; the Free Software Foundation |
---|
10 | # gives unlimited permission to copy, distribute and modify it. |
---|
11 | # |
---|
12 | # |
---|
13 | # Copyright 2006 International Business Machines and others. |
---|
14 | # All Rights Reserved. |
---|
15 | # This file is part of the open source package Coin which is distributed |
---|
16 | # under the Common Public License. |
---|
17 | ## --------------------- ## |
---|
18 | ## M4sh Initialization. ## |
---|
19 | ## --------------------- ## |
---|
20 | |
---|
21 | # Be Bourne compatible |
---|
22 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
23 | emulate sh |
---|
24 | NULLCMD=: |
---|
25 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
26 | # is contrary to our usage. Disable this feature. |
---|
27 | alias -g '${1+"$@"}'='"$@"' |
---|
28 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
29 | set -o posix |
---|
30 | fi |
---|
31 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
32 | |
---|
33 | # Support unset when possible. |
---|
34 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
35 | as_unset=unset |
---|
36 | else |
---|
37 | as_unset=false |
---|
38 | fi |
---|
39 | |
---|
40 | |
---|
41 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
42 | $as_unset ENV MAIL MAILPATH |
---|
43 | PS1='$ ' |
---|
44 | PS2='> ' |
---|
45 | PS4='+ ' |
---|
46 | |
---|
47 | # NLS nuisances. |
---|
48 | for as_var in \ |
---|
49 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
50 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
51 | LC_TELEPHONE LC_TIME |
---|
52 | do |
---|
53 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
54 | eval $as_var=C; export $as_var |
---|
55 | else |
---|
56 | $as_unset $as_var |
---|
57 | fi |
---|
58 | done |
---|
59 | |
---|
60 | # Required to use basename. |
---|
61 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
62 | as_expr=expr |
---|
63 | else |
---|
64 | as_expr=false |
---|
65 | fi |
---|
66 | |
---|
67 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
68 | as_basename=basename |
---|
69 | else |
---|
70 | as_basename=false |
---|
71 | fi |
---|
72 | |
---|
73 | |
---|
74 | # Name of the executable. |
---|
75 | as_me=`$as_basename "$0" || |
---|
76 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
77 | X"$0" : 'X\(//\)$' \| \ |
---|
78 | X"$0" : 'X\(/\)$' \| \ |
---|
79 | . : '\(.\)' 2>/dev/null || |
---|
80 | echo X/"$0" | |
---|
81 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
82 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
83 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
84 | s/.*/./; q'` |
---|
85 | |
---|
86 | |
---|
87 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
88 | # Avoid depending upon Character Ranges. |
---|
89 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
90 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
91 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
92 | as_cr_digits='0123456789' |
---|
93 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
94 | |
---|
95 | # The user is always right. |
---|
96 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
97 | echo "#! /bin/sh" >conf$$.sh |
---|
98 | echo "exit 0" >>conf$$.sh |
---|
99 | chmod +x conf$$.sh |
---|
100 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
101 | PATH_SEPARATOR=';' |
---|
102 | else |
---|
103 | PATH_SEPARATOR=: |
---|
104 | fi |
---|
105 | rm -f conf$$.sh |
---|
106 | fi |
---|
107 | |
---|
108 | |
---|
109 | as_lineno_1=$LINENO |
---|
110 | as_lineno_2=$LINENO |
---|
111 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
112 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
113 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
114 | # Find who we are. Look in the path if we contain no path at all |
---|
115 | # relative or not. |
---|
116 | case $0 in |
---|
117 | *[\\/]* ) as_myself=$0 ;; |
---|
118 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
119 | for as_dir in $PATH |
---|
120 | do |
---|
121 | IFS=$as_save_IFS |
---|
122 | test -z "$as_dir" && as_dir=. |
---|
123 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
124 | done |
---|
125 | |
---|
126 | ;; |
---|
127 | esac |
---|
128 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
129 | # in which case we are not to be found in the path. |
---|
130 | if test "x$as_myself" = x; then |
---|
131 | as_myself=$0 |
---|
132 | fi |
---|
133 | if test ! -f "$as_myself"; then |
---|
134 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
---|
135 | { (exit 1); exit 1; }; } |
---|
136 | fi |
---|
137 | case $CONFIG_SHELL in |
---|
138 | '') |
---|
139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
140 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
141 | do |
---|
142 | IFS=$as_save_IFS |
---|
143 | test -z "$as_dir" && as_dir=. |
---|
144 | for as_base in sh bash ksh sh5; do |
---|
145 | case $as_dir in |
---|
146 | /*) |
---|
147 | if ("$as_dir/$as_base" -c ' |
---|
148 | as_lineno_1=$LINENO |
---|
149 | as_lineno_2=$LINENO |
---|
150 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
151 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
152 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
153 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
154 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
155 | CONFIG_SHELL=$as_dir/$as_base |
---|
156 | export CONFIG_SHELL |
---|
157 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
158 | fi;; |
---|
159 | esac |
---|
160 | done |
---|
161 | done |
---|
162 | ;; |
---|
163 | esac |
---|
164 | |
---|
165 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
166 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
167 | # line-number line before each line; the second 'sed' does the real |
---|
168 | # work. The second script uses 'N' to pair each line-number line |
---|
169 | # with the numbered line, and appends trailing '-' during |
---|
170 | # substitution so that $LINENO is not a special case at line end. |
---|
171 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
172 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
173 | sed '=' <$as_myself | |
---|
174 | sed ' |
---|
175 | N |
---|
176 | s,$,-, |
---|
177 | : loop |
---|
178 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
179 | t loop |
---|
180 | s,-$,, |
---|
181 | s,^['$as_cr_digits']*\n,, |
---|
182 | ' >$as_me.lineno && |
---|
183 | chmod +x $as_me.lineno || |
---|
184 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
185 | { (exit 1); exit 1; }; } |
---|
186 | |
---|
187 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
188 | # (the dirname of $[0] is not the place where we might find the |
---|
189 | # original and so on. Autoconf is especially sensible to this). |
---|
190 | . ./$as_me.lineno |
---|
191 | # Exit status is that of the last command. |
---|
192 | exit |
---|
193 | } |
---|
194 | |
---|
195 | |
---|
196 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
197 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
198 | ' ECHO_T=' ' ;; |
---|
199 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
200 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
201 | esac |
---|
202 | |
---|
203 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
204 | as_expr=expr |
---|
205 | else |
---|
206 | as_expr=false |
---|
207 | fi |
---|
208 | |
---|
209 | rm -f conf$$ conf$$.exe conf$$.file |
---|
210 | echo >conf$$.file |
---|
211 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
212 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
213 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
214 | if test -f conf$$.exe; then |
---|
215 | # Don't use ln at all; we don't have any links |
---|
216 | as_ln_s='cp -p' |
---|
217 | else |
---|
218 | as_ln_s='ln -s' |
---|
219 | fi |
---|
220 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
221 | as_ln_s=ln |
---|
222 | else |
---|
223 | as_ln_s='cp -p' |
---|
224 | fi |
---|
225 | rm -f conf$$ conf$$.exe conf$$.file |
---|
226 | |
---|
227 | if mkdir -p . 2>/dev/null; then |
---|
228 | as_mkdir_p=: |
---|
229 | else |
---|
230 | test -d ./-p && rmdir ./-p |
---|
231 | as_mkdir_p=false |
---|
232 | fi |
---|
233 | |
---|
234 | as_executable_p="test -f" |
---|
235 | |
---|
236 | # Sed expression to map a string onto a valid CPP name. |
---|
237 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
238 | |
---|
239 | # Sed expression to map a string onto a valid variable name. |
---|
240 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
241 | |
---|
242 | |
---|
243 | # IFS |
---|
244 | # We need space, tab and new line, in precisely that order. |
---|
245 | as_nl=' |
---|
246 | ' |
---|
247 | IFS=" $as_nl" |
---|
248 | |
---|
249 | # CDPATH. |
---|
250 | $as_unset CDPATH |
---|
251 | |
---|
252 | |
---|
253 | |
---|
254 | # Check that we are running under the correct shell. |
---|
255 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
256 | |
---|
257 | case X$ECHO in |
---|
258 | X*--fallback-echo) |
---|
259 | # Remove one level of quotation (which was required for Make). |
---|
260 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
---|
261 | ;; |
---|
262 | esac |
---|
263 | |
---|
264 | echo=${ECHO-echo} |
---|
265 | if test "X$1" = X--no-reexec; then |
---|
266 | # Discard the --no-reexec flag, and continue. |
---|
267 | shift |
---|
268 | elif test "X$1" = X--fallback-echo; then |
---|
269 | # Avoid inline document here, it may be left over |
---|
270 | : |
---|
271 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
---|
272 | # Yippee, $echo works! |
---|
273 | : |
---|
274 | else |
---|
275 | # Restart under the correct shell. |
---|
276 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
---|
277 | fi |
---|
278 | |
---|
279 | if test "X$1" = X--fallback-echo; then |
---|
280 | # used as fallback echo |
---|
281 | shift |
---|
282 | cat <<EOF |
---|
283 | $* |
---|
284 | EOF |
---|
285 | exit 0 |
---|
286 | fi |
---|
287 | |
---|
288 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
---|
289 | # if CDPATH is set. |
---|
290 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
291 | |
---|
292 | if test -z "$ECHO"; then |
---|
293 | if test "X${echo_test_string+set}" != Xset; then |
---|
294 | # find a string as large as possible, as long as the shell can cope with it |
---|
295 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
---|
296 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
---|
297 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
---|
298 | echo_test_string=`eval $cmd` && |
---|
299 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
---|
300 | then |
---|
301 | break |
---|
302 | fi |
---|
303 | done |
---|
304 | fi |
---|
305 | |
---|
306 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
---|
307 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
---|
308 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
309 | : |
---|
310 | else |
---|
311 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
---|
312 | # backslashes. This makes it impossible to quote backslashes using |
---|
313 | # echo "$something" | sed 's/\\/\\\\/g' |
---|
314 | # |
---|
315 | # So, first we look for a working echo in the user's PATH. |
---|
316 | |
---|
317 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
318 | for dir in $PATH /usr/ucb; do |
---|
319 | IFS="$lt_save_ifs" |
---|
320 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
---|
321 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
---|
322 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
---|
323 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
324 | echo="$dir/echo" |
---|
325 | break |
---|
326 | fi |
---|
327 | done |
---|
328 | IFS="$lt_save_ifs" |
---|
329 | |
---|
330 | if test "X$echo" = Xecho; then |
---|
331 | # We didn't find a better echo, so look for alternatives. |
---|
332 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
---|
333 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
---|
334 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
335 | # This shell has a builtin print -r that does the trick. |
---|
336 | echo='print -r' |
---|
337 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
---|
338 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
---|
339 | # If we have ksh, try running configure again with it. |
---|
340 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
---|
341 | export ORIGINAL_CONFIG_SHELL |
---|
342 | CONFIG_SHELL=/bin/ksh |
---|
343 | export CONFIG_SHELL |
---|
344 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
---|
345 | else |
---|
346 | # Try using printf. |
---|
347 | echo='printf %s\n' |
---|
348 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
---|
349 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
---|
350 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
351 | # Cool, printf works |
---|
352 | : |
---|
353 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
---|
354 | test "X$echo_testing_string" = 'X\t' && |
---|
355 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
---|
356 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
357 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
---|
358 | export CONFIG_SHELL |
---|
359 | SHELL="$CONFIG_SHELL" |
---|
360 | export SHELL |
---|
361 | echo="$CONFIG_SHELL $0 --fallback-echo" |
---|
362 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
---|
363 | test "X$echo_testing_string" = 'X\t' && |
---|
364 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
---|
365 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
366 | echo="$CONFIG_SHELL $0 --fallback-echo" |
---|
367 | else |
---|
368 | # maybe with a smaller string... |
---|
369 | prev=: |
---|
370 | |
---|
371 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
---|
372 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
---|
373 | then |
---|
374 | break |
---|
375 | fi |
---|
376 | prev="$cmd" |
---|
377 | done |
---|
378 | |
---|
379 | if test "$prev" != 'sed 50q "$0"'; then |
---|
380 | echo_test_string=`eval $prev` |
---|
381 | export echo_test_string |
---|
382 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
---|
383 | else |
---|
384 | # Oops. We lost completely, so just stick with echo. |
---|
385 | echo=echo |
---|
386 | fi |
---|
387 | fi |
---|
388 | fi |
---|
389 | fi |
---|
390 | fi |
---|
391 | fi |
---|
392 | |
---|
393 | # Copy echo and quote the copy suitably for passing to libtool from |
---|
394 | # the Makefile, instead of quoting the original, which is used later. |
---|
395 | ECHO=$echo |
---|
396 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
---|
397 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
---|
398 | fi |
---|
399 | |
---|
400 | |
---|
401 | |
---|
402 | |
---|
403 | tagnames=${tagnames+${tagnames},}CXX |
---|
404 | |
---|
405 | tagnames=${tagnames+${tagnames},}F77 |
---|
406 | |
---|
407 | # Name of the host. |
---|
408 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
409 | # so uname gets run too. |
---|
410 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
411 | |
---|
412 | exec 6>&1 |
---|
413 | |
---|
414 | # |
---|
415 | # Initializations. |
---|
416 | # |
---|
417 | ac_default_prefix=/usr/local |
---|
418 | ac_config_libobj_dir=. |
---|
419 | cross_compiling=no |
---|
420 | subdirs= |
---|
421 | MFLAGS= |
---|
422 | MAKEFLAGS= |
---|
423 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
424 | |
---|
425 | # Maximum number of lines to put in a shell here document. |
---|
426 | # This variable seems obsolete. It should probably be removed, and |
---|
427 | # only ac_max_sed_lines should be used. |
---|
428 | : ${ac_max_here_lines=38} |
---|
429 | |
---|
430 | # Identity of this package. |
---|
431 | PACKAGE_NAME='Cbc' |
---|
432 | PACKAGE_TARNAME='cbc' |
---|
433 | PACKAGE_VERSION='2.1.0' |
---|
434 | PACKAGE_STRING='Cbc 2.1.0' |
---|
435 | PACKAGE_BUGREPORT='coin-cbc@lists.coin-or.org' |
---|
436 | |
---|
437 | ac_unique_file="configure.ac" |
---|
438 | ac_default_prefix=`pwd` |
---|
439 | # Factoring default headers for most tests. |
---|
440 | ac_includes_default="\ |
---|
441 | #include <stdio.h> |
---|
442 | #if HAVE_SYS_TYPES_H |
---|
443 | # include <sys/types.h> |
---|
444 | #endif |
---|
445 | #if HAVE_SYS_STAT_H |
---|
446 | # include <sys/stat.h> |
---|
447 | #endif |
---|
448 | #if STDC_HEADERS |
---|
449 | # include <stdlib.h> |
---|
450 | # include <stddef.h> |
---|
451 | #else |
---|
452 | # if HAVE_STDLIB_H |
---|
453 | # include <stdlib.h> |
---|
454 | # endif |
---|
455 | #endif |
---|
456 | #if HAVE_STRING_H |
---|
457 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
458 | # include <memory.h> |
---|
459 | # endif |
---|
460 | # include <string.h> |
---|
461 | #endif |
---|
462 | #if HAVE_STRINGS_H |
---|
463 | # include <strings.h> |
---|
464 | #endif |
---|
465 | #if HAVE_INTTYPES_H |
---|
466 | # include <inttypes.h> |
---|
467 | #else |
---|
468 | # if HAVE_STDINT_H |
---|
469 | # include <stdint.h> |
---|
470 | # endif |
---|
471 | #endif |
---|
472 | #if HAVE_UNISTD_H |
---|
473 | # include <unistd.h> |
---|
474 | #endif" |
---|
475 | |
---|
476 | ac_subdirs_all="$ac_subdirs_all ThirdParty/ASL" |
---|
477 | ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas" |
---|
478 | ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack" |
---|
479 | ac_subdirs_all="$ac_subdirs_all ThirdParty/Glpk" |
---|
480 | ac_subdirs_all="$ac_subdirs_all CoinUtils" |
---|
481 | ac_subdirs_all="$ac_subdirs_all Data/Netlib" |
---|
482 | ac_subdirs_all="$ac_subdirs_all Data/Sample" |
---|
483 | ac_subdirs_all="$ac_subdirs_all Data/miplib3" |
---|
484 | ac_subdirs_all="$ac_subdirs_all Clp" |
---|
485 | ac_subdirs_all="$ac_subdirs_all DyLP" |
---|
486 | ac_subdirs_all="$ac_subdirs_all Vol" |
---|
487 | ac_subdirs_all="$ac_subdirs_all Osi" |
---|
488 | ac_subdirs_all="$ac_subdirs_all Cgl" |
---|
489 | ac_subdirs_all="$ac_subdirs_all Cbc" |
---|
490 | ac_subdirs_all="$ac_subdirs_all SYMPHONY" |
---|
491 | 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 build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 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 CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_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 CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS subdirs COIN_SKIP_PROJECTS LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS' |
---|
492 | ac_subst_files='' |
---|
493 | |
---|
494 | # Initialize some variables set by options. |
---|
495 | ac_init_help= |
---|
496 | ac_init_version=false |
---|
497 | # The variables have the same names as the options, with |
---|
498 | # dashes changed to underlines. |
---|
499 | cache_file=/dev/null |
---|
500 | exec_prefix=NONE |
---|
501 | no_create= |
---|
502 | no_recursion= |
---|
503 | prefix=NONE |
---|
504 | program_prefix=NONE |
---|
505 | program_suffix=NONE |
---|
506 | program_transform_name=s,x,x, |
---|
507 | silent= |
---|
508 | site= |
---|
509 | srcdir= |
---|
510 | verbose= |
---|
511 | x_includes=NONE |
---|
512 | x_libraries=NONE |
---|
513 | |
---|
514 | # Installation directory options. |
---|
515 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
516 | # and all the variables that are supposed to be based on exec_prefix |
---|
517 | # by default will actually change. |
---|
518 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
519 | bindir='${exec_prefix}/bin' |
---|
520 | sbindir='${exec_prefix}/sbin' |
---|
521 | libexecdir='${exec_prefix}/libexec' |
---|
522 | datadir='${prefix}/share' |
---|
523 | sysconfdir='${prefix}/etc' |
---|
524 | sharedstatedir='${prefix}/com' |
---|
525 | localstatedir='${prefix}/var' |
---|
526 | libdir='${exec_prefix}/lib' |
---|
527 | includedir='${prefix}/include' |
---|
528 | oldincludedir='/usr/include' |
---|
529 | infodir='${prefix}/info' |
---|
530 | mandir='${prefix}/man' |
---|
531 | |
---|
532 | ac_prev= |
---|
533 | for ac_option |
---|
534 | do |
---|
535 | # If the previous option needs an argument, assign it. |
---|
536 | if test -n "$ac_prev"; then |
---|
537 | eval "$ac_prev=\$ac_option" |
---|
538 | ac_prev= |
---|
539 | continue |
---|
540 | fi |
---|
541 | |
---|
542 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
543 | |
---|
544 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
545 | |
---|
546 | case $ac_option in |
---|
547 | |
---|
548 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
549 | ac_prev=bindir ;; |
---|
550 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
551 | bindir=$ac_optarg ;; |
---|
552 | |
---|
553 | -build | --build | --buil | --bui | --bu) |
---|
554 | ac_prev=build_alias ;; |
---|
555 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
556 | build_alias=$ac_optarg ;; |
---|
557 | |
---|
558 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
559 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
560 | ac_prev=cache_file ;; |
---|
561 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
562 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
563 | cache_file=$ac_optarg ;; |
---|
564 | |
---|
565 | --config-cache | -C) |
---|
566 | cache_file=config.cache ;; |
---|
567 | |
---|
568 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
569 | ac_prev=datadir ;; |
---|
570 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
571 | | --da=*) |
---|
572 | datadir=$ac_optarg ;; |
---|
573 | |
---|
574 | -disable-* | --disable-*) |
---|
575 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
576 | # Reject names that are not valid shell variable names. |
---|
577 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
578 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
579 | { (exit 1); exit 1; }; } |
---|
580 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
581 | eval "enable_$ac_feature=no" ;; |
---|
582 | |
---|
583 | -enable-* | --enable-*) |
---|
584 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
585 | # Reject names that are not valid shell variable names. |
---|
586 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
587 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
588 | { (exit 1); exit 1; }; } |
---|
589 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
590 | case $ac_option in |
---|
591 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
592 | *) ac_optarg=yes ;; |
---|
593 | esac |
---|
594 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
595 | |
---|
596 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
597 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
598 | | --exec | --exe | --ex) |
---|
599 | ac_prev=exec_prefix ;; |
---|
600 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
601 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
602 | | --exec=* | --exe=* | --ex=*) |
---|
603 | exec_prefix=$ac_optarg ;; |
---|
604 | |
---|
605 | -gas | --gas | --ga | --g) |
---|
606 | # Obsolete; use --with-gas. |
---|
607 | with_gas=yes ;; |
---|
608 | |
---|
609 | -help | --help | --hel | --he | -h) |
---|
610 | ac_init_help=long ;; |
---|
611 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
612 | ac_init_help=recursive ;; |
---|
613 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
614 | ac_init_help=short ;; |
---|
615 | |
---|
616 | -host | --host | --hos | --ho) |
---|
617 | ac_prev=host_alias ;; |
---|
618 | -host=* | --host=* | --hos=* | --ho=*) |
---|
619 | host_alias=$ac_optarg ;; |
---|
620 | |
---|
621 | -includedir | --includedir | --includedi | --included | --include \ |
---|
622 | | --includ | --inclu | --incl | --inc) |
---|
623 | ac_prev=includedir ;; |
---|
624 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
625 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
626 | includedir=$ac_optarg ;; |
---|
627 | |
---|
628 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
629 | ac_prev=infodir ;; |
---|
630 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
631 | infodir=$ac_optarg ;; |
---|
632 | |
---|
633 | -libdir | --libdir | --libdi | --libd) |
---|
634 | ac_prev=libdir ;; |
---|
635 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
636 | libdir=$ac_optarg ;; |
---|
637 | |
---|
638 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
639 | | --libexe | --libex | --libe) |
---|
640 | ac_prev=libexecdir ;; |
---|
641 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
642 | | --libexe=* | --libex=* | --libe=*) |
---|
643 | libexecdir=$ac_optarg ;; |
---|
644 | |
---|
645 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
646 | | --localstate | --localstat | --localsta | --localst \ |
---|
647 | | --locals | --local | --loca | --loc | --lo) |
---|
648 | ac_prev=localstatedir ;; |
---|
649 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
650 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
651 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
652 | localstatedir=$ac_optarg ;; |
---|
653 | |
---|
654 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
655 | ac_prev=mandir ;; |
---|
656 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
657 | mandir=$ac_optarg ;; |
---|
658 | |
---|
659 | -nfp | --nfp | --nf) |
---|
660 | # Obsolete; use --without-fp. |
---|
661 | with_fp=no ;; |
---|
662 | |
---|
663 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
664 | | --no-cr | --no-c | -n) |
---|
665 | no_create=yes ;; |
---|
666 | |
---|
667 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
668 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
669 | no_recursion=yes ;; |
---|
670 | |
---|
671 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
672 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
673 | | --oldin | --oldi | --old | --ol | --o) |
---|
674 | ac_prev=oldincludedir ;; |
---|
675 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
676 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
677 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
678 | oldincludedir=$ac_optarg ;; |
---|
679 | |
---|
680 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
681 | ac_prev=prefix ;; |
---|
682 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
683 | prefix=$ac_optarg ;; |
---|
684 | |
---|
685 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
686 | | --program-pre | --program-pr | --program-p) |
---|
687 | ac_prev=program_prefix ;; |
---|
688 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
689 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
690 | program_prefix=$ac_optarg ;; |
---|
691 | |
---|
692 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
693 | | --program-suf | --program-su | --program-s) |
---|
694 | ac_prev=program_suffix ;; |
---|
695 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
696 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
697 | program_suffix=$ac_optarg ;; |
---|
698 | |
---|
699 | -program-transform-name | --program-transform-name \ |
---|
700 | | --program-transform-nam | --program-transform-na \ |
---|
701 | | --program-transform-n | --program-transform- \ |
---|
702 | | --program-transform | --program-transfor \ |
---|
703 | | --program-transfo | --program-transf \ |
---|
704 | | --program-trans | --program-tran \ |
---|
705 | | --progr-tra | --program-tr | --program-t) |
---|
706 | ac_prev=program_transform_name ;; |
---|
707 | -program-transform-name=* | --program-transform-name=* \ |
---|
708 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
709 | | --program-transform-n=* | --program-transform-=* \ |
---|
710 | | --program-transform=* | --program-transfor=* \ |
---|
711 | | --program-transfo=* | --program-transf=* \ |
---|
712 | | --program-trans=* | --program-tran=* \ |
---|
713 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
714 | program_transform_name=$ac_optarg ;; |
---|
715 | |
---|
716 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
717 | | -silent | --silent | --silen | --sile | --sil) |
---|
718 | silent=yes ;; |
---|
719 | |
---|
720 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
721 | ac_prev=sbindir ;; |
---|
722 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
723 | | --sbi=* | --sb=*) |
---|
724 | sbindir=$ac_optarg ;; |
---|
725 | |
---|
726 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
727 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
728 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
729 | | --sha | --sh) |
---|
730 | ac_prev=sharedstatedir ;; |
---|
731 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
732 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
733 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
734 | | --sha=* | --sh=*) |
---|
735 | sharedstatedir=$ac_optarg ;; |
---|
736 | |
---|
737 | -site | --site | --sit) |
---|
738 | ac_prev=site ;; |
---|
739 | -site=* | --site=* | --sit=*) |
---|
740 | site=$ac_optarg ;; |
---|
741 | |
---|
742 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
743 | ac_prev=srcdir ;; |
---|
744 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
745 | srcdir=$ac_optarg ;; |
---|
746 | |
---|
747 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
748 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
749 | ac_prev=sysconfdir ;; |
---|
750 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
751 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
752 | sysconfdir=$ac_optarg ;; |
---|
753 | |
---|
754 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
755 | ac_prev=target_alias ;; |
---|
756 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
757 | target_alias=$ac_optarg ;; |
---|
758 | |
---|
759 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
760 | verbose=yes ;; |
---|
761 | |
---|
762 | -version | --version | --versio | --versi | --vers | -V) |
---|
763 | ac_init_version=: ;; |
---|
764 | |
---|
765 | -with-* | --with-*) |
---|
766 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
767 | # Reject names that are not valid shell variable names. |
---|
768 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
769 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
770 | { (exit 1); exit 1; }; } |
---|
771 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
772 | case $ac_option in |
---|
773 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
774 | *) ac_optarg=yes ;; |
---|
775 | esac |
---|
776 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
777 | |
---|
778 | -without-* | --without-*) |
---|
779 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
780 | # Reject names that are not valid shell variable names. |
---|
781 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
782 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
783 | { (exit 1); exit 1; }; } |
---|
784 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
785 | eval "with_$ac_package=no" ;; |
---|
786 | |
---|
787 | --x) |
---|
788 | # Obsolete; use --with-x. |
---|
789 | with_x=yes ;; |
---|
790 | |
---|
791 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
792 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
793 | ac_prev=x_includes ;; |
---|
794 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
795 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
796 | x_includes=$ac_optarg ;; |
---|
797 | |
---|
798 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
799 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
800 | ac_prev=x_libraries ;; |
---|
801 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
802 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
803 | x_libraries=$ac_optarg ;; |
---|
804 | |
---|
805 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
806 | Try \`$0 --help' for more information." >&2 |
---|
807 | { (exit 1); exit 1; }; } |
---|
808 | ;; |
---|
809 | |
---|
810 | *=*) |
---|
811 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
812 | # Reject names that are not valid shell variable names. |
---|
813 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
814 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
815 | { (exit 1); exit 1; }; } |
---|
816 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
817 | eval "$ac_envvar='$ac_optarg'" |
---|
818 | export $ac_envvar ;; |
---|
819 | |
---|
820 | *) |
---|
821 | # FIXME: should be removed in autoconf 3.0. |
---|
822 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
823 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
824 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
825 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
826 | ;; |
---|
827 | |
---|
828 | esac |
---|
829 | done |
---|
830 | |
---|
831 | if test -n "$ac_prev"; then |
---|
832 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
833 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
834 | { (exit 1); exit 1; }; } |
---|
835 | fi |
---|
836 | |
---|
837 | # Be sure to have absolute paths. |
---|
838 | for ac_var in exec_prefix prefix |
---|
839 | do |
---|
840 | eval ac_val=$`echo $ac_var` |
---|
841 | case $ac_val in |
---|
842 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
843 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
844 | { (exit 1); exit 1; }; };; |
---|
845 | esac |
---|
846 | done |
---|
847 | |
---|
848 | # Be sure to have absolute paths. |
---|
849 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
850 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
851 | do |
---|
852 | eval ac_val=$`echo $ac_var` |
---|
853 | case $ac_val in |
---|
854 | [\\/$]* | ?:[\\/]* ) ;; |
---|
855 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
856 | { (exit 1); exit 1; }; };; |
---|
857 | esac |
---|
858 | done |
---|
859 | |
---|
860 | # There might be people who depend on the old broken behavior: `$host' |
---|
861 | # used to hold the argument of --host etc. |
---|
862 | # FIXME: To remove some day. |
---|
863 | build=$build_alias |
---|
864 | host=$host_alias |
---|
865 | target=$target_alias |
---|
866 | |
---|
867 | # FIXME: To remove some day. |
---|
868 | if test "x$host_alias" != x; then |
---|
869 | if test "x$build_alias" = x; then |
---|
870 | cross_compiling=maybe |
---|
871 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
872 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
873 | elif test "x$build_alias" != "x$host_alias"; then |
---|
874 | cross_compiling=yes |
---|
875 | fi |
---|
876 | fi |
---|
877 | |
---|
878 | ac_tool_prefix= |
---|
879 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
880 | |
---|
881 | test "$silent" = yes && exec 6>/dev/null |
---|
882 | |
---|
883 | |
---|
884 | # Find the source files, if location was not specified. |
---|
885 | if test -z "$srcdir"; then |
---|
886 | ac_srcdir_defaulted=yes |
---|
887 | # Try the directory containing this script, then its parent. |
---|
888 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
889 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
890 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
891 | X"$0" : 'X\(//\)$' \| \ |
---|
892 | X"$0" : 'X\(/\)' \| \ |
---|
893 | . : '\(.\)' 2>/dev/null || |
---|
894 | echo X"$0" | |
---|
895 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
896 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
897 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
898 | /^X\(\/\).*/{ s//\1/; q; } |
---|
899 | s/.*/./; q'` |
---|
900 | srcdir=$ac_confdir |
---|
901 | if test ! -r $srcdir/$ac_unique_file; then |
---|
902 | srcdir=.. |
---|
903 | fi |
---|
904 | else |
---|
905 | ac_srcdir_defaulted=no |
---|
906 | fi |
---|
907 | if test ! -r $srcdir/$ac_unique_file; then |
---|
908 | if test "$ac_srcdir_defaulted" = yes; then |
---|
909 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
910 | { (exit 1); exit 1; }; } |
---|
911 | else |
---|
912 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
913 | { (exit 1); exit 1; }; } |
---|
914 | fi |
---|
915 | fi |
---|
916 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
917 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
918 | { (exit 1); exit 1; }; } |
---|
919 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
920 | ac_env_build_alias_set=${build_alias+set} |
---|
921 | ac_env_build_alias_value=$build_alias |
---|
922 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
923 | ac_cv_env_build_alias_value=$build_alias |
---|
924 | ac_env_host_alias_set=${host_alias+set} |
---|
925 | ac_env_host_alias_value=$host_alias |
---|
926 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
927 | ac_cv_env_host_alias_value=$host_alias |
---|
928 | ac_env_target_alias_set=${target_alias+set} |
---|
929 | ac_env_target_alias_value=$target_alias |
---|
930 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
931 | ac_cv_env_target_alias_value=$target_alias |
---|
932 | ac_env_CDEFS_set=${CDEFS+set} |
---|
933 | ac_env_CDEFS_value=$CDEFS |
---|
934 | ac_cv_env_CDEFS_set=${CDEFS+set} |
---|
935 | ac_cv_env_CDEFS_value=$CDEFS |
---|
936 | ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} |
---|
937 | ac_env_ADD_CFLAGS_value=$ADD_CFLAGS |
---|
938 | ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} |
---|
939 | ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS |
---|
940 | ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} |
---|
941 | ac_env_DBG_CFLAGS_value=$DBG_CFLAGS |
---|
942 | ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} |
---|
943 | ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS |
---|
944 | ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} |
---|
945 | ac_env_OPT_CFLAGS_value=$OPT_CFLAGS |
---|
946 | ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} |
---|
947 | ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS |
---|
948 | ac_env_CC_set=${CC+set} |
---|
949 | ac_env_CC_value=$CC |
---|
950 | ac_cv_env_CC_set=${CC+set} |
---|
951 | ac_cv_env_CC_value=$CC |
---|
952 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
953 | ac_env_CFLAGS_value=$CFLAGS |
---|
954 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
955 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
956 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
957 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
958 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
959 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
960 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
961 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
962 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
963 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
964 | ac_env_MPICC_set=${MPICC+set} |
---|
965 | ac_env_MPICC_value=$MPICC |
---|
966 | ac_cv_env_MPICC_set=${MPICC+set} |
---|
967 | ac_cv_env_MPICC_value=$MPICC |
---|
968 | ac_env_CXXDEFS_set=${CXXDEFS+set} |
---|
969 | ac_env_CXXDEFS_value=$CXXDEFS |
---|
970 | ac_cv_env_CXXDEFS_set=${CXXDEFS+set} |
---|
971 | ac_cv_env_CXXDEFS_value=$CXXDEFS |
---|
972 | ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set} |
---|
973 | ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS |
---|
974 | ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set} |
---|
975 | ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS |
---|
976 | ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set} |
---|
977 | ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS |
---|
978 | ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set} |
---|
979 | ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS |
---|
980 | ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set} |
---|
981 | ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS |
---|
982 | ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set} |
---|
983 | ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS |
---|
984 | ac_env_CXX_set=${CXX+set} |
---|
985 | ac_env_CXX_value=$CXX |
---|
986 | ac_cv_env_CXX_set=${CXX+set} |
---|
987 | ac_cv_env_CXX_value=$CXX |
---|
988 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
989 | ac_env_CXXFLAGS_value=$CXXFLAGS |
---|
990 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
991 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
---|
992 | ac_env_MPICXX_set=${MPICXX+set} |
---|
993 | ac_env_MPICXX_value=$MPICXX |
---|
994 | ac_cv_env_MPICXX_set=${MPICXX+set} |
---|
995 | ac_cv_env_MPICXX_value=$MPICXX |
---|
996 | ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set} |
---|
997 | ac_env_ADD_FFLAGS_value=$ADD_FFLAGS |
---|
998 | ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set} |
---|
999 | ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS |
---|
1000 | ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set} |
---|
1001 | ac_env_DBG_FFLAGS_value=$DBG_FFLAGS |
---|
1002 | ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set} |
---|
1003 | ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS |
---|
1004 | ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set} |
---|
1005 | ac_env_OPT_FFLAGS_value=$OPT_FFLAGS |
---|
1006 | ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set} |
---|
1007 | ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS |
---|
1008 | ac_env_F77_set=${F77+set} |
---|
1009 | ac_env_F77_value=$F77 |
---|
1010 | ac_cv_env_F77_set=${F77+set} |
---|
1011 | ac_cv_env_F77_value=$F77 |
---|
1012 | ac_env_FFLAGS_set=${FFLAGS+set} |
---|
1013 | ac_env_FFLAGS_value=$FFLAGS |
---|
1014 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
---|
1015 | ac_cv_env_FFLAGS_value=$FFLAGS |
---|
1016 | ac_env_MPIF77_set=${MPIF77+set} |
---|
1017 | ac_env_MPIF77_value=$MPIF77 |
---|
1018 | ac_cv_env_MPIF77_set=${MPIF77+set} |
---|
1019 | ac_cv_env_MPIF77_value=$MPIF77 |
---|
1020 | ac_env_CPP_set=${CPP+set} |
---|
1021 | ac_env_CPP_value=$CPP |
---|
1022 | ac_cv_env_CPP_set=${CPP+set} |
---|
1023 | ac_cv_env_CPP_value=$CPP |
---|
1024 | ac_env_CXXCPP_set=${CXXCPP+set} |
---|
1025 | ac_env_CXXCPP_value=$CXXCPP |
---|
1026 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
---|
1027 | ac_cv_env_CXXCPP_value=$CXXCPP |
---|
1028 | ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set} |
---|
1029 | ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS |
---|
1030 | ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set} |
---|
1031 | ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS |
---|
1032 | |
---|
1033 | # |
---|
1034 | # Report the --help message. |
---|
1035 | # |
---|
1036 | if test "$ac_init_help" = "long"; then |
---|
1037 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1038 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1039 | cat <<_ACEOF |
---|
1040 | \`configure' configures Cbc 2.1.0 to adapt to many kinds of systems. |
---|
1041 | |
---|
1042 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1043 | |
---|
1044 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1045 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1046 | |
---|
1047 | Defaults for the options are specified in brackets. |
---|
1048 | |
---|
1049 | Configuration: |
---|
1050 | -h, --help display this help and exit |
---|
1051 | --help=short display options specific to this package |
---|
1052 | --help=recursive display the short help of all the included packages |
---|
1053 | -V, --version display version information and exit |
---|
1054 | -q, --quiet, --silent do not print \`checking...' messages |
---|
1055 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1056 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1057 | -n, --no-create do not create output files |
---|
1058 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1059 | |
---|
1060 | _ACEOF |
---|
1061 | |
---|
1062 | cat <<_ACEOF |
---|
1063 | Installation directories: |
---|
1064 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1065 | [$ac_default_prefix] |
---|
1066 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1067 | [PREFIX] |
---|
1068 | |
---|
1069 | By default, \`make install' will install all the files in |
---|
1070 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1071 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1072 | for instance \`--prefix=\$HOME'. |
---|
1073 | |
---|
1074 | For better control, use the options below. |
---|
1075 | |
---|
1076 | Fine tuning of the installation directories: |
---|
1077 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1078 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1079 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1080 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
1081 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1082 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1083 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1084 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1085 | --includedir=DIR C header files [PREFIX/include] |
---|
1086 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1087 | --infodir=DIR info documentation [PREFIX/info] |
---|
1088 | --mandir=DIR man documentation [PREFIX/man] |
---|
1089 | _ACEOF |
---|
1090 | |
---|
1091 | cat <<\_ACEOF |
---|
1092 | |
---|
1093 | Program names: |
---|
1094 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
1095 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
1096 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
1097 | |
---|
1098 | System types: |
---|
1099 | --build=BUILD configure for building on BUILD [guessed] |
---|
1100 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
1101 | _ACEOF |
---|
1102 | fi |
---|
1103 | |
---|
1104 | if test -n "$ac_init_help"; then |
---|
1105 | case $ac_init_help in |
---|
1106 | short | recursive ) echo "Configuration of Cbc 2.1.0:";; |
---|
1107 | esac |
---|
1108 | cat <<\_ACEOF |
---|
1109 | |
---|
1110 | Optional Features: |
---|
1111 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1112 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1113 | --enable-debug compile all projects with debug options tests |
---|
1114 | --enable-doscompile Under Cygwin, compile so that executables run under |
---|
1115 | DOS. Set to mingw to use gcc/g++/ld with |
---|
1116 | -mno-cygwin. Set to msvc to use cl/link (or |
---|
1117 | icl/link). Default when mentioned: mingw. Default |
---|
1118 | when not mentioned: disabled. |
---|
1119 | --enable-static[=PKGS] |
---|
1120 | build static libraries [default=no] |
---|
1121 | --disable-dependency-tracking speeds up one-time build |
---|
1122 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
1123 | --enable-maintainer-mode enable make rules and dependencies not useful |
---|
1124 | (and sometimes confusing) to the casual installer |
---|
1125 | --enable-shared[=PKGS] |
---|
1126 | build shared libraries [default=yes] |
---|
1127 | --enable-fast-install[=PKGS] |
---|
1128 | optimize for fast installation [default=yes] |
---|
1129 | --disable-libtool-lock avoid locking (might break parallel builds) |
---|
1130 | |
---|
1131 | Optional Packages: |
---|
1132 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1133 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1134 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
---|
1135 | --with-pic try to use only PIC/non-PIC objects [default=use |
---|
1136 | both] |
---|
1137 | --with-tags[=TAGS] |
---|
1138 | include additional configurations [automatic] |
---|
1139 | |
---|
1140 | Some influential environment variables: |
---|
1141 | CDEFS Additional -D flags to be used when compiling C code. |
---|
1142 | ADD_CFLAGS Additional C compiler options |
---|
1143 | DBG_CFLAGS Debug C compiler options |
---|
1144 | OPT_CFLAGS Optimize C compiler options |
---|
1145 | CC C compiler command |
---|
1146 | CFLAGS C compiler flags |
---|
1147 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1148 | nonstandard directory <lib dir> |
---|
1149 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
1150 | headers in a nonstandard directory <include dir> |
---|
1151 | MPICC C MPI Compiler |
---|
1152 | CXXDEFS Additional -D flags to be used when compiling C++ code. |
---|
1153 | ADD_CXXFLAGS |
---|
1154 | Additional C++ compiler options |
---|
1155 | DBG_CXXFLAGS |
---|
1156 | Debug C++ compiler options |
---|
1157 | OPT_CXXFLAGS |
---|
1158 | Optimize C++ compiler options |
---|
1159 | CXX C++ compiler command |
---|
1160 | CXXFLAGS C++ compiler flags |
---|
1161 | MPICXX C++ MPI Compiler |
---|
1162 | ADD_FFLAGS Additional Fortran compiler options |
---|
1163 | DBG_FFLAGS Debug Fortran compiler options |
---|
1164 | OPT_FFLAGS Optimize Fortran compiler options |
---|
1165 | F77 Fortran 77 compiler command |
---|
1166 | FFLAGS Fortran 77 compiler flags |
---|
1167 | MPIF77 Fortran MPI Compiler |
---|
1168 | CPP C preprocessor |
---|
1169 | CXXCPP C++ preprocessor |
---|
1170 | COIN_SKIP_PROJECTS |
---|
1171 | Set to the subdirectories of projects that should be skipped in |
---|
1172 | the configuration |
---|
1173 | |
---|
1174 | Use these variables to override the choices made by `configure' or to help |
---|
1175 | it to find libraries and programs with nonstandard names/locations. |
---|
1176 | |
---|
1177 | Report bugs to <coin-cbc@lists.coin-or.org>. |
---|
1178 | _ACEOF |
---|
1179 | fi |
---|
1180 | |
---|
1181 | if test "$ac_init_help" = "recursive"; then |
---|
1182 | # If there are subdirs, report their specific --help. |
---|
1183 | ac_popdir=`pwd` |
---|
1184 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1185 | test -d $ac_dir || continue |
---|
1186 | ac_builddir=. |
---|
1187 | |
---|
1188 | if test "$ac_dir" != .; then |
---|
1189 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
1190 | # A "../" for each directory in $ac_dir_suffix. |
---|
1191 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
1192 | else |
---|
1193 | ac_dir_suffix= ac_top_builddir= |
---|
1194 | fi |
---|
1195 | |
---|
1196 | case $srcdir in |
---|
1197 | .) # No --srcdir option. We are building in place. |
---|
1198 | ac_srcdir=. |
---|
1199 | if test -z "$ac_top_builddir"; then |
---|
1200 | ac_top_srcdir=. |
---|
1201 | else |
---|
1202 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
1203 | fi ;; |
---|
1204 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
1205 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1206 | ac_top_srcdir=$srcdir ;; |
---|
1207 | *) # Relative path. |
---|
1208 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
1209 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
1210 | esac |
---|
1211 | |
---|
1212 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
1213 | # the directories may not exist. |
---|
1214 | case `pwd` in |
---|
1215 | .) ac_abs_builddir="$ac_dir";; |
---|
1216 | *) |
---|
1217 | case "$ac_dir" in |
---|
1218 | .) ac_abs_builddir=`pwd`;; |
---|
1219 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
1220 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
1221 | esac;; |
---|
1222 | esac |
---|
1223 | case $ac_abs_builddir in |
---|
1224 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
1225 | *) |
---|
1226 | case ${ac_top_builddir}. in |
---|
1227 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
1228 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
1229 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
1230 | esac;; |
---|
1231 | esac |
---|
1232 | case $ac_abs_builddir in |
---|
1233 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
1234 | *) |
---|
1235 | case $ac_srcdir in |
---|
1236 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
1237 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
1238 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
1239 | esac;; |
---|
1240 | esac |
---|
1241 | case $ac_abs_builddir in |
---|
1242 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
1243 | *) |
---|
1244 | case $ac_top_srcdir in |
---|
1245 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
1246 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
1247 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
1248 | esac;; |
---|
1249 | esac |
---|
1250 | |
---|
1251 | cd $ac_dir |
---|
1252 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
1253 | if test -f $ac_srcdir/configure.gnu; then |
---|
1254 | echo |
---|
1255 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
1256 | elif test -f $ac_srcdir/configure; then |
---|
1257 | echo |
---|
1258 | $SHELL $ac_srcdir/configure --help=recursive |
---|
1259 | elif test -f $ac_srcdir/configure.ac || |
---|
1260 | test -f $ac_srcdir/configure.in; then |
---|
1261 | echo |
---|
1262 | $ac_configure --help |
---|
1263 | else |
---|
1264 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1265 | fi |
---|
1266 | cd $ac_popdir |
---|
1267 | done |
---|
1268 | fi |
---|
1269 | |
---|
1270 | test -n "$ac_init_help" && exit 0 |
---|
1271 | if $ac_init_version; then |
---|
1272 | cat <<\_ACEOF |
---|
1273 | Cbc configure 2.1.0 |
---|
1274 | generated by GNU Autoconf 2.59 |
---|
1275 | |
---|
1276 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
1277 | This configure script is free software; the Free Software Foundation |
---|
1278 | gives unlimited permission to copy, distribute and modify it. |
---|
1279 | |
---|
1280 | |
---|
1281 | Copyright 2006 International Business Machines and others. |
---|
1282 | All Rights Reserved. |
---|
1283 | This file is part of the open source package Coin which is distributed |
---|
1284 | under the Common Public License. |
---|
1285 | _ACEOF |
---|
1286 | exit 0 |
---|
1287 | fi |
---|
1288 | exec 5>config.log |
---|
1289 | cat >&5 <<_ACEOF |
---|
1290 | This file contains any messages produced by compilers while |
---|
1291 | running configure, to aid debugging if configure makes a mistake. |
---|
1292 | |
---|
1293 | It was created by Cbc $as_me 2.1.0, which was |
---|
1294 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
1295 | |
---|
1296 | $ $0 $@ |
---|
1297 | |
---|
1298 | _ACEOF |
---|
1299 | { |
---|
1300 | cat <<_ASUNAME |
---|
1301 | ## --------- ## |
---|
1302 | ## Platform. ## |
---|
1303 | ## --------- ## |
---|
1304 | |
---|
1305 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1306 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1307 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1308 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1309 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1310 | |
---|
1311 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1312 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1313 | |
---|
1314 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1315 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1316 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1317 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
1318 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1319 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1320 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1321 | |
---|
1322 | _ASUNAME |
---|
1323 | |
---|
1324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1325 | for as_dir in $PATH |
---|
1326 | do |
---|
1327 | IFS=$as_save_IFS |
---|
1328 | test -z "$as_dir" && as_dir=. |
---|
1329 | echo "PATH: $as_dir" |
---|
1330 | done |
---|
1331 | |
---|
1332 | } >&5 |
---|
1333 | |
---|
1334 | cat >&5 <<_ACEOF |
---|
1335 | |
---|
1336 | |
---|
1337 | ## ----------- ## |
---|
1338 | ## Core tests. ## |
---|
1339 | ## ----------- ## |
---|
1340 | |
---|
1341 | _ACEOF |
---|
1342 | |
---|
1343 | |
---|
1344 | # Keep a trace of the command line. |
---|
1345 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1346 | # Strip out --silent because we don't want to record it for future runs. |
---|
1347 | # Also quote any args containing shell meta-characters. |
---|
1348 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1349 | ac_configure_args= |
---|
1350 | ac_configure_args0= |
---|
1351 | ac_configure_args1= |
---|
1352 | ac_sep= |
---|
1353 | ac_must_keep_next=false |
---|
1354 | for ac_pass in 1 2 |
---|
1355 | do |
---|
1356 | for ac_arg |
---|
1357 | do |
---|
1358 | case $ac_arg in |
---|
1359 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1360 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1361 | | -silent | --silent | --silen | --sile | --sil) |
---|
1362 | continue ;; |
---|
1363 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1364 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1365 | esac |
---|
1366 | case $ac_pass in |
---|
1367 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1368 | 2) |
---|
1369 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1370 | if test $ac_must_keep_next = true; then |
---|
1371 | ac_must_keep_next=false # Got value, back to normal. |
---|
1372 | else |
---|
1373 | case $ac_arg in |
---|
1374 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1375 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1376 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1377 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1378 | case "$ac_configure_args0 " in |
---|
1379 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1380 | esac |
---|
1381 | ;; |
---|
1382 | -* ) ac_must_keep_next=true ;; |
---|
1383 | esac |
---|
1384 | fi |
---|
1385 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1386 | # Get rid of the leading space. |
---|
1387 | ac_sep=" " |
---|
1388 | ;; |
---|
1389 | esac |
---|
1390 | done |
---|
1391 | done |
---|
1392 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1393 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1394 | |
---|
1395 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1396 | # config.log. We remove comments because anyway the quotes in there |
---|
1397 | # would cause problems or look ugly. |
---|
1398 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1399 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1400 | trap 'exit_status=$? |
---|
1401 | # Save into config.log some information that might help in debugging. |
---|
1402 | { |
---|
1403 | echo |
---|
1404 | |
---|
1405 | cat <<\_ASBOX |
---|
1406 | ## ---------------- ## |
---|
1407 | ## Cache variables. ## |
---|
1408 | ## ---------------- ## |
---|
1409 | _ASBOX |
---|
1410 | echo |
---|
1411 | # The following way of writing the cache mishandles newlines in values, |
---|
1412 | { |
---|
1413 | (set) 2>&1 | |
---|
1414 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1415 | *ac_space=\ *) |
---|
1416 | sed -n \ |
---|
1417 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1418 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1419 | ;; |
---|
1420 | *) |
---|
1421 | sed -n \ |
---|
1422 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1423 | ;; |
---|
1424 | esac; |
---|
1425 | } |
---|
1426 | echo |
---|
1427 | |
---|
1428 | cat <<\_ASBOX |
---|
1429 | ## ----------------- ## |
---|
1430 | ## Output variables. ## |
---|
1431 | ## ----------------- ## |
---|
1432 | _ASBOX |
---|
1433 | echo |
---|
1434 | for ac_var in $ac_subst_vars |
---|
1435 | do |
---|
1436 | eval ac_val=$`echo $ac_var` |
---|
1437 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1438 | done | sort |
---|
1439 | echo |
---|
1440 | |
---|
1441 | if test -n "$ac_subst_files"; then |
---|
1442 | cat <<\_ASBOX |
---|
1443 | ## ------------- ## |
---|
1444 | ## Output files. ## |
---|
1445 | ## ------------- ## |
---|
1446 | _ASBOX |
---|
1447 | echo |
---|
1448 | for ac_var in $ac_subst_files |
---|
1449 | do |
---|
1450 | eval ac_val=$`echo $ac_var` |
---|
1451 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1452 | done | sort |
---|
1453 | echo |
---|
1454 | fi |
---|
1455 | |
---|
1456 | if test -s confdefs.h; then |
---|
1457 | cat <<\_ASBOX |
---|
1458 | ## ----------- ## |
---|
1459 | ## confdefs.h. ## |
---|
1460 | ## ----------- ## |
---|
1461 | _ASBOX |
---|
1462 | echo |
---|
1463 | sed "/^$/d" confdefs.h | sort |
---|
1464 | echo |
---|
1465 | fi |
---|
1466 | test "$ac_signal" != 0 && |
---|
1467 | echo "$as_me: caught signal $ac_signal" |
---|
1468 | echo "$as_me: exit $exit_status" |
---|
1469 | } >&5 |
---|
1470 | rm -f core *.core && |
---|
1471 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1472 | exit $exit_status |
---|
1473 | ' 0 |
---|
1474 | for ac_signal in 1 2 13 15; do |
---|
1475 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1476 | done |
---|
1477 | ac_signal=0 |
---|
1478 | |
---|
1479 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1480 | rm -rf conftest* confdefs.h |
---|
1481 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1482 | echo >confdefs.h |
---|
1483 | |
---|
1484 | # Predefined preprocessor variables. |
---|
1485 | |
---|
1486 | cat >>confdefs.h <<_ACEOF |
---|
1487 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1488 | _ACEOF |
---|
1489 | |
---|
1490 | |
---|
1491 | cat >>confdefs.h <<_ACEOF |
---|
1492 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1493 | _ACEOF |
---|
1494 | |
---|
1495 | |
---|
1496 | cat >>confdefs.h <<_ACEOF |
---|
1497 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1498 | _ACEOF |
---|
1499 | |
---|
1500 | |
---|
1501 | cat >>confdefs.h <<_ACEOF |
---|
1502 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1503 | _ACEOF |
---|
1504 | |
---|
1505 | |
---|
1506 | cat >>confdefs.h <<_ACEOF |
---|
1507 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1508 | _ACEOF |
---|
1509 | |
---|
1510 | |
---|
1511 | # Let the site file select an alternate cache file if it wants to. |
---|
1512 | # Prefer explicitly selected file to automatically selected ones. |
---|
1513 | if test -z "$CONFIG_SITE"; then |
---|
1514 | if test "x$prefix" != xNONE; then |
---|
1515 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1516 | else |
---|
1517 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1518 | fi |
---|
1519 | fi |
---|
1520 | for ac_site_file in $CONFIG_SITE; do |
---|
1521 | if test -r "$ac_site_file"; then |
---|
1522 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1523 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1524 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1525 | . "$ac_site_file" |
---|
1526 | fi |
---|
1527 | done |
---|
1528 | |
---|
1529 | if test -r "$cache_file"; then |
---|
1530 | # Some versions of bash will fail to source /dev/null (special |
---|
1531 | # files actually), so we avoid doing that. |
---|
1532 | if test -f "$cache_file"; then |
---|
1533 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1534 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1535 | case $cache_file in |
---|
1536 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1537 | *) . ./$cache_file;; |
---|
1538 | esac |
---|
1539 | fi |
---|
1540 | else |
---|
1541 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1542 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1543 | >$cache_file |
---|
1544 | fi |
---|
1545 | |
---|
1546 | # Check that the precious variables saved in the cache have kept the same |
---|
1547 | # value. |
---|
1548 | ac_cache_corrupted=false |
---|
1549 | for ac_var in `(set) 2>&1 | |
---|
1550 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1551 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1552 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1553 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1554 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1555 | case $ac_old_set,$ac_new_set in |
---|
1556 | set,) |
---|
1557 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1558 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1559 | ac_cache_corrupted=: ;; |
---|
1560 | ,set) |
---|
1561 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1562 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1563 | ac_cache_corrupted=: ;; |
---|
1564 | ,);; |
---|
1565 | *) |
---|
1566 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1567 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1568 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1569 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1570 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1571 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1572 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1573 | ac_cache_corrupted=: |
---|
1574 | fi;; |
---|
1575 | esac |
---|
1576 | # Pass precious variables to config.status. |
---|
1577 | if test "$ac_new_set" = set; then |
---|
1578 | case $ac_new_val in |
---|
1579 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1580 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1581 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1582 | esac |
---|
1583 | case " $ac_configure_args " in |
---|
1584 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1585 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1586 | esac |
---|
1587 | fi |
---|
1588 | done |
---|
1589 | if $ac_cache_corrupted; then |
---|
1590 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1591 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1592 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1593 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1594 | { (exit 1); exit 1; }; } |
---|
1595 | fi |
---|
1596 | |
---|
1597 | ac_ext=c |
---|
1598 | ac_cpp='$CPP $CPPFLAGS' |
---|
1599 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1600 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1601 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1602 | |
---|
1603 | |
---|
1604 | |
---|
1605 | |
---|
1606 | |
---|
1607 | |
---|
1608 | |
---|
1609 | |
---|
1610 | |
---|
1611 | |
---|
1612 | |
---|
1613 | |
---|
1614 | |
---|
1615 | |
---|
1616 | |
---|
1617 | |
---|
1618 | |
---|
1619 | |
---|
1620 | |
---|
1621 | |
---|
1622 | |
---|
1623 | |
---|
1624 | |
---|
1625 | |
---|
1626 | |
---|
1627 | |
---|
1628 | |
---|
1629 | |
---|
1630 | |
---|
1631 | |
---|
1632 | |
---|
1633 | |
---|
1634 | # List one file in the package so that the configure script can test |
---|
1635 | # whether the package is actually there |
---|
1636 | |
---|
1637 | |
---|
1638 | # Where should everything be installed by default? Here, we want it |
---|
1639 | # to be installed directly in 'bin', 'lib', 'include' subdirectories |
---|
1640 | # of the directory where configure is run. The default would be |
---|
1641 | # /usr/local. |
---|
1642 | |
---|
1643 | |
---|
1644 | ############################################################################# |
---|
1645 | # Do the tests necessary to configure compilers and initialise autotools # |
---|
1646 | ############################################################################# |
---|
1647 | |
---|
1648 | ac_aux_dir= |
---|
1649 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1650 | if test -f $ac_dir/install-sh; then |
---|
1651 | ac_aux_dir=$ac_dir |
---|
1652 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1653 | break |
---|
1654 | elif test -f $ac_dir/install.sh; then |
---|
1655 | ac_aux_dir=$ac_dir |
---|
1656 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1657 | break |
---|
1658 | elif test -f $ac_dir/shtool; then |
---|
1659 | ac_aux_dir=$ac_dir |
---|
1660 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1661 | break |
---|
1662 | fi |
---|
1663 | done |
---|
1664 | if test -z "$ac_aux_dir"; then |
---|
1665 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1666 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1667 | { (exit 1); exit 1; }; } |
---|
1668 | fi |
---|
1669 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1670 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1671 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1672 | |
---|
1673 | # Make sure we can run config.sub. |
---|
1674 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
1675 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
1676 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
1677 | { (exit 1); exit 1; }; } |
---|
1678 | |
---|
1679 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
1680 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
1681 | if test "${ac_cv_build+set}" = set; then |
---|
1682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1683 | else |
---|
1684 | ac_cv_build_alias=$build_alias |
---|
1685 | test -z "$ac_cv_build_alias" && |
---|
1686 | ac_cv_build_alias=`$ac_config_guess` |
---|
1687 | test -z "$ac_cv_build_alias" && |
---|
1688 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
1689 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
1690 | { (exit 1); exit 1; }; } |
---|
1691 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
1692 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
1693 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
1694 | { (exit 1); exit 1; }; } |
---|
1695 | |
---|
1696 | fi |
---|
1697 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
1698 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
1699 | build=$ac_cv_build |
---|
1700 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1701 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1702 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1703 | |
---|
1704 | |
---|
1705 | |
---|
1706 | # Check if user wants to produce debugging code |
---|
1707 | |
---|
1708 | echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5 |
---|
1709 | echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6 |
---|
1710 | |
---|
1711 | # Check whether --enable-debug or --disable-debug was given. |
---|
1712 | if test "${enable_debug+set}" = set; then |
---|
1713 | enableval="$enable_debug" |
---|
1714 | case "${enableval}" in |
---|
1715 | yes) coin_debug_compile=true |
---|
1716 | if test "${enable_shared+set}" = set; then :; else |
---|
1717 | enable_shared=no |
---|
1718 | fi |
---|
1719 | ;; |
---|
1720 | no) coin_debug_compile=false |
---|
1721 | ;; |
---|
1722 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5 |
---|
1723 | echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;} |
---|
1724 | { (exit 1); exit 1; }; } |
---|
1725 | ;; |
---|
1726 | esac |
---|
1727 | else |
---|
1728 | coin_debug_compile=false |
---|
1729 | fi; |
---|
1730 | |
---|
1731 | # m4_ifvaln([], |
---|
1732 | |
---|
1733 | if test $coin_debug_compile = true; then |
---|
1734 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1735 | echo "${ECHO_T}yes" >&6 |
---|
1736 | else |
---|
1737 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1738 | echo "${ECHO_T}no" >&6 |
---|
1739 | fi |
---|
1740 | |
---|
1741 | # m4_ifvaln([], |
---|
1742 | |
---|
1743 | |
---|
1744 | |
---|
1745 | # Get the name of the C compiler and appropriate compiler options |
---|
1746 | case $build in |
---|
1747 | *-mingw*) |
---|
1748 | if test "${LD+set}" = set; then :; else |
---|
1749 | LD=link |
---|
1750 | fi |
---|
1751 | ;; |
---|
1752 | esac |
---|
1753 | case $enable_doscompile in |
---|
1754 | msvc) |
---|
1755 | if test "x${LD+set}" = xset; then :; else |
---|
1756 | LD=link |
---|
1757 | fi |
---|
1758 | ;; |
---|
1759 | esac |
---|
1760 | |
---|
1761 | |
---|
1762 | # Check whether --enable-doscompile or --disable-doscompile was given. |
---|
1763 | if test "${enable_doscompile+set}" = set; then |
---|
1764 | enableval="$enable_doscompile" |
---|
1765 | if test "$enable_doscompile" != no; then |
---|
1766 | case $build in |
---|
1767 | *-cygwin* | *-mingw*) ;; |
---|
1768 | *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5 |
---|
1769 | echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;} |
---|
1770 | { (exit 1); exit 1; }; } ;; |
---|
1771 | esac |
---|
1772 | fi |
---|
1773 | else |
---|
1774 | enable_doscompile=no |
---|
1775 | fi; |
---|
1776 | case "$enable_doscompile" in |
---|
1777 | mingw) |
---|
1778 | case $build in |
---|
1779 | *-mingw*) enable_doscompile=no ;; |
---|
1780 | esac |
---|
1781 | ;; |
---|
1782 | msvc|no) ;; |
---|
1783 | yes) enable_doscompile=mingw ;; |
---|
1784 | *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile. |
---|
1785 | Try configure --help=recursive." >&5 |
---|
1786 | echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile. |
---|
1787 | Try configure --help=recursive." >&2;} |
---|
1788 | { (exit 1); exit 1; }; } |
---|
1789 | ;; |
---|
1790 | esac |
---|
1791 | if test "$enable_doscompile" != no ; then |
---|
1792 | { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5 |
---|
1793 | echo "$as_me: DOS compile style is: $enable_doscompile" >&6;} |
---|
1794 | fi |
---|
1795 | |
---|
1796 | |
---|
1797 | |
---|
1798 | |
---|
1799 | ac_ext=c |
---|
1800 | ac_cpp='$CPP $CPPFLAGS' |
---|
1801 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1802 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1803 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1804 | |
---|
1805 | |
---|
1806 | # For consistency, we set the C compiler to the same value of the C++ |
---|
1807 | # compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl) |
---|
1808 | if test x"$CXX" != x; then |
---|
1809 | case "$CXX" in |
---|
1810 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
---|
1811 | if test x"$CC" = x; then |
---|
1812 | CC="$CXX" |
---|
1813 | { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5 |
---|
1814 | echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;} |
---|
1815 | fi |
---|
1816 | ;; |
---|
1817 | esac |
---|
1818 | fi |
---|
1819 | |
---|
1820 | |
---|
1821 | |
---|
1822 | |
---|
1823 | |
---|
1824 | |
---|
1825 | coin_has_cc=yes |
---|
1826 | |
---|
1827 | save_cflags="$CFLAGS" |
---|
1828 | |
---|
1829 | # For *-*-solaris*, promote Studio/Workshop cc compiler to front of list. |
---|
1830 | # Depending on the user's PATH, when Studio/Workshop cc is not present we may |
---|
1831 | # find /usr/ucb/cc, which is almost certainly not a good choice for the C |
---|
1832 | # compiler. In this case, put cc after gcc. |
---|
1833 | |
---|
1834 | case $build in |
---|
1835 | *-cygwin* | *-mingw*) |
---|
1836 | if test "$enable_doscompile" = msvc ; then |
---|
1837 | comps="icl cl" |
---|
1838 | else |
---|
1839 | comps="gcc cl" |
---|
1840 | fi ;; |
---|
1841 | *-*-solaris*) |
---|
1842 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1843 | set dummy cc; ac_word=$2 |
---|
1844 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1845 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1846 | if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then |
---|
1847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1848 | else |
---|
1849 | if test -n "$sol_cc_compiler"; then |
---|
1850 | ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test. |
---|
1851 | else |
---|
1852 | ac_prog_rejected=no |
---|
1853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1854 | for as_dir in $PATH |
---|
1855 | do |
---|
1856 | IFS=$as_save_IFS |
---|
1857 | test -z "$as_dir" && as_dir=. |
---|
1858 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1859 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1860 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
1861 | ac_prog_rejected=yes |
---|
1862 | continue |
---|
1863 | fi |
---|
1864 | ac_cv_prog_sol_cc_compiler="cc" |
---|
1865 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1866 | break 2 |
---|
1867 | fi |
---|
1868 | done |
---|
1869 | done |
---|
1870 | |
---|
1871 | if test $ac_prog_rejected = yes; then |
---|
1872 | # We found a bogon in the path, so make sure we never use it. |
---|
1873 | set dummy $ac_cv_prog_sol_cc_compiler |
---|
1874 | shift |
---|
1875 | if test $# != 0; then |
---|
1876 | # We chose a different compiler from the bogus one. |
---|
1877 | # However, it has the same basename, so the bogon will be chosen |
---|
1878 | # first if we set sol_cc_compiler to just the basename; use the full file name. |
---|
1879 | shift |
---|
1880 | ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@" |
---|
1881 | fi |
---|
1882 | fi |
---|
1883 | fi |
---|
1884 | fi |
---|
1885 | sol_cc_compiler=$ac_cv_prog_sol_cc_compiler |
---|
1886 | if test -n "$sol_cc_compiler"; then |
---|
1887 | echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5 |
---|
1888 | echo "${ECHO_T}$sol_cc_compiler" >&6 |
---|
1889 | else |
---|
1890 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1891 | echo "${ECHO_T}no" >&6 |
---|
1892 | fi |
---|
1893 | |
---|
1894 | if test "$sol_cc_compiler" = "cc" ; then |
---|
1895 | comps="cc xlc gcc pgcc icc" |
---|
1896 | else |
---|
1897 | comps="xlc gcc pgcc icc cc" |
---|
1898 | fi |
---|
1899 | ;; |
---|
1900 | *-linux-*) comps="xlc gcc cc pgcc icc" ;; |
---|
1901 | *) comps="xlc_r xlc cc gcc pgcc icc" ;; |
---|
1902 | esac |
---|
1903 | |
---|
1904 | # We delete the cached value, since the test might not have been |
---|
1905 | # performed with our choice of compilers earlier |
---|
1906 | $as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; } |
---|
1907 | # AC_MSG_NOTICE([C compiler candidates: $comps]) |
---|
1908 | ac_ext=c |
---|
1909 | ac_cpp='$CPP $CPPFLAGS' |
---|
1910 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1911 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1912 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1913 | if test -n "$ac_tool_prefix"; then |
---|
1914 | for ac_prog in $comps |
---|
1915 | do |
---|
1916 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1917 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1918 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1919 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1920 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1922 | else |
---|
1923 | if test -n "$CC"; then |
---|
1924 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1925 | else |
---|
1926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1927 | for as_dir in $PATH |
---|
1928 | do |
---|
1929 | IFS=$as_save_IFS |
---|
1930 | test -z "$as_dir" && as_dir=. |
---|
1931 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1932 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1933 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
1934 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1935 | break 2 |
---|
1936 | fi |
---|
1937 | done |
---|
1938 | done |
---|
1939 | |
---|
1940 | fi |
---|
1941 | fi |
---|
1942 | CC=$ac_cv_prog_CC |
---|
1943 | if test -n "$CC"; then |
---|
1944 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1945 | echo "${ECHO_T}$CC" >&6 |
---|
1946 | else |
---|
1947 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1948 | echo "${ECHO_T}no" >&6 |
---|
1949 | fi |
---|
1950 | |
---|
1951 | test -n "$CC" && break |
---|
1952 | done |
---|
1953 | fi |
---|
1954 | if test -z "$CC"; then |
---|
1955 | ac_ct_CC=$CC |
---|
1956 | for ac_prog in $comps |
---|
1957 | do |
---|
1958 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1959 | set dummy $ac_prog; ac_word=$2 |
---|
1960 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1961 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1962 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1964 | else |
---|
1965 | if test -n "$ac_ct_CC"; then |
---|
1966 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1967 | else |
---|
1968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1969 | for as_dir in $PATH |
---|
1970 | do |
---|
1971 | IFS=$as_save_IFS |
---|
1972 | test -z "$as_dir" && as_dir=. |
---|
1973 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1974 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1975 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
1976 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1977 | break 2 |
---|
1978 | fi |
---|
1979 | done |
---|
1980 | done |
---|
1981 | |
---|
1982 | fi |
---|
1983 | fi |
---|
1984 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1985 | if test -n "$ac_ct_CC"; then |
---|
1986 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
1987 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1988 | else |
---|
1989 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1990 | echo "${ECHO_T}no" >&6 |
---|
1991 | fi |
---|
1992 | |
---|
1993 | test -n "$ac_ct_CC" && break |
---|
1994 | done |
---|
1995 | |
---|
1996 | CC=$ac_ct_CC |
---|
1997 | fi |
---|
1998 | |
---|
1999 | |
---|
2000 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2001 | See \`config.log' for more details." >&5 |
---|
2002 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2003 | See \`config.log' for more details." >&2;} |
---|
2004 | { (exit 1); exit 1; }; } |
---|
2005 | |
---|
2006 | # Provide some information about the compiler. |
---|
2007 | echo "$as_me:$LINENO:" \ |
---|
2008 | "checking for C compiler version" >&5 |
---|
2009 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2010 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
2011 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
2012 | ac_status=$? |
---|
2013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2014 | (exit $ac_status); } |
---|
2015 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
2016 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
2017 | ac_status=$? |
---|
2018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2019 | (exit $ac_status); } |
---|
2020 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
2021 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
2022 | ac_status=$? |
---|
2023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2024 | (exit $ac_status); } |
---|
2025 | |
---|
2026 | cat >conftest.$ac_ext <<_ACEOF |
---|
2027 | /* confdefs.h. */ |
---|
2028 | _ACEOF |
---|
2029 | cat confdefs.h >>conftest.$ac_ext |
---|
2030 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2031 | /* end confdefs.h. */ |
---|
2032 | |
---|
2033 | int |
---|
2034 | main () |
---|
2035 | { |
---|
2036 | |
---|
2037 | ; |
---|
2038 | return 0; |
---|
2039 | } |
---|
2040 | _ACEOF |
---|
2041 | ac_clean_files_save=$ac_clean_files |
---|
2042 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
2043 | # Try to create an executable without -o first, disregard a.out. |
---|
2044 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
2045 | # of exeext. |
---|
2046 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
---|
2047 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
---|
2048 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2049 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
2050 | (eval $ac_link_default) 2>&5 |
---|
2051 | ac_status=$? |
---|
2052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2053 | (exit $ac_status); }; then |
---|
2054 | # Find the output, starting from the most likely. This scheme is |
---|
2055 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
2056 | # resort. |
---|
2057 | |
---|
2058 | # Be careful to initialize this variable, since it used to be cached. |
---|
2059 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
2060 | ac_cv_exeext= |
---|
2061 | # b.out is created by i960 compilers. |
---|
2062 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
2063 | do |
---|
2064 | test -f "$ac_file" || continue |
---|
2065 | case $ac_file in |
---|
2066 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
2067 | ;; |
---|
2068 | conftest.$ac_ext ) |
---|
2069 | # This is the source file. |
---|
2070 | ;; |
---|
2071 | [ab].out ) |
---|
2072 | # We found the default executable, but exeext='' is most |
---|
2073 | # certainly right. |
---|
2074 | break;; |
---|
2075 | *.* ) |
---|
2076 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2077 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
2078 | # but it would be cool to find out if it's true. Does anybody |
---|
2079 | # maintain Libtool? --akim. |
---|
2080 | export ac_cv_exeext |
---|
2081 | break;; |
---|
2082 | * ) |
---|
2083 | break;; |
---|
2084 | esac |
---|
2085 | done |
---|
2086 | else |
---|
2087 | echo "$as_me: failed program was:" >&5 |
---|
2088 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2089 | |
---|
2090 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
2091 | See \`config.log' for more details." >&5 |
---|
2092 | echo "$as_me: error: C compiler cannot create executables |
---|
2093 | See \`config.log' for more details." >&2;} |
---|
2094 | { (exit 77); exit 77; }; } |
---|
2095 | fi |
---|
2096 | |
---|
2097 | ac_exeext=$ac_cv_exeext |
---|
2098 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2099 | echo "${ECHO_T}$ac_file" >&6 |
---|
2100 | |
---|
2101 | # Check the compiler produces executables we can run. If not, either |
---|
2102 | # the compiler is broken, or we cross compile. |
---|
2103 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
2104 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
---|
2105 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2106 | # If not cross compiling, check that we can run a simple program. |
---|
2107 | if test "$cross_compiling" != yes; then |
---|
2108 | if { ac_try='./$ac_file' |
---|
2109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2110 | (eval $ac_try) 2>&5 |
---|
2111 | ac_status=$? |
---|
2112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2113 | (exit $ac_status); }; }; then |
---|
2114 | cross_compiling=no |
---|
2115 | else |
---|
2116 | if test "$cross_compiling" = maybe; then |
---|
2117 | cross_compiling=yes |
---|
2118 | else |
---|
2119 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
2120 | If you meant to cross compile, use \`--host'. |
---|
2121 | See \`config.log' for more details." >&5 |
---|
2122 | echo "$as_me: error: cannot run C compiled programs. |
---|
2123 | If you meant to cross compile, use \`--host'. |
---|
2124 | See \`config.log' for more details." >&2;} |
---|
2125 | { (exit 1); exit 1; }; } |
---|
2126 | fi |
---|
2127 | fi |
---|
2128 | fi |
---|
2129 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
2130 | echo "${ECHO_T}yes" >&6 |
---|
2131 | |
---|
2132 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
2133 | ac_clean_files=$ac_clean_files_save |
---|
2134 | # Check the compiler produces executables we can run. If not, either |
---|
2135 | # the compiler is broken, or we cross compile. |
---|
2136 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2137 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
2138 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2139 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
2140 | |
---|
2141 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2142 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
2143 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2144 | (eval $ac_link) 2>&5 |
---|
2145 | ac_status=$? |
---|
2146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2147 | (exit $ac_status); }; then |
---|
2148 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2149 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2150 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2151 | # `rm'. |
---|
2152 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2153 | test -f "$ac_file" || continue |
---|
2154 | case $ac_file in |
---|
2155 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
2156 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2157 | export ac_cv_exeext |
---|
2158 | break;; |
---|
2159 | * ) break;; |
---|
2160 | esac |
---|
2161 | done |
---|
2162 | else |
---|
2163 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2164 | See \`config.log' for more details." >&5 |
---|
2165 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2166 | See \`config.log' for more details." >&2;} |
---|
2167 | { (exit 1); exit 1; }; } |
---|
2168 | fi |
---|
2169 | |
---|
2170 | rm -f conftest$ac_cv_exeext |
---|
2171 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2172 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2173 | |
---|
2174 | rm -f conftest.$ac_ext |
---|
2175 | EXEEXT=$ac_cv_exeext |
---|
2176 | ac_exeext=$EXEEXT |
---|
2177 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2178 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2179 | if test "${ac_cv_objext+set}" = set; then |
---|
2180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2181 | else |
---|
2182 | cat >conftest.$ac_ext <<_ACEOF |
---|
2183 | /* confdefs.h. */ |
---|
2184 | _ACEOF |
---|
2185 | cat confdefs.h >>conftest.$ac_ext |
---|
2186 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2187 | /* end confdefs.h. */ |
---|
2188 | |
---|
2189 | int |
---|
2190 | main () |
---|
2191 | { |
---|
2192 | |
---|
2193 | ; |
---|
2194 | return 0; |
---|
2195 | } |
---|
2196 | _ACEOF |
---|
2197 | rm -f conftest.o conftest.obj |
---|
2198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2199 | (eval $ac_compile) 2>&5 |
---|
2200 | ac_status=$? |
---|
2201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2202 | (exit $ac_status); }; then |
---|
2203 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2204 | case $ac_file in |
---|
2205 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2206 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2207 | break;; |
---|
2208 | esac |
---|
2209 | done |
---|
2210 | else |
---|
2211 | echo "$as_me: failed program was:" >&5 |
---|
2212 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2213 | |
---|
2214 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2215 | See \`config.log' for more details." >&5 |
---|
2216 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2217 | See \`config.log' for more details." >&2;} |
---|
2218 | { (exit 1); exit 1; }; } |
---|
2219 | fi |
---|
2220 | |
---|
2221 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2222 | fi |
---|
2223 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2224 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2225 | OBJEXT=$ac_cv_objext |
---|
2226 | ac_objext=$OBJEXT |
---|
2227 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2228 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2229 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2231 | else |
---|
2232 | cat >conftest.$ac_ext <<_ACEOF |
---|
2233 | /* confdefs.h. */ |
---|
2234 | _ACEOF |
---|
2235 | cat confdefs.h >>conftest.$ac_ext |
---|
2236 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2237 | /* end confdefs.h. */ |
---|
2238 | |
---|
2239 | int |
---|
2240 | main () |
---|
2241 | { |
---|
2242 | #ifndef __GNUC__ |
---|
2243 | choke me |
---|
2244 | #endif |
---|
2245 | |
---|
2246 | ; |
---|
2247 | return 0; |
---|
2248 | } |
---|
2249 | _ACEOF |
---|
2250 | rm -f conftest.$ac_objext |
---|
2251 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2252 | (eval $ac_compile) 2>conftest.er1 |
---|
2253 | ac_status=$? |
---|
2254 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2255 | rm -f conftest.er1 |
---|
2256 | cat conftest.err >&5 |
---|
2257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2258 | (exit $ac_status); } && |
---|
2259 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2260 | || test ! -s conftest.err' |
---|
2261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2262 | (eval $ac_try) 2>&5 |
---|
2263 | ac_status=$? |
---|
2264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2265 | (exit $ac_status); }; } && |
---|
2266 | { ac_try='test -s conftest.$ac_objext' |
---|
2267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2268 | (eval $ac_try) 2>&5 |
---|
2269 | ac_status=$? |
---|
2270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2271 | (exit $ac_status); }; }; then |
---|
2272 | ac_compiler_gnu=yes |
---|
2273 | else |
---|
2274 | echo "$as_me: failed program was:" >&5 |
---|
2275 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2276 | |
---|
2277 | ac_compiler_gnu=no |
---|
2278 | fi |
---|
2279 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2280 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2281 | |
---|
2282 | fi |
---|
2283 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2284 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2285 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2286 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2287 | ac_save_CFLAGS=$CFLAGS |
---|
2288 | CFLAGS="-g" |
---|
2289 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2290 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2291 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2293 | else |
---|
2294 | cat >conftest.$ac_ext <<_ACEOF |
---|
2295 | /* confdefs.h. */ |
---|
2296 | _ACEOF |
---|
2297 | cat confdefs.h >>conftest.$ac_ext |
---|
2298 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2299 | /* end confdefs.h. */ |
---|
2300 | |
---|
2301 | int |
---|
2302 | main () |
---|
2303 | { |
---|
2304 | |
---|
2305 | ; |
---|
2306 | return 0; |
---|
2307 | } |
---|
2308 | _ACEOF |
---|
2309 | rm -f conftest.$ac_objext |
---|
2310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2311 | (eval $ac_compile) 2>conftest.er1 |
---|
2312 | ac_status=$? |
---|
2313 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2314 | rm -f conftest.er1 |
---|
2315 | cat conftest.err >&5 |
---|
2316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2317 | (exit $ac_status); } && |
---|
2318 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2319 | || test ! -s conftest.err' |
---|
2320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2321 | (eval $ac_try) 2>&5 |
---|
2322 | ac_status=$? |
---|
2323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2324 | (exit $ac_status); }; } && |
---|
2325 | { ac_try='test -s conftest.$ac_objext' |
---|
2326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2327 | (eval $ac_try) 2>&5 |
---|
2328 | ac_status=$? |
---|
2329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2330 | (exit $ac_status); }; }; then |
---|
2331 | ac_cv_prog_cc_g=yes |
---|
2332 | else |
---|
2333 | echo "$as_me: failed program was:" >&5 |
---|
2334 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2335 | |
---|
2336 | ac_cv_prog_cc_g=no |
---|
2337 | fi |
---|
2338 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2339 | fi |
---|
2340 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2341 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
2342 | if test "$ac_test_CFLAGS" = set; then |
---|
2343 | CFLAGS=$ac_save_CFLAGS |
---|
2344 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2345 | if test "$GCC" = yes; then |
---|
2346 | CFLAGS="-g -O2" |
---|
2347 | else |
---|
2348 | CFLAGS="-g" |
---|
2349 | fi |
---|
2350 | else |
---|
2351 | if test "$GCC" = yes; then |
---|
2352 | CFLAGS="-O2" |
---|
2353 | else |
---|
2354 | CFLAGS= |
---|
2355 | fi |
---|
2356 | fi |
---|
2357 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
2358 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
2359 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
2360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2361 | else |
---|
2362 | ac_cv_prog_cc_stdc=no |
---|
2363 | ac_save_CC=$CC |
---|
2364 | cat >conftest.$ac_ext <<_ACEOF |
---|
2365 | /* confdefs.h. */ |
---|
2366 | _ACEOF |
---|
2367 | cat confdefs.h >>conftest.$ac_ext |
---|
2368 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2369 | /* end confdefs.h. */ |
---|
2370 | #include <stdarg.h> |
---|
2371 | #include <stdio.h> |
---|
2372 | #include <sys/types.h> |
---|
2373 | #include <sys/stat.h> |
---|
2374 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2375 | struct buf { int x; }; |
---|
2376 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2377 | static char *e (p, i) |
---|
2378 | char **p; |
---|
2379 | int i; |
---|
2380 | { |
---|
2381 | return p[i]; |
---|
2382 | } |
---|
2383 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2384 | { |
---|
2385 | char *s; |
---|
2386 | va_list v; |
---|
2387 | va_start (v,p); |
---|
2388 | s = g (p, va_arg (v,int)); |
---|
2389 | va_end (v); |
---|
2390 | return s; |
---|
2391 | } |
---|
2392 | |
---|
2393 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
2394 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
2395 | These don't provoke an error unfortunately, instead are silently treated |
---|
2396 | as 'x'. The following induces an error, until -std1 is added to get |
---|
2397 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
2398 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
2399 | that's true only with -std1. */ |
---|
2400 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
2401 | |
---|
2402 | int test (int i, double x); |
---|
2403 | struct s1 {int (*f) (int a);}; |
---|
2404 | struct s2 {int (*f) (double a);}; |
---|
2405 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2406 | int argc; |
---|
2407 | char **argv; |
---|
2408 | int |
---|
2409 | main () |
---|
2410 | { |
---|
2411 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2412 | ; |
---|
2413 | return 0; |
---|
2414 | } |
---|
2415 | _ACEOF |
---|
2416 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
2417 | # breaks some systems' header files. |
---|
2418 | # AIX -qlanglvl=ansi |
---|
2419 | # Ultrix and OSF/1 -std1 |
---|
2420 | # HP-UX 10.20 and later -Ae |
---|
2421 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
2422 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
2423 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
2424 | do |
---|
2425 | CC="$ac_save_CC $ac_arg" |
---|
2426 | rm -f conftest.$ac_objext |
---|
2427 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2428 | (eval $ac_compile) 2>conftest.er1 |
---|
2429 | ac_status=$? |
---|
2430 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2431 | rm -f conftest.er1 |
---|
2432 | cat conftest.err >&5 |
---|
2433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2434 | (exit $ac_status); } && |
---|
2435 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2436 | || test ! -s conftest.err' |
---|
2437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2438 | (eval $ac_try) 2>&5 |
---|
2439 | ac_status=$? |
---|
2440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2441 | (exit $ac_status); }; } && |
---|
2442 | { ac_try='test -s conftest.$ac_objext' |
---|
2443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2444 | (eval $ac_try) 2>&5 |
---|
2445 | ac_status=$? |
---|
2446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2447 | (exit $ac_status); }; }; then |
---|
2448 | ac_cv_prog_cc_stdc=$ac_arg |
---|
2449 | break |
---|
2450 | else |
---|
2451 | echo "$as_me: failed program was:" >&5 |
---|
2452 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2453 | |
---|
2454 | fi |
---|
2455 | rm -f conftest.err conftest.$ac_objext |
---|
2456 | done |
---|
2457 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
2458 | CC=$ac_save_CC |
---|
2459 | |
---|
2460 | fi |
---|
2461 | |
---|
2462 | case "x$ac_cv_prog_cc_stdc" in |
---|
2463 | x|xno) |
---|
2464 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
2465 | echo "${ECHO_T}none needed" >&6 ;; |
---|
2466 | *) |
---|
2467 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
2468 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
2469 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
2470 | esac |
---|
2471 | |
---|
2472 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
2473 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
2474 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
2475 | # the declaration of exit, since it's the most demanding environment. |
---|
2476 | cat >conftest.$ac_ext <<_ACEOF |
---|
2477 | #ifndef __cplusplus |
---|
2478 | choke me |
---|
2479 | #endif |
---|
2480 | _ACEOF |
---|
2481 | rm -f conftest.$ac_objext |
---|
2482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2483 | (eval $ac_compile) 2>conftest.er1 |
---|
2484 | ac_status=$? |
---|
2485 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2486 | rm -f conftest.er1 |
---|
2487 | cat conftest.err >&5 |
---|
2488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2489 | (exit $ac_status); } && |
---|
2490 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2491 | || test ! -s conftest.err' |
---|
2492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2493 | (eval $ac_try) 2>&5 |
---|
2494 | ac_status=$? |
---|
2495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2496 | (exit $ac_status); }; } && |
---|
2497 | { ac_try='test -s conftest.$ac_objext' |
---|
2498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2499 | (eval $ac_try) 2>&5 |
---|
2500 | ac_status=$? |
---|
2501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2502 | (exit $ac_status); }; }; then |
---|
2503 | for ac_declaration in \ |
---|
2504 | '' \ |
---|
2505 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2506 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2507 | 'extern "C" void exit (int) throw ();' \ |
---|
2508 | 'extern "C" void exit (int);' \ |
---|
2509 | 'void exit (int);' |
---|
2510 | do |
---|
2511 | cat >conftest.$ac_ext <<_ACEOF |
---|
2512 | /* confdefs.h. */ |
---|
2513 | _ACEOF |
---|
2514 | cat confdefs.h >>conftest.$ac_ext |
---|
2515 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2516 | /* end confdefs.h. */ |
---|
2517 | $ac_declaration |
---|
2518 | #include <stdlib.h> |
---|
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 | : |
---|
2550 | else |
---|
2551 | echo "$as_me: failed program was:" >&5 |
---|
2552 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2553 | |
---|
2554 | continue |
---|
2555 | fi |
---|
2556 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2557 | cat >conftest.$ac_ext <<_ACEOF |
---|
2558 | /* confdefs.h. */ |
---|
2559 | _ACEOF |
---|
2560 | cat confdefs.h >>conftest.$ac_ext |
---|
2561 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2562 | /* end confdefs.h. */ |
---|
2563 | $ac_declaration |
---|
2564 | int |
---|
2565 | main () |
---|
2566 | { |
---|
2567 | exit (42); |
---|
2568 | ; |
---|
2569 | return 0; |
---|
2570 | } |
---|
2571 | _ACEOF |
---|
2572 | rm -f conftest.$ac_objext |
---|
2573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2574 | (eval $ac_compile) 2>conftest.er1 |
---|
2575 | ac_status=$? |
---|
2576 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2577 | rm -f conftest.er1 |
---|
2578 | cat conftest.err >&5 |
---|
2579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2580 | (exit $ac_status); } && |
---|
2581 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2582 | || test ! -s conftest.err' |
---|
2583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2584 | (eval $ac_try) 2>&5 |
---|
2585 | ac_status=$? |
---|
2586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2587 | (exit $ac_status); }; } && |
---|
2588 | { ac_try='test -s conftest.$ac_objext' |
---|
2589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2590 | (eval $ac_try) 2>&5 |
---|
2591 | ac_status=$? |
---|
2592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2593 | (exit $ac_status); }; }; then |
---|
2594 | break |
---|
2595 | else |
---|
2596 | echo "$as_me: failed program was:" >&5 |
---|
2597 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2598 | |
---|
2599 | fi |
---|
2600 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2601 | done |
---|
2602 | rm -f conftest* |
---|
2603 | if test -n "$ac_declaration"; then |
---|
2604 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2605 | echo $ac_declaration >>confdefs.h |
---|
2606 | echo '#endif' >>confdefs.h |
---|
2607 | fi |
---|
2608 | |
---|
2609 | else |
---|
2610 | echo "$as_me: failed program was:" >&5 |
---|
2611 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2612 | |
---|
2613 | fi |
---|
2614 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2615 | ac_ext=c |
---|
2616 | ac_cpp='$CPP $CPPFLAGS' |
---|
2617 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2618 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2619 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2620 | |
---|
2621 | if test -z "$CC" ; then |
---|
2622 | { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5 |
---|
2623 | echo "$as_me: error: Failed to find a C compiler!" >&2;} |
---|
2624 | { (exit 1); exit 1; }; } |
---|
2625 | fi |
---|
2626 | # Autoconf incorrectly concludes that cl recognises -g. It doesn't. |
---|
2627 | case "$CC" in |
---|
2628 | cl* | */cl* | CL* | */CL* ) |
---|
2629 | if test "$ac_cv_prog_cc_g" = yes ; then |
---|
2630 | ac_cv_prog_cc_g=no |
---|
2631 | { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 |
---|
2632 | echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} |
---|
2633 | fi ;; |
---|
2634 | esac |
---|
2635 | CFLAGS="$save_cflags" |
---|
2636 | |
---|
2637 | # Check if a project specific CFLAGS variable has been set |
---|
2638 | if test x$COIN_PRJCT != x; then |
---|
2639 | eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set} |
---|
2640 | if test x$coin_tmp = xset; then |
---|
2641 | eval CFLAGS=\${${COIN_PRJCT}_CFLAGS} |
---|
2642 | fi |
---|
2643 | fi |
---|
2644 | |
---|
2645 | if test x"$CFLAGS" = x; then |
---|
2646 | |
---|
2647 | coin_add_cflags= |
---|
2648 | coin_opt_cflags= |
---|
2649 | coin_dbg_cflags= |
---|
2650 | coin_warn_cflags= |
---|
2651 | |
---|
2652 | if test "$GCC" = "yes"; then |
---|
2653 | case "$CC" in |
---|
2654 | icc* | */icc*) |
---|
2655 | ;; |
---|
2656 | *) |
---|
2657 | coin_opt_cflags="-O3 -fomit-frame-pointer" |
---|
2658 | coin_add_cflags="-pipe" |
---|
2659 | coin_dbg_cflags="-g" |
---|
2660 | coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall" |
---|
2661 | case $enable_doscompile in |
---|
2662 | mingw) |
---|
2663 | CFLAGS="-mno-cygwin" |
---|
2664 | cat >conftest.$ac_ext <<_ACEOF |
---|
2665 | /* confdefs.h. */ |
---|
2666 | _ACEOF |
---|
2667 | cat confdefs.h >>conftest.$ac_ext |
---|
2668 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2669 | /* end confdefs.h. */ |
---|
2670 | |
---|
2671 | int |
---|
2672 | main () |
---|
2673 | { |
---|
2674 | int i=0; i++; |
---|
2675 | ; |
---|
2676 | return 0; |
---|
2677 | } |
---|
2678 | _ACEOF |
---|
2679 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2680 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2681 | (eval $ac_link) 2>conftest.er1 |
---|
2682 | ac_status=$? |
---|
2683 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2684 | rm -f conftest.er1 |
---|
2685 | cat conftest.err >&5 |
---|
2686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2687 | (exit $ac_status); } && |
---|
2688 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2689 | || test ! -s conftest.err' |
---|
2690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2691 | (eval $ac_try) 2>&5 |
---|
2692 | ac_status=$? |
---|
2693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2694 | (exit $ac_status); }; } && |
---|
2695 | { ac_try='test -s conftest$ac_exeext' |
---|
2696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2697 | (eval $ac_try) 2>&5 |
---|
2698 | ac_status=$? |
---|
2699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2700 | (exit $ac_status); }; }; then |
---|
2701 | coin_add_cflags="-mno-cygwin $coin_add_cflags" |
---|
2702 | else |
---|
2703 | echo "$as_me: failed program was:" >&5 |
---|
2704 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2705 | |
---|
2706 | fi |
---|
2707 | rm -f conftest.err conftest.$ac_objext \ |
---|
2708 | conftest$ac_exeext conftest.$ac_ext |
---|
2709 | CFLAGS= |
---|
2710 | ;; |
---|
2711 | esac |
---|
2712 | esac |
---|
2713 | fi |
---|
2714 | if test -z "$coin_opt_cflags"; then |
---|
2715 | case $build in |
---|
2716 | *-cygwin* | *-mingw*) |
---|
2717 | case "$CC" in |
---|
2718 | cl* | */cl* | CL* | */CL*) |
---|
2719 | coin_opt_cflags='-MT -O2' |
---|
2720 | coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE' |
---|
2721 | coin_dbg_cflags='-MTd' |
---|
2722 | ;; |
---|
2723 | icl* | */icl* | ICL* | */ICL*) |
---|
2724 | coin_opt_cflags='-MT -Ox' |
---|
2725 | coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE' |
---|
2726 | coin_dbg_cflags='-MTd -debug' |
---|
2727 | ;; |
---|
2728 | esac |
---|
2729 | ;; |
---|
2730 | *-linux-*) |
---|
2731 | case "$CC" in |
---|
2732 | icc* | */icc*) |
---|
2733 | coin_opt_cflags="-O3 -ip" |
---|
2734 | coin_add_cflags="" |
---|
2735 | coin_dbg_cflags="-g" |
---|
2736 | # Check if -i_dynamic is necessary (for new glibc library) |
---|
2737 | CFLAGS= |
---|
2738 | cat >conftest.$ac_ext <<_ACEOF |
---|
2739 | /* confdefs.h. */ |
---|
2740 | _ACEOF |
---|
2741 | cat confdefs.h >>conftest.$ac_ext |
---|
2742 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2743 | /* end confdefs.h. */ |
---|
2744 | |
---|
2745 | int |
---|
2746 | main () |
---|
2747 | { |
---|
2748 | int i=0; i++; |
---|
2749 | ; |
---|
2750 | return 0; |
---|
2751 | } |
---|
2752 | _ACEOF |
---|
2753 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2754 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2755 | (eval $ac_link) 2>conftest.er1 |
---|
2756 | ac_status=$? |
---|
2757 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2758 | rm -f conftest.er1 |
---|
2759 | cat conftest.err >&5 |
---|
2760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2761 | (exit $ac_status); } && |
---|
2762 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2763 | || test ! -s conftest.err' |
---|
2764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2765 | (eval $ac_try) 2>&5 |
---|
2766 | ac_status=$? |
---|
2767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2768 | (exit $ac_status); }; } && |
---|
2769 | { ac_try='test -s conftest$ac_exeext' |
---|
2770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2771 | (eval $ac_try) 2>&5 |
---|
2772 | ac_status=$? |
---|
2773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2774 | (exit $ac_status); }; }; then |
---|
2775 | : |
---|
2776 | else |
---|
2777 | echo "$as_me: failed program was:" >&5 |
---|
2778 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2779 | |
---|
2780 | coin_add_cflags="-i_dynamic $coin_add_cflags" |
---|
2781 | fi |
---|
2782 | rm -f conftest.err conftest.$ac_objext \ |
---|
2783 | conftest$ac_exeext conftest.$ac_ext |
---|
2784 | ;; |
---|
2785 | pgcc* | */pgcc*) |
---|
2786 | coin_opt_cflags="-fast" |
---|
2787 | coin_add_cflags="-Kieee -pc 64" |
---|
2788 | coin_dbg_cflags="-g" |
---|
2789 | ;; |
---|
2790 | esac |
---|
2791 | ;; |
---|
2792 | *-ibm-*) |
---|
2793 | case "$CC" in |
---|
2794 | xlc* | */xlc* | mpxlc* | */mpxlc*) |
---|
2795 | coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" |
---|
2796 | coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029" |
---|
2797 | coin_dbg_cflags="-g" |
---|
2798 | ;; |
---|
2799 | esac |
---|
2800 | ;; |
---|
2801 | *-hp-*) |
---|
2802 | coin_opt_cflags="-O" |
---|
2803 | coin_add_cflags="-Ae" |
---|
2804 | coin_dbg_cflags="-g" |
---|
2805 | ;; |
---|
2806 | *-*-solaris*) |
---|
2807 | coin_opt_cflags="-xO4" |
---|
2808 | coin_dbg_cflags="-g" |
---|
2809 | ;; |
---|
2810 | *-sgi-*) |
---|
2811 | coin_opt_cflags="-O -OPT:Olimit=0" |
---|
2812 | coin_dbg_cflags="-g" |
---|
2813 | ;; |
---|
2814 | esac |
---|
2815 | fi |
---|
2816 | |
---|
2817 | if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then |
---|
2818 | coin_dbg_cflags="-g" |
---|
2819 | fi |
---|
2820 | |
---|
2821 | if test -z "$coin_opt_cflags"; then |
---|
2822 | # Try if -O option works if nothing else is set |
---|
2823 | CFLAGS="-O" |
---|
2824 | cat >conftest.$ac_ext <<_ACEOF |
---|
2825 | /* confdefs.h. */ |
---|
2826 | _ACEOF |
---|
2827 | cat confdefs.h >>conftest.$ac_ext |
---|
2828 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2829 | /* end confdefs.h. */ |
---|
2830 | |
---|
2831 | int |
---|
2832 | main () |
---|
2833 | { |
---|
2834 | int i=0; i++; |
---|
2835 | ; |
---|
2836 | return 0; |
---|
2837 | } |
---|
2838 | _ACEOF |
---|
2839 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2840 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2841 | (eval $ac_link) 2>conftest.er1 |
---|
2842 | ac_status=$? |
---|
2843 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2844 | rm -f conftest.er1 |
---|
2845 | cat conftest.err >&5 |
---|
2846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2847 | (exit $ac_status); } && |
---|
2848 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2849 | || test ! -s conftest.err' |
---|
2850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2851 | (eval $ac_try) 2>&5 |
---|
2852 | ac_status=$? |
---|
2853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2854 | (exit $ac_status); }; } && |
---|
2855 | { ac_try='test -s conftest$ac_exeext' |
---|
2856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2857 | (eval $ac_try) 2>&5 |
---|
2858 | ac_status=$? |
---|
2859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2860 | (exit $ac_status); }; }; then |
---|
2861 | coin_opt_cflags="-O" |
---|
2862 | else |
---|
2863 | echo "$as_me: failed program was:" >&5 |
---|
2864 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2865 | |
---|
2866 | fi |
---|
2867 | rm -f conftest.err conftest.$ac_objext \ |
---|
2868 | conftest$ac_exeext conftest.$ac_ext |
---|
2869 | fi |
---|
2870 | |
---|
2871 | # if PM doesn't want the warning messages, take them out |
---|
2872 | if test x"$coin_skip_warn_cflags" = xyes; then |
---|
2873 | coin_warn_cflags= |
---|
2874 | fi |
---|
2875 | |
---|
2876 | if test x${DBG_CFLAGS+set} != xset; then |
---|
2877 | DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags" |
---|
2878 | fi |
---|
2879 | if test x${OPT_CFLAGS+set} != xset; then |
---|
2880 | OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags" |
---|
2881 | fi |
---|
2882 | |
---|
2883 | DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS" |
---|
2884 | OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS" |
---|
2885 | |
---|
2886 | if test "$coin_debug_compile" = "true"; then |
---|
2887 | CFLAGS="$DBG_CFLAGS" |
---|
2888 | else |
---|
2889 | CFLAGS="$OPT_CFLAGS" |
---|
2890 | fi |
---|
2891 | else |
---|
2892 | CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS" |
---|
2893 | if test x${DBG_CFLAGS+set} != xset; then |
---|
2894 | DBG_CFLAGS="$CFLAGS" |
---|
2895 | fi |
---|
2896 | if test x${OPT_CFLAGS+set} != xset; then |
---|
2897 | OPT_CFLAGS="$CFLAGS" |
---|
2898 | fi |
---|
2899 | fi |
---|
2900 | |
---|
2901 | # If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it. |
---|
2902 | |
---|
2903 | case "$CFLAGS" in |
---|
2904 | *-mno-cygwin*) |
---|
2905 | if test x${CPPFLAGS+set} != xset ; then |
---|
2906 | CPPFLAGS="-mno-cygwin" |
---|
2907 | else |
---|
2908 | case "$CPPFLAGS" in |
---|
2909 | *-mno-cygwin*) |
---|
2910 | ;; |
---|
2911 | *) |
---|
2912 | CPPFLAGS="$CPPFLAGS -mno-cygwin" |
---|
2913 | ;; |
---|
2914 | esac |
---|
2915 | fi ;; |
---|
2916 | esac |
---|
2917 | |
---|
2918 | # Try if CFLAGS works |
---|
2919 | save_CFLAGS="$CFLAGS" |
---|
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: The value CFLAGS=\"$save_CFLAGS\" do not work. I will now just try '-O', but you might want to set CFLAGS manually." >&5 |
---|
2968 | 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;} |
---|
2969 | CFLAGS='-O' |
---|
2970 | cat >conftest.$ac_ext <<_ACEOF |
---|
2971 | /* confdefs.h. */ |
---|
2972 | _ACEOF |
---|
2973 | cat confdefs.h >>conftest.$ac_ext |
---|
2974 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2975 | /* end confdefs.h. */ |
---|
2976 | |
---|
2977 | int |
---|
2978 | main () |
---|
2979 | { |
---|
2980 | int i=0; i++; |
---|
2981 | ; |
---|
2982 | return 0; |
---|
2983 | } |
---|
2984 | _ACEOF |
---|
2985 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2986 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2987 | (eval $ac_link) 2>conftest.er1 |
---|
2988 | ac_status=$? |
---|
2989 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2990 | rm -f conftest.er1 |
---|
2991 | cat conftest.err >&5 |
---|
2992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2993 | (exit $ac_status); } && |
---|
2994 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2995 | || test ! -s conftest.err' |
---|
2996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2997 | (eval $ac_try) 2>&5 |
---|
2998 | ac_status=$? |
---|
2999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3000 | (exit $ac_status); }; } && |
---|
3001 | { ac_try='test -s conftest$ac_exeext' |
---|
3002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3003 | (eval $ac_try) 2>&5 |
---|
3004 | ac_status=$? |
---|
3005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3006 | (exit $ac_status); }; }; then |
---|
3007 | : |
---|
3008 | else |
---|
3009 | echo "$as_me: failed program was:" >&5 |
---|
3010 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3011 | |
---|
3012 | CFLAGS= |
---|
3013 | fi |
---|
3014 | rm -f conftest.err conftest.$ac_objext \ |
---|
3015 | conftest$ac_exeext conftest.$ac_ext |
---|
3016 | if test -z "$CFLAGS"; then |
---|
3017 | { 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 |
---|
3018 | 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;} |
---|
3019 | fi |
---|
3020 | fi |
---|
3021 | |
---|
3022 | { echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5 |
---|
3023 | echo "$as_me: C compiler options are: $CFLAGS" >&6;} |
---|
3024 | |
---|
3025 | |
---|
3026 | if test x"$MPICC" = x; then :; else |
---|
3027 | { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5 |
---|
3028 | echo "$as_me: Will use MPI C compiler $MPICC" >&6;} |
---|
3029 | CC="$MPICC" |
---|
3030 | fi |
---|
3031 | |
---|
3032 | # Correct ADDLIBS initialization if we are using the MS compiler |
---|
3033 | case "$CC" in |
---|
3034 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
---|
3035 | ADDLIBS= |
---|
3036 | case $build in |
---|
3037 | *-mingw*) |
---|
3038 | if test "${LD+set}" = set; then :; else |
---|
3039 | LD=link |
---|
3040 | fi |
---|
3041 | ;; |
---|
3042 | esac |
---|
3043 | case $enable_doscompile in |
---|
3044 | msvc) |
---|
3045 | if test "x${LD+set}" = xset; then :; else |
---|
3046 | LD=link |
---|
3047 | fi |
---|
3048 | ;; |
---|
3049 | esac |
---|
3050 | |
---|
3051 | ;; |
---|
3052 | esac |
---|
3053 | |
---|
3054 | ac_ext=c |
---|
3055 | ac_cpp='$CPP $CPPFLAGS' |
---|
3056 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3057 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3058 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3059 | |
---|
3060 | |
---|
3061 | |
---|
3062 | # Get the name of the C++ compiler and appropriate compiler options |
---|
3063 | |
---|
3064 | #Let's try if that overcomes configuration problem with VC++ 6.0 |
---|
3065 | |
---|
3066 | ac_ext=cc |
---|
3067 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3068 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3069 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3070 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
3071 | |
---|
3072 | |
---|
3073 | |
---|
3074 | |
---|
3075 | |
---|
3076 | |
---|
3077 | |
---|
3078 | coin_has_cxx=yes |
---|
3079 | |
---|
3080 | save_cxxflags="$CXXFLAGS" |
---|
3081 | # For *-*-solaris*, promote Studio/Workshop compiler to front of list. |
---|
3082 | case $build in |
---|
3083 | *-cygwin* | *-mingw*) |
---|
3084 | if test "$enable_doscompile" = msvc ; then |
---|
3085 | comps="icl cl" |
---|
3086 | else |
---|
3087 | comps="g++ cl" |
---|
3088 | fi ;; |
---|
3089 | *-*-solaris*) |
---|
3090 | comps="CC xlC aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;; |
---|
3091 | *-darwin*) comps="g++ c++ CC" ;; |
---|
3092 | *) comps="xlC aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;; |
---|
3093 | esac |
---|
3094 | |
---|
3095 | # We delete the cached value, since the test might not have been |
---|
3096 | # performed with our choice of compilers earlier |
---|
3097 | $as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; } |
---|
3098 | # AC_MSG_NOTICE([C++ compiler candidates: $comps]) |
---|
3099 | ac_ext=cc |
---|
3100 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3101 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3102 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3103 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
3104 | if test -n "$ac_tool_prefix"; then |
---|
3105 | for ac_prog in $CCC $comps |
---|
3106 | do |
---|
3107 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3108 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3109 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3110 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3111 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
3112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3113 | else |
---|
3114 | if test -n "$CXX"; then |
---|
3115 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
3116 | else |
---|
3117 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3118 | for as_dir in $PATH |
---|
3119 | do |
---|
3120 | IFS=$as_save_IFS |
---|
3121 | test -z "$as_dir" && as_dir=. |
---|
3122 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3123 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3124 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
3125 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3126 | break 2 |
---|
3127 | fi |
---|
3128 | done |
---|
3129 | done |
---|
3130 | |
---|
3131 | fi |
---|
3132 | fi |
---|
3133 | CXX=$ac_cv_prog_CXX |
---|
3134 | if test -n "$CXX"; then |
---|
3135 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
3136 | echo "${ECHO_T}$CXX" >&6 |
---|
3137 | else |
---|
3138 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3139 | echo "${ECHO_T}no" >&6 |
---|
3140 | fi |
---|
3141 | |
---|
3142 | test -n "$CXX" && break |
---|
3143 | done |
---|
3144 | fi |
---|
3145 | if test -z "$CXX"; then |
---|
3146 | ac_ct_CXX=$CXX |
---|
3147 | for ac_prog in $CCC $comps |
---|
3148 | do |
---|
3149 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3150 | set dummy $ac_prog; ac_word=$2 |
---|
3151 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3152 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3153 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
3154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3155 | else |
---|
3156 | if test -n "$ac_ct_CXX"; then |
---|
3157 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
3158 | else |
---|
3159 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3160 | for as_dir in $PATH |
---|
3161 | do |
---|
3162 | IFS=$as_save_IFS |
---|
3163 | test -z "$as_dir" && as_dir=. |
---|
3164 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3165 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3166 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
3167 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3168 | break 2 |
---|
3169 | fi |
---|
3170 | done |
---|
3171 | done |
---|
3172 | |
---|
3173 | fi |
---|
3174 | fi |
---|
3175 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
3176 | if test -n "$ac_ct_CXX"; then |
---|
3177 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
3178 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
3179 | else |
---|
3180 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3181 | echo "${ECHO_T}no" >&6 |
---|
3182 | fi |
---|
3183 | |
---|
3184 | test -n "$ac_ct_CXX" && break |
---|
3185 | done |
---|
3186 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
3187 | |
---|
3188 | CXX=$ac_ct_CXX |
---|
3189 | fi |
---|
3190 | |
---|
3191 | |
---|
3192 | # Provide some information about the compiler. |
---|
3193 | echo "$as_me:$LINENO:" \ |
---|
3194 | "checking for C++ compiler version" >&5 |
---|
3195 | ac_compiler=`set X $ac_compile; echo $2` |
---|
3196 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
3197 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
3198 | ac_status=$? |
---|
3199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3200 | (exit $ac_status); } |
---|
3201 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
3202 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
3203 | ac_status=$? |
---|
3204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3205 | (exit $ac_status); } |
---|
3206 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
3207 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
3208 | ac_status=$? |
---|
3209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3210 | (exit $ac_status); } |
---|
3211 | |
---|
3212 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
3213 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
3214 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
3215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3216 | else |
---|
3217 | cat >conftest.$ac_ext <<_ACEOF |
---|
3218 | /* confdefs.h. */ |
---|
3219 | _ACEOF |
---|
3220 | cat confdefs.h >>conftest.$ac_ext |
---|
3221 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3222 | /* end confdefs.h. */ |
---|
3223 | |
---|
3224 | int |
---|
3225 | main () |
---|
3226 | { |
---|
3227 | #ifndef __GNUC__ |
---|
3228 | choke me |
---|
3229 | #endif |
---|
3230 | |
---|
3231 | ; |
---|
3232 | return 0; |
---|
3233 | } |
---|
3234 | _ACEOF |
---|
3235 | rm -f conftest.$ac_objext |
---|
3236 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3237 | (eval $ac_compile) 2>conftest.er1 |
---|
3238 | ac_status=$? |
---|
3239 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3240 | rm -f conftest.er1 |
---|
3241 | cat conftest.err >&5 |
---|
3242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3243 | (exit $ac_status); } && |
---|
3244 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
3245 | || test ! -s conftest.err' |
---|
3246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3247 | (eval $ac_try) 2>&5 |
---|
3248 | ac_status=$? |
---|
3249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3250 | (exit $ac_status); }; } && |
---|
3251 | { ac_try='test -s conftest.$ac_objext' |
---|
3252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3253 | (eval $ac_try) 2>&5 |
---|
3254 | ac_status=$? |
---|
3255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3256 | (exit $ac_status); }; }; then |
---|
3257 | ac_compiler_gnu=yes |
---|
3258 | else |
---|
3259 | echo "$as_me: failed program was:" >&5 |
---|
3260 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3261 | |
---|
3262 | ac_compiler_gnu=no |
---|
3263 | fi |
---|
3264 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3265 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
3266 | |
---|
3267 | fi |
---|
3268 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
3269 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
3270 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
3271 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
3272 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
3273 | CXXFLAGS="-g" |
---|
3274 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
3275 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
3276 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
3277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3278 | else |
---|
3279 | cat >conftest.$ac_ext <<_ACEOF |
---|
3280 | /* confdefs.h. */ |
---|
3281 | _ACEOF |
---|
3282 | cat confdefs.h >>conftest.$ac_ext |
---|
3283 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3284 | /* end confdefs.h. */ |
---|
3285 | |
---|
3286 | int |
---|
3287 | main () |
---|
3288 | { |
---|
3289 | |
---|
3290 | ; |
---|
3291 | return 0; |
---|
3292 | } |
---|
3293 | _ACEOF |
---|
3294 | rm -f conftest.$ac_objext |
---|
3295 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3296 | (eval $ac_compile) 2>conftest.er1 |
---|
3297 | ac_status=$? |
---|
3298 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3299 | rm -f conftest.er1 |
---|
3300 | cat conftest.err >&5 |
---|
3301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3302 | (exit $ac_status); } && |
---|
3303 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
3304 | || test ! -s conftest.err' |
---|
3305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3306 | (eval $ac_try) 2>&5 |
---|
3307 | ac_status=$? |
---|
3308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3309 | (exit $ac_status); }; } && |
---|
3310 | { ac_try='test -s conftest.$ac_objext' |
---|
3311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3312 | (eval $ac_try) 2>&5 |
---|
3313 | ac_status=$? |
---|
3314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3315 | (exit $ac_status); }; }; then |
---|
3316 | ac_cv_prog_cxx_g=yes |
---|
3317 | else |
---|
3318 | echo "$as_me: failed program was:" >&5 |
---|
3319 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3320 | |
---|
3321 | ac_cv_prog_cxx_g=no |
---|
3322 | fi |
---|
3323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3324 | fi |
---|
3325 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
3326 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
3327 | if test "$ac_test_CXXFLAGS" = set; then |
---|
3328 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
3329 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
3330 | if test "$GXX" = yes; then |
---|
3331 | CXXFLAGS="-g -O2" |
---|
3332 | else |
---|
3333 | CXXFLAGS="-g" |
---|
3334 | fi |
---|
3335 | else |
---|
3336 | if test "$GXX" = yes; then |
---|
3337 | CXXFLAGS="-O2" |
---|
3338 | else |
---|
3339 | CXXFLAGS= |
---|
3340 | fi |
---|
3341 | fi |
---|
3342 | for ac_declaration in \ |
---|
3343 | '' \ |
---|
3344 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
3345 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
3346 | 'extern "C" void exit (int) throw ();' \ |
---|
3347 | 'extern "C" void exit (int);' \ |
---|
3348 | 'void exit (int);' |
---|
3349 | do |
---|
3350 | cat >conftest.$ac_ext <<_ACEOF |
---|
3351 | /* confdefs.h. */ |
---|
3352 | _ACEOF |
---|
3353 | cat confdefs.h >>conftest.$ac_ext |
---|
3354 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3355 | /* end confdefs.h. */ |
---|
3356 | $ac_declaration |
---|
3357 | #include <stdlib.h> |
---|
3358 | int |
---|
3359 | main () |
---|
3360 | { |
---|
3361 | exit (42); |
---|
3362 | ; |
---|
3363 | return 0; |
---|
3364 | } |
---|
3365 | _ACEOF |
---|
3366 | rm -f conftest.$ac_objext |
---|
3367 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3368 | (eval $ac_compile) 2>conftest.er1 |
---|
3369 | ac_status=$? |
---|
3370 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3371 | rm -f conftest.er1 |
---|
3372 | cat conftest.err >&5 |
---|
3373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3374 | (exit $ac_status); } && |
---|
3375 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
3376 | || test ! -s conftest.err' |
---|
3377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3378 | (eval $ac_try) 2>&5 |
---|
3379 | ac_status=$? |
---|
3380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3381 | (exit $ac_status); }; } && |
---|
3382 | { ac_try='test -s conftest.$ac_objext' |
---|
3383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3384 | (eval $ac_try) 2>&5 |
---|
3385 | ac_status=$? |
---|
3386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3387 | (exit $ac_status); }; }; then |
---|
3388 | : |
---|
3389 | else |
---|
3390 | echo "$as_me: failed program was:" >&5 |
---|
3391 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3392 | |
---|
3393 | continue |
---|
3394 | fi |
---|
3395 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3396 | cat >conftest.$ac_ext <<_ACEOF |
---|
3397 | /* confdefs.h. */ |
---|
3398 | _ACEOF |
---|
3399 | cat confdefs.h >>conftest.$ac_ext |
---|
3400 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3401 | /* end confdefs.h. */ |
---|
3402 | $ac_declaration |
---|
3403 | int |
---|
3404 | main () |
---|
3405 | { |
---|
3406 | exit (42); |
---|
3407 | ; |
---|
3408 | return 0; |
---|
3409 | } |
---|
3410 | _ACEOF |
---|
3411 | rm -f conftest.$ac_objext |
---|
3412 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3413 | (eval $ac_compile) 2>conftest.er1 |
---|
3414 | ac_status=$? |
---|
3415 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3416 | rm -f conftest.er1 |
---|
3417 | cat conftest.err >&5 |
---|
3418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3419 | (exit $ac_status); } && |
---|
3420 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
3421 | || test ! -s conftest.err' |
---|
3422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3423 | (eval $ac_try) 2>&5 |
---|
3424 | ac_status=$? |
---|
3425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3426 | (exit $ac_status); }; } && |
---|
3427 | { ac_try='test -s conftest.$ac_objext' |
---|
3428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3429 | (eval $ac_try) 2>&5 |
---|
3430 | ac_status=$? |
---|
3431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3432 | (exit $ac_status); }; }; then |
---|
3433 | break |
---|
3434 | else |
---|
3435 | echo "$as_me: failed program was:" >&5 |
---|
3436 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3437 | |
---|
3438 | fi |
---|
3439 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3440 | done |
---|
3441 | rm -f conftest* |
---|
3442 | if test -n "$ac_declaration"; then |
---|
3443 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
3444 | echo $ac_declaration >>confdefs.h |
---|
3445 | echo '#endif' >>confdefs.h |
---|
3446 | fi |
---|
3447 | |
---|
3448 | ac_ext=cc |
---|
3449 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3450 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3451 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3452 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
3453 | |
---|
3454 | if test -z "$CXX" ; then |
---|
3455 | { { echo "$as_me:$LINENO: error: Failed to find a C++ compiler!" >&5 |
---|
3456 | echo "$as_me: error: Failed to find a C++ compiler!" >&2;} |
---|
3457 | { (exit 1); exit 1; }; } |
---|
3458 | fi |
---|
3459 | |
---|
3460 | # It seems that we need to cleanup something here for the Windows |
---|
3461 | case "$CXX" in |
---|
3462 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
---|
3463 | sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh |
---|
3464 | mv confdefs.hh confdefs.h |
---|
3465 | ;; |
---|
3466 | esac |
---|
3467 | |
---|
3468 | # Autoconf incorrectly concludes that cl recognises -g. It doesn't. |
---|
3469 | case "$CXX" in |
---|
3470 | cl* | */cl* | CL* | */CL* ) |
---|
3471 | if test "$ac_cv_prog_cxx_g" = yes ; then |
---|
3472 | ac_cv_prog_cxx_g=no |
---|
3473 | { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 |
---|
3474 | echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} |
---|
3475 | fi ;; |
---|
3476 | esac |
---|
3477 | CXXFLAGS="$save_cxxflags" |
---|
3478 | |
---|
3479 | # Check if a project specific CXXFLAGS variable has been set |
---|
3480 | if test x$COIN_PRJCT != x; then |
---|
3481 | eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set} |
---|
3482 | if test x$coin_tmp = xset; then |
---|
3483 | eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS} |
---|
3484 | fi |
---|
3485 | fi |
---|
3486 | |
---|
3487 | if test x"$CXXFLAGS" = x; then |
---|
3488 | |
---|
3489 | # ToDo decide whether we want -DNDEBUG for optimization |
---|
3490 | coin_add_cxxflags= |
---|
3491 | coin_opt_cxxflags= |
---|
3492 | coin_dbg_cxxflags= |
---|
3493 | coin_warn_cxxflags= |
---|
3494 | |
---|
3495 | if test "$GXX" = "yes"; then |
---|
3496 | case "$CXX" in |
---|
3497 | icpc* | */icpc*) |
---|
3498 | ;; |
---|
3499 | *) |
---|
3500 | # ToDo decide about unroll-loops |
---|
3501 | coin_opt_cxxflags="-O3 -fomit-frame-pointer" |
---|
3502 | coin_add_cxxflags="-pipe" |
---|
3503 | coin_dbg_cxxflags="-g" |
---|
3504 | coin_warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion" |
---|
3505 | case $enable_doscompile in |
---|
3506 | mingw) |
---|
3507 | CXXFLAGS="-mno-cygwin" |
---|
3508 | cat >conftest.$ac_ext <<_ACEOF |
---|
3509 | /* confdefs.h. */ |
---|
3510 | _ACEOF |
---|
3511 | cat confdefs.h >>conftest.$ac_ext |
---|
3512 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3513 | /* end confdefs.h. */ |
---|
3514 | |
---|
3515 | int |
---|
3516 | main () |
---|
3517 | { |
---|
3518 | int i=0; i++; |
---|
3519 | ; |
---|
3520 | return 0; |
---|
3521 | } |
---|
3522 | _ACEOF |
---|
3523 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3525 | (eval $ac_link) 2>conftest.er1 |
---|
3526 | ac_status=$? |
---|
3527 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3528 | rm -f conftest.er1 |
---|
3529 | cat conftest.err >&5 |
---|
3530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3531 | (exit $ac_status); } && |
---|
3532 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
3533 | || test ! -s conftest.err' |
---|
3534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3535 | (eval $ac_try) 2>&5 |
---|
3536 | ac_status=$? |
---|
3537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3538 | (exit $ac_status); }; } && |
---|
3539 | { ac_try='test -s conftest$ac_exeext' |
---|
3540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3541 | (eval $ac_try) 2>&5 |
---|
3542 | ac_status=$? |
---|
3543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3544 | (exit $ac_status); }; }; then |
---|
3545 | coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags" |
---|
3546 | else |
---|
3547 | echo "$as_me: failed program was:" >&5 |
---|
3548 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3549 | |
---|
3550 | fi |
---|
3551 | rm -f conftest.err conftest.$ac_objext \ |
---|
3552 | conftest$ac_exeext conftest.$ac_ext |
---|
3553 | CXXFLAGS= |
---|
3554 | ;; |
---|
3555 | esac |
---|
3556 | esac |
---|
3557 | fi |
---|
3558 | |
---|
3559 | # Note that we do not need to cover GCC in the following tests. |
---|
3560 | |
---|
3561 | if test -z "$coin_opt_cxxflags"; then |
---|
3562 | case $build in |
---|
3563 | *-cygwin* | *-mingw*) |
---|
3564 | case "$CXX" in |
---|
3565 | cl* | */cl* | CL* | */CL*) |
---|
3566 | # The MT and MTd options are mutually exclusive |
---|
3567 | coin_opt_cxxflags='-MT -O2' |
---|
3568 | coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE' |
---|
3569 | coin_dbg_cxxflags='-MTd' |
---|
3570 | ;; |
---|
3571 | icl* | */icl* | ICL* | */ICL*) |
---|
3572 | # The MT and MTd options are mutually exclusive |
---|
3573 | coin_opt_cxxflags='-MT -Ox' |
---|
3574 | coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE' |
---|
3575 | coin_dbg_cxxflags='-MTd -debug' |
---|
3576 | ;; |
---|
3577 | esac |
---|
3578 | ;; |
---|
3579 | *-linux-*) |
---|
3580 | case "$CXX" in |
---|
3581 | icpc* | */icpc*) |
---|
3582 | coin_opt_cxxflags="-O3 -ip" |
---|
3583 | coin_add_cxxflags="" |
---|
3584 | coin_dbg_cxxflags="-g" |
---|
3585 | # Check if -i_dynamic is necessary (for new glibc library) |
---|
3586 | CXXFLAGS= |
---|
3587 | cat >conftest.$ac_ext <<_ACEOF |
---|
3588 | /* confdefs.h. */ |
---|
3589 | _ACEOF |
---|
3590 | cat confdefs.h >>conftest.$ac_ext |
---|
3591 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3592 | /* end confdefs.h. */ |
---|
3593 | |
---|
3594 | int |
---|
3595 | main () |
---|
3596 | { |
---|
3597 | int i=0; i++; |
---|
3598 | ; |
---|
3599 | return 0; |
---|
3600 | } |
---|
3601 | _ACEOF |
---|
3602 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3603 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3604 | (eval $ac_link) 2>conftest.er1 |
---|
3605 | ac_status=$? |
---|
3606 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3607 | rm -f conftest.er1 |
---|
3608 | cat conftest.err >&5 |
---|
3609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3610 | (exit $ac_status); } && |
---|
3611 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
3612 | || test ! -s conftest.err' |
---|
3613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3614 | (eval $ac_try) 2>&5 |
---|
3615 | ac_status=$? |
---|
3616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3617 | (exit $ac_status); }; } && |
---|
3618 | { ac_try='test -s conftest$ac_exeext' |
---|
3619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3620 | (eval $ac_try) 2>&5 |
---|
3621 | ac_status=$? |
---|
3622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3623 | (exit $ac_status); }; }; then |
---|
3624 | : |
---|
3625 | else |
---|
3626 | echo "$as_me: failed program was:" >&5 |
---|
3627 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3628 | |
---|
3629 | coin_add_cxxflags="-i_dynamic $coin_add_cxxflags" |
---|
3630 | fi |
---|
3631 | rm -f conftest.err conftest.$ac_objext \ |
---|
3632 | conftest$ac_exeext conftest.$ac_ext |
---|
3633 | ;; |
---|
3634 | pgCC* | */pgCC*) |
---|
3635 | coin_opt_cxxflags="-fast" |
---|
3636 | coin_add_cxxflags="-Kieee -pc 64" |
---|
3637 | coin_dbg_cxxflags="-g" |
---|
3638 | ;; |
---|
3639 | esac |
---|
3640 | ;; |
---|
3641 | *-ibm-*) |
---|
3642 | case "$CXX" in |
---|
3643 | xlC* | */xlC* | mpxlC* | */mpxlC*) |
---|
3644 | coin_opt_cxxflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" |
---|
3645 | coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029" |
---|
3646 | coin_dbg_cxxflags="-g" |
---|
3647 | ;; |
---|
3648 | esac |
---|
3649 | ;; |
---|
3650 | *-hp-*) |
---|
3651 | case "$CXX" in |
---|
3652 | aCC* | */aCC* ) |
---|
3653 | coin_opt_cxxflags="-O" |
---|
3654 | coin_add_cxxflags="-AA" |
---|
3655 | coin_dbg_cxxflags="-g" |
---|
3656 | ;; |
---|
3657 | esac |
---|
3658 | ;; |
---|
3659 | *-*-solaris*) |
---|
3660 | coin_opt_cxxflags="-O4" |
---|
3661 | coin_dbg_cxxflags="-g" |
---|
3662 | ;; |
---|
3663 | esac |
---|
3664 | fi |
---|
3665 | |
---|
3666 | # Generic flag settings. If these don't work, add a case above. |
---|
3667 | |
---|
3668 | if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then |
---|
3669 | coin_dbg_cxxflags="-g" |
---|
3670 | fi |
---|
3671 | |
---|
3672 | if test -z "$coin_opt_cxxflags"; then |
---|
3673 | # Try if -O option works if nothing else is set |
---|
3674 | CXXFLAGS=-O |
---|
3675 | cat >conftest.$ac_ext <<_ACEOF |
---|
3676 | /* confdefs.h. */ |
---|
3677 | _ACEOF |
---|
3678 | cat confdefs.h >>conftest.$ac_ext |
---|
3679 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3680 | /* end confdefs.h. */ |
---|
3681 | |
---|
3682 | int |
---|
3683 | main () |
---|
3684 | { |
---|
3685 | int i=0; i++; |
---|
3686 | ; |
---|
3687 | return 0; |
---|
3688 | } |
---|
3689 | _ACEOF |
---|
3690 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3691 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3692 | (eval $ac_link) 2>conftest.er1 |
---|
3693 | ac_status=$? |
---|
3694 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3695 | rm -f conftest.er1 |
---|
3696 | cat conftest.err >&5 |
---|
3697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3698 | (exit $ac_status); } && |
---|
3699 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
3700 | || test ! -s conftest.err' |
---|
3701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3702 | (eval $ac_try) 2>&5 |
---|
3703 | ac_status=$? |
---|
3704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3705 | (exit $ac_status); }; } && |
---|
3706 | { ac_try='test -s conftest$ac_exeext' |
---|
3707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3708 | (eval $ac_try) 2>&5 |
---|
3709 | ac_status=$? |
---|
3710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3711 | (exit $ac_status); }; }; then |
---|
3712 | coin_opt_cxxflags="-O" |
---|
3713 | else |
---|
3714 | echo "$as_me: failed program was:" >&5 |
---|
3715 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3716 | |
---|
3717 | fi |
---|
3718 | rm -f conftest.err conftest.$ac_objext \ |
---|
3719 | conftest$ac_exeext conftest.$ac_ext |
---|
3720 | fi |
---|
3721 | |
---|
3722 | # if PM doesn't want the warning messages, take them out |
---|
3723 | if test x"$coin_skip_warn_cxxflags" = xyes; then |
---|
3724 | coin_warn_cxxflags= |
---|
3725 | fi |
---|
3726 | |
---|
3727 | # Do final setup of flags based on values determined above. |
---|
3728 | |
---|
3729 | if test x${DBG_CXXFLAGS+set} != xset; then |
---|
3730 | DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags" |
---|
3731 | fi |
---|
3732 | if test x${OPT_CXXFLAGS+set} != xset; then |
---|
3733 | OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags" |
---|
3734 | fi |
---|
3735 | |
---|
3736 | DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" |
---|
3737 | OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" |
---|
3738 | |
---|
3739 | if test "$coin_debug_compile" = "true"; then |
---|
3740 | CXXFLAGS="$DBG_CXXFLAGS" |
---|
3741 | else |
---|
3742 | CXXFLAGS="$OPT_CXXFLAGS" |
---|
3743 | fi |
---|
3744 | |
---|
3745 | # Handle the case where CXXFLAGS was set externally. |
---|
3746 | else |
---|
3747 | CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" |
---|
3748 | if test x${DBG_CXXFLAGS+set} != xset; then |
---|
3749 | DBG_CXXFLAGS="$CXXFLAGS" |
---|
3750 | fi |
---|
3751 | if test x${OPT_CXXFLAGS+set} != xset; then |
---|
3752 | OPT_CXXFLAGS="$CXXFLAGS" |
---|
3753 | fi |
---|
3754 | fi |
---|
3755 | |
---|
3756 | # If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it. |
---|
3757 | |
---|
3758 | case "$CXXFLAGS" in |
---|
3759 | *-mno-cygwin*) |
---|
3760 | if test x${CPPFLAGS+set} != xset ; then |
---|
3761 | CPPFLAGS="-mno-cygwin" |
---|
3762 | else |
---|
3763 | case "$CPPFLAGS" in |
---|
3764 | *-mno-cygwin*) |
---|
3765 | ;; |
---|
3766 | *) |
---|
3767 | CPPFLAGS="$CPPFLAGS -mno-cygwin" |
---|
3768 | ;; |
---|
3769 | esac |
---|
3770 | fi ;; |
---|
3771 | esac |
---|
3772 | |
---|
3773 | # Try if CXXFLAGS works |
---|
3774 | save_CXXFLAGS="$CXXFLAGS" |
---|
3775 | cat >conftest.$ac_ext <<_ACEOF |
---|
3776 | /* confdefs.h. */ |
---|
3777 | _ACEOF |
---|
3778 | cat confdefs.h >>conftest.$ac_ext |
---|
3779 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3780 | /* end confdefs.h. */ |
---|
3781 | |
---|
3782 | int |
---|
3783 | main () |
---|
3784 | { |
---|
3785 | int i=0; i++; |
---|
3786 | ; |
---|
3787 | return 0; |
---|
3788 | } |
---|
3789 | _ACEOF |
---|
3790 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3791 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3792 | (eval $ac_link) 2>conftest.er1 |
---|
3793 | ac_status=$? |
---|
3794 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3795 | rm -f conftest.er1 |
---|
3796 | cat conftest.err >&5 |
---|
3797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3798 | (exit $ac_status); } && |
---|
3799 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
3800 | || test ! -s conftest.err' |
---|
3801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3802 | (eval $ac_try) 2>&5 |
---|
3803 | ac_status=$? |
---|
3804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3805 | (exit $ac_status); }; } && |
---|
3806 | { ac_try='test -s conftest$ac_exeext' |
---|
3807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3808 | (eval $ac_try) 2>&5 |
---|
3809 | ac_status=$? |
---|
3810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3811 | (exit $ac_status); }; }; then |
---|
3812 | : |
---|
3813 | else |
---|
3814 | echo "$as_me: failed program was:" >&5 |
---|
3815 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3816 | |
---|
3817 | CXXFLAGS= |
---|
3818 | fi |
---|
3819 | rm -f conftest.err conftest.$ac_objext \ |
---|
3820 | conftest$ac_exeext conftest.$ac_ext |
---|
3821 | if test -z "$CXXFLAGS"; then |
---|
3822 | { echo "$as_me:$LINENO: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work. I will now just try '-O', but you might want to set CXXFLAGS manually." >&5 |
---|
3823 | echo "$as_me: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work. I will now just try '-O', but you might want to set CXXFLAGS manually." >&2;} |
---|
3824 | CXXFLAGS='-O' |
---|
3825 | cat >conftest.$ac_ext <<_ACEOF |
---|
3826 | /* confdefs.h. */ |
---|
3827 | _ACEOF |
---|
3828 | cat confdefs.h >>conftest.$ac_ext |
---|
3829 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3830 | /* end confdefs.h. */ |
---|
3831 | |
---|
3832 | int |
---|
3833 | main () |
---|
3834 | { |
---|
3835 | int i=0; i++; |
---|
3836 | ; |
---|
3837 | return 0; |
---|
3838 | } |
---|
3839 | _ACEOF |
---|
3840 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3841 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3842 | (eval $ac_link) 2>conftest.er1 |
---|
3843 | ac_status=$? |
---|
3844 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3845 | rm -f conftest.er1 |
---|
3846 | cat conftest.err >&5 |
---|
3847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3848 | (exit $ac_status); } && |
---|
3849 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
3850 | || test ! -s conftest.err' |
---|
3851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3852 | (eval $ac_try) 2>&5 |
---|
3853 | ac_status=$? |
---|
3854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3855 | (exit $ac_status); }; } && |
---|
3856 | { ac_try='test -s conftest$ac_exeext' |
---|
3857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3858 | (eval $ac_try) 2>&5 |
---|
3859 | ac_status=$? |
---|
3860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3861 | (exit $ac_status); }; }; then |
---|
3862 | : |
---|
3863 | else |
---|
3864 | echo "$as_me: failed program was:" >&5 |
---|
3865 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3866 | |
---|
3867 | CXXFLAGS= |
---|
3868 | fi |
---|
3869 | rm -f conftest.err conftest.$ac_objext \ |
---|
3870 | conftest$ac_exeext conftest.$ac_ext |
---|
3871 | if test -z "$CXXFLAGS"; then |
---|
3872 | { echo "$as_me:$LINENO: WARNING: This value for CXXFLAGS does not work. I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&5 |
---|
3873 | echo "$as_me: WARNING: This value for CXXFLAGS does not work. I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&2;} |
---|
3874 | fi |
---|
3875 | fi |
---|
3876 | |
---|
3877 | { echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5 |
---|
3878 | echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;} |
---|
3879 | |
---|
3880 | |
---|
3881 | if test x"$MPICXX" = x; then :; else |
---|
3882 | { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5 |
---|
3883 | echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;} |
---|
3884 | CXX="$MPICXX" |
---|
3885 | fi |
---|
3886 | |
---|
3887 | case "$CXX" in |
---|
3888 | cl* | */cl* | CL* | */CL* ) |
---|
3889 | case $build in |
---|
3890 | *-mingw*) |
---|
3891 | if test "${LD+set}" = set; then :; else |
---|
3892 | LD=link |
---|
3893 | fi |
---|
3894 | ;; |
---|
3895 | esac |
---|
3896 | case $enable_doscompile in |
---|
3897 | msvc) |
---|
3898 | if test "x${LD+set}" = xset; then :; else |
---|
3899 | LD=link |
---|
3900 | fi |
---|
3901 | ;; |
---|
3902 | esac |
---|
3903 | |
---|
3904 | ;; |
---|
3905 | esac |
---|
3906 | |
---|
3907 | ac_ext=c |
---|
3908 | ac_cpp='$CPP $CPPFLAGS' |
---|
3909 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3910 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3911 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3912 | |
---|
3913 | |
---|
3914 | |
---|
3915 | # Get the name of the Fortran compiler and appropriate compiler options |
---|
3916 | case $build in |
---|
3917 | *-cygwin* | *-mingw*) |
---|
3918 | if test "$enable_doscompile" = msvc ; then |
---|
3919 | coin_f77_comps="ifort fl32 compile_f2c" |
---|
3920 | else |
---|
3921 | coin_f77_comps="gfortran g77 ifort fl32 compile_f2c" |
---|
3922 | fi ;; |
---|
3923 | *-*-solaris*) |
---|
3924 | coin_f77_comps="f95 f90 f77 xlf fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;; |
---|
3925 | *) coin_f77_comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;; |
---|
3926 | esac |
---|
3927 | |
---|
3928 | |
---|
3929 | |
---|
3930 | |
---|
3931 | |
---|
3932 | |
---|
3933 | ac_ext=f |
---|
3934 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
3935 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3936 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
3937 | |
---|
3938 | |
---|
3939 | |
---|
3940 | |
---|
3941 | |
---|
3942 | |
---|
3943 | coin_has_f77=yes |
---|
3944 | |
---|
3945 | save_fflags="$FFLAGS" |
---|
3946 | |
---|
3947 | # We delete the cached value, since the test might not have been |
---|
3948 | # performed with our choice of compilers earlier |
---|
3949 | $as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; } |
---|
3950 | |
---|
3951 | # This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use |
---|
3952 | # coin_f77_comps to see if there's a program that matches one of the names. |
---|
3953 | # If there's no such program, F77 = unavailable. If we match the name, |
---|
3954 | # feed AC_PROG_F77 the same search list, just to be sure it's a functioning |
---|
3955 | # compiler. |
---|
3956 | # AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps]) |
---|
3957 | |
---|
3958 | |
---|
3959 | { echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5 |
---|
3960 | echo "$as_me: Trying to determine Fortran compiler name" >&6;} |
---|
3961 | for ac_prog in $coin_f77_comps |
---|
3962 | do |
---|
3963 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3964 | set dummy $ac_prog; ac_word=$2 |
---|
3965 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3966 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3967 | if test "${ac_cv_prog_F77+set}" = set; then |
---|
3968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3969 | else |
---|
3970 | if test -n "$F77"; then |
---|
3971 | ac_cv_prog_F77="$F77" # Let the user override the test. |
---|
3972 | else |
---|
3973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3974 | for as_dir in $PATH |
---|
3975 | do |
---|
3976 | IFS=$as_save_IFS |
---|
3977 | test -z "$as_dir" && as_dir=. |
---|
3978 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3979 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3980 | ac_cv_prog_F77="$ac_prog" |
---|
3981 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3982 | break 2 |
---|
3983 | fi |
---|
3984 | done |
---|
3985 | done |
---|
3986 | |
---|
3987 | fi |
---|
3988 | fi |
---|
3989 | F77=$ac_cv_prog_F77 |
---|
3990 | if test -n "$F77"; then |
---|
3991 | echo "$as_me:$LINENO: result: $F77" >&5 |
---|
3992 | echo "${ECHO_T}$F77" >&6 |
---|
3993 | else |
---|
3994 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3995 | echo "${ECHO_T}no" >&6 |
---|
3996 | fi |
---|
3997 | |
---|
3998 | test -n "$F77" && break |
---|
3999 | done |
---|
4000 | test -n "$F77" || F77="unavailable" |
---|
4001 | |
---|
4002 | |
---|
4003 | if test "$F77" != "unavailable" ; then |
---|
4004 | ac_ext=f |
---|
4005 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4006 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4007 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4008 | if test -n "$ac_tool_prefix"; then |
---|
4009 | for ac_prog in $coin_f77_comps |
---|
4010 | do |
---|
4011 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
4012 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
4013 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4014 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4015 | if test "${ac_cv_prog_F77+set}" = set; then |
---|
4016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4017 | else |
---|
4018 | if test -n "$F77"; then |
---|
4019 | ac_cv_prog_F77="$F77" # Let the user override the test. |
---|
4020 | else |
---|
4021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4022 | for as_dir in $PATH |
---|
4023 | do |
---|
4024 | IFS=$as_save_IFS |
---|
4025 | test -z "$as_dir" && as_dir=. |
---|
4026 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4027 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4028 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
---|
4029 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4030 | break 2 |
---|
4031 | fi |
---|
4032 | done |
---|
4033 | done |
---|
4034 | |
---|
4035 | fi |
---|
4036 | fi |
---|
4037 | F77=$ac_cv_prog_F77 |
---|
4038 | if test -n "$F77"; then |
---|
4039 | echo "$as_me:$LINENO: result: $F77" >&5 |
---|
4040 | echo "${ECHO_T}$F77" >&6 |
---|
4041 | else |
---|
4042 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4043 | echo "${ECHO_T}no" >&6 |
---|
4044 | fi |
---|
4045 | |
---|
4046 | test -n "$F77" && break |
---|
4047 | done |
---|
4048 | fi |
---|
4049 | if test -z "$F77"; then |
---|
4050 | ac_ct_F77=$F77 |
---|
4051 | for ac_prog in $coin_f77_comps |
---|
4052 | do |
---|
4053 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
4054 | set dummy $ac_prog; ac_word=$2 |
---|
4055 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4056 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4057 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
---|
4058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4059 | else |
---|
4060 | if test -n "$ac_ct_F77"; then |
---|
4061 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
---|
4062 | else |
---|
4063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4064 | for as_dir in $PATH |
---|
4065 | do |
---|
4066 | IFS=$as_save_IFS |
---|
4067 | test -z "$as_dir" && as_dir=. |
---|
4068 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4069 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4070 | ac_cv_prog_ac_ct_F77="$ac_prog" |
---|
4071 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4072 | break 2 |
---|
4073 | fi |
---|
4074 | done |
---|
4075 | done |
---|
4076 | |
---|
4077 | fi |
---|
4078 | fi |
---|
4079 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
---|
4080 | if test -n "$ac_ct_F77"; then |
---|
4081 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
---|
4082 | echo "${ECHO_T}$ac_ct_F77" >&6 |
---|
4083 | else |
---|
4084 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4085 | echo "${ECHO_T}no" >&6 |
---|
4086 | fi |
---|
4087 | |
---|
4088 | test -n "$ac_ct_F77" && break |
---|
4089 | done |
---|
4090 | |
---|
4091 | F77=$ac_ct_F77 |
---|
4092 | fi |
---|
4093 | |
---|
4094 | |
---|
4095 | # Provide some information about the compiler. |
---|
4096 | echo "$as_me:4096:" \ |
---|
4097 | "checking for Fortran 77 compiler version" >&5 |
---|
4098 | ac_compiler=`set X $ac_compile; echo $2` |
---|
4099 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
4100 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
4101 | ac_status=$? |
---|
4102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4103 | (exit $ac_status); } |
---|
4104 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
4105 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
4106 | ac_status=$? |
---|
4107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4108 | (exit $ac_status); } |
---|
4109 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
4110 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
4111 | ac_status=$? |
---|
4112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4113 | (exit $ac_status); } |
---|
4114 | rm -f a.out |
---|
4115 | |
---|
4116 | # If we don't use `.F' as extension, the preprocessor is not run on the |
---|
4117 | # input file. (Note that this only needs to work for GNU compilers.) |
---|
4118 | ac_save_ext=$ac_ext |
---|
4119 | ac_ext=F |
---|
4120 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
---|
4121 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
---|
4122 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
---|
4123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4124 | else |
---|
4125 | cat >conftest.$ac_ext <<_ACEOF |
---|
4126 | program main |
---|
4127 | #ifndef __GNUC__ |
---|
4128 | choke me |
---|
4129 | #endif |
---|
4130 | |
---|
4131 | end |
---|
4132 | _ACEOF |
---|
4133 | rm -f conftest.$ac_objext |
---|
4134 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4135 | (eval $ac_compile) 2>conftest.er1 |
---|
4136 | ac_status=$? |
---|
4137 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4138 | rm -f conftest.er1 |
---|
4139 | cat conftest.err >&5 |
---|
4140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4141 | (exit $ac_status); } && |
---|
4142 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
4143 | || test ! -s conftest.err' |
---|
4144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4145 | (eval $ac_try) 2>&5 |
---|
4146 | ac_status=$? |
---|
4147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4148 | (exit $ac_status); }; } && |
---|
4149 | { ac_try='test -s conftest.$ac_objext' |
---|
4150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4151 | (eval $ac_try) 2>&5 |
---|
4152 | ac_status=$? |
---|
4153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4154 | (exit $ac_status); }; }; then |
---|
4155 | ac_compiler_gnu=yes |
---|
4156 | else |
---|
4157 | echo "$as_me: failed program was:" >&5 |
---|
4158 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4159 | |
---|
4160 | ac_compiler_gnu=no |
---|
4161 | fi |
---|
4162 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4163 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
---|
4164 | |
---|
4165 | fi |
---|
4166 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
---|
4167 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
---|
4168 | ac_ext=$ac_save_ext |
---|
4169 | ac_test_FFLAGS=${FFLAGS+set} |
---|
4170 | ac_save_FFLAGS=$FFLAGS |
---|
4171 | FFLAGS= |
---|
4172 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
---|
4173 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
---|
4174 | if test "${ac_cv_prog_f77_g+set}" = set; then |
---|
4175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4176 | else |
---|
4177 | FFLAGS=-g |
---|
4178 | cat >conftest.$ac_ext <<_ACEOF |
---|
4179 | program main |
---|
4180 | |
---|
4181 | end |
---|
4182 | _ACEOF |
---|
4183 | rm -f conftest.$ac_objext |
---|
4184 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4185 | (eval $ac_compile) 2>conftest.er1 |
---|
4186 | ac_status=$? |
---|
4187 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4188 | rm -f conftest.er1 |
---|
4189 | cat conftest.err >&5 |
---|
4190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4191 | (exit $ac_status); } && |
---|
4192 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
4193 | || test ! -s conftest.err' |
---|
4194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4195 | (eval $ac_try) 2>&5 |
---|
4196 | ac_status=$? |
---|
4197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4198 | (exit $ac_status); }; } && |
---|
4199 | { ac_try='test -s conftest.$ac_objext' |
---|
4200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4201 | (eval $ac_try) 2>&5 |
---|
4202 | ac_status=$? |
---|
4203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4204 | (exit $ac_status); }; }; then |
---|
4205 | ac_cv_prog_f77_g=yes |
---|
4206 | else |
---|
4207 | echo "$as_me: failed program was:" >&5 |
---|
4208 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4209 | |
---|
4210 | ac_cv_prog_f77_g=no |
---|
4211 | fi |
---|
4212 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4213 | |
---|
4214 | fi |
---|
4215 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
---|
4216 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
---|
4217 | if test "$ac_test_FFLAGS" = set; then |
---|
4218 | FFLAGS=$ac_save_FFLAGS |
---|
4219 | elif test $ac_cv_prog_f77_g = yes; then |
---|
4220 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
4221 | FFLAGS="-g -O2" |
---|
4222 | else |
---|
4223 | FFLAGS="-g" |
---|
4224 | fi |
---|
4225 | else |
---|
4226 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
4227 | FFLAGS="-O2" |
---|
4228 | else |
---|
4229 | FFLAGS= |
---|
4230 | fi |
---|
4231 | fi |
---|
4232 | |
---|
4233 | G77=`test $ac_compiler_gnu = yes && echo yes` |
---|
4234 | ac_ext=f |
---|
4235 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
4236 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4237 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
4238 | |
---|
4239 | else |
---|
4240 | { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5 |
---|
4241 | echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;} |
---|
4242 | fi |
---|
4243 | |
---|
4244 | FFLAGS="$save_fflags" |
---|
4245 | |
---|
4246 | # Check if a project specific FFLAGS variable has been set |
---|
4247 | if test x$COIN_PRJCT != x; then |
---|
4248 | eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set} |
---|
4249 | if test x$coin_tmp = xset; then |
---|
4250 | eval FFLAGS=\${${COIN_PRJCT}_FFLAGS} |
---|
4251 | fi |
---|
4252 | fi |
---|
4253 | |
---|
4254 | if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then |
---|
4255 | |
---|
4256 | coin_add_fflags= |
---|
4257 | coin_opt_fflags= |
---|
4258 | coin_dbg_fflags= |
---|
4259 | coin_warn_fflags= |
---|
4260 | |
---|
4261 | if test "$G77" = "yes"; then |
---|
4262 | coin_opt_fflags="-O3 -fomit-frame-pointer" |
---|
4263 | coin_add_fflags="-pipe" |
---|
4264 | coin_dbg_fflags="-g" |
---|
4265 | case $enable_doscompile in |
---|
4266 | mingw) |
---|
4267 | FFLAGS="-mno-cygwin" |
---|
4268 | cat >conftest.$ac_ext <<_ACEOF |
---|
4269 | program main |
---|
4270 | write(*,*) 'Hello world' |
---|
4271 | end |
---|
4272 | _ACEOF |
---|
4273 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4274 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4275 | (eval $ac_link) 2>conftest.er1 |
---|
4276 | ac_status=$? |
---|
4277 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4278 | rm -f conftest.er1 |
---|
4279 | cat conftest.err >&5 |
---|
4280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4281 | (exit $ac_status); } && |
---|
4282 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
4283 | || test ! -s conftest.err' |
---|
4284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4285 | (eval $ac_try) 2>&5 |
---|
4286 | ac_status=$? |
---|
4287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4288 | (exit $ac_status); }; } && |
---|
4289 | { ac_try='test -s conftest$ac_exeext' |
---|
4290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4291 | (eval $ac_try) 2>&5 |
---|
4292 | ac_status=$? |
---|
4293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4294 | (exit $ac_status); }; }; then |
---|
4295 | coin_add_fflags="-mno-cygwin $coin_add_fflags" |
---|
4296 | else |
---|
4297 | echo "$as_me: failed program was:" >&5 |
---|
4298 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4299 | |
---|
4300 | fi |
---|
4301 | rm -f conftest.err conftest.$ac_objext \ |
---|
4302 | conftest$ac_exeext conftest.$ac_ext |
---|
4303 | FFLAGS= |
---|
4304 | ;; |
---|
4305 | esac |
---|
4306 | else |
---|
4307 | case $build in |
---|
4308 | *-cygwin* | *-mingw*) |
---|
4309 | case $F77 in |
---|
4310 | ifort* | */ifort* | IFORT* | */IFORT* ) |
---|
4311 | coin_opt_fflags='-O3' |
---|
4312 | coin_add_fflags='-fpp -nologo -MT' |
---|
4313 | coin_dbg_fflags='-debug' |
---|
4314 | ;; |
---|
4315 | compile_f2c*) |
---|
4316 | coin_opt_fflags='-MT -O2' |
---|
4317 | coin_add_fflags='-nologo -wd4996' |
---|
4318 | coin_dbg_fflags='-MTd' |
---|
4319 | ;; |
---|
4320 | esac |
---|
4321 | ;; |
---|
4322 | *-linux-*) |
---|
4323 | case $F77 in |
---|
4324 | ifc* | */ifc* | ifort* | */ifort*) |
---|
4325 | coin_opt_fflags="-O3 -ip" |
---|
4326 | coin_add_fflags="-cm -w90 -w95" |
---|
4327 | coin_dbg_fflags="-g -CA -CB -CS" |
---|
4328 | # Check if -i_dynamic is necessary (for new glibc library) |
---|
4329 | FFLAGS= |
---|
4330 | cat >conftest.$ac_ext <<_ACEOF |
---|
4331 | program main |
---|
4332 | write(*,*) 'Hello world' |
---|
4333 | end |
---|
4334 | _ACEOF |
---|
4335 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4336 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4337 | (eval $ac_link) 2>conftest.er1 |
---|
4338 | ac_status=$? |
---|
4339 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4340 | rm -f conftest.er1 |
---|
4341 | cat conftest.err >&5 |
---|
4342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4343 | (exit $ac_status); } && |
---|
4344 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
4345 | || test ! -s conftest.err' |
---|
4346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4347 | (eval $ac_try) 2>&5 |
---|
4348 | ac_status=$? |
---|
4349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4350 | (exit $ac_status); }; } && |
---|
4351 | { ac_try='test -s conftest$ac_exeext' |
---|
4352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4353 | (eval $ac_try) 2>&5 |
---|
4354 | ac_status=$? |
---|
4355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4356 | (exit $ac_status); }; }; then |
---|
4357 | : |
---|
4358 | else |
---|
4359 | echo "$as_me: failed program was:" >&5 |
---|
4360 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4361 | |
---|
4362 | coin_add_fflags="-i_dynamic $coin_add_fflags" |
---|
4363 | fi |
---|
4364 | rm -f conftest.err conftest.$ac_objext \ |
---|
4365 | conftest$ac_exeext conftest.$ac_ext |
---|
4366 | ;; |
---|
4367 | pgf77* | */pgf77* | pgf90* | */pgf90*) |
---|
4368 | coin_opt_fflags="-fast" |
---|
4369 | coin_add_fflags="-Kieee -pc 64" |
---|
4370 | coin_dbg_fflags="-g" |
---|
4371 | ;; |
---|
4372 | esac |
---|
4373 | ;; |
---|
4374 | *-ibm-*) |
---|
4375 | case "$F77" in |
---|
4376 | xlf* | */xlf* | mpxlf* | */mpxlf* ) |
---|
4377 | coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" |
---|
4378 | coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029" |
---|
4379 | coin_dbg_fflags="-g -C" |
---|
4380 | ;; |
---|
4381 | esac |
---|
4382 | ;; |
---|
4383 | *-hp-*) |
---|
4384 | coin_opt_fflags="+O3" |
---|
4385 | coin_add_fflags="+U77" |
---|
4386 | coin_dbg_fflags="-C -g" |
---|
4387 | ;; |
---|
4388 | *-*-solaris*) |
---|
4389 | coin_opt_fflags="-O4" |
---|
4390 | coin_dbg_fflags="-g" |
---|
4391 | ;; |
---|
4392 | *-sgi-*) |
---|
4393 | coin_opt_fflags="-O5 -OPT:Olimit=0" |
---|
4394 | coin_dbg_fflags="-g" |
---|
4395 | ;; |
---|
4396 | esac |
---|
4397 | fi |
---|
4398 | |
---|
4399 | if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then |
---|
4400 | coin_dbg_fflags="-g" |
---|
4401 | fi |
---|
4402 | |
---|
4403 | if test -z "$coin_opt_fflags"; then |
---|
4404 | # Try if -O option works if nothing else is set |
---|
4405 | FFLAGS=-O |
---|
4406 | cat >conftest.$ac_ext <<_ACEOF |
---|
4407 | program main |
---|
4408 | integer i |
---|
4409 | end |
---|
4410 | _ACEOF |
---|
4411 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4412 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4413 | (eval $ac_link) 2>conftest.er1 |
---|
4414 | ac_status=$? |
---|
4415 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4416 | rm -f conftest.er1 |
---|
4417 | cat conftest.err >&5 |
---|
4418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4419 | (exit $ac_status); } && |
---|
4420 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
4421 | || test ! -s conftest.err' |
---|
4422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4423 | (eval $ac_try) 2>&5 |
---|
4424 | ac_status=$? |
---|
4425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4426 | (exit $ac_status); }; } && |
---|
4427 | { ac_try='test -s conftest$ac_exeext' |
---|
4428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4429 | (eval $ac_try) 2>&5 |
---|
4430 | ac_status=$? |
---|
4431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4432 | (exit $ac_status); }; }; then |
---|
4433 | coin_opt_fflags="-O" |
---|
4434 | else |
---|
4435 | echo "$as_me: failed program was:" >&5 |
---|
4436 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4437 | |
---|
4438 | fi |
---|
4439 | rm -f conftest.err conftest.$ac_objext \ |
---|
4440 | conftest$ac_exeext conftest.$ac_ext |
---|
4441 | fi |
---|
4442 | |
---|
4443 | # if PM doesn't want the warning messages, take them out |
---|
4444 | if test x"$coin_skip_warn_fflags" = xyes; then |
---|
4445 | coin_warn_fflags= |
---|
4446 | fi |
---|
4447 | |
---|
4448 | if test x${DBG_FFLAGS+set} != xset; then |
---|
4449 | DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags" |
---|
4450 | fi |
---|
4451 | if test x${OPT_FFLAGS+set} != xset; then |
---|
4452 | OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags" |
---|
4453 | fi |
---|
4454 | |
---|
4455 | DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS" |
---|
4456 | OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS" |
---|
4457 | |
---|
4458 | if test "$coin_debug_compile" = "true"; then |
---|
4459 | FFLAGS="$DBG_FFLAGS" |
---|
4460 | else |
---|
4461 | FFLAGS="$OPT_FFLAGS" |
---|
4462 | fi |
---|
4463 | else |
---|
4464 | FFLAGS="$FFLAGS $ADD_FFLAGS" |
---|
4465 | if test x${DBG_FFLAGS+set} != xset; then |
---|
4466 | DBG_FFLAGS="$FFLAGS" |
---|
4467 | fi |
---|
4468 | if test x${OPT_FFLAGS+set} != xset; then |
---|
4469 | OPT_FFLAGS="$FFLAGS" |
---|
4470 | fi |
---|
4471 | fi |
---|
4472 | |
---|
4473 | # If FFLAGS contains -mno-cygwin, CPPFLAGS must have it. |
---|
4474 | case "$FFLAGS" in |
---|
4475 | *-mno-cygwin*) |
---|
4476 | if test x${CPPFLAGS+set} != xset ; then |
---|
4477 | CPPFLAGS="-mno-cygwin" |
---|
4478 | else |
---|
4479 | case "$CPPFLAGS" in |
---|
4480 | *-mno-cygwin*) |
---|
4481 | ;; |
---|
4482 | *) |
---|
4483 | CPPFLAGS="$CPPFLAGS -mno-cygwin" |
---|
4484 | ;; |
---|
4485 | esac |
---|
4486 | fi ;; |
---|
4487 | esac |
---|
4488 | |
---|
4489 | # Try if FFLAGS works |
---|
4490 | if test "$F77" != "unavailable" ; then |
---|
4491 | cat >conftest.$ac_ext <<_ACEOF |
---|
4492 | program main |
---|
4493 | integer i |
---|
4494 | end |
---|
4495 | _ACEOF |
---|
4496 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4497 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4498 | (eval $ac_link) 2>conftest.er1 |
---|
4499 | ac_status=$? |
---|
4500 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4501 | rm -f conftest.er1 |
---|
4502 | cat conftest.err >&5 |
---|
4503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4504 | (exit $ac_status); } && |
---|
4505 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
4506 | || test ! -s conftest.err' |
---|
4507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4508 | (eval $ac_try) 2>&5 |
---|
4509 | ac_status=$? |
---|
4510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4511 | (exit $ac_status); }; } && |
---|
4512 | { ac_try='test -s conftest$ac_exeext' |
---|
4513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4514 | (eval $ac_try) 2>&5 |
---|
4515 | ac_status=$? |
---|
4516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4517 | (exit $ac_status); }; }; then |
---|
4518 | : |
---|
4519 | else |
---|
4520 | echo "$as_me: failed program was:" >&5 |
---|
4521 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4522 | |
---|
4523 | FFLAGS= |
---|
4524 | fi |
---|
4525 | rm -f conftest.err conftest.$ac_objext \ |
---|
4526 | conftest$ac_exeext conftest.$ac_ext |
---|
4527 | if test -z "$FFLAGS"; then |
---|
4528 | { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work. I will now just try '-O', but you might want to set FFLAGS manually." >&5 |
---|
4529 | echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work. I will now just try '-O', but you might want to set FFLAGS manually." >&2;} |
---|
4530 | FFLAGS='-O' |
---|
4531 | cat >conftest.$ac_ext <<_ACEOF |
---|
4532 | program main |
---|
4533 | integer i |
---|
4534 | end |
---|
4535 | _ACEOF |
---|
4536 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4537 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4538 | (eval $ac_link) 2>conftest.er1 |
---|
4539 | ac_status=$? |
---|
4540 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4541 | rm -f conftest.er1 |
---|
4542 | cat conftest.err >&5 |
---|
4543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4544 | (exit $ac_status); } && |
---|
4545 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
4546 | || test ! -s conftest.err' |
---|
4547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4548 | (eval $ac_try) 2>&5 |
---|
4549 | ac_status=$? |
---|
4550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4551 | (exit $ac_status); }; } && |
---|
4552 | { ac_try='test -s conftest$ac_exeext' |
---|
4553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4554 | (eval $ac_try) 2>&5 |
---|
4555 | ac_status=$? |
---|
4556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4557 | (exit $ac_status); }; }; then |
---|
4558 | : |
---|
4559 | else |
---|
4560 | echo "$as_me: failed program was:" >&5 |
---|
4561 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4562 | |
---|
4563 | FFLAGS= |
---|
4564 | fi |
---|
4565 | rm -f conftest.err conftest.$ac_objext \ |
---|
4566 | conftest$ac_exeext conftest.$ac_ext |
---|
4567 | if test -z "$FFLAGS"; then |
---|
4568 | { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5 |
---|
4569 | echo "$as_me: WARNING: This value for FFLAGS does not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;} |
---|
4570 | fi |
---|
4571 | fi |
---|
4572 | fi |
---|
4573 | |
---|
4574 | { echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5 |
---|
4575 | echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;} |
---|
4576 | |
---|
4577 | |
---|
4578 | if test x"$MPIF77" = x; then :; else |
---|
4579 | { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5 |
---|
4580 | echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;} |
---|
4581 | F77="$MPIF77" |
---|
4582 | fi |
---|
4583 | |
---|
4584 | case "$F77" in |
---|
4585 | ifort* | */ifort* | IFORT* | */IFORT*) |
---|
4586 | case $build in |
---|
4587 | *-mingw*) |
---|
4588 | if test "${LD+set}" = set; then :; else |
---|
4589 | LD=link |
---|
4590 | fi |
---|
4591 | ;; |
---|
4592 | esac |
---|
4593 | case $enable_doscompile in |
---|
4594 | msvc) |
---|
4595 | if test "x${LD+set}" = xset; then :; else |
---|
4596 | LD=link |
---|
4597 | fi |
---|
4598 | ;; |
---|
4599 | esac |
---|
4600 | |
---|
4601 | ;; |
---|
4602 | esac |
---|
4603 | |
---|
4604 | ac_ext=c |
---|
4605 | ac_cpp='$CPP $CPPFLAGS' |
---|
4606 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4607 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4608 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4609 | |
---|
4610 | |
---|
4611 | |
---|
4612 | # Initialize automake and libtool |
---|
4613 | # AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.]) |
---|
4614 | { |
---|
4615 | |
---|
4616 | |
---|
4617 | |
---|
4618 | # START |
---|
4619 | |
---|
4620 | # Test if force_shared has been set |
---|
4621 | if test "x" = xforce_shared; then |
---|
4622 | if test x$enable_shared = xno; then |
---|
4623 | { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5 |
---|
4624 | echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;} |
---|
4625 | { (exit 1); exit 1; }; } |
---|
4626 | fi |
---|
4627 | enable_shared=yes; |
---|
4628 | else |
---|
4629 | # On Cygwin and AIX, building DLLs doesn't work |
---|
4630 | case $build in |
---|
4631 | *-cygwin*) |
---|
4632 | coin_disable_shared=yes |
---|
4633 | platform=Cygwin |
---|
4634 | ;; |
---|
4635 | *-aix*) |
---|
4636 | coin_disable_shared=yes |
---|
4637 | platform=AIX |
---|
4638 | ;; |
---|
4639 | *-mingw*) |
---|
4640 | coin_disable_shared=yes |
---|
4641 | platform="Msys" |
---|
4642 | # case "$CXX" in |
---|
4643 | # cl*) |
---|
4644 | # coin_disable_shared=yes |
---|
4645 | # platform="Msys with cl" |
---|
4646 | # ;; |
---|
4647 | # esac |
---|
4648 | ;; |
---|
4649 | esac |
---|
4650 | fi |
---|
4651 | if test x"$coin_disable_shared" = xyes; then |
---|
4652 | if test x"$enable_shared" = xyes; then |
---|
4653 | { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5 |
---|
4654 | echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;} |
---|
4655 | fi |
---|
4656 | enable_shared=no |
---|
4657 | fi |
---|
4658 | # By default, we only want the shared objects to be compiled |
---|
4659 | # Check whether --enable-static or --disable-static was given. |
---|
4660 | if test "${enable_static+set}" = set; then |
---|
4661 | enableval="$enable_static" |
---|
4662 | p=${PACKAGE-default} |
---|
4663 | case $enableval in |
---|
4664 | yes) enable_static=yes ;; |
---|
4665 | no) enable_static=no ;; |
---|
4666 | *) |
---|
4667 | enable_static=no |
---|
4668 | # Look at the argument we got. We use all the common list separators. |
---|
4669 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
4670 | for pkg in $enableval; do |
---|
4671 | IFS="$lt_save_ifs" |
---|
4672 | if test "X$pkg" = "X$p"; then |
---|
4673 | enable_static=yes |
---|
4674 | fi |
---|
4675 | done |
---|
4676 | IFS="$lt_save_ifs" |
---|
4677 | ;; |
---|
4678 | esac |
---|
4679 | else |
---|
4680 | enable_static=no |
---|
4681 | fi; |
---|
4682 | |
---|
4683 | |
---|
4684 | |
---|
4685 | |
---|
4686 | # Initialize automake |
---|
4687 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
4688 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
4689 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
4690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4691 | else |
---|
4692 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
4693 | then ac_cv_prog_egrep='grep -E' |
---|
4694 | else ac_cv_prog_egrep='egrep' |
---|
4695 | fi |
---|
4696 | fi |
---|
4697 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
4698 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
4699 | EGREP=$ac_cv_prog_egrep |
---|
4700 | |
---|
4701 | |
---|
4702 | am__api_version="1.9" |
---|
4703 | # Find a good install program. We prefer a C program (faster), |
---|
4704 | # so one script is as good as another. But avoid the broken or |
---|
4705 | # incompatible versions: |
---|
4706 | # SysV /etc/install, /usr/sbin/install |
---|
4707 | # SunOS /usr/etc/install |
---|
4708 | # IRIX /sbin/install |
---|
4709 | # AIX /bin/install |
---|
4710 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
4711 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
4712 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
4713 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
4714 | # OS/2's system install, which has a completely different semantic |
---|
4715 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
4716 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
4717 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
4718 | if test -z "$INSTALL"; then |
---|
4719 | if test "${ac_cv_path_install+set}" = set; then |
---|
4720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4721 | else |
---|
4722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4723 | for as_dir in $PATH |
---|
4724 | do |
---|
4725 | IFS=$as_save_IFS |
---|
4726 | test -z "$as_dir" && as_dir=. |
---|
4727 | # Account for people who put trailing slashes in PATH elements. |
---|
4728 | case $as_dir/ in |
---|
4729 | ./ | .// | /cC/* | \ |
---|
4730 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
4731 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
4732 | /usr/ucb/* ) ;; |
---|
4733 | *) |
---|
4734 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
4735 | # Don't use installbsd from OSF since it installs stuff as root |
---|
4736 | # by default. |
---|
4737 | for ac_prog in ginstall scoinst install; do |
---|
4738 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4739 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
4740 | if test $ac_prog = install && |
---|
4741 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
4742 | # AIX install. It has an incompatible calling convention. |
---|
4743 | : |
---|
4744 | elif test $ac_prog = install && |
---|
4745 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
4746 | # program-specific install script used by HP pwplus--don't use. |
---|
4747 | : |
---|
4748 | else |
---|
4749 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
4750 | break 3 |
---|
4751 | fi |
---|
4752 | fi |
---|
4753 | done |
---|
4754 | done |
---|
4755 | ;; |
---|
4756 | esac |
---|
4757 | done |
---|
4758 | |
---|
4759 | |
---|
4760 | fi |
---|
4761 | if test "${ac_cv_path_install+set}" = set; then |
---|
4762 | INSTALL=$ac_cv_path_install |
---|
4763 | else |
---|
4764 | # As a last resort, use the slow shell script. We don't cache a |
---|
4765 | # path for INSTALL within a source directory, because that will |
---|
4766 | # break other packages using the cache if that directory is |
---|
4767 | # removed, or if the path is relative. |
---|
4768 | INSTALL=$ac_install_sh |
---|
4769 | fi |
---|
4770 | fi |
---|
4771 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
4772 | echo "${ECHO_T}$INSTALL" >&6 |
---|
4773 | |
---|
4774 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
4775 | # It thinks the first close brace ends the variable substitution. |
---|
4776 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
4777 | |
---|
4778 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
4779 | |
---|
4780 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
4781 | |
---|
4782 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
4783 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
4784 | # Just in case |
---|
4785 | sleep 1 |
---|
4786 | echo timestamp > conftest.file |
---|
4787 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
4788 | # arguments. Must try -L first in case configure is actually a |
---|
4789 | # symlink; some systems play weird games with the mod time of symlinks |
---|
4790 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
4791 | # directory). |
---|
4792 | if ( |
---|
4793 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
4794 | if test "$*" = "X"; then |
---|
4795 | # -L didn't work. |
---|
4796 | set X `ls -t $srcdir/configure conftest.file` |
---|
4797 | fi |
---|
4798 | rm -f conftest.file |
---|
4799 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
4800 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
4801 | |
---|
4802 | # If neither matched, then we have a broken ls. This can happen |
---|
4803 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
4804 | # broken ls alias from the environment. This has actually |
---|
4805 | # happened. Such a system could not be considered "sane". |
---|
4806 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
4807 | alias in your environment" >&5 |
---|
4808 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
4809 | alias in your environment" >&2;} |
---|
4810 | { (exit 1); exit 1; }; } |
---|
4811 | fi |
---|
4812 | |
---|
4813 | test "$2" = conftest.file |
---|
4814 | ) |
---|
4815 | then |
---|
4816 | # Ok. |
---|
4817 | : |
---|
4818 | else |
---|
4819 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
4820 | Check your system clock" >&5 |
---|
4821 | echo "$as_me: error: newly created file is older than distributed files! |
---|
4822 | Check your system clock" >&2;} |
---|
4823 | { (exit 1); exit 1; }; } |
---|
4824 | fi |
---|
4825 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4826 | echo "${ECHO_T}yes" >&6 |
---|
4827 | test "$program_prefix" != NONE && |
---|
4828 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
4829 | # Use a double $ so make ignores it. |
---|
4830 | test "$program_suffix" != NONE && |
---|
4831 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
4832 | # Double any \ or $. echo might interpret backslashes. |
---|
4833 | # By default was `s,x,x', remove it if useless. |
---|
4834 | cat <<\_ACEOF >conftest.sed |
---|
4835 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
4836 | _ACEOF |
---|
4837 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
4838 | rm conftest.sed |
---|
4839 | |
---|
4840 | # expand $ac_aux_dir to an absolute path |
---|
4841 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
4842 | |
---|
4843 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
4844 | # Use eval to expand $SHELL |
---|
4845 | if eval "$MISSING --run true"; then |
---|
4846 | am_missing_run="$MISSING --run " |
---|
4847 | else |
---|
4848 | am_missing_run= |
---|
4849 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
4850 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
4851 | fi |
---|
4852 | |
---|
4853 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
4854 | # We used to keeping the `.' as first argument, in order to |
---|
4855 | # allow $(mkdir_p) to be used without argument. As in |
---|
4856 | # $(mkdir_p) $(somedir) |
---|
4857 | # where $(somedir) is conditionally defined. However this is wrong |
---|
4858 | # for two reasons: |
---|
4859 | # 1. if the package is installed by a user who cannot write `.' |
---|
4860 | # make install will fail, |
---|
4861 | # 2. the above comment should most certainly read |
---|
4862 | # $(mkdir_p) $(DESTDIR)$(somedir) |
---|
4863 | # so it does not work when $(somedir) is undefined and |
---|
4864 | # $(DESTDIR) is not. |
---|
4865 | # To support the latter case, we have to write |
---|
4866 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
---|
4867 | # so the `.' trick is pointless. |
---|
4868 | mkdir_p='mkdir -p --' |
---|
4869 | else |
---|
4870 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
4871 | # recognize any option. It will interpret all options as |
---|
4872 | # directories to create, and then abort because `.' already |
---|
4873 | # exists. |
---|
4874 | for d in ./-p ./--version; |
---|
4875 | do |
---|
4876 | test -d $d && rmdir $d |
---|
4877 | done |
---|
4878 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
4879 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
4880 | mkdir_p='$(mkinstalldirs)' |
---|
4881 | else |
---|
4882 | mkdir_p='$(install_sh) -d' |
---|
4883 | fi |
---|
4884 | fi |
---|
4885 | |
---|
4886 | for ac_prog in gawk mawk nawk awk |
---|
4887 | do |
---|
4888 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
4889 | set dummy $ac_prog; ac_word=$2 |
---|
4890 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4891 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4892 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
4893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4894 | else |
---|
4895 | if test -n "$AWK"; then |
---|
4896 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
4897 | else |
---|
4898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4899 | for as_dir in $PATH |
---|
4900 | do |
---|
4901 | IFS=$as_save_IFS |
---|
4902 | test -z "$as_dir" && as_dir=. |
---|
4903 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4904 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4905 | ac_cv_prog_AWK="$ac_prog" |
---|
4906 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4907 | break 2 |
---|
4908 | fi |
---|
4909 | done |
---|
4910 | done |
---|
4911 | |
---|
4912 | fi |
---|
4913 | fi |
---|
4914 | AWK=$ac_cv_prog_AWK |
---|
4915 | if test -n "$AWK"; then |
---|
4916 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
4917 | echo "${ECHO_T}$AWK" >&6 |
---|
4918 | else |
---|
4919 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4920 | echo "${ECHO_T}no" >&6 |
---|
4921 | fi |
---|
4922 | |
---|
4923 | test -n "$AWK" && break |
---|
4924 | done |
---|
4925 | |
---|
4926 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
4927 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
4928 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
4929 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
4930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4931 | else |
---|
4932 | cat >conftest.make <<\_ACEOF |
---|
4933 | all: |
---|
4934 | @echo 'ac_maketemp="$(MAKE)"' |
---|
4935 | _ACEOF |
---|
4936 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
4937 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
4938 | if test -n "$ac_maketemp"; then |
---|
4939 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
4940 | else |
---|
4941 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
4942 | fi |
---|
4943 | rm -f conftest.make |
---|
4944 | fi |
---|
4945 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
4946 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4947 | echo "${ECHO_T}yes" >&6 |
---|
4948 | SET_MAKE= |
---|
4949 | else |
---|
4950 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4951 | echo "${ECHO_T}no" >&6 |
---|
4952 | SET_MAKE="MAKE=${MAKE-make}" |
---|
4953 | fi |
---|
4954 | |
---|
4955 | rm -rf .tst 2>/dev/null |
---|
4956 | mkdir .tst 2>/dev/null |
---|
4957 | if test -d .tst; then |
---|
4958 | am__leading_dot=. |
---|
4959 | else |
---|
4960 | am__leading_dot=_ |
---|
4961 | fi |
---|
4962 | rmdir .tst 2>/dev/null |
---|
4963 | |
---|
4964 | DEPDIR="${am__leading_dot}deps" |
---|
4965 | |
---|
4966 | ac_config_commands="$ac_config_commands depfiles" |
---|
4967 | |
---|
4968 | |
---|
4969 | am_make=${MAKE-make} |
---|
4970 | cat > confinc << 'END' |
---|
4971 | am__doit: |
---|
4972 | @echo done |
---|
4973 | .PHONY: am__doit |
---|
4974 | END |
---|
4975 | # If we don't find an include directive, just comment out the code. |
---|
4976 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
4977 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
4978 | am__include="#" |
---|
4979 | am__quote= |
---|
4980 | _am_result=none |
---|
4981 | # First try GNU make style include. |
---|
4982 | echo "include confinc" > confmf |
---|
4983 | # We grep out `Entering directory' and `Leaving directory' |
---|
4984 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
4985 | # In particular we don't look at `^make:' because GNU make might |
---|
4986 | # be invoked under some other name (usually "gmake"), in which |
---|
4987 | # case it prints its new name instead of `make'. |
---|
4988 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
4989 | am__include=include |
---|
4990 | am__quote= |
---|
4991 | _am_result=GNU |
---|
4992 | fi |
---|
4993 | # Now try BSD make style include. |
---|
4994 | if test "$am__include" = "#"; then |
---|
4995 | echo '.include "confinc"' > confmf |
---|
4996 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
4997 | am__include=.include |
---|
4998 | am__quote="\"" |
---|
4999 | _am_result=BSD |
---|
5000 | fi |
---|
5001 | fi |
---|
5002 | |
---|
5003 | |
---|
5004 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
5005 | echo "${ECHO_T}$_am_result" >&6 |
---|
5006 | rm -f confinc confmf |
---|
5007 | |
---|
5008 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
5009 | if test "${enable_dependency_tracking+set}" = set; then |
---|
5010 | enableval="$enable_dependency_tracking" |
---|
5011 | |
---|
5012 | fi; |
---|
5013 | if test "x$enable_dependency_tracking" != xno; then |
---|
5014 | am_depcomp="$ac_aux_dir/depcomp" |
---|
5015 | AMDEPBACKSLASH='\' |
---|
5016 | fi |
---|
5017 | |
---|
5018 | |
---|
5019 | if test "x$enable_dependency_tracking" != xno; then |
---|
5020 | AMDEP_TRUE= |
---|
5021 | AMDEP_FALSE='#' |
---|
5022 | else |
---|
5023 | AMDEP_TRUE='#' |
---|
5024 | AMDEP_FALSE= |
---|
5025 | fi |
---|
5026 | |
---|
5027 | |
---|
5028 | |
---|
5029 | |
---|
5030 | |
---|
5031 | # AC_MSG_NOTICE([Beginning automake initialisation.]) |
---|
5032 | # Stuff for automake |
---|
5033 | # test to see if srcdir already configured |
---|
5034 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
5035 | test -f $srcdir/config.status; then |
---|
5036 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
5037 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
5038 | { (exit 1); exit 1; }; } |
---|
5039 | fi |
---|
5040 | |
---|
5041 | # test whether we have cygpath |
---|
5042 | if test -z "$CYGPATH_W"; then |
---|
5043 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
5044 | CYGPATH_W='cygpath -w' |
---|
5045 | else |
---|
5046 | CYGPATH_W=echo |
---|
5047 | fi |
---|
5048 | fi |
---|
5049 | |
---|
5050 | |
---|
5051 | # Define the identity of the package. |
---|
5052 | PACKAGE='cbc' |
---|
5053 | VERSION='2.1.0' |
---|
5054 | |
---|
5055 | |
---|
5056 | cat >>confdefs.h <<_ACEOF |
---|
5057 | #define PACKAGE "$PACKAGE" |
---|
5058 | _ACEOF |
---|
5059 | |
---|
5060 | |
---|
5061 | cat >>confdefs.h <<_ACEOF |
---|
5062 | #define VERSION "$VERSION" |
---|
5063 | _ACEOF |
---|
5064 | |
---|
5065 | # Some tools Automake needs. |
---|
5066 | |
---|
5067 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
5068 | |
---|
5069 | |
---|
5070 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
5071 | |
---|
5072 | |
---|
5073 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
5074 | |
---|
5075 | |
---|
5076 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
5077 | |
---|
5078 | |
---|
5079 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
5080 | |
---|
5081 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
5082 | |
---|
5083 | # Installed binaries are usually stripped using `strip' when the user |
---|
5084 | # run `make install-strip'. However `strip' might not be the right |
---|
5085 | # tool to use in cross-compilation environments, therefore Automake |
---|
5086 | # will honor the `STRIP' environment variable to overrule this program. |
---|
5087 | if test "$cross_compiling" != no; then |
---|
5088 | if test -n "$ac_tool_prefix"; then |
---|
5089 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
5090 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
5091 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5092 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5093 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
5094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5095 | else |
---|
5096 | if test -n "$STRIP"; then |
---|
5097 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
5098 | else |
---|
5099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5100 | for as_dir in $PATH |
---|
5101 | do |
---|
5102 | IFS=$as_save_IFS |
---|
5103 | test -z "$as_dir" && as_dir=. |
---|
5104 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5105 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5106 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
5107 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5108 | break 2 |
---|
5109 | fi |
---|
5110 | done |
---|
5111 | done |
---|
5112 | |
---|
5113 | fi |
---|
5114 | fi |
---|
5115 | STRIP=$ac_cv_prog_STRIP |
---|
5116 | if test -n "$STRIP"; then |
---|
5117 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
5118 | echo "${ECHO_T}$STRIP" >&6 |
---|
5119 | else |
---|
5120 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5121 | echo "${ECHO_T}no" >&6 |
---|
5122 | fi |
---|
5123 | |
---|
5124 | fi |
---|
5125 | if test -z "$ac_cv_prog_STRIP"; then |
---|
5126 | ac_ct_STRIP=$STRIP |
---|
5127 | # Extract the first word of "strip", so it can be a program name with args. |
---|
5128 | set dummy strip; ac_word=$2 |
---|
5129 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5130 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5131 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
5132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5133 | else |
---|
5134 | if test -n "$ac_ct_STRIP"; then |
---|
5135 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
5136 | else |
---|
5137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5138 | for as_dir in $PATH |
---|
5139 | do |
---|
5140 | IFS=$as_save_IFS |
---|
5141 | test -z "$as_dir" && as_dir=. |
---|
5142 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5143 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5144 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
5145 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5146 | break 2 |
---|
5147 | fi |
---|
5148 | done |
---|
5149 | done |
---|
5150 | |
---|
5151 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
5152 | fi |
---|
5153 | fi |
---|
5154 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
5155 | if test -n "$ac_ct_STRIP"; then |
---|
5156 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
5157 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
5158 | else |
---|
5159 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5160 | echo "${ECHO_T}no" >&6 |
---|
5161 | fi |
---|
5162 | |
---|
5163 | STRIP=$ac_ct_STRIP |
---|
5164 | else |
---|
5165 | STRIP="$ac_cv_prog_STRIP" |
---|
5166 | fi |
---|
5167 | |
---|
5168 | fi |
---|
5169 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
5170 | |
---|
5171 | # We need awk for the "check" target. The system "awk" is bad on |
---|
5172 | # some platforms. |
---|
5173 | # Always define AMTAR for backward compatibility. |
---|
5174 | |
---|
5175 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
5176 | |
---|
5177 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
---|
5178 | |
---|
5179 | |
---|
5180 | |
---|
5181 | |
---|
5182 | depcc="$CC" am_compiler_list= |
---|
5183 | |
---|
5184 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
5185 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
5186 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
5187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5188 | else |
---|
5189 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
5190 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
5191 | # making bogus files that we don't know about and never remove. For |
---|
5192 | # instance it was reported that on HP-UX the gcc test will end up |
---|
5193 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
5194 | # in D'. |
---|
5195 | mkdir conftest.dir |
---|
5196 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
5197 | # using a relative directory. |
---|
5198 | cp "$am_depcomp" conftest.dir |
---|
5199 | cd conftest.dir |
---|
5200 | # We will build objects and dependencies in a subdirectory because |
---|
5201 | # it helps to detect inapplicable dependency modes. For instance |
---|
5202 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
5203 | # side effect of compilation, but ICC will put the dependencies in |
---|
5204 | # the current directory while Tru64 will put them in the object |
---|
5205 | # directory. |
---|
5206 | mkdir sub |
---|
5207 | |
---|
5208 | am_cv_CC_dependencies_compiler_type=none |
---|
5209 | if test "$am_compiler_list" = ""; then |
---|
5210 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
5211 | fi |
---|
5212 | for depmode in $am_compiler_list; do |
---|
5213 | # Setup a source with many dependencies, because some compilers |
---|
5214 | # like to wrap large dependency lists on column 80 (with \), and |
---|
5215 | # we should not choose a depcomp mode which is confused by this. |
---|
5216 | # |
---|
5217 | # We need to recreate these files for each test, as the compiler may |
---|
5218 | # overwrite some of them when testing with obscure command lines. |
---|
5219 | # This happens at least with the AIX C compiler. |
---|
5220 | : > sub/conftest.c |
---|
5221 | for i in 1 2 3 4 5 6; do |
---|
5222 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
5223 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
5224 | # Solaris 8's {/usr,}/bin/sh. |
---|
5225 | touch sub/conftst$i.h |
---|
5226 | done |
---|
5227 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
5228 | |
---|
5229 | case $depmode in |
---|
5230 | nosideeffect) |
---|
5231 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
5232 | # only be used when explicitly requested |
---|
5233 | if test "x$enable_dependency_tracking" = xyes; then |
---|
5234 | continue |
---|
5235 | else |
---|
5236 | break |
---|
5237 | fi |
---|
5238 | ;; |
---|
5239 | none) break ;; |
---|
5240 | esac |
---|
5241 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
5242 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
5243 | # handle `-M -o', and we need to detect this. |
---|
5244 | if depmode=$depmode \ |
---|
5245 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
5246 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
5247 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
5248 | >/dev/null 2>conftest.err && |
---|
5249 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
5250 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
5251 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
5252 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
5253 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
5254 | # that says an option was ignored or not supported. |
---|
5255 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
5256 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
5257 | # The diagnosis changed in icc 8.0: |
---|
5258 | # icc: Command line remark: option '-MP' not supported |
---|
5259 | if (grep 'ignoring option' conftest.err || |
---|
5260 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
5261 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
5262 | break |
---|
5263 | fi |
---|
5264 | fi |
---|
5265 | done |
---|
5266 | |
---|
5267 | cd .. |
---|
5268 | rm -rf conftest.dir |
---|
5269 | else |
---|
5270 | am_cv_CC_dependencies_compiler_type=none |
---|
5271 | fi |
---|
5272 | |
---|
5273 | fi |
---|
5274 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
5275 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
5276 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
5277 | |
---|
5278 | |
---|
5279 | |
---|
5280 | if |
---|
5281 | test "x$enable_dependency_tracking" != xno \ |
---|
5282 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
5283 | am__fastdepCC_TRUE= |
---|
5284 | am__fastdepCC_FALSE='#' |
---|
5285 | else |
---|
5286 | am__fastdepCC_TRUE='#' |
---|
5287 | am__fastdepCC_FALSE= |
---|
5288 | fi |
---|
5289 | |
---|
5290 | |
---|
5291 | depcc="$CXX" am_compiler_list= |
---|
5292 | |
---|
5293 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
5294 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
5295 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
5296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5297 | else |
---|
5298 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
5299 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
5300 | # making bogus files that we don't know about and never remove. For |
---|
5301 | # instance it was reported that on HP-UX the gcc test will end up |
---|
5302 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
5303 | # in D'. |
---|
5304 | mkdir conftest.dir |
---|
5305 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
5306 | # using a relative directory. |
---|
5307 | cp "$am_depcomp" conftest.dir |
---|
5308 | cd conftest.dir |
---|
5309 | # We will build objects and dependencies in a subdirectory because |
---|
5310 | # it helps to detect inapplicable dependency modes. For instance |
---|
5311 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
5312 | # side effect of compilation, but ICC will put the dependencies in |
---|
5313 | # the current directory while Tru64 will put them in the object |
---|
5314 | # directory. |
---|
5315 | mkdir sub |
---|
5316 | |
---|
5317 | am_cv_CXX_dependencies_compiler_type=none |
---|
5318 | if test "$am_compiler_list" = ""; then |
---|
5319 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
5320 | fi |
---|
5321 | for depmode in $am_compiler_list; do |
---|
5322 | # Setup a source with many dependencies, because some compilers |
---|
5323 | # like to wrap large dependency lists on column 80 (with \), and |
---|
5324 | # we should not choose a depcomp mode which is confused by this. |
---|
5325 | # |
---|
5326 | # We need to recreate these files for each test, as the compiler may |
---|
5327 | # overwrite some of them when testing with obscure command lines. |
---|
5328 | # This happens at least with the AIX C compiler. |
---|
5329 | : > sub/conftest.c |
---|
5330 | for i in 1 2 3 4 5 6; do |
---|
5331 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
5332 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
5333 | # Solaris 8's {/usr,}/bin/sh. |
---|
5334 | touch sub/conftst$i.h |
---|
5335 | done |
---|
5336 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
5337 | |
---|
5338 | case $depmode in |
---|
5339 | nosideeffect) |
---|
5340 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
5341 | # only be used when explicitly requested |
---|
5342 | if test "x$enable_dependency_tracking" = xyes; then |
---|
5343 | continue |
---|
5344 | else |
---|
5345 | break |
---|
5346 | fi |
---|
5347 | ;; |
---|
5348 | none) break ;; |
---|
5349 | esac |
---|
5350 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
5351 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
5352 | # handle `-M -o', and we need to detect this. |
---|
5353 | if depmode=$depmode \ |
---|
5354 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
5355 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
5356 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
5357 | >/dev/null 2>conftest.err && |
---|
5358 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
5359 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
5360 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
5361 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
5362 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
5363 | # that says an option was ignored or not supported. |
---|
5364 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
5365 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
5366 | # The diagnosis changed in icc 8.0: |
---|
5367 | # icc: Command line remark: option '-MP' not supported |
---|
5368 | if (grep 'ignoring option' conftest.err || |
---|
5369 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
5370 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
5371 | break |
---|
5372 | fi |
---|
5373 | fi |
---|
5374 | done |
---|
5375 | |
---|
5376 | cd .. |
---|
5377 | rm -rf conftest.dir |
---|
5378 | else |
---|
5379 | am_cv_CXX_dependencies_compiler_type=none |
---|
5380 | fi |
---|
5381 | |
---|
5382 | fi |
---|
5383 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
5384 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
5385 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
5386 | |
---|
5387 | |
---|
5388 | |
---|
5389 | if |
---|
5390 | test "x$enable_dependency_tracking" != xno \ |
---|
5391 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
5392 | am__fastdepCXX_TRUE= |
---|
5393 | am__fastdepCXX_FALSE='#' |
---|
5394 | else |
---|
5395 | am__fastdepCXX_TRUE='#' |
---|
5396 | am__fastdepCXX_FALSE= |
---|
5397 | fi |
---|
5398 | |
---|
5399 | |
---|
5400 | |
---|
5401 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
5402 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
---|
5403 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
---|
5404 | if test "${enable_maintainer_mode+set}" = set; then |
---|
5405 | enableval="$enable_maintainer_mode" |
---|
5406 | USE_MAINTAINER_MODE=$enableval |
---|
5407 | else |
---|
5408 | USE_MAINTAINER_MODE=no |
---|
5409 | fi; |
---|
5410 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
---|
5411 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
---|
5412 | |
---|
5413 | |
---|
5414 | if test $USE_MAINTAINER_MODE = yes; then |
---|
5415 | MAINTAINER_MODE_TRUE= |
---|
5416 | MAINTAINER_MODE_FALSE='#' |
---|
5417 | else |
---|
5418 | MAINTAINER_MODE_TRUE='#' |
---|
5419 | MAINTAINER_MODE_FALSE= |
---|
5420 | fi |
---|
5421 | |
---|
5422 | MAINT=$MAINTAINER_MODE_TRUE |
---|
5423 | |
---|
5424 | |
---|
5425 | |
---|
5426 | coin_have_externals=no |
---|
5427 | if test "$enable_maintainer_mode" = yes; then |
---|
5428 | |
---|
5429 | # If maintainer mode is chosen, we make sure that the correct versions |
---|
5430 | # of the tools are used, and that we know where libtool.m4 is (to |
---|
5431 | # recreate acinclude.m4) |
---|
5432 | |
---|
5433 | |
---|
5434 | LIBTOOLM4= |
---|
5435 | # Normally, $HOME |
---|
5436 | AUTOTOOLS_DFLT=$HOME |
---|
5437 | |
---|
5438 | echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5 |
---|
5439 | echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6 |
---|
5440 | if test "${ac_cv_use_correct_autotools+set}" = set; then |
---|
5441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5442 | else |
---|
5443 | ac_cv_use_correct_autotools=check |
---|
5444 | fi |
---|
5445 | echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5 |
---|
5446 | echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6 |
---|
5447 | |
---|
5448 | if test $ac_cv_use_correct_autotools = check; then |
---|
5449 | ac_cv_use_correct_autotools=yes |
---|
5450 | # Check if we have autoconf |
---|
5451 | # Extract the first word of "autoconf", so it can be a program name with args. |
---|
5452 | set dummy autoconf; ac_word=$2 |
---|
5453 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5454 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5455 | if test "${ac_cv_prog_have_autoconf+set}" = set; then |
---|
5456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5457 | else |
---|
5458 | if test -n "$have_autoconf"; then |
---|
5459 | ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test. |
---|
5460 | else |
---|
5461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5462 | for as_dir in $PATH |
---|
5463 | do |
---|
5464 | IFS=$as_save_IFS |
---|
5465 | test -z "$as_dir" && as_dir=. |
---|
5466 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5467 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5468 | ac_cv_prog_have_autoconf="yes" |
---|
5469 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5470 | break 2 |
---|
5471 | fi |
---|
5472 | done |
---|
5473 | done |
---|
5474 | |
---|
5475 | test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no" |
---|
5476 | fi |
---|
5477 | fi |
---|
5478 | have_autoconf=$ac_cv_prog_have_autoconf |
---|
5479 | if test -n "$have_autoconf"; then |
---|
5480 | echo "$as_me:$LINENO: result: $have_autoconf" >&5 |
---|
5481 | echo "${ECHO_T}$have_autoconf" >&6 |
---|
5482 | else |
---|
5483 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5484 | echo "${ECHO_T}no" >&6 |
---|
5485 | fi |
---|
5486 | |
---|
5487 | if test $have_autoconf = no; then |
---|
5488 | { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5 |
---|
5489 | echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;} |
---|
5490 | { (exit 1); exit 1; }; } |
---|
5491 | fi |
---|
5492 | |
---|
5493 | # Check whether autoconf is the correct version |
---|
5494 | correct_version='2.59' |
---|
5495 | grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
---|
5496 | echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5 |
---|
5497 | echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6 |
---|
5498 | autoconf --version > confauto.out 2>&1 |
---|
5499 | if $EGREP $grep_version confauto.out >/dev/null 2>&1; then |
---|
5500 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
5501 | echo "${ECHO_T}yes" >&6 |
---|
5502 | else |
---|
5503 | rm -f confauto.out |
---|
5504 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5505 | echo "${ECHO_T}no" >&6 |
---|
5506 | { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5 |
---|
5507 | echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;} |
---|
5508 | { (exit 1); exit 1; }; } |
---|
5509 | fi |
---|
5510 | rm -f confauto.out |
---|
5511 | |
---|
5512 | # Check if the executable autoconf is picked up from the correct location |
---|
5513 | echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5 |
---|
5514 | echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6 |
---|
5515 | autoconf_dir=`which autoconf | sed -e 's=/autoconf=='` |
---|
5516 | autoconf_dir=`cd $autoconf_dir; pwd` |
---|
5517 | if test x$AUTOTOOLS_DIR = x; then |
---|
5518 | want_dir=$AUTOTOOLS_DFLT/bin |
---|
5519 | else |
---|
5520 | want_dir=$AUTOTOOLS_DIR/bin |
---|
5521 | fi |
---|
5522 | if test $autoconf_dir = `cd $want_dir; pwd`; then |
---|
5523 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
5524 | echo "${ECHO_T}yes" >&6 |
---|
5525 | else |
---|
5526 | rm -f confauto.out |
---|
5527 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5528 | echo "${ECHO_T}no" >&6 |
---|
5529 | { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 |
---|
5530 | echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} |
---|
5531 | { (exit 1); exit 1; }; } |
---|
5532 | fi |
---|
5533 | |
---|
5534 | # Check if we have automake |
---|
5535 | # Extract the first word of "automake", so it can be a program name with args. |
---|
5536 | set dummy automake; ac_word=$2 |
---|
5537 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5538 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5539 | if test "${ac_cv_prog_have_automake+set}" = set; then |
---|
5540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5541 | else |
---|
5542 | if test -n "$have_automake"; then |
---|
5543 | ac_cv_prog_have_automake="$have_automake" # Let the user override the test. |
---|
5544 | else |
---|
5545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5546 | for as_dir in $PATH |
---|
5547 | do |
---|
5548 | IFS=$as_save_IFS |
---|
5549 | test -z "$as_dir" && as_dir=. |
---|
5550 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5551 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5552 | ac_cv_prog_have_automake="yes" |
---|
5553 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5554 | break 2 |
---|
5555 | fi |
---|
5556 | done |
---|
5557 | done |
---|
5558 | |
---|
5559 | test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no" |
---|
5560 | fi |
---|
5561 | fi |
---|
5562 | have_automake=$ac_cv_prog_have_automake |
---|
5563 | if test -n "$have_automake"; then |
---|
5564 | echo "$as_me:$LINENO: result: $have_automake" >&5 |
---|
5565 | echo "${ECHO_T}$have_automake" >&6 |
---|
5566 | else |
---|
5567 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5568 | echo "${ECHO_T}no" >&6 |
---|
5569 | fi |
---|
5570 | |
---|
5571 | if test $have_automake = no; then |
---|
5572 | { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5 |
---|
5573 | echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;} |
---|
5574 | { (exit 1); exit 1; }; } |
---|
5575 | fi |
---|
5576 | |
---|
5577 | # Check whether automake is the correct version |
---|
5578 | correct_version='1.9.6' |
---|
5579 | grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
---|
5580 | echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5 |
---|
5581 | echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6 |
---|
5582 | automake --version > confauto.out 2>&1 |
---|
5583 | if $EGREP $grep_version confauto.out >/dev/null 2>&1; then |
---|
5584 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
5585 | echo "${ECHO_T}yes" >&6 |
---|
5586 | else |
---|
5587 | rm -f confauto.out |
---|
5588 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5589 | echo "${ECHO_T}no" >&6 |
---|
5590 | { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5 |
---|
5591 | echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;} |
---|
5592 | { (exit 1); exit 1; }; } |
---|
5593 | fi |
---|
5594 | rm -f confauto.out |
---|
5595 | |
---|
5596 | # Check if the executable automake is picked up from the correct location |
---|
5597 | echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5 |
---|
5598 | echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6 |
---|
5599 | automake_dir=`which automake | sed -e 's=/automake=='` |
---|
5600 | automake_dir=`cd $automake_dir; pwd` |
---|
5601 | if test x$AUTOTOOLS_DIR = x; then |
---|
5602 | want_dir=$AUTOTOOLS_DFLT/bin |
---|
5603 | else |
---|
5604 | want_dir=$AUTOTOOLS_DIR/bin |
---|
5605 | fi |
---|
5606 | if test $automake_dir = `cd $want_dir; pwd`; then |
---|
5607 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
5608 | echo "${ECHO_T}yes" >&6 |
---|
5609 | else |
---|
5610 | rm -f confauto.out |
---|
5611 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5612 | echo "${ECHO_T}no" >&6 |
---|
5613 | { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 |
---|
5614 | echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} |
---|
5615 | { (exit 1); exit 1; }; } |
---|
5616 | fi |
---|
5617 | |
---|
5618 | # Check if this is the correct version of libtool (with escaped dots) |
---|
5619 | if test x$AUTOTOOLS_DIR = x; then |
---|
5620 | want_dir=$AUTOTOOLS_DFLT/share |
---|
5621 | else |
---|
5622 | want_dir=$AUTOTOOLS_DIR/share |
---|
5623 | fi |
---|
5624 | correct_version='1.5.22' |
---|
5625 | grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
---|
5626 | if test -r $want_dir/libtool/ltmain.sh; then |
---|
5627 | have_ltmain=yes |
---|
5628 | : |
---|
5629 | else |
---|
5630 | have_ltmain=no |
---|
5631 | : |
---|
5632 | fi |
---|
5633 | |
---|
5634 | echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5 |
---|
5635 | echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6 |
---|
5636 | if test $have_ltmain = yes; then |
---|
5637 | if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then |
---|
5638 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
5639 | echo "${ECHO_T}yes" >&6 |
---|
5640 | else |
---|
5641 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5642 | echo "${ECHO_T}no" >&6 |
---|
5643 | { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5 |
---|
5644 | echo "$as_me: error: You don't have the correct version of libtool." >&2;} |
---|
5645 | { (exit 1); exit 1; }; } |
---|
5646 | fi |
---|
5647 | else |
---|
5648 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5649 | echo "${ECHO_T}no" >&6 |
---|
5650 | { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5 |
---|
5651 | echo "$as_me: error: I cannot find the ltmain.sh file." >&2;} |
---|
5652 | { (exit 1); exit 1; }; } |
---|
5653 | fi |
---|
5654 | fi |
---|
5655 | |
---|
5656 | # Check if we can find the libtool file |
---|
5657 | if test x$AUTOTOOLS_DIR = x; then |
---|
5658 | want_dir=$AUTOTOOLS_DFLT/share |
---|
5659 | else |
---|
5660 | want_dir=$AUTOTOOLS_DIR/share |
---|
5661 | fi |
---|
5662 | if test -r $want_dir/aclocal/libtool.m4; then |
---|
5663 | LIBTOOLM4="$want_dir/aclocal/libtool.m4" |
---|
5664 | : |
---|
5665 | else |
---|
5666 | { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5 |
---|
5667 | echo "$as_me: error: I cannot find the libtool.m4 file." >&2;} |
---|
5668 | { (exit 1); exit 1; }; } |
---|
5669 | : |
---|
5670 | fi |
---|
5671 | |
---|
5672 | |
---|
5673 | # Check if we have an Externals file |
---|
5674 | if test -r $srcdir/Externals; then |
---|
5675 | coin_have_externals=yes |
---|
5676 | fi |
---|
5677 | # Check if subversion is installed and understands https |
---|
5678 | # Extract the first word of "svn", so it can be a program name with args. |
---|
5679 | set dummy svn; ac_word=$2 |
---|
5680 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5681 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5682 | if test "${ac_cv_prog_have_svn+set}" = set; then |
---|
5683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5684 | else |
---|
5685 | if test -n "$have_svn"; then |
---|
5686 | ac_cv_prog_have_svn="$have_svn" # Let the user override the test. |
---|
5687 | else |
---|
5688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5689 | for as_dir in $PATH |
---|
5690 | do |
---|
5691 | IFS=$as_save_IFS |
---|
5692 | test -z "$as_dir" && as_dir=. |
---|
5693 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5694 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5695 | ac_cv_prog_have_svn="yes" |
---|
5696 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5697 | break 2 |
---|
5698 | fi |
---|
5699 | done |
---|
5700 | done |
---|
5701 | |
---|
5702 | test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no" |
---|
5703 | fi |
---|
5704 | fi |
---|
5705 | have_svn=$ac_cv_prog_have_svn |
---|
5706 | if test -n "$have_svn"; then |
---|
5707 | echo "$as_me:$LINENO: result: $have_svn" >&5 |
---|
5708 | echo "${ECHO_T}$have_svn" >&6 |
---|
5709 | else |
---|
5710 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5711 | echo "${ECHO_T}no" >&6 |
---|
5712 | fi |
---|
5713 | |
---|
5714 | if test x$have_svn = xyes; then |
---|
5715 | echo "$as_me:$LINENO: checking whether svn understands https" >&5 |
---|
5716 | echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6 |
---|
5717 | if test "${ac_cv_svn_understands_https+set}" = set; then |
---|
5718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5719 | else |
---|
5720 | svn --version > confauto.out 2>&1 |
---|
5721 | if $EGREP https confauto.out >/dev/null 2>&1; then |
---|
5722 | ac_cv_svn_understands_https=yes |
---|
5723 | else |
---|
5724 | ac_cv_svn_understands_https=no |
---|
5725 | have_svn=no |
---|
5726 | ac_cv_prog_have_svn=no |
---|
5727 | fi |
---|
5728 | rm -f confauto.out |
---|
5729 | fi |
---|
5730 | echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5 |
---|
5731 | echo "${ECHO_T}$ac_cv_svn_understands_https" >&6 |
---|
5732 | fi |
---|
5733 | |
---|
5734 | # Find the location of the BuildTools directory |
---|
5735 | BUILDTOOLSDIR= |
---|
5736 | if test -r $srcdir/BuildTools/coin.m4; then |
---|
5737 | BUILDTOOLSDIR=$srcdir/BuildTools |
---|
5738 | else |
---|
5739 | if test -r $srcdir/../BuildTools/coin.m4; then |
---|
5740 | BUILDTOOLSDIR=$srcdir/../BuildTools |
---|
5741 | else |
---|
5742 | if test -r $srcdir/../../BuildTools/coin.m4; then |
---|
5743 | BUILDTOOLSDIR=$srcdir/../../BuildTools |
---|
5744 | else |
---|
5745 | { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5 |
---|
5746 | echo "$as_me: error: Cannot find the BuildTools directory" >&2;} |
---|
5747 | { (exit 1); exit 1; }; } |
---|
5748 | fi |
---|
5749 | fi |
---|
5750 | fi |
---|
5751 | |
---|
5752 | |
---|
5753 | # The following variable is set to the name of the directory where |
---|
5754 | # the autotool scripts are located |
---|
5755 | |
---|
5756 | AUX_DIR=$ac_aux_dir |
---|
5757 | fi |
---|
5758 | |
---|
5759 | # helpful variable for the base directory of this package |
---|
5760 | abs_source_dir=`cd $srcdir; pwd` |
---|
5761 | |
---|
5762 | |
---|
5763 | # Stuff for example Makefiles |
---|
5764 | if test x$prefix = xNONE; then |
---|
5765 | full_prefix=$ac_default_prefix |
---|
5766 | else |
---|
5767 | full_prefix=$prefix |
---|
5768 | fi |
---|
5769 | full_prefix=`cd $full_prefix ; pwd` |
---|
5770 | |
---|
5771 | abs_lib_dir=$full_prefix/lib |
---|
5772 | |
---|
5773 | abs_include_dir=$full_prefix/include |
---|
5774 | |
---|
5775 | abs_bin_dir=$full_prefix/bin |
---|
5776 | |
---|
5777 | |
---|
5778 | |
---|
5779 | if test $coin_have_externals = yes && test x$have_svn = xyes; then |
---|
5780 | HAVE_EXTERNALS_TRUE= |
---|
5781 | HAVE_EXTERNALS_FALSE='#' |
---|
5782 | else |
---|
5783 | HAVE_EXTERNALS_TRUE='#' |
---|
5784 | HAVE_EXTERNALS_FALSE= |
---|
5785 | fi |
---|
5786 | |
---|
5787 | |
---|
5788 | # AC_MSG_NOTICE([End automake initialisation.]) |
---|
5789 | |
---|
5790 | |
---|
5791 | |
---|
5792 | LIBTOOL= |
---|
5793 | if test -r ../libtool; then |
---|
5794 | coin_config_dir=.. |
---|
5795 | LIBTOOL='$(SHELL) $(top_builddir)/../libtool' |
---|
5796 | fi |
---|
5797 | if test "x$LIBTOOL" = x; then |
---|
5798 | if test -r ../../libtool; then |
---|
5799 | coin_config_dir=../.. |
---|
5800 | LIBTOOL='$(SHELL) $(top_builddir)/../../libtool' |
---|
5801 | fi |
---|
5802 | fi |
---|
5803 | |
---|
5804 | if test "x$LIBTOOL" = x; then |
---|
5805 | # AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).]) |
---|
5806 | # Stuff for libtool |
---|
5807 | # Check whether --enable-shared or --disable-shared was given. |
---|
5808 | if test "${enable_shared+set}" = set; then |
---|
5809 | enableval="$enable_shared" |
---|
5810 | p=${PACKAGE-default} |
---|
5811 | case $enableval in |
---|
5812 | yes) enable_shared=yes ;; |
---|
5813 | no) enable_shared=no ;; |
---|
5814 | *) |
---|
5815 | enable_shared=no |
---|
5816 | # Look at the argument we got. We use all the common list separators. |
---|
5817 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
5818 | for pkg in $enableval; do |
---|
5819 | IFS="$lt_save_ifs" |
---|
5820 | if test "X$pkg" = "X$p"; then |
---|
5821 | enable_shared=yes |
---|
5822 | fi |
---|
5823 | done |
---|
5824 | IFS="$lt_save_ifs" |
---|
5825 | ;; |
---|
5826 | esac |
---|
5827 | else |
---|
5828 | enable_shared=yes |
---|
5829 | fi; |
---|
5830 | |
---|
5831 | # Check whether --enable-fast-install or --disable-fast-install was given. |
---|
5832 | if test "${enable_fast_install+set}" = set; then |
---|
5833 | enableval="$enable_fast_install" |
---|
5834 | p=${PACKAGE-default} |
---|
5835 | case $enableval in |
---|
5836 | yes) enable_fast_install=yes ;; |
---|
5837 | no) enable_fast_install=no ;; |
---|
5838 | *) |
---|
5839 | enable_fast_install=no |
---|
5840 | # Look at the argument we got. We use all the common list separators. |
---|
5841 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
5842 | for pkg in $enableval; do |
---|
5843 | IFS="$lt_save_ifs" |
---|
5844 | if test "X$pkg" = "X$p"; then |
---|
5845 | enable_fast_install=yes |
---|
5846 | fi |
---|
5847 | done |
---|
5848 | IFS="$lt_save_ifs" |
---|
5849 | ;; |
---|
5850 | esac |
---|
5851 | else |
---|
5852 | enable_fast_install=yes |
---|
5853 | fi; |
---|
5854 | |
---|
5855 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
5856 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
5857 | if test "${ac_cv_host+set}" = set; then |
---|
5858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5859 | else |
---|
5860 | ac_cv_host_alias=$host_alias |
---|
5861 | test -z "$ac_cv_host_alias" && |
---|
5862 | ac_cv_host_alias=$ac_cv_build_alias |
---|
5863 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
5864 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
5865 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
5866 | { (exit 1); exit 1; }; } |
---|
5867 | |
---|
5868 | fi |
---|
5869 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
5870 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
5871 | host=$ac_cv_host |
---|
5872 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
5873 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
5874 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
5875 | |
---|
5876 | |
---|
5877 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
---|
5878 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
---|
5879 | if test "${lt_cv_path_SED+set}" = set; then |
---|
5880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5881 | else |
---|
5882 | # Loop through the user's path and test for sed and gsed. |
---|
5883 | # Then use that list of sed's as ones to test for truncation. |
---|
5884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5885 | for as_dir in $PATH |
---|
5886 | do |
---|
5887 | IFS=$as_save_IFS |
---|
5888 | test -z "$as_dir" && as_dir=. |
---|
5889 | for lt_ac_prog in sed gsed; do |
---|
5890 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5891 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
---|
5892 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
---|
5893 | fi |
---|
5894 | done |
---|
5895 | done |
---|
5896 | done |
---|
5897 | lt_ac_max=0 |
---|
5898 | lt_ac_count=0 |
---|
5899 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
---|
5900 | # along with /bin/sed that truncates output. |
---|
5901 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
---|
5902 | test ! -f $lt_ac_sed && continue |
---|
5903 | cat /dev/null > conftest.in |
---|
5904 | lt_ac_count=0 |
---|
5905 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
---|
5906 | # Check for GNU sed and select it if it is found. |
---|
5907 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
---|
5908 | lt_cv_path_SED=$lt_ac_sed |
---|
5909 | break |
---|
5910 | fi |
---|
5911 | while true; do |
---|
5912 | cat conftest.in conftest.in >conftest.tmp |
---|
5913 | mv conftest.tmp conftest.in |
---|
5914 | cp conftest.in conftest.nl |
---|
5915 | echo >>conftest.nl |
---|
5916 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
---|
5917 | cmp -s conftest.out conftest.nl || break |
---|
5918 | # 10000 chars as input seems more than enough |
---|
5919 | test $lt_ac_count -gt 10 && break |
---|
5920 | lt_ac_count=`expr $lt_ac_count + 1` |
---|
5921 | if test $lt_ac_count -gt $lt_ac_max; then |
---|
5922 | lt_ac_max=$lt_ac_count |
---|
5923 | lt_cv_path_SED=$lt_ac_sed |
---|
5924 | fi |
---|
5925 | done |
---|
5926 | done |
---|
5927 | |
---|
5928 | fi |
---|
5929 | |
---|
5930 | SED=$lt_cv_path_SED |
---|
5931 | echo "$as_me:$LINENO: result: $SED" >&5 |
---|
5932 | echo "${ECHO_T}$SED" >&6 |
---|
5933 | |
---|
5934 | |
---|
5935 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
---|
5936 | if test "${with_gnu_ld+set}" = set; then |
---|
5937 | withval="$with_gnu_ld" |
---|
5938 | test "$withval" = no || with_gnu_ld=yes |
---|
5939 | else |
---|
5940 | with_gnu_ld=no |
---|
5941 | fi; |
---|
5942 | ac_prog=ld |
---|
5943 | if test "$GCC" = yes; then |
---|
5944 | # Check if gcc -print-prog-name=ld gives a path. |
---|
5945 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
---|
5946 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
---|
5947 | case $host in |
---|
5948 | *-*-mingw*) |
---|
5949 | # gcc leaves a trailing carriage return which upsets mingw |
---|
5950 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
---|
5951 | *) |
---|
5952 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
---|
5953 | esac |
---|
5954 | case $ac_prog in |
---|
5955 | # Accept absolute paths. |
---|
5956 | [\\/]* | ?:[\\/]*) |
---|
5957 | re_direlt='/[^/][^/]*/\.\./' |
---|
5958 | # Canonicalize the pathname of ld |
---|
5959 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
---|
5960 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
---|
5961 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
---|
5962 | done |
---|
5963 | test -z "$LD" && LD="$ac_prog" |
---|
5964 | ;; |
---|
5965 | "") |
---|
5966 | # If it fails, then pretend we aren't using GCC. |
---|
5967 | ac_prog=ld |
---|
5968 | ;; |
---|
5969 | *) |
---|
5970 | # If it is relative, then search for the first ld in PATH. |
---|
5971 | with_gnu_ld=unknown |
---|
5972 | ;; |
---|
5973 | esac |
---|
5974 | elif test "$with_gnu_ld" = yes; then |
---|
5975 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
---|
5976 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
---|
5977 | else |
---|
5978 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
---|
5979 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
---|
5980 | fi |
---|
5981 | if test "${lt_cv_path_LD+set}" = set; then |
---|
5982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5983 | else |
---|
5984 | if test -z "$LD"; then |
---|
5985 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
5986 | for ac_dir in $PATH; do |
---|
5987 | IFS="$lt_save_ifs" |
---|
5988 | test -z "$ac_dir" && ac_dir=. |
---|
5989 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
5990 | lt_cv_path_LD="$ac_dir/$ac_prog" |
---|
5991 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
5992 | # but apparently some variants of GNU ld only accept -v. |
---|
5993 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
5994 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
---|
5995 | *GNU* | *'with BFD'*) |
---|
5996 | test "$with_gnu_ld" != no && break |
---|
5997 | ;; |
---|
5998 | *) |
---|
5999 | test "$with_gnu_ld" != yes && break |
---|
6000 | ;; |
---|
6001 | esac |
---|
6002 | fi |
---|
6003 | done |
---|
6004 | IFS="$lt_save_ifs" |
---|
6005 | else |
---|
6006 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
6007 | fi |
---|
6008 | fi |
---|
6009 | |
---|
6010 | LD="$lt_cv_path_LD" |
---|
6011 | if test -n "$LD"; then |
---|
6012 | echo "$as_me:$LINENO: result: $LD" >&5 |
---|
6013 | echo "${ECHO_T}$LD" >&6 |
---|
6014 | else |
---|
6015 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6016 | echo "${ECHO_T}no" >&6 |
---|
6017 | fi |
---|
6018 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
---|
6019 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
---|
6020 | { (exit 1); exit 1; }; } |
---|
6021 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
---|
6022 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
---|
6023 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
---|
6024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6025 | else |
---|
6026 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
---|
6027 | case `$LD -v 2>&1 </dev/null` in |
---|
6028 | *GNU* | *'with BFD'*) |
---|
6029 | lt_cv_prog_gnu_ld=yes |
---|
6030 | ;; |
---|
6031 | *) |
---|
6032 | lt_cv_prog_gnu_ld=no |
---|
6033 | ;; |
---|
6034 | esac |
---|
6035 | fi |
---|
6036 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
---|
6037 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
---|
6038 | with_gnu_ld=$lt_cv_prog_gnu_ld |
---|
6039 | |
---|
6040 | |
---|
6041 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
---|
6042 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
---|
6043 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
---|
6044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6045 | else |
---|
6046 | lt_cv_ld_reload_flag='-r' |
---|
6047 | fi |
---|
6048 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
---|
6049 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
---|
6050 | reload_flag=$lt_cv_ld_reload_flag |
---|
6051 | case $reload_flag in |
---|
6052 | "" | " "*) ;; |
---|
6053 | *) reload_flag=" $reload_flag" ;; |
---|
6054 | esac |
---|
6055 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
6056 | case $host_os in |
---|
6057 | darwin*) |
---|
6058 | if test "$GCC" = yes; then |
---|
6059 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
---|
6060 | else |
---|
6061 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
6062 | fi |
---|
6063 | ;; |
---|
6064 | esac |
---|
6065 | |
---|
6066 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
---|
6067 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
---|
6068 | if test "${lt_cv_path_NM+set}" = set; then |
---|
6069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6070 | else |
---|
6071 | if test -n "$NM"; then |
---|
6072 | # Let the user override the test. |
---|
6073 | lt_cv_path_NM="$NM" |
---|
6074 | else |
---|
6075 | lt_nm_to_check="${ac_tool_prefix}nm" |
---|
6076 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
---|
6077 | lt_nm_to_check="$lt_nm_to_check nm" |
---|
6078 | fi |
---|
6079 | for lt_tmp_nm in $lt_nm_to_check; do |
---|
6080 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
6081 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
---|
6082 | IFS="$lt_save_ifs" |
---|
6083 | test -z "$ac_dir" && ac_dir=. |
---|
6084 | tmp_nm="$ac_dir/$lt_tmp_nm" |
---|
6085 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
---|
6086 | # Check to see if the nm accepts a BSD-compat flag. |
---|
6087 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
---|
6088 | # nm: unknown option "B" ignored |
---|
6089 | # Tru64's nm complains that /dev/null is an invalid object file |
---|
6090 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
---|
6091 | */dev/null* | *'Invalid file or object type'*) |
---|
6092 | lt_cv_path_NM="$tmp_nm -B" |
---|
6093 | break |
---|
6094 | ;; |
---|
6095 | *) |
---|
6096 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
---|
6097 | */dev/null*) |
---|
6098 | lt_cv_path_NM="$tmp_nm -p" |
---|
6099 | break |
---|
6100 | ;; |
---|
6101 | *) |
---|
6102 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
---|
6103 | continue # so that we can try to find one that supports BSD flags |
---|
6104 | ;; |
---|
6105 | esac |
---|
6106 | ;; |
---|
6107 | esac |
---|
6108 | fi |
---|
6109 | done |
---|
6110 | IFS="$lt_save_ifs" |
---|
6111 | done |
---|
6112 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
---|
6113 | fi |
---|
6114 | fi |
---|
6115 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
---|
6116 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
---|
6117 | NM="$lt_cv_path_NM" |
---|
6118 | |
---|
6119 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
---|
6120 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
---|
6121 | LN_S=$as_ln_s |
---|
6122 | if test "$LN_S" = "ln -s"; then |
---|
6123 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
6124 | echo "${ECHO_T}yes" >&6 |
---|
6125 | else |
---|
6126 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
---|
6127 | echo "${ECHO_T}no, using $LN_S" >&6 |
---|
6128 | fi |
---|
6129 | |
---|
6130 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
---|
6131 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
---|
6132 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
---|
6133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6134 | else |
---|
6135 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
---|
6136 | lt_cv_file_magic_test_file= |
---|
6137 | lt_cv_deplibs_check_method='unknown' |
---|
6138 | # Need to set the preceding variable on all platforms that support |
---|
6139 | # interlibrary dependencies. |
---|
6140 | # 'none' -- dependencies not supported. |
---|
6141 | # `unknown' -- same as none, but documents that we really don't know. |
---|
6142 | # 'pass_all' -- all dependencies passed with no checks. |
---|
6143 | # 'test_compile' -- check by making test program. |
---|
6144 | # 'file_magic [[regex]]' -- check by looking for files in library path |
---|
6145 | # which responds to the $file_magic_cmd with a given extended regex. |
---|
6146 | # If you have `file' or equivalent on your system and you're not sure |
---|
6147 | # whether `pass_all' will *always* work, you probably want this one. |
---|
6148 | |
---|
6149 | case $host_os in |
---|
6150 | aix4* | aix5*) |
---|
6151 | lt_cv_deplibs_check_method=pass_all |
---|
6152 | ;; |
---|
6153 | |
---|
6154 | beos*) |
---|
6155 | lt_cv_deplibs_check_method=pass_all |
---|
6156 | ;; |
---|
6157 | |
---|
6158 | bsdi[45]*) |
---|
6159 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
---|
6160 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
---|
6161 | lt_cv_file_magic_test_file=/shlib/libc.so |
---|
6162 | ;; |
---|
6163 | |
---|
6164 | cygwin*) |
---|
6165 | # func_win32_libid is a shell function defined in ltmain.sh |
---|
6166 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
---|
6167 | lt_cv_file_magic_cmd='func_win32_libid' |
---|
6168 | ;; |
---|
6169 | |
---|
6170 | mingw* | pw32*) |
---|
6171 | # Base MSYS/MinGW do not provide the 'file' command needed by |
---|
6172 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
---|
6173 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
---|
6174 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
---|
6175 | ;; |
---|
6176 | |
---|
6177 | darwin* | rhapsody*) |
---|
6178 | lt_cv_deplibs_check_method=pass_all |
---|
6179 | ;; |
---|
6180 | |
---|
6181 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
6182 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
6183 | case $host_cpu in |
---|
6184 | i*86 ) |
---|
6185 | # Not sure whether the presence of OpenBSD here was a mistake. |
---|
6186 | # Let's accept both of them until this is cleared up. |
---|
6187 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
---|
6188 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
6189 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
---|
6190 | ;; |
---|
6191 | esac |
---|
6192 | else |
---|
6193 | lt_cv_deplibs_check_method=pass_all |
---|
6194 | fi |
---|
6195 | ;; |
---|
6196 | |
---|
6197 | gnu*) |
---|
6198 | lt_cv_deplibs_check_method=pass_all |
---|
6199 | ;; |
---|
6200 | |
---|
6201 | hpux10.20* | hpux11*) |
---|
6202 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
6203 | case $host_cpu in |
---|
6204 | ia64*) |
---|
6205 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
---|
6206 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
---|
6207 | ;; |
---|
6208 | hppa*64*) |
---|
6209 | 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]' |
---|
6210 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
---|
6211 | ;; |
---|
6212 | *) |
---|
6213 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
---|
6214 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
---|
6215 | ;; |
---|
6216 | esac |
---|
6217 | ;; |
---|
6218 | |
---|
6219 | interix3*) |
---|
6220 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
---|
6221 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
---|
6222 | ;; |
---|
6223 | |
---|
6224 | irix5* | irix6* | nonstopux*) |
---|
6225 | case $LD in |
---|
6226 | *-32|*"-32 ") libmagic=32-bit;; |
---|
6227 | *-n32|*"-n32 ") libmagic=N32;; |
---|
6228 | *-64|*"-64 ") libmagic=64-bit;; |
---|
6229 | *) libmagic=never-match;; |
---|
6230 | esac |
---|
6231 | lt_cv_deplibs_check_method=pass_all |
---|
6232 | ;; |
---|
6233 | |
---|
6234 | # This must be Linux ELF. |
---|
6235 | linux*) |
---|
6236 | lt_cv_deplibs_check_method=pass_all |
---|
6237 | ;; |
---|
6238 | |
---|
6239 | netbsd*) |
---|
6240 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
6241 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
6242 | else |
---|
6243 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
---|
6244 | fi |
---|
6245 | ;; |
---|
6246 | |
---|
6247 | newos6*) |
---|
6248 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
---|
6249 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
6250 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
---|
6251 | ;; |
---|
6252 | |
---|
6253 | nto-qnx*) |
---|
6254 | lt_cv_deplibs_check_method=unknown |
---|
6255 | ;; |
---|
6256 | |
---|
6257 | openbsd*) |
---|
6258 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
6259 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
---|
6260 | else |
---|
6261 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
6262 | fi |
---|
6263 | ;; |
---|
6264 | |
---|
6265 | osf3* | osf4* | osf5*) |
---|
6266 | lt_cv_deplibs_check_method=pass_all |
---|
6267 | ;; |
---|
6268 | |
---|
6269 | solaris*) |
---|
6270 | lt_cv_deplibs_check_method=pass_all |
---|
6271 | ;; |
---|
6272 | |
---|
6273 | sysv4 | sysv4.3*) |
---|
6274 | case $host_vendor in |
---|
6275 | motorola) |
---|
6276 | 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]' |
---|
6277 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
---|
6278 | ;; |
---|
6279 | ncr) |
---|
6280 | lt_cv_deplibs_check_method=pass_all |
---|
6281 | ;; |
---|
6282 | sequent) |
---|
6283 | lt_cv_file_magic_cmd='/bin/file' |
---|
6284 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
---|
6285 | ;; |
---|
6286 | sni) |
---|
6287 | lt_cv_file_magic_cmd='/bin/file' |
---|
6288 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
---|
6289 | lt_cv_file_magic_test_file=/lib/libc.so |
---|
6290 | ;; |
---|
6291 | siemens) |
---|
6292 | lt_cv_deplibs_check_method=pass_all |
---|
6293 | ;; |
---|
6294 | pc) |
---|
6295 | lt_cv_deplibs_check_method=pass_all |
---|
6296 | ;; |
---|
6297 | esac |
---|
6298 | ;; |
---|
6299 | |
---|
6300 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
---|
6301 | lt_cv_deplibs_check_method=pass_all |
---|
6302 | ;; |
---|
6303 | esac |
---|
6304 | |
---|
6305 | fi |
---|
6306 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
---|
6307 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
---|
6308 | file_magic_cmd=$lt_cv_file_magic_cmd |
---|
6309 | deplibs_check_method=$lt_cv_deplibs_check_method |
---|
6310 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
---|
6311 | |
---|
6312 | |
---|
6313 | |
---|
6314 | |
---|
6315 | # If no C compiler was specified, use CC. |
---|
6316 | LTCC=${LTCC-"$CC"} |
---|
6317 | |
---|
6318 | # If no C compiler flags were specified, use CFLAGS. |
---|
6319 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
6320 | |
---|
6321 | # Allow CC to be a program name with arguments. |
---|
6322 | compiler=$CC |
---|
6323 | |
---|
6324 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
---|
6325 | if test "${enable_libtool_lock+set}" = set; then |
---|
6326 | enableval="$enable_libtool_lock" |
---|
6327 | |
---|
6328 | fi; |
---|
6329 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
6330 | |
---|
6331 | # Some flags need to be propagated to the compiler or linker for good |
---|
6332 | # libtool support. |
---|
6333 | case $host in |
---|
6334 | ia64-*-hpux*) |
---|
6335 | # Find out which ABI we are using. |
---|
6336 | echo 'int i;' > conftest.$ac_ext |
---|
6337 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6338 | (eval $ac_compile) 2>&5 |
---|
6339 | ac_status=$? |
---|
6340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6341 | (exit $ac_status); }; then |
---|
6342 | case `/usr/bin/file conftest.$ac_objext` in |
---|
6343 | *ELF-32*) |
---|
6344 | HPUX_IA64_MODE="32" |
---|
6345 | ;; |
---|
6346 | *ELF-64*) |
---|
6347 | HPUX_IA64_MODE="64" |
---|
6348 | ;; |
---|
6349 | esac |
---|
6350 | fi |
---|
6351 | rm -rf conftest* |
---|
6352 | ;; |
---|
6353 | *-*-irix6*) |
---|
6354 | # Find out which ABI we are using. |
---|
6355 | echo '#line 6355 "configure"' > conftest.$ac_ext |
---|
6356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6357 | (eval $ac_compile) 2>&5 |
---|
6358 | ac_status=$? |
---|
6359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6360 | (exit $ac_status); }; then |
---|
6361 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
6362 | case `/usr/bin/file conftest.$ac_objext` in |
---|
6363 | *32-bit*) |
---|
6364 | LD="${LD-ld} -melf32bsmip" |
---|
6365 | ;; |
---|
6366 | *N32*) |
---|
6367 | LD="${LD-ld} -melf32bmipn32" |
---|
6368 | ;; |
---|
6369 | *64-bit*) |
---|
6370 | LD="${LD-ld} -melf64bmip" |
---|
6371 | ;; |
---|
6372 | esac |
---|
6373 | else |
---|
6374 | case `/usr/bin/file conftest.$ac_objext` in |
---|
6375 | *32-bit*) |
---|
6376 | LD="${LD-ld} -32" |
---|
6377 | ;; |
---|
6378 | *N32*) |
---|
6379 | LD="${LD-ld} -n32" |
---|
6380 | ;; |
---|
6381 | *64-bit*) |
---|
6382 | LD="${LD-ld} -64" |
---|
6383 | ;; |
---|
6384 | esac |
---|
6385 | fi |
---|
6386 | fi |
---|
6387 | rm -rf conftest* |
---|
6388 | ;; |
---|
6389 | |
---|
6390 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
---|
6391 | # Find out which ABI we are using. |
---|
6392 | echo 'int i;' > conftest.$ac_ext |
---|
6393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6394 | (eval $ac_compile) 2>&5 |
---|
6395 | ac_status=$? |
---|
6396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6397 | (exit $ac_status); }; then |
---|
6398 | case `/usr/bin/file conftest.o` in |
---|
6399 | *32-bit*) |
---|
6400 | case $host in |
---|
6401 | x86_64-*linux*) |
---|
6402 | LD="${LD-ld} -m elf_i386" |
---|
6403 | ;; |
---|
6404 | ppc64-*linux*|powerpc64-*linux*) |
---|
6405 | LD="${LD-ld} -m elf32ppclinux" |
---|
6406 | ;; |
---|
6407 | s390x-*linux*) |
---|
6408 | LD="${LD-ld} -m elf_s390" |
---|
6409 | ;; |
---|
6410 | sparc64-*linux*) |
---|
6411 | LD="${LD-ld} -m elf32_sparc" |
---|
6412 | ;; |
---|
6413 | esac |
---|
6414 | ;; |
---|
6415 | *64-bit*) |
---|
6416 | case $host in |
---|
6417 | x86_64-*linux*) |
---|
6418 | LD="${LD-ld} -m elf_x86_64" |
---|
6419 | ;; |
---|
6420 | ppc*-*linux*|powerpc*-*linux*) |
---|
6421 | LD="${LD-ld} -m elf64ppc" |
---|
6422 | ;; |
---|
6423 | s390*-*linux*) |
---|
6424 | LD="${LD-ld} -m elf64_s390" |
---|
6425 | ;; |
---|
6426 | sparc*-*linux*) |
---|
6427 | LD="${LD-ld} -m elf64_sparc" |
---|
6428 | ;; |
---|
6429 | esac |
---|
6430 | ;; |
---|
6431 | esac |
---|
6432 | fi |
---|
6433 | rm -rf conftest* |
---|
6434 | ;; |
---|
6435 | |
---|
6436 | *-*-sco3.2v5*) |
---|
6437 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
---|
6438 | SAVE_CFLAGS="$CFLAGS" |
---|
6439 | CFLAGS="$CFLAGS -belf" |
---|
6440 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
---|
6441 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
---|
6442 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
---|
6443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6444 | else |
---|
6445 | ac_ext=c |
---|
6446 | ac_cpp='$CPP $CPPFLAGS' |
---|
6447 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6448 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6449 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6450 | |
---|
6451 | cat >conftest.$ac_ext <<_ACEOF |
---|
6452 | /* confdefs.h. */ |
---|
6453 | _ACEOF |
---|
6454 | cat confdefs.h >>conftest.$ac_ext |
---|
6455 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6456 | /* end confdefs.h. */ |
---|
6457 | |
---|
6458 | int |
---|
6459 | main () |
---|
6460 | { |
---|
6461 | |
---|
6462 | ; |
---|
6463 | return 0; |
---|
6464 | } |
---|
6465 | _ACEOF |
---|
6466 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6467 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6468 | (eval $ac_link) 2>conftest.er1 |
---|
6469 | ac_status=$? |
---|
6470 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6471 | rm -f conftest.er1 |
---|
6472 | cat conftest.err >&5 |
---|
6473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6474 | (exit $ac_status); } && |
---|
6475 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6476 | || test ! -s conftest.err' |
---|
6477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6478 | (eval $ac_try) 2>&5 |
---|
6479 | ac_status=$? |
---|
6480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6481 | (exit $ac_status); }; } && |
---|
6482 | { ac_try='test -s conftest$ac_exeext' |
---|
6483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6484 | (eval $ac_try) 2>&5 |
---|
6485 | ac_status=$? |
---|
6486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6487 | (exit $ac_status); }; }; then |
---|
6488 | lt_cv_cc_needs_belf=yes |
---|
6489 | else |
---|
6490 | echo "$as_me: failed program was:" >&5 |
---|
6491 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6492 | |
---|
6493 | lt_cv_cc_needs_belf=no |
---|
6494 | fi |
---|
6495 | rm -f conftest.err conftest.$ac_objext \ |
---|
6496 | conftest$ac_exeext conftest.$ac_ext |
---|
6497 | ac_ext=c |
---|
6498 | ac_cpp='$CPP $CPPFLAGS' |
---|
6499 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6500 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6501 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6502 | |
---|
6503 | fi |
---|
6504 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
---|
6505 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
---|
6506 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
---|
6507 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
---|
6508 | CFLAGS="$SAVE_CFLAGS" |
---|
6509 | fi |
---|
6510 | ;; |
---|
6511 | sparc*-*solaris*) |
---|
6512 | # Find out which ABI we are using. |
---|
6513 | echo 'int i;' > conftest.$ac_ext |
---|
6514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6515 | (eval $ac_compile) 2>&5 |
---|
6516 | ac_status=$? |
---|
6517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6518 | (exit $ac_status); }; then |
---|
6519 | case `/usr/bin/file conftest.o` in |
---|
6520 | *64-bit*) |
---|
6521 | case $lt_cv_prog_gnu_ld in |
---|
6522 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
---|
6523 | *) LD="${LD-ld} -64" ;; |
---|
6524 | esac |
---|
6525 | ;; |
---|
6526 | esac |
---|
6527 | fi |
---|
6528 | rm -rf conftest* |
---|
6529 | ;; |
---|
6530 | |
---|
6531 | |
---|
6532 | esac |
---|
6533 | |
---|
6534 | need_locks="$enable_libtool_lock" |
---|
6535 | |
---|
6536 | |
---|
6537 | ac_ext=c |
---|
6538 | ac_cpp='$CPP $CPPFLAGS' |
---|
6539 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6540 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6541 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6542 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
6543 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
6544 | # On Suns, sometimes $CPP names a directory. |
---|
6545 | if test -n "$CPP" && test -d "$CPP"; then |
---|
6546 | CPP= |
---|
6547 | fi |
---|
6548 | if test -z "$CPP"; then |
---|
6549 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
6550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6551 | else |
---|
6552 | # Double quotes because CPP needs to be expanded |
---|
6553 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
6554 | do |
---|
6555 | ac_preproc_ok=false |
---|
6556 | for ac_c_preproc_warn_flag in '' yes |
---|
6557 | do |
---|
6558 | # Use a header file that comes with gcc, so configuring glibc |
---|
6559 | # with a fresh cross-compiler works. |
---|
6560 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6561 | # <limits.h> exists even on freestanding compilers. |
---|
6562 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
6563 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
6564 | cat >conftest.$ac_ext <<_ACEOF |
---|
6565 | /* confdefs.h. */ |
---|
6566 | _ACEOF |
---|
6567 | cat confdefs.h >>conftest.$ac_ext |
---|
6568 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6569 | /* end confdefs.h. */ |
---|
6570 | #ifdef __STDC__ |
---|
6571 | # include <limits.h> |
---|
6572 | #else |
---|
6573 | # include <assert.h> |
---|
6574 | #endif |
---|
6575 | Syntax error |
---|
6576 | _ACEOF |
---|
6577 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6578 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6579 | ac_status=$? |
---|
6580 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6581 | rm -f conftest.er1 |
---|
6582 | cat conftest.err >&5 |
---|
6583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6584 | (exit $ac_status); } >/dev/null; then |
---|
6585 | if test -s conftest.err; then |
---|
6586 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6587 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6588 | else |
---|
6589 | ac_cpp_err= |
---|
6590 | fi |
---|
6591 | else |
---|
6592 | ac_cpp_err=yes |
---|
6593 | fi |
---|
6594 | if test -z "$ac_cpp_err"; then |
---|
6595 | : |
---|
6596 | else |
---|
6597 | echo "$as_me: failed program was:" >&5 |
---|
6598 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6599 | |
---|
6600 | # Broken: fails on valid input. |
---|
6601 | continue |
---|
6602 | fi |
---|
6603 | rm -f conftest.err conftest.$ac_ext |
---|
6604 | |
---|
6605 | # OK, works on sane cases. Now check whether non-existent headers |
---|
6606 | # can be detected and how. |
---|
6607 | cat >conftest.$ac_ext <<_ACEOF |
---|
6608 | /* confdefs.h. */ |
---|
6609 | _ACEOF |
---|
6610 | cat confdefs.h >>conftest.$ac_ext |
---|
6611 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6612 | /* end confdefs.h. */ |
---|
6613 | #include <ac_nonexistent.h> |
---|
6614 | _ACEOF |
---|
6615 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6616 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6617 | ac_status=$? |
---|
6618 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6619 | rm -f conftest.er1 |
---|
6620 | cat conftest.err >&5 |
---|
6621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6622 | (exit $ac_status); } >/dev/null; then |
---|
6623 | if test -s conftest.err; then |
---|
6624 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6625 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6626 | else |
---|
6627 | ac_cpp_err= |
---|
6628 | fi |
---|
6629 | else |
---|
6630 | ac_cpp_err=yes |
---|
6631 | fi |
---|
6632 | if test -z "$ac_cpp_err"; then |
---|
6633 | # Broken: success on invalid input. |
---|
6634 | continue |
---|
6635 | else |
---|
6636 | echo "$as_me: failed program was:" >&5 |
---|
6637 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6638 | |
---|
6639 | # Passes both tests. |
---|
6640 | ac_preproc_ok=: |
---|
6641 | break |
---|
6642 | fi |
---|
6643 | rm -f conftest.err conftest.$ac_ext |
---|
6644 | |
---|
6645 | done |
---|
6646 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
6647 | rm -f conftest.err conftest.$ac_ext |
---|
6648 | if $ac_preproc_ok; then |
---|
6649 | break |
---|
6650 | fi |
---|
6651 | |
---|
6652 | done |
---|
6653 | ac_cv_prog_CPP=$CPP |
---|
6654 | |
---|
6655 | fi |
---|
6656 | CPP=$ac_cv_prog_CPP |
---|
6657 | else |
---|
6658 | ac_cv_prog_CPP=$CPP |
---|
6659 | fi |
---|
6660 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
6661 | echo "${ECHO_T}$CPP" >&6 |
---|
6662 | ac_preproc_ok=false |
---|
6663 | for ac_c_preproc_warn_flag in '' yes |
---|
6664 | do |
---|
6665 | # Use a header file that comes with gcc, so configuring glibc |
---|
6666 | # with a fresh cross-compiler works. |
---|
6667 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6668 | # <limits.h> exists even on freestanding compilers. |
---|
6669 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
6670 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
6671 | cat >conftest.$ac_ext <<_ACEOF |
---|
6672 | /* confdefs.h. */ |
---|
6673 | _ACEOF |
---|
6674 | cat confdefs.h >>conftest.$ac_ext |
---|
6675 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6676 | /* end confdefs.h. */ |
---|
6677 | #ifdef __STDC__ |
---|
6678 | # include <limits.h> |
---|
6679 | #else |
---|
6680 | # include <assert.h> |
---|
6681 | #endif |
---|
6682 | Syntax error |
---|
6683 | _ACEOF |
---|
6684 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6685 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6686 | ac_status=$? |
---|
6687 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6688 | rm -f conftest.er1 |
---|
6689 | cat conftest.err >&5 |
---|
6690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6691 | (exit $ac_status); } >/dev/null; then |
---|
6692 | if test -s conftest.err; then |
---|
6693 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6694 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6695 | else |
---|
6696 | ac_cpp_err= |
---|
6697 | fi |
---|
6698 | else |
---|
6699 | ac_cpp_err=yes |
---|
6700 | fi |
---|
6701 | if test -z "$ac_cpp_err"; then |
---|
6702 | : |
---|
6703 | else |
---|
6704 | echo "$as_me: failed program was:" >&5 |
---|
6705 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6706 | |
---|
6707 | # Broken: fails on valid input. |
---|
6708 | continue |
---|
6709 | fi |
---|
6710 | rm -f conftest.err conftest.$ac_ext |
---|
6711 | |
---|
6712 | # OK, works on sane cases. Now check whether non-existent headers |
---|
6713 | # can be detected and how. |
---|
6714 | cat >conftest.$ac_ext <<_ACEOF |
---|
6715 | /* confdefs.h. */ |
---|
6716 | _ACEOF |
---|
6717 | cat confdefs.h >>conftest.$ac_ext |
---|
6718 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6719 | /* end confdefs.h. */ |
---|
6720 | #include <ac_nonexistent.h> |
---|
6721 | _ACEOF |
---|
6722 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6723 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6724 | ac_status=$? |
---|
6725 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6726 | rm -f conftest.er1 |
---|
6727 | cat conftest.err >&5 |
---|
6728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6729 | (exit $ac_status); } >/dev/null; then |
---|
6730 | if test -s conftest.err; then |
---|
6731 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6732 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6733 | else |
---|
6734 | ac_cpp_err= |
---|
6735 | fi |
---|
6736 | else |
---|
6737 | ac_cpp_err=yes |
---|
6738 | fi |
---|
6739 | if test -z "$ac_cpp_err"; then |
---|
6740 | # Broken: success on invalid input. |
---|
6741 | continue |
---|
6742 | else |
---|
6743 | echo "$as_me: failed program was:" >&5 |
---|
6744 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6745 | |
---|
6746 | # Passes both tests. |
---|
6747 | ac_preproc_ok=: |
---|
6748 | break |
---|
6749 | fi |
---|
6750 | rm -f conftest.err conftest.$ac_ext |
---|
6751 | |
---|
6752 | done |
---|
6753 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
6754 | rm -f conftest.err conftest.$ac_ext |
---|
6755 | if $ac_preproc_ok; then |
---|
6756 | : |
---|
6757 | else |
---|
6758 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
6759 | See \`config.log' for more details." >&5 |
---|
6760 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
6761 | See \`config.log' for more details." >&2;} |
---|
6762 | { (exit 1); exit 1; }; } |
---|
6763 | fi |
---|
6764 | |
---|
6765 | ac_ext=c |
---|
6766 | ac_cpp='$CPP $CPPFLAGS' |
---|
6767 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6768 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6769 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6770 | |
---|
6771 | |
---|
6772 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
6773 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
6774 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
6775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6776 | else |
---|
6777 | cat >conftest.$ac_ext <<_ACEOF |
---|
6778 | /* confdefs.h. */ |
---|
6779 | _ACEOF |
---|
6780 | cat confdefs.h >>conftest.$ac_ext |
---|
6781 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6782 | /* end confdefs.h. */ |
---|
6783 | #include <stdlib.h> |
---|
6784 | #include <stdarg.h> |
---|
6785 | #include <string.h> |
---|
6786 | #include <float.h> |
---|
6787 | |
---|
6788 | int |
---|
6789 | main () |
---|
6790 | { |
---|
6791 | |
---|
6792 | ; |
---|
6793 | return 0; |
---|
6794 | } |
---|
6795 | _ACEOF |
---|
6796 | rm -f conftest.$ac_objext |
---|
6797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6798 | (eval $ac_compile) 2>conftest.er1 |
---|
6799 | ac_status=$? |
---|
6800 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6801 | rm -f conftest.er1 |
---|
6802 | cat conftest.err >&5 |
---|
6803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6804 | (exit $ac_status); } && |
---|
6805 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6806 | || test ! -s conftest.err' |
---|
6807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6808 | (eval $ac_try) 2>&5 |
---|
6809 | ac_status=$? |
---|
6810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6811 | (exit $ac_status); }; } && |
---|
6812 | { ac_try='test -s conftest.$ac_objext' |
---|
6813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6814 | (eval $ac_try) 2>&5 |
---|
6815 | ac_status=$? |
---|
6816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6817 | (exit $ac_status); }; }; then |
---|
6818 | ac_cv_header_stdc=yes |
---|
6819 | else |
---|
6820 | echo "$as_me: failed program was:" >&5 |
---|
6821 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6822 | |
---|
6823 | ac_cv_header_stdc=no |
---|
6824 | fi |
---|
6825 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6826 | |
---|
6827 | if test $ac_cv_header_stdc = yes; then |
---|
6828 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
6829 | cat >conftest.$ac_ext <<_ACEOF |
---|
6830 | /* confdefs.h. */ |
---|
6831 | _ACEOF |
---|
6832 | cat confdefs.h >>conftest.$ac_ext |
---|
6833 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6834 | /* end confdefs.h. */ |
---|
6835 | #include <string.h> |
---|
6836 | |
---|
6837 | _ACEOF |
---|
6838 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
6839 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
6840 | : |
---|
6841 | else |
---|
6842 | ac_cv_header_stdc=no |
---|
6843 | fi |
---|
6844 | rm -f conftest* |
---|
6845 | |
---|
6846 | fi |
---|
6847 | |
---|
6848 | if test $ac_cv_header_stdc = yes; then |
---|
6849 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
6850 | cat >conftest.$ac_ext <<_ACEOF |
---|
6851 | /* confdefs.h. */ |
---|
6852 | _ACEOF |
---|
6853 | cat confdefs.h >>conftest.$ac_ext |
---|
6854 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6855 | /* end confdefs.h. */ |
---|
6856 | #include <stdlib.h> |
---|
6857 | |
---|
6858 | _ACEOF |
---|
6859 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
6860 | $EGREP "free" >/dev/null 2>&1; then |
---|
6861 | : |
---|
6862 | else |
---|
6863 | ac_cv_header_stdc=no |
---|
6864 | fi |
---|
6865 | rm -f conftest* |
---|
6866 | |
---|
6867 | fi |
---|
6868 | |
---|
6869 | if test $ac_cv_header_stdc = yes; then |
---|
6870 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
6871 | if test "$cross_compiling" = yes; then |
---|
6872 | : |
---|
6873 | else |
---|
6874 | cat >conftest.$ac_ext <<_ACEOF |
---|
6875 | /* confdefs.h. */ |
---|
6876 | _ACEOF |
---|
6877 | cat confdefs.h >>conftest.$ac_ext |
---|
6878 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6879 | /* end confdefs.h. */ |
---|
6880 | #include <ctype.h> |
---|
6881 | #if ((' ' & 0x0FF) == 0x020) |
---|
6882 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
6883 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
6884 | #else |
---|
6885 | # define ISLOWER(c) \ |
---|
6886 | (('a' <= (c) && (c) <= 'i') \ |
---|
6887 | || ('j' <= (c) && (c) <= 'r') \ |
---|
6888 | || ('s' <= (c) && (c) <= 'z')) |
---|
6889 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
6890 | #endif |
---|
6891 | |
---|
6892 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
6893 | int |
---|
6894 | main () |
---|
6895 | { |
---|
6896 | int i; |
---|
6897 | for (i = 0; i < 256; i++) |
---|
6898 | if (XOR (islower (i), ISLOWER (i)) |
---|
6899 | || toupper (i) != TOUPPER (i)) |
---|
6900 | exit(2); |
---|
6901 | exit (0); |
---|
6902 | } |
---|
6903 | _ACEOF |
---|
6904 | rm -f conftest$ac_exeext |
---|
6905 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6906 | (eval $ac_link) 2>&5 |
---|
6907 | ac_status=$? |
---|
6908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6909 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
6910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6911 | (eval $ac_try) 2>&5 |
---|
6912 | ac_status=$? |
---|
6913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6914 | (exit $ac_status); }; }; then |
---|
6915 | : |
---|
6916 | else |
---|
6917 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
6918 | echo "$as_me: failed program was:" >&5 |
---|
6919 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6920 | |
---|
6921 | ( exit $ac_status ) |
---|
6922 | ac_cv_header_stdc=no |
---|
6923 | fi |
---|
6924 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
6925 | fi |
---|
6926 | fi |
---|
6927 | fi |
---|
6928 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
6929 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
6930 | if test $ac_cv_header_stdc = yes; then |
---|
6931 | |
---|
6932 | cat >>confdefs.h <<\_ACEOF |
---|
6933 | #define STDC_HEADERS 1 |
---|
6934 | _ACEOF |
---|
6935 | |
---|
6936 | fi |
---|
6937 | |
---|
6938 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
6939 | |
---|
6940 | |
---|
6941 | |
---|
6942 | |
---|
6943 | |
---|
6944 | |
---|
6945 | |
---|
6946 | |
---|
6947 | |
---|
6948 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
6949 | inttypes.h stdint.h unistd.h |
---|
6950 | do |
---|
6951 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6952 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6953 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6954 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6956 | else |
---|
6957 | cat >conftest.$ac_ext <<_ACEOF |
---|
6958 | /* confdefs.h. */ |
---|
6959 | _ACEOF |
---|
6960 | cat confdefs.h >>conftest.$ac_ext |
---|
6961 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6962 | /* end confdefs.h. */ |
---|
6963 | $ac_includes_default |
---|
6964 | |
---|
6965 | #include <$ac_header> |
---|
6966 | _ACEOF |
---|
6967 | rm -f conftest.$ac_objext |
---|
6968 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6969 | (eval $ac_compile) 2>conftest.er1 |
---|
6970 | ac_status=$? |
---|
6971 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6972 | rm -f conftest.er1 |
---|
6973 | cat conftest.err >&5 |
---|
6974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6975 | (exit $ac_status); } && |
---|
6976 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6977 | || test ! -s conftest.err' |
---|
6978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6979 | (eval $ac_try) 2>&5 |
---|
6980 | ac_status=$? |
---|
6981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6982 | (exit $ac_status); }; } && |
---|
6983 | { ac_try='test -s conftest.$ac_objext' |
---|
6984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6985 | (eval $ac_try) 2>&5 |
---|
6986 | ac_status=$? |
---|
6987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6988 | (exit $ac_status); }; }; then |
---|
6989 | eval "$as_ac_Header=yes" |
---|
6990 | else |
---|
6991 | echo "$as_me: failed program was:" >&5 |
---|
6992 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6993 | |
---|
6994 | eval "$as_ac_Header=no" |
---|
6995 | fi |
---|
6996 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6997 | fi |
---|
6998 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6999 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7000 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7001 | cat >>confdefs.h <<_ACEOF |
---|
7002 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7003 | _ACEOF |
---|
7004 | |
---|
7005 | fi |
---|
7006 | |
---|
7007 | done |
---|
7008 | |
---|
7009 | |
---|
7010 | |
---|
7011 | for ac_header in dlfcn.h |
---|
7012 | do |
---|
7013 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7014 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7015 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7016 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7017 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7019 | fi |
---|
7020 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7021 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7022 | else |
---|
7023 | # Is the header compilable? |
---|
7024 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7025 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7026 | cat >conftest.$ac_ext <<_ACEOF |
---|
7027 | /* confdefs.h. */ |
---|
7028 | _ACEOF |
---|
7029 | cat confdefs.h >>conftest.$ac_ext |
---|
7030 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7031 | /* end confdefs.h. */ |
---|
7032 | $ac_includes_default |
---|
7033 | #include <$ac_header> |
---|
7034 | _ACEOF |
---|
7035 | rm -f conftest.$ac_objext |
---|
7036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7037 | (eval $ac_compile) 2>conftest.er1 |
---|
7038 | ac_status=$? |
---|
7039 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7040 | rm -f conftest.er1 |
---|
7041 | cat conftest.err >&5 |
---|
7042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7043 | (exit $ac_status); } && |
---|
7044 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7045 | || test ! -s conftest.err' |
---|
7046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7047 | (eval $ac_try) 2>&5 |
---|
7048 | ac_status=$? |
---|
7049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7050 | (exit $ac_status); }; } && |
---|
7051 | { ac_try='test -s conftest.$ac_objext' |
---|
7052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7053 | (eval $ac_try) 2>&5 |
---|
7054 | ac_status=$? |
---|
7055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7056 | (exit $ac_status); }; }; then |
---|
7057 | ac_header_compiler=yes |
---|
7058 | else |
---|
7059 | echo "$as_me: failed program was:" >&5 |
---|
7060 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7061 | |
---|
7062 | ac_header_compiler=no |
---|
7063 | fi |
---|
7064 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7065 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7066 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7067 | |
---|
7068 | # Is the header present? |
---|
7069 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7070 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7071 | cat >conftest.$ac_ext <<_ACEOF |
---|
7072 | /* confdefs.h. */ |
---|
7073 | _ACEOF |
---|
7074 | cat confdefs.h >>conftest.$ac_ext |
---|
7075 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7076 | /* end confdefs.h. */ |
---|
7077 | #include <$ac_header> |
---|
7078 | _ACEOF |
---|
7079 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7080 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7081 | ac_status=$? |
---|
7082 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7083 | rm -f conftest.er1 |
---|
7084 | cat conftest.err >&5 |
---|
7085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7086 | (exit $ac_status); } >/dev/null; then |
---|
7087 | if test -s conftest.err; then |
---|
7088 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7089 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7090 | else |
---|
7091 | ac_cpp_err= |
---|
7092 | fi |
---|
7093 | else |
---|
7094 | ac_cpp_err=yes |
---|
7095 | fi |
---|
7096 | if test -z "$ac_cpp_err"; then |
---|
7097 | ac_header_preproc=yes |
---|
7098 | else |
---|
7099 | echo "$as_me: failed program was:" >&5 |
---|
7100 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7101 | |
---|
7102 | ac_header_preproc=no |
---|
7103 | fi |
---|
7104 | rm -f conftest.err conftest.$ac_ext |
---|
7105 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7106 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7107 | |
---|
7108 | # So? What about this header? |
---|
7109 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7110 | yes:no: ) |
---|
7111 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7112 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7113 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7114 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7115 | ac_header_preproc=yes |
---|
7116 | ;; |
---|
7117 | no:yes:* ) |
---|
7118 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7119 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7120 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7121 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7122 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7123 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7124 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7125 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7126 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7127 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7128 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7129 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7130 | ( |
---|
7131 | cat <<\_ASBOX |
---|
7132 | ## ----------------------------------------- ## |
---|
7133 | ## Report this to coin-cbc@lists.coin-or.org ## |
---|
7134 | ## ----------------------------------------- ## |
---|
7135 | _ASBOX |
---|
7136 | ) | |
---|
7137 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7138 | ;; |
---|
7139 | esac |
---|
7140 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7141 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7142 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7144 | else |
---|
7145 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7146 | fi |
---|
7147 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7148 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7149 | |
---|
7150 | fi |
---|
7151 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7152 | cat >>confdefs.h <<_ACEOF |
---|
7153 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7154 | _ACEOF |
---|
7155 | |
---|
7156 | fi |
---|
7157 | |
---|
7158 | done |
---|
7159 | |
---|
7160 | |
---|
7161 | |
---|
7162 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
---|
7163 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
---|
7164 | (test "X$CXX" != "Xg++"))) ; then |
---|
7165 | ac_ext=cc |
---|
7166 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
7167 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7168 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7169 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
7170 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
---|
7171 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
---|
7172 | if test -z "$CXXCPP"; then |
---|
7173 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
---|
7174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7175 | else |
---|
7176 | # Double quotes because CXXCPP needs to be expanded |
---|
7177 | for CXXCPP in "$CXX -E" "/lib/cpp" |
---|
7178 | do |
---|
7179 | ac_preproc_ok=false |
---|
7180 | for ac_cxx_preproc_warn_flag in '' yes |
---|
7181 | do |
---|
7182 | # Use a header file that comes with gcc, so configuring glibc |
---|
7183 | # with a fresh cross-compiler works. |
---|
7184 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
7185 | # <limits.h> exists even on freestanding compilers. |
---|
7186 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
7187 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
7188 | cat >conftest.$ac_ext <<_ACEOF |
---|
7189 | /* confdefs.h. */ |
---|
7190 | _ACEOF |
---|
7191 | cat confdefs.h >>conftest.$ac_ext |
---|
7192 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7193 | /* end confdefs.h. */ |
---|
7194 | #ifdef __STDC__ |
---|
7195 | # include <limits.h> |
---|
7196 | #else |
---|
7197 | # include <assert.h> |
---|
7198 | #endif |
---|
7199 | Syntax error |
---|
7200 | _ACEOF |
---|
7201 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7202 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7203 | ac_status=$? |
---|
7204 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7205 | rm -f conftest.er1 |
---|
7206 | cat conftest.err >&5 |
---|
7207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7208 | (exit $ac_status); } >/dev/null; then |
---|
7209 | if test -s conftest.err; then |
---|
7210 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
7211 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
7212 | else |
---|
7213 | ac_cpp_err= |
---|
7214 | fi |
---|
7215 | else |
---|
7216 | ac_cpp_err=yes |
---|
7217 | fi |
---|
7218 | if test -z "$ac_cpp_err"; then |
---|
7219 | : |
---|
7220 | else |
---|
7221 | echo "$as_me: failed program was:" >&5 |
---|
7222 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7223 | |
---|
7224 | # Broken: fails on valid input. |
---|
7225 | continue |
---|
7226 | fi |
---|
7227 | rm -f conftest.err conftest.$ac_ext |
---|
7228 | |
---|
7229 | # OK, works on sane cases. Now check whether non-existent headers |
---|
7230 | # can be detected and how. |
---|
7231 | cat >conftest.$ac_ext <<_ACEOF |
---|
7232 | /* confdefs.h. */ |
---|
7233 | _ACEOF |
---|
7234 | cat confdefs.h >>conftest.$ac_ext |
---|
7235 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7236 | /* end confdefs.h. */ |
---|
7237 | #include <ac_nonexistent.h> |
---|
7238 | _ACEOF |
---|
7239 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7240 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7241 | ac_status=$? |
---|
7242 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7243 | rm -f conftest.er1 |
---|
7244 | cat conftest.err >&5 |
---|
7245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7246 | (exit $ac_status); } >/dev/null; then |
---|
7247 | if test -s conftest.err; then |
---|
7248 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
7249 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
7250 | else |
---|
7251 | ac_cpp_err= |
---|
7252 | fi |
---|
7253 | else |
---|
7254 | ac_cpp_err=yes |
---|
7255 | fi |
---|
7256 | if test -z "$ac_cpp_err"; then |
---|
7257 | # Broken: success on invalid input. |
---|
7258 | continue |
---|
7259 | else |
---|
7260 | echo "$as_me: failed program was:" >&5 |
---|
7261 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7262 | |
---|
7263 | # Passes both tests. |
---|
7264 | ac_preproc_ok=: |
---|
7265 | break |
---|
7266 | fi |
---|
7267 | rm -f conftest.err conftest.$ac_ext |
---|
7268 | |
---|
7269 | done |
---|
7270 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
7271 | rm -f conftest.err conftest.$ac_ext |
---|
7272 | if $ac_preproc_ok; then |
---|
7273 | break |
---|
7274 | fi |
---|
7275 | |
---|
7276 | done |
---|
7277 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
7278 | |
---|
7279 | fi |
---|
7280 | CXXCPP=$ac_cv_prog_CXXCPP |
---|
7281 | else |
---|
7282 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
7283 | fi |
---|
7284 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
---|
7285 | echo "${ECHO_T}$CXXCPP" >&6 |
---|
7286 | ac_preproc_ok=false |
---|
7287 | for ac_cxx_preproc_warn_flag in '' yes |
---|
7288 | do |
---|
7289 | # Use a header file that comes with gcc, so configuring glibc |
---|
7290 | # with a fresh cross-compiler works. |
---|
7291 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
7292 | # <limits.h> exists even on freestanding compilers. |
---|
7293 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
7294 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
7295 | cat >conftest.$ac_ext <<_ACEOF |
---|
7296 | /* confdefs.h. */ |
---|
7297 | _ACEOF |
---|
7298 | cat confdefs.h >>conftest.$ac_ext |
---|
7299 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7300 | /* end confdefs.h. */ |
---|
7301 | #ifdef __STDC__ |
---|
7302 | # include <limits.h> |
---|
7303 | #else |
---|
7304 | # include <assert.h> |
---|
7305 | #endif |
---|
7306 | Syntax error |
---|
7307 | _ACEOF |
---|
7308 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7309 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7310 | ac_status=$? |
---|
7311 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7312 | rm -f conftest.er1 |
---|
7313 | cat conftest.err >&5 |
---|
7314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7315 | (exit $ac_status); } >/dev/null; then |
---|
7316 | if test -s conftest.err; then |
---|
7317 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
7318 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
7319 | else |
---|
7320 | ac_cpp_err= |
---|
7321 | fi |
---|
7322 | else |
---|
7323 | ac_cpp_err=yes |
---|
7324 | fi |
---|
7325 | if test -z "$ac_cpp_err"; then |
---|
7326 | : |
---|
7327 | else |
---|
7328 | echo "$as_me: failed program was:" >&5 |
---|
7329 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7330 | |
---|
7331 | # Broken: fails on valid input. |
---|
7332 | continue |
---|
7333 | fi |
---|
7334 | rm -f conftest.err conftest.$ac_ext |
---|
7335 | |
---|
7336 | # OK, works on sane cases. Now check whether non-existent headers |
---|
7337 | # can be detected and how. |
---|
7338 | cat >conftest.$ac_ext <<_ACEOF |
---|
7339 | /* confdefs.h. */ |
---|
7340 | _ACEOF |
---|
7341 | cat confdefs.h >>conftest.$ac_ext |
---|
7342 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7343 | /* end confdefs.h. */ |
---|
7344 | #include <ac_nonexistent.h> |
---|
7345 | _ACEOF |
---|
7346 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7347 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7348 | ac_status=$? |
---|
7349 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7350 | rm -f conftest.er1 |
---|
7351 | cat conftest.err >&5 |
---|
7352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7353 | (exit $ac_status); } >/dev/null; then |
---|
7354 | if test -s conftest.err; then |
---|
7355 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
---|
7356 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
---|
7357 | else |
---|
7358 | ac_cpp_err= |
---|
7359 | fi |
---|
7360 | else |
---|
7361 | ac_cpp_err=yes |
---|
7362 | fi |
---|
7363 | if test -z "$ac_cpp_err"; then |
---|
7364 | # Broken: success on invalid input. |
---|
7365 | continue |
---|
7366 | else |
---|
7367 | echo "$as_me: failed program was:" >&5 |
---|
7368 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7369 | |
---|
7370 | # Passes both tests. |
---|
7371 | ac_preproc_ok=: |
---|
7372 | break |
---|
7373 | fi |
---|
7374 | rm -f conftest.err conftest.$ac_ext |
---|
7375 | |
---|
7376 | done |
---|
7377 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
7378 | rm -f conftest.err conftest.$ac_ext |
---|
7379 | if $ac_preproc_ok; then |
---|
7380 | : |
---|
7381 | else |
---|
7382 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
7383 | See \`config.log' for more details." >&5 |
---|
7384 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
7385 | See \`config.log' for more details." >&2;} |
---|
7386 | { (exit 1); exit 1; }; } |
---|
7387 | fi |
---|
7388 | |
---|
7389 | ac_ext=cc |
---|
7390 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
7391 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7392 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7393 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
7394 | |
---|
7395 | fi |
---|
7396 | |
---|
7397 | |
---|
7398 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
---|
7399 | |
---|
7400 | # find the maximum length of command line arguments |
---|
7401 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
---|
7402 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
---|
7403 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
---|
7404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7405 | else |
---|
7406 | i=0 |
---|
7407 | teststring="ABCD" |
---|
7408 | |
---|
7409 | case $build_os in |
---|
7410 | msdosdjgpp*) |
---|
7411 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
---|
7412 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
---|
7413 | # during glob expansion). Even if it were fixed, the result of this |
---|
7414 | # check would be larger than it should be. |
---|
7415 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
---|
7416 | ;; |
---|
7417 | |
---|
7418 | gnu*) |
---|
7419 | # Under GNU Hurd, this test is not required because there is |
---|
7420 | # no limit to the length of command line arguments. |
---|
7421 | # Libtool will interpret -1 as no limit whatsoever |
---|
7422 | lt_cv_sys_max_cmd_len=-1; |
---|
7423 | ;; |
---|
7424 | |
---|
7425 | cygwin* | mingw*) |
---|
7426 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
---|
7427 | # about 5 minutes as the teststring grows exponentially. |
---|
7428 | # Worse, since 9x/ME are not pre-emptively multitasking, |
---|
7429 | # you end up with a "frozen" computer, even though with patience |
---|
7430 | # the test eventually succeeds (with a max line length of 256k). |
---|
7431 | # Instead, let's just punt: use the minimum linelength reported by |
---|
7432 | # all of the supported platforms: 8192 (on NT/2K/XP). |
---|
7433 | lt_cv_sys_max_cmd_len=8192; |
---|
7434 | ;; |
---|
7435 | |
---|
7436 | amigaos*) |
---|
7437 | # On AmigaOS with pdksh, this test takes hours, literally. |
---|
7438 | # So we just punt and use a minimum line length of 8192. |
---|
7439 | lt_cv_sys_max_cmd_len=8192; |
---|
7440 | ;; |
---|
7441 | |
---|
7442 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
---|
7443 | # This has been around since 386BSD, at least. Likely further. |
---|
7444 | if test -x /sbin/sysctl; then |
---|
7445 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
---|
7446 | elif test -x /usr/sbin/sysctl; then |
---|
7447 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
---|
7448 | else |
---|
7449 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
---|
7450 | fi |
---|
7451 | # And add a safety zone |
---|
7452 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
---|
7453 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
---|
7454 | ;; |
---|
7455 | |
---|
7456 | interix*) |
---|
7457 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
---|
7458 | lt_cv_sys_max_cmd_len=196608 |
---|
7459 | ;; |
---|
7460 | |
---|
7461 | osf*) |
---|
7462 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
---|
7463 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
---|
7464 | # nice to cause kernel panics so lets avoid the loop below. |
---|
7465 | # First set a reasonable default. |
---|
7466 | lt_cv_sys_max_cmd_len=16384 |
---|
7467 | # |
---|
7468 | if test -x /sbin/sysconfig; then |
---|
7469 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
---|
7470 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
---|
7471 | esac |
---|
7472 | fi |
---|
7473 | ;; |
---|
7474 | sco3.2v5*) |
---|
7475 | lt_cv_sys_max_cmd_len=102400 |
---|
7476 | ;; |
---|
7477 | sysv5* | sco5v6* | sysv4.2uw2*) |
---|
7478 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
---|
7479 | if test -n "$kargmax"; then |
---|
7480 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
---|
7481 | else |
---|
7482 | lt_cv_sys_max_cmd_len=32768 |
---|
7483 | fi |
---|
7484 | ;; |
---|
7485 | *) |
---|
7486 | # If test is not a shell built-in, we'll probably end up computing a |
---|
7487 | # maximum length that is only half of the actual maximum length, but |
---|
7488 | # we can't tell. |
---|
7489 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
---|
7490 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
---|
7491 | = "XX$teststring") >/dev/null 2>&1 && |
---|
7492 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
---|
7493 | lt_cv_sys_max_cmd_len=$new_result && |
---|
7494 | test $i != 17 # 1/2 MB should be enough |
---|
7495 | do |
---|
7496 | i=`expr $i + 1` |
---|
7497 | teststring=$teststring$teststring |
---|
7498 | done |
---|
7499 | teststring= |
---|
7500 | # Add a significant safety factor because C++ compilers can tack on massive |
---|
7501 | # amounts of additional arguments before passing them to the linker. |
---|
7502 | # It appears as though 1/2 is a usable value. |
---|
7503 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
---|
7504 | ;; |
---|
7505 | esac |
---|
7506 | |
---|
7507 | fi |
---|
7508 | |
---|
7509 | if test -n $lt_cv_sys_max_cmd_len ; then |
---|
7510 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
---|
7511 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
---|
7512 | else |
---|
7513 | echo "$as_me:$LINENO: result: none" >&5 |
---|
7514 | echo "${ECHO_T}none" >&6 |
---|
7515 | fi |
---|
7516 | |
---|
7517 | |
---|
7518 | |
---|
7519 | |
---|
7520 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
---|
7521 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
---|
7522 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
---|
7523 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
---|
7524 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7525 | else |
---|
7526 | |
---|
7527 | # These are sane defaults that work on at least a few old systems. |
---|
7528 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
---|
7529 | |
---|
7530 | # Character class describing NM global symbol codes. |
---|
7531 | symcode='[BCDEGRST]' |
---|
7532 | |
---|
7533 | # Regexp to match symbols that can be accessed directly from C. |
---|
7534 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
---|
7535 | |
---|
7536 | # Transform an extracted symbol line into a proper C declaration |
---|
7537 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
---|
7538 | |
---|
7539 | # Transform an extracted symbol line into symbol name and symbol address |
---|
7540 | 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'" |
---|
7541 | |
---|
7542 | # Define system-specific variables. |
---|
7543 | case $host_os in |
---|
7544 | aix*) |
---|
7545 | symcode='[BCDT]' |
---|
7546 | ;; |
---|
7547 | cygwin* | mingw* | pw32*) |
---|
7548 | symcode='[ABCDGISTW]' |
---|
7549 | ;; |
---|
7550 | hpux*) # Its linker distinguishes data from code symbols |
---|
7551 | if test "$host_cpu" = ia64; then |
---|
7552 | symcode='[ABCDEGRST]' |
---|
7553 | fi |
---|
7554 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
---|
7555 | 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'" |
---|
7556 | ;; |
---|
7557 | linux*) |
---|
7558 | if test "$host_cpu" = ia64; then |
---|
7559 | symcode='[ABCDGIRSTW]' |
---|
7560 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
---|
7561 | 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'" |
---|
7562 | fi |
---|
7563 | ;; |
---|
7564 | irix* | nonstopux*) |
---|
7565 | symcode='[BCDEGRST]' |
---|
7566 | ;; |
---|
7567 | osf*) |
---|
7568 | symcode='[BCDEGQRST]' |
---|
7569 | ;; |
---|
7570 | solaris*) |
---|
7571 | symcode='[BDRT]' |
---|
7572 | ;; |
---|
7573 | sco3.2v5*) |
---|
7574 | symcode='[DT]' |
---|
7575 | ;; |
---|
7576 | sysv4.2uw2*) |
---|
7577 | symcode='[DT]' |
---|
7578 | ;; |
---|
7579 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
---|
7580 | symcode='[ABDT]' |
---|
7581 | ;; |
---|
7582 | sysv4) |
---|
7583 | symcode='[DFNSTU]' |
---|
7584 | ;; |
---|
7585 | esac |
---|
7586 | |
---|
7587 | # Handle CRLF in mingw tool chain |
---|
7588 | opt_cr= |
---|
7589 | case $build_os in |
---|
7590 | mingw*) |
---|
7591 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
---|
7592 | ;; |
---|
7593 | esac |
---|
7594 | |
---|
7595 | # If we're using GNU nm, then use its standard symbol codes. |
---|
7596 | case `$NM -V 2>&1` in |
---|
7597 | *GNU* | *'with BFD'*) |
---|
7598 | symcode='[ABCDGIRSTW]' ;; |
---|
7599 | esac |
---|
7600 | |
---|
7601 | # Try without a prefix undercore, then with it. |
---|
7602 | for ac_symprfx in "" "_"; do |
---|
7603 | |
---|
7604 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
---|
7605 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
---|
7606 | |
---|
7607 | # Write the raw and C identifiers. |
---|
7608 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
---|
7609 | |
---|
7610 | # Check to see that the pipe works correctly. |
---|
7611 | pipe_works=no |
---|
7612 | |
---|
7613 | rm -f conftest* |
---|
7614 | cat > conftest.$ac_ext <<EOF |
---|
7615 | #ifdef __cplusplus |
---|
7616 | extern "C" { |
---|
7617 | #endif |
---|
7618 | char nm_test_var; |
---|
7619 | void nm_test_func(){} |
---|
7620 | #ifdef __cplusplus |
---|
7621 | } |
---|
7622 | #endif |
---|
7623 | int main(){nm_test_var='a';nm_test_func();return(0);} |
---|
7624 | EOF |
---|
7625 | |
---|
7626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7627 | (eval $ac_compile) 2>&5 |
---|
7628 | ac_status=$? |
---|
7629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7630 | (exit $ac_status); }; then |
---|
7631 | # Now try to grab the symbols. |
---|
7632 | nlist=conftest.nm |
---|
7633 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
---|
7634 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
---|
7635 | ac_status=$? |
---|
7636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7637 | (exit $ac_status); } && test -s "$nlist"; then |
---|
7638 | # Try sorting and uniquifying the output. |
---|
7639 | if sort "$nlist" | uniq > "$nlist"T; then |
---|
7640 | mv -f "$nlist"T "$nlist" |
---|
7641 | else |
---|
7642 | rm -f "$nlist"T |
---|
7643 | fi |
---|
7644 | |
---|
7645 | # Make sure that we snagged all the symbols we need. |
---|
7646 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
---|
7647 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
---|
7648 | cat <<EOF > conftest.$ac_ext |
---|
7649 | #ifdef __cplusplus |
---|
7650 | extern "C" { |
---|
7651 | #endif |
---|
7652 | |
---|
7653 | EOF |
---|
7654 | # Now generate the symbol file. |
---|
7655 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
---|
7656 | |
---|
7657 | cat <<EOF >> conftest.$ac_ext |
---|
7658 | #if defined (__STDC__) && __STDC__ |
---|
7659 | # define lt_ptr_t void * |
---|
7660 | #else |
---|
7661 | # define lt_ptr_t char * |
---|
7662 | # define const |
---|
7663 | #endif |
---|
7664 | |
---|
7665 | /* The mapping between symbol names and symbols. */ |
---|
7666 | const struct { |
---|
7667 | const char *name; |
---|
7668 | lt_ptr_t address; |
---|
7669 | } |
---|
7670 | lt_preloaded_symbols[] = |
---|
7671 | { |
---|
7672 | EOF |
---|
7673 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
---|
7674 | cat <<\EOF >> conftest.$ac_ext |
---|
7675 | {0, (lt_ptr_t) 0} |
---|
7676 | }; |
---|
7677 | |
---|
7678 | #ifdef __cplusplus |
---|
7679 | } |
---|
7680 | #endif |
---|
7681 | EOF |
---|
7682 | # Now try linking the two files. |
---|
7683 | mv conftest.$ac_objext conftstm.$ac_objext |
---|
7684 | lt_save_LIBS="$LIBS" |
---|
7685 | lt_save_CFLAGS="$CFLAGS" |
---|
7686 | LIBS="conftstm.$ac_objext" |
---|
7687 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
---|
7688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7689 | (eval $ac_link) 2>&5 |
---|
7690 | ac_status=$? |
---|
7691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7692 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
---|
7693 | pipe_works=yes |
---|
7694 | fi |
---|
7695 | LIBS="$lt_save_LIBS" |
---|
7696 | CFLAGS="$lt_save_CFLAGS" |
---|
7697 | else |
---|
7698 | echo "cannot find nm_test_func in $nlist" >&5 |
---|
7699 | fi |
---|
7700 | else |
---|
7701 | echo "cannot find nm_test_var in $nlist" >&5 |
---|
7702 | fi |
---|
7703 | else |
---|
7704 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
---|
7705 | fi |
---|
7706 | else |
---|
7707 | echo "$progname: failed program was:" >&5 |
---|
7708 | cat conftest.$ac_ext >&5 |
---|
7709 | fi |
---|
7710 | rm -f conftest* conftst* |
---|
7711 | |
---|
7712 | # Do not use the global_symbol_pipe unless it works. |
---|
7713 | if test "$pipe_works" = yes; then |
---|
7714 | break |
---|
7715 | else |
---|
7716 | lt_cv_sys_global_symbol_pipe= |
---|
7717 | fi |
---|
7718 | done |
---|
7719 | |
---|
7720 | fi |
---|
7721 | |
---|
7722 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
---|
7723 | lt_cv_sys_global_symbol_to_cdecl= |
---|
7724 | fi |
---|
7725 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
---|
7726 | echo "$as_me:$LINENO: result: failed" >&5 |
---|
7727 | echo "${ECHO_T}failed" >&6 |
---|
7728 | else |
---|
7729 | echo "$as_me:$LINENO: result: ok" >&5 |
---|
7730 | echo "${ECHO_T}ok" >&6 |
---|
7731 | fi |
---|
7732 | |
---|
7733 | echo "$as_me:$LINENO: checking for objdir" >&5 |
---|
7734 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
---|
7735 | if test "${lt_cv_objdir+set}" = set; then |
---|
7736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7737 | else |
---|
7738 | rm -f .libs 2>/dev/null |
---|
7739 | mkdir .libs 2>/dev/null |
---|
7740 | if test -d .libs; then |
---|
7741 | lt_cv_objdir=.libs |
---|
7742 | else |
---|
7743 | # MS-DOS does not allow filenames that begin with a dot. |
---|
7744 | lt_cv_objdir=_libs |
---|
7745 | fi |
---|
7746 | rmdir .libs 2>/dev/null |
---|
7747 | fi |
---|
7748 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
---|
7749 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
---|
7750 | objdir=$lt_cv_objdir |
---|
7751 | |
---|
7752 | |
---|
7753 | |
---|
7754 | |
---|
7755 | |
---|
7756 | case $host_os in |
---|
7757 | aix3*) |
---|
7758 | # AIX sometimes has problems with the GCC collect2 program. For some |
---|
7759 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
---|
7760 | # vanish in a puff of smoke. |
---|
7761 | if test "X${COLLECT_NAMES+set}" != Xset; then |
---|
7762 | COLLECT_NAMES= |
---|
7763 | export COLLECT_NAMES |
---|
7764 | fi |
---|
7765 | ;; |
---|
7766 | esac |
---|
7767 | |
---|
7768 | # Sed substitution that helps us do robust quoting. It backslashifies |
---|
7769 | # metacharacters that are still active within double-quoted strings. |
---|
7770 | Xsed='sed -e 1s/^X//' |
---|
7771 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
---|
7772 | |
---|
7773 | # Same as above, but do not quote variable references. |
---|
7774 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
---|
7775 | |
---|
7776 | # Sed substitution to delay expansion of an escaped shell variable in a |
---|
7777 | # double_quote_subst'ed string. |
---|
7778 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
---|
7779 | |
---|
7780 | # Sed substitution to avoid accidental globbing in evaled expressions |
---|
7781 | no_glob_subst='s/\*/\\\*/g' |
---|
7782 | |
---|
7783 | # Constants: |
---|
7784 | rm="rm -f" |
---|
7785 | |
---|
7786 | # Global variables: |
---|
7787 | default_ofile=libtool |
---|
7788 | can_build_shared=yes |
---|
7789 | |
---|
7790 | # All known linkers require a `.a' archive for static linking (except MSVC, |
---|
7791 | # which needs '.lib'). |
---|
7792 | libext=a |
---|
7793 | ltmain="$ac_aux_dir/ltmain.sh" |
---|
7794 | ofile="$default_ofile" |
---|
7795 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
---|
7796 | |
---|
7797 | if test -n "$ac_tool_prefix"; then |
---|
7798 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
---|
7799 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
---|
7800 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7801 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7802 | if test "${ac_cv_prog_AR+set}" = set; then |
---|
7803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7804 | else |
---|
7805 | if test -n "$AR"; then |
---|
7806 | ac_cv_prog_AR="$AR" # Let the user override the test. |
---|
7807 | else |
---|
7808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7809 | for as_dir in $PATH |
---|
7810 | do |
---|
7811 | IFS=$as_save_IFS |
---|
7812 | test -z "$as_dir" && as_dir=. |
---|
7813 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7814 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7815 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
---|
7816 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7817 | break 2 |
---|
7818 | fi |
---|
7819 | done |
---|
7820 | done |
---|
7821 | |
---|
7822 | fi |
---|
7823 | fi |
---|
7824 | AR=$ac_cv_prog_AR |
---|
7825 | if test -n "$AR"; then |
---|
7826 | echo "$as_me:$LINENO: result: $AR" >&5 |
---|
7827 | echo "${ECHO_T}$AR" >&6 |
---|
7828 | else |
---|
7829 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7830 | echo "${ECHO_T}no" >&6 |
---|
7831 | fi |
---|
7832 | |
---|
7833 | fi |
---|
7834 | if test -z "$ac_cv_prog_AR"; then |
---|
7835 | ac_ct_AR=$AR |
---|
7836 | # Extract the first word of "ar", so it can be a program name with args. |
---|
7837 | set dummy ar; ac_word=$2 |
---|
7838 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7839 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7840 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
---|
7841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7842 | else |
---|
7843 | if test -n "$ac_ct_AR"; then |
---|
7844 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
---|
7845 | else |
---|
7846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7847 | for as_dir in $PATH |
---|
7848 | do |
---|
7849 | IFS=$as_save_IFS |
---|
7850 | test -z "$as_dir" && as_dir=. |
---|
7851 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7852 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7853 | ac_cv_prog_ac_ct_AR="ar" |
---|
7854 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7855 | break 2 |
---|
7856 | fi |
---|
7857 | done |
---|
7858 | done |
---|
7859 | |
---|
7860 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
---|
7861 | fi |
---|
7862 | fi |
---|
7863 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
---|
7864 | if test -n "$ac_ct_AR"; then |
---|
7865 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
---|
7866 | echo "${ECHO_T}$ac_ct_AR" >&6 |
---|
7867 | else |
---|
7868 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7869 | echo "${ECHO_T}no" >&6 |
---|
7870 | fi |
---|
7871 | |
---|
7872 | AR=$ac_ct_AR |
---|
7873 | else |
---|
7874 | AR="$ac_cv_prog_AR" |
---|
7875 | fi |
---|
7876 | |
---|
7877 | if test -n "$ac_tool_prefix"; then |
---|
7878 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
7879 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
7880 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7881 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7882 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
7883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7884 | else |
---|
7885 | if test -n "$RANLIB"; then |
---|
7886 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
7887 | else |
---|
7888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7889 | for as_dir in $PATH |
---|
7890 | do |
---|
7891 | IFS=$as_save_IFS |
---|
7892 | test -z "$as_dir" && as_dir=. |
---|
7893 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7894 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7895 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
7896 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7897 | break 2 |
---|
7898 | fi |
---|
7899 | done |
---|
7900 | done |
---|
7901 | |
---|
7902 | fi |
---|
7903 | fi |
---|
7904 | RANLIB=$ac_cv_prog_RANLIB |
---|
7905 | if test -n "$RANLIB"; then |
---|
7906 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
7907 | echo "${ECHO_T}$RANLIB" >&6 |
---|
7908 | else |
---|
7909 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7910 | echo "${ECHO_T}no" >&6 |
---|
7911 | fi |
---|
7912 | |
---|
7913 | fi |
---|
7914 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
7915 | ac_ct_RANLIB=$RANLIB |
---|
7916 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
7917 | set dummy ranlib; ac_word=$2 |
---|
7918 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7919 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7920 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
7921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7922 | else |
---|
7923 | if test -n "$ac_ct_RANLIB"; then |
---|
7924 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
7925 | else |
---|
7926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7927 | for as_dir in $PATH |
---|
7928 | do |
---|
7929 | IFS=$as_save_IFS |
---|
7930 | test -z "$as_dir" && as_dir=. |
---|
7931 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7932 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7933 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
7934 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7935 | break 2 |
---|
7936 | fi |
---|
7937 | done |
---|
7938 | done |
---|
7939 | |
---|
7940 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
---|
7941 | fi |
---|
7942 | fi |
---|
7943 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
7944 | if test -n "$ac_ct_RANLIB"; then |
---|
7945 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
7946 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
---|
7947 | else |
---|
7948 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7949 | echo "${ECHO_T}no" >&6 |
---|
7950 | fi |
---|
7951 | |
---|
7952 | RANLIB=$ac_ct_RANLIB |
---|
7953 | else |
---|
7954 | RANLIB="$ac_cv_prog_RANLIB" |
---|
7955 | fi |
---|
7956 | |
---|
7957 | if test -n "$ac_tool_prefix"; then |
---|
7958 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
7959 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
7960 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7961 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
7962 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
7963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7964 | else |
---|
7965 | if test -n "$STRIP"; then |
---|
7966 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
7967 | else |
---|
7968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7969 | for as_dir in $PATH |
---|
7970 | do |
---|
7971 | IFS=$as_save_IFS |
---|
7972 | test -z "$as_dir" && as_dir=. |
---|
7973 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7974 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
7975 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
7976 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7977 | break 2 |
---|
7978 | fi |
---|
7979 | done |
---|
7980 | done |
---|
7981 | |
---|
7982 | fi |
---|
7983 | fi |
---|
7984 | STRIP=$ac_cv_prog_STRIP |
---|
7985 | if test -n "$STRIP"; then |
---|
7986 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
7987 | echo "${ECHO_T}$STRIP" >&6 |
---|
7988 | else |
---|
7989 | echo "$as_me:$LINENO: result: no" >&5 |
---|
7990 | echo "${ECHO_T}no" >&6 |
---|
7991 | fi |
---|
7992 | |
---|
7993 | fi |
---|
7994 | if test -z "$ac_cv_prog_STRIP"; then |
---|
7995 | ac_ct_STRIP=$STRIP |
---|
7996 | # Extract the first word of "strip", so it can be a program name with args. |
---|
7997 | set dummy strip; ac_word=$2 |
---|
7998 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7999 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
8000 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
8001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8002 | else |
---|
8003 | if test -n "$ac_ct_STRIP"; then |
---|
8004 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
8005 | else |
---|
8006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
8007 | for as_dir in $PATH |
---|
8008 | do |
---|
8009 | IFS=$as_save_IFS |
---|
8010 | test -z "$as_dir" && as_dir=. |
---|
8011 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
8012 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
8013 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
8014 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
8015 | break 2 |
---|
8016 | fi |
---|
8017 | done |
---|
8018 | done |
---|
8019 | |
---|
8020 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
8021 | fi |
---|
8022 | fi |
---|
8023 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
8024 | if test -n "$ac_ct_STRIP"; then |
---|
8025 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
8026 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
8027 | else |
---|
8028 | echo "$as_me:$LINENO: result: no" >&5 |
---|
8029 | echo "${ECHO_T}no" >&6 |
---|
8030 | fi |
---|
8031 | |
---|
8032 | STRIP=$ac_ct_STRIP |
---|
8033 | else |
---|
8034 | STRIP="$ac_cv_prog_STRIP" |
---|
8035 | fi |
---|
8036 | |
---|
8037 | |
---|
8038 | old_CC="$CC" |
---|
8039 | old_CFLAGS="$CFLAGS" |
---|
8040 | |
---|
8041 | # Set sane defaults for various variables |
---|
8042 | test -z "$AR" && AR=ar |
---|
8043 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
---|
8044 | test -z "$AS" && AS=as |
---|
8045 | test -z "$CC" && CC=cc |
---|
8046 | test -z "$LTCC" && LTCC=$CC |
---|
8047 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
---|
8048 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
---|
8049 | test -z "$LD" && LD=ld |
---|
8050 | test -z "$LN_S" && LN_S="ln -s" |
---|
8051 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
---|
8052 | test -z "$NM" && NM=nm |
---|
8053 | test -z "$SED" && SED=sed |
---|
8054 | test -z "$OBJDUMP" && OBJDUMP=objdump |
---|
8055 | test -z "$RANLIB" && RANLIB=: |
---|
8056 | test -z "$STRIP" && STRIP=: |
---|
8057 | test -z "$ac_objext" && ac_objext=o |
---|
8058 | |
---|
8059 | # Determine commands to create old-style static archives. |
---|
8060 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
---|
8061 | old_postinstall_cmds='chmod 644 $oldlib' |
---|
8062 | old_postuninstall_cmds= |
---|
8063 | |
---|
8064 | if test -n "$RANLIB"; then |
---|
8065 | case $host_os in |
---|
8066 | openbsd*) |
---|
8067 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
---|
8068 | ;; |
---|
8069 | *) |
---|
8070 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
---|
8071 | ;; |
---|
8072 | esac |
---|
8073 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
---|
8074 | fi |
---|
8075 | |
---|
8076 | for cc_temp in $compiler""; do |
---|
8077 | case $cc_temp in |
---|
8078 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
8079 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
8080 | \-*) ;; |
---|
8081 | *) break;; |
---|
8082 | esac |
---|
8083 | done |
---|
8084 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
8085 | |
---|
8086 | |
---|
8087 | # Only perform the check for file, if the check method requires it |
---|
8088 | case $deplibs_check_method in |
---|
8089 | file_magic*) |
---|
8090 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
---|
8091 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
---|
8092 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
---|
8093 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
---|
8094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8095 | else |
---|
8096 | case $MAGIC_CMD in |
---|
8097 | [\\/*] | ?:[\\/]*) |
---|
8098 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
8099 | ;; |
---|
8100 | *) |
---|
8101 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
---|
8102 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
8103 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
8104 | for ac_dir in $ac_dummy; do |
---|
8105 | IFS="$lt_save_ifs" |
---|
8106 | test -z "$ac_dir" && ac_dir=. |
---|
8107 | if test -f $ac_dir/${ac_tool_prefix}file; then |
---|
8108 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
---|
8109 | if test -n "$file_magic_test_file"; then |
---|
8110 | case $deplibs_check_method in |
---|
8111 | "file_magic "*) |
---|
8112 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
---|
8113 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
8114 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
8115 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
8116 | : |
---|
8117 | else |
---|
8118 | cat <<EOF 1>&2 |
---|
8119 | |
---|
8120 | *** Warning: the command libtool uses to detect shared libraries, |
---|
8121 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
8122 | *** The result is that libtool may fail to recognize shared libraries |
---|
8123 | *** as such. This will affect the creation of libtool libraries that |
---|
8124 | *** depend on shared libraries, but programs linked with such libtool |
---|
8125 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
8126 | *** may want to report the problem to your system manager and/or to |
---|
8127 | *** bug-libtool@gnu.org |
---|
8128 | |
---|
8129 | EOF |
---|
8130 | fi ;; |
---|
8131 | esac |
---|
8132 | fi |
---|
8133 | break |
---|
8134 | fi |
---|
8135 | done |
---|
8136 | IFS="$lt_save_ifs" |
---|
8137 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
---|
8138 | ;; |
---|
8139 | esac |
---|
8140 | fi |
---|
8141 | |
---|
8142 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
8143 | if test -n "$MAGIC_CMD"; then |
---|
8144 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
---|
8145 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
---|
8146 | else |
---|
8147 | echo "$as_me:$LINENO: result: no" >&5 |
---|
8148 | echo "${ECHO_T}no" >&6 |
---|
8149 | fi |
---|
8150 | |
---|
8151 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
---|
8152 | if test -n "$ac_tool_prefix"; then |
---|
8153 | echo "$as_me:$LINENO: checking for file" >&5 |
---|
8154 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
---|
8155 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
---|
8156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8157 | else |
---|
8158 | case $MAGIC_CMD in |
---|
8159 | [\\/*] | ?:[\\/]*) |
---|
8160 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
8161 | ;; |
---|
8162 | *) |
---|
8163 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
---|
8164 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
8165 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
8166 | for ac_dir in $ac_dummy; do |
---|
8167 | IFS="$lt_save_ifs" |
---|
8168 | test -z "$ac_dir" && ac_dir=. |
---|
8169 | if test -f $ac_dir/file; then |
---|
8170 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
---|
8171 | if test -n "$file_magic_test_file"; then |
---|
8172 | case $deplibs_check_method in |
---|
8173 | "file_magic "*) |
---|
8174 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
---|
8175 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
8176 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
8177 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
8178 | : |
---|
8179 | else |
---|
8180 | cat <<EOF 1>&2 |
---|
8181 | |
---|
8182 | *** Warning: the command libtool uses to detect shared libraries, |
---|
8183 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
8184 | *** The result is that libtool may fail to recognize shared libraries |
---|
8185 | *** as such. This will affect the creation of libtool libraries that |
---|
8186 | *** depend on shared libraries, but programs linked with such libtool |
---|
8187 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
8188 | *** may want to report the problem to your system manager and/or to |
---|
8189 | *** bug-libtool@gnu.org |
---|
8190 | |
---|
8191 | EOF |
---|
8192 | fi ;; |
---|
8193 | esac |
---|
8194 | fi |
---|
8195 | break |
---|
8196 | fi |
---|
8197 | done |
---|
8198 | IFS="$lt_save_ifs" |
---|
8199 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
---|
8200 | ;; |
---|
8201 | esac |
---|
8202 | fi |
---|
8203 | |
---|
8204 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
8205 | if test -n "$MAGIC_CMD"; then |
---|
8206 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
---|
8207 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
---|
8208 | else |
---|
8209 | echo "$as_me:$LINENO: result: no" >&5 |
---|
8210 | echo "${ECHO_T}no" >&6 |
---|
8211 | fi |
---|
8212 | |
---|
8213 | else |
---|
8214 | MAGIC_CMD=: |
---|
8215 | fi |
---|
8216 | fi |
---|
8217 | |
---|
8218 | fi |
---|
8219 | ;; |
---|
8220 | esac |
---|
8221 | |
---|
8222 | enable_dlopen=no |
---|
8223 | enable_win32_dll=no |
---|
8224 | |
---|
8225 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
---|
8226 | if test "${enable_libtool_lock+set}" = set; then |
---|
8227 | enableval="$enable_libtool_lock" |
---|
8228 | |
---|
8229 | fi; |
---|
8230 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
8231 | |
---|
8232 | |
---|
8233 | # Check whether --with-pic or --without-pic was given. |
---|
8234 | if test "${with_pic+set}" = set; then |
---|
8235 | withval="$with_pic" |
---|
8236 | pic_mode="$withval" |
---|
8237 | else |
---|
8238 | pic_mode=default |
---|
8239 | fi; |
---|
8240 | test -z "$pic_mode" && pic_mode=default |
---|
8241 | |
---|
8242 | # Use C for the default configuration in the libtool script |
---|
8243 | tagname= |
---|
8244 | lt_save_CC="$CC" |
---|
8245 | ac_ext=c |
---|
8246 | ac_cpp='$CPP $CPPFLAGS' |
---|
8247 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
8248 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
8249 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
8250 | |
---|
8251 | |
---|
8252 | # Source file extension for C test sources. |
---|
8253 | ac_ext=c |
---|
8254 | |
---|
8255 | # Object file extension for compiled C test sources. |
---|
8256 | objext=o |
---|
8257 | objext=$objext |
---|
8258 | |
---|
8259 | # Code to be used in simple compile tests |
---|
8260 | lt_simple_compile_test_code="int some_variable = 0;\n" |
---|
8261 | |
---|
8262 | # Code to be used in simple link tests |
---|
8263 | lt_simple_link_test_code='int main(){return(0);}\n' |
---|
8264 | |
---|
8265 | |
---|
8266 | # If no C compiler was specified, use CC. |
---|
8267 | LTCC=${LTCC-"$CC"} |
---|
8268 | |
---|
8269 | # If no C compiler flags were specified, use CFLAGS. |
---|
8270 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
8271 | |
---|
8272 | # Allow CC to be a program name with arguments. |
---|
8273 | compiler=$CC |
---|
8274 | |
---|
8275 | |
---|
8276 | # save warnings/boilerplate of simple test code |
---|
8277 | ac_outfile=conftest.$ac_objext |
---|
8278 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
---|
8279 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
8280 | _lt_compiler_boilerplate=`cat conftest.err` |
---|
8281 | $rm conftest* |
---|
8282 | |
---|
8283 | ac_outfile=conftest.$ac_objext |
---|
8284 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
---|
8285 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
8286 | _lt_linker_boilerplate=`cat conftest.err` |
---|
8287 | $rm conftest* |
---|
8288 | |
---|
8289 | |
---|
8290 | ## CAVEAT EMPTOR: |
---|
8291 | ## There is no encapsulation within the following macros, do not change |
---|
8292 | ## the running order or otherwise move them around unless you know exactly |
---|
8293 | ## what you are doing... |
---|
8294 | |
---|
8295 | lt_prog_compiler_no_builtin_flag= |
---|
8296 | |
---|
8297 | if test "$GCC" = yes; then |
---|
8298 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
---|
8299 | |
---|
8300 | |
---|
8301 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
---|
8302 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
---|
8303 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
---|
8304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8305 | else |
---|
8306 | lt_cv_prog_compiler_rtti_exceptions=no |
---|
8307 | ac_outfile=conftest.$ac_objext |
---|
8308 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
8309 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
---|
8310 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
8311 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
8312 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
8313 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
8314 | # The option is referenced via a variable to avoid confusing sed. |
---|
8315 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
8316 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
8317 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
8318 | -e 's:$: $lt_compiler_flag:'` |
---|
8319 | (eval echo "\"\$as_me:8319: $lt_compile\"" >&5) |
---|
8320 | (eval "$lt_compile" 2>conftest.err) |
---|
8321 | ac_status=$? |
---|
8322 | cat conftest.err >&5 |
---|
8323 | echo "$as_me:8323: \$? = $ac_status" >&5 |
---|
8324 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
8325 | # The compiler can only warn and ignore the option if not recognized |
---|
8326 | # So say no if there are warnings other than the usual output. |
---|
8327 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
---|
8328 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
8329 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
8330 | lt_cv_prog_compiler_rtti_exceptions=yes |
---|
8331 | fi |
---|
8332 | fi |
---|
8333 | $rm conftest* |
---|
8334 | |
---|
8335 | fi |
---|
8336 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
---|
8337 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
---|
8338 | |
---|
8339 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
---|
8340 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
---|
8341 | else |
---|
8342 | : |
---|
8343 | fi |
---|
8344 | |
---|
8345 | fi |
---|
8346 | |
---|
8347 | lt_prog_compiler_wl= |
---|
8348 | lt_prog_compiler_pic= |
---|
8349 | lt_prog_compiler_static= |
---|
8350 | |
---|
8351 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
---|
8352 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
---|
8353 | |
---|
8354 | if test "$GCC" = yes; then |
---|
8355 | lt_prog_compiler_wl='-Wl,' |
---|
8356 | lt_prog_compiler_static='-static' |
---|
8357 | |
---|
8358 | case $host_os in |
---|
8359 | aix*) |
---|
8360 | # All AIX code is PIC. |
---|
8361 | if test "$host_cpu" = ia64; then |
---|
8362 | # AIX 5 now supports IA64 processor |
---|
8363 | lt_prog_compiler_static='-Bstatic' |
---|
8364 | fi |
---|
8365 | ;; |
---|
8366 | |
---|
8367 | amigaos*) |
---|
8368 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
8369 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
8370 | # like `-m68040'. |
---|
8371 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
---|
8372 | ;; |
---|
8373 | |
---|
8374 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
8375 | # PIC is the default for these OSes. |
---|
8376 | ;; |
---|
8377 | |
---|
8378 | mingw* | pw32* | os2*) |
---|
8379 | # This hack is so that the source file can tell whether it is being |
---|
8380 | # built for inclusion in a dll (and should export symbols for example). |
---|
8381 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
8382 | ;; |
---|
8383 | |
---|
8384 | darwin* | rhapsody*) |
---|
8385 | # PIC is the default on this platform |
---|
8386 | # Common symbols not allowed in MH_DYLIB files |
---|
8387 | lt_prog_compiler_pic='-fno-common' |
---|
8388 | ;; |
---|
8389 | |
---|
8390 | interix3*) |
---|
8391 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
---|
8392 | # Instead, we relocate shared libraries at runtime. |
---|
8393 | ;; |
---|
8394 | |
---|
8395 | msdosdjgpp*) |
---|
8396 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
---|
8397 | # on systems that don't support them. |
---|
8398 | lt_prog_compiler_can_build_shared=no |
---|
8399 | enable_shared=no |
---|
8400 | ;; |
---|
8401 | |
---|
8402 | sysv4*MP*) |
---|
8403 | if test -d /usr/nec; then |
---|
8404 | lt_prog_compiler_pic=-Kconform_pic |
---|
8405 | fi |
---|
8406 | ;; |
---|
8407 | |
---|
8408 | hpux*) |
---|
8409 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
8410 | # not for PA HP-UX. |
---|
8411 | case $host_cpu in |
---|
8412 | hppa*64*|ia64*) |
---|
8413 | # +Z the default |
---|
8414 | ;; |
---|
8415 | *) |
---|
8416 | lt_prog_compiler_pic='-fPIC' |
---|
8417 | ;; |
---|
8418 | esac |
---|
8419 | ;; |
---|
8420 | |
---|
8421 | *) |
---|
8422 | lt_prog_compiler_pic='-fPIC' |
---|
8423 | ;; |
---|
8424 | esac |
---|
8425 | else |
---|
8426 | # PORTME Check for flag to pass linker flags through the system compiler. |
---|
8427 | case $host_os in |
---|
8428 | aix*) |
---|
8429 | lt_prog_compiler_wl='-Wl,' |
---|
8430 | if test "$host_cpu" = ia64; then |
---|
8431 | # AIX 5 now supports IA64 processor |
---|
8432 | lt_prog_compiler_static='-Bstatic' |
---|
8433 | else |
---|
8434 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
---|
8435 | fi |
---|
8436 | ;; |
---|
8437 | darwin*) |
---|
8438 | # PIC is the default on this platform |
---|
8439 | # Common symbols not allowed in MH_DYLIB files |
---|
8440 | case $cc_basename in |
---|
8441 | xlc*) |
---|
8442 | lt_prog_compiler_pic='-qnocommon' |
---|
8443 | lt_prog_compiler_wl='-Wl,' |
---|
8444 | ;; |
---|
8445 | esac |
---|
8446 | ;; |
---|
8447 | |
---|
8448 | mingw* | pw32* | os2*) |
---|
8449 | # This hack is so that the source file can tell whether it is being |
---|
8450 | # built for inclusion in a dll (and should export symbols for example). |
---|
8451 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
8452 | ;; |
---|
8453 | |
---|
8454 | hpux9* | hpux10* | hpux11*) |
---|
8455 | lt_prog_compiler_wl='-Wl,' |
---|
8456 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
8457 | # not for PA HP-UX. |
---|
8458 | case $host_cpu in |
---|
8459 | hppa*64*|ia64*) |
---|
8460 | # +Z the default |
---|
8461 | ;; |
---|
8462 | *) |
---|
8463 | lt_prog_compiler_pic='+Z' |
---|
8464 | ;; |
---|
8465 | esac |
---|
8466 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
---|
8467 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
---|
8468 | ;; |
---|
8469 | |
---|
8470 | irix5* | irix6* | nonstopux*) |
---|
8471 | lt_prog_compiler_wl='-Wl,' |
---|
8472 | # PIC (with -KPIC) is the default. |
---|
8473 | lt_prog_compiler_static='-non_shared' |
---|
8474 | ;; |
---|
8475 | |
---|
8476 | newsos6) |
---|
8477 | lt_prog_compiler_pic='-KPIC' |
---|
8478 | lt_prog_compiler_static='-Bstatic' |
---|
8479 | ;; |
---|
8480 | |
---|
8481 | linux*) |
---|
8482 | case $cc_basename in |
---|
8483 | icc* | ecc*) |
---|
8484 | lt_prog_compiler_wl='-Wl,' |
---|
8485 | lt_prog_compiler_pic='-KPIC' |
---|
8486 | lt_prog_compiler_static='-static' |
---|
8487 | ;; |
---|
8488 | pgcc* | pgf77* | pgf90* | pgf95*) |
---|
8489 | # Portland Group compilers (*not* the Pentium gcc compiler, |
---|
8490 | # which looks to be a dead project) |
---|
8491 | lt_prog_compiler_wl='-Wl,' |
---|
8492 | lt_prog_compiler_pic='-fpic' |
---|
8493 | lt_prog_compiler_static='-Bstatic' |
---|
8494 | ;; |
---|
8495 | ccc*) |
---|
8496 | lt_prog_compiler_wl='-Wl,' |
---|
8497 | # All Alpha code is PIC. |
---|
8498 | lt_prog_compiler_static='-non_shared' |
---|
8499 | ;; |
---|
8500 | esac |
---|
8501 | ;; |
---|
8502 | |
---|
8503 | osf3* | osf4* | osf5*) |
---|
8504 | lt_prog_compiler_wl='-Wl,' |
---|
8505 | # All OSF/1 code is PIC. |
---|
8506 | lt_prog_compiler_static='-non_shared' |
---|
8507 | ;; |
---|
8508 | |
---|
8509 | solaris*) |
---|
8510 | lt_prog_compiler_pic='-KPIC' |
---|
8511 | lt_prog_compiler_static='-Bstatic' |
---|
8512 | case $cc_basename in |
---|
8513 | f77* | f90* | f95*) |
---|
8514 | lt_prog_compiler_wl='-Qoption ld ';; |
---|
8515 | *) |
---|
8516 | lt_prog_compiler_wl='-Wl,';; |
---|
8517 | esac |
---|
8518 | ;; |
---|
8519 | |
---|
8520 | sunos4*) |
---|
8521 | lt_prog_compiler_wl='-Qoption ld ' |
---|
8522 | lt_prog_compiler_pic='-PIC' |
---|
8523 | lt_prog_compiler_static='-Bstatic' |
---|
8524 | ;; |
---|
8525 | |
---|
8526 | sysv4 | sysv4.2uw2* | sysv4.3*) |
---|
8527 | lt_prog_compiler_wl='-Wl,' |
---|
8528 | lt_prog_compiler_pic='-KPIC' |
---|
8529 | lt_prog_compiler_static='-Bstatic' |
---|
8530 | ;; |
---|
8531 | |
---|
8532 | sysv4*MP*) |
---|
8533 | if test -d /usr/nec ;then |
---|
8534 | lt_prog_compiler_pic='-Kconform_pic' |
---|
8535 | lt_prog_compiler_static='-Bstatic' |
---|
8536 | fi |
---|
8537 | ;; |
---|
8538 | |
---|
8539 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
---|
8540 | lt_prog_compiler_wl='-Wl,' |
---|
8541 | lt_prog_compiler_pic='-KPIC' |
---|
8542 | lt_prog_compiler_static='-Bstatic' |
---|
8543 | ;; |
---|
8544 | |
---|
8545 | unicos*) |
---|
8546 | lt_prog_compiler_wl='-Wl,' |
---|
8547 | lt_prog_compiler_can_build_shared=no |
---|
8548 | ;; |
---|
8549 | |
---|
8550 | uts4*) |
---|
8551 | lt_prog_compiler_pic='-pic' |
---|
8552 | lt_prog_compiler_static='-Bstatic' |
---|
8553 | ;; |
---|
8554 | |
---|
8555 | *) |
---|
8556 | lt_prog_compiler_can_build_shared=no |
---|
8557 | ;; |
---|
8558 | esac |
---|
8559 | fi |
---|
8560 | |
---|
8561 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
---|
8562 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
---|
8563 | |
---|
8564 | # |
---|
8565 | # Check to make sure the PIC flag actually works. |
---|
8566 | # |
---|
8567 | if test -n "$lt_prog_compiler_pic"; then |
---|
8568 | |
---|
8569 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
---|
8570 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
---|
8571 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
---|
8572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8573 | else |
---|
8574 | lt_prog_compiler_pic_works=no |
---|
8575 | ac_outfile=conftest.$ac_objext |
---|
8576 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
8577 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
---|
8578 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
8579 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
8580 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
8581 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
8582 | # The option is referenced via a variable to avoid confusing sed. |
---|
8583 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
8584 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
8585 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
8586 | -e 's:$: $lt_compiler_flag:'` |
---|
8587 | (eval echo "\"\$as_me:8587: $lt_compile\"" >&5) |
---|
8588 | (eval "$lt_compile" 2>conftest.err) |
---|
8589 | ac_status=$? |
---|
8590 | cat conftest.err >&5 |
---|
8591 | echo "$as_me:8591: \$? = $ac_status" >&5 |
---|
8592 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
8593 | # The compiler can only warn and ignore the option if not recognized |
---|
8594 | # So say no if there are warnings other than the usual output. |
---|
8595 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
---|
8596 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
8597 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
8598 | lt_prog_compiler_pic_works=yes |
---|
8599 | fi |
---|
8600 | fi |
---|
8601 | $rm conftest* |
---|
8602 | |
---|
8603 | fi |
---|
8604 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
---|
8605 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
---|
8606 | |
---|
8607 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
---|
8608 | case $lt_prog_compiler_pic in |
---|
8609 | "" | " "*) ;; |
---|
8610 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
---|
8611 | esac |
---|
8612 | else |
---|
8613 | lt_prog_compiler_pic= |
---|
8614 | lt_prog_compiler_can_build_shared=no |
---|
8615 | fi |
---|
8616 | |
---|
8617 | fi |
---|
8618 | case $host_os in |
---|
8619 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
8620 | *djgpp*) |
---|
8621 | lt_prog_compiler_pic= |
---|
8622 | ;; |
---|
8623 | *) |
---|
8624 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
---|
8625 | ;; |
---|
8626 | esac |
---|
8627 | |
---|
8628 | # |
---|
8629 | # Check to make sure the static flag actually works. |
---|
8630 | # |
---|
8631 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
---|
8632 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
---|
8633 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
---|
8634 | if test "${lt_prog_compiler_static_works+set}" = set; then |
---|
8635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8636 | else |
---|
8637 | lt_prog_compiler_static_works=no |
---|
8638 | save_LDFLAGS="$LDFLAGS" |
---|
8639 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
---|
8640 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
---|
8641 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
---|
8642 | # The linker can only warn and ignore the option if not recognized |
---|
8643 | # So say no if there are warnings |
---|
8644 | if test -s conftest.err; then |
---|
8645 | # Append any errors to the config.log. |
---|
8646 | cat conftest.err 1>&5 |
---|
8647 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
---|
8648 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
8649 | if diff conftest.exp conftest.er2 >/dev/null; then |
---|
8650 | lt_prog_compiler_static_works=yes |
---|
8651 | fi |
---|
8652 | else |
---|
8653 | lt_prog_compiler_static_works=yes |
---|
8654 | fi |
---|
8655 | fi |
---|
8656 | $rm conftest* |
---|
8657 | LDFLAGS="$save_LDFLAGS" |
---|
8658 | |
---|
8659 | fi |
---|
8660 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
---|
8661 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
---|
8662 | |
---|
8663 | if test x"$lt_prog_compiler_static_works" = xyes; then |
---|
8664 | : |
---|
8665 | else |
---|
8666 | lt_prog_compiler_static= |
---|
8667 | fi |
---|
8668 | |
---|
8669 | |
---|
8670 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
8671 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
---|
8672 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
---|
8673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8674 | else |
---|
8675 | lt_cv_prog_compiler_c_o=no |
---|
8676 | $rm -r conftest 2>/dev/null |
---|
8677 | mkdir conftest |
---|
8678 | cd conftest |
---|
8679 | mkdir out |
---|
8680 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
8681 | |
---|
8682 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
8683 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
8684 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
8685 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
8686 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
8687 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
8688 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
8689 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
8690 | -e 's:$: $lt_compiler_flag:'` |
---|
8691 | (eval echo "\"\$as_me:8691: $lt_compile\"" >&5) |
---|
8692 | (eval "$lt_compile" 2>out/conftest.err) |
---|
8693 | ac_status=$? |
---|
8694 | cat out/conftest.err >&5 |
---|
8695 | echo "$as_me:8695: \$? = $ac_status" >&5 |
---|
8696 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
8697 | then |
---|
8698 | # The compiler can only warn and ignore the option if not recognized |
---|
8699 | # So say no if there are warnings |
---|
8700 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
---|
8701 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
---|
8702 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
---|
8703 | lt_cv_prog_compiler_c_o=yes |
---|
8704 | fi |
---|
8705 | fi |
---|
8706 | chmod u+w . 2>&5 |
---|
8707 | $rm conftest* |
---|
8708 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
8709 | # template instantiation |
---|
8710 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
8711 | $rm out/* && rmdir out |
---|
8712 | cd .. |
---|
8713 | rmdir conftest |
---|
8714 | $rm conftest* |
---|
8715 | |
---|
8716 | fi |
---|
8717 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
---|
8718 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
---|
8719 | |
---|
8720 | |
---|
8721 | hard_links="nottested" |
---|
8722 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
---|
8723 | # do not overwrite the value of need_locks provided by the user |
---|
8724 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
---|
8725 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
---|
8726 | hard_links=yes |
---|
8727 | $rm conftest* |
---|
8728 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
8729 | touch conftest.a |
---|
8730 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
8731 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
8732 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
---|
8733 | echo "${ECHO_T}$hard_links" >&6 |
---|
8734 | if test "$hard_links" = no; then |
---|
8735 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
8736 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
8737 | need_locks=warn |
---|
8738 | fi |
---|
8739 | else |
---|
8740 | need_locks=no |
---|
8741 | fi |
---|
8742 | |
---|
8743 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
8744 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
---|
8745 | |
---|
8746 | runpath_var= |
---|
8747 | allow_undefined_flag= |
---|
8748 | enable_shared_with_static_runtimes=no |
---|
8749 | archive_cmds= |
---|
8750 | archive_expsym_cmds= |
---|
8751 | old_archive_From_new_cmds= |
---|
8752 | old_archive_from_expsyms_cmds= |
---|
8753 | export_dynamic_flag_spec= |
---|
8754 | whole_archive_flag_spec= |
---|
8755 | thread_safe_flag_spec= |
---|
8756 | hardcode_libdir_flag_spec= |
---|
8757 | hardcode_libdir_flag_spec_ld= |
---|
8758 | hardcode_libdir_separator= |
---|
8759 | hardcode_direct=no |
---|
8760 | hardcode_minus_L=no |
---|
8761 | hardcode_shlibpath_var=unsupported |
---|
8762 | link_all_deplibs=unknown |
---|
8763 | hardcode_automatic=no |
---|
8764 | module_cmds= |
---|
8765 | module_expsym_cmds= |
---|
8766 | always_export_symbols=no |
---|
8767 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
8768 | # include_expsyms should be a list of space-separated symbols to be *always* |
---|
8769 | # included in the symbol list |
---|
8770 | include_expsyms= |
---|
8771 | # exclude_expsyms can be an extended regexp of symbols to exclude |
---|
8772 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
---|
8773 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
---|
8774 | # as well as any symbol that contains `d'. |
---|
8775 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
---|
8776 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
---|
8777 | # platforms (ab)use it in PIC code, but their linkers get confused if |
---|
8778 | # the symbol is explicitly referenced. Since portable code cannot |
---|
8779 | # rely on this symbol name, it's probably fine to never include it in |
---|
8780 | # preloaded symbol tables. |
---|
8781 | extract_expsyms_cmds= |
---|
8782 | # Just being paranoid about ensuring that cc_basename is set. |
---|
8783 | for cc_temp in $compiler""; do |
---|
8784 | case $cc_temp in |
---|
8785 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
8786 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
8787 | \-*) ;; |
---|
8788 | *) break;; |
---|
8789 | esac |
---|
8790 | done |
---|
8791 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
8792 | |
---|
8793 | case $host_os in |
---|
8794 | cygwin* | mingw* | pw32*) |
---|
8795 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
---|
8796 | # When not using gcc, we currently assume that we are using |
---|
8797 | # Microsoft Visual C++. |
---|
8798 | if test "$GCC" != yes; then |
---|
8799 | with_gnu_ld=no |
---|
8800 | fi |
---|
8801 | ;; |
---|
8802 | interix*) |
---|
8803 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
---|
8804 | with_gnu_ld=yes |
---|
8805 | ;; |
---|
8806 | openbsd*) |
---|
8807 | with_gnu_ld=no |
---|
8808 | ;; |
---|
8809 | esac |
---|
8810 | |
---|
8811 | ld_shlibs=yes |
---|
8812 | if test "$with_gnu_ld" = yes; then |
---|
8813 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
8814 | wlarc='${wl}' |
---|
8815 | |
---|
8816 | # Set some defaults for GNU ld with shared library support. These |
---|
8817 | # are reset later if shared libraries are not supported. Putting them |
---|
8818 | # here allows them to be overridden if necessary. |
---|
8819 | runpath_var=LD_RUN_PATH |
---|
8820 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
---|
8821 | export_dynamic_flag_spec='${wl}--export-dynamic' |
---|
8822 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
8823 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
---|
8824 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
8825 | else |
---|
8826 | whole_archive_flag_spec= |
---|
8827 | fi |
---|
8828 | supports_anon_versioning=no |
---|
8829 | case `$LD -v 2>/dev/null` in |
---|
8830 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
---|
8831 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
---|
8832 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
---|
8833 | *\ 2.11.*) ;; # other 2.11 versions |
---|
8834 | *) supports_anon_versioning=yes ;; |
---|
8835 | esac |
---|
8836 | |
---|
8837 | # See if GNU ld supports shared libraries. |
---|
8838 | case $host_os in |
---|
8839 | aix3* | aix4* | aix5*) |
---|
8840 | # On AIX/PPC, the GNU linker is very broken |
---|
8841 | if test "$host_cpu" != ia64; then |
---|
8842 | ld_shlibs=no |
---|
8843 | cat <<EOF 1>&2 |
---|
8844 | |
---|
8845 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
---|
8846 | *** to be unable to reliably create shared libraries on AIX. |
---|
8847 | *** Therefore, libtool is disabling shared libraries support. If you |
---|
8848 | *** really care for shared libraries, you may want to modify your PATH |
---|
8849 | *** so that a non-GNU linker is found, and then restart. |
---|
8850 | |
---|
8851 | EOF |
---|
8852 | fi |
---|
8853 | ;; |
---|
8854 | |
---|
8855 | amigaos*) |
---|
8856 | 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)' |
---|
8857 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8858 | hardcode_minus_L=yes |
---|
8859 | |
---|
8860 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
---|
8861 | # that the semantics of dynamic libraries on AmigaOS, at least up |
---|
8862 | # to version 4, is to share data among multiple programs linked |
---|
8863 | # with the same dynamic library. Since this doesn't match the |
---|
8864 | # behavior of shared libraries on other platforms, we can't use |
---|
8865 | # them. |
---|
8866 | ld_shlibs=no |
---|
8867 | ;; |
---|
8868 | |
---|
8869 | beos*) |
---|
8870 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8871 | allow_undefined_flag=unsupported |
---|
8872 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
8873 | # support --undefined. This deserves some investigation. FIXME |
---|
8874 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8875 | else |
---|
8876 | ld_shlibs=no |
---|
8877 | fi |
---|
8878 | ;; |
---|
8879 | |
---|
8880 | cygwin* | mingw* | pw32*) |
---|
8881 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
---|
8882 | # as there is no search path for DLLs. |
---|
8883 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8884 | allow_undefined_flag=unsupported |
---|
8885 | always_export_symbols=no |
---|
8886 | enable_shared_with_static_runtimes=yes |
---|
8887 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
---|
8888 | |
---|
8889 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
8890 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
8891 | # If the export-symbols file already is a .def file (1st line |
---|
8892 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
8893 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
8894 | cp $export_symbols $output_objdir/$soname.def; |
---|
8895 | else |
---|
8896 | echo EXPORTS > $output_objdir/$soname.def; |
---|
8897 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
8898 | fi~ |
---|
8899 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
8900 | else |
---|
8901 | ld_shlibs=no |
---|
8902 | fi |
---|
8903 | ;; |
---|
8904 | |
---|
8905 | interix3*) |
---|
8906 | hardcode_direct=no |
---|
8907 | hardcode_shlibpath_var=no |
---|
8908 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
8909 | export_dynamic_flag_spec='${wl}-E' |
---|
8910 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
---|
8911 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
---|
8912 | # default) and relocated if they conflict, which is a slow very memory |
---|
8913 | # consuming and fragmenting process. To avoid this, we pick a random, |
---|
8914 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
---|
8915 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
---|
8916 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
---|
8917 | 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' |
---|
8918 | ;; |
---|
8919 | |
---|
8920 | linux*) |
---|
8921 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8922 | tmp_addflag= |
---|
8923 | case $cc_basename,$host_cpu in |
---|
8924 | pgcc*) # Portland Group C compiler |
---|
8925 | 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' |
---|
8926 | tmp_addflag=' $pic_flag' |
---|
8927 | ;; |
---|
8928 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
---|
8929 | 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' |
---|
8930 | tmp_addflag=' $pic_flag -Mnomain' ;; |
---|
8931 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
---|
8932 | tmp_addflag=' -i_dynamic' ;; |
---|
8933 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
---|
8934 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
---|
8935 | ifc* | ifort*) # Intel Fortran compiler |
---|
8936 | tmp_addflag=' -nofor_main' ;; |
---|
8937 | esac |
---|
8938 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8939 | |
---|
8940 | if test $supports_anon_versioning = yes; then |
---|
8941 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
---|
8942 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
8943 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
8944 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
---|
8945 | fi |
---|
8946 | else |
---|
8947 | ld_shlibs=no |
---|
8948 | fi |
---|
8949 | ;; |
---|
8950 | |
---|
8951 | netbsd*) |
---|
8952 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
8953 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
---|
8954 | wlarc= |
---|
8955 | else |
---|
8956 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8957 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
8958 | fi |
---|
8959 | ;; |
---|
8960 | |
---|
8961 | solaris*) |
---|
8962 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
---|
8963 | ld_shlibs=no |
---|
8964 | cat <<EOF 1>&2 |
---|
8965 | |
---|
8966 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
---|
8967 | *** create shared libraries on Solaris systems. Therefore, libtool |
---|
8968 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
8969 | *** binutils to release 2.9.1 or newer. Another option is to modify |
---|
8970 | *** your PATH or compiler configuration so that the native linker is |
---|
8971 | *** used, and then restart. |
---|
8972 | |
---|
8973 | EOF |
---|
8974 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8975 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8976 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
8977 | else |
---|
8978 | ld_shlibs=no |
---|
8979 | fi |
---|
8980 | ;; |
---|
8981 | |
---|
8982 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
---|
8983 | case `$LD -v 2>&1` in |
---|
8984 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
---|
8985 | ld_shlibs=no |
---|
8986 | cat <<_LT_EOF 1>&2 |
---|
8987 | |
---|
8988 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
---|
8989 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
---|
8990 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
8991 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
---|
8992 | *** your PATH or compiler configuration so that the native linker is |
---|
8993 | *** used, and then restart. |
---|
8994 | |
---|
8995 | _LT_EOF |
---|
8996 | ;; |
---|
8997 | *) |
---|
8998 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8999 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
---|
9000 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
---|
9001 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
---|
9002 | else |
---|
9003 | ld_shlibs=no |
---|
9004 | fi |
---|
9005 | ;; |
---|
9006 | esac |
---|
9007 | ;; |
---|
9008 | |
---|
9009 | sunos4*) |
---|
9010 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
9011 | wlarc= |
---|
9012 | hardcode_direct=yes |
---|
9013 | hardcode_shlibpath_var=no |
---|
9014 | ;; |
---|
9015 | |
---|
9016 | *) |
---|
9017 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
9018 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
9019 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
9020 | else |
---|
9021 | ld_shlibs=no |
---|
9022 | fi |
---|
9023 | ;; |
---|
9024 | esac |
---|
9025 | |
---|
9026 | if test "$ld_shlibs" = no; then |
---|
9027 | runpath_var= |
---|
9028 | hardcode_libdir_flag_spec= |
---|
9029 | export_dynamic_flag_spec= |
---|
9030 | whole_archive_flag_spec= |
---|
9031 | fi |
---|
9032 | else |
---|
9033 | # PORTME fill in a description of your system's linker (not GNU ld) |
---|
9034 | case $host_os in |
---|
9035 | aix3*) |
---|
9036 | allow_undefined_flag=unsupported |
---|
9037 | always_export_symbols=yes |
---|
9038 | 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' |
---|
9039 | # Note: this linker hardcodes the directories in LIBPATH if there |
---|
9040 | # are no directories specified by -L. |
---|
9041 | hardcode_minus_L=yes |
---|
9042 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
---|
9043 | # Neither direct hardcoding nor static linking is supported with a |
---|
9044 | # broken collect2. |
---|
9045 | hardcode_direct=unsupported |
---|
9046 | fi |
---|
9047 | ;; |
---|
9048 | |
---|
9049 | aix4* | aix5*) |
---|
9050 | if test "$host_cpu" = ia64; then |
---|
9051 | # On IA64, the linker does run time linking by default, so we don't |
---|
9052 | # have to do anything special. |
---|
9053 | aix_use_runtimelinking=no |
---|
9054 | exp_sym_flag='-Bexport' |
---|
9055 | no_entry_flag="" |
---|
9056 | else |
---|
9057 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
9058 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
9059 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
9060 | 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' |
---|
9061 | else |
---|
9062 | 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' |
---|
9063 | fi |
---|
9064 | aix_use_runtimelinking=no |
---|
9065 | |
---|
9066 | # Test if we are trying to use run time linking or normal |
---|
9067 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
9068 | # need to do runtime linking. |
---|
9069 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
9070 | for ld_flag in $LDFLAGS; do |
---|
9071 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
---|
9072 | aix_use_runtimelinking=yes |
---|
9073 | break |
---|
9074 | fi |
---|
9075 | done |
---|
9076 | ;; |
---|
9077 | esac |
---|
9078 | |
---|
9079 | exp_sym_flag='-bexport' |
---|
9080 | no_entry_flag='-bnoentry' |
---|
9081 | fi |
---|
9082 | |
---|
9083 | # When large executables or shared objects are built, AIX ld can |
---|
9084 | # have problems creating the table of contents. If linking a library |
---|
9085 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
9086 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
9087 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
9088 | |
---|
9089 | archive_cmds='' |
---|
9090 | hardcode_direct=yes |
---|
9091 | hardcode_libdir_separator=':' |
---|
9092 | link_all_deplibs=yes |
---|
9093 | |
---|
9094 | if test "$GCC" = yes; then |
---|
9095 | case $host_os in aix4.[012]|aix4.[012].*) |
---|
9096 | # We only want to do this on AIX 4.2 and lower, the check |
---|
9097 | # below for broken collect2 doesn't work under 4.3+ |
---|
9098 | collect2name=`${CC} -print-prog-name=collect2` |
---|
9099 | if test -f "$collect2name" && \ |
---|
9100 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
9101 | then |
---|
9102 | # We have reworked collect2 |
---|
9103 | hardcode_direct=yes |
---|
9104 | else |
---|
9105 | # We have old collect2 |
---|
9106 | hardcode_direct=unsupported |
---|
9107 | # It fails to find uninstalled libraries when the uninstalled |
---|
9108 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
9109 | # to unsupported forces relinking |
---|
9110 | hardcode_minus_L=yes |
---|
9111 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9112 | hardcode_libdir_separator= |
---|
9113 | fi |
---|
9114 | ;; |
---|
9115 | esac |
---|
9116 | shared_flag='-shared' |
---|
9117 | if test "$aix_use_runtimelinking" = yes; then |
---|
9118 | shared_flag="$shared_flag "'${wl}-G' |
---|
9119 | fi |
---|
9120 | else |
---|
9121 | # not using gcc |
---|
9122 | if test "$host_cpu" = ia64; then |
---|
9123 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
9124 | # chokes on -Wl,-G. The following line is correct: |
---|
9125 | shared_flag='-G' |
---|
9126 | else |
---|
9127 | if test "$aix_use_runtimelinking" = yes; then |
---|
9128 | shared_flag='${wl}-G' |
---|
9129 | else |
---|
9130 | shared_flag='${wl}-bM:SRE' |
---|
9131 | fi |
---|
9132 | fi |
---|
9133 | fi |
---|
9134 | |
---|
9135 | # It seems that -bexpall does not export symbols beginning with |
---|
9136 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
9137 | always_export_symbols=yes |
---|
9138 | if test "$aix_use_runtimelinking" = yes; then |
---|
9139 | # Warning - without using the other runtime loading flags (-brtl), |
---|
9140 | # -berok will link without error, but may produce a broken library. |
---|
9141 | allow_undefined_flag='-berok' |
---|
9142 | # Determine the default libpath from the value encoded in an empty executable. |
---|
9143 | cat >conftest.$ac_ext <<_ACEOF |
---|
9144 | /* confdefs.h. */ |
---|
9145 | _ACEOF |
---|
9146 | cat confdefs.h >>conftest.$ac_ext |
---|
9147 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9148 | /* end confdefs.h. */ |
---|
9149 | |
---|
9150 | int |
---|
9151 | main () |
---|
9152 | { |
---|
9153 | |
---|
9154 | ; |
---|
9155 | return 0; |
---|
9156 | } |
---|
9157 | _ACEOF |
---|
9158 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9159 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9160 | (eval $ac_link) 2>conftest.er1 |
---|
9161 | ac_status=$? |
---|
9162 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9163 | rm -f conftest.er1 |
---|
9164 | cat conftest.err >&5 |
---|
9165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9166 | (exit $ac_status); } && |
---|
9167 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9168 | || test ! -s conftest.err' |
---|
9169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9170 | (eval $ac_try) 2>&5 |
---|
9171 | ac_status=$? |
---|
9172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9173 | (exit $ac_status); }; } && |
---|
9174 | { ac_try='test -s conftest$ac_exeext' |
---|
9175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9176 | (eval $ac_try) 2>&5 |
---|
9177 | ac_status=$? |
---|
9178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9179 | (exit $ac_status); }; }; then |
---|
9180 | |
---|
9181 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
9182 | }'` |
---|
9183 | # Check for a 64-bit object if we didn't find anything. |
---|
9184 | 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; } |
---|
9185 | }'`; fi |
---|
9186 | else |
---|
9187 | echo "$as_me: failed program was:" >&5 |
---|
9188 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9189 | |
---|
9190 | fi |
---|
9191 | rm -f conftest.err conftest.$ac_objext \ |
---|
9192 | conftest$ac_exeext conftest.$ac_ext |
---|
9193 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
9194 | |
---|
9195 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
9196 | 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" |
---|
9197 | else |
---|
9198 | if test "$host_cpu" = ia64; then |
---|
9199 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
---|
9200 | allow_undefined_flag="-z nodefs" |
---|
9201 | 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" |
---|
9202 | else |
---|
9203 | # Determine the default libpath from the value encoded in an empty executable. |
---|
9204 | cat >conftest.$ac_ext <<_ACEOF |
---|
9205 | /* confdefs.h. */ |
---|
9206 | _ACEOF |
---|
9207 | cat confdefs.h >>conftest.$ac_ext |
---|
9208 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9209 | /* end confdefs.h. */ |
---|
9210 | |
---|
9211 | int |
---|
9212 | main () |
---|
9213 | { |
---|
9214 | |
---|
9215 | ; |
---|
9216 | return 0; |
---|
9217 | } |
---|
9218 | _ACEOF |
---|
9219 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9220 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9221 | (eval $ac_link) 2>conftest.er1 |
---|
9222 | ac_status=$? |
---|
9223 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9224 | rm -f conftest.er1 |
---|
9225 | cat conftest.err >&5 |
---|
9226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9227 | (exit $ac_status); } && |
---|
9228 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9229 | || test ! -s conftest.err' |
---|
9230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9231 | (eval $ac_try) 2>&5 |
---|
9232 | ac_status=$? |
---|
9233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9234 | (exit $ac_status); }; } && |
---|
9235 | { ac_try='test -s conftest$ac_exeext' |
---|
9236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9237 | (eval $ac_try) 2>&5 |
---|
9238 | ac_status=$? |
---|
9239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9240 | (exit $ac_status); }; }; then |
---|
9241 | |
---|
9242 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
9243 | }'` |
---|
9244 | # Check for a 64-bit object if we didn't find anything. |
---|
9245 | 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; } |
---|
9246 | }'`; fi |
---|
9247 | else |
---|
9248 | echo "$as_me: failed program was:" >&5 |
---|
9249 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9250 | |
---|
9251 | fi |
---|
9252 | rm -f conftest.err conftest.$ac_objext \ |
---|
9253 | conftest$ac_exeext conftest.$ac_ext |
---|
9254 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
9255 | |
---|
9256 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
9257 | # Warning - without using the other run time loading flags, |
---|
9258 | # -berok will link without error, but may produce a broken library. |
---|
9259 | no_undefined_flag=' ${wl}-bernotok' |
---|
9260 | allow_undefined_flag=' ${wl}-berok' |
---|
9261 | # Exported symbols can be pulled into shared objects from archives |
---|
9262 | whole_archive_flag_spec='$convenience' |
---|
9263 | archive_cmds_need_lc=yes |
---|
9264 | # This is similar to how AIX traditionally builds its shared libraries. |
---|
9265 | 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' |
---|
9266 | fi |
---|
9267 | fi |
---|
9268 | ;; |
---|
9269 | |
---|
9270 | amigaos*) |
---|
9271 | 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)' |
---|
9272 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9273 | hardcode_minus_L=yes |
---|
9274 | # see comment about different semantics on the GNU ld section |
---|
9275 | ld_shlibs=no |
---|
9276 | ;; |
---|
9277 | |
---|
9278 | bsdi[45]*) |
---|
9279 | export_dynamic_flag_spec=-rdynamic |
---|
9280 | ;; |
---|
9281 | |
---|
9282 | cygwin* | mingw* | pw32*) |
---|
9283 | # When not using gcc, we currently assume that we are using |
---|
9284 | # Microsoft Visual C++. |
---|
9285 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
9286 | # no search path for DLLs. |
---|
9287 | hardcode_libdir_flag_spec=' ' |
---|
9288 | allow_undefined_flag=unsupported |
---|
9289 | # Tell ltmain to make .lib files, not .a files. |
---|
9290 | libext=lib |
---|
9291 | # Tell ltmain to make .dll files, not .so files. |
---|
9292 | shrext_cmds=".dll" |
---|
9293 | # FIXME: Setting linknames here is a bad hack. |
---|
9294 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
---|
9295 | # The linker will automatically build a .lib file if we build a DLL. |
---|
9296 | old_archive_From_new_cmds='true' |
---|
9297 | # FIXME: Should let the user specify the lib program. |
---|
9298 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
---|
9299 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
---|
9300 | enable_shared_with_static_runtimes=yes |
---|
9301 | ;; |
---|
9302 | |
---|
9303 | darwin* | rhapsody*) |
---|
9304 | case $host_os in |
---|
9305 | rhapsody* | darwin1.[012]) |
---|
9306 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
---|
9307 | ;; |
---|
9308 | *) # Darwin 1.3 on |
---|
9309 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
9310 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
9311 | else |
---|
9312 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
9313 | 10.[012]) |
---|
9314 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
9315 | ;; |
---|
9316 | 10.*) |
---|
9317 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
---|
9318 | ;; |
---|
9319 | esac |
---|
9320 | fi |
---|
9321 | ;; |
---|
9322 | esac |
---|
9323 | archive_cmds_need_lc=no |
---|
9324 | hardcode_direct=no |
---|
9325 | hardcode_automatic=yes |
---|
9326 | hardcode_shlibpath_var=unsupported |
---|
9327 | whole_archive_flag_spec='' |
---|
9328 | link_all_deplibs=yes |
---|
9329 | if test "$GCC" = yes ; then |
---|
9330 | output_verbose_link_cmd='echo' |
---|
9331 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
9332 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
9333 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
9334 | 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}' |
---|
9335 | 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}' |
---|
9336 | else |
---|
9337 | case $cc_basename in |
---|
9338 | xlc*) |
---|
9339 | output_verbose_link_cmd='echo' |
---|
9340 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
---|
9341 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
9342 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
9343 | 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}' |
---|
9344 | 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}' |
---|
9345 | ;; |
---|
9346 | *) |
---|
9347 | ld_shlibs=no |
---|
9348 | ;; |
---|
9349 | esac |
---|
9350 | fi |
---|
9351 | ;; |
---|
9352 | |
---|
9353 | dgux*) |
---|
9354 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9355 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9356 | hardcode_shlibpath_var=no |
---|
9357 | ;; |
---|
9358 | |
---|
9359 | freebsd1*) |
---|
9360 | ld_shlibs=no |
---|
9361 | ;; |
---|
9362 | |
---|
9363 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
---|
9364 | # support. Future versions do this automatically, but an explicit c++rt0.o |
---|
9365 | # does not break anything, and helps significantly (at the cost of a little |
---|
9366 | # extra space). |
---|
9367 | freebsd2.2*) |
---|
9368 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
---|
9369 | hardcode_libdir_flag_spec='-R$libdir' |
---|
9370 | hardcode_direct=yes |
---|
9371 | hardcode_shlibpath_var=no |
---|
9372 | ;; |
---|
9373 | |
---|
9374 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
---|
9375 | freebsd2*) |
---|
9376 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
9377 | hardcode_direct=yes |
---|
9378 | hardcode_minus_L=yes |
---|
9379 | hardcode_shlibpath_var=no |
---|
9380 | ;; |
---|
9381 | |
---|
9382 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
---|
9383 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
9384 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
---|
9385 | hardcode_libdir_flag_spec='-R$libdir' |
---|
9386 | hardcode_direct=yes |
---|
9387 | hardcode_shlibpath_var=no |
---|
9388 | ;; |
---|
9389 | |
---|
9390 | hpux9*) |
---|
9391 | if test "$GCC" = yes; then |
---|
9392 | 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' |
---|
9393 | else |
---|
9394 | 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' |
---|
9395 | fi |
---|
9396 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
9397 | hardcode_libdir_separator=: |
---|
9398 | hardcode_direct=yes |
---|
9399 | |
---|
9400 | # hardcode_minus_L: Not really in the search PATH, |
---|
9401 | # but as the default location of the library. |
---|
9402 | hardcode_minus_L=yes |
---|
9403 | export_dynamic_flag_spec='${wl}-E' |
---|
9404 | ;; |
---|
9405 | |
---|
9406 | hpux10*) |
---|
9407 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
9408 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
9409 | else |
---|
9410 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
---|
9411 | fi |
---|
9412 | if test "$with_gnu_ld" = no; then |
---|
9413 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
9414 | hardcode_libdir_separator=: |
---|
9415 | |
---|
9416 | hardcode_direct=yes |
---|
9417 | export_dynamic_flag_spec='${wl}-E' |
---|
9418 | |
---|
9419 | # hardcode_minus_L: Not really in the search PATH, |
---|
9420 | # but as the default location of the library. |
---|
9421 | hardcode_minus_L=yes |
---|
9422 | fi |
---|
9423 | ;; |
---|
9424 | |
---|
9425 | hpux11*) |
---|
9426 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
9427 | case $host_cpu in |
---|
9428 | hppa*64*) |
---|
9429 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9430 | ;; |
---|
9431 | ia64*) |
---|
9432 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
---|
9433 | ;; |
---|
9434 | *) |
---|
9435 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
9436 | ;; |
---|
9437 | esac |
---|
9438 | else |
---|
9439 | case $host_cpu in |
---|
9440 | hppa*64*) |
---|
9441 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9442 | ;; |
---|
9443 | ia64*) |
---|
9444 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
---|
9445 | ;; |
---|
9446 | *) |
---|
9447 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
9448 | ;; |
---|
9449 | esac |
---|
9450 | fi |
---|
9451 | if test "$with_gnu_ld" = no; then |
---|
9452 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
9453 | hardcode_libdir_separator=: |
---|
9454 | |
---|
9455 | case $host_cpu in |
---|
9456 | hppa*64*|ia64*) |
---|
9457 | hardcode_libdir_flag_spec_ld='+b $libdir' |
---|
9458 | hardcode_direct=no |
---|
9459 | hardcode_shlibpath_var=no |
---|
9460 | ;; |
---|
9461 | *) |
---|
9462 | hardcode_direct=yes |
---|
9463 | export_dynamic_flag_spec='${wl}-E' |
---|
9464 | |
---|
9465 | # hardcode_minus_L: Not really in the search PATH, |
---|
9466 | # but as the default location of the library. |
---|
9467 | hardcode_minus_L=yes |
---|
9468 | ;; |
---|
9469 | esac |
---|
9470 | fi |
---|
9471 | ;; |
---|
9472 | |
---|
9473 | irix5* | irix6* | nonstopux*) |
---|
9474 | if test "$GCC" = yes; then |
---|
9475 | 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' |
---|
9476 | else |
---|
9477 | 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' |
---|
9478 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
---|
9479 | fi |
---|
9480 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
9481 | hardcode_libdir_separator=: |
---|
9482 | link_all_deplibs=yes |
---|
9483 | ;; |
---|
9484 | |
---|
9485 | netbsd*) |
---|
9486 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
9487 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
---|
9488 | else |
---|
9489 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
---|
9490 | fi |
---|
9491 | hardcode_libdir_flag_spec='-R$libdir' |
---|
9492 | hardcode_direct=yes |
---|
9493 | hardcode_shlibpath_var=no |
---|
9494 | ;; |
---|
9495 | |
---|
9496 | newsos6) |
---|
9497 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9498 | hardcode_direct=yes |
---|
9499 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
9500 | hardcode_libdir_separator=: |
---|
9501 | hardcode_shlibpath_var=no |
---|
9502 | ;; |
---|
9503 | |
---|
9504 | openbsd*) |
---|
9505 | hardcode_direct=yes |
---|
9506 | hardcode_shlibpath_var=no |
---|
9507 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
9508 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
9509 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
---|
9510 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
9511 | export_dynamic_flag_spec='${wl}-E' |
---|
9512 | else |
---|
9513 | case $host_os in |
---|
9514 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
---|
9515 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
9516 | hardcode_libdir_flag_spec='-R$libdir' |
---|
9517 | ;; |
---|
9518 | *) |
---|
9519 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
9520 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
9521 | ;; |
---|
9522 | esac |
---|
9523 | fi |
---|
9524 | ;; |
---|
9525 | |
---|
9526 | os2*) |
---|
9527 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9528 | hardcode_minus_L=yes |
---|
9529 | allow_undefined_flag=unsupported |
---|
9530 | 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' |
---|
9531 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
---|
9532 | ;; |
---|
9533 | |
---|
9534 | osf3*) |
---|
9535 | if test "$GCC" = yes; then |
---|
9536 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
9537 | 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' |
---|
9538 | else |
---|
9539 | allow_undefined_flag=' -expect_unresolved \*' |
---|
9540 | 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' |
---|
9541 | fi |
---|
9542 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
9543 | hardcode_libdir_separator=: |
---|
9544 | ;; |
---|
9545 | |
---|
9546 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
---|
9547 | if test "$GCC" = yes; then |
---|
9548 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
9549 | 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' |
---|
9550 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
9551 | else |
---|
9552 | allow_undefined_flag=' -expect_unresolved \*' |
---|
9553 | 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' |
---|
9554 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
---|
9555 | $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' |
---|
9556 | |
---|
9557 | # Both c and cxx compiler support -rpath directly |
---|
9558 | hardcode_libdir_flag_spec='-rpath $libdir' |
---|
9559 | fi |
---|
9560 | hardcode_libdir_separator=: |
---|
9561 | ;; |
---|
9562 | |
---|
9563 | solaris*) |
---|
9564 | no_undefined_flag=' -z text' |
---|
9565 | if test "$GCC" = yes; then |
---|
9566 | wlarc='${wl}' |
---|
9567 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9568 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
9569 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
---|
9570 | else |
---|
9571 | wlarc='' |
---|
9572 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9573 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
9574 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
9575 | fi |
---|
9576 | hardcode_libdir_flag_spec='-R$libdir' |
---|
9577 | hardcode_shlibpath_var=no |
---|
9578 | case $host_os in |
---|
9579 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
9580 | *) |
---|
9581 | # The compiler driver will combine linker options so we |
---|
9582 | # cannot just pass the convience library names through |
---|
9583 | # without $wl, iff we do not link with $LD. |
---|
9584 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
---|
9585 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
9586 | case $wlarc in |
---|
9587 | '') |
---|
9588 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
---|
9589 | *) |
---|
9590 | 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' ;; |
---|
9591 | esac ;; |
---|
9592 | esac |
---|
9593 | link_all_deplibs=yes |
---|
9594 | ;; |
---|
9595 | |
---|
9596 | sunos4*) |
---|
9597 | if test "x$host_vendor" = xsequent; then |
---|
9598 | # Use $CC to link under sequent, because it throws in some extra .o |
---|
9599 | # files that make .init and .fini sections work. |
---|
9600 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9601 | else |
---|
9602 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
---|
9603 | fi |
---|
9604 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9605 | hardcode_direct=yes |
---|
9606 | hardcode_minus_L=yes |
---|
9607 | hardcode_shlibpath_var=no |
---|
9608 | ;; |
---|
9609 | |
---|
9610 | sysv4) |
---|
9611 | case $host_vendor in |
---|
9612 | sni) |
---|
9613 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9614 | hardcode_direct=yes # is this really true??? |
---|
9615 | ;; |
---|
9616 | siemens) |
---|
9617 | ## LD is ld it makes a PLAMLIB |
---|
9618 | ## CC just makes a GrossModule. |
---|
9619 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
9620 | reload_cmds='$CC -r -o $output$reload_objs' |
---|
9621 | hardcode_direct=no |
---|
9622 | ;; |
---|
9623 | motorola) |
---|
9624 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9625 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
---|
9626 | ;; |
---|
9627 | esac |
---|
9628 | runpath_var='LD_RUN_PATH' |
---|
9629 | hardcode_shlibpath_var=no |
---|
9630 | ;; |
---|
9631 | |
---|
9632 | sysv4.3*) |
---|
9633 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9634 | hardcode_shlibpath_var=no |
---|
9635 | export_dynamic_flag_spec='-Bexport' |
---|
9636 | ;; |
---|
9637 | |
---|
9638 | sysv4*MP*) |
---|
9639 | if test -d /usr/nec; then |
---|
9640 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9641 | hardcode_shlibpath_var=no |
---|
9642 | runpath_var=LD_RUN_PATH |
---|
9643 | hardcode_runpath_var=yes |
---|
9644 | ld_shlibs=yes |
---|
9645 | fi |
---|
9646 | ;; |
---|
9647 | |
---|
9648 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
---|
9649 | no_undefined_flag='${wl}-z,text' |
---|
9650 | archive_cmds_need_lc=no |
---|
9651 | hardcode_shlibpath_var=no |
---|
9652 | runpath_var='LD_RUN_PATH' |
---|
9653 | |
---|
9654 | if test "$GCC" = yes; then |
---|
9655 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9656 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9657 | else |
---|
9658 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9659 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9660 | fi |
---|
9661 | ;; |
---|
9662 | |
---|
9663 | sysv5* | sco3.2v5* | sco5v6*) |
---|
9664 | # Note: We can NOT use -z defs as we might desire, because we do not |
---|
9665 | # link with -lc, and that would cause any symbols used from libc to |
---|
9666 | # always be unresolved, which means just about no library would |
---|
9667 | # ever link correctly. If we're not using GNU ld we use -z text |
---|
9668 | # though, which does catch some bad symbols but isn't as heavy-handed |
---|
9669 | # as -z defs. |
---|
9670 | no_undefined_flag='${wl}-z,text' |
---|
9671 | allow_undefined_flag='${wl}-z,nodefs' |
---|
9672 | archive_cmds_need_lc=no |
---|
9673 | hardcode_shlibpath_var=no |
---|
9674 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
---|
9675 | hardcode_libdir_separator=':' |
---|
9676 | link_all_deplibs=yes |
---|
9677 | export_dynamic_flag_spec='${wl}-Bexport' |
---|
9678 | runpath_var='LD_RUN_PATH' |
---|
9679 | |
---|
9680 | if test "$GCC" = yes; then |
---|
9681 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9682 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9683 | else |
---|
9684 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9685 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9686 | fi |
---|
9687 | ;; |
---|
9688 | |
---|
9689 | uts4*) |
---|
9690 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9691 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9692 | hardcode_shlibpath_var=no |
---|
9693 | ;; |
---|
9694 | |
---|
9695 | *) |
---|
9696 | ld_shlibs=no |
---|
9697 | ;; |
---|
9698 | esac |
---|
9699 | fi |
---|
9700 | |
---|
9701 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
---|
9702 | echo "${ECHO_T}$ld_shlibs" >&6 |
---|
9703 | test "$ld_shlibs" = no && can_build_shared=no |
---|
9704 | |
---|
9705 | # |
---|
9706 | # Do we need to explicitly link libc? |
---|
9707 | # |
---|
9708 | case "x$archive_cmds_need_lc" in |
---|
9709 | x|xyes) |
---|
9710 | # Assume -lc should be added |
---|
9711 | archive_cmds_need_lc=yes |
---|
9712 | |
---|
9713 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
9714 | case $archive_cmds in |
---|
9715 | *'~'*) |
---|
9716 | # FIXME: we may have to deal with multi-command sequences. |
---|
9717 | ;; |
---|
9718 | '$CC '*) |
---|
9719 | # Test whether the compiler implicitly links with -lc since on some |
---|
9720 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
9721 | # to ld, don't add -lc before -lgcc. |
---|
9722 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
---|
9723 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
---|
9724 | $rm conftest* |
---|
9725 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
9726 | |
---|
9727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
9728 | (eval $ac_compile) 2>&5 |
---|
9729 | ac_status=$? |
---|
9730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9731 | (exit $ac_status); } 2>conftest.err; then |
---|
9732 | soname=conftest |
---|
9733 | lib=conftest |
---|
9734 | libobjs=conftest.$ac_objext |
---|
9735 | deplibs= |
---|
9736 | wl=$lt_prog_compiler_wl |
---|
9737 | pic_flag=$lt_prog_compiler_pic |
---|
9738 | compiler_flags=-v |
---|
9739 | linker_flags=-v |
---|
9740 | verstring= |
---|
9741 | output_objdir=. |
---|
9742 | libname=conftest |
---|
9743 | lt_save_allow_undefined_flag=$allow_undefined_flag |
---|
9744 | allow_undefined_flag= |
---|
9745 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
9746 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
9747 | ac_status=$? |
---|
9748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9749 | (exit $ac_status); } |
---|
9750 | then |
---|
9751 | archive_cmds_need_lc=no |
---|
9752 | else |
---|
9753 | archive_cmds_need_lc=yes |
---|
9754 | fi |
---|
9755 | allow_undefined_flag=$lt_save_allow_undefined_flag |
---|
9756 | else |
---|
9757 | cat conftest.err 1>&5 |
---|
9758 | fi |
---|
9759 | $rm conftest* |
---|
9760 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
---|
9761 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
---|
9762 | ;; |
---|
9763 | esac |
---|
9764 | fi |
---|
9765 | ;; |
---|
9766 | esac |
---|
9767 | |
---|
9768 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
---|
9769 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
---|
9770 | library_names_spec= |
---|
9771 | libname_spec='lib$name' |
---|
9772 | soname_spec= |
---|
9773 | shrext_cmds=".so" |
---|
9774 | postinstall_cmds= |
---|
9775 | postuninstall_cmds= |
---|
9776 | finish_cmds= |
---|
9777 | finish_eval= |
---|
9778 | shlibpath_var= |
---|
9779 | shlibpath_overrides_runpath=unknown |
---|
9780 | version_type=none |
---|
9781 | dynamic_linker="$host_os ld.so" |
---|
9782 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
9783 | if test "$GCC" = yes; then |
---|
9784 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
9785 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
---|
9786 | # if the path contains ";" then we assume it to be the separator |
---|
9787 | # otherwise default to the standard path separator (i.e. ":") - it is |
---|
9788 | # assumed that no part of a normal pathname contains ";" but that should |
---|
9789 | # okay in the real world where ";" in dirpaths is itself problematic. |
---|
9790 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
9791 | else |
---|
9792 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
9793 | fi |
---|
9794 | else |
---|
9795 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
---|
9796 | fi |
---|
9797 | need_lib_prefix=unknown |
---|
9798 | hardcode_into_libs=no |
---|
9799 | |
---|
9800 | # when you set need_version to no, make sure it does not cause -set_version |
---|
9801 | # flags to be left without arguments |
---|
9802 | need_version=unknown |
---|
9803 | |
---|
9804 | case $host_os in |
---|
9805 | aix3*) |
---|
9806 | version_type=linux |
---|
9807 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
9808 | shlibpath_var=LIBPATH |
---|
9809 | |
---|
9810 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
9811 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9812 | ;; |
---|
9813 | |
---|
9814 | aix4* | aix5*) |
---|
9815 | version_type=linux |
---|
9816 | need_lib_prefix=no |
---|
9817 | need_version=no |
---|
9818 | hardcode_into_libs=yes |
---|
9819 | if test "$host_cpu" = ia64; then |
---|
9820 | # AIX 5 supports IA64 |
---|
9821 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
9822 | shlibpath_var=LD_LIBRARY_PATH |
---|
9823 | else |
---|
9824 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
9825 | # for dependence libraries. The import file would start with |
---|
9826 | # the line `#! .'. This would cause the generated library to |
---|
9827 | # depend on `.', always an invalid library. This was fixed in |
---|
9828 | # development snapshots of GCC prior to 3.0. |
---|
9829 | case $host_os in |
---|
9830 | aix4 | aix4.[01] | aix4.[01].*) |
---|
9831 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
9832 | echo ' yes ' |
---|
9833 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
9834 | : |
---|
9835 | else |
---|
9836 | can_build_shared=no |
---|
9837 | fi |
---|
9838 | ;; |
---|
9839 | esac |
---|
9840 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
9841 | # soname into executable. Probably we can add versioning support to |
---|
9842 | # collect2, so additional links can be useful in future. |
---|
9843 | if test "$aix_use_runtimelinking" = yes; then |
---|
9844 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
9845 | # instead of lib<name>.a to let people know that these are not |
---|
9846 | # typical AIX shared libraries. |
---|
9847 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9848 | else |
---|
9849 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
9850 | # and later when we are not doing run time linking. |
---|
9851 | library_names_spec='${libname}${release}.a $libname.a' |
---|
9852 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9853 | fi |
---|
9854 | shlibpath_var=LIBPATH |
---|
9855 | fi |
---|
9856 | ;; |
---|
9857 | |
---|
9858 | amigaos*) |
---|
9859 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
9860 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
9861 | 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' |
---|
9862 | ;; |
---|
9863 | |
---|
9864 | beos*) |
---|
9865 | library_names_spec='${libname}${shared_ext}' |
---|
9866 | dynamic_linker="$host_os ld.so" |
---|
9867 | shlibpath_var=LIBRARY_PATH |
---|
9868 | ;; |
---|
9869 | |
---|
9870 | bsdi[45]*) |
---|
9871 | version_type=linux |
---|
9872 | need_version=no |
---|
9873 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9874 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9875 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
9876 | shlibpath_var=LD_LIBRARY_PATH |
---|
9877 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
9878 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
9879 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
9880 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
9881 | # libtool to hard-code these into programs |
---|
9882 | ;; |
---|
9883 | |
---|
9884 | cygwin* | mingw* | pw32*) |
---|
9885 | version_type=windows |
---|
9886 | shrext_cmds=".dll" |
---|
9887 | need_version=no |
---|
9888 | need_lib_prefix=no |
---|
9889 | |
---|
9890 | case $GCC,$host_os in |
---|
9891 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
9892 | library_names_spec='$libname.dll.a' |
---|
9893 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
9894 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
9895 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
---|
9896 | dldir=$destdir/`dirname \$dlpath`~ |
---|
9897 | test -d \$dldir || mkdir -p \$dldir~ |
---|
9898 | $install_prog $dir/$dlname \$dldir/$dlname~ |
---|
9899 | chmod a+x \$dldir/$dlname' |
---|
9900 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
9901 | dlpath=$dir/\$dldll~ |
---|
9902 | $rm \$dlpath' |
---|
9903 | shlibpath_overrides_runpath=yes |
---|
9904 | |
---|
9905 | case $host_os in |
---|
9906 | cygwin*) |
---|
9907 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
9908 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
9909 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
---|
9910 | ;; |
---|
9911 | mingw*) |
---|
9912 | # MinGW DLLs use traditional 'lib' prefix |
---|
9913 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
9914 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
9915 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
---|
9916 | # It is most probably a Windows format PATH printed by |
---|
9917 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
---|
9918 | # path with ; separators, and with drive letters. We can handle the |
---|
9919 | # drive letters (cygwin fileutils understands them), so leave them, |
---|
9920 | # especially as we might pass files found there to a mingw objdump, |
---|
9921 | # which wouldn't understand a cygwinified path. Ahh. |
---|
9922 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
9923 | else |
---|
9924 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
9925 | fi |
---|
9926 | ;; |
---|
9927 | pw32*) |
---|
9928 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
9929 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
9930 | ;; |
---|
9931 | esac |
---|
9932 | ;; |
---|
9933 | |
---|
9934 | *) |
---|
9935 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
9936 | ;; |
---|
9937 | esac |
---|
9938 | dynamic_linker='Win32 ld.exe' |
---|
9939 | # FIXME: first we should search . and the directory the executable is in |
---|
9940 | shlibpath_var=PATH |
---|
9941 | ;; |
---|
9942 | |
---|
9943 | darwin* | rhapsody*) |
---|
9944 | dynamic_linker="$host_os dyld" |
---|
9945 | version_type=darwin |
---|
9946 | need_lib_prefix=no |
---|
9947 | need_version=no |
---|
9948 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
9949 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
9950 | shlibpath_overrides_runpath=yes |
---|
9951 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
9952 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
---|
9953 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
---|
9954 | if test "$GCC" = yes; then |
---|
9955 | 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"` |
---|
9956 | else |
---|
9957 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
---|
9958 | fi |
---|
9959 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
9960 | ;; |
---|
9961 | |
---|
9962 | dgux*) |
---|
9963 | version_type=linux |
---|
9964 | need_lib_prefix=no |
---|
9965 | need_version=no |
---|
9966 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
---|
9967 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9968 | shlibpath_var=LD_LIBRARY_PATH |
---|
9969 | ;; |
---|
9970 | |
---|
9971 | freebsd1*) |
---|
9972 | dynamic_linker=no |
---|
9973 | ;; |
---|
9974 | |
---|
9975 | kfreebsd*-gnu) |
---|
9976 | version_type=linux |
---|
9977 | need_lib_prefix=no |
---|
9978 | need_version=no |
---|
9979 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
9980 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9981 | shlibpath_var=LD_LIBRARY_PATH |
---|
9982 | shlibpath_overrides_runpath=no |
---|
9983 | hardcode_into_libs=yes |
---|
9984 | dynamic_linker='GNU ld.so' |
---|
9985 | ;; |
---|
9986 | |
---|
9987 | freebsd* | dragonfly*) |
---|
9988 | # DragonFly does not have aout. When/if they implement a new |
---|
9989 | # versioning mechanism, adjust this. |
---|
9990 | if test -x /usr/bin/objformat; then |
---|
9991 | objformat=`/usr/bin/objformat` |
---|
9992 | else |
---|
9993 | case $host_os in |
---|
9994 | freebsd[123]*) objformat=aout ;; |
---|
9995 | *) objformat=elf ;; |
---|
9996 | esac |
---|
9997 | fi |
---|
9998 | version_type=freebsd-$objformat |
---|
9999 | case $version_type in |
---|
10000 | freebsd-elf*) |
---|
10001 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
10002 | need_version=no |
---|
10003 | need_lib_prefix=no |
---|
10004 | ;; |
---|
10005 | freebsd-*) |
---|
10006 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
10007 | need_version=yes |
---|
10008 | ;; |
---|
10009 | esac |
---|
10010 | shlibpath_var=LD_LIBRARY_PATH |
---|
10011 | case $host_os in |
---|
10012 | freebsd2*) |
---|
10013 | shlibpath_overrides_runpath=yes |
---|
10014 | ;; |
---|
10015 | freebsd3.[01]* | freebsdelf3.[01]*) |
---|
10016 | shlibpath_overrides_runpath=yes |
---|
10017 | hardcode_into_libs=yes |
---|
10018 | ;; |
---|
10019 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
---|
10020 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
---|
10021 | shlibpath_overrides_runpath=no |
---|
10022 | hardcode_into_libs=yes |
---|
10023 | ;; |
---|
10024 | freebsd*) # from 4.6 on |
---|
10025 | shlibpath_overrides_runpath=yes |
---|
10026 | hardcode_into_libs=yes |
---|
10027 | ;; |
---|
10028 | esac |
---|
10029 | ;; |
---|
10030 | |
---|
10031 | gnu*) |
---|
10032 | version_type=linux |
---|
10033 | need_lib_prefix=no |
---|
10034 | need_version=no |
---|
10035 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
10036 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10037 | shlibpath_var=LD_LIBRARY_PATH |
---|
10038 | hardcode_into_libs=yes |
---|
10039 | ;; |
---|
10040 | |
---|
10041 | hpux9* | hpux10* | hpux11*) |
---|
10042 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
10043 | # link against other versions. |
---|
10044 | version_type=sunos |
---|
10045 | need_lib_prefix=no |
---|
10046 | need_version=no |
---|
10047 | case $host_cpu in |
---|
10048 | ia64*) |
---|
10049 | shrext_cmds='.so' |
---|
10050 | hardcode_into_libs=yes |
---|
10051 | dynamic_linker="$host_os dld.so" |
---|
10052 | shlibpath_var=LD_LIBRARY_PATH |
---|
10053 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
10054 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10055 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10056 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
10057 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
10058 | else |
---|
10059 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
10060 | fi |
---|
10061 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
10062 | ;; |
---|
10063 | hppa*64*) |
---|
10064 | shrext_cmds='.sl' |
---|
10065 | hardcode_into_libs=yes |
---|
10066 | dynamic_linker="$host_os dld.sl" |
---|
10067 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
10068 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
10069 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10070 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10071 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
10072 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
10073 | ;; |
---|
10074 | *) |
---|
10075 | shrext_cmds='.sl' |
---|
10076 | dynamic_linker="$host_os dld.sl" |
---|
10077 | shlibpath_var=SHLIB_PATH |
---|
10078 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
10079 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10080 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10081 | ;; |
---|
10082 | esac |
---|
10083 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
10084 | postinstall_cmds='chmod 555 $lib' |
---|
10085 | ;; |
---|
10086 | |
---|
10087 | interix3*) |
---|
10088 | version_type=linux |
---|
10089 | need_lib_prefix=no |
---|
10090 | need_version=no |
---|
10091 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
10092 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10093 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
---|
10094 | shlibpath_var=LD_LIBRARY_PATH |
---|
10095 | shlibpath_overrides_runpath=no |
---|
10096 | hardcode_into_libs=yes |
---|
10097 | ;; |
---|
10098 | |
---|
10099 | irix5* | irix6* | nonstopux*) |
---|
10100 | case $host_os in |
---|
10101 | nonstopux*) version_type=nonstopux ;; |
---|
10102 | *) |
---|
10103 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
10104 | version_type=linux |
---|
10105 | else |
---|
10106 | version_type=irix |
---|
10107 | fi ;; |
---|
10108 | esac |
---|
10109 | need_lib_prefix=no |
---|
10110 | need_version=no |
---|
10111 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10112 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
10113 | case $host_os in |
---|
10114 | irix5* | nonstopux*) |
---|
10115 | libsuff= shlibsuff= |
---|
10116 | ;; |
---|
10117 | *) |
---|
10118 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
10119 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
10120 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
10121 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
10122 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
10123 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
10124 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
10125 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
10126 | esac |
---|
10127 | ;; |
---|
10128 | esac |
---|
10129 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
10130 | shlibpath_overrides_runpath=no |
---|
10131 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
10132 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
10133 | hardcode_into_libs=yes |
---|
10134 | ;; |
---|
10135 | |
---|
10136 | # No shared lib support for Linux oldld, aout, or coff. |
---|
10137 | linux*oldld* | linux*aout* | linux*coff*) |
---|
10138 | dynamic_linker=no |
---|
10139 | ;; |
---|
10140 | |
---|
10141 | # This must be Linux ELF. |
---|
10142 | linux*) |
---|
10143 | version_type=linux |
---|
10144 | need_lib_prefix=no |
---|
10145 | need_version=no |
---|
10146 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10147 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10148 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
10149 | shlibpath_var=LD_LIBRARY_PATH |
---|
10150 | shlibpath_overrides_runpath=no |
---|
10151 | # This implies no fast_install, which is unacceptable. |
---|
10152 | # Some rework will be needed to allow for fast_install |
---|
10153 | # before this can be enabled. |
---|
10154 | hardcode_into_libs=yes |
---|
10155 | |
---|
10156 | # Append ld.so.conf contents to the search path |
---|
10157 | if test -f /etc/ld.so.conf; then |
---|
10158 | 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' ' '` |
---|
10159 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
---|
10160 | fi |
---|
10161 | |
---|
10162 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
10163 | # powerpc, because MkLinux only supported shared libraries with the |
---|
10164 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
10165 | # most powerpc-linux boxes support dynamic linking these days and |
---|
10166 | # people can always --disable-shared, the test was removed, and we |
---|
10167 | # assume the GNU/Linux dynamic linker is in use. |
---|
10168 | dynamic_linker='GNU/Linux ld.so' |
---|
10169 | ;; |
---|
10170 | |
---|
10171 | knetbsd*-gnu) |
---|
10172 | version_type=linux |
---|
10173 | need_lib_prefix=no |
---|
10174 | need_version=no |
---|
10175 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
10176 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10177 | shlibpath_var=LD_LIBRARY_PATH |
---|
10178 | shlibpath_overrides_runpath=no |
---|
10179 | hardcode_into_libs=yes |
---|
10180 | dynamic_linker='GNU ld.so' |
---|
10181 | ;; |
---|
10182 | |
---|
10183 | netbsd*) |
---|
10184 | version_type=sunos |
---|
10185 | need_lib_prefix=no |
---|
10186 | need_version=no |
---|
10187 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
10188 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
10189 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
10190 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
10191 | else |
---|
10192 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
10193 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10194 | dynamic_linker='NetBSD ld.elf_so' |
---|
10195 | fi |
---|
10196 | shlibpath_var=LD_LIBRARY_PATH |
---|
10197 | shlibpath_overrides_runpath=yes |
---|
10198 | hardcode_into_libs=yes |
---|
10199 | ;; |
---|
10200 | |
---|
10201 | newsos6) |
---|
10202 | version_type=linux |
---|
10203 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10204 | shlibpath_var=LD_LIBRARY_PATH |
---|
10205 | shlibpath_overrides_runpath=yes |
---|
10206 | ;; |
---|
10207 | |
---|
10208 | nto-qnx*) |
---|
10209 | version_type=linux |
---|
10210 | need_lib_prefix=no |
---|
10211 | need_version=no |
---|
10212 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10213 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10214 | shlibpath_var=LD_LIBRARY_PATH |
---|
10215 | shlibpath_overrides_runpath=yes |
---|
10216 | ;; |
---|
10217 | |
---|
10218 | openbsd*) |
---|
10219 | version_type=sunos |
---|
10220 | sys_lib_dlsearch_path_spec="/usr/lib" |
---|
10221 | need_lib_prefix=no |
---|
10222 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
---|
10223 | case $host_os in |
---|
10224 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
---|
10225 | *) need_version=no ;; |
---|
10226 | esac |
---|
10227 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
10228 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
10229 | shlibpath_var=LD_LIBRARY_PATH |
---|
10230 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
10231 | case $host_os in |
---|
10232 | openbsd2.[89] | openbsd2.[89].*) |
---|
10233 | shlibpath_overrides_runpath=no |
---|
10234 | ;; |
---|
10235 | *) |
---|
10236 | shlibpath_overrides_runpath=yes |
---|
10237 | ;; |
---|
10238 | esac |
---|
10239 | else |
---|
10240 | shlibpath_overrides_runpath=yes |
---|
10241 | fi |
---|
10242 | ;; |
---|
10243 | |
---|
10244 | os2*) |
---|
10245 | libname_spec='$name' |
---|
10246 | shrext_cmds=".dll" |
---|
10247 | need_lib_prefix=no |
---|
10248 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
10249 | dynamic_linker='OS/2 ld.exe' |
---|
10250 | shlibpath_var=LIBPATH |
---|
10251 | ;; |
---|
10252 | |
---|
10253 | osf3* | osf4* | osf5*) |
---|
10254 | version_type=osf |
---|
10255 | need_lib_prefix=no |
---|
10256 | need_version=no |
---|
10257 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10258 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10259 | shlibpath_var=LD_LIBRARY_PATH |
---|
10260 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
10261 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
10262 | ;; |
---|
10263 | |
---|
10264 | solaris*) |
---|
10265 | version_type=linux |
---|
10266 | need_lib_prefix=no |
---|
10267 | need_version=no |
---|
10268 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10269 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10270 | shlibpath_var=LD_LIBRARY_PATH |
---|
10271 | shlibpath_overrides_runpath=yes |
---|
10272 | hardcode_into_libs=yes |
---|
10273 | # ldd complains unless libraries are executable |
---|
10274 | postinstall_cmds='chmod +x $lib' |
---|
10275 | ;; |
---|
10276 | |
---|
10277 | sunos4*) |
---|
10278 | version_type=sunos |
---|
10279 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
10280 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
10281 | shlibpath_var=LD_LIBRARY_PATH |
---|
10282 | shlibpath_overrides_runpath=yes |
---|
10283 | if test "$with_gnu_ld" = yes; then |
---|
10284 | need_lib_prefix=no |
---|
10285 | fi |
---|
10286 | need_version=yes |
---|
10287 | ;; |
---|
10288 | |
---|
10289 | sysv4 | sysv4.3*) |
---|
10290 | version_type=linux |
---|
10291 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10292 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10293 | shlibpath_var=LD_LIBRARY_PATH |
---|
10294 | case $host_vendor in |
---|
10295 | sni) |
---|
10296 | shlibpath_overrides_runpath=no |
---|
10297 | need_lib_prefix=no |
---|
10298 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
10299 | runpath_var=LD_RUN_PATH |
---|
10300 | ;; |
---|
10301 | siemens) |
---|
10302 | need_lib_prefix=no |
---|
10303 | ;; |
---|
10304 | motorola) |
---|
10305 | need_lib_prefix=no |
---|
10306 | need_version=no |
---|
10307 | shlibpath_overrides_runpath=no |
---|
10308 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
10309 | ;; |
---|
10310 | esac |
---|
10311 | ;; |
---|
10312 | |
---|
10313 | sysv4*MP*) |
---|
10314 | if test -d /usr/nec ;then |
---|
10315 | version_type=linux |
---|
10316 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
10317 | soname_spec='$libname${shared_ext}.$major' |
---|
10318 | shlibpath_var=LD_LIBRARY_PATH |
---|
10319 | fi |
---|
10320 | ;; |
---|
10321 | |
---|
10322 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
---|
10323 | version_type=freebsd-elf |
---|
10324 | need_lib_prefix=no |
---|
10325 | need_version=no |
---|
10326 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
10327 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10328 | shlibpath_var=LD_LIBRARY_PATH |
---|
10329 | hardcode_into_libs=yes |
---|
10330 | if test "$with_gnu_ld" = yes; then |
---|
10331 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
---|
10332 | shlibpath_overrides_runpath=no |
---|
10333 | else |
---|
10334 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
---|
10335 | shlibpath_overrides_runpath=yes |
---|
10336 | case $host_os in |
---|
10337 | sco3.2v5*) |
---|
10338 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
---|
10339 | ;; |
---|
10340 | esac |
---|
10341 | fi |
---|
10342 | sys_lib_dlsearch_path_spec='/usr/lib' |
---|
10343 | ;; |
---|
10344 | |
---|
10345 | uts4*) |
---|
10346 | version_type=linux |
---|
10347 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10348 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10349 | shlibpath_var=LD_LIBRARY_PATH |
---|
10350 | ;; |
---|
10351 | |
---|
10352 | *) |
---|
10353 | dynamic_linker=no |
---|
10354 | ;; |
---|
10355 | esac |
---|
10356 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
---|
10357 | echo "${ECHO_T}$dynamic_linker" >&6 |
---|
10358 | test "$dynamic_linker" = no && can_build_shared=no |
---|
10359 | |
---|
10360 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
10361 | if test "$GCC" = yes; then |
---|
10362 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
10363 | fi |
---|
10364 | |
---|
10365 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
---|
10366 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
---|
10367 | hardcode_action= |
---|
10368 | if test -n "$hardcode_libdir_flag_spec" || \ |
---|
10369 | test -n "$runpath_var" || \ |
---|
10370 | test "X$hardcode_automatic" = "Xyes" ; then |
---|
10371 | |
---|
10372 | # We can hardcode non-existant directories. |
---|
10373 | if test "$hardcode_direct" != no && |
---|
10374 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
10375 | # have to relink, otherwise we might link with an installed library |
---|
10376 | # when we should be linking with a yet-to-be-installed one |
---|
10377 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
---|
10378 | test "$hardcode_minus_L" != no; then |
---|
10379 | # Linking always hardcodes the temporary library directory. |
---|
10380 | hardcode_action=relink |
---|
10381 | else |
---|
10382 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
10383 | hardcode_action=immediate |
---|
10384 | fi |
---|
10385 | else |
---|
10386 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
10387 | # directories. |
---|
10388 | hardcode_action=unsupported |
---|
10389 | fi |
---|
10390 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
---|
10391 | echo "${ECHO_T}$hardcode_action" >&6 |
---|
10392 | |
---|
10393 | if test "$hardcode_action" = relink; then |
---|
10394 | # Fast installation is not supported |
---|
10395 | enable_fast_install=no |
---|
10396 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
10397 | test "$enable_shared" = no; then |
---|
10398 | # Fast installation is not necessary |
---|
10399 | enable_fast_install=needless |
---|
10400 | fi |
---|
10401 | |
---|
10402 | striplib= |
---|
10403 | old_striplib= |
---|
10404 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
---|
10405 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
---|
10406 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
---|
10407 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
---|
10408 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
---|
10409 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
10410 | echo "${ECHO_T}yes" >&6 |
---|
10411 | else |
---|
10412 | # FIXME - insert some real tests, host_os isn't really good enough |
---|
10413 | case $host_os in |
---|
10414 | darwin*) |
---|
10415 | if test -n "$STRIP" ; then |
---|
10416 | striplib="$STRIP -x" |
---|
10417 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
10418 | echo "${ECHO_T}yes" >&6 |
---|
10419 | else |
---|
10420 | echo "$as_me:$LINENO: result: no" >&5 |
---|
10421 | echo "${ECHO_T}no" >&6 |
---|
10422 | fi |
---|
10423 | ;; |
---|
10424 | *) |
---|
10425 | echo "$as_me:$LINENO: result: no" >&5 |
---|
10426 | echo "${ECHO_T}no" >&6 |
---|
10427 | ;; |
---|
10428 | esac |
---|
10429 | fi |
---|
10430 | |
---|
10431 | if test "x$enable_dlopen" != xyes; then |
---|
10432 | enable_dlopen=unknown |
---|
10433 | enable_dlopen_self=unknown |
---|
10434 | enable_dlopen_self_static=unknown |
---|
10435 | else |
---|
10436 | lt_cv_dlopen=no |
---|
10437 | lt_cv_dlopen_libs= |
---|
10438 | |
---|
10439 | case $host_os in |
---|
10440 | beos*) |
---|
10441 | lt_cv_dlopen="load_add_on" |
---|
10442 | lt_cv_dlopen_libs= |
---|
10443 | lt_cv_dlopen_self=yes |
---|
10444 | ;; |
---|
10445 | |
---|
10446 | mingw* | pw32*) |
---|
10447 | lt_cv_dlopen="LoadLibrary" |
---|
10448 | lt_cv_dlopen_libs= |
---|
10449 | ;; |
---|
10450 | |
---|
10451 | cygwin*) |
---|
10452 | lt_cv_dlopen="dlopen" |
---|
10453 | lt_cv_dlopen_libs= |
---|
10454 | ;; |
---|
10455 | |
---|
10456 | darwin*) |
---|
10457 | # if libdl is installed we need to link against it |
---|
10458 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
10459 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
---|
10460 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
10461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10462 | else |
---|
10463 | ac_check_lib_save_LIBS=$LIBS |
---|
10464 | LIBS="-ldl $LIBS" |
---|
10465 | cat >conftest.$ac_ext <<_ACEOF |
---|
10466 | /* confdefs.h. */ |
---|
10467 | _ACEOF |
---|
10468 | cat confdefs.h >>conftest.$ac_ext |
---|
10469 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10470 | /* end confdefs.h. */ |
---|
10471 | |
---|
10472 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
10473 | #ifdef __cplusplus |
---|
10474 | extern "C" |
---|
10475 | #endif |
---|
10476 | /* We use char because int might match the return type of a gcc2 |
---|
10477 | builtin and then its argument prototype would still apply. */ |
---|
10478 | char dlopen (); |
---|
10479 | int |
---|
10480 | main () |
---|
10481 | { |
---|
10482 | dlopen (); |
---|
10483 | ; |
---|
10484 | return 0; |
---|
10485 | } |
---|
10486 | _ACEOF |
---|
10487 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10489 | (eval $ac_link) 2>conftest.er1 |
---|
10490 | ac_status=$? |
---|
10491 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10492 | rm -f conftest.er1 |
---|
10493 | cat conftest.err >&5 |
---|
10494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10495 | (exit $ac_status); } && |
---|
10496 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10497 | || test ! -s conftest.err' |
---|
10498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10499 | (eval $ac_try) 2>&5 |
---|
10500 | ac_status=$? |
---|
10501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10502 | (exit $ac_status); }; } && |
---|
10503 | { ac_try='test -s conftest$ac_exeext' |
---|
10504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10505 | (eval $ac_try) 2>&5 |
---|
10506 | ac_status=$? |
---|
10507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10508 | (exit $ac_status); }; }; then |
---|
10509 | ac_cv_lib_dl_dlopen=yes |
---|
10510 | else |
---|
10511 | echo "$as_me: failed program was:" >&5 |
---|
10512 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10513 | |
---|
10514 | ac_cv_lib_dl_dlopen=no |
---|
10515 | fi |
---|
10516 | rm -f conftest.err conftest.$ac_objext \ |
---|
10517 | conftest$ac_exeext conftest.$ac_ext |
---|
10518 | LIBS=$ac_check_lib_save_LIBS |
---|
10519 | fi |
---|
10520 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
10521 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
---|
10522 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
10523 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
10524 | else |
---|
10525 | |
---|
10526 | lt_cv_dlopen="dyld" |
---|
10527 | lt_cv_dlopen_libs= |
---|
10528 | lt_cv_dlopen_self=yes |
---|
10529 | |
---|
10530 | fi |
---|
10531 | |
---|
10532 | ;; |
---|
10533 | |
---|
10534 | *) |
---|
10535 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
---|
10536 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
---|
10537 | if test "${ac_cv_func_shl_load+set}" = set; then |
---|
10538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10539 | else |
---|
10540 | cat >conftest.$ac_ext <<_ACEOF |
---|
10541 | /* confdefs.h. */ |
---|
10542 | _ACEOF |
---|
10543 | cat confdefs.h >>conftest.$ac_ext |
---|
10544 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10545 | /* end confdefs.h. */ |
---|
10546 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
---|
10547 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
10548 | #define shl_load innocuous_shl_load |
---|
10549 | |
---|
10550 | /* System header to define __stub macros and hopefully few prototypes, |
---|
10551 | which can conflict with char shl_load (); below. |
---|
10552 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
10553 | <limits.h> exists even on freestanding compilers. */ |
---|
10554 | |
---|
10555 | #ifdef __STDC__ |
---|
10556 | # include <limits.h> |
---|
10557 | #else |
---|
10558 | # include <assert.h> |
---|
10559 | #endif |
---|
10560 | |
---|
10561 | #undef shl_load |
---|
10562 | |
---|
10563 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
10564 | #ifdef __cplusplus |
---|
10565 | extern "C" |
---|
10566 | { |
---|
10567 | #endif |
---|
10568 | /* We use char because int might match the return type of a gcc2 |
---|
10569 | builtin and then its argument prototype would still apply. */ |
---|
10570 | char shl_load (); |
---|
10571 | /* The GNU C library defines this for functions which it implements |
---|
10572 | to always fail with ENOSYS. Some functions are actually named |
---|
10573 | something starting with __ and the normal name is an alias. */ |
---|
10574 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
---|
10575 | choke me |
---|
10576 | #else |
---|
10577 | char (*f) () = shl_load; |
---|
10578 | #endif |
---|
10579 | #ifdef __cplusplus |
---|
10580 | } |
---|
10581 | #endif |
---|
10582 | |
---|
10583 | int |
---|
10584 | main () |
---|
10585 | { |
---|
10586 | return f != shl_load; |
---|
10587 | ; |
---|
10588 | return 0; |
---|
10589 | } |
---|
10590 | _ACEOF |
---|
10591 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10592 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10593 | (eval $ac_link) 2>conftest.er1 |
---|
10594 | ac_status=$? |
---|
10595 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10596 | rm -f conftest.er1 |
---|
10597 | cat conftest.err >&5 |
---|
10598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10599 | (exit $ac_status); } && |
---|
10600 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10601 | || test ! -s conftest.err' |
---|
10602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10603 | (eval $ac_try) 2>&5 |
---|
10604 | ac_status=$? |
---|
10605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10606 | (exit $ac_status); }; } && |
---|
10607 | { ac_try='test -s conftest$ac_exeext' |
---|
10608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10609 | (eval $ac_try) 2>&5 |
---|
10610 | ac_status=$? |
---|
10611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10612 | (exit $ac_status); }; }; then |
---|
10613 | ac_cv_func_shl_load=yes |
---|
10614 | else |
---|
10615 | echo "$as_me: failed program was:" >&5 |
---|
10616 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10617 | |
---|
10618 | ac_cv_func_shl_load=no |
---|
10619 | fi |
---|
10620 | rm -f conftest.err conftest.$ac_objext \ |
---|
10621 | conftest$ac_exeext conftest.$ac_ext |
---|
10622 | fi |
---|
10623 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
---|
10624 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
---|
10625 | if test $ac_cv_func_shl_load = yes; then |
---|
10626 | lt_cv_dlopen="shl_load" |
---|
10627 | else |
---|
10628 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
---|
10629 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
---|
10630 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
---|
10631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10632 | else |
---|
10633 | ac_check_lib_save_LIBS=$LIBS |
---|
10634 | LIBS="-ldld $LIBS" |
---|
10635 | cat >conftest.$ac_ext <<_ACEOF |
---|
10636 | /* confdefs.h. */ |
---|
10637 | _ACEOF |
---|
10638 | cat confdefs.h >>conftest.$ac_ext |
---|
10639 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10640 | /* end confdefs.h. */ |
---|
10641 | |
---|
10642 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
10643 | #ifdef __cplusplus |
---|
10644 | extern "C" |
---|
10645 | #endif |
---|
10646 | /* We use char because int might match the return type of a gcc2 |
---|
10647 | builtin and then its argument prototype would still apply. */ |
---|
10648 | char shl_load (); |
---|
10649 | int |
---|
10650 | main () |
---|
10651 | { |
---|
10652 | shl_load (); |
---|
10653 | ; |
---|
10654 | return 0; |
---|
10655 | } |
---|
10656 | _ACEOF |
---|
10657 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10658 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10659 | (eval $ac_link) 2>conftest.er1 |
---|
10660 | ac_status=$? |
---|
10661 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10662 | rm -f conftest.er1 |
---|
10663 | cat conftest.err >&5 |
---|
10664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10665 | (exit $ac_status); } && |
---|
10666 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10667 | || test ! -s conftest.err' |
---|
10668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10669 | (eval $ac_try) 2>&5 |
---|
10670 | ac_status=$? |
---|
10671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10672 | (exit $ac_status); }; } && |
---|
10673 | { ac_try='test -s conftest$ac_exeext' |
---|
10674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10675 | (eval $ac_try) 2>&5 |
---|
10676 | ac_status=$? |
---|
10677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10678 | (exit $ac_status); }; }; then |
---|
10679 | ac_cv_lib_dld_shl_load=yes |
---|
10680 | else |
---|
10681 | echo "$as_me: failed program was:" >&5 |
---|
10682 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10683 | |
---|
10684 | ac_cv_lib_dld_shl_load=no |
---|
10685 | fi |
---|
10686 | rm -f conftest.err conftest.$ac_objext \ |
---|
10687 | conftest$ac_exeext conftest.$ac_ext |
---|
10688 | LIBS=$ac_check_lib_save_LIBS |
---|
10689 | fi |
---|
10690 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
10691 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
---|
10692 | if test $ac_cv_lib_dld_shl_load = yes; then |
---|
10693 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
---|
10694 | else |
---|
10695 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
---|
10696 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
---|
10697 | if test "${ac_cv_func_dlopen+set}" = set; then |
---|
10698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10699 | else |
---|
10700 | cat >conftest.$ac_ext <<_ACEOF |
---|
10701 | /* confdefs.h. */ |
---|
10702 | _ACEOF |
---|
10703 | cat confdefs.h >>conftest.$ac_ext |
---|
10704 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10705 | /* end confdefs.h. */ |
---|
10706 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
---|
10707 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
10708 | #define dlopen innocuous_dlopen |
---|
10709 | |
---|
10710 | /* System header to define __stub macros and hopefully few prototypes, |
---|
10711 | which can conflict with char dlopen (); below. |
---|
10712 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
10713 | <limits.h> exists even on freestanding compilers. */ |
---|
10714 | |
---|
10715 | #ifdef __STDC__ |
---|
10716 | # include <limits.h> |
---|
10717 | #else |
---|
10718 | # include <assert.h> |
---|
10719 | #endif |
---|
10720 | |
---|
10721 | #undef dlopen |
---|
10722 | |
---|
10723 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
10724 | #ifdef __cplusplus |
---|
10725 | extern "C" |
---|
10726 | { |
---|
10727 | #endif |
---|
10728 | /* We use char because int might match the return type of a gcc2 |
---|
10729 | builtin and then its argument prototype would still apply. */ |
---|
10730 | char dlopen (); |
---|
10731 | /* The GNU C library defines this for functions which it implements |
---|
10732 | to always fail with ENOSYS. Some functions are actually named |
---|
10733 | something starting with __ and the normal name is an alias. */ |
---|
10734 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
---|
10735 | choke me |
---|
10736 | #else |
---|
10737 | char (*f) () = dlopen; |
---|
10738 | #endif |
---|
10739 | #ifdef __cplusplus |
---|
10740 | } |
---|
10741 | #endif |
---|
10742 | |
---|
10743 | int |
---|
10744 | main () |
---|
10745 | { |
---|
10746 | return f != dlopen; |
---|
10747 | ; |
---|
10748 | return 0; |
---|
10749 | } |
---|
10750 | _ACEOF |
---|
10751 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10752 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10753 | (eval $ac_link) 2>conftest.er1 |
---|
10754 | ac_status=$? |
---|
10755 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10756 | rm -f conftest.er1 |
---|
10757 | cat conftest.err >&5 |
---|
10758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10759 | (exit $ac_status); } && |
---|
10760 | { ac_try='test -z "$ac_c_werror_flag" |
---|
10761 | || test ! -s conftest.err' |
---|
10762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10763 | (eval $ac_try) 2>&5 |
---|
10764 | ac_status=$? |
---|
10765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10766 | (exit $ac_status); }; } && |
---|
10767 | { ac_try='test -s conftest$ac_exeext' |
---|
10768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
10769 | (eval $ac_try) 2>&5 |
---|
10770 | ac_status=$? |
---|
10771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10772 | (exit $ac_status |
---|